/* ==========================================================================
   半岛体育 · 共享外壳样式 /assets/site.css
   战术板意象：墨蓝骨架 + 纸底阅读 + 草坪绿状态 + 信号橙读数
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --paper-cream: #F5EFE2;
  --paper-deep: #E7DDC8;
  --rule-sand: #C6B99C;
  --ink-navy: #0D1B2A;
  --ink-navy-70: #31465C;
  --turf-green: #1E6B4C;
  --turf-light: #8FBF9F;
  --signal-orange: #E4571F;
  --tier-u19: #2A5CD7;
  --tier-u17: #6E8A1A;
  --tier-u15: #D9553F;
  --card-white: #FBFAF6;

  --rail-w: 88px;
  --topbar-h: 64px;
  --tick-h: 4px;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --r-pill: 999px;

  --mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  --shadow-soft: 0 14px 34px rgba(13, 27, 42, 0.10);
}
@media (min-width: 960px) { :root { --topbar-h: 72px; } }

/* ---------- 3. Base typography（中文排版） ---------- */
body {
  margin: 0;
  padding-top: calc(var(--topbar-h) + var(--tick-h));
  background-color: var(--paper-cream);
  color: var(--ink-navy);
  font-family: var(--sans);
  font-size: clamp(15.5px, 0.35vw + 14.6px, 17px);
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 960px) { body { padding-left: var(--rail-w); } }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink-navy);
}
h1 { font-size: clamp(30px, 4.4vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: clamp(19px, 2.1vw, 22px); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 800; }

.num, .mono, .tnum {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

:focus-visible {
  outline: 3px solid var(--turf-green);
  outline-offset: 2px;
  border-radius: 6px;
}
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--signal-orange); }

/* ---------- 4. 布局容器与栅格 ---------- */
.wrap {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 44px);
}
.section { padding-block: clamp(38px, 5.6vw, 84px); }
.breath { height: clamp(56px, 9vw, 120px); }
.rule { height: 1px; background: var(--rule-sand); border: 0; margin: 0; }
.rule--curve {
  height: 26px;
  border: 0;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: var(--paper-deep);
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.col-main, .col-aside, .col-full, .col-breath, .col-half { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .col-main { grid-column: span 7; }
  .col-aside { grid-column: span 4; }
  .col-half { grid-column: span 6; }
  .col-breath { grid-column: span 1; min-height: 1px; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-navy-70);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--turf-green);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  margin: 0 0 clamp(16px, 2.2vw, 28px);
}
.section-head h2, .section-head h3 { margin: 0; }
.section-head .num { font-size: 13px; color: var(--ink-navy-70); }

.note {
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink-navy-70);
  padding-left: 14px;
  border-left: 1px solid var(--rule-sand);
}

/* ---------- 5. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-navy-70);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--rule-sand); }
.crumbs a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule-sand);
  transition: color 160ms ease, border-color 160ms ease;
}
.crumbs a:hover { color: var(--ink-navy); border-bottom-color: var(--signal-orange); }
.crumbs [aria-current="page"] { color: var(--ink-navy); font-weight: 700; }

/* ---------- 6. 按钮 / 胶囊 / 徽标 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7em 1.35em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--ink-navy); color: var(--paper-cream); }
.btn--solid:hover { background: var(--turf-green); }
.btn--signal { background: var(--signal-orange); color: var(--ink-navy); }
.btn--signal:hover { background: #F0682F; }
.btn--ghost { background: transparent; border-color: var(--rule-sand); color: var(--ink-navy); }
.btn--ghost:hover { border-color: var(--ink-navy); background: var(--card-white); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.38em 0.85em;
  border: 1px solid var(--rule-sand);
  border-radius: var(--r-pill);
  background: var(--card-white);
  color: var(--ink-navy-70);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.chip:hover { border-color: var(--ink-navy); color: var(--ink-navy); }
.chip[aria-pressed="true"], .chip.is-on {
  background: var(--ink-navy);
  border-color: var(--ink-navy);
  color: var(--paper-cream);
}
.chip--u19 { background: var(--tier-u19); border-color: transparent; color: var(--card-white); }
.chip--u17 { background: var(--tier-u17); border-color: transparent; color: var(--ink-navy); }
.chip--u15 { background: var(--tier-u15); border-color: transparent; color: var(--ink-navy); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--paper-deep);
  color: var(--ink-navy);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.badge--done { background: var(--turf-green); color: var(--paper-cream); }
.badge--live { background: var(--signal-orange); color: var(--ink-navy); }

/* ---------- 7. 数据组件 ---------- */
.score {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--signal-orange);
}
.score--sm { font-size: clamp(28px, 4vw, 44px); }
.score__sep { opacity: 0.85; }

.stat {
  background: var(--card-white);
  border: 1px solid var(--rule-sand);
  border-radius: var(--r-md);
  padding: clamp(16px, 2vw, 24px);
}
.stat__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-navy-70);
  margin: 0 0 8px;
}
.stat__value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink-navy);
}
.stat__unit { font-size: 12px; color: var(--ink-navy-70); margin-left: 6px; }

.table-scroll {
  overflow-x: auto;
  background: var(--card-white);
  border: 1px solid var(--rule-sand);
  border-radius: var(--r-sm);
  -webkit-overflow-scrolling: touch;
}
.dtable { width: 100%; min-width: 520px; font-size: 14px; }
.dtable caption {
  text-align: left;
  padding: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-navy-70);
}
.dtable th {
  background: var(--paper-deep);
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-navy);
}
.dtable td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule-sand);
  vertical-align: middle;
}
.dtable tbody tr { transition: background-color 140ms ease; }
.dtable tbody tr:hover, .dtable tbody tr:focus-within { background: rgba(143, 191, 159, 0.18); }
.dtable .num { text-align: right; }
.dtable__note { display: none; font-size: 12px; color: var(--ink-navy-70); }
.dtable tbody tr:hover .dtable__note,
.dtable tbody tr:focus-within .dtable__note { display: block; }

/* 可展开组 */
.fold { border-bottom: 1px solid var(--rule-sand); }
.fold__head { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: 0; }
.fold__btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 0 16px 18px;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  color: var(--ink-navy);
  cursor: pointer;
}
.fold__btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 2px;
  background: var(--rule-sand);
  transition: background-color 200ms ease;
}
.fold__btn[aria-expanded="true"]::before { background: var(--fold-color, var(--turf-green)); }
.fold__mark { margin-left: auto; font-family: var(--mono); font-size: 18px; color: var(--ink-navy-70); }
.fold__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms ease-out;
}
.fold__body[data-open] { grid-template-rows: 1fr; }
.fold__inner { overflow: hidden; }
.fold__content {
  padding: 0 0 22px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-navy-70);
}
.fold__content > *:first-child { margin-top: 0; }

/* 柱阵 */
.bars {
  display: flex;
  align-items: flex-end;
  gap: clamp(4px, 0.8vw, 10px);
  height: clamp(140px, 20vw, 220px);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule-sand);
}
.bar {
  position: relative;
  flex: 1 1 0;
  min-width: 6px;
  height: calc(var(--v, 50) * 1%);
  background: var(--turf-light);
  border-radius: 8px 8px 0 0;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 520ms cubic-bezier(0.22, 0.9, 0.28, 1), background-color 160ms ease;
}
.bars.is-grown .bar { transform: scaleY(1); transition-delay: calc(var(--i, 0) * 40ms); }
.bar--lead { background: var(--turf-green); }
.bar--hi { background: var(--signal-orange); }
.bar:hover { background: var(--turf-green); }
.bar__label {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-navy-70);
}

/* 阶梯错位榜 */
.ladder { display: grid; gap: 16px; }
.ladder__item {
  background: var(--card-white);
  border: 1px solid var(--rule-sand);
  border-left: 6px solid var(--tier, var(--turf-green));
  border-radius: var(--r-md);
  padding: clamp(16px, 2vw, 22px);
}
@media (min-width: 760px) {
  .ladder__item:nth-child(2) { margin-left: 6%; }
  .ladder__item:nth-child(3) { margin-left: 12%; }
}
.u19 { --tier: var(--tier-u19); --fold-color: var(--tier-u19); }
.u17 { --tier: var(--tier-u17); --fold-color: var(--tier-u17); }
.u15 { --tier: var(--tier-u15); --fold-color: var(--tier-u15); }

/* 图片容器基础（页面阶段放置图片） */
.frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-md);
  background: var(--paper-deep);
}
.frame__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(13, 27, 42, 0) 42%, rgba(13, 27, 42, 0.38));
  pointer-events: none;
}
.frame--pitch { aspect-ratio: 16 / 9; }
.frame--wide { aspect-ratio: 21 / 9; }
.frame--squad { aspect-ratio: 4 / 3; }
.frame--rail { aspect-ratio: 3 / 4; }
.frame--square { aspect-ratio: 1 / 1; }
.frame__cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--paper-cream);
}
.frame__tag { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* ---------- 8. Header ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink-navy);
  color: var(--paper-cream);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 80; }

/* 左侧品牌轨道 */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  width: var(--rail-w);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 0 20px;
  background: var(--ink-navy);
  color: var(--paper-cream);
}
@media (min-width: 960px) { .rail { display: flex; } }

.rail__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.rail__glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--turf-green);
  color: var(--paper-cream);
  font-size: 17px;
  font-weight: 800;
}
.rail__word {
  writing-mode: vertical-rl;
  letter-spacing: 0.34em;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(245, 239, 226, 0.86);
}
.rail__scale {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  justify-content: center;
}
.rail__scale::before {
  content: "";
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(198, 185, 156, 0.5) 0 1px,
    transparent 1px 11px
  );
}
.rail__fill {
  position: absolute;
  top: 0;
  width: 2px;
  height: calc(var(--progress, 0) * 100%);
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--turf-green), var(--signal-orange));
  transition: height 120ms linear;
}
.rail__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 44px;
  padding: 9px 0;
  border: 1px solid rgba(245, 239, 226, 0.25);
  border-radius: var(--r-pill);
  background: transparent;
  color: rgba(245, 239, 226, 0.7);
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, color 200ms ease, border-color 200ms ease;
}
.rail__top[data-visible] { opacity: 1; pointer-events: auto; }
.rail__top:hover { color: var(--paper-cream); border-color: var(--signal-orange); }
.rail__top em { font-style: normal; writing-mode: vertical-rl; letter-spacing: 0.22em; }

/* 顶部导航条 */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 85;
  background: linear-gradient(
    to bottom,
    rgba(245, 239, 226, 0.96) 0%,
    rgba(245, 239, 226, 0.82) 72%,
    rgba(245, 239, 226, 0) 100%
  );
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
@media (min-width: 960px) { .topbar { left: var(--rail-w); } }

.topbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  height: var(--topbar-h);
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(14px, 3vw, 44px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand__glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--turf-green);
  color: var(--paper-cream);
  font-size: 16px;
  font-weight: 800;
  flex: 0 0 auto;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.16; }
.brand__text strong { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink-navy); }
.brand__text em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ink-navy-70);
}

.brandline {
  display: none;
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(--rule-sand);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-navy-70);
  white-space: nowrap;
}
@media (min-width: 1180px) { .brandline { display: block; } }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: clamp(8px, 1.5vw, 20px); }
.site-nav a {
  display: inline-block;
  padding: 7px 2px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-navy);
  transition: color 160ms ease, border-color 160ms ease;
}
.site-nav a:hover { border-bottom-color: var(--rule-sand); }
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--signal-orange);
  color: var(--ink-navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 38px;
  margin-left: auto;
  padding: 0 11px;
  border: 1px solid var(--rule-sand);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-navy);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms ease, opacity 160ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 899px) { .nav-toggle { display: flex; } }

/* 实色阅读态 */
.site-header.is-solid .topbar,
.site-header.is-nav-open .topbar {
  background: var(--ink-navy);
  box-shadow: 0 14px 34px rgba(13, 27, 42, 0.26);
}
.site-header.is-solid .brand__text strong,
.site-header.is-nav-open .brand__text strong { color: var(--paper-cream); }
.site-header.is-solid .brand__text em,
.site-header.is-nav-open .brand__text em { color: rgba(245, 239, 226, 0.6); }
.site-header.is-solid .brandline,
.site-header.is-nav-open .brandline {
  color: rgba(245, 239, 226, 0.62);
  border-left-color: rgba(245, 239, 226, 0.2);
}
.site-header.is-solid .site-nav a,
.site-header.is-nav-open .site-nav a { color: rgba(245, 239, 226, 0.8); }
.site-header.is-solid .site-nav a:hover,
.site-header.is-nav-open .site-nav a:hover { border-bottom-color: rgba(245, 239, 226, 0.4); }
.site-header.is-solid .site-nav a[aria-current="page"],
.site-header.is-nav-open .site-nav a[aria-current="page"] {
  color: var(--paper-cream);
  border-bottom-color: var(--signal-orange);
}
.site-header.is-solid .nav-toggle,
.site-header.is-nav-open .nav-toggle {
  color: var(--paper-cream);
  border-color: rgba(245, 239, 226, 0.35);
}

/* 轮次刻度条 */
.tick-strip {
  position: relative;
  height: var(--tick-h);
  overflow: hidden;
  background: rgba(198, 185, 156, 0.5);
}
.tick-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    rgba(13, 27, 42, 0.32) 0 1px,
    transparent 1px calc(100% / 30)
  );
}
.tick-strip__range {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--from, 0%);
  width: var(--span, 100%);
  background: var(--signal-orange);
}

/* 移动端导航面板 */
@media (max-width: 899px) {
  .site-nav {
    position: fixed;
    top: calc(var(--topbar-h) + var(--tick-h));
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--topbar-h) - var(--tick-h));
    overflow-y: auto;
    display: none;
    padding: 12px clamp(16px, 5vw, 32px) 24px;
    background: var(--ink-navy);
    box-shadow: 0 24px 44px rgba(13, 27, 42, 0.32);
  }
  .site-nav[data-open] { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a {
    display: block;
    padding: 14px 2px;
    border-bottom: 1px solid rgba(245, 239, 226, 0.14);
    font-size: 16px;
    color: rgba(245, 239, 226, 0.86);
  }
  .site-nav a:hover { border-bottom-color: rgba(245, 239, 226, 0.4); }
  .site-nav a[aria-current="page"] { color: var(--paper-cream); border-bottom-color: var(--signal-orange); }
  .brandline { display: none; }
}

/* ---------- 9. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  padding-top: clamp(38px, 6vw, 72px);
  background: var(--ink-navy);
  color: var(--paper-cream);
  border-radius: 44px 44px 0 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(16px, 5vw, 80px);
  right: clamp(16px, 5vw, 80px);
  height: 2px;
  background: linear-gradient(to right, var(--turf-green), var(--signal-orange) 45%, rgba(228, 87, 31, 0));
}
.site-footer__grid {
  display: grid;
  gap: clamp(26px, 3.4vw, 54px);
  grid-template-columns: 1fr;
  padding-bottom: clamp(28px, 4vw, 54px);
}
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.35fr 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.5fr 1.1fr 1.1fr; } }

.footer-col { min-width: 0; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper-cream);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.footer-brand__glyph {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--turf-green);
  color: var(--paper-cream);
  font-size: 15px;
  font-weight: 800;
}
.footer-tag {
  margin: 12px 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(245, 239, 226, 0.58);
}
.footer-nav ul { display: grid; gap: 8px; margin-bottom: 20px; }
.footer-nav a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(245, 239, 226, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.footer-nav a:hover { color: var(--paper-cream); border-bottom-color: var(--signal-orange); }
.footer-cta { margin-top: 4px; }

.footer-h {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(245, 239, 226, 0.52);
}
.footer-copy {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(245, 239, 226, 0.72);
}
.footer-copy--dim { color: rgba(245, 239, 226, 0.46); }

.footer-meta { display: grid; gap: 14px; }
.footer-meta li { display: grid; gap: 3px; }
.footer-meta span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(245, 239, 226, 0.46);
}
.footer-meta strong { font-size: 13.5px; font-weight: 700; color: rgba(245, 239, 226, 0.9); }

.footer-legal {
  display: grid;
  gap: 10px;
  padding-block: clamp(18px, 3vw, 30px);
  border-top: 1px solid rgba(245, 239, 226, 0.16);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px clamp(12px, 2vw, 26px); margin-bottom: 4px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid rgba(245, 239, 226, 0.26);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(245, 239, 226, 0.86);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.footer-links a:hover {
  background: var(--turf-green);
  border-color: var(--turf-green);
  color: var(--paper-cream);
}
.footer-legal .footer-copy { font-size: 12.5px; line-height: 1.75; margin: 0; }

/* ---------- 10. 动效与可访问性 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bar { transform: scaleY(1) !important; }
  .rail__fill { transition: none; }
}
