/* ==========================================================================
   Boost Net (机场) - Official Stylesheet (style.css)
   Domain: https://boostnet-cloud.click
   Aesthetic: Bright & Soft Modern Cloud Network SaaS
   Fully Native CSS3 with CSS Custom Properties & Mobile Multi-breakpoint
   ========================================================================== */

/* --- 1. CSS Custom Properties / Design Tokens --- */
:root {
  /* Swiss Kinetic Precision Palette (High Contrast & Accessible) */
  --color-primary: #1e40af;            /* 稳重靛青蓝强调与主按钮 */
  --color-primary-hover: #1e3a8a;
  --color-primary-light: #eff6ff;
  --color-primary-soft: rgba(30, 64, 175, 0.08);

  --color-indigo: #1e40af;             /* 稳重靛青蓝 */
  --color-secondary: #3b82f6;
  --color-accent: #0284c7;
  --color-accent-soft: rgba(2, 132, 199, 0.08);

  /* Feedback & State Colors */
  --color-success: #059669;
  --color-success-bg: #ecfdf5;
  --color-success-border: #a7f3d0;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-info: #0284c7;
  --color-info-bg: #f0f9ff;

  /* Surfaces & Backgrounds */
  --bg-frost: #f7f9fa;                 /* 柔和霜白背景 */
  --bg-page: #f7f9fa;
  --bg-surface: #ffffff;               /* 通透纯白表面 */
  --bg-surface-elevated: #ffffff;
  --bg-cloud: #f1f4f8;                 /* 浅云灰表面 */
  --bg-subtle: #f1f4f8;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfe;

  /* Typography Colors (High Contrast WCAG AAA/AA) */
  --text-main: #0b1120;                /* 深松烟墨主标题 */
  --text-body: #334155;                /* 板岩墨灰正文 */
  --text-muted: #526071;               /* 冷苔灰辅助说明 (对比度达标) */
  --text-light: #64748b;
  --text-inverse: #ffffff;

  /* Borders & Grids */
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-grid: rgba(15, 23, 42, 0.06);
  --border-focus: #1e40af;

  /* Shadows (Soft & Diffused) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 0 24px rgba(30, 64, 175, 0.15);

  /* Typography Stack */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Spacing Scale */
  --space-2: 0.125rem;
  --space-4: 0.25rem;
  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-20: 1.25rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-40: 2.5rem;
  --space-48: 3rem;
  --space-64: 4rem;
  --space-80: 5rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 880px;
  --header-height: 72px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. CSS Reset & Base Rules --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Accessibility: Focus Visible Ring & Target Offsets */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

section[id], article[id], .anchor-target, .kb-card, details.faq-card {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-frost);
}

/* --- 2.5 Swiss Kinetic Geometric Poster Layer --- */
.swiss-kinetic-poster {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: var(--bg-frost);
}

.swiss-grid-mesh {
  position: absolute;
  inset: -60px;
  background-image: 
    linear-gradient(to right, var(--border-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-grid) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.85;
  transform: translate3d(calc(var(--poster-shift-x, 0px) * 0.15), calc(var(--poster-shift-y, 0px) * 0.15), 0);
  will-change: transform;
}

.swiss-poster-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(calc(var(--poster-shift-x, 0px) * 0.35), calc(var(--poster-shift-y, 0px) * 0.35), 0);
  will-change: transform;
}

/* Ensure foreground content stacks gracefully above fixed poster */
.site-header, main, .site-footer, .back-to-top, .toast-notice {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  z-index: 100;
}

/* --- 2.6 Horizontal Reveal (横向展开) for Non-Critical Visual Elements --- */
.hr-reveal {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.4) 0%, rgba(30, 64, 175, 0.15) 50%, transparent 100%);
  transform-origin: left center;
  animation: horizontalReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ruler-annotation {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: var(--space-16) 0;
  user-select: none;
}

.ruler-annotation .ruler-tick {
  width: 24px;
  height: 1px;
  background: var(--color-primary);
  transform-origin: left center;
  animation: horizontalReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ruler-annotation .ruler-guide {
  flex: 1;
  height: 1px;
  background: var(--border-light);
  transform-origin: left center;
  animation: horizontalReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes horizontalReveal {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

img, svg, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: var(--space-16);
  color: var(--text-body);
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: var(--space-24);
}

li {
  margin-bottom: var(--space-8);
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  padding: 0.15em 0.4em;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}

/* --- 3. Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-20);
  padding-right: var(--space-20);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-20);
  padding-right: var(--space-20);
}

.section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-48) auto;
}

.section-header h2 {
  margin-bottom: var(--space-12);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Badge / Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pill-primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.pill-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success-border);
}

.pill-purple {
  background: var(--color-purple-soft);
  color: var(--color-purple);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Buttons & Interactive Targets (>= 44x44px for accessibility) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.4;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #1e40af);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
  color: var(--color-primary);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-light);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* --- 4. Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.brand-logo svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.brand-logo .brand-badge {
  font-size: 0.725rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
  margin-left: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-20);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  padding: var(--space-8) var(--space-10);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: currentColor;
}

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

.mobile-nav-actions {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
}

/* --- 5. Hero Section (Asymmetric Two-Track Editorial & Staggered Metrics) --- */
.hero-section {
  padding-top: calc(var(--space-64) + var(--space-16));
  padding-bottom: var(--space-64);
  position: relative;
}

.hero-two-track {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-48);
  align-items: center;
  text-align: left;
}

.hero-track-editorial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pill {
  margin-bottom: var(--space-20);
}

.hero-title {
  max-width: 900px;
  margin: 0 0 var(--space-20) 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: left;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 0 var(--space-32) 0;
  font-size: clamp(1.05rem, 1.2vw + 0.6rem, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  text-align: left;
}

.hero-cta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
  margin-bottom: var(--space-32);
}

.hero-guarantee {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-20);
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.guarantee-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
}

.guarantee-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
}

/* --- 6. Metrics & Status Banner (Staggered Rhythm) --- */
.hero-track-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: start;
}

.metric-card-staggered {
  margin-top: 24px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-20);
  margin-top: var(--space-48);
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-24) var(--space-20);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.25);
}

.metric-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.metric-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: var(--space-4);
}

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

/* --- 7. Feature Grid & Highlights --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-32) var(--space-24);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-20);
}

.icon-blue { background: var(--color-primary-light); color: var(--color-primary); }
.icon-purple { background: var(--color-purple-soft); color: var(--color-purple); }
.icon-cyan { background: var(--color-accent-soft); color: var(--color-accent); }
.icon-green { background: var(--color-success-bg); color: var(--color-success); }
.icon-orange { background: var(--color-warning-bg); color: var(--color-warning); }

.feature-title {
  font-size: 1.2rem;
  margin-bottom: var(--space-10);
}

.feature-desc {
  font-size: 0.925rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: var(--space-16);
  flex-grow: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-item {
  font-size: 0.775rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* --- 8. Global Nodes & Network Architecture --- */
.node-overview {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-32);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-32);
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-16);
  margin-top: var(--space-24);
}

.node-chip {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-16);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.node-chip:hover {
  background: var(--color-primary-light);
  border-color: rgba(37, 99, 235, 0.3);
}

.node-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  flex-shrink: 0;
}

.node-flag svg {
  width: 26px;
  height: 18px;
  border-radius: 2px;
  display: block;
}

.node-info {
  display: flex;
  flex-direction: column;
}

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

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

/* --- 9. Pricing Section (Clear, Expanded, Transparent) --- */
.pricing-billing-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  margin-bottom: var(--space-40);
}

.billing-switch-wrap {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.billing-opt-btn {
  border: none;
  background: transparent;
  padding: 0.5rem 1.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.billing-opt-btn.active {
  background: var(--bg-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-xs);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-32);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

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

.pricing-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--text-inverse);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.pricing-header {
  margin-bottom: var(--space-20);
}

.plan-name {
  font-size: 1.35rem;
  margin-bottom: var(--space-6);
}

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

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

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

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

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

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-32) 0;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
  font-size: 0.925rem;
  color: var(--text-body);
}

.plan-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Feature comparison table */
.comparison-wrapper {
  margin-top: var(--space-48);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-xs);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.925rem;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-16) var(--space-20);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-main);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:not(:first-child),
.comparison-table th:not(:first-child) {
  text-align: center;
}

/* --- 10. FAQ Section (Default Fully Expanded For Best SEO) --- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-20);
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-20) var(--space-24);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

details.faq-card {
  display: block;
}

.faq-card:hover {
  border-color: rgba(30, 64, 175, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  min-height: 44px;
  cursor: pointer;
  user-select: text;
}

details.faq-card > summary {
  list-style: none;
}

details.faq-card > summary::-webkit-details-marker {
  display: none;
}

.faq-question-text {
  flex: 1;
}

.faq-toggle-icon {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

details[open] .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-question-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-answer {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-left: 40px;
  margin-top: var(--space-12);
}

.faq-footer {
  margin-top: var(--space-16);
  padding-left: 40px;
}

.faq-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  min-height: 44px;
  border-radius: var(--radius-sm);
  padding: 0 var(--space-8);
}

.faq-read-more:hover {
  text-decoration: underline;
  color: var(--color-primary-hover);
}

/* --- 12. Bottom Conversion Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #4f46e5 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-48) var(--space-32);
  color: var(--text-inverse);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: var(--text-inverse);
  margin-bottom: var(--space-16);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto var(--space-32) auto;
  font-size: 1.1rem;
}

.cta-banner .btn-primary {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn-primary:hover {
  background: #f8fafc;
  color: #1d4ed8;
  transform: translateY(-2px);
}

.cta-banner .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-banner .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* --- 13. Knowledge Base Specific Styles (knowledge.html) --- */
.kb-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-areas: "content sidebar";
  gap: var(--space-40);
  margin-top: var(--space-32);
  align-items: start;
}

.kb-content {
  grid-area: content;
  min-width: 0;
}

.kb-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  box-shadow: var(--shadow-xs);
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
}

.kb-sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-light);
}

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

.kb-nav-item {
  margin-bottom: 4px;
}

.kb-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-12);
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.kb-nav-link:hover, .kb-nav-link.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

.kb-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-48);
}

.kb-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-32);
  box-shadow: var(--shadow-xs);
}

.kb-card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--border-light);
}

.step-list {
  list-style: none;
  padding: 0;
  margin: var(--space-20) 0;
  counter-reset: step-counter;
}

.step-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: var(--space-24);
  counter-increment: step-counter;
}

.step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-6);
}

.code-block-wrapper {
  position: relative;
  margin: var(--space-16) 0;
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: var(--space-16);
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  overflow-x: auto;
}

.code-block-wrapper code {
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
}

.code-copy-btn {
  position: absolute;
  top: var(--space-8);
  right: var(--space-8);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0 var(--space-12);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.alert-box {
  padding: var(--space-16) var(--space-20);
  border-radius: var(--radius-md);
  margin: var(--space-20) 0;
  display: flex;
  gap: var(--space-12);
  align-items: flex-start;
  font-size: 0.925rem;
}

.alert-info {
  background: var(--color-info-bg);
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.alert-warning {
  background: var(--color-warning-bg);
  border: 1px solid #fde68a;
  color: #b45309;
}

.alert-success {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success);
}

.client-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-16);
  margin: var(--space-20) 0;
}

.client-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  text-align: center;
  transition: all var(--transition-fast);
}

.client-card:hover {
  background: var(--bg-surface);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.client-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-8);
}

.client-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.client-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- 14. Footer --- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-64);
  padding-bottom: var(--space-32);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-48);
  margin-bottom: var(--space-48);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-12);
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-16);
  color: var(--text-main);
}

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

.footer-links li {
  margin-bottom: var(--space-10);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: var(--space-24);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--space-12);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-20);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--color-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-primary);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   15. Mobile & Multi-breakpoint Responsive Adaptations
   ========================================================================== */

/* Large Tablets / Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-two-track {
    grid-template-columns: 1fr;
    gap: var(--space-36);
    text-align: center;
  }
  
  .hero-track-editorial {
    align-items: center;
  }
  
  .hero-track-editorial .hero-title,
  .hero-track-editorial .hero-subtitle {
    text-align: center;
  }
  
  .hero-track-editorial .hero-cta {
    justify-content: center;
  }
  
  .hero-track-editorial .hero-guarantee {
    justify-content: center;
  }
  
  .metric-card-staggered {
    margin-top: 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-16);
  }

  .node-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  .footer-col:last-child {
    grid-column: span 3;
  }

  .kb-layout {
    grid-template-columns: 1fr 240px;
    grid-template-areas: "content sidebar";
    gap: var(--space-24);
  }

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

/* Tablets (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --space-64: 3rem;
  }

  .site-header {
    background: #ffffff;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-20);
    gap: var(--space-12);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    margin-top: var(--space-8);
    padding-top: var(--space-12);
    border-top: 1px solid var(--border-light);
  }

  .mobile-nav-actions .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .faq-answer, .faq-footer {
    padding-left: 0;
  }

  .hero-section {
    padding-top: var(--space-40);
    padding-bottom: var(--space-40);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
  }

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

  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

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


  /* Swiss Kinetic Poster Mobile Optimization: Reduce complex elements */
  .swiss-poster-canvas circle,
  .swiss-poster-canvas line[stroke-dasharray] {
    display: none;
  }

  .swiss-grid-mesh {
    opacity: 0.5;
  }

  .kb-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
  }

  .kb-sidebar {
    position: static;
    max-height: none;
    order: 1; /* 目录置于文章上方 */
    width: 100%;
    margin-bottom: var(--space-16);
  }

  .kb-content {
    order: 2; /* 文章在目录下方 */
    width: 100%;
  }
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-16);
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .hero-track-metrics {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .client-tabs-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: var(--space-32) var(--space-16);
  }

  .pricing-card {
    padding: var(--space-24) var(--space-16);
  }

  .kb-card {
    padding: var(--space-20) var(--space-16);
  }

  .faq-answer {
    padding-left: 0;
    margin-top: var(--space-8);
  }
}

/* Extra Small Mobile (<= 390px & 360px) */
@media (max-width: 390px) {
  .container, .container-narrow {
    padding-left: var(--space-12);
    padding-right: var(--space-12);
  }

  .billing-switch-wrap {
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius-lg);
  }

  .billing-opt-btn {
    width: 100%;
    border-radius: var(--radius-md);
    text-align: center;
  }

  .hero-guarantee {
    flex-direction: column;
    gap: var(--space-10);
    align-items: flex-start;
  }

  .comparison-wrapper {
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 0;
  }

  .brand-logo {
    font-size: 1.1rem;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hr-reveal, .ruler-annotation .ruler-tick, .ruler-annotation .ruler-guide {
    animation: none !important;
    transform: scaleX(1) !important;
  }
  .swiss-grid-mesh, .swiss-poster-canvas {
    transform: none !important;
    will-change: auto !important;
  }
}
