/* ==========================================================================
   杏花云 (XingHuaCloud.sbs)
   风格：新中式空灵赛博杏花科技 (Neo-Chinese Ethereal Dark & Cyber Blossom Tech)
   调色盘：深墨曜石 (#0B0C10) · 炭灰板岩 (#16181F) · 杏花粉 (#FFAAA6) · 曦光桃金 (#FFD3B6)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌与色彩系统 (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* 品牌核心色彩 - 新中式赛博杏花色系 */
  --ink-obsidian: #0b0c10;
  --charcoal-slate: #16181f;
  --charcoal-elevated: #1d202a;
  --blossom-pink: #ffaaa6;
  --blossom-pink-rgb: 255, 170, 166;
  --peach-gold: #ffd3b6;
  --peach-gold-rgb: 255, 211, 182;
  --blossom-deep: #ff8e88;

  /* 渐变与流光 */
  --accent-gradient: linear-gradient(135deg, #ffaaa6 0%, #ff8e88 50%, #ffd3b6 100%);
  --accent-glow: radial-gradient(circle, rgba(255, 170, 166, 0.16) 0%, rgba(255, 211, 182, 0.06) 50%, transparent 72%);
  --border-glow: linear-gradient(135deg, rgba(255, 170, 166, 0.35), rgba(255, 211, 182, 0.15));

  /* 亮色模式色彩系统 (瓷白与浅杏烟墨) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-alt: #f1f4f9;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(255, 142, 136, 0.45);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;

  --badge-bg: rgba(255, 170, 166, 0.12);
  --badge-text: #e11d48;
  --badge-border: rgba(255, 170, 166, 0.35);

  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --card-shadow-hover: 0 20px 35px -8px rgba(255, 142, 136, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.04);

  --navbar-bg: rgba(255, 255, 255, 0.88);
  --toggle-bg: rgba(15, 23, 42, 0.05);
  --toggle-border: rgba(15, 23, 42, 0.1);

  /* 基础尺寸与过渡 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-theme: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="dark"] {
  /* 暗黑模式色彩系统 (深墨曜石与赛博杏花) */
  --bg-body: #0b0c10;
  --bg-surface: #16181f;
  --bg-surface-elevated: #1d202a;
  --bg-alt: #13151c;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 170, 166, 0.45);

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-inverse: #0b0c10;

  --badge-bg: rgba(255, 170, 166, 0.12);
  --badge-text: #ffaaa6;
  --badge-border: rgba(255, 170, 166, 0.3);

  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 20px 40px -10px rgba(255, 170, 166, 0.22), 0 0 25px rgba(255, 211, 182, 0.12);

  --navbar-bg: rgba(11, 12, 16, 0.85);
  --toggle-bg: rgba(255, 255, 255, 0.06);
  --toggle-border: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   2. 全局基础与排版重置
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   3. 核心容器与居中控制 (解决“模板不居中”问题)
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

.section-wrapper {
  padding-top: 44px;
  padding-bottom: 54px;
  scroll-margin-top: 74px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

/* 东方雅致衬线字体微调 */
.serif-accent {
  font-family: "Noto Serif SC", "Source Han Serif SC", STSong, "Songti SC", "SimSun", serif;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  text-align: center;
}

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

/* --------------------------------------------------------------------------
   4. 顶部导航栏 (Navbar) - 严格数学居中布局
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-theme);
  width: 100%;
}

/* 使用 3 栏 Grid 保证中间导航目录 100% 相对屏幕数学居中 */
.navbar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  justify-self: start;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0c10;
  box-shadow: 0 4px 14px rgba(255, 170, 166, 0.4);
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  list-style: none;
  justify-self: center;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 2px;
  white-space: nowrap;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* 昼夜模式切换按钮 - 精致透明毛玻璃质感，平滑过渡，无粗糙Emoji */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.theme-toggle-btn:hover {
  background: rgba(255, 170, 166, 0.15);
  border-color: var(--blossom-pink);
  transform: translateY(-1px);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
  color: var(--peach-gold);
}

.moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
  color: var(--blossom-pink);
}

[data-theme="dark"] .sun-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="dark"] .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* 核心 CTA 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  border-radius: var(--radius-full);
  padding: 10px 24px;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #0b0c10;
  box-shadow: 0 4px 18px rgba(255, 170, 166, 0.35);
  border: 1px solid transparent;
}

.btn-primary:hover {
  box-shadow: 0 6px 26px rgba(255, 170, 166, 0.55);
  transform: translateY(-2px);
  color: #0b0c10;
}

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

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

.btn-lg {
  padding: 14px 34px;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   5. 主视觉区 (Hero Section) & Canvas 杏花粒子风场
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 90px;
  padding-bottom: 75px;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* 3D 粒子风场 Canvas - 随鼠标坐标轻盈偏转 */
#blossomCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-glow-bg {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 860px;
  height: 520px;
  background: var(--accent-glow);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 3.85rem);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.brand-highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 740px;
  margin: 0 auto 38px;
  text-align: center;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 36px;
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

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

.metric-value {
  font-size: 1.8rem;
  font-weight: 850;
  color: var(--text-primary);
  margin-bottom: 4px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   6. 实时网络延迟丝带 (Interactive Latency Stream)
   -------------------------------------------------------------------------- */
.latency-ribbon-wrapper {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 60px;
}

.latency-ribbon {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow-x: auto;
  transition: var(--transition);
}

.latency-ribbon:hover {
  border-color: var(--border-hover);
}

.latency-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.latency-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  position: relative;
}

.latency-items-group {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-grow: 1;
  justify-content: flex-end;
}

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

.latency-node-meta {
  display: flex;
  flex-direction: column;
}

.latency-node-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.latency-node-ping {
  font-size: 0.88rem;
  font-weight: 750;
  color: #10b981;
  font-family: monospace;
}

.latency-mini-sparkline {
  width: 54px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   7. 全球节点抽屉展示 (Global Node Drawer)
   -------------------------------------------------------------------------- */
.node-drawer-wrapper {
  width: 100%;
  margin-top: 48px;
}

.node-drawer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.node-drawer-toggle:hover {
  border-color: var(--blossom-pink);
  color: var(--blossom-pink);
}

.node-drawer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  background: var(--bg-alt);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid var(--border-color);
  border-top: none;
}

.node-drawer-wrapper.open .node-drawer-content {
  max-height: 500px;
  padding: 24px;
}

.node-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.node-status-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.node-status-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* 几何环形脉冲波纹 (Strict constraints: no generic sparkle) */
.ring-wave {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  flex-shrink: 0;
}

.ring-wave::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: ringPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes ringPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* --------------------------------------------------------------------------
   8. 核心优势 (3个图文卡片)
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--blossom-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 750;
  margin-bottom: 14px;
  color: var(--text-primary);
}

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

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

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

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

.showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

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

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 650;
  margin-bottom: 18px;
}

.badge-stream {
  background: rgba(255, 170, 166, 0.12);
  color: var(--blossom-pink);
  border: 1px solid rgba(255, 170, 166, 0.35);
}

.badge-ai {
  background: rgba(255, 211, 182, 0.12);
  color: var(--peach-gold);
  border: 1px solid rgba(255, 211, 182, 0.35);
}

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

.showcase-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 26px;
}

.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.platform-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.platform-chip:hover {
  border-color: var(--blossom-pink);
  transform: translateY(-2px);
}

.chip-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.showcase-highlight-box {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.highlight-stat-val {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   10. 套餐价格对比表 (Pricing) - 居中对称与结构优化
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  width: 100%;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center; /* 解决卡片内部不对称居中问题 */
  position: relative;
  transition: var(--transition);
  text-align: center;
}

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

.pricing-card.featured {
  border: 2px solid var(--blossom-pink);
  box-shadow: 0 12px 38px -4px rgba(255, 170, 166, 0.28);
  transform: scale(1.02);
}

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

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #0b0c10;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(255, 170, 166, 0.45);
}

.pricing-header {
  margin-bottom: 14px;
  width: 100%;
}

.pricing-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pricing-target {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-cost {
  margin: 14px 0 20px;
  width: 100%;
}

.cost-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blossom-pink);
  vertical-align: top;
  margin-right: 2px;
}

.cost-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

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

/* 核心优化：清单容器居中，清单文本左对齐，整体卡片光学对称 */
.pricing-features-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 24px;
  flex-grow: 1;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  width: 100%;
  max-width: 295px; /* 控制文本宽度居中 */
}

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

.feature-point svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}

.feature-point strong {
  color: var(--text-primary);
}

.pricing-btn {
  width: 100%;
  padding: 14px;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   11. 用户评价 (Testimonials)
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

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

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

.review-quote {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

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

.user-meta-name {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--text-primary);
}

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

/* --------------------------------------------------------------------------
   12. 常见问题解答 (FAQ 手风琴)
   -------------------------------------------------------------------------- */
.faq-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

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

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

.faq-trigger:hover {
  color: var(--blossom-pink);
}

.faq-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--blossom-pink);
}

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

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

/* --------------------------------------------------------------------------
   13. 页脚 (Footer) - 严格仅保留四个指定标题链接
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 38px;
  transition: var(--transition-theme);
  width: 100%;
}

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

.footer-link {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.footer-link:hover {
  color: var(--blossom-pink);
}

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

/* --------------------------------------------------------------------------
   14. 独立合规副页面公共样式 (Subpages)
   -------------------------------------------------------------------------- */
.subpage-hero {
  padding: 68px 0 44px;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.subpage-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 14px;
}

.subpage-title {
  font-size: clamp(2.1rem, 4.2vw, 2.9rem);
  font-weight: 850;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

.subpage-content-wrapper {
  max-width: 880px;
  margin: 50px auto 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--card-shadow);
}

.article-section {
  margin-bottom: 38px;
}

.article-section:last-child {
  margin-bottom: 0;
}

.article-h2 {
  font-size: 1.48rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.article-list {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.article-list li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.alert-box {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid #ef4444;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.alert-box.info {
  background: rgba(255, 170, 166, 0.08);
  border-left-color: var(--blossom-pink);
}

.alert-box.success {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #10b981;
}

/* 网站地图网格 */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.sitemap-card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.sitemap-list a {
  color: var(--blossom-pink);
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* --------------------------------------------------------------------------
   14.2 SEO 深度科普长文专有排版 (Article Layout, TOC, FAQ, Related)
   -------------------------------------------------------------------------- */
.article-header {
  margin-bottom: 32px;
  text-align: left;
}

.article-title-main {
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 850;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

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

.article-category-badge {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--blossom-pink);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* 文章目录 (Table of Contents) */
.toc-container {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--blossom-pink);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 30px 0 40px;
}

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

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-item {
  font-size: 0.94rem;
  line-height: 1.6;
}

.toc-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
}

.toc-link:hover {
  color: var(--blossom-pink);
  transform: translateX(4px);
}

.toc-sublist {
  list-style: none;
  padding-left: 20px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.toc-sublink:hover {
  color: var(--blossom-pink);
}

/* SEO 核心内链高亮样式 */
.seo-internal-link {
  color: var(--blossom-pink);
  font-weight: 700;
  border-bottom: 1.5px dotted var(--blossom-pink);
  padding-bottom: 1px;
  transition: var(--transition);
}

.seo-internal-link:hover {
  color: var(--peach-gold);
  border-bottom-style: solid;
}

/* 文章内技术参数表格 */
.article-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
}

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

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

.article-table th {
  background: var(--bg-alt);
  font-weight: 750;
  color: var(--text-primary);
}

.article-table tr:hover td {
  background: rgba(255, 170, 166, 0.04);
}

/* 文章内嵌入式 FAQ 样式 */
.article-faq-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 40px;
  padding: 28px;
}

.article-faq-title {
  font-size: 1.3rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.article-faq-item:last-child {
  border-bottom: none;
}

.article-faq-q {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.article-faq-a {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 相关阅读 (Related Reading) 推荐网格 */
.related-posts-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-color);
}

.related-posts-title {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.related-post-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.related-post-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blossom-pink);
  margin-bottom: 8px;
}

.related-post-heading {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 8px;
  flex-grow: 1;
}

.related-post-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blossom-pink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 资讯专栏文章列表卡片网格 (insights-k8w2.html) */
.insights-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  width: 100%;
}

.insight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.insight-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.insight-card-title {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.insight-card-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.insight-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.insight-read-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blossom-pink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   15. 响应式媒体查询 (@media) - 确保手机端单列与手指友好
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .navbar {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }
  .nav-menu {
    gap: 14px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.featured {
    transform: none;
    order: -1;
    grid-column: span 2;
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .node-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-wrapper {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .navbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-menu {
    display: none;
  }

  .hero-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
    gap: 16px;
  }

  .latency-ribbon {
    flex-direction: column;
    align-items: flex-start;
  }

  .latency-items-group {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
  }

  .features-grid,
  .showcase-grid,
  .pricing-grid,
  .testimonials-grid,
  .sitemap-grid,
  .node-cards-grid,
  .insights-posts-grid,
  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    grid-column: span 1;
  }

  .subpage-content-wrapper {
    padding: 26px 20px;
    margin: 24px auto 60px;
  }

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

  /* 移动端全量优化点击触控 */
  .btn {
    min-height: 48px;
    width: 100%;
  }

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

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