/* ==========================================================================
   云兔 (Cloud Rabbit) - 极奢隐匿磨砂玻璃设计系统 (Refractive Matte Glass)
   Style: Lunar Stealth Dark Mode & Refractive Matte Glass
   Color Palette: Deep lunar slate (#0B0D13), cold moonbeam silver (#E2E8F0), 
                  stealth violet-grey (#8B5CF6), and subtle neon mint (#10B981).
   ========================================================================== */

:root {
  /* 白天模式 (默认)：白月光冷银与高透微光 */
  --bg-core: #0b0d13;
  --bg-body: #f4f6fa;
  --bg-surface: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.78);
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-subtle: #ebedf5;
  --bg-input: rgba(235, 237, 245, 0.7);

  --text-main: #0b0d13;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverted: #f8fafc;

  --border-glass: rgba(203, 213, 225, 0.7);
  --border-subtle: rgba(226, 232, 240, 0.9);
  --border-focus: #8b5cf6;

  --accent-violet: #8b5cf6;
  --accent-violet-glow: rgba(139, 92, 246, 0.22);
  --accent-mint: #10b981;
  --accent-mint-glow: rgba(16, 185, 129, 0.25);
  --accent-silver: #e2e8f0;
  --accent-slate: #0b0d13;

  --gradient-brand: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #10b981 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
  --gradient-stealth: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);

  --shadow-sm: 0 4px 12px rgba(11, 13, 19, 0.04);
  --shadow-glass: 0 16px 36px -10px rgba(11, 13, 19, 0.08), 0 0 1px 1px rgba(255, 255, 255, 0.6) inset;
  --shadow-glass-hover: 0 24px 48px -12px rgba(139, 92, 246, 0.16), 0 0 1px 1px rgba(139, 92, 246, 0.3) inset;
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 夜间模式：Lunar Stealth Dark 极月深空隐匿模式 */
[data-theme="dark"] {
  --bg-body: #0b0d13;
  --bg-surface: #111520;
  --bg-glass: rgba(17, 21, 32, 0.72);
  --bg-card: rgba(18, 23, 36, 0.75);
  --bg-card-hover: rgba(25, 32, 50, 0.85);
  --bg-subtle: #141a29;
  --bg-input: rgba(20, 26, 41, 0.8);

  --text-main: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverted: #0b0d13;

  --border-glass: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-focus: #8b5cf6;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-glass: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.1) inset;
  --shadow-glass-hover: 0 28px 52px -12px rgba(139, 92, 246, 0.28), 0 0 1px 1px rgba(139, 92, 246, 0.45) inset;
  --shadow-inner: inset 0 2px 6px rgba(0, 0, 0, 0.3);

  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部粘性玻璃导航 */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 8px 24px -6px rgba(11, 13, 19, 0.05);
  transition: all var(--transition-smooth);
}

.header .container {
  max-width: 1380px;
  padding: 0 24px;
}

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

/* 品牌 Logo - 隐匿安全风格徽标 (严格去除幼稚兔子/AI小星星，采用硬核隐匿锁网徽章) */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
  flex-shrink: 0;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1e1b4b 0%, #0b0d13 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  box-shadow: 0 0 16px var(--accent-violet-glow);
  position: relative;
  flex-shrink: 0;
}

.logo-badge svg {
  width: 22px;
  height: 22px;
  stroke: #e2e8f0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
}

.logo-title {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.logo-sub {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-violet);
  font-weight: 700;
}

/* 导航链接目录 - 优雅水平排列，绝对禁止单字折行与重叠 */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.2vw, 16px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
  white-space: nowrap;
}

.nav-links li {
  display: inline-flex;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  white-space: nowrap !important;
  display: inline-block;
  line-height: 1.3;
}

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

/* 推荐资讯高亮标签 */
.nav-link.highlight {
  color: var(--accent-violet);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 5px 12px;
}

.nav-link.highlight:hover {
  background: rgba(139, 92, 246, 0.18);
  color: #a78bfa;
}

/* 导航右侧操作区 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 专业高质感昼夜切换按钮 - 精密半透磨砂玻璃微交互 */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  outline: none;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--accent-violet-glow);
}

.theme-toggle-btn svg {
  width: 19px;
  height: 19px;
}

.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* 按钮通用标准 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: all var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px -4px rgba(124, 58, 237, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(124, 58, 237, 0.6);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 34px;
  font-size: 1.05rem;
}

/* 主视觉区 (Hero Section) - 拟态暗夜流体网格与微折射玻璃 */
.hero-section {
  position: relative;
  padding: 96px 0 76px;
  overflow: hidden;
}

.hero-mesh-background {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.15) 0%, rgba(16, 185, 129, 0.08) 35%, rgba(11, 13, 19, 0) 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

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

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.pulse-radar-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-mint);
  border-radius: 50%;
  position: relative;
}

.pulse-radar-dot::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-mint);
  animation: radar-ripple 2s infinite ease-out;
}

@keyframes radar-ripple {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
  color: var(--text-main);
}

.hero-title-highlight {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 760px;
  margin: 0 auto 38px;
}

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

/* 隐匿伪装护盾互动卡片 (Stealth Camouflage Toggle) */
.stealth-shield-container {
  max-width: 800px;
  margin: 0 auto 56px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-glass);
  transition: all var(--transition-smooth);
}

.stealth-shield-container:hover {
  box-shadow: var(--shadow-glass-hover);
}

.shield-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.shield-info-left {
  text-align: left;
}

.shield-badge-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.shield-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 开关 Toggle 控件 */
.stealth-toggle-switch {
  position: relative;
  width: 60px;
  height: 32px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.stealth-toggle-switch.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  box-shadow: 0 0 16px var(--accent-mint-glow);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-smooth);
}

.stealth-toggle-switch.active .toggle-slider {
  transform: translateX(28px);
}

/* 流量波形可视化与加密隧道状态展示 */
.tunnel-visualizer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.visualizer-metric {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.metric-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-mint { color: var(--accent-mint); }
.status-violet { color: var(--accent-violet); }

/* 核心指标展示 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 850;
  background: linear-gradient(135deg, #e2e8f0 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

[data-theme="light"] .stat-value {
  background: linear-gradient(135deg, #1e1b4b 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* 章节通用结构 */
.section {
  padding: 90px 0;
  position: relative;
}

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

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-violet);
  margin-bottom: 12px;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 2.3rem;
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

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

/* 隐私架构网格 (Privacy Architecture Grid - 3个图文卡片) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 38px 30px;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glass-hover);
  border-color: rgba(139, 92, 246, 0.35);
}

/* 卡片上方科技感雷达光条 */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-violet), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

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

.feature-icon-box {
  width: 56px;
  height: 56px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-violet);
  box-shadow: var(--shadow-inner);
}

.feature-card h3 {
  font-size: 1.32rem;
  font-weight: 750;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

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

.showcase-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px 34px;
  box-shadow: var(--shadow-glass);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

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

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.showcase-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.badge-stream {
  background: rgba(236, 72, 153, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

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

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

.showcase-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.68;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.media-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.media-chip svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.showcase-footer {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.showcase-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* 全球边缘节点监控目录 (Global Edge Node Directory) */
.nodes-board {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-glass);
}

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

.node-search-box {
  position: relative;
  flex-grow: 1;
  max-width: 380px;
}

.node-search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  transition: all var(--transition-smooth);
}

.node-search-box input:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px var(--accent-violet-glow);
}

.node-search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.nodes-status-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.nodes-table-wrapper {
  overflow-x: auto;
}

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

.nodes-table th {
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.nodes-table td {
  padding: 16px 18px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.nodes-table tr:hover td {
  background: var(--bg-subtle);
}

.node-cell-name {
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ping-indicator-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-mint);
  position: relative;
  box-shadow: 0 0 8px var(--accent-mint);
}

.ping-indicator-ring.pulsing::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--accent-mint);
  animation: radar-ripple 2.2s infinite ease-out;
}

.latency-gauge {
  font-weight: 700;
  font-family: monospace;
  font-size: 0.95rem;
}

.latency-excellent { color: var(--accent-mint); }
.latency-good { color: #3b82f6; }
.latency-normal { color: #f59e0b; }

/* 套餐价格对比表 (Pricing) - 参考网上真实加速器价格体系 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 34px 24px;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glass-hover);
}

/* 热门尊享旗舰高亮 */
.pricing-card.featured {
  border: 2px solid var(--accent-violet);
  background: var(--bg-card);
  box-shadow: 0 20px 48px -10px var(--accent-violet-glow);
}

.featured-pill {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 750;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.6px;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.pricing-head {
  margin-bottom: 16px;
}

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

.plan-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 18px 0 22px;
}

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

.price-number {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-main);
}

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

.plan-features-list {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.plan-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.plan-features-list li:last-child {
  border-bottom: none;
}

.plan-features-list li svg {
  width: 17px;
  height: 17px;
  color: var(--accent-mint);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* 用户真实口碑 (Reviews) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.review-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glass-hover);
}

.review-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  margin-bottom: 16px;
}

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

.review-quote {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
  flex-grow: 1;
}

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

.user-avatar-initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  color: var(--accent-violet);
  font-size: 0.95rem;
}

.user-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.user-title {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 常见问题解答 (FAQ) - 折叠手风琴 */
.faq-box {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.faq-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.faq-trigger {
  width: 100%;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

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

.faq-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
  padding: 0 26px;
}

.faq-card.active .faq-collapse {
  max-height: 400px;
  padding: 0 26px 24px;
}

.faq-collapse p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* 底部 CTA 横幅 */
.cta-slate-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #0b0d13 50%, #064e3b 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  color: #ffffff;
  margin-top: 50px;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.cta-slate-banner h2 {
  font-size: 2.4rem;
  font-weight: 850;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-slate-banner p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 34px;
}

/* 页脚规范：严格仅保留 4 个标题，并在新标签页中打开 */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  padding: 48px 0 36px;
  margin-top: 80px;
  transition: background-color var(--transition-smooth);
}

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

.footer-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-smooth);
}

.footer-nav a:hover {
  color: var(--accent-violet);
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 内页公共样式表 (about, terms, privacy, sitemap, insights) */
.page-header {
  padding: 70px 0 46px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border-glass);
}

.page-title {
  font-size: 2.6rem;
  font-weight: 850;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.page-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.page-content-wrapper {
  max-width: 900px;
  margin: 50px auto 90px;
  padding: 0 24px;
}

.content-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 46px 40px;
  box-shadow: var(--shadow-glass);
  line-height: 1.85;
}

.content-card h2 {
  font-size: 1.55rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 36px 0 16px;
  border-left: 4px solid var(--accent-violet);
  padding-left: 14px;
}

.content-card h2:first-of-type {
  margin-top: 0;
}

.content-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 12px;
}

.content-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.content-card ul, .content-card ol {
  color: var(--text-secondary);
  margin: 0 0 22px 24px;
}

.content-card li {
  margin-bottom: 9px;
}

.alert-box {
  background: rgba(139, 92, 246, 0.08);
  border-left: 4px solid var(--accent-violet);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 26px 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.08);
  border-left-color: #ef4444;
}

/* 推荐资讯卡片流 */
.articles-stream {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-glass);
  transition: all var(--transition-smooth);
}

.article-item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--shadow-glass-hover);
}

.article-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.article-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-violet);
  border-radius: var(--radius-full);
}

.article-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.article-summary {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* 网站地图网格 */
.sitemap-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.sitemap-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-smooth);
}

.sitemap-link-card:hover {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  transform: translateX(4px);
}

/* 响应式媒体查询 (@media) */
@media (max-width: 1240px) {
  .nav-links {
    gap: 6px;
  }
  .nav-link {
    font-size: 0.84rem;
    padding: 5px 6px;
  }
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 4px;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 4px 5px;
  }
  .logo-sub {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .features-grid,
  .reviews-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    height: auto;
  }

  .nav-wrapper {
    height: 64px;
  }

  .hero-section {
    padding: 60px 0 44px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 8px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .tunnel-visualizer {
    grid-template-columns: 1fr;
  }

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

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

  .sitemap-list {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }

  .content-card {
    padding: 26px 20px;
  }

  .cta-slate-banner {
    padding: 44px 22px;
  }

  .cta-slate-banner h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.95rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

/* ==========================================================================
   长篇 SEO 深度科普文章专用样式体系 (TOC 目录、面包屑、相关阅读、对比表格)
   ========================================================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color var(--transition-smooth);
}

.breadcrumbs a:hover {
  color: var(--accent-violet);
}

.breadcrumbs span.divider {
  opacity: 0.5;
}

.breadcrumbs span.current {
  color: var(--accent-violet);
  font-weight: 600;
}

/* 文章目录 (Table of Contents) */
.article-toc {
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--accent-violet);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 32px 0 40px;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.toc-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent-violet);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.toc-list li a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-smooth);
}

.toc-list li a:hover {
  color: var(--accent-violet);
  transform: translateX(4px);
}

.toc-list li a::before {
  content: "§";
  color: var(--accent-violet);
  opacity: 0.7;
}

/* 文章正文段落与表格 */
.content-card table.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.content-card table.article-table th {
  background: var(--bg-subtle);
  padding: 14px 18px;
  font-weight: 750;
  color: var(--text-main);
  text-align: left;
  border-bottom: 2px solid var(--border-glass);
  font-size: 0.92rem;
}

.content-card table.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.content-card table.article-table tr:hover td {
  background: var(--bg-subtle);
}

.content-card a.in-text-link {
  color: var(--accent-violet);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all var(--transition-smooth);
}

.content-card a.in-text-link:hover {
  color: #a78bfa;
}

/* 相关阅读网格 (Related Articles) */
.related-posts-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border-glass);
}

.related-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.related-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.related-card:hover {
  border-color: var(--accent-violet);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glass);
}

.related-card-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-violet);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.related-card-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 8px;
}

.related-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: auto;
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
  .article-toc {
    padding: 18px 20px;
  }
}
