/* ===================================================================
   Nexitally 奶昔机场 官方推广落地页 - 原生极简高质感样式表 (Phase 2)
   技术控制台 UI 专属配色：
   - 暗色石墨底盘机箱：#111318
   - 动态路由琥珀金：#f59e0b
   - 终端青：#06b6d4 / #22d3ee
   - 状态翡翠绿：#10b981
   0 外部重型依赖 / 极速加载 / 纯原生 CSS3 / 昼夜平滑过渡
=================================================================== */

:root {
  /* 白天模式（默认）变量 */
  --bg-body: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-surface: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-tag: rgba(37, 99, 235, 0.08);
  --bg-input: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-sub: #64748b;
  --text-inverse: #ffffff;
  
  --border-color: rgba(226, 232, 240, 0.9);
  --border-focus: rgba(59, 130, 246, 0.45);
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.25);
  --gradient-brand: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12) 0%, rgba(248, 250, 252, 0) 70%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);

  /* 技术控制台核心调色板 (白天模式 - 优雅现代企业级控制台) */
  --chassis-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --chassis-card: #ffffff;
  --chassis-card-hover: #f1f5f9;
  --chassis-border: rgba(226, 232, 240, 0.95);
  --chassis-border-accent: rgba(37, 99, 235, 0.22);
  --chassis-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.07), 0 4px 16px rgba(37, 99, 235, 0.04);
  --chassis-title: #0f172a;
  --chassis-subtitle: #64748b;
  --chassis-header-border: rgba(226, 232, 240, 0.85);
  --chassis-text: #0f172a;
  --chassis-text-sub: #64748b;
  --chassis-topo-bg: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --chassis-topo-border: rgba(226, 232, 240, 0.9);
  --chassis-topo-grid: rgba(15, 23, 42, 0.05);
  --chassis-center-fill: #ffffff;
  --chassis-center-stroke: #d97706;
  --chassis-center-text: #0f172a;
  --chassis-client-text: #475569;
  --chassis-dial-bg: rgba(15, 23, 42, 0.06);
  --chassis-dial-name: #0f172a;
  --chassis-dial-route: #64748b;
  --chassis-footer-bg: #f1f5f9;
  --chassis-footer-border: rgba(226, 232, 240, 0.9);
  --chassis-footer-text: #475569;

  --color-amber: #d97706;
  --color-amber-glow: #f59e0b;
  --color-cyan: #0284c7;
  --color-cyan-glow: #0284c7;
  --color-emerald: #059669;
  --color-purple: #7c3aed;
  
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 0 35px -5px rgba(37, 99, 235, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  
  --transition-theme: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="dark"] {
  /* 暗黑模式变量 */
  --bg-body: #090d16;
  --bg-card: rgba(17, 23, 38, 0.82);
  --bg-card-hover: rgba(24, 34, 58, 0.9);
  --bg-surface: #0e1424;
  --bg-glass: rgba(11, 16, 29, 0.86);
  --bg-tag: rgba(6, 182, 212, 0.12);
  --bg-input: #1a2333;
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-sub: #94a3b8;
  --text-inverse: #090d16;
  
  --border-color: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(6, 182, 212, 0.45);
  
  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --primary-glow: rgba(56, 189, 248, 0.35);
  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.18) 0%, rgba(9, 13, 22, 0) 70%);
  --gradient-card: linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, rgba(11, 16, 29, 0.9) 100%);
  
  /* 暗黑模式技术控制台专属调色板 */
  --chassis-bg: #0c0e13;
  --chassis-card: #141820;
  --chassis-card-hover: #1a202c;
  --chassis-border: rgba(255, 255, 255, 0.08);
  --chassis-border-accent: rgba(245, 158, 11, 0.35);
  --chassis-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 40px rgba(6, 182, 212, 0.12);
  --chassis-title: #ffffff;
  --chassis-subtitle: #94a3b8;
  --chassis-header-border: rgba(255, 255, 255, 0.1);
  --chassis-text: #f8fafc;
  --chassis-text-sub: #94a3b8;
  --chassis-topo-bg: rgba(10, 13, 19, 0.95);
  --chassis-topo-border: rgba(255, 255, 255, 0.08);
  --chassis-topo-grid: rgba(255, 255, 255, 0.03);
  --chassis-center-fill: #171b23;
  --chassis-center-stroke: #f59e0b;
  --chassis-center-text: #ffffff;
  --chassis-client-text: #94a3b8;
  --chassis-dial-bg: rgba(255, 255, 255, 0.08);
  --chassis-dial-name: #f8fafc;
  --chassis-dial-route: #94a3b8;
  --chassis-footer-bg: rgba(0, 0, 0, 0.4);
  --chassis-footer-border: rgba(255, 255, 255, 0.06);
  --chassis-footer-text: #94a3b8;

  --color-amber: #f59e0b;
  --color-amber-glow: #fbbf24;
  --color-cyan: #06b6d4;
  --color-cyan-glow: #22d3ee;
  --color-emerald: #10b981;
  --color-purple: #8b5cf6;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px -5px rgba(6, 182, 212, 0.35);
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  transition: var(--transition-theme);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 背景光晕装饰 */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 850px;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* 文本渐变工具类 */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* 徽章胶囊 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-tag);
  color: var(--primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  box-shadow: 0 0 10px var(--color-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ===================================================================
   顶部导航栏（Header & Navbar）
=================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-theme);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-logo img,
.brand-logo svg {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  object-fit: cover;
}

.brand-logo:hover img,
.brand-logo:hover svg {
  transform: rotate(6deg) scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s ease, background-color 0.25s ease;
  position: relative;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--bg-tag);
}

.nav-links a.active-nav {
  color: var(--primary);
  font-weight: 700;
  background: var(--bg-tag);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active-nav::after {
  transform: scaleX(1);
}

/* 推荐资讯高亮小徽章 */
.nav-tag-news {
  font-size: 0.68rem;
  background: var(--color-amber);
  color: #000000;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ===================================================================
   高质感昼夜切换按钮（Theme Toggle）
=================================================================== */
.theme-toggle-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  color: var(--text-main);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-1px);
}

.theme-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  position: absolute;
}

.theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ===================================================================
   通用按钮与 CTA 规范
=================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px; /* 移动端触控标准 */
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  min-height: 50px;
}

.btn-block {
  width: 100%;
}

/* ===================================================================
   主视觉区（Hero Section）- 强化大标题与简介
=================================================================== */
.hero-section {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.hero-headline {
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 20px 0 20px;
  color: var(--text-main);
}

/* 主视觉区简介（Intro） */
.hero-intro {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 820px;
  margin: 0 auto 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* 信任指标网格 */
.trust-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  max-width: 1040px;
  margin: 0 auto;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-sub);
  font-weight: 500;
}

/* ===================================================================
   智能分发调度控制中心（Dynamic Ingress-Dispatch Control Center UI）
   遵从专属技术配色规范：
   - 暗色石墨机箱底盘：#111318
   - 动态路由琥珀金：#f59e0b
   - 终端青：#06b6d4 / #22d3ee
   - 状态翡翠绿：#10b981
   - 杜绝 AI 机器人卡通形象，呈现硬核网络工程、遥测仪表盘与光纤矢量流
=================================================================== */
.dispatch-control-section {
  padding: 50px 0 70px;
}

.dispatch-chassis {
  background: var(--chassis-bg);
  border: 1px solid var(--chassis-border-accent);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--chassis-shadow);
  color: var(--chassis-text);
  position: relative;
  overflow: hidden;
  transition: var(--transition-theme);
}

/* 顶部机箱技术状态栏 */
.chassis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--chassis-header-border);
  padding-bottom: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
  transition: border-color 0.35s ease;
}

.chassis-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.terminal-status-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 14px var(--color-emerald);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.chassis-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--chassis-title);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chassis-subtitle {
  font-size: 0.8rem;
  color: var(--chassis-subtitle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.tech-spec-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--chassis-border);
  background: var(--bg-surface);
  color: var(--chassis-text-sub);
  transition: all 0.25s ease;
}

.tech-chip.amber {
  color: var(--color-amber);
  border-color: rgba(217, 119, 6, 0.4);
  background: rgba(217, 119, 6, 0.08);
}

.tech-chip.cyan {
  color: var(--color-cyan-glow);
  border-color: rgba(2, 132, 199, 0.4);
  background: rgba(2, 132, 199, 0.08);
}

[data-theme="dark"] .tech-chip.amber {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

[data-theme="dark"] .tech-chip.cyan {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.08);
}

.tech-chip.emerald {
  color: var(--color-emerald);
  border-color: rgba(5, 150, 105, 0.4);
  background: rgba(5, 150, 105, 0.08);
}

[data-theme="dark"] .tech-chip.emerald {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

/* 实时 BGP 入口遥测面板网格 */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.telemetry-node-card {
  background: var(--chassis-card);
  border: 1px solid var(--chassis-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.telemetry-node-card:hover,
.telemetry-node-card.active {
  border-color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.22);
  transform: translateY(-2px);
}

[data-theme="dark"] .telemetry-node-card:hover,
[data-theme="dark"] .telemetry-node-card.active {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.node-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.node-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--chassis-title);
}

.node-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-emerald);
  background: rgba(5, 150, 105, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

[data-theme="dark"] .node-status-badge {
  background: rgba(16, 185, 129, 0.15);
}

.node-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.metric-subitem {
  display: flex;
  flex-direction: column;
}

.metric-sublabel {
  font-size: 0.68rem;
  color: var(--chassis-text-sub);
  text-transform: uppercase;
}

.metric-subvalue {
  font-size: 1.05rem;
  font-weight: 700;
}

.val-amber { color: var(--color-amber); }
.val-cyan { color: var(--color-cyan-glow); }
.val-emerald { color: var(--color-emerald); }

/* 交互式拓扑图与矢量光纤光流（Vector Light Splines） */
.vector-topology-wrapper {
  background: var(--chassis-topo-bg);
  border: 1px solid var(--chassis-topo-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.topology-notice-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--chassis-subtitle);
  flex-wrap: wrap;
  gap: 10px;
}

.interactive-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-amber);
  font-weight: 600;
}

.topology-svg-container {
  width: 100%;
  height: 280px;
  background: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.05) 0%, rgba(248, 250, 252, 0) 70%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

[data-theme="dark"] .topology-svg-container {
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.06) 0%, rgba(10, 13, 19, 0) 70%);
}

.topology-svg-container svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* 矢量光流动态线条（Vector Light Splines）- 强制 fill: none !important 与 pointer-events: none，杜绝遮罩与鼠标截击 */
.spline-path,
.spline-active,
.spline-failover {
  fill: none !important;
  pointer-events: none;
}

.spline-path {
  stroke: rgba(2, 132, 199, 0.3);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

[data-theme="dark"] .spline-path {
  stroke: rgba(6, 182, 212, 0.25);
}

.spline-active {
  stroke: var(--color-cyan-glow);
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
  animation: flow-spline 1.5s linear infinite;
  filter: drop-shadow(0 0 6px var(--color-cyan-glow));
}

.spline-failover {
  stroke: var(--color-amber);
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
  animation: flow-spline 1.2s linear infinite reverse;
  filter: drop-shadow(0 0 6px var(--color-amber));
}

@keyframes flow-spline {
  from { stroke-dashoffset: 40; }
  to { stroke-dashoffset: 0; }
}

/* 拓扑节点标记 - 采用发光滤镜过渡，彻底移除 transform scale 避免 SVG 坐标空间重构引发的抖动闪屏 */
.topo-node {
  cursor: pointer;
  transition: filter 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.topo-node:hover {
  filter: drop-shadow(0 0 8px rgba(2, 132, 199, 0.65));
}

[data-theme="dark"] .topo-node:hover {
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.85));
}

.topo-client-text {
  fill: var(--chassis-client-text);
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.topo-center-circle {
  fill: var(--chassis-center-fill);
  stroke: var(--chassis-center-stroke);
  transition: fill 0.35s ease, stroke 0.35s ease;
}

.topo-center-text {
  fill: var(--chassis-center-text);
}

.topo-grid-pattern {
  stroke: var(--chassis-topo-grid);
}

/* Tier-1 IEPL 骨干专线动态容量仪表盘（Parametric Easing Breathing Rings） */
.dials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dial-card {
  background: var(--chassis-card);
  border: 1px solid var(--chassis-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.dial-svg-wrap {
  width: 58px;
  height: 58px;
  position: relative;
  flex-shrink: 0;
}

.dial-svg-wrap svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.dial-bg-circle {
  fill: none;
  stroke: var(--chassis-dial-bg);
  stroke-width: 5;
  transition: stroke 0.35s ease;
}

.dial-val-circle {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 60;
  animation: breathe-ring 3.5s ease-in-out infinite alternate;
}

.dial-val-circle.amber {
  stroke: var(--color-amber);
  animation-duration: 3s;
}

.dial-val-circle.cyan {
  stroke: var(--color-cyan-glow);
  animation-duration: 4s;
}

.dial-val-circle.emerald {
  stroke: var(--color-emerald);
  animation-duration: 3.2s;
}

.dial-val-circle.purple {
  stroke: var(--color-purple);
  animation-duration: 3.8s;
}

@keyframes breathe-ring {
  0% { stroke-dashoffset: 75; filter: drop-shadow(0 0 4px var(--color-cyan)); }
  50% { stroke-dashoffset: 45; filter: drop-shadow(0 0 10px var(--color-amber)); }
  100% { stroke-dashoffset: 58; filter: drop-shadow(0 0 6px var(--color-emerald)); }
}

.dial-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dial-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--chassis-dial-name);
  white-space: nowrap;
}

.dial-route {
  font-size: 0.72rem;
  color: var(--chassis-dial-route);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dial-load-text {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 底端硬核遥测输出栏 */
.chassis-footer-ticker {
  background: var(--chassis-footer-bg);
  border: 1px solid var(--chassis-footer-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--chassis-footer-text);
  flex-wrap: wrap;
  gap: 10px;
  transition: all 0.35s ease;
}

.ticker-highlight {
  color: var(--color-cyan-glow);
  font-weight: 700;
}

/* ===================================================================
   区块通用样式
=================================================================== */
.section-block {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  color: var(--text-main);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===================================================================
   核心优势卡片（3个图文卡片）
=================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--bg-tag);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
}

.feature-icon-wrapper svg {
  width: 30px;
  height: 30px;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.feature-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-sub);
}

.feature-points li svg {
  width: 16px;
  height: 16px;
  color: var(--color-emerald);
  flex-shrink: 0;
}

/* ===================================================================
   流媒体图卡 & AI 支持图卡展示区
=================================================================== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.showcase-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.badge-stream {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-ai {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.showcase-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.showcase-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* 服务图标展示阵列 */
.platform-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.platform-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.platform-chip:hover {
  transform: scale(1.04);
  border-color: var(--primary);
}

.chip-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.chip-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.chip-sub {
  font-size: 0.72rem;
  color: var(--color-emerald);
  font-weight: 500;
}

/* ===================================================================
   套餐价格对比表（真实 Nexitally 套餐价格规范）
=================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  transform: scale(1.03);
  z-index: 2;
}

.popular-ribbon {
  position: absolute;
  top: 14px;
  right: 18px;
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.plan-subtitle {
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-bottom: 20px;
  min-height: 40px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

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

.price-num {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-features li svg {
  width: 16px;
  height: 16px;
  color: var(--color-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ===================================================================
   用户评价（Testimonials）
=================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
}

.review-stars {
  display: flex;
  gap: 4px;
  color: var(--color-amber);
  margin-bottom: 14px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.review-quote {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-info p {
  font-size: 0.78rem;
  color: var(--text-sub);
}

/* ===================================================================
   常见问题解答（FAQ）
=================================================================== */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-sub);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.015);
}

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================================================
   底端号召横幅（Bottom Banner）
=================================================================== */
.cta-banner-section {
  padding: 60px 0 90px;
}

.cta-banner {
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-banner .btn {
  background: #ffffff;
  color: #2563eb;
  font-weight: 700;
}

.cta-banner .btn:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===================================================================
   官方页脚（Footer）- 严格只保留 4 个页面入口
=================================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  padding: 48px 0 36px;
  transition: var(--transition-theme);
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 600;
  transition: color 0.2s ease;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.footer-nav a:hover {
  color: var(--primary);
  background: var(--bg-tag);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-bottom a {
  color: var(--text-sub);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* ===================================================================
   子页面专用排版（Legal / About Pages）
=================================================================== */
.page-container {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.page-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

.page-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-sub);
  font-size: 0.95rem;
}

.page-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.page-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 14px;
}

.page-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 20px 0 10px;
}

.page-body p {
  margin-bottom: 16px;
}

.page-body ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

.page-body li {
  margin-bottom: 8px;
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 24px;
  transition: transform 0.2s ease;
}

.back-home-link:hover {
  transform: translateX(-4px);
}

/* ===================================================================
   响应式媒体查询（Responsive @media）
=================================================================== */
@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-card.popular {
    transform: none;
  }

  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
  }
  
  .nav-links {
    display: none; /* 移动端精简顶部导航，聚焦品牌、切换和CTA */
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
  
  .hero-section {
    padding: 48px 0 32px;
  }
  
  .hero-headline {
    font-size: 2rem;
  }
  
  .hero-intro {
    font-size: 0.98rem;
    margin-bottom: 28px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .hero-cta-group .btn {
    width: 100%;
  }

  .dispatch-chassis {
    padding: 24px 16px;
  }

  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .dials-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-metrics {
    grid-template-columns: 1fr 1fr;
    padding: 16px 12px;
  }
  
  .metric-value {
    font-size: 1.45rem;
  }
  
  .platform-chips {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-nav {
    gap: 16px;
    flex-direction: column;
  }
  
  .page-card {
    padding: 28px 20px;
  }
  
  .cta-banner {
    padding: 40px 20px;
  }
}
