/**
 * Fastlink 视觉设计系统样式表 (Lightrail Dossier 方案 A)
 * 采用原生 CSS3 自定义属性、明亮高对比调色体系 (WCAG AA 刚性约束) 与响应式阶梯网格
 */

:root {
  /* 明亮柔和主背景与表面色 */
  --bg-page: #F8FAFC;         /* 柔和雪瓷白背景 */
  --bg-surface: #FFFFFF;      /* 纯白卡片与容器表面 */
  --bg-subtle: #F1F5F9;       /* 浅板岩灰辅助背景 */
  --bg-capsule: rgba(255, 255, 255, 0.88); /* 毛玻璃胶囊底色 */

  /* 高对比度文本色阶 (WCAG AA 约束: 对比度 > 4.5:1 / > 7:1) */
  --text-main: #0F172A;       /* 深松烟墨 (主标题文字，对比度 > 13:1) */
  --text-secondary: #334155;  /* 板岩墨灰 (正文文字，对比度 > 7:1) */
  --text-muted: #64748B;      /* 冷苔灰 (辅助说明文字，对比度 > 4.5:1) */
  --text-inverse: #FFFFFF;    /* 纯白反差文字 */

  /* 稳重科技强调色与状态色彩 */
  --primary: #2563EB;         /* 科技靛蓝 (主 CTA 按钮，对比度 >= 4.5:1) */
  --primary-hover: #1D4ED8;   /* 靛蓝悬停色 */
  --primary-light: #EFF6FF;   /* 极浅蓝背景衬底 */
  --emerald: #059669;         /* 柔和终端青绿 (状态微标与合格指示) */
  --emerald-light: #ECFDF5;   /* 极浅绿背景衬底 */
  --border-subtle: #E2E8F0;   /* 细致灰白边框 */
  --border-highlight: #BFDBFE;/* 柔和高亮边框 */

  /* 投影系统 */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-capsule: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);

  /* 字体栈与间距 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置与无障碍触控约束 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.lightrail-body {
  background-color: var(--bg-page);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 键盘可访问性高对比焦点轮廓 (WCAG AA 约束) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* 默认 SVG 尺寸约束，防止意外撑开 */
svg {
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   全屏极速光轨刻度背景 (Lightrail Grid · 随滚动微幅位移)
   ========================================================================== */
.lightrail-bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lightrail-svg-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* 顶部阅读进度标尺线 (Horizontal Reveal) */
.lightrail-ruler-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #3B82F6 70%, var(--emerald) 100%);
  width: 0%;
  z-index: 1000;
  transition: width 0.08s linear;
}

/* ==========================================================================
   1. 顶部圆润毛玻璃单行导航栏 (大圆角胶囊框架)
   ========================================================================== */
.site-header-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 0.85rem 0;
}

.site-nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-capsule);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0 1.25rem;
  height: 58px;
  box-shadow: var(--shadow-capsule);
  white-space: nowrap;
}

/* 品牌区 */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  min-height: 44px; /* 触控热区 >= 44px */
}

.brand-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* 中间导航项 (单色深墨字配 16px 原生单色 SVG 小图标，单行平铺) */
.nav-menu-desktop {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.35rem;
  margin: 0 1rem;
}

.nav-menu-desktop li {
  list-style: none;
  display: inline-flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  min-height: 44px; /* 触控热区 >= 44px */
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-icon {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.nav-link:hover .nav-icon {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.nav-link.active .nav-icon {
  color: var(--primary);
}

/* 桌面端操作按钮区 */
.nav-actions-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}

.btn-nav-secondary:hover {
  color: var(--text-main);
  border-color: #94A3B8;
  background: var(--bg-subtle);
}

.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-inverse);
  text-decoration: none;
  border-radius: var(--radius-full);
  background: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transition: all var(--transition-fast);
}

.btn-nav-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* 移动端汉堡切换按钮 */
.nav-toggle-mobile {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-bar {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* 移动端全屏抽屉菜单 */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 950;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg-surface);
  z-index: 960;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.drawer-close-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.drawer-nav-item:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.drawer-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-drawer-secondary,
.btn-drawer-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
}

.btn-drawer-secondary {
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: var(--bg-surface);
}

.btn-drawer-primary {
  background: var(--primary);
  color: var(--text-inverse);
}

/* ==========================================================================
   页面主容器
   ========================================================================== */
.page-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   桌面端双轨结构 (方案 A：Lightrail Dossier)
   ========================================================================== */
.dossier-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.lightrail-sidebar {
  position: sticky;
  top: 86px;
  z-index: 80;
}

.lightrail-rail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.rail-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.rail-badge {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.06em;
}

.rail-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.rail-track-container {
  position: relative;
  padding: 0.25rem 0;
  margin-bottom: 1.25rem;
}

.rail-svg-line {
  position: absolute;
  left: 17px;
  top: 10px;
  bottom: 10px;
  width: 16px;
  height: calc(100% - 20px);
  pointer-events: none;
}

.rail-nodes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.rail-node-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-secondary);
  min-height: 44px;
  transition: all var(--transition-fast);
}

.rail-node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid #CBD5E1;
  box-shadow: 0 0 0 2px var(--bg-surface);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.rail-node-label {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.rail-step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.rail-step-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.rail-node:hover .rail-node-link {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.rail-node:hover .rail-node-dot {
  border-color: #94A3B8;
}

.rail-node.active .rail-node-link {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.rail-node.active .rail-node-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.rail-node.active .rail-step-num {
  color: var(--primary);
}

.rail-status-card {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.rail-live-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.rail-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.rail-live-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: #065F46;
}

.btn-rail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-rail-cta:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.dossier-main-stream {
  min-width: 0;
}

/* ==========================================================================
   2. 首屏：非对称光轨双轨导览 (#hero)
   ========================================================================== */
.hero-dossier-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 1.5rem 0 4.5rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--emerald-light);
  border: 1px solid #A7F3D0;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.status-pill-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #065F46;
}

.hero-h1 {
  font-size: 2.75rem;
  font-weight: 850;
  line-height: 1.18;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all var(--transition-fast);
}

.btn-primary-large:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-secondary-large {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-secondary-large:hover {
  background: var(--bg-subtle);
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.hero-audit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.audit-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.audit-icon {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex-shrink: 0;
}

/* 右侧光轨状态看板 */
.dossier-board-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.board-badge {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.board-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-main);
}

.terminal-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-light);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.board-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-block {
  background: var(--bg-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.text-indigo { color: var(--primary); }
.text-emerald { color: var(--emerald); }

.metric-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.topology-diagram {
  background: #0F172A;
  color: #F8FAFC;
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.topology-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #94A3B8;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.topology-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.topo-node {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  text-align: center;
  flex: 1;
}

.topo-node.node-highlight {
  border-color: var(--primary);
  background: #1E3A8A;
}

.node-badge {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: #94A3B8;
}

.node-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #F8FAFC;
}

.topo-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0.8;
}

.arrow-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #475569;
  position: relative;
}

.arrow-line.special-iplc {
  background: #3B82F6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.8);
}

.arrow-text {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: #94A3B8;
  margin-top: 0.2rem;
  white-space: nowrap;
}

/* ==========================================================================
   通用区块标题与徽标
   ========================================================================== */
.section-block {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 780px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   3. 核心优势与节点网络 (#features & #network)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.network-regions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.region-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.region-flag-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.region-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.region-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.region-nodes-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.region-nodes-pill span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
}

.latency-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.latency-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.latency-table th,
.latency-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.latency-table th {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 700;
  white-space: nowrap;
}

.latency-table tbody tr:hover {
  background: #F8FAFC;
}

/* ==========================================================================
   4. 使用场景 (#scenarios)
   ========================================================================== */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.scenario-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.scenario-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 900;
  color: #CBD5E1;
  margin-bottom: 0.5rem;
}

.scenario-title {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.scenario-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.scenario-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-light);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   5. 套餐价格区 (#pricing · 4 款核准套餐 · 响应式多列网格)
   ========================================================================== */
.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #94A3B8;
}

.plan-card.featured-month {
  border: 2px solid var(--primary);
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.15);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.plan-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  white-space: nowrap;
}

.plan-header {
  margin-bottom: 1.25rem;
}

.plan-tier-name {
  font-size: 1.3rem;
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.plan-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.plan-price-wrap {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.price-amount {
  font-size: 2.35rem;
  font-weight: 850;
  color: var(--text-main);
  font-family: var(--font-sans);
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.price-subtext {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald);
  margin-top: 0.25rem;
}

.plan-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.spec-icon {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-plan-select {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--primary);
  border: 1px solid var(--primary);
  transition: all var(--transition-fast);
}

.btn-plan-select:hover {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.plan-card.featured-month .btn-plan-select {
  background: var(--primary);
  color: var(--text-inverse);
}

.plan-card.featured-month .btn-plan-select:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* ==========================================================================
   6. 常见疑问 (#faq · 原生 details open 全展开)
   ========================================================================== */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 900px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: #CBD5E1;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-num {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.faq-icon {
  margin-left: auto;
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.85rem;
}

.faq-inline-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.faq-inline-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   7. 页脚设计 (多列层次架构 · 纯相对路径)
   ========================================================================== */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid #1E293B;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #F8FAFC;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-slogan {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #94A3B8;
  max-width: 380px;
}

.footer-col-title {
  color: #F8FAFC;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  display: inline-block;
  min-height: 24px;
}

.footer-links a:hover {
  color: #F8FAFC;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.6);
}

/* ==========================================================================
   微交互：按钮波纹扩散与微缩 (Ripple Effect)
   ========================================================================== */
.btn-ripple-effect {
  position: relative;
  overflow: hidden;
}

.btn-ripple-effect:active {
  transform: scale(0.98);
}

.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnimation 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================================================
   知识库白皮书专属布局 (knowledge.html: 72% 文章 + 28% Sticky 目录)
   ========================================================================== */
.knowledge-layout {
  display: grid;
  grid-template-columns: 72% 28%;
  gap: 2.5rem;
  align-items: start;
}

.knowledge-articles-stream,
.knowledge-articles-col {
  min-width: 0;
}

.knowledge-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.art-meta-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.art-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.art-intent-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.art-h2-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.art-h3-title {
  font-size: 1.18rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 1.6rem 0 0.85rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--primary);
  line-height: 1.4;
}

.art-body p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.art-body ol, .art-body ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.formula-box {
  background: var(--bg-subtle);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-main);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.diagnostic-box {
  background: var(--bg-surface);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

.import-input-field {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.9rem;
}

.import-input-field:focus {
  border-color: var(--primary);
  outline: none;
}

.cross-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cross-link:hover {
  color: var(--primary-hover);
}

.knowledge-sidebar,
.knowledge-toc-col {
  position: sticky;
  top: 90px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.toc-card {
  display: flex;
  flex-direction: column;
}

.toc-title,
.toc-header {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toc-list,
.toc-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.toc-item {
  list-style: none;
}

.toc-link,
.toc-item a {
  display: flex;
  align-items: baseline;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  line-height: 1.45;
  transition: all var(--transition-fast);
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-right: 0.5rem;
}

.toc-link:hover,
.toc-item a:hover {
  color: var(--primary);
  background: var(--bg-subtle);
}

.toc-link.active,
.toc-item a.active,
.toc-item.active a {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
  border-left: 3px solid var(--primary);
}

.sidebar-cta-box,
.toc-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-toc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-toc-cta:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   响应式断点适配 (360px、390px、768px、1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .dossier-layout {
    display: block;
  }
  .lightrail-sidebar {
    display: none;
  }
  .hero-dossier-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .knowledge-layout {
    grid-template-columns: 1fr;
  }
  .knowledge-sidebar,
  .knowledge-toc-col {
    position: static;
    margin-bottom: 2rem;
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-menu-desktop,
  .nav-actions-desktop {
    display: none;
  }
  .nav-toggle-mobile {
    display: flex;
  }
  .hero-h1 {
    font-size: 2.15rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .pricing-grid-4 {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .network-regions-grid {
    grid-template-columns: 1fr;
  }
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 390px) {
  .site-nav-container {
    padding: 0 0.75rem;
  }
  .nav-capsule {
    padding: 0 0.85rem;
  }
  .page-container {
    padding: 1.5rem 0.85rem 3.5rem;
  }
  .hero-h1 {
    font-size: 1.85rem;
  }
  .board-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* 动效降级 (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .lightrail-svg-mesh {
    transform: none !important;
  }
  .status-pulse-dot {
    animation: none !important;
  }
  .ripple-circle {
    display: none !important;
  }
  .btn-ripple-effect:active {
    transform: none !important;
  }
  .lightrail-ruler-bar {
    transition: none !important;
  }
}
