/* ==========================================================================
   TAG Network - 企业级零信任网络与 Anycast BGP / IEPL 跨境专线
   视觉主题：黑曜石极夜钛黑底色 + 电离矩阵翡翠绿 / 赛博量子青高光渐变
   (Obsidian Midnight Titanium & Matrix Emerald / Cyber Quantum Cyan)
   ========================================================================== */

:root {
  /* 基础主色板 */
  --bg-primary: #06080c;
  --bg-secondary: #0c1017;
  --bg-card: rgba(13, 19, 27, 0.78);
  --bg-card-hover: rgba(18, 26, 37, 0.92);
  --bg-card-elevated: #111823;
  --bg-terminal: #05070a;

  /* 离子高光与矩阵渐变 */
  --accent-cyan: #00f5d4;
  --accent-emerald: #10b981;
  --accent-mint: #34d399;
  --accent-electric: #00e5ff;
  --accent-glow: rgba(0, 245, 212, 0.28);
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);

  /* 状态色彩 */
  --status-success: #10b981;
  --status-warning: #f59e0b;
  --status-danger: #ef4444;
  --status-info: #00f5d4;

  /* 渐变体系 */
  --gradient-ion: linear-gradient(135deg, #00f5d4 0%, #10b981 100%);
  --gradient-ion-rev: linear-gradient(135deg, #10b981 0%, #00f5d4 100%);
  --gradient-neon: linear-gradient(135deg, #00e5ff 0%, #34d399 100%);
  --gradient-card: linear-gradient(180deg, rgba(17, 24, 39, 0.7) 0%, rgba(10, 14, 20, 0.8) 100%);
  --gradient-border: linear-gradient(135deg, rgba(0, 245, 212, 0.35) 0%, rgba(16, 185, 129, 0.1) 50%, rgba(255, 255, 255, 0.03) 100%);

  /* 文字色彩 */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #06080c;

  /* 边框与阴影 */
  --border-subtle: rgba(16, 185, 129, 0.14);
  --border-medium: rgba(0, 245, 212, 0.25);
  --border-strong: rgba(0, 245, 212, 0.45);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(0, 245, 212, 0.22);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.65);

  /* 字体系统 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  /* 容器与圆角 */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 245, 212, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 35%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul, ol {
  list-style: none;
}

img, svg {
  vertical-align: middle;
}

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 排版工具类 */
.text-gradient {
  background: var(--gradient-ion);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.font-mono { font-family: var(--font-mono); }

/* ==========================================================================
   Header & 导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s, border-color 0.3s;
}

.site-header.scrolled {
  background: rgba(6, 8, 12, 0.96);
  border-bottom-color: var(--border-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* 纯正 Logo：“TAG”，无任何后缀，搭配六边形离子网格徽标 */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.site-logo:hover .logo-icon {
  transform: rotate(45deg);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.45);
}

.logo-text {
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-text span {
  color: var(--accent-cyan);
}

/* 导航链接 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-ion);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 导航右侧按钮组 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background: var(--gradient-ion);
  color: var(--text-dark);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.55);
}

.btn-outline {
  background: rgba(16, 24, 34, 0.5);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 245, 212, 0.08);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

/* 移动端汉堡切换 */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   Hero 区域与微晶光环
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-mint);
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
  max-width: 980px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 820px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
}

.hero-meta-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.hero-meta-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   卡片与模块通用样式
   ========================================================================== */
.section {
  padding: 80px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

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

/* ==========================================================================
   差异化交互组件 1: 多协议动态路由与 DPI 智能适配模拟看板
   ========================================================================== */
.protocol-dashboard {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.protocol-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.proto-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.proto-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

.proto-tab-btn.active {
  background: rgba(0, 245, 212, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.25);
}

.protocol-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-box {
  background: rgba(6, 8, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.metric-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-num.highlight {
  color: var(--accent-cyan);
}

.metric-num.warning {
  color: #ef4444;
}

.metric-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.protocol-status-console {
  background: var(--bg-terminal);
  border: 1px solid rgba(0, 245, 212, 0.15);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #8ae4c4;
  line-height: 1.7;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 11px;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.console-dot.red { background: #ef4444; }
.console-dot.yellow { background: #f59e0b; }
.console-dot.green { background: #10b981; }

/* ==========================================================================
   差异化交互组件 2: 全球 40+ 核心机房 Anycast BGP / IEPL 专线仪表盘
   ========================================================================== */
.jitter-dashboard {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 30px;
}

.jitter-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-title-group h3 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.refresh-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.refresh-trigger-btn:hover {
  background: var(--accent-cyan);
  color: var(--text-dark);
}

.refresh-icon.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.nodes-table-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
}

.nodes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.nodes-table th {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nodes-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nodes-table tr:hover td {
  background: rgba(0, 245, 212, 0.03);
}

.node-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.tag-iepl {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-mint);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-anycast {
  background: rgba(0, 245, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 245, 212, 0.3);
}

.waveform-canvas-container {
  background: var(--bg-terminal);
  border: 1px solid rgba(0, 245, 212, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
}

.waveform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

#jitterWaveform {
  width: 100%;
  height: 90px;
  display: block;
}

/* ==========================================================================
   差异化交互组件 3: AI / 4K·8K 流媒体 / 跨境多店铺跑分看板
   ========================================================================== */
.benchmark-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(12px);
}

.benchmark-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.bench-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bench-nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.bench-nav-btn.active {
  color: var(--accent-cyan);
  background: rgba(0, 245, 212, 0.1);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.2);
}

.bench-panel {
  display: none;
}

.bench-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bench-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bench-item {
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.bench-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bench-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.bench-badge {
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-mint);
}

.bench-meter-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 8px;
}

.meter-fill {
  height: 100%;
  background: var(--gradient-ion);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bench-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.bench-stats strong {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* ==========================================================================
   定价卡片 (Pricing Cards)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 245, 212, 0.25);
}

.pricing-card.popular {
  border-color: var(--accent-cyan);
  background: linear-gradient(180deg, rgba(16, 28, 38, 0.85) 0%, rgba(10, 14, 20, 0.95) 100%);
  box-shadow: 0 10px 30px rgba(0, 245, 212, 0.15);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-ion);
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 245, 212, 0.4);
}

.pricing-header {
  margin-bottom: 20px;
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  min-height: 38px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-secondary);
}

.plan-price {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-period {
  font-size: 14px;
  color: var(--text-muted);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.feature-icon {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   FAQ 手风琴
   ========================================================================== */
.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--border-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.faq-toggle-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding-bottom: 22px;
}

/* ==========================================================================
   新闻与公报模块 (News & Pagination)
   ========================================================================== */
.news-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.filter-btn.active {
  background: rgba(0, 245, 212, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.2);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto 40px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}

.news-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-card);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
}

.news-tag {
  background: rgba(0, 245, 212, 0.1);
  color: var(--accent-cyan);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.news-date {
  color: var(--text-muted);
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.news-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.news-full-content {
  display: none;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.news-full-content.expanded {
  display: block;
  animation: fadeIn 0.3s ease;
}

.news-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.news-toggle-btn:hover {
  color: var(--accent-mint);
  text-decoration: underline;
}

/* 分页器控件 */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.page-btn.active {
  background: var(--gradient-ion);
  color: var(--text-dark);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.3);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ==========================================================================
   帮助中心与排障手册
   ========================================================================== */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.help-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.help-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 22px;
  margin-bottom: 20px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.step-item {
  display: flex;
  gap: 12px;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 245, 212, 0.15);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* 泄漏检测交互小组件 */
.leak-detector {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 36px;
}

/* ==========================================================================
   条款与隐私协议文章排版 (Legal Pages)
   ========================================================================== */
.legal-wrapper {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.legal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.legal-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-cyan);
}

.legal-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.legal-content li {
  margin-bottom: 8px;
}

/* ==========================================================================
   404 与 Go 承接页极客终端
   ========================================================================== */
.gateway-hero {
  min-height: calc(100vh - 76px - 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.terminal-box {
  width: 100%;
  max-width: 680px;
  background: var(--bg-terminal);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 245, 212, 0.15);
  overflow: hidden;
}

.terminal-topbar {
  background: #0f1722;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: var(--accent-cyan);
}

.terminal-log-line {
  margin-bottom: 8px;
  opacity: 0;
  animation: logLineIn 0.3s forwards;
}

@keyframes logLineIn {
  to { opacity: 1; }
}

/* ==========================================================================
   Footer 页脚（严格要求：Logo为简洁大气的“TAG”，严禁带任何域名后缀，
   严禁出现 XML 网站地图 这一项文本链接）
   ========================================================================== */
.site-footer {
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin-top: 16px;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-badges {
  display: flex;
  gap: 16px;
}

.footer-badge-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* ==========================================================================
   响应式断点 (Media Queries)
   ========================================================================== */
@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .protocol-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  .section-title {
    font-size: 26px;
  }
  .mobile-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(6, 8, 12, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .main-nav.open {
    transform: translateY(0);
  }
  .header-actions {
    display: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .bench-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
