/* 顶级科技风格CSS - 极简主义设计 */
:root {
  /* 统一配色方案 */
  --primary-bg: #0a0a0f;
  --secondary-bg: #1a1a2e;
  --tertiary-bg: #16213e;
  --accent-blue: #00d4ff;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06ffa5;
  --accent-gold: #ffd700;
  --accent-red: #ff4757;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.08);
  
  /* 文本颜色系统 */
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-tertiary: #808080;
  --text-accent: var(--accent-cyan);
  
  /* 阴影系统 */
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
  --shadow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
  --shadow-cyan: 0 0 30px rgba(6, 255, 165, 0.3);
  --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.3);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
  
  /* 间距系统 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 5rem;
  
  /* 字体系统 */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* 边框半径系统 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 50%;
  
  /* 过渡动画 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index层级 */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
}

/* 统一容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* 统一间距系统 */
.section-spacing {
  padding: var(--spacing-3xl) 0;
}

.content-spacing {
  margin-bottom: var(--spacing-xl);
}

/* 统一按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-height: 48px;
  gap: var(--spacing-xs);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
}

.btn-outline:hover {
  background: var(--accent-cyan);
  color: var(--primary-bg);
  box-shadow: var(--shadow-cyan);
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-sm);
  min-height: 36px;
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
  min-height: 56px;
}

/* 按钮波纹效果 */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* 动态背景粒子系统 */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: float 6s infinite linear;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* 导航栏 - 玻璃拟态设计 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: var(--z-fixed);
  padding: var(--spacing-md) 0;
  transition: var(--transition-normal);
  height: 80px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  width: 100%;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px var(--accent-blue));
}

.logo-img {
  width: 32px;
  height: 32px;
  filter: brightness(0) saturate(100%) invert(64%) sepia(97%) saturate(1352%) hue-rotate(169deg) brightness(101%) contrast(101%);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-normal);
  position: relative;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  display: block;
}

.nav-links a:hover {
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: var(--transition-normal);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* 英雄区域 - 极简主义设计 */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s ease-in-out infinite alternate;
  line-height: 1.2;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)); }
  to { filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.8)); }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 炫酷滚动提示动画 */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid var(--accent-cyan);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
  margin-bottom: 10px;
}

.scroll-text {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 500;
  animation: pulse 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
  40% { transform: rotate(45deg) translateY(-10px); }
  60% { transform: rotate(45deg) translateY(-5px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* 浮动卡片系统 */
.floating-cards {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  animation: floatCard 8s infinite linear;
}

@keyframes floatCard {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* 主要内容区域 */
.main-content {
  position: relative;
  z-index: 5;
}

/* 科技感模块设计 */
.tech-section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}

/* 核心功能模块 - 玻璃拟态卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

/* 卡片发光边框效果 */
.feature-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-gold), var(--accent-blue));
  border-radius: 22px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: borderRotate 3s linear infinite;
}

.feature-card:hover::before {
  opacity: 0.8;
}

@keyframes borderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 卡片内部光效 */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.feature-card:hover::after {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-cyan);
}

.feature-icon {
  font-size: 3rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  display: block;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-purple);
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  flex-grow: 1;
}

/* 应用场景模块 - 3D效果卡片 */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.scenario-card {
  background: linear-gradient(135deg, var(--glass-bg), rgba(139, 92, 246, 0.1));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 场景卡片发光效果 */
.scenario-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-gold), var(--accent-blue), var(--accent-purple));
  border-radius: 18px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: borderRotate 4s linear infinite reverse;
}

.scenario-card:hover::before {
  opacity: 0.6;
}

/* 场景卡片扫光效果 */
.scenario-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.15), transparent);
  transition: left 0.8s ease;
}

.scenario-card:hover::after {
  left: 100%;
}

.scenario-card:hover {
  transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
  box-shadow: var(--shadow-purple);
  border-color: var(--accent-purple);
}

.scenario-icon {
  font-size: 2.5rem;
  color: var(--accent-purple);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.scenario-card:hover .scenario-icon {
  transform: scale(1.2);
  color: var(--accent-gold);
}

.scenario-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-top: 1rem;
}

/* 技术架构预览 - 霓虹发光效果 */
.architecture-preview {
  background: var(--glass-bg);
  border: 2px solid var(--accent-blue);
  border-radius: 20px;
  padding: 4rem 3rem;
  text-align: center;
  margin: 5rem 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
}

/* 架构预览特殊发光效果 */
.architecture-preview::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, 
    var(--accent-blue) 0%, 
    var(--accent-purple) 25%, 
    var(--accent-gold) 50%, 
    var(--accent-blue) 75%, 
    var(--accent-purple) 100%);
  border-radius: 23px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: borderRotate 6s linear infinite;
}

.architecture-preview:hover::before {
  opacity: 1;
}

/* 架构预览脉冲效果 */
.architecture-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.architecture-preview:hover::after {
  width: 200px;
  height: 200px;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.architecture-preview:hover {
  transform: scale(1.02);
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

.architecture-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}

/* 数据统计模块 - 动态计数器 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-cyan);
  border-color: var(--accent-cyan);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--accent-cyan);
  margin-bottom: 0.8rem;
  animation: countUp 2s ease-out;
  line-height: 1.2;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CTA区域 - 渐变按钮 */
.cta-section {
  text-align: center;
  padding: 5rem 2rem;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  margin: 5rem 0;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-sm);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-2xl);
  font-weight: 600;
  font-size: var(--font-size-lg);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-width: 160px;
  justify-content: center;
  min-height: 48px;
}

.cta-button.primary {
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  box-shadow: var(--shadow-glow);
}

.cta-button.secondary {
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.cta-button::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: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
}

.cta-button.primary:hover {
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.cta-button.secondary:hover {
  background: var(--glass-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--shadow-cyan);
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 280px;
  }
}

/* 页脚 - 极简设计 */
.footer {
  background: var(--secondary-bg);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 架构页面样式 */
.page-architecture {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
}

/* 页面操作按钮 */
.page-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* 页面操作按钮继承统一按钮样式 */
.page-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: var(--text-primary);
  box-shadow: var(--shadow-purple);
}

.page-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.page-actions .btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--glass-border);
}

.page-actions .btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.btn-small {
  padding: var(--spacing-xs) var(--spacing-sm);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
  min-height: 32px;
}

.btn-small:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-cyan);
}

/* 架构介绍 */
.architecture-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.architecture-intro p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.architecture-image {
  margin: 2rem 0;
}

.arch-diagram-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
}

/* 技术详情卡片 */
.tech-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.tech-detail-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}

.tech-detail-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-purple);
}

.tech-detail-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.tech-detail-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tech-detail-card ul {
  list-style: none;
  padding: 0;
}

.tech-detail-card li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.tech-detail-card li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--accent-purple);
  font-size: 0.8rem;
}

.tech-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* 技术卡片增强 */
.tech-description {
  margin-bottom: 1rem;
}

.tech-description p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tech-actions {
  margin-top: 1.5rem;
  text-align: center;
}

.page-scenarios {
  background: linear-gradient(135deg, #0f0a1a 0%, #1a1a2e 50%, #2e1a3e 100%);
}

.page-header {
  text-align: center;
  padding: 8rem 0 4rem;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.page-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.page-intro p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

/* 架构图样式 */
.architecture-diagram {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 3rem 0;
}

.arch-layer {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.arch-layer:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-cyan);
}

.arch-layer h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
  text-align: center;
}

.arch-components {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.arch-component {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.arch-component:hover {
  transform: scale(1.05);
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-purple);
}

.arch-component i {
  font-size: 2rem;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
  display: block;
}

.arch-component span {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* 技术卡片样式 */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.tech-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  cursor: pointer;
}

.tech-card:hover {
  transform: translateY(-10px) rotateY(5deg);
  box-shadow: var(--shadow-cyan);
  border-color: var(--accent-cyan);
}

.tech-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tech-icon i {
  font-size: 3rem;
  color: var(--accent-cyan);
  transition: all 0.3s ease;
}

.tech-card:hover .tech-icon i {
  transform: scale(1.2) rotate(10deg);
  color: var(--accent-gold);
}

.tech-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: center;
}

.tech-card ul {
  list-style: none;
  padding: 0;
}

.tech-card li {
  color: var(--text-secondary);
  padding: 0.3rem 0;
  font-size: 0.9rem;
  position: relative;
  padding-left: 1rem;
}

.tech-card li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 0.7rem;
}

/* 性能指标样式 */
.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.performance-card {
  background: linear-gradient(135deg, var(--glass-bg), rgba(6, 255, 165, 0.1));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.performance-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-cyan);
  border-color: var(--accent-cyan);
}

.performance-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  animation: countUp 2s ease-out;
}

.performance-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* 导航链接激活状态 */
.nav-links a.active {
  color: var(--accent-cyan);
  position: relative;
}

.nav-links a.active::after {
  width: 100%;
}

/* 场景详情样式 */
.scenario-detail {
  margin: 3rem 0;
}

.scenario-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(20px);
}

.scenario-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  transition: left 0.6s ease;
}

.feature-item:hover::before {
  left: 100%;
}

.feature-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-purple);
  border-color: var(--accent-purple);
}

.feature-item i {
  font-size: 3rem;
  color: var(--accent-purple);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.feature-item:hover i {
  transform: scale(1.2) rotate(10deg);
  color: var(--accent-gold);
}

.feature-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 案例卡片样式 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.case-card {
  background: linear-gradient(135deg, var(--glass-bg), rgba(0, 212, 255, 0.05));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.case-card:hover::before {
  left: 100%;
}

.case-card:hover {
  transform: translateY(-15px) rotateY(5deg);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-blue);
}

.case-image {
  text-align: center;
  margin-bottom: 1.5rem;
}

.case-image i {
  font-size: 4rem;
  color: var(--accent-blue);
  transition: all 0.3s ease;
}

.case-card:hover .case-image i {
  transform: scale(1.2);
  color: var(--accent-cyan);
}

.case-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.case-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.case-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.case-stats span {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.case-tech {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.case-tech .tech-tag {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(99, 102, 241, 0.2));
  color: var(--accent-cyan);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.case-tech .tech-tag:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(99, 102, 241, 0.3));
  transform: scale(1.05);
}

/* 技术特色展示样式 */
.tech-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.highlight-item:hover::before {
    left: 100%;
}

.highlight-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.highlight-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.highlight-item h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.highlight-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.highlight-features {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.highlight-features span {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(99, 102, 241, 0.2));
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.highlight-features span:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(99, 102, 241, 0.3));
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* 场景描述样式 */
.scenario-description {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.scenario-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* 安全卡片样式 */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.security-card {
  background: linear-gradient(135deg, var(--glass-bg), rgba(255, 215, 0, 0.05));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.security-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

.security-card:hover::before {
  left: 100%;
}

.security-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-gold);
  border-color: var(--accent-gold);
}

.security-icon {
  margin-bottom: 1.5rem;
}

.security-icon i {
  font-size: 3rem;
  color: var(--accent-gold);
  transition: all 0.3s ease;
}

.security-card:hover .security-icon i {
  transform: scale(1.2) rotate(10deg);
}

.security-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.security-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.security-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.security-card li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.security-card li::before {
  content: '🔒';
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

/* 文档卡片样式 */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.doc-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  transition: left 0.6s ease;
}

.doc-card:hover::before {
  left: 100%;
}

.doc-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-purple);
  border-color: var(--accent-purple);
}

.doc-icon {
  margin-bottom: 1.5rem;
}

.doc-icon i {
  font-size: 3rem;
  color: var(--accent-purple);
  transition: all 0.3s ease;
}

.doc-card:hover .doc-icon i {
  transform: scale(1.2);
  color: var(--accent-blue);
}

.doc-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.doc-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.doc-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.doc-meta span {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.btn-download {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  
  .scenarios-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
}

/* 移动端菜单样式 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--accent-cyan);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav-menu {
  position: fixed;
  top: 80px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  transition: left 0.3s ease;
  z-index: 1000;
}

.mobile-nav-menu.active {
  left: 0;
}

.mobile-nav-links {
  list-style: none;
  padding: 2rem;
  margin: 0;
}

.mobile-nav-links li {
  margin-bottom: 1.5rem;
}

.mobile-nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.mobile-nav-links a:hover {
  background: var(--glass-bg);
  color: var(--accent-cyan);
}

@media (max-width: 1024px) {
  .nav-links {
    gap: clamp(0.5rem, 1.5vw, 1rem);
  }
  
  .nav-links a {
    padding: 0.4rem 0.6rem;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  }
  
  .logo {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 0;
    height: 70px;
  }
  
  .nav-container {
    padding: 0 1rem;
    gap: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .hero {
    padding-top: 70px;
    min-height: 80vh;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 3rem;
  }
  
  .tech-section {
    padding: 3rem 0;
  }
  
  .features-grid,
  .scenarios-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card,
  .scenario-card {
    padding: 2rem;
    min-height: auto;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .architecture-preview {
    padding: 3rem 2rem;
    margin: 3rem 0;
  }
  
  .cta-section {
    padding: 3rem 1rem;
    margin: 3rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .navbar {
    height: 60px;
  }
  
  .hero {
    padding-top: 60px;
    min-height: 70vh;
  }
  
  .hero-content {
    padding: 0 0.5rem;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 2rem;
  }
  
  .tech-section {
    padding: 2rem 0;
  }
  
  .feature-card,
  .scenario-card {
    padding: 1.5rem;
  }
  
  .feature-title {
    font-size: 1.2rem;
  }
  
  .feature-desc {
    font-size: 0.9rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-card {
    padding: 2rem 1.5rem;
    min-height: 140px;
  }
  
  .stat-number {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }
  
  .architecture-preview {
    padding: 2rem 1.5rem;
  }
  
  .architecture-title {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
  }
  
  .cta-section {
    padding: 2rem 1rem;
  }
  
  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .scroll-indicator {
    bottom: 1rem;
  }
  
  .scroll-arrow {
    width: 25px;
    height: 25px;
  }
  
  .scroll-text {
    font-size: 0.8rem;
  }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, var(--accent-cyan), var(--accent-gold));
}

/* 加载动画 */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--glass-border);
  border-top: 3px solid var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 添加更多科技感元素 */
.tech-grid {
  position: relative;
}

.tech-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.1) 50%, transparent 70%);
  animation: scanLine 3s infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 科技感装饰线条 */
.section-title {
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -50px;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan));
  transform: translateY(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50px;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  transform: translateY(-50%);
}

/* 数据流动画 */
.data-stream {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.data-stream::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--accent-cyan), transparent);
  animation: dataFlow 4s linear infinite;
  left: 10%;
}

.data-stream::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--accent-purple), transparent);
  animation: dataFlow 3s linear infinite 1s;
  right: 15%;
}

@keyframes dataFlow {
  0% { transform: translateY(-100px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* 网格背景 */
.tech-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
  animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.3; }
}

/* 发光边框效果 */
.glow-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
              linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan)) border-box;
  animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* 动态渐变背景 */
.dynamic-gradient {
  background: linear-gradient(-45deg, 
    var(--primary-bg), 
    var(--secondary-bg), 
    rgba(0, 212, 255, 0.1), 
    rgba(139, 92, 246, 0.1));
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 脉冲发光效果 */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from { 
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    border-color: var(--accent-blue);
  }
  to { 
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    border-color: var(--accent-purple);
  }
}

/* Features页面样式 */
.features-section {
    padding: 4rem 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 功能模块样式 */
.feature-module {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 3rem;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.feature-module:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.2);
}

.feature-header {
    display: flex;
    align-items: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(6, 255, 165, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.feature-icon-large i {
    font-size: 2.5rem;
    color: white;
}

.feature-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-subtitle {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-content {
    padding: 2.5rem;
}

.feature-description {
    margin-bottom: 2.5rem;
}

.feature-description p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* 技术参数样式 */
.feature-specs {
    margin-bottom: 2.5rem;
}

.feature-specs h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-cyan);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.feature-specs ul {
    list-style: none;
    padding: 0;
}

.feature-specs li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-specs li:hover {
    color: var(--text-primary);
    padding-left: 1rem;
}

.feature-specs strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* 应用场景标签 */
.feature-scenarios {
    margin-bottom: 2.5rem;
}

.feature-scenarios h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.scenario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    display: inline-block;
    white-space: nowrap;
    border: none;
    outline: none;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.tag.selected {
    background: linear-gradient(135deg, #06ffa5, var(--accent-cyan));
    box-shadow: 0 0 20px rgba(6, 255, 165, 0.5);
    transform: scale(1.05);
}

.tag:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* 技术优势网格 */
.feature-advantages {
    margin-bottom: 2.5rem;
}

.feature-advantages h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.advantage-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.advantage-item i {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    display: block;
}

.advantage-item span {
    color: var(--text-primary);
    font-weight: 500;
}

/* AI演示功能 */
.feature-demo {
    margin-bottom: 2.5rem;
}

.feature-demo h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.demo-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.demo-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.demo-btn:active {
    transform: translateY(0);
}

.demo-result {
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 12px;
     padding: 1.5rem;
     min-height: 100px;
     color: var(--text-secondary);
     transition: all 0.3s ease;
 }
 
 .demo-btn.active {
     background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
     box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
 }
 
 .loading-spinner {
     text-align: center;
     color: var(--accent-cyan);
     font-style: italic;
 }
 
 .demo-content {
     text-align: left;
 }
 
 .demo-content h5 {
     color: var(--accent-cyan);
     font-size: 1.2rem;
     font-weight: 600;
     margin-bottom: 1rem;
 }
 
 .path-steps {
     margin: 1rem 0;
 }
 
 .step {
     padding: 0.5rem 1rem;
     margin: 0.5rem 0;
     border-radius: 8px;
     transition: all 0.3s ease;
 }
 
 .step.completed {
     background: rgba(6, 255, 165, 0.2);
     color: var(--accent-cyan);
     border-left: 4px solid var(--accent-cyan);
 }
 
 .step.current {
     background: rgba(0, 212, 255, 0.2);
     color: var(--accent-cyan);
     border-left: 4px solid var(--accent-cyan);
     animation: pulse 2s infinite;
 }
 
 .step.pending {
     background: rgba(255, 255, 255, 0.05);
     color: var(--text-secondary);
     border-left: 4px solid rgba(255, 255, 255, 0.2);
 }
 
 .recommend-items {
     margin: 1rem 0;
 }
 
 .recommend-item {
     padding: 0.8rem;
     margin: 0.5rem 0;
     background: rgba(255, 255, 255, 0.05);
     border-radius: 8px;
     border-left: 4px solid var(--accent-cyan);
     transition: all 0.3s ease;
 }
 
 .recommend-item:hover {
     background: rgba(0, 212, 255, 0.1);
     transform: translateX(5px);
 }
 
 .difficulty-meter {
     margin: 1rem 0;
 }
 
 .meter-bar {
     width: 100%;
     height: 20px;
     background: rgba(255, 255, 255, 0.1);
     border-radius: 10px;
     overflow: hidden;
     margin-bottom: 0.5rem;
 }
 
 .meter-fill {
     height: 100%;
     background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
     border-radius: 10px;
     transition: width 0.5s ease;
 }
 
 .meter-label {
     color: var(--text-primary);
     font-weight: 500;
 }
 
 .adapt-info {
     margin: 1rem 0;
 }
 
 .adapt-info p {
     margin: 0.3rem 0;
     padding: 0.5rem;
     background: rgba(255, 255, 255, 0.05);
     border-radius: 6px;
 }
 
 .demo-note {
     margin-top: 1rem;
     padding: 1rem;
     background: rgba(0, 212, 255, 0.1);
     border-radius: 8px;
     color: var(--text-secondary);
     font-style: italic;
     border-left: 4px solid var(--accent-cyan);
 }
 
 .tag.selected {
     background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
     box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
 }
 
 @keyframes pulse {
     0%, 100% { opacity: 1; }
     50% { opacity: 0.7; }
 }
 
 .animate-in {
     animation: slideInUp 0.6s ease forwards;
 }
 
 @keyframes slideInUp {
     from {
         opacity: 0;
         transform: translateY(30px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

/* 评估指标网格 */
.feature-metrics {
    margin-bottom: 2.5rem;
}

.feature-metrics h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-item {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(6, 255, 165, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.2);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* 对比表格 */
.feature-comparison {
    margin-bottom: 2.5rem;
}

.feature-comparison h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.comparison-table {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-feature,
.comparison-traditional,
.comparison-smart {
    padding: 1rem;
    text-align: center;
}

.comparison-feature {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-traditional {
    color: #F59E0B;
}

.comparison-smart {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* 协作工具网格 */
.collaboration-features {
    margin-bottom: 2.5rem;
}

.collaboration-features h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.tool-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.tool-item i {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    display: block;
}

.tool-item span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* 创作工具展示 */
.creation-tools {
    margin-bottom: 2.5rem;
}

.creation-tools h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tools-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tool-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tool-category:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
}

.tool-category h5 {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.tool-category ul {
    list-style: none;
    padding: 0;
}

.tool-category li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tool-category li:hover {
    color: var(--text-primary);
    padding-left: 1rem;
}

/* 资源库统计 */
.resource-library {
    margin-bottom: 2.5rem;
}

.resource-library h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.library-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(6, 255, 165, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Features页面响应式设计 */
@media (max-width: 768px) {
    .feature-header {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon-large {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .demo-buttons {
        flex-direction: column;
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .tools-showcase {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid,
    .library-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 高级交互效果动画 */
@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

@keyframes magneticHover {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.02);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 3D变换效果 */
.card-3d {
    transform-style: preserve-3d;
    transition: transform var(--transition-normal);
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(20px);
}

/* 磁性按钮效果 */
.magnetic-element {
    transition: transform var(--transition-normal) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.magnetic-element:hover {
    animation: magneticHover 0.6s ease-in-out;
}

/* 粒子效果容器 */
.particle-explosion {
    position: fixed;
    pointer-events: none;
    z-index: var(--z-tooltip);
}

/* 文字动画效果 */
.text-animated {
    overflow: hidden;
}

.text-animated span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
    animation: textReveal 0.8s ease forwards;
}

/* 增强的悬停效果 */
.enhanced-hover {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.enhanced-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--transition-slow);
}

.enhanced-hover:hover::before {
    left: 100%;
}

/* 脉冲光效 */
.pulse-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

/* 浮动动画 */
.float-animation {
    animation: cardFloat 3s ease-in-out infinite;
}

/* 自定义光标 */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-tooltip);
    transition: transform var(--transition-fast);
    mix-blend-mode: difference;
}

/* 波纹效果 */
@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* 性能优化 */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* 减少动画对性能的影响 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 移动端汉堡菜单样式 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: var(--z-modal);
    transition: var(--transition-normal);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition-fast);
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(var(--bg-color-rgb), 0.98);
    backdrop-filter: blur(20px);
    z-index: var(--z-overlay);
    padding-top: 80px;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.mobile-nav-menu.active {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.mobile-nav-links li {
    width: 100%;
    text-align: center;
}

.mobile-nav-links a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-size: var(--font-size-lg);
    font-weight: 500;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-nav-links a::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: left var(--transition-normal);
}

.mobile-nav-links a:hover::before {
    left: 100%;
}

/* 移动端菜单打开时的body样式 */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* 移动端菜单动画增强 */
.mobile-nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-menu.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-menu.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(7) { transition-delay: 0.4s; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(8) { transition-delay: 0.45s; }

/* 响应式设计系统 */
/* 超小屏幕 (手机竖屏) */
@media (max-width: 480px) {
    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.5rem;
        --spacing-md: 0.75rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 2.5rem;
        
        --font-size-xs: 0.7rem;
        --font-size-sm: 0.8rem;
        --font-size-base: 0.9rem;
        --font-size-lg: 1rem;
        --font-size-xl: 1.1rem;
        --font-size-2xl: 1.3rem;
        --font-size-3xl: 1.6rem;
        --font-size-4xl: 1.9rem;
        --font-size-5xl: 2.2rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .navbar {
        padding: var(--spacing-sm) 0;
        height: 60px;
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav-menu {
        display: block;
    }
    
    .hero {
        padding-top: 60px;
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 0 var(--spacing-sm);
    }
    
    .features-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-card,
    .scenario-card {
        padding: var(--spacing-md);
        min-height: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .stat-card {
        padding: var(--spacing-sm);
        min-height: 120px;
    }
    
    .tech-details {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .tech-detail-card {
        padding: var(--spacing-md);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .cta-button {
        width: 100%;
        max-width: none;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .page-actions {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 小屏幕 (手机横屏/小平板) */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --spacing-xs: 0.4rem;
        --spacing-sm: 0.8rem;
        --spacing-md: 1.2rem;
        --spacing-lg: 1.6rem;
        --spacing-xl: 2.4rem;
        --spacing-2xl: 3.2rem;
        --spacing-3xl: 4rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .navbar {
        height: 70px;
    }
    
    .hero {
        padding-top: 70px;
        min-height: 85vh;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    .tech-details {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cta-button {
        flex: 1;
        min-width: 200px;
        max-width: 300px;
    }
}

/* 中等屏幕 (平板) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }
    
    .tech-details {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .nav-links {
        gap: var(--spacing-md);
    }
    
    .nav-links a {
        font-size: var(--font-size-sm);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* 大屏幕 (桌面) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .scenarios-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tech-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 超大屏幕 (大桌面) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .scenarios-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .tech-details {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content {
        max-width: 1000px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .cta-button,
    .feature-card,
    .scenario-card {
        min-height: 48px;
        padding: var(--spacing-md);
    }
    
    .nav-links a {
        min-height: 44px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    /* 禁用悬停效果 */
    .feature-card:hover,
    .scenario-card:hover,
    .stat-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* 增强点击反馈 */
    .feature-card:active,
    .scenario-card:active,
    .btn:active,
    .cta-button:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .feature-icon,
    .scenario-icon {
        font-size: 1.1em;
    }
    
    .particle,
    .floating-card {
        transform: translateZ(0);
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-content {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .section-spacing {
        padding: var(--spacing-xl) 0;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .particles-container,
    .floating-cards,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero {
        padding-top: 0;
        min-height: auto;
    }
    
    .feature-card,
    .scenario-card,
    .tech-detail-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* AI Chat & Settings Styles */
.ai-chat-section {
    animation: fadeIn 0.5s ease-out;
}

.chat-container {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chat-container:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.chat-message {
    line-height: 1.5;
    font-size: 0.95rem;
    position: relative;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ai-message {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input-area input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent-cyan) !important;
}

.chat-input-area button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--accent-cyan);
}

#chat-history::-webkit-scrollbar {
    width: 6px;
}

#chat-history::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

#chat-history::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#chat-history::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Animation */
#api-settings-modal > div {
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes modalPop {
    from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* AI Sub-modules Styles */
.sub-module {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-module h4 {
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

/* Learning Progress Tracking */
.progress-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.progress-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.progress-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.progress-circle::before {
    content: '';
    position: absolute;
    inset: 10px;
    background: #1a1a2e; /* Fallback */
    background: var(--bg-dark, #1a1a2e);
    border-radius: 50%;
    z-index: 1;
}

.progress-circle span {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.stat-label {
    display: block;
    color: #aaa;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.badge-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge-item {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: scale(1.1) rotate(10deg);
}

.badge-item.locked {
    background: rgba(255, 255, 255, 0.1);
    color: #666;
    box-shadow: none;
}

/* Knowledge Graph */
.knowledge-graph-viz {
    height: 350px;
    background: radial-gradient(circle at center, rgba(30, 30, 50, 0.8), rgba(10, 10, 20, 0.95));
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.graph-node {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid var(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 2;
    padding: 5px;
    animation: floatNode 6s ease-in-out infinite;
}

.graph-node:hover {
    background: var(--accent-purple);
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.6);
    z-index: 10;
}

.graph-node.central {
    width: 90px;
    height: 90px;
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-cyan);
    font-weight: bold;
    font-size: 0.9rem;
    animation-duration: 8s;
}

@keyframes floatNode {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.graph-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform-origin: left center;
    z-index: 1;
}
.assessment-interactive {
    animation: fadeIn 0.5s ease-out;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: black;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.quiz-option {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ddd;
    position: relative;
    overflow: hidden;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    transform: translateX(5px);
    color: white;
}

.quiz-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-option:hover::before {
    opacity: 1;
}

.quiz-progress, .quiz-timer {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.active-node {
    transform: scale(1.2) !important;
    background: var(--accent-purple) !important;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.8) !important;
    z-index: 100 !important;
    border-color: white !important;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

.total-score {
    position: relative;
    overflow: hidden;
}

.total-score::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* 统一可读性与响应式布局。保留原有深色科技配色，仅修正跨页面的尺寸和间距。 */
:root {
    --primary-color: var(--accent-blue);
    --secondary-color: var(--accent-purple);
    --accent-color: var(--accent-cyan);
    --bg-color: var(--secondary-bg);
    --bg-color-rgb: 26, 26, 46;
    --text-color: var(--text-primary);
    --border-radius-md: var(--radius-md);
    --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(calc(100% - 2rem), 1200px);
    padding-left: 0;
    padding-right: 0;
}

.nav-container {
    width: min(calc(100% - 2rem), 1400px);
    padding-left: 0;
    padding-right: 0;
}

.logo {
    min-width: 0;
    white-space: nowrap;
}

.logo-img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.nav-links {
    gap: clamp(0.35rem, 1.25vw, 1rem);
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
}

.nav-links a {
    font-size: 0.95rem;
    padding: 0.5rem 0.6rem;
}

/* 路线图、资料页使用的另一套导航命名，统一到同一套布局规则。 */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 0 0 auto;
    color: var(--accent-cyan);
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(0.35rem, 1.25vw, 1rem);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
}

.hamburger {
    display: none;
}

.page-actions .btn-primary,
.page-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.page-header {
    padding: clamp(6.5rem, 10vw, 8rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}

.page-title {
    line-height: 1.15;
    letter-spacing: 0;
}

.page-subtitle {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.6;
}

.page-intro {
    margin-bottom: 1rem;
}

.page-intro p {
    font-size: 1rem;
    line-height: 1.7;
    padding: 1.1rem 1.4rem;
}

.tech-section {
    padding: clamp(2.75rem, 5vw, 4rem) 0;
}

.section-title {
    margin-bottom: 2rem;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.feature-card,
.scenario-card,
.tech-card,
.feature-item,
.case-card,
.highlight-item,
.tech-detail-card,
.arch-layer {
    min-width: 0;
}

.feature-card {
    padding: clamp(1.35rem, 2.5vw, 2rem);
    min-height: 220px;
}

.feature-title {
    font-size: 1.3rem;
}

.feature-desc,
.scenario-desc {
    font-size: 1rem;
}

.scenario-card {
    padding: clamp(1.35rem, 2.5vw, 2rem);
    min-height: 210px;
}

.scenario-title {
    font-size: 1.25rem;
}

.scenario-detail {
    margin: 1.5rem 0;
}

.scenario-content {
    padding: clamp(1rem, 2.2vw, 2rem);
}

.scenario-features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.feature-item {
    padding: 1.25rem;
}

.feature-item p,
.case-card p {
    font-size: 1rem;
}

.case-stats span,
.tech-tag,
.highlight-features span {
    font-size: 0.875rem;
}

.arch-diagram-preview {
    display: grid;
    gap: 0.6rem;
    max-width: 900px;
    margin: 2rem auto 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(139, 92, 246, 0.12));
    box-shadow: var(--shadow-soft);
}

.arch-preview-layer {
    display: grid;
    grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 2fr);
    align-items: center;
    gap: 1rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(10, 10, 15, 0.45);
}

.arch-preview-layer strong {
    color: var(--accent-cyan);
    font-size: 1rem;
}

.arch-preview-layer span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .navbar {
        height: auto;
        min-height: 72px;
        padding: 0.65rem 0;
    }

    .nav-container {
        flex-wrap: wrap;
        row-gap: 0.4rem;
        column-gap: 0.65rem;
    }

    /* 移动端首行只保留品牌、安装入口和菜单按钮，导航链接单独占一行。 */
    .pwa-install-button {
        order: 2;
        margin-left: auto;
    }

    .mobile-menu-toggle,
    .hamburger {
        order: 3;
        flex: 0 0 auto;
    }

    .nav-links {
        display: flex;
        order: 4;
        flex: 0 0 100%;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 0.2rem;
        padding-bottom: 0.15rem;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.45rem 0.7rem;
    }

    .nav-menu {
        display: flex;
        order: 4;
        flex: 0 0 100%;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 0.2rem;
        padding-bottom: 0.15rem;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.45rem 0.7rem;
    }

    .hamburger {
        display: none !important;
    }

    .mobile-menu-toggle,
    .mobile-nav-menu {
        display: none !important;
    }

    .scenario-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .container,
    .nav-container {
        width: min(calc(100% - 1.5rem), 1200px);
    }

    .logo {
        font-size: 1.15rem;
    }

    .page-header {
        padding-top: 7.5rem;
    }

    .page-intro p {
        padding: 1rem;
    }

    .scenario-features {
        grid-template-columns: 1fr;
    }

    .arch-preview-layer {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .doc-container {
        width: 100%;
        overflow: hidden;
    }
}

/* 文档协作页原先把评论框放在视口外，移动端因此产生横向滚动。 */
.doc-container,
.main-editor,
.editor-content,
.document-area {
    min-width: 0;
}

.editor-content {
    padding-right: 320px;
}

.comment-thread {
    right: 20px !important;
    width: min(280px, calc(100vw - 2rem));
}

@media (max-width: 900px) {
    .editor-content {
        padding-right: 0;
    }

    .comment-thread {
        position: fixed;
        top: 4.5rem !important;
        right: 1rem !important;
        left: auto;
        max-height: 60vh;
        overflow-y: auto;
        z-index: var(--z-modal);
    }

    .suggestions-panel {
        position: absolute;
        right: 1rem;
        width: min(280px, calc(100vw - 2rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Shared guided-learning panel used by the chemistry and history lessons. */
.lesson-panel {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 2200;
    width: min(30rem, calc(100vw - 2rem));
    padding: 1rem 1.1rem;
    color: var(--text-primary, #fff);
    background: rgba(8, 15, 30, 0.94);
    border: 1px solid rgba(0, 212, 255, 0.42);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38), 0 0 24px rgba(0, 212, 255, 0.14);
    backdrop-filter: blur(16px);
    transform: translateX(-50%);
}

.lesson-panel.history-lesson-panel {
    top: 5.5rem;
    right: 1rem;
    bottom: auto;
    left: auto;
    transform: none;
    width: min(27rem, calc(100vw - 2rem));
    border-color: rgba(255, 215, 0, 0.44);
}

.lesson-panel h3 {
    margin: 0.25rem 0 0.55rem;
    color: #fff;
    font-size: 1.08rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.lesson-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.lesson-panel-header > strong {
    display: block;
    margin-top: 0.2rem;
    color: #fff;
    font-size: 0.98rem;
}

.lesson-status {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    white-space: nowrap;
}

.lesson-live-state {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
}

.lesson-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.lesson-kicker {
    color: var(--accent-cyan, #00d4ff);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.history-lesson-panel .lesson-kicker {
    color: #ffd700;
}

.lesson-progress {
    height: 4px;
    margin: 0.75rem 0 0.9rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.lesson-progress-bar {
    width: 0;
    height: 100%;
    background: var(--accent-cyan, #00d4ff);
    border-radius: inherit;
    transition: width 0.25s ease;
}

.history-lesson-panel .lesson-progress-bar {
    background: #ffd700;
}

.lesson-meta,
.lesson-report-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.8rem 0;
}

.lesson-meta span,
.lesson-report-grid span {
    padding: 0.26rem 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    font-size: 0.73rem;
}

.lesson-intro-note,
.lesson-tip,
.lesson-answer-hint {
    margin: 0.8rem 0;
    padding: 0.6rem 0.7rem;
    color: rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.055);
    border-left: 3px solid rgba(0, 212, 255, 0.55);
    font-size: 0.8rem;
    line-height: 1.5;
}

.lesson-tip strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--accent-cyan, #00d4ff);
}

.lesson-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.lesson-action,
.lesson-option {
    min-height: 42px;
    padding: 0.55rem 0.75rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.84rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lesson-action:hover,
.lesson-option:hover,
.lesson-option.selected {
    background: rgba(0, 212, 255, 0.16);
    border-color: rgba(0, 212, 255, 0.7);
    transform: translateY(-1px);
}

.lesson-action-primary {
    color: #06111d;
    background: var(--accent-cyan, #00d4ff);
    border-color: var(--accent-cyan, #00d4ff);
    font-weight: 700;
}

.lesson-action-secondary {
    color: var(--accent-cyan, #00d4ff);
    border-color: rgba(0, 212, 255, 0.42);
}

.history-lesson-panel .lesson-action-primary {
    color: #201600;
    background: #ffd700;
    border-color: #ffd700;
}

.history-lesson-panel .lesson-action-secondary,
.history-lesson-panel .lesson-option:hover,
.history-lesson-panel .lesson-option.selected {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.6);
}

.lesson-options {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.lesson-option {
    width: 100%;
    text-align: left;
}

.lesson-feedback {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.7rem;
    padding: 0.6rem 0.7rem;
    border-left: 3px solid #fbbf24;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    line-height: 1.5;
}

.lesson-feedback.is-correct {
    border-left-color: #22c55e;
}

.lesson-feedback.is-wrong {
    border-left-color: #fb7185;
}

.lesson-report-score {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin: 0.5rem 0;
    color: var(--accent-cyan, #00d4ff);
}

.lesson-report-score strong {
    font-size: 2.7rem;
    line-height: 1;
}

.lesson-report-score span {
    color: rgba(255, 255, 255, 0.65);
}

.pwa-install-button {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.65rem 0.85rem;
    color: #07111b;
    background: var(--accent-cyan, #00d4ff);
    border: 1px solid rgba(0, 212, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.24);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    margin-left: auto;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pwa-install-button:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 8px 26px rgba(0, 212, 255, 0.32);
    transform: translateY(-1px);
}

.pwa-install-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.86);
    outline-offset: 3px;
}

.pwa-install-fallback {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 2100;
    margin-left: 0;
}

/* 联系页的静态演示表单 */
#contact-form {
    scroll-margin-top: 5rem;
}

.contact-form {
    position: relative;
    z-index: 1;
    max-width: 54rem;
    margin: 2rem auto 0;
    text-align: left;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.4rem;
    margin-top: 1rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.76));
    font-size: 0.86rem;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0.85rem;
    color: var(--text-primary, #fff);
    background: rgba(4, 11, 24, 0.72);
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 8px;
    outline: none;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent-cyan, #00d4ff);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.form-field ::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.contact-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.contact-form-actions .cta-button {
    border: 0;
}

.form-status {
    color: #86efac;
    font-size: 0.82rem;
}

.form-note {
    margin-top: 0.9rem !important;
    color: rgba(255, 255, 255, 0.52) !important;
    font-size: 0.76rem !important;
}

/* 课程层和场景控制层共享一个稳定的移动端安全区。 */
.lesson-panel {
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

.pwa-install-button {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
}

.chemistry-page .lesson-panel {
    left: 1rem;
    right: auto;
    transform: none;
    width: min(32rem, calc(100vw - 2rem));
}

@media (max-width: 700px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lesson-panel,
    .lesson-panel.history-lesson-panel,
    .chemistry-page .lesson-panel {
        top: auto;
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
        width: auto;
        max-height: min(44vh, 22rem);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        box-sizing: border-box;
    }

    .history-page .timeline-slider {
        bottom: calc(min(44vh, 22rem) + 1.25rem);
    }

    /* 课程面板承载了历史线索和反馈，移动端收起重复信息面板以避免三层浮层互相遮挡。 */
    .history-page .info-panel {
        display: none;
    }

    .history-page .control-panel {
        width: calc(100vw - 1.5rem);
        max-width: calc(100vw - 1.5rem);
        box-sizing: border-box;
        overflow: hidden;
    }

    .history-page .era-toggle,
    .chemistry-page .molecule-toggle {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .chemistry-page .control-panel {
        top: 5.25rem;
        right: 0.75rem;
        left: 0.75rem;
        transform: none;
        width: calc(100vw - 1.5rem);
        max-width: calc(100vw - 1.5rem);
        padding: 0.7rem;
        border-radius: 12px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .chemistry-page .info-panel {
        top: auto;
        right: 0.75rem;
        bottom: calc(min(44vh, 22rem) + 1.25rem);
        left: 0.75rem;
        transform: none;
        max-width: none;
        max-height: 18vh;
        overflow-y: auto;
        padding: 0.75rem 0.85rem;
        border-radius: 12px;
    }

    .chemistry-page .rotation-indicator {
        display: none;
    }

    .pwa-install-button {
        min-width: 2.5rem;
        width: 2.5rem;
        min-height: 2.5rem;
        padding: 0;
        border-radius: 50%;
        box-shadow: 0 5px 16px rgba(0, 212, 255, 0.25);
    }

    .pwa-install-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .pwa-install-fallback {
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }
}

/* 最终布局基线：所有页面共享同一条视口中轴线，避免旧版规则叠加后出现横向偏移。 */
html,
body {
    width: 100%;
    min-width: 0;
}

body {
    margin: 0;
}

.main-content,
.background-container {
    width: 100%;
    min-width: 0;
}

.navbar {
    inset-inline: 0;
    width: 100%;
}

.container {
    width: min(100%, 1200px);
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.nav-container {
    width: min(100%, 1400px);
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.hero .container,
.hero-content {
    margin-inline: auto;
}

.hero-content {
    width: 100%;
}

.team-page .features-grid,
.team-page .scenarios-grid {
    width: 100%;
    margin-inline: auto;
}

@media (max-width: 600px) {
    .container,
    .nav-container {
        width: 100%;
        padding-inline: 1rem;
    }
}
