/* ========== 基础变量与重置 ========== */
:root {
  --bg-primary: #0A0A1A;
  --bg-secondary: #111127;
  --bg-tertiary: #1A1A3E;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0C0;
  --text-muted: #6B7280;
  --accent-1: #6366F1;
  --accent-2: #8B5CF6;
  --accent-3: #3B82F6;
  --gradient-primary: linear-gradient(135deg, #6366F1, #8B5CF6);
  --gradient-secondary: linear-gradient(135deg, #3B82F6, #06B6D4);
  --gradient-border: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(139,92,246,0.5));
  --green: #10B981;
  --yellow: #F59E0B;
  --red: #EF4444;
  --cyan: #06B6D4;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
  --font-family: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.nav-logo { font-size: 24px; }
.nav-title {
  font-size: 16px;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* ========== 页面容器 ========== */
.page {
  padding: 80px 48px 48px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Hero区域 ========== */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}
.hero-metrics {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.metric-item {
  text-align: center;
}
.metric-value {
  display: block;
  font-size: 36px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.metric-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ========== Section Headers ========== */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  font-size: 12px;
  color: var(--accent-1);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ========== 场景卡片网格 ========== */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.scenario-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.scenario-card:hover::before { opacity: 1; }
.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}
.card-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.scenario-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag {
  padding: 3px 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent-1);
}
.card-metric {
  margin-bottom: 16px;
}
.card-metric-value {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card-metric-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.card-action {
  color: var(--accent-1);
  font-size: 14px;
  font-weight: 500;
}

/* ========== 培训底部 ========== */
.training-footer {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
}

/* ========== 场景详情页 ========== */
.page-back {
  display: inline-block;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  padding: 8px 0;
  margin-bottom: 16px;
  transition: var(--transition);
}
.page-back:hover { color: var(--accent-1); }

.scene-hero {
  text-align: center;
  padding: 40px 0;
}
.scene-icon { font-size: 48px; margin-bottom: 16px; }
.scene-hero h1 { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
.scene-tagline { color: var(--text-secondary); font-size: 16px; margin-bottom: 36px; }

/* ========== Tab导航 ========== */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 40px;
  padding: 4px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.tab-btn {
  flex: 1;
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-family: var(--font-family);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

/* ========== 架构流程图 ========== */
.arch-flow {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  overflow-x: auto;
}
.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.flow-node {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  min-width: 120px;
  line-height: 1.4;
}
.flow-node.user {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93C5FD;
}
.flow-node.eo {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #A5B4FC;
}
.flow-node.infra {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #C4B5FD;
}
.flow-node.origin {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}
.flow-arrow {
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 300;
}

/* ========== 功能卡片网格 ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.feature-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.feature-icon { font-size: 24px; margin-bottom: 12px; }
.feature-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }

/* ========== 目标市场卡片 ========== */
.target-markets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.market-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.market-card:hover { border-color: var(--border-hover); }
.market-icon { font-size: 28px; margin-bottom: 12px; }
.market-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.market-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 12px; }
.market-examples {
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* ========== 策略步骤 ========== */
.strategy-steps {
  margin-bottom: 40px;
}
.strategy-steps h3 {
  font-size: 18px;
  margin-bottom: 20px;
}
.steps-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}
.step-text {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 140px;
}
.step-arrow {
  color: var(--accent-1);
  font-size: 20px;
}

/* ========== 差异化亮点 ========== */
.diff-highlight {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}
.diff-highlight h3 { font-size: 18px; margin-bottom: 16px; }
.highlight-box {
  padding: 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: #A5B4FC;
  margin-bottom: 12px;
}
.diff-detail {
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

/* ========== 案例卡片 ========== */
.case-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.case-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  font-size: 12px;
  color: var(--yellow);
  margin-bottom: 12px;
}
.case-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 24px; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.case-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.case-section ul {
  list-style: none;
  padding: 0;
}
.case-section ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.case-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-1);
}
.case-results {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.result-item { text-align: center; flex: 1; min-width: 120px; }
.result-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}
.result-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.case-diff {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.case-diff h4 { font-size: 14px; margin-bottom: 8px; }
.case-diff p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.case-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}

/* ========== 价格表格 ========== */
.pricing-info {
  margin-bottom: 40px;
}
.pricing-info h3 { font-size: 18px; margin-bottom: 16px; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.pricing-table th, .pricing-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
}
.pricing-table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pricing-table td { color: var(--text-secondary); }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: var(--bg-card-hover); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.price-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-name { font-size: 14px; color: var(--text-primary); }
.price-type { font-size: 12px; color: var(--accent-1); }

/* ========== 规格网格 ========== */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.spec-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-label { font-size: 12px; color: var(--text-muted); }
.spec-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* ========== API状态标签 ========== */
.status-ok { color: var(--green); font-weight: 600; }
.status-plan { color: var(--yellow); font-size: 12px; padding: 2px 8px; background: rgba(245,158,11,0.1); border-radius: 4px; }
.status-future { color: var(--text-muted); font-size: 12px; }

/* ========== 节点地图 ========== */
.timeline-section h3 { font-size: 18px; margin-bottom: 16px; }
.node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.node-card {
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.node-card.delivered {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.node-card.building {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.node-card.planned {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.node-flag { font-size: 24px; }
.node-name { font-size: 14px; font-weight: 600; }
.node-bw { font-size: 12px; color: var(--accent-1); }
.node-status { font-size: 11px; color: var(--text-muted); }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .page { padding: 70px 20px 32px; }
  .navbar { padding: 10px 16px; }
  .nav-links { display: none; }
  .hero-title { font-size: 32px; }
  .hero-metrics { gap: 24px; }
  .metric-value { font-size: 28px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .flow-row { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .steps-flow { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .case-results { flex-direction: column; gap: 16px; }
}
