/* ===================================================================
   悠兔 (you-tu.lat) - 核心样式表 (Pure Native CSS)
   UI规范: Zero-Gravity Floating Glassmorphism & Muted Slate-Teal Aesthetics
   配色: Midnight Slate (#0A0E17), Frosted Charcoal (#131A26),
         Glacial Teal (#2DD4BF), Soft Periwinkle Blue (#818CF8), Crisp Text (#F1F5F9)
   特性: 无外部重型依赖 / 极速轻量 / 丝滑锚点过渡 / 昼夜自适应
   =================================================================== */

:root {
  /* 白天模式颜色变量 (默认) */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-subtle: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-color: rgba(203, 213, 225, 0.8);
  --border-focus: #0d9488;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;

  /* 核心 Slate-Teal & Periwinkle 配色 */
  --teal: #0d9488;
  --teal-glow: rgba(13, 148, 136, 0.25);
  --periwinkle: #6366f1;
  --periwinkle-glow: rgba(99, 102, 241, 0.25);

  --accent-gradient: linear-gradient(135deg, #0d9488 0%, #4f46e5 100%);
  --accent-gradient-alt: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  --teal-periwinkle-mesh: radial-gradient(at 0% 0%, rgba(13, 148, 136, 0.15) 0px, transparent 50%),
                          radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.15) 0px, transparent 50%);

  --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 20px 35px -10px rgba(13, 148, 136, 0.15), 0 0 1px 1px rgba(13, 148, 136, 0.3);

  --badge-bg: rgba(13, 148, 136, 0.1);
  --badge-color: #0f766e;
  
  --header-bg: rgba(248, 250, 252, 0.85);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 夜间模式颜色变量 (Muted Slate-Teal UI 规格) */
[data-theme="dark"] {
  --bg-primary: #0A0E17;
  --bg-surface: #131A26;
  --bg-surface-elevated: #162030;
  --bg-subtle: #1a2538;
  --bg-card: rgba(19, 26, 38, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #2DD4BF;

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-light: #64748B;

  --teal: #2DD4BF;
  --teal-glow: rgba(45, 212, 191, 0.35);
  --periwinkle: #818CF8;
  --periwinkle-glow: rgba(129, 140, 248, 0.35);

  --accent-gradient: linear-gradient(135deg, #2DD4BF 0%, #818CF8 100%);
  --accent-gradient-alt: linear-gradient(135deg, #38BDF8 0%, #2DD4BF 100%);
  --teal-periwinkle-mesh: radial-gradient(at 0% 0%, rgba(45, 212, 191, 0.12) 0px, transparent 55%),
                          radial-gradient(at 100% 100%, rgba(129, 140, 248, 0.12) 0px, transparent 55%);

  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --card-shadow-hover: 0 20px 40px -10px rgba(45, 212, 191, 0.2), 0 0 1px 1px rgba(45, 212, 191, 0.3);

  --badge-bg: rgba(45, 212, 191, 0.15);
  --badge-color: #5eead4;

  --header-bg: rgba(10, 14, 23, 0.85);
}

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

/* 丝滑滚动体验 */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

/* 布局容器 */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航栏 - Frosted Glassmorphism */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

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

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px var(--teal-glow);
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--teal);
  background: var(--badge-bg);
}

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

/* 精致专业昼夜模式切换按钮 (无粗糙Emoji，纯微质感半透明玻璃) */
.theme-toggle-btn {
  background: rgba(125, 140, 160, 0.08);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition);
  outline: none;
  backdrop-filter: blur(8px);
}

.theme-toggle-btn:hover {
  background: rgba(125, 140, 160, 0.16);
  transform: translateY(-1px);
  border-color: var(--teal);
  color: var(--teal);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-icon-sun { display: block; }
.theme-icon-moon { display: none; }

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

/* 按钮通用样式 (CTA) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--teal-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--teal-glow);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ===================================================================
   主视觉区 (Hero Section) - 双栏排版 + 零重力漂浮客户端卡片
   =================================================================== */

.hero-section {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
  background-image: var(--teal-periwinkle-mesh);
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--badge-bg);
  color: var(--badge-color);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulseLatency 2s infinite;
}

@keyframes pulseLatency {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-headline {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

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

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-intro {
  font-size: 0.98rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

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

/* 零重力漂浮客户端卡片 (Zero-Gravity Float Physics) */
.floating-card-wrapper {
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

.client-status-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--card-shadow), 0 0 20px rgba(45, 212, 191, 0.08);
  animation: zeroGravityFloat 6s ease-in-out infinite;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.client-status-card:hover {
  border-color: var(--teal);
  box-shadow: var(--card-shadow-hover);
}

@keyframes zeroGravityFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(0.8deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.client-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.client-latency {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 4px;
}

.client-route-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.route-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.route-val {
  font-weight: 600;
  color: var(--text-main);
}

.speed-meter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.speed-meter-item {
  display: flex;
  flex-direction: column;
}

.speed-meter-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.speed-meter-item .num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* 信任指标/数据栏 */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  margin-top: 50px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

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

/* 区域通用标题 */
.section {
  padding: 85px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

/* ===================================================================
   交互式 Smart BGP 故障容灾演示组件 (Auto-Switch Widget)
   =================================================================== */

.failover-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px);
  max-width: 980px;
  margin: 0 auto;
}

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

.failover-title-group h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.failover-title-group p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.failover-canvas {
  width: 100%;
  height: 220px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.failover-svg-wrapper {
  width: 100%;
  height: 100%;
}

.route-path-main {
  stroke: var(--teal);
  stroke-width: 3;
  stroke-dasharray: 6 6;
  animation: dashAnimation 20s linear infinite;
  fill: none;
  transition: opacity 0.5s ease, stroke 0.5s ease;
}

.route-path-backup {
  stroke: var(--periwinkle);
  stroke-width: 3;
  stroke-dasharray: 6 6;
  fill: none;
  opacity: 0.2;
  transition: opacity 0.5s ease, stroke-width 0.5s ease;
}

.failover-svg-wrapper.is-rerouting .route-path-main {
  opacity: 0.2;
  stroke: #ef4444;
}

.failover-svg-wrapper.is-rerouting .route-path-backup {
  opacity: 1;
  stroke-width: 3.5;
  animation: dashAnimation 15s linear infinite;
}

@keyframes dashAnimation {
  to { stroke-dashoffset: -1000; }
}

.node-group {
  cursor: default;
}

.failover-status-bar {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: 0.9rem;
}

.failover-status-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

/* ===================================================================
   Bento 架构网格 & 产品核心优势介绍 (3个图文卡片)
   =================================================================== */

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

/* 具有微质感边框光晕的深色磨砂玻璃卡片 */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: var(--card-shadow-hover);
}

.bento-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.bento-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.bento-title {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.bento-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* 流媒体图卡 & AI 支持图卡展示区 */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(16px);
}

.showcase-card:hover {
  border-color: var(--teal);
  box-shadow: var(--card-shadow-hover);
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.badge-stream {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-ai {
  background: rgba(45, 212, 191, 0.12);
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.showcase-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.showcase-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.icon-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.icon-pill:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red { background-color: #ef4444; }
.dot-blue { background-color: #3b82f6; }
.dot-teal { background-color: #2dd4bf; }
.dot-purple { background-color: #8b5cf6; }
.dot-amber { background-color: #f59e0b; }

/* ===================================================================
   套餐价格对比表 (Pricing Matrix) - 弹性时间切换器 (月付/季付/年付)
   =================================================================== */

.pricing-billing-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.billing-toggle-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: var(--radius-full);
  display: inline-flex;
  gap: 4px;
  box-shadow: var(--card-shadow);
}

.billing-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  outline: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.billing-tab-btn.active {
  background: var(--teal);
  color: #0A0E17;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--teal-glow);
}

.discount-pill {
  font-size: 0.72rem;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.billing-tab-btn.active .discount-pill {
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.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-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(16px);
}

.pricing-card.popular {
  border-color: var(--teal);
  box-shadow: 0 12px 36px var(--teal-glow);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-header {
  margin-bottom: 24px;
  text-align: center;
}

.pricing-plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.pricing-cost {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

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

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
  transition: var(--transition-fast);
}

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

.pricing-features {
  list-style: none;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

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

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
}

/* ===================================================================
   用户评价 (User Reviews)
   =================================================================== */

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

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}

.review-stars {
  color: #f59e0b;
  margin-bottom: 14px;
  font-size: 1rem;
}

.review-text {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient-alt);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===================================================================
   常见问题解答 (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-color);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(16px);
}

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

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

.faq-question::-webkit-details-marker {
  display: none;
}

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

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--teal);
}

.faq-answer {
  padding: 0 24px 22px 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.68;
}

/* 底部 CTA 转换横幅 */
.cta-banner {
  margin-top: 80px;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 16px 40px var(--teal-glow);
}

.cta-banner h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

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

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

.cta-banner .btn:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* 页脚：严格只保留 4 个指定标题链接 */
.footer {
  margin-top: 80px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 36px;
  transition: var(--transition);
}

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

.footer-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 8px;
}

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

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* 独立子页面通用样式 (关于我们 / 服务条款 / 隐私政策 / 网站地图 / 推荐资讯) */
.subpage-hero {
  padding: 64px 0 44px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.subpage-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.subpage-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.content-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--card-shadow);
  margin: 40px auto 80px;
  max-width: 920px;
}

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

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

.content-box h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text-main);
}

.content-box p, .content-box ul, .content-box ol {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-box ul, .content-box ol {
  padding-left: 24px;
}

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

.notice-callout {
  background: var(--badge-bg);
  border-left: 4px solid var(--teal);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--text-main);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.sitemap-card {
  padding: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.sitemap-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.sitemap-card ul {
  list-style: none;
  padding-left: 0;
}

.sitemap-card li {
  margin-bottom: 10px;
}

.sitemap-card a {
  color: var(--teal);
  font-weight: 500;
}

.sitemap-card a:hover {
  text-decoration: underline;
}

/* ===================================================================
   响应式媒体查询 (@media) - 确保手机端完美单栏并适配大屏
   =================================================================== */

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-intro {
    margin: 0 auto 36px;
  }

  .hero-actions {
    justify-content: center;
  }

  .floating-card-wrapper {
    margin: 0 auto;
  }

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

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

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .navbar {
    height: 64px;
  }

  .nav-links {
    display: none; /* 移动端精简头部 */
  }

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

  .hero-subheadline {
    font-size: 1.05rem;
  }

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

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

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .features-grid,
  .showcase-grid,
  .pricing-grid,
  .reviews-grid,
  .sitemap-grid {
    grid-template-columns: 1fr; /* 完美单栏显示 */
    gap: 20px;
  }

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

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

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

  .btn {
    min-height: 48px; /* 适合手指点击 */
  }

  .failover-container {
    padding: 20px;
  }
}

/* ===================================================================
   SEO 深度科普文章专用样式 (Article Layout & Typography)
   =================================================================== */

.article-page {
  padding-bottom: 80px;
}

.article-header {
  padding: 60px 0 36px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
  text-align: left;
}

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

.article-breadcrumbs a {
  color: var(--text-muted);
}

.article-breadcrumbs a:hover {
  color: var(--teal);
}

.article-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-wrapper {
  max-width: 880px;
  margin: 40px auto 0;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--card-shadow);
}

/* 目录 (Table of Contents) */
.article-toc {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 40px;
}

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

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

.toc-list li a {
  font-size: 0.94rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

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

/* 文章正文排版 */
.article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 44px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  position: relative;
}

.article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  background: var(--teal);
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-main);
}

.article-content p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0 0 24px 24px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content strong {
  color: var(--text-main);
}

.article-content a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content a:hover {
  color: var(--periwinkle);
}

/* 比较表格 */
.article-table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

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

.article-table th {
  background: var(--bg-subtle);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.article-table td {
  padding: 14px 18px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

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

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

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

.related-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition-fast);
}

.related-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.related-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.related-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.7rem;
  }
  .article-wrapper {
    padding: 24px 18px;
    margin-top: 24px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
