/* ==========================================================================
   AMNEZIAVPN.HOMES - 官方核心样式系统
   设计风格: Deep Basalt Carbon & Laser Violet / Electric Cobalt Blue
   (深空玄武岩碳黑 + 激光霓虹紫 / 电离冷钴蓝高光渐变 - 开源密码学与硬核抗审查极客风)
   ========================================================================== */

:root {
  /* 基础碳黑与玄武岩层叠色彩 */
  --bg-basalt: #08090e;
  --bg-surface: #0e111a;
  --bg-card: #131724;
  --bg-card-hover: #1a2033;
  --bg-card-active: #222942;
  --bg-glass: rgba(19, 23, 36, 0.82);
  --bg-terminal: #07080c;

  /* 核心极客色彩: 激光霓虹紫 & 电离冷钴蓝 */
  --laser-violet: #8b5cf6;
  --laser-violet-light: #a78bfa;
  --laser-violet-bright: #c084fc;
  --electric-cobalt: #3b82f6;
  --electric-cobalt-light: #60a5fa;
  --cyber-cyan: #06b6d4;
  --cyber-cyan-bright: #22d3ee;
  --matrix-green: #10b981;
  --matrix-green-bright: #34d399;
  --alert-red: #f43f5e;
  --warning-amber: #f59e0b;

  /* 渐变系统 */
  --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  --grad-primary-hover: linear-gradient(135deg, #9d74ff 0%, #60a5fa 100%);
  --grad-cyan-cobalt: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --grad-card: linear-gradient(180deg, rgba(26, 32, 51, 0.7) 0%, rgba(14, 17, 26, 0.9) 100%);
  --grad-terminal-header: linear-gradient(90deg, #131724 0%, #1a2033 100%);

  /* 霓虹辉光 */
  --glow-violet: 0 0 25px rgba(139, 92, 246, 0.4);
  --glow-violet-lg: 0 0 50px rgba(139, 92, 246, 0.28);
  --glow-cobalt: 0 0 25px rgba(59, 130, 246, 0.4);
  --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.35);
  --glow-green: 0 0 15px rgba(16, 185, 129, 0.45);

  /* 边框体系 */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-violet: rgba(139, 92, 246, 0.3);
  --border-cobalt: rgba(59, 130, 246, 0.3);
  --border-glow: rgba(139, 92, 246, 0.65);

  /* 文本颜色 */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  --text-violet: #c084fc;
  --text-cobalt: #60a5fa;
  --text-cyan: #22d3ee;
  --text-green: #34d399;

  /* 字体栈 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* 布局与圆角 */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --max-width: 1200px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-basalt);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-basalt);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 25%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 15% 60%, rgba(6, 182, 212, 0.05) 0%, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

button, input, select {
  font-family: inherit;
}

/* 容器与版心 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--glow-violet);
}

.nav-logo-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--laser-violet-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

section[id], header[id], div[id], article[id] {
  scroll-margin-top: 80px;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  position: relative;
  cursor: pointer;
  transition: color 0.25s ease;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

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

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--glow-violet);
}

.btn-primary:hover {
  background: var(--grad-primary-hover);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.55);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border-violet);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--laser-violet);
  box-shadow: var(--glow-violet);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

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

/* 徽章 Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-violet {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--text-violet);
}

.badge-cobalt {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--text-cobalt);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--text-cyan);
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--matrix-green-bright);
}

.badge-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* 脉冲状态小圆点 */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.status-dot-green {
  background-color: var(--matrix-green-bright);
  box-shadow: 0 0 10px var(--matrix-green-bright);
}

.status-dot-green::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--matrix-green-bright);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* 终端外壳组件 */
.terminal-card {
  background: var(--bg-terminal);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-md);
  box-shadow: var(--glow-violet);
  overflow: hidden;
}

.terminal-header {
  background: var(--grad-terminal-header);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

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

.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* 页面区段结构 */
.section {
  padding: 80px 0;
  position: relative;
}

.section-dark {
  background: rgba(14, 17, 26, 0.45);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-tag {
  margin-bottom: 14px;
}

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

.section-title span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Hero 首屏 */
.hero-section {
  padding: 70px 0 90px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge-wrap {
  margin-bottom: 20px;
}

.hero-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #ffffff 10%, var(--laser-violet-light) 50%, var(--electric-cobalt-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

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

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

.metric-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 13px;
  color: var(--text-dark);
  margin-top: 4px;
}

/* Hero 右侧动态终端与报文模拟器预览 */
.hero-terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: #cbd5e1;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.terminal-prompt {
  color: var(--laser-violet);
  font-weight: 700;
}

.terminal-cmd {
  color: #f8fafc;
}

.terminal-res-success {
  color: var(--matrix-green-bright);
}

.terminal-res-cyan {
  color: var(--cyber-cyan-bright);
}

.terminal-res-violet {
  color: var(--laser-violet-light);
}

.terminal-block-code {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 10px 0;
  font-size: 12px;
}

/* 核心特性卡片网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--border-violet);
  transform: translateY(-4px);
  box-shadow: var(--glow-violet);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--laser-violet-light);
  margin-bottom: 20px;
}

.feature-card:hover .feature-icon-wrap {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--glow-violet);
}

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

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* 交互组件 1: 报文特征熵与白噪声混淆对比仪 */
.inspector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow-violet);
  overflow: hidden;
}

.inspector-tabs {
  display: flex;
  background: rgba(14, 17, 26, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px;
  gap: 6px;
}

.inspector-tab-btn {
  flex: 1;
  padding: 12px 18px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.inspector-tab-btn.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--laser-violet);
  color: #fff;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.inspector-tab-btn.danger-active {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.inspector-body {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.inspector-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.entropy-meter-wrap {
  margin: 20px 0;
  background: rgba(0, 0, 0, 0.4);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.entropy-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.entropy-bar-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.entropy-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.hex-stream-box {
  background: #050608;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  max-height: 250px;
  overflow-y: auto;
  color: #94a3b8;
  word-break: break-all;
}

.hex-highlight-tag {
  color: #f43f5e;
  font-weight: 700;
  background: rgba(244, 63, 94, 0.15);
  padding: 1px 3px;
  border-radius: 2px;
}

.hex-junk-tag {
  color: #34d399;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  padding: 1px 3px;
  border-radius: 2px;
}

/* 交互组件 2: 协议握手与全球延迟看板 */
.latency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.protocol-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.protocol-table {
  width: 100%;
  border-collapse: collapse;
}

.protocol-table th {
  text-align: left;
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

.protocol-table td {
  padding: 14px 10px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.protocol-table tr:hover td {
  background: rgba(139, 92, 246, 0.05);
}

.node-ping-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node-ping-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.node-ping-card:hover {
  border-color: var(--border-violet);
  background: var(--bg-card-hover);
}

.node-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.node-flag {
  font-size: 18px;
}

.node-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

.node-type {
  font-size: 11px;
  color: var(--text-dark);
}

.node-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
}

.node-ms {
  font-size: 15px;
  font-weight: 700;
  color: var(--matrix-green-bright);
}

/* 交互组件 3: 场景跑分看板 */
.benchmark-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.bench-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.bench-tab-btn:hover, .bench-tab-btn.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-violet);
}

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

.bench-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.bench-metric-card:hover {
  border-color: var(--border-violet);
}

.bench-val {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  margin: 12px 0 6px 0;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 定价卡片 (Pricing) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.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: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-violet);
  box-shadow: var(--glow-violet);
}

.pricing-card.featured {
  background: var(--grad-card);
  border: 2px solid var(--laser-violet);
  box-shadow: var(--glow-violet-lg);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-5px);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: var(--glow-violet);
}

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.pricing-desc {
  font-size: 12px;
  color: var(--text-dark);
  margin-bottom: 20px;
  min-height: 36px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--laser-violet-light);
}

.pricing-num {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 900;
  color: #fff;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-dark);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
}

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

.pricing-feature-icon {
  width: 16px;
  height: 16px;
  color: var(--matrix-green-bright);
  flex-shrink: 0;
}

/* FAQ 手风琴 */
.faq-wrap {
  max-width: 820px;
  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-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-violet);
}

.faq-item.active {
  border-color: var(--laser-violet);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
  user-select: none;
}

.faq-question:hover {
  color: var(--laser-violet-light);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  color: var(--text-dark);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--laser-violet);
}

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

.faq-answer-inner {
  padding-bottom: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* 资讯中心与公报列表 (News) */
.news-filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

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

.news-filter-btn:hover, .news-filter-btn.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-violet);
}

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

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

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

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.news-full-content {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.8;
}

.news-full-content h4 {
  font-size: 16px;
  color: #fff;
  margin: 16px 0 8px 0;
}

.news-full-content code {
  background: rgba(0, 0, 0, 0.4);
  color: var(--laser-violet-light);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 12px;
}

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

.news-toggle-btn:hover {
  color: #fff;
}

/* 分页器 (Pagination) */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover {
  border-color: var(--laser-violet);
  color: #fff;
}

.page-btn.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-violet);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--border-subtle);
}

/* CTA 通栏 Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22) 0%, rgba(59, 130, 246, 0.18) 100%);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-violet);
}

.cta-banner-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 30px auto;
}

/* 帮助中心与文档结构 (Help) */
.doc-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.doc-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-nav-item a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.doc-nav-item a:hover, .doc-nav-item.active a {
  background: rgba(139, 92, 246, 0.15);
  color: var(--laser-violet-light);
}

.doc-content-body {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.doc-article-section {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-article-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.doc-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.doc-step-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px 0;
}

/* 页脚 Footer */
.footer {
  background: #050609;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px 0;
  margin-top: auto;
}

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

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--laser-violet-light);
  padding-left: 3px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dark);
}

/* 移动端汉堡菜单 */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .inspector-body {
    grid-template-columns: 1fr;
  }
  .latency-grid {
    grid-template-columns: 1fr;
  }
  .bench-content-panel {
    grid-template-columns: 1fr;
  }
  .doc-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #090a10;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }
  .hero-title {
    font-size: 32px;
  }
  .section-title {
    font-size: 26px;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

