:root {
  --primary-color: #00c6ff;
  --secondary-color: #0072ff;
  --accent-color: #ff4d4d;
  --text-color: #e0e0e0;
  --dark-bg: #121212;
  --panel-bg: rgba(30, 30, 30, 0.7);
  --border-glow: 0 0 10px rgba(0, 198, 255, 0.5);
  --border-radius: 8px;
  --font-main: 'Roboto', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 基础样式 */
body {
  font-family: var(--font-main);
  background: #000000;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(0, 198, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0, 114, 255, 0.15) 0%, transparent 50%);
  color: var(--text-color);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 网格背景 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 198, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 198, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
  opacity: 0.5;
}

.container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* 标题区域 */
.header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* 主内容区 */
.main-content {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  margin-bottom: 2rem;
}

/* 发光边框效果 */
.main-content::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: var(--border-radius);
  padding: 1px;
  background: linear-gradient(45deg, var(--primary-color), transparent, var(--secondary-color));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.content-inner {
  padding: 2rem;
}

/* UDID显示区域 */
.udid-container {
  position: relative;
  margin: 1rem 0 2rem;
}

.udid-container::before {
  content: 'UDID信息';
  position: absolute;
  top: -10px;
  left: 15px;
  background: var(--dark-bg);
  color: var(--primary-color);
  font-size: 0.8rem;
  padding: 0 10px;
  border-radius: 4px;
  z-index: 2;
  font-weight: 500;
  letter-spacing: 1px;
}

#udid-input {
  width: 100%;
  min-height: 120px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 198, 255, 0.3);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  resize: none;
  transition: var(--transition);
  box-sizing: border-box;
  white-space: pre;
  overflow-x: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

#udid-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--border-glow);
}

/* 按钮样式 */
.action-buttons {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 198, 255, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* 按钮内部图标 */
.btn-primary i {
  margin-right: 8px;
}

/* 按钮发光效果 */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* 步骤指引 */
.steps-guide {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.step-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.step-item:hover {
  transform: translateY(-5px);
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 198, 255, 0.2);
}

.step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 198, 255, 0.3);
}

.step-content h5 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.step-content p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* 页脚样式 */
.footer {
  margin-top: auto;
  text-align: center;
  padding: 1.5rem;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hitokoto {
  color: var(--text-color);
  font-style: italic;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  position: relative;
  border-left: 3px solid var(--primary-color);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-item a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* 通知样式 */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification.success {
  background: rgba(40, 167, 69, 0.8);
  border-left: 4px solid #28a745;
}

.notification.error {
  background: rgba(220, 53, 69, 0.8);
  border-left: 4px solid #dc3545;
}

.notification.info {
  background: rgba(23, 162, 184, 0.8);
  border-left: 4px solid #17a2b8;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .container {
    margin: 1.5rem auto;
    padding: 0 1rem;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .content-inner {
    padding: 1.5rem;
  }
  
  .steps-guide {
    grid-template-columns: 1fr;
  }
}

/* 动画效果 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 198, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 198, 255, 0);
  }
}

/* 添加一些科技感的装饰元素 */
.tech-decoration {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(0, 198, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.tech-decoration.top-right {
  top: -75px;
  right: -75px;
}

.tech-decoration.bottom-left {
  bottom: -75px;
  left: -75px;
}

.tech-decoration::before,
.tech-decoration::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.tech-decoration::before {
  width: 70%;
  height: 70%;
  border: 1px dashed rgba(0, 198, 255, 0.3);
}

.tech-decoration::after {
  width: 40%;
  height: 40%;
  background: rgba(0, 198, 255, 0.1);
}