/* ==========================================================================
   CyberGuard VPN - Technical SOC & Neon Violet-Black Native Stylesheet
   Color Palette: Deep Obsidian Black (#07050E), Neon Purple (#A855F7),
   Electric Cyan (#06B6D4), Indigo (#6366F1), Alert Amber (#F59E0B)
   Ultra-fast, Zero-framework, Full Responsive
   ========================================================================== */

:root {
  /* Default Light Mode Theme Variables (Refined Violet-Slate) */
  --bg-body: #f8f7ff;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-tag: #f3e8ff;
  --tag-text: #7c3aed;

  --text-main: #0f0d1b;
  --text-secondary: #3b3553;
  --text-muted: #6b6488;
  --text-inverse: #ffffff;

  --border-color: rgba(221, 214, 254, 0.85);
  --border-card: rgba(221, 214, 254, 0.7);
  --border-glow: rgba(168, 85, 247, 0.4);

  --soc-black: #07050e;
  --soc-purple: #a855f7;
  --soc-violet: #8b5cf6;
  --soc-cyan: #06b6d4;
  --soc-amber: #f59e0b;
  --soc-blue: #6366f1;

  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #06b6d4 100%);
  --accent-glow: rgba(168, 85, 247, 0.28);

  --shadow-sm: 0 2px 8px rgba(15, 13, 27, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(124, 58, 237, 0.1);
  --shadow-lg: 0 16px 36px -6px rgba(15, 13, 27, 0.14);
  --shadow-primary: 0 8px 22px -4px rgba(139, 92, 246, 0.42);

  --btn-toggle-bg: rgba(255, 255, 255, 0.85);
  --btn-toggle-border: rgba(221, 214, 254, 0.9);
  --btn-toggle-color: #4c1d95;

  --nav-backdrop: rgba(248, 247, 255, 0.88);
  --code-bg: #0d0a1a;
  --code-text: #c084fc;
  --hero-glow: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.12) 0%, rgba(6, 182, 212, 0.06) 45%, transparent 70%);
  --transition-speed: 0.28s;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

[data-theme="dark"] {
  /* Dark Cyber SOC Telemetry Theme (Deep Obsidian Violet-Black) */
  --bg-body: #07050e;
  --bg-surface: #0e0a1b;
  --bg-card: rgba(18, 13, 34, 0.82);
  --bg-card-hover: rgba(28, 20, 52, 0.95);
  --bg-glass: rgba(18, 13, 34, 0.78);
  --bg-tag: rgba(168, 85, 247, 0.15);
  --tag-text: #c084fc;

  --text-main: #f5f3ff;
  --text-secondary: #a79fc4;
  --text-muted: #726a91;
  --text-inverse: #ffffff;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-card: rgba(168, 85, 247, 0.22);
  --border-glow: rgba(168, 85, 247, 0.55);

  --primary: #a855f7;
  --primary-hover: #c084fc;
  --primary-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
  --accent-glow: rgba(168, 85, 247, 0.45);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.85);
  --shadow-primary: 0 8px 25px -4px rgba(168, 85, 247, 0.55);

  --btn-toggle-bg: rgba(28, 20, 52, 0.85);
  --btn-toggle-border: rgba(168, 85, 247, 0.35);
  --btn-toggle-color: #c084fc;

  --nav-backdrop: rgba(7, 5, 14, 0.88);
  --code-bg: #070410;
  --code-text: #a855f7;
  --hero-glow: radial-gradient(circle at 50% 25%, rgba(168, 85, 247, 0.22) 0%, rgba(99, 102, 241, 0.12) 40%, rgba(6, 182, 212, 0.05) 60%, transparent 75%);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-stack);
  scroll-behavior: smooth;
  scroll-padding-top: 86px; /* Offset for sticky nav */
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-glow);
  pointer-events: none;
  z-index: 0;
}

/* Subtle Tech Scanline Effect in Dark Mode */
[data-theme="dark"] body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.18;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--nav-backdrop);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

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

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

.brand-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
}

.brand-logo:hover .brand-img {
  transform: scale(1.06);
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.55);
}

.brand-text span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

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

.nav-badge-news {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

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

/* Translucent Theme Toggle Button */
.theme-toggle-btn {
  background: var(--btn-toggle-bg);
  border: 1px solid var(--btn-toggle-border);
  color: var(--btn-toggle-color);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.theme-toggle-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

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

/* Primary CTA Buttons */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 8px;
  box-shadow: var(--shadow-primary);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  min-height: 44px;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -2px rgba(16, 185, 129, 0.48);
  opacity: 0.95;
}

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

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  transition: all 0.25s ease;
}

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

/* ==========================================================================
   Hero Section - SOC / Radar HUD / Telemetry
   ========================================================================== */
.hero-section {
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
}

.soc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: var(--bg-tag);
  border: 1px solid var(--border-glow);
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--tag-text);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.rack-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--soc-purple);
  box-shadow: 0 0 10px var(--soc-purple);
  animation: ledPulse 1.8s infinite;
}

@keyframes ledPulse {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 4px var(--soc-purple); }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 14px var(--soc-purple); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 4px var(--soc-purple); }
}

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

.hero-title .gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 34px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

/* 3D WebGL / Canvas Cyber Radar Globe Showcase */
.soc-globe-wrapper {
  position: relative;
  max-width: 1040px;
  margin: 0 auto 40px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.35) 0%, rgba(99, 102, 241, 0.18) 50%, rgba(7, 5, 14, 0.1) 100%);
  padding: 2px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.45), 0 0 35px rgba(168, 85, 247, 0.22);
  overflow: hidden;
}

.soc-globe-container {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.globe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.globe-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
}

.canvas-radar-hud {
  width: 100%;
  height: 440px;
  display: block;
  border-radius: 12px;
  background: #070512;
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.9), 0 8px 30px rgba(124, 58, 237, 0.25);
  position: relative;
}

/* Telemetry Bottom Dock (悬浮遥测底栏) */
.telemetry-dock {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.telemetry-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-color);
}

.telemetry-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
  line-height: 1.25;
  margin-top: 4px;
}

.telemetry-val span {
  font-size: 0.85rem;
  color: var(--primary);
  margin-left: 4px;
  font-weight: 600;
}

.waveform-canvas {
  width: 100%;
  height: 36px;
  margin-top: 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .waveform-canvas {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 85px 0;
  position: relative;
}

.section-alt {
  background-color: rgba(125, 125, 125, 0.02);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.45rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 14px;
}

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

/* ==========================================================================
   3 Core Advantages (3个图文卡片)
   ========================================================================== */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 34px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

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

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

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: var(--bg-tag);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-icon-box svg {
  width: 26px;
  height: 26px;
}

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

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

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
}

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

.feature-list li svg {
  width: 15px;
  height: 15px;
  color: var(--soc-purple);
  flex-shrink: 0;
}

/* ==========================================================================
   Streaming & AI Specialized Cards
   ========================================================================== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 36px 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

.showcase-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.showcase-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-streaming {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.icon-ai {
  background: rgba(6, 182, 212, 0.12);
  color: var(--soc-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.showcase-icon-box svg {
  width: 28px;
  height: 28px;
}

.showcase-title-area h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.showcase-title-area p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.showcase-body {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.service-tag.accent-red { border-left: 3px solid #ef4444; }
.service-tag.accent-cyan { border-left: 3px solid var(--soc-cyan); }
.service-tag.accent-emerald { border-left: 3px solid var(--soc-emerald); }
.service-tag.accent-purple { border-left: 3px solid #a855f7; }

/* ==========================================================================
   Interactive Node Explorer & Handshake Terminal (SOC Exclusive)
   ========================================================================== */
.soc-interactive-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 40px;
}

.interactive-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.panel-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-status {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--soc-purple);
}

/* City Hub Grid */
.city-nodes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.city-node-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.city-node-card:hover, .city-node-card.active {
  border-color: var(--soc-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}

.city-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.city-node-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.city-node-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-tag);
  color: var(--primary);
}

.city-node-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.ping-val {
  color: var(--soc-purple);
  font-weight: 700;
}

/* Handshake Diagnostic Console (终端模拟器) */
.terminal-window {
  background: var(--code-bg);
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.18);
  overflow: hidden;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 330px;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}

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

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

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

.terminal-title {
  color: #a79fc4;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 16px;
  color: var(--code-text);
  font-size: 0.82rem;
  line-height: 1.6;
  flex-grow: 1;
  overflow-y: auto;
  max-height: 240px;
}

.terminal-line {
  margin-bottom: 4px;
  word-break: break-all;
}

.term-time {
  color: #6b6488;
  margin-right: 6px;
}

.term-cmd {
  color: var(--soc-cyan);
}

.term-success {
  color: var(--soc-purple);
}

.term-warn {
  color: var(--soc-amber);
}

.terminal-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(168, 85, 247, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-terminal {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--soc-purple);
  color: var(--soc-purple);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-terminal:hover {
  background: var(--soc-purple);
  color: #07050e;
}

/* ==========================================================================
   Realistic Pricing Comparison Table (网上真实专线套餐定价体系)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

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

.pricing-card.popular {
  border: 2px solid var(--primary);
  background: var(--bg-card);
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 42px;
  line-height: 1.5;
  margin-bottom: 20px;
}

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

.price-currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

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

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

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 32px;
  flex-grow: 1;
}

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

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

.plan-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}

.plan-features li.disabled svg {
  color: var(--text-muted);
}

.btn-plan {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   User Reviews & FAQ
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

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

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

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

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

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

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

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

.author-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* FAQ */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-icon {
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  stroke-width: 2;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px;
}

/* Call to action Banner */
.cta-banner {
  margin: 40px auto 80px;
  background: var(--primary-gradient);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(168, 85, 247, 0.45);
}

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

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 30px;
}

.btn-white {
  background: #ffffff;
  color: #6d28d9 !important;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  margin-top: auto;
  position: relative;
  z-index: 10;
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

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

.footer-nav a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding: 4px 6px;
}

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

.footer-copy {
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Content & Articles Subpages
   ========================================================================== */
.page-header {
  padding: 56px 0 38px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 46px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.content-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 40px;
  max-width: 920px;
  margin: 0 auto 70px;
  box-shadow: var(--shadow-sm);
}

.content-box h2 {
  font-size: 1.48rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

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

.content-box h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 22px 0 10px;
}

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

.content-box ul, .content-box ol {
  margin-left: 24px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.75;
}

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

.alert-banner {
  background: var(--bg-tag);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 24px 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* Articles & Insights Feed Cards */
.article-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.article-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--soc-purple);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.article-badge {
  background: var(--bg-tag);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* Sitemap Grid */
.sitemap-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.sitemap-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.25s ease;
  display: block;
}

.sitemap-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.sitemap-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.sitemap-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive Media Queries (@media)
   ========================================================================== */
@media (max-width: 1024px) {
  .cards-grid-3,
  .pricing-grid,
  .reviews-grid,
  .telemetry-dock,
  .soc-interactive-section,
  .article-feed-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-item:not(:last-child)::after {
    display: none;
  }

  .pricing-card.popular {
    transform: none;
  }
  .pricing-card.popular:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Simplified on mobile */
  }

  .nav-wrap {
    height: 64px;
  }

  .hero-section {
    padding: 42px 0 35px;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn-cta,
  .hero-buttons .btn-secondary {
    width: 100%;
  }

  .cards-grid-3,
  .showcase-grid,
  .pricing-grid,
  .reviews-grid,
  .city-nodes-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pricing-card.popular {
    transform: none;
  }

  .canvas-radar-hud {
    height: 280px;
  }

  .cta-banner {
    padding: 38px 24px;
    margin: 30px auto 60px;
  }

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

  .content-box {
    padding: 24px 20px;
  }
}


/* ==========================================================================
   Article & Long-form SEO Content Styles
   ========================================================================== */
.article-header {
  padding: 50px 0 32px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 36px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-breadcrumb a:hover {
  color: var(--primary);
}

.article-main-title {
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}

/* Article Table of Contents (TOC 目录) */
.article-toc {
  background: var(--bg-body);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 30px 0 40px;
}

.article-toc-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-toc-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-toc-list li {
  font-size: 0.94rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.article-toc-list a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-toc-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Article Internal Callouts & CTA Box */
.article-cta-box {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  padding: 28px;
  margin: 36px 0;
  text-align: center;
}

.article-cta-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.article-cta-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 20px;
}

/* Related Reading (相关阅读) */
.related-reading-box {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 2px dashed var(--border-color);
}

.related-reading-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.related-link-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 18px;
  transition: all 0.25s ease;
  display: block;
}

.related-link-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.related-link-card h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
}

.related-link-card:hover h4 {
  color: var(--primary);
}

.related-link-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Code block highlight inside articles */
pre.code-block {
  background: var(--code-bg);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--code-text);
  padding: 18px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  overflow-x: auto;
  margin: 20px 0;
  line-height: 1.6;
}

/* Comparison Table inside articles */
.article-table-wrap {
  overflow-x: auto;
  margin: 24px 0 30px;
}

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

.article-table th {
  background: var(--bg-tag);
  color: var(--tag-text);
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  font-weight: 700;
}

.article-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.article-table tr:nth-child(even) {
  background: rgba(125, 125, 125, 0.02);
}
