/* ============================================================
   雹 APP 官网 — 设计系统
   主题：晴空浅色 · 冰蓝品牌强调
   ============================================================ */

:root {
  /* ===== 深色主题（默认） ===== */
  --bg: #1e2b4c;
  --bg-soft: #263556;
  --surface: #313f61;
  --surface-2: #3c4a6d;
  --surface-3: #48597e;
  --border: rgba(148, 190, 230, 0.13);
  --border-strong: rgba(148, 190, 230, 0.24);
  --text: #eaf4fb;
  --text-2: #a9bcd4;
  --text-3: #7386a6;
  --accent: #40d0e0;
  --accent-bright: #7ee8f5;
  --accent-deep: #1d9db8;
  --accent-dim: rgba(64, 208, 224, 0.12);
  --accent-grad: linear-gradient(135deg, #25b9d9 0%, #4fd5e8 50%, #8be9f2 100%);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --violet: #8b7cf6;

  --shadow: 0 14px 40px rgba(2, 6, 18, 0.42);
  --shadow-glow: 0 0 40px rgba(64, 208, 224, 0.16);

  --header-bg: rgba(30, 43, 76, 0.84);
  --header-bg-solid: rgba(30, 43, 76, 0.97);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --hover-row: rgba(255, 255, 255, 0.03);
  --btn-primary-text: #06222b;
  --bg-glow:
    radial-gradient(600px 400px at 85% -5%, rgba(64, 208, 224, 0.10), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(139, 124, 246, 0.07), transparent 60%),
    radial-gradient(500px 400px at 50% 110%, rgba(64, 208, 224, 0.06), transparent 60%);
  --hero-h1: linear-gradient(180deg, #ffffff 20%, #b6e7f5 100%);
  --cta-bg:
    radial-gradient(500px 300px at 80% 20%, rgba(64, 208, 224, 0.15), transparent 60%),
    radial-gradient(400px 260px at 15% 85%, rgba(139, 124, 246, 0.12), transparent 60%),
    linear-gradient(160deg, #334164, #212e4b);

  /* 尺寸 */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1160px;
  --header-h: 68px;

  /* 字体 */
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC",
    "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
}

/* ============================================================
   浅色主题（body.theme-light）
   ============================================================ */
.theme-light {
  --bg: #f2f6fb;
  --bg-soft: #e8f0f7;
  --surface: #ffffff;
  --surface-2: #ecf3f9;
  --surface-3: #dfeaf3;
  --border: rgba(18, 58, 90, 0.10);
  --border-strong: rgba(18, 58, 90, 0.20);
  --text: #0f2a42;
  --text-2: #425970;
  --text-3: #7187a0;
  --accent: #0e9dbb;
  --accent-bright: #0b89a6;
  --accent-deep: #0a7089;
  --accent-dim: rgba(14, 157, 187, 0.10);
  --accent-grad: linear-gradient(135deg, #15a6c5 0%, #2fc2dd 50%, #68d9e8 100%);
  --ok: #0da06d;
  --warn: #c18a09;
  --danger: #d64545;
  --violet: #6d5ce0;

  --shadow: 0 14px 40px rgba(28, 58, 88, 0.14);
  --shadow-glow: 0 0 40px rgba(14, 157, 187, 0.16);

  --header-bg: rgba(255, 255, 255, 0.86);
  --header-bg-solid: rgba(255, 255, 255, 0.98);
  --hover-bg: rgba(15, 60, 100, 0.06);
  --hover-row: rgba(15, 60, 100, 0.04);
  --btn-primary-text: #06222b;
  --bg-glow:
    radial-gradient(600px 400px at 85% -5%, rgba(64, 208, 224, 0.13), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(139, 124, 246, 0.08), transparent 60%),
    radial-gradient(500px 400px at 50% 110%, rgba(64, 208, 224, 0.09), transparent 60%);
  --hero-h1: linear-gradient(180deg, #0f2c46 15%, #13708a 100%);
  --cta-bg:
    radial-gradient(500px 300px at 80% 20%, rgba(64, 208, 224, 0.20), transparent 60%),
    radial-gradient(400px 260px at 15% 85%, rgba(139, 124, 246, 0.12), transparent 60%),
    linear-gradient(160deg, #e3f2fc, #d6eaf8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15.5px;
  overflow-x: hidden;
}

/* 背景装饰：冰晶光斑 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-glow), var(--bg);
}

::selection { background: var(--accent-dim); color: var(--accent-bright); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.18rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(64, 208, 224, 0.28);
  background: #fff;
  flex: none;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-size: 1.28rem; font-weight: 800; letter-spacing: 0.02em; }
.brand-name em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub { font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.28em; margin-top: -2px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 1.05rem;
  font-weight: 400;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav a:hover { color: var(--text); background: var(--hover-bg); }
.nav a.active { color: var(--accent-bright); background: var(--accent-dim); font-weight: 700; }

.nav-cta {
  margin-left: 10px;
  padding: 8px 18px !important;
  background: var(--accent-grad) !important;
  color: var(--btn-primary-text) !important;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(64, 208, 224, 0.3);
}
.nav-cta:hover { filter: brightness(1.1); color: var(--btn-primary-text) !important; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, filter 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex: none; }
.btn-primary {
  background: var(--accent-grad);
  color: var(--btn-primary-text);
  box-shadow: 0 8px 26px rgba(64, 208, 224, 0.35);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 12px 32px rgba(64, 208, 224, 0.45); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: 0 4px 14px rgba(20, 50, 90, 0.08);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--surface-2); }
.btn-secondary {
  background: linear-gradient(135deg, #6d5ce0 0%, #8b7cf6 50%, #a89bff 100%);
  color: #fff;
  box-shadow: 0 8px 26px rgba(139, 124, 246, 0.35);
}
.btn-secondary:hover { filter: brightness(1.08); box-shadow: 0 12px 32px rgba(139, 124, 246, 0.45); }
.btn-tool {
  background: linear-gradient(135deg, #1f7a55 0%, #28a47b 50%, #4fca9f 100%);
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(31, 122, 85, 0.35);
}
.btn-tool:hover { filter: brightness(1.05); box-shadow: 0 12px 32px rgba(31, 122, 85, 0.45); }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; }
.btn-lg { padding: 15px 34px; font-size: 1.06rem; }

/* ============================================================
   Hero 首页主视觉
   ============================================================ */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(64, 208, 224, 0.3);
  color: var(--accent-bright);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 {
  background: var(--hero-h1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
.hero h1 .hl {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-desc { font-size: 1.1rem; color: var(--text-2); max-width: 560px; margin-bottom: 32px; }
.hero-desc strong { color: var(--accent-bright); font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta .meta-item { display: flex; flex-direction: column; }
.hero-meta .meta-num { font-size: 1.4rem; font-weight: 800; color: var(--accent-bright); }
.hero-meta .meta-label { font-size: 0.78rem; color: var(--text-3); letter-spacing: 0.06em; }

/* Hero 手机样机（保持深色外观） */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute; inset: -40px -20px;
  background: radial-gradient(circle at 50% 40%, rgba(64, 208, 224, 0.2), transparent 65%);
  filter: blur(30px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #1c2748, #0d1226);
  border: 1px solid rgba(148, 190, 230, 0.24);
  box-shadow: 0 10px 24px rgba(2, 6, 18, 0.26), 0 0 28px rgba(64, 208, 224, 0.07);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: #0b0e1a;
  aspect-ratio: 1206 / 2622;
  position: relative;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* 冰晶粒子（hero 背景装饰） */
.snowflake { position: absolute; color: var(--accent-bright); opacity: 0.5; animation: fall linear infinite; pointer-events: none; }
@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}

/* ============================================================
   通用卡片
   ============================================================ */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--accent-dim);
  color: var(--accent-bright);
  border: 1px solid rgba(64, 208, 224, 0.25);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.93rem; }

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

/* ============================================================
   区块标题
   ============================================================ */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-bright);
  background: var(--accent-dim);
  border: 1px solid rgba(64, 208, 224, 0.28);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--text-2); }

/* ============================================================
   表格
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 620px; }
thead th {
  background: var(--surface-2);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-2);
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: var(--hover-row); }
tbody td strong { color: var(--text); }
.check { color: var(--ok); font-weight: 700; }
.cross { color: var(--text-3); font-weight: 700; }
.td-nowrap { white-space: nowrap; }

/* 状态标签 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent-dim);
  color: var(--accent-bright);
  border: 1px solid rgba(64, 208, 224, 0.25);
  white-space: nowrap;
}
.tag-ok { background: rgba(52, 211, 153, 0.14); color: var(--ok); border-color: rgba(52, 211, 153, 0.32); }
.tag-warn { background: rgba(251, 191, 36, 0.14); color: var(--warn); border-color: rgba(251, 191, 36, 0.32); }
.tag-new { background: rgba(139, 124, 246, 0.16); color: var(--violet); border-color: rgba(139, 124, 246, 0.38); }
.card h3 .tag { margin-left: 8px; vertical-align: middle; }

/* ============================================================
   步骤
   ============================================================ */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  position: relative;
  padding-bottom: 32px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 24px; top: 56px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-deep), transparent);
}
.step:last-child::before { display: none; }
.step-num {
  counter-increment: step;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  border: 1px solid rgba(64, 208, 224, 0.4);
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(64, 208, 224, 0.15);
}
.step-num::after { content: counter(step); }
.step-body { padding-top: 6px; }
.step-body h3 { margin-bottom: 8px; }
.step-body p, .step-body li { color: var(--text-2); font-size: 0.95rem; }

/* ============================================================
   代码块（恒定深色，作为浅色页面的深色卡点）
   ============================================================ */
.code-block {
  position: relative;
  background: #0d1424;
  border: 1px solid rgba(148, 190, 230, 0.16);
  border-radius: var(--radius-sm);
  margin: 14px 0;
  overflow: hidden;
}
.code-block .code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(148, 190, 230, 0.12);
  font-size: 0.75rem;
  color: #6e83a3;
  letter-spacing: 0.06em;
}
.code-block pre {
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.75;
  color: #b8e6f0;
}
.code-block code .c { color: #5a7188; }
.code-block code .cmd { color: #8be9f2; }
.copy-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 190, 230, 0.2);
  color: #9fb3cf;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: 0.2s;
}
.copy-btn:hover { color: var(--accent-bright); border-color: var(--accent); }
.copy-btn.copied { color: var(--ok); border-color: var(--ok); }

/* ============================================================
   提示框
   ============================================================ */
.alert {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  margin: 16px 0;
  font-size: 0.93rem;
  align-items: flex-start;
}
.alert svg { flex: none; margin-top: 2px; }
.alert strong { margin-right: 4px; }
.alert-info { background: var(--accent-dim); border-color: rgba(64, 208, 224, 0.3); color: var(--accent-bright); }
.alert-info svg { color: var(--accent); }
.alert-warn { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); color: var(--warn); }
.alert-warn svg { color: var(--warn); }
.alert-danger { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.3); color: var(--danger); }
.alert-danger svg { color: var(--danger); }

/* ============================================================
   FAQ 手风琴
   ============================================================ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.faq-q:hover { color: var(--accent-bright); }
.faq-q .faq-num { color: var(--accent); font-weight: 800; margin-right: 4px; }
.faq-q .chev { flex: none; color: var(--text-3); transition: transform 0.3s; }
.faq-item.open .chev { transform: rotate(180deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 22px 20px 22px; color: var(--text-2); font-size: 0.94rem; }
.faq-a-inner p { margin-bottom: 8px; }
.faq-a-inner ul { padding-left: 0; }
.faq-a-inner li { padding-left: 20px; position: relative; margin-bottom: 5px; }
.faq-a-inner li::before { content: "❄"; position: absolute; left: 0; top: 0; font-size: 0.8rem; color: var(--accent); opacity: 0.7; }

/* ============================================================
   下载渠道卡片
   ============================================================ */
.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: 0.25s;
}
.channel:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.channel-logo {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-dim);
  display: grid; place-items: center;
  flex: none;
}
.channel-logo svg { width: 26px; height: 26px; color: var(--accent-bright); }
.channel-body { flex: 1; }
.channel-body h3 { font-size: 1.04rem; margin-bottom: 3px; }
.channel-body p { color: var(--text-3); font-size: 0.84rem; }
.channel-arrow { color: var(--text-3); flex: none; transition: 0.2s; }
.channel:hover .channel-arrow { color: var(--accent); transform: translateX(4px); }

/* ============================================================
   版本时间线
   ============================================================ */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.tl-item { padding-left: 34px; position: relative; margin-bottom: 26px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -6px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 14px rgba(64, 208, 224, 0.5);
}
.tl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tl-head h3 { font-size: 1.1rem; }
.tl-date { color: var(--text-3); font-size: 0.84rem; }
.tl-body { color: var(--text-2); font-size: 0.92rem; }
.tl-body ul li { padding-left: 18px; position: relative; margin-bottom: 4px; }
.tl-body ul li::before { content: "·"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }

/* ============================================================
   比较表特性
   ============================================================ */
.compare-note { text-align: center; color: var(--text-3); font-size: 0.84rem; margin-top: 14px; }

/* ============================================================
   CTA 区块
   ============================================================ */
.cta {
  position: relative;
  text-align: center;
  padding: 70px 30px;
  border-radius: var(--radius-lg);
  background: var(--cta-bg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.cta::before, .cta::after {
  content: "❄";
  position: absolute;
  font-size: 60px;
  opacity: 0.14;
  color: var(--accent);
  animation: spin 18s linear infinite;
}
.cta::before { top: 18px; left: 8%; }
.cta::after { bottom: 18px; right: 8%; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--text-2); max-width: 520px; margin: 0 auto 32px; }
.cta .cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta .cta-links { margin-top: 22px; display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; font-size: 0.88rem; color: var(--text-3); }
.cta .cta-links a:hover { color: var(--accent-bright); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 56px 0 30px;
  margin-top: 40px;
}
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 28px 36px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-3); font-size: 0.88rem; margin-top: 14px; max-width: 300px; }
.footer-nav { display: flex; flex: 1; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: center; padding-left: 32px; }
.footer-nav a { display: inline-block; color: var(--text-3); font-size: 0.88rem; transition: 0.2s; }
.footer-nav a:hover { color: var(--accent-bright); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 0.82rem;
  text-align: center;
}
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--accent-bright); }

/* ============================================================
   页面横幅（次级页页头）
   ============================================================ */
.page-hero {
  padding: 64px 0 30px;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-bright);
  background: var(--accent-dim);
  border: 1px solid rgba(64, 208, 224, 0.28);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { color: var(--text-2); max-width: 620px; margin: 0 auto; }

/* ============================================================
   404 页面
   ============================================================ */
.error-page {
  min-height: calc(100vh - 360px);
  display: grid;
  place-items: center;
  padding: 82px 0 96px;
  text-align: center;
}
.error-code {
  margin-bottom: 22px;
  font-size: clamp(5.5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--accent-bright);
  text-shadow: 0 12px 36px rgba(64, 208, 224, 0.2);
}
.error-page h1 { margin-bottom: 14px; }
.error-page p {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--text-2);
}
.error-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   页内锚点目录
   ============================================================ */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.toc h3 { font-size: 0.86rem; letter-spacing: 0.14em; color: var(--text-3); margin-bottom: 14px; text-transform: uppercase; }
.toc a {
  display: inline-block;
  color: var(--text-2);
  font-size: 0.9rem;
  margin: 0 10px 8px 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: 0.2s;
}
.toc a:hover { color: var(--accent-bright); border-color: var(--accent); }

/* 内容排版 */
.prose { max-width: 860px; margin: 0 auto; }
.guide-img {
  display: block;
  margin: 28px auto 0;
  max-width: 340px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.guide-caption {
  text-align: center;
  color: var(--text-3);
  font-size: 0.82rem;
  margin-top: 10px;
  margin-bottom: 8px;
}
.prose h2 {
  margin: 48px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.prose h3 { margin: 28px 0 12px; }
.prose p { color: var(--text-2); margin-bottom: 14px; }
.prose ul { margin: 10px 0 16px; }
.prose li { color: var(--text-2); padding-left: 22px; position: relative; margin-bottom: 6px; }
.prose li::before { content: "❄"; position: absolute; left: 0; top: 0; font-size: 0.85rem; color: var(--accent); opacity: 0.7; }

/* ============================================================
   滚动显现动画
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--accent-bright);
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: 0.3s;
  z-index: 90;
  box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--accent-dim); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { justify-content: flex-start; gap: 24px 28px; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .section { padding: 60px 0; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--header-bg-solid);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 20px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: 12px 16px; border-radius: 10px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: center; gap: 22px; }
  .footer-nav { padding-left: 0; }
  .footer-brand { text-align: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .hero { padding: 60px 0 70px; }
  .phone { width: 250px; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
