/* ==========================================================================
   羊洋运动馆 — 品牌站点设计系统
   品牌：运动促进健康成长，体育成就卓越未来
   调性：亲切 · 积极 · 鼓励（《羊洋运动馆品牌知识库》3.4）
   视觉：暖米白底 + 成长绿主色 + 阳光橙点缀；圆润、明亮、可信、不幼稚
   ========================================================================== */

:root {
  /* 底色：暖米白，区别于常见冷灰，传达「陪伴成长」的温度 */
  --bg:          #fffbf6;
  --bg-elev:     #ffffff;
  --surface:     #ffffff;
  --surface-2:   #fff4e9;
  --surface-3:   #f2f7f4;
  --line:        #ecdfd1;
  --line-soft:   #f5ece2;

  --text:        #15231e;
  --text-2:      #33443d;
  --muted:       #69786f;
  --faint:       #99a49d;

  --brand:       #0fa57a;   /* 成长绿 */
  --brand-dark:  #0a7c5b;
  --brand-soft:  #e2f6ee;
  --brand-line:  #b9e6d5;
  --sun:         #ff8a3d;   /* 阳光橙 */
  --sun-soft:    #ffefe2;
  --sky:         #2f8ff0;   /* 信任蓝 */
  --sky-soft:    #e8f2fe;
  --berry:       #ff5c7a;
  --gold:        #e8a300;
  --ok:          #1aa06d;
  --warn:        #e08a00;
  --danger:      #e04b4b;

  --radius:      18px;
  --radius-sm:   12px;
  --radius-lg:   28px;
  --shadow:      0 22px 50px -30px rgba(21, 48, 38, .40);
  --shadow-sm:   0 8px 24px -16px rgba(21, 48, 38, .35);
  --shadow-lift: 0 30px 60px -34px rgba(21, 48, 38, .48);

  --maxw:        1160px;
  --nav-h:       68px;
  --gap:         22px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --bg:          #0c1614;
  --bg-elev:     #101d19;
  --surface:     #12231e;
  --surface-2:   #16302a;
  --surface-3:   #0f1c19;
  --line:        #24443b;
  --line-soft:   #1a332c;

  --text:        #eef4f1;
  --text-2:      #c6d5cf;
  --muted:       #8ea79e;
  --faint:       #6d847c;

  --brand:       #2fce9d;
  --brand-dark:  #1fae82;
  --brand-soft:  #123027;
  --brand-line:  #1f5544;
  --sun-soft:    #33231a;
  --sky-soft:    #14263a;

  --shadow:      0 22px 50px -30px rgba(0, 0, 0, .9);
  --shadow-sm:   0 8px 24px -16px rgba(0, 0, 0, .8);
  --shadow-lift: 0 30px 60px -34px rgba(0, 0, 0, .95);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
html[data-theme="dark"] a { color: var(--brand); }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -.012em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.15rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.35rem); }
h4 { font-size: 1.02rem; }

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

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
li:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

code, .mono { font-family: var(--mono); font-size: .9em; }

::selection { background: var(--brand-soft); color: var(--text); }

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

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  font-size: 1.02rem;
  letter-spacing: -.01em;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), #17c48f);
  color: #fff;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: -.02em;
  box-shadow: 0 6px 16px -8px rgba(15, 165, 122, .85);
}
.brand .txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand .txt small {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--faint);
  margin-top: 2px;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: .93rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--surface-3); text-decoration: none; }
.nav-links a.on { background: var(--brand-soft); color: var(--brand-dark); }
html[data-theme="dark"] .nav-links a.on { color: var(--brand); }
.nav-side { display: flex; align-items: center; gap: 8px; flex: none; }
.burger { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #14bb8a);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(15, 165, 122, .9);
}
.btn-primary:hover { box-shadow: 0 16px 32px -14px rgba(15, 165, 122, .95); }
.btn-sun {
  background: linear-gradient(135deg, var(--sun), #ffa565);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(255, 138, 61, .9);
}
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); box-shadow: none; }
.btn-sm { padding: 8px 15px; font-size: .88rem; }
.btn-lg { padding: 15px 30px; font-size: 1.03rem; }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px;
  padding: 0;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  font-size: 1rem;
}
.icon-btn:hover { background: var(--surface-3); }

/* ---------- 版式外壳 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 76px 0; }
section.tight { padding: 52px 0; }
section.tint { background: var(--surface-3); }
section.warm { background: var(--surface-2); }
section.deep {
  background: linear-gradient(160deg, #0d2b23, #123f33 60%, #0f3529);
  color: #eaf5f0;
}
section.deep h2, section.deep h3 { color: #fff; }
section.deep .muted { color: #a9c6bb; }
section.deep a { color: #6ee7bd; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
html[data-theme="dark"] .eyebrow { color: var(--brand); }
section.deep .eyebrow { background: rgba(110, 231, 189, .14); color: #6ee7bd; }
.eyebrow.sun { background: var(--sun-soft); color: #c25a10; }
html[data-theme="dark"] .eyebrow.sun { color: #ffab6d; }
.lead { font-size: 1.09rem; color: var(--text-2); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.tiny { font-size: .8rem; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt24 { margin-top: 24px; } .mt40 { margin-top: 40px; }

.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: 1.6fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 1.7fr; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card.flat { box-shadow: none; }
.card.pad-lg { padding: 32px; }
.card-accent { border-top: 4px solid var(--brand); border-radius: 8px 8px var(--radius) var(--radius); }
.card-sun { border-top-color: var(--sun); }
.card-sky { border-top-color: var(--sky); }
.card .kicker {
  font-weight: 800;
  font-size: 1.03rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.card .kicker .num {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid; place-items: center;
  font-size: .8rem;
  font-weight: 800;
}
html[data-theme="dark"] .card .kicker .num { color: var(--brand); }
.card.hoverable { transition: transform .18s ease, box-shadow .18s ease; }
.card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* 图标 */
.ico { width: 24px; height: 24px; flex: none; stroke-width: 1.7; }
.ico-lg { width: 30px; height: 30px; }
.ico-badge {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: 14px;
}
html[data-theme="dark"] .ico-badge { color: var(--brand); }
.ico-badge.sun { background: var(--sun-soft); color: #c25a10; }
html[data-theme="dark"] .ico-badge.sun { color: #ffab6d; }
.ico-badge.sky { background: var(--sky-soft); color: #1f6fd0; }
html[data-theme="dark"] .ico-badge.sky { color: #7cb8ff; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
  background:
    radial-gradient(1100px 480px at 82% -12%, var(--brand-soft), transparent 62%),
    radial-gradient(760px 420px at 6% 8%, var(--sun-soft), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 62%, rgba(15, 165, 122, .28) 62%);
  padding: 0 .1em;
}
.hero .slogan {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--brand-dark);
  border-left: 4px solid var(--brand);
  padding-left: 16px;
  margin: 22px 0 0;
}
html[data-theme="dark"] .hero .slogan { color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 20px; font-size: .87rem; color: var(--muted); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; border-radius: var(--radius-lg); }

/* ---------- 信任条 ---------- */
.trustbar {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-elev);
  padding: 26px 0;
}
.trustbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  justify-content: space-between;
}
.trust-item { display: flex; align-items: center; gap: 11px; font-size: .93rem; }
.trust-item strong { font-weight: 800; }
.trust-item .ico-badge { width: 34px; height: 34px; border-radius: 10px; margin: 0; }
.trust-item .ico-badge .ico { width: 18px; height: 18px; }

/* ---------- 数字 ---------- */
.stats { display: grid; gap: 18px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.stat .n {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.1;
  letter-spacing: -.02em;
}
html[data-theme="dark"] .stat .n { color: var(--brand); }
.stat .n small { font-size: .5em; font-weight: 700; margin-left: 2px; }
.stat .l { font-size: .88rem; color: var(--muted); margin-top: 6px; }
section.deep .stat { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
section.deep .stat .n { color: #6ee7bd; }
section.deep .stat .l { color: #a9c6bb; }

/* ---------- 自检工具 ---------- */
.checkup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.checkup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.chk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .92rem;
  line-height: 1.5;
  background: var(--bg);
  transition: border-color .14s ease, background .14s ease;
  user-select: none;
}
.chk:hover { border-color: var(--brand-line); background: var(--surface-3); }
.chk input { margin: 4px 0 0; flex: none; accent-color: var(--brand); width: 16px; height: 16px; }
.chk:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.chk:has(input:checked) span { font-weight: 700; }
.checkup-out {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface-3);
  border: 1px dashed var(--line);
  min-height: 132px;
}
.checkup-out.has { background: var(--brand-soft); border-style: solid; border-color: var(--brand-line); }
.checkup-out h4 { margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip {
  font-size: .84rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  color: var(--brand-dark);
}
html[data-theme="dark"] .chip { color: var(--brand); }
.chip.sun { border-color: #ffd5b3; color: #c25a10; background: var(--sun-soft); }
html[data-theme="dark"] .chip.sun { color: #ffab6d; border-color: #5a3a22; }

/* ---------- 八段阶梯 ---------- */
.ladder { display: grid; gap: 12px; }
.step-card {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 24px 18px 18px;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.step-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--brand);
  opacity: .85;
}
.step-card:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--brand-line); }
.step-card.is-current {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.step-badge {
  width: 62px; height: 62px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), #17c48f);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  box-shadow: 0 10px 22px -14px rgba(15, 165, 122, .95);
}
.step-badge b { font-size: 1.35rem; display: block; }
.step-badge i { font-size: .58rem; font-style: normal; letter-spacing: .1em; opacity: .9; }
.step-main h3 { margin: 0 0 4px; font-size: 1.1rem; }
.step-main .age {
  font-size: .82rem;
  font-weight: 800;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: 2px;
  white-space: nowrap;
}
html[data-theme="dark"] .step-main .age { color: var(--brand); }
.step-main .goal { font-size: .92rem; color: var(--text-2); }
.step-main .tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .76rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--muted);
  border: 1px solid var(--line-soft);
}
.step-goal { text-align: right; flex: none; }
.step-goal .g {
  font-weight: 800;
  font-size: 1rem;
  color: var(--brand-dark);
  white-space: nowrap;
}
html[data-theme="dark"] .step-goal .g { color: var(--brand); }

/* 阶段带 */
.stageband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.stageband div {
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: .9rem;
  color: var(--text-2);
}
.stageband div small { display: block; font-weight: 600; font-size: .76rem; color: var(--muted); margin-top: 3px; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: st; display: grid; gap: 18px; }
.step-row { display: flex; gap: 18px; }
.step-row .dot {
  counter-increment: st;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid; place-items: center;
  font-weight: 800;
  border: 2px solid var(--brand-line);
}
.step-row .dot::before { content: counter(st); }
html[data-theme="dark"] .step-row .dot { color: var(--brand); }
.step-row h3 { margin-bottom: 4px; font-size: 1.05rem; }

/* 时间线 */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-line));
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -26px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--brand);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--brand-line);
}
.tl-item .yr { font-weight: 800; color: var(--brand-dark); font-size: .92rem; }
html[data-theme="dark"] .tl-item .yr { color: var(--brand); }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
th {
  background: var(--surface-3);
  font-weight: 800;
  font-size: .84rem;
  letter-spacing: .02em;
  color: var(--text-2);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-3); }
td.nowrap { white-space: nowrap; }
td.center, th.center { text-align: center; }

/* ---------- 提示框 ---------- */
.note {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  font-size: .92rem;
  margin: 0 0 20px;
}
.note.warn { border-color: #ffd9a8; background: var(--sun-soft); }
.note.plain { border-color: var(--line); background: var(--surface-3); }
.note strong { display: block; margin-bottom: 4px; }
.tbd {
  display: inline-block;
  font-size: .84em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--sun-soft);
  border: 1px dashed #ffcb9a;
  color: #b4550d;
  white-space: nowrap;
}
html[data-theme="dark"] .tbd { color: #ffab6d; border-color: #5a3a22; }

/* ---------- 引用 ---------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sun);
  border-radius: 8px var(--radius) var(--radius) 8px;
  padding: 22px 26px;
  font-size: .96rem;
  color: var(--text-2);
}
.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
details.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  overflow: hidden;
}
details.qa[open] { border-color: var(--brand-line); }
details.qa summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
details.qa[open] summary::after { content: "−"; }
details.qa .body { padding: 0 0 18px; color: var(--text-2); font-size: .95rem; }

/* ---------- CTA 区块 ---------- */
.cta {
  border-radius: var(--radius-lg);
  padding: 44px;
  background: linear-gradient(150deg, #0d2b23, #14503f 70%, #0f3529);
  color: #eaf5f0;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lift);
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #b6d2c7; margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 目录页布局 ---------- */
.doc { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 46px; align-items: start; }
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  font-size: .9rem;
  border-left: 2px solid var(--line);
  padding-left: 16px;
}
.toc .toc-t { font-size: .74rem; font-weight: 800; letter-spacing: .12em; color: var(--faint); margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); font-weight: 600; border-radius: 6px; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.on { color: var(--brand-dark); font-weight: 800; }
html[data-theme="dark"] .toc a.on { color: var(--brand); }
.toc a.sub { padding-left: 14px; font-size: .85rem; font-weight: 500; }
.doc-body > section { padding: 0 0 54px; }
.doc-body > section:first-child { padding-top: 0; }
.page-head { padding: 54px 0 30px; border-bottom: 1px solid var(--line-soft); margin-bottom: 40px; }

/* ---------- 页脚 ---------- */
.site-foot {
  background: #0d1f1a;
  color: #a9c0b7;
  padding: 56px 0 30px;
  margin-top: 20px;
  font-size: .91rem;
}
.site-foot h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-foot a { color: #cfe3db; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 7px; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 34px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: .84rem;
  color: #7f978e;
}

/* ---------- 面包屑 ---------- */
.crumb { font-size: .85rem; color: var(--muted); padding-top: 26px; }
.crumb a { color: var(--muted); }
.crumb span { margin: 0 7px; color: var(--faint); }

/* ---------- 动效 ---------- */
/* 仅在 JS 可用时隐藏（html.js 由 <head> 内联脚本加上）；
   这样关闭 JS / 脚本报错时，所有内容依然可见可读 */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22,.8,.3,1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal.in { opacity: 1; transform: none; transition: none; }
  .btn, .card.hoverable, .step-card { transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-art { order: -1; max-width: 560px; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; border-left: 0; border-top: 2px solid var(--line); padding: 16px 0 0; }
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2-1, .g-1-2 { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 34px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 54px 0; }
  .g3 { grid-template-columns: 1fr; }
  .stageband { grid-template-columns: repeat(2, 1fr); }
  .step-card { grid-template-columns: 62px 1fr; gap: 14px; padding: 16px; }
  .step-goal { grid-column: 2; text-align: left; }
  .step-badge { width: 54px; height: 54px; border-radius: 15px; }
  .burger { display: grid; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    margin: 0;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; border-radius: 10px; }
  .hero { padding: 56px 0 46px; }
  .checkup { padding: 20px; }
  .checkup-grid { grid-template-columns: 1fr; }
  .trustbar-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cta { padding: 26px; }
  .cta-actions { flex-direction: column; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 520px) {
  .g2, .g4, .g5 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   补充：导航细节 / 表单 / 工具类
   ========================================================================== */

/* 跳转链接（键盘可达性） */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff;
  padding: 10px 18px; border-radius: 0 0 14px 0;
  font-weight: 700;
}
.skip:focus { left: 0; }
.nav-inner { position: relative; }
.nav-side { margin-left: 6px; }
.burger { width: 38px; height: 38px; }
/* 汉堡按钮同时带 .icon-btn（display:grid），会盖掉前面 .burger{display:none}；
   这里用媒体查询把桌面端再关掉，窄屏仍由 .burger{display:grid} 生效 */
@media (min-width: 761px) { .burger { display: none; } }
@media (max-width: 1100px) { .nav-cta { display: none; } }

/* 锚点定位避开吸顶导航 */
section[id], .doc-body > section[id] { scroll-margin-top: calc(var(--nav-h) + 18px); }

/* 数字栅格 */
.stats.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .stats.cols2, .stats.cols3, .stats.cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .stats.cols2, .stats.cols3, .stats.cols4 { grid-template-columns: 1fr; }
}

/* 页脚 */
.foot-logo { color: #fff; font-weight: 800; font-size: 1.18rem; margin-bottom: 10px; letter-spacing: -.01em; }
.foot-logo b { color: #6ee7bd; }
.foot-slogan { color: #cfe3db; font-weight: 700; margin: 0 0 12px; font-size: .96rem; }
.foot-grid p { line-height: 1.8; }
.foot-grid a { text-decoration: none; }

/* 列表 */
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.icon-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--text-2); }
.icon-list .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }
.icon-list li strong { color: var(--text); }

/* 键值表 */
.kv { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.kv-row { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); font-size: .93rem; }
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { font-weight: 800; color: var(--text-2); }
@media (max-width: 600px) { .kv-row { grid-template-columns: 1fr; gap: 4px; } }

/* 表单 */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 680px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field > label { font-weight: 700; font-size: .92rem; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  width: 100%;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: .9rem; font-weight: 600;
  background: var(--bg-elev);
}
.radios input { accent-color: var(--brand); width: 16px; height: 16px; }
.radios label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }
.form-ok { display: none; padding: 26px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-line); }
.form-ok.show { display: block; }
.form-ok h3 { margin-top: 0; }
.form-note { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* 问答正文 */
details.qa .body p { margin: 0 0 10px; }
details.qa .body p:last-child { margin-bottom: 0; }
details.qa .body ul { margin: 0 0 10px; padding-left: 20px; }
details.qa .body li { margin-bottom: 5px; }

/* 其它工具类 */
.two-col { columns: 2; column-gap: 30px; }
@media (max-width: 760px) { .two-col { columns: 1; } }
.hr { height: 1px; background: var(--line-soft); margin: 28px 0; border: 0; }
.badge {
  display: inline-block; font-size: .76rem; font-weight: 800;
  letter-spacing: .05em; padding: 3px 10px; border-radius: 6px;
  background: var(--surface-3); color: var(--muted); border: 1px solid var(--line-soft);
}
.badge.ok { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-line); }
.badge.sun { background: var(--sun-soft); color: #c25a10; border-color: #ffd5b3; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; }
.nowrap { white-space: nowrap; }
.link-more { font-weight: 700; }
.art svg { display: block; width: 100%; height: auto; }
section.deep .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
section.deep .card .kicker { color: #fff; }
section.deep .chip { background: rgba(110, 231, 189, .12); border-color: rgba(110, 231, 189, .32); color: #9ff0d2; }
section.deep .tbd { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #ffd9a8; }

/* 可点击卡片（<a class="card">）：避免继承链接色与下划线 */
a.card { color: inherit; text-decoration: none; }
a.card:hover { text-decoration: none; }
a.card .link-more { display: inline-block; margin-top: 14px; color: var(--brand-dark); }
html[data-theme="dark"] a.card .link-more { color: var(--brand); }

/* ---------- 打印 ---------- */
@media print {
  .nav, .site-foot, .hero-actions, .cta-actions, .toc, .icon-btn, .burger { display: none !important; }
  body { background: #fff; color: #000; font-size: 11.5pt; }
  section, .doc-body > section { padding: 0 0 18px; break-inside: avoid; }
  .card, .step-card, .table-wrap, .checkup, .quote { box-shadow: none; border-color: #bbb; }
  details.qa { break-inside: avoid; }
  details.qa > .body { display: block !important; }
  a { color: #000; text-decoration: none; }
  h2 { break-after: avoid; }
}
