/* ============================================================
   GEOcms 官网样式
   设计目标：专业、易读，重点适配移动端阅读
   组织：设计令牌 → 基础 → 导航 → Hero/按钮 → 区块/卡片 →
        表格 → 列表 → 正文 → 深答页 → CTA/页脚 → 表单 → FAQ
   ============================================================ */

/* ---------- 设计令牌：深色（默认） ---------- */
:root {
  --bg: #0b0d12;
  --bg-soft: #0f131b;
  --panel: #141926;
  --panel-hover: #19202f;
  --border: #232b3b;
  --border-strong: #313b50;
  --text: #e9ecf3;
  --text-dim: #a9b2c2;
  --text-faint: #828da0;
  --brand: #5b8cff;
  --brand-strong: #3f6fe0;
  --brand-2: #6fe0bf;
  --danger: #f06b76;
  --warn: #eeb93e;
  --nav-bg: rgba(11, 13, 18, 0.82);
  --brand-gradient: linear-gradient(135deg, var(--brand), var(--brand-strong));
  --card-shadow: none;
  --shadow-pop: 0 14px 34px rgba(0, 0, 0, 0.38);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 42%, transparent);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;

  /* 间距刻度（rem） */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* 流体字号：小屏 → 大屏 */
  --fs-xs: clamp(0.7815rem, 0.734rem + 0.08vw, 0.8125rem); /* 12.5 → 13 */
  --fs-sm: clamp(0.9065rem, 0.85rem + 0.13vw, 0.9375rem);  /* 14.5 → 15 */
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);      /* 16 → 17 */
  --fs-lg: clamp(1.0625rem, 1.02rem + 0.22vw, 1.125rem);    /* 17 → 18 */
  --fs-xl: clamp(1.1875rem, 1.11rem + 0.39vw, 1.3125rem);   /* 19 → 21 */
  --fs-2xl: clamp(1.4375rem, 1.31rem + 0.64vw, 1.75rem);    /* 23 → 28 */
  --fs-3xl: clamp(1.6875rem, 1.419rem + 1.35vw, 2.375rem);  /* 27 → 38 */

  --max-width: 1080px;
  --nav-h: 60px;
  --measure: 42em;       /* 中文正文舒适行长（约 40–44 字/行） */
  --container-pad: clamp(1rem, 4.5vw, 1.5rem);
  --section-pad: clamp(3.25rem, 7.5vw, 5rem);

  color-scheme: dark;
}

/* ---------- 设计令牌：浅色 ---------- */
:root[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-hover: #f8faff;
  --border: #e4e8f0;
  --border-strong: #d2d9e6;
  --text: #171a23;
  --text-dim: #4e586e;
  --text-faint: #6d7990;
  --brand: #3f6fe0;
  --brand-strong: #2e5bc4;
  --brand-2: #0b8a63;
  --danger: #cf3f54;
  --warn: #96660a;
  --nav-bg: rgba(245, 247, 250, 0.86);
  --card-shadow: 0 1px 2px rgba(23, 32, 60, 0.04), 0 6px 20px rgba(23, 32, 60, 0.05);
  --shadow-pop: 0 10px 30px rgba(23, 32, 60, 0.12);
  color-scheme: light;
}

/* 无 JS 环境下的渐进增强：跟随系统偏好 */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f5f7fa;
    --bg-soft: #ffffff;
    --panel: #ffffff;
    --panel-hover: #f8faff;
    --border: #e4e8f0;
    --border-strong: #d2d9e6;
    --text: #171a23;
    --text-dim: #565f72;
    --text-faint: #8690a3;
    --brand: #3f6fe0;
    --brand-strong: #2e5bc4;
    --brand-2: #0b8a63;
    --danger: #cf3f54;
    --warn: #96660a;
    --nav-bg: rgba(245, 247, 250, 0.86);
    --card-shadow: 0 1px 2px rgba(23, 32, 60, 0.04), 0 6px 20px rgba(23, 32, 60, 0.05);
    --shadow-pop: 0 10px 30px rgba(23, 32, 60, 0.12);
    color-scheme: light;
  }
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
  /* 横屏刘海 / home indicator 区域：内容不贴屏幕物理边缘 */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  transition: background-color 0.2s ease, color 0.2s ease;
}

a { color: inherit; }

p, li { overflow-wrap: break-word; }

/* 避免段落末尾只剩一两个字孤行 */
p { orphans: 2; widows: 2; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.38;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

strong { color: var(--text); font-weight: 700; }

::selection {
  background: color-mix(in srgb, var(--brand) 30%, transparent);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

section[id],
[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---------- 中文排版专项（html lang="zh-CN" 时生效） ---------- */
/* 正文两端对齐 + 严格换行，避免标点出现在行首；
   text-autospace（中西文间自动加间距）与 hanging-punctuation（标点悬挂）
   为渐进增强，不支持的浏览器自动忽略 */
:lang(zh) {
  text-autospace: normal;
  hanging-punctuation: allow-end;
}
:lang(zh) .section p.desc,
:lang(zh) .page-hero p.desc,
:lang(zh) .hero p.lead,
:lang(zh) .cta-panel p,
:lang(zh) .body-text,
:lang(zh) .answer-box p,
:lang(zh) .q-closing,
:lang(zh) .note,
:lang(zh) .faq-item p,
:lang(zh) .list-check li,
:lang(zh) .gate-list li {
  text-align: justify;
  /* inter-ideograph：中西文混排时按表意文字边界分配弹性空白，
     避免西文 only 的 auto 模式在中文行内挤成大空洞（渐进增强） */
  text-justify: inter-ideograph;
  line-break: strict;
}
/* 中文不适用西文标题的负字距，略微加字距更透气 */
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) h4 { letter-spacing: 0.01em; }
:lang(zh) .hero h1, :lang(zh) .page-hero h1 { letter-spacing: 0.02em; }
/* 中文眉标：小写字母间距参照汉字排印加大，12.5px 下限在 320px 屏也可读 */
:lang(zh) .eyebrow { font-size: 13px; letter-spacing: 0.2em; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: var(--sp-3);
}
.nav .logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  min-width: 0;
  white-space: nowrap;
  /* 视觉字号不变，纵向内边距把点击区域撑到 40px 高 */
  padding: 6px 0;
}
.nav .logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: inline-block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}
.nav-links a {
  text-decoration: none;
  padding: 7px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--panel-hover); }
.icon-btn .icon-sun { display: none; }
.icon-btn .icon-moon { display: inline; }
:root[data-theme="light"] .icon-btn .icon-sun { display: inline; }
:root[data-theme="light"] .icon-btn .icon-moon { display: none; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  flex-shrink: 0;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 12px;
  text-decoration: none;
  color: var(--text-dim);
  background: var(--panel);
  white-space: nowrap;
}
.lang-switch a.active {
  color: #fff;
  background: var(--brand-gradient);
}

.nav .cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff !important;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 960px) {
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-pop);
    padding: 6px var(--container-pad) 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.22s ease, opacity 0.16s ease;
  }
  .nav-links.is-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    padding: 13px 2px;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav .cta { display: none; }
}

@media (max-width: 420px) {
  .nav .logo { font-size: 16px; }
  .lang-switch a { padding: 6px 9px; }
  .icon-btn, .nav-toggle { width: 38px; height: 38px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.75rem, 7vw, 4.75rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  background:
    radial-gradient(62% 52% at 50% 0%, color-mix(in srgb, var(--brand) 15%, transparent), transparent 70%);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--brand-2);
  background: color-mix(in srgb, var(--brand-2) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-2) 28%, transparent);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.hero h1 {
  font-size: clamp(1.75rem, 1.32rem + 2.1vw, 2.75rem);
  line-height: 1.32;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  max-width: 40em;
  margin: 0 auto 30px;
  color: var(--text-dim);
  font-size: var(--fs-lg);
  line-height: 1.85;
  text-wrap: pretty;
}
.engines-label {
  margin: 36px 0 8px;
  font-size: var(--fs-sm);
  color: var(--text-dim);
}
.engines {
  margin: 0 auto;
  max-width: 36em;
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: var(--text-faint);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 13px 26px;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--fs-base);
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 30%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 36%, transparent); }
.btn-primary:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-faint); background: color-mix(in srgb, var(--text) 4%, transparent); }
.btn-block { width: 100%; }

/* ---------- Section 通用 ---------- */
.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}
.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 10px;
  font-weight: 700;
}
.section h2 {
  font-size: var(--fs-2xl);
  margin: 0 0 16px;
  font-weight: 800;
}
.section p.desc {
  color: var(--text-dim);
  font-size: var(--fs-lg);
  line-height: 1.75;
  max-width: 40em;
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  text-wrap: pretty;
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: clamp(12px, 2vw, 18px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(15px, 2.6vw, 22px);
  box-shadow: var(--card-shadow);
  height: 100%;
}
.card h3 {
  margin: 0 0 8px;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--fs-base);
  line-height: 1.7;
}
.card .tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-2);
  background: color-mix(in srgb, var(--brand-2) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-2) 22%, transparent);
  padding: 2px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  -webkit-overflow-scrolling: touch;
  /* 桌面端拖动滚动时给一根细滚动条，避免粗滚动条破坏表格圆角 */
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
/* 表格外层滚动提示容器（由 app.js 动态包裹；无 JS 时不影响布局） */
.table-scroll-hint { position: relative; }
.table-scroll-hint:not(.is-end)::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 40px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--bg) 92%, var(--panel)));
  border-top-right-radius: calc(var(--radius) - 1px);
  border-bottom-right-radius: calc(var(--radius) - 1px);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  line-height: 1.65;
  min-width: 520px;
  font-variant-numeric: tabular-nums;
}
thead th {
  text-align: left;
  background: var(--bg-soft);
  color: var(--text-dim);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { font-weight: 600; }
td.dim, th.dim { color: var(--text-dim); font-weight: 400; }
thead th.dim { font-weight: 600; }

@media (max-width: 600px) {
  /* 中文小字在 320–430px 屏上 14px 偏挤，移动端表格提至 15px */
  table { min-width: 520px; font-size: var(--fs-base); }
  thead th { padding: 10px 12px; }
  tbody td { padding: 10px 12px; }
}

/* ---------- 列表检查项 ---------- */
.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.list-check-wrap { max-width: var(--measure); margin-top: 22px; }
/* 悬挂缩进：对勾固定在左，正文自然换行；
   不用 flex，避免中文前缀被压成竖排、英文长标签把正文挤成窄列 */
.list-check li {
  position: relative;
  padding-left: 28px;
  color: var(--text-dim);
  font-size: var(--fs-base);
  line-height: 1.7;
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  color: var(--brand-2);
  font-weight: 700;
  line-height: 1.7;
}
.list-check strong { color: var(--text); }

/* 自查清单：每条都是待验证的疑问，标记为待确认的圆圈 */
.list-check-question { max-width: var(--measure); margin-top: 8px; margin-bottom: 24px; }
.list-check-question li { font-size: var(--fs-base); color: var(--text); }
.list-check-question li::before { content: "○"; color: var(--warn); font-weight: 700; }

/* 反例清单：列出「不可保留 / 会造成损失」的事项 */
.list-check-cross li::before { content: "✗"; color: var(--warn); }

/* ---------- 答案前置块 ---------- */
.answer-box {
  margin: 22px 0 26px;
  padding: clamp(14px, 3vw, 20px);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  max-width: 46em;
  overflow-wrap: anywhere;
}
.answer-label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-2);
  margin-bottom: 6px;
}
.answer-box p {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.8;
  text-wrap: pretty;
}

/* ---------- 正文段落与小结 ---------- */
.body-text {
  max-width: var(--measure);
  font-size: var(--fs-lg);
  line-height: 1.85;
  margin: 0 0 1.35em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.note {
  max-width: var(--measure);
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.q-closing {
  max-width: var(--measure);
  margin: 24px 0 0;
  padding-left: 15px;
  border-left: 3px solid var(--brand-2);
  font-size: var(--fs-lg);
  line-height: 1.75;
  font-weight: 500;
}

/* ---------- 五问索引卡片 ---------- */
.q-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(12px, 2vw, 18px);
}
.qcard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 22px);
  box-shadow: var(--card-shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.qcard:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}
.qcard-num {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-2);
  margin-bottom: 8px;
}
.qcard h3 {
  margin: 0 0 8px;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.qcard p {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--fs-base);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

/* ---------- 四道关 ---------- */
.gate-list {
  list-style: none;
  counter-reset: gate;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
  max-width: 46em;
}
.gate-list li {
  counter-increment: gate;
  position: relative;
  padding-left: 44px;
  color: var(--text-dim);
  font-size: var(--fs-base);
  line-height: 1.7;
}
.gate-list li::before {
  content: counter(gate);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-2);
  background: color-mix(in srgb, var(--brand-2) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-2) 32%, transparent);
}
.gate-list strong { color: var(--text); }

/* 第 4 问：失败原因卡片编号 */
.cause-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  vertical-align: middle;
  flex-shrink: 0;
}
.card h3:has(.cause-num) { -webkit-line-clamp: 3; line-clamp: 3; }

/* 对比表中「GEO 官网」一列的强调 */
tbody td.accent-cell,
thead th.accent-cell {
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  color: var(--text);
  font-weight: 400;
}
thead th.accent-cell { font-weight: 600; }

/* 两列窄表 */
.table-narrow { max-width: 48em; margin-top: 26px; }

/* 流程步骤卡片 */
.step-card { border-left: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); }

/* ---------- 深答页：面包屑 ---------- */
.breadcrumb {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding-top: 11px;
  padding-bottom: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}
.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  /* inline-block + 纵向内边距：内联元素的命中高度按字体内容区计算，
     仅靠 padding 撑不到 30px，display 转换后才能完整吃到内边距 */
  display: inline-block;
  padding: 5px 0;
  flex-shrink: 0;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-hidden="true"] { color: var(--text-faint); flex-shrink: 0; }
.breadcrumb .current {
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 深答页：页头 ---------- */
.page-hero { padding: clamp(2.25rem, 5.5vw, 3.25rem) 0 4px; }
.page-hero h1 {
  font-size: clamp(1.5rem, 1.22rem + 1.4vw, 2.125rem);
  line-height: 1.38;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.page-hero p.desc {
  color: var(--text-dim);
  font-size: var(--fs-lg);
  line-height: 1.75;
  max-width: 40em;
  margin: 0;
}
.page-hero .answer-box { margin-top: 24px; }

/* ---------- 「读完整回答」链接 ---------- */
.read-more-wrap { margin: 20px 0 0; }
.read-more {
  display: inline-block;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--brand-2);
  text-decoration: none;
  /* 纵向内边距把「读完整回答」的点击区域撑到 40px+ */
  padding: 5px 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-2) 40%, transparent);
}
.read-more::after { content: " →"; }
.read-more:hover { border-bottom-color: var(--brand-2); }

/* 四道关的自测说明、失败原因卡片里的「改法」 */
.gate-test { display: block; margin-top: 6px; color: var(--text-dim); font-size: var(--fs-sm); line-height: 1.65; }
.card p.card-fix { margin-top: 10px; color: var(--brand-2); font-size: var(--fs-sm); }

/* ---------- CTA 区块 ---------- */
.cta-panel {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 13%, transparent), color-mix(in srgb, var(--brand-2) 9%, transparent));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 46px) clamp(20px, 4vw, 32px);
  text-align: center;
}
.cta-panel h2 { margin: 0 0 10px; font-size: var(--fs-2xl); }
.cta-panel p {
  color: var(--text-dim);
  font-size: var(--fs-base);
  line-height: 1.75;
  max-width: 38em;
  margin: 0 auto 24px;
  text-wrap: pretty;
}
.cta-panel .btn { min-width: 200px; }

/* ---------- Footer ---------- */
footer {
  margin-top: auto; /* body 为纵向 flex：短页面（404/表单）页脚始终贴底 */
  border-top: 1px solid var(--border);
  padding: 28px 0 42px;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}
footer a { color: var(--text-dim); text-decoration: none; display: inline-block; padding: 8px 0; }
footer a:hover { color: var(--text); }

/* ---------- 表单页 ---------- */
.form-page { padding: clamp(2.5rem, 7vw, 4rem) 0; }
.form-shell {
  max-width: 560px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: clamp(20px, 5vw, 34px);
}
.form-shell h1 { font-size: var(--fs-xl); margin: 0 0 6px; font-weight: 800; }
.form-shell p.hint { color: var(--text-dim); font-size: var(--fs-base); line-height: 1.7; margin: 0 0 8px; }
.form-shell p.note { margin: 0 0 24px; max-width: none; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  /* 保持 16px：避免 iOS Safari 聚焦时自动放大页面 */
  font-size: 16px;
  font-family: inherit;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--ring);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }

.captcha-row { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.captcha-row .captcha-q {
  display: inline-flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  white-space: nowrap;
  user-select: none;
}
.captcha-row input { flex: 1; min-width: 140px; }

/* honeypot 字段：对正常用户隐藏，但依然存在于 DOM 中供机器人填写 */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: var(--fs-sm);
  line-height: 1.65;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-success {
  background: color-mix(in srgb, var(--brand-2) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand-2) 30%, transparent);
  color: var(--brand-2);
}
.alert-error {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
  color: var(--danger);
}
.alert-warn {
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  border-color: color-mix(in srgb, var(--warn) 32%, transparent);
  color: var(--warn);
}

.license-note { margin-top: 22px; }

/* ---------- 常见问题 ---------- */
.faq-list { display: grid; gap: 14px; max-width: var(--measure); margin-top: 8px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 0 clamp(14px, 3vw, 22px);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  padding: 15px 30px 15px 0;
  min-height: 50px;
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--brand-2);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}
.faq-item p {
  margin: 0 0 16px;
  padding-right: 30px;
  color: var(--text-dim);
  font-size: var(--fs-base);
  line-height: 1.75;
  text-wrap: pretty;
}

/* ---------- 404 ---------- */
.notfound { padding: clamp(4rem, 12vw, 6.5rem) 0; text-align: center; }
.notfound .desc { margin: 0 auto 26px; max-width: 36em; }

/* ---------- 移动端专项微调 ---------- */
@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .cta-panel { border-radius: var(--radius); }
  .engines-label { margin-top: 28px; }
  .q-closing { margin-top: 20px; }
  .table-narrow { margin-top: 20px; }
  .gate-list { margin-top: 20px; }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions .btn { width: 100%; }
  .cta-panel .btn { width: 100%; min-width: 0; }
  .notfound .btn { width: 100%; max-width: 320px; }
  .section > .container > .btn {
    width: 100%;
    max-width: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- 打印：只留正文 ---------- */
@media print {
  .nav,
  .breadcrumb,
  .hero-actions,
  .read-more-wrap,
  .cta-panel,
  .table-scroll-hint::after,
  footer {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }
  .section { padding: 16px 0; border-top: 1px solid #bbb; break-inside: avoid; }
  .hero { padding: 16px 0; }
  .card, .faq-item, .form-shell, .answer-box, .cta-panel {
    box-shadow: none;
    border: 1px solid #999;
    background: none;
    break-inside: avoid;
  }
  .answer-box p, .card p, .body-text, .faq-item p { color: #222; }
  a { color: #000; }
  details.faq-item { break-inside: avoid; }
}
