/* ==========================================================================
   亚新体育赛事 · 共享样式 /assets/site.css
   设计轴：深岩底色 + 海报式分层 + 编号章节 + 玻璃/实色并置
   ========================================================================== */

:root {
  --karst-ink: #14181C;
  --slate-rock: #232A31;
  --fog-line: #3B4650;
  --mist-stone: #E9EEF1;
  --waterfall-teal: #14A0A5;
  --teal-deep: #0B6B77;
  --pulse-orange: #FF6A1A;
  --orange-soft: #FFB27A;
  --turf-lime: #B6FF3C;
  --heat-red: #E5484D;
  --dim: #93A2AD;

  --font-display: "Oswald", "Archivo Narrow", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Consolas, "Noto Sans SC", monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --step--1: clamp(.76rem, .74rem + .1vw, .84rem);
  --step-0: 1.0625rem;
  --step-1: clamp(1.08rem, 1.02rem + .3vw, 1.25rem);
  --step-2: clamp(1.38rem, 1.2rem + .85vw, 1.95rem);
  --step-3: clamp(1.85rem, 1.45rem + 1.9vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.75rem + 3.6vw, 4.4rem);
  --step-5: clamp(3rem, 1.8rem + 6.2vw, 6.4rem);

  --page-max: 1320px;
  --page-pad: clamp(16px, 4vw, 40px);
  --gap: 24px;
  --cut: 14px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --z-chip: 70;
  --z-header: 80;
  --z-drawer: 92;
  --z-progress: 120;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  background-color: var(--karst-ink);
  background-image:
    radial-gradient(1100px 620px at 82% -8%, rgba(20, 160, 165, .18), transparent 62%),
    radial-gradient(760px 520px at 6% 4%, rgba(255, 106, 26, .12), transparent 60%);
  background-repeat: no-repeat;
  color: var(--mist-stone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }

a { color: var(--waterfall-teal); text-decoration: none; }
a:hover { color: var(--turf-lime); }

:focus-visible {
  outline: 2px solid var(--turf-lime);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--turf-lime); color: var(--karst-ink); }

/* ---------- 布局骨架 ---------- */

.container {
  width: min(100% - (var(--page-pad) * 2), var(--page-max));
  margin-inline: auto;
}

.section { padding-block: clamp(40px, 7vw, 88px); }
.section--tight { padding-block: clamp(22px, 4vw, 46px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-md { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); }
.stack-lg { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 56px); }

.dim { color: var(--dim); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, rgba(59, 70, 80, .95), rgba(59, 70, 80, .08)); }
.rule--teal { background: linear-gradient(90deg, var(--waterfall-teal), rgba(20, 160, 165, 0)); }

/* ---------- 跳转链接与阅读进度 ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--turf-lime);
  color: var(--karst-ink);
  font-weight: 700;
  font-size: .86rem;
  border-radius: 0 0 10px 10px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; color: var(--karst-ink); }

.read-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(59, 70, 80, .45);
  z-index: var(--z-progress);
  pointer-events: none;
}
.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--pulse-orange), var(--orange-soft) 48%, var(--turf-lime));
}

/* ---------- 头部 ---------- */

.site-header {
  position: sticky;
  top: 3px;
  z-index: var(--z-header);
  background: linear-gradient(180deg, rgba(20, 24, 28, .97), rgba(20, 24, 28, .84));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--fog-line);
}

.masthead { border-bottom: 1px solid rgba(59, 70, 80, .72); }

.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 66px;
  padding-block: 10px;
}

.masthead__cta { flex: 0 0 auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--mist-stone);
}
.brand:hover { color: var(--mist-stone); }

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background: linear-gradient(150deg, var(--waterfall-teal), var(--teal-deep) 58%, var(--pulse-orange));
  clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%);
}
.brand__mark::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 7px;
  width: 14px;
  height: 3px;
  background: var(--turf-lime);
  border-radius: 2px;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.28; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: .04em;
}
.brand__line {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  color: var(--dim);
  text-transform: uppercase;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  padding: 0;
  list-style: none;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--mist-stone);
  padding: 5px 11px;
  border: 1px solid var(--fog-line);
  background: rgba(35, 42, 49, .62);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.tool-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 7px;
  background: var(--waterfall-teal);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: rgba(35, 42, 49, .78);
  border: 1px solid var(--fog-line);
  color: var(--mist-stone);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle:hover { color: var(--turf-lime); border-color: var(--turf-lime); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), top .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] { color: var(--turf-lime); border-color: var(--turf-lime); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.nav-toggle__label { font-size: .78rem; letter-spacing: .1em; }

.nav-rail { position: relative; background: rgba(20, 24, 28, .58); }
.nav-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 160, 165, .16), transparent 34%, transparent 68%, rgba(255, 106, 26, .14));
}
.nav-rail__inner { position: relative; }

.nav { position: relative; }

.nav__list {
  display: flex;
  gap: clamp(4px, 1.4vw, 16px);
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }

.nav__item { flex: 0 0 auto; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 12px;
  color: var(--dim);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.nav__link:hover { color: var(--mist-stone); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  background: var(--turf-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--mist-stone); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--pulse-orange); color: #16181A; }
.btn--primary:hover { background: var(--orange-soft); color: #16181A; box-shadow: 0 12px 26px rgba(255, 106, 26, .28); }

.btn--ghost { background: transparent; border-color: var(--fog-line); color: var(--mist-stone); }
.btn--ghost:hover { border-color: var(--turf-lime); color: var(--turf-lime); }

.btn--lime { background: var(--turf-lime); color: var(--karst-ink); }
.btn--lime:hover { background: #CBFF7A; color: var(--karst-ink); }

.btn--teal { background: var(--waterfall-teal); color: #06282B; }
.btn--teal:hover { background: #1FB8BD; color: #06282B; }

.btn--sm { padding: 8px 15px; font-size: .78rem; }

/* ---------- 卡片与面板 ---------- */

.cut {
  --cut: 14px;
  --cut-edge: rgba(59, 70, 80, .92);
  --cut-face: var(--slate-rock);
  position: relative;
  padding: 1px;
  background: var(--cut-edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.cut__body {
  height: 100%;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--cut-face);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.cut--teal { --cut-edge: linear-gradient(150deg, rgba(20, 160, 165, .78), rgba(59, 70, 80, .5)); }
.cut--orange { --cut-edge: linear-gradient(150deg, rgba(255, 106, 26, .85), rgba(59, 70, 80, .38)); }
.cut--lime { --cut-edge: linear-gradient(150deg, rgba(182, 255, 60, .8), rgba(59, 70, 80, .34)); }
.cut--light { --cut-face: var(--mist-stone); --cut-edge: rgba(20, 24, 28, .16); }

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--slate-rock);
  border: 1px solid rgba(59, 70, 80, .85);
}
.panel--glass {
  background: rgba(35, 42, 49, .55);
  border-color: rgba(59, 70, 80, .6);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}
.panel--light { background: #FFFFFF; color: var(--karst-ink); border-color: rgba(20, 24, 28, .1); }
.panel--lift { transition: transform .22s var(--ease), border-color .22s var(--ease); }
.panel--lift:hover { transform: translateY(-4px); border-color: rgba(182, 255, 60, .5); }

/* ---------- 排版组件 ---------- */

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: .94;
}
.display--xl { font-size: var(--step-5); }
.display--lg { font-size: var(--step-4); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--waterfall-teal);
}
.eyebrow::before { content: ""; display: block; width: 22px; height: 1px; background: currentColor; }

.num {
  font-family: var(--font-display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: .86;
}
.num--ghost { color: rgba(182, 255, 60, .16); }

.section-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: var(--step-4);
  line-height: .9;
  letter-spacing: -.02em;
  color: rgba(182, 255, 60, .22);
  transition: color .3s var(--ease);
}

[data-chapter] { scroll-margin-top: 140px; }
[data-chapter].is-current .section-num { color: var(--pulse-orange); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.05;
  color: var(--turf-lime);
}
.stat__label {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
.stat--warm .stat__value { color: var(--pulse-orange); }
.stat--down .stat__value { color: var(--heat-red); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--fog-line);
  background: rgba(20, 24, 28, .5);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
}
.tag--live { border-color: rgba(182, 255, 60, .55); color: var(--turf-lime); }
.tag--next { border-color: rgba(255, 106, 26, .55); color: var(--pulse-orange); }

/* ---------- 图片容器基础规则 ---------- */

.media-frame {
  --cut: 14px;
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--slate-rock);
  background-image: linear-gradient(140deg, rgba(35, 42, 49, .96), rgba(20, 24, 28, .98));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 70, 80, .38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 70, 80, .38) 1px, transparent 1px);
  background-size: 48px 48px;
}
.media-frame__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 24, 28, .05) 34%, rgba(20, 24, 28, .88));
}
.media-frame__coord {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--turf-lime);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 坐标索引轨道 ---------- */

.index-rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.index-rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--dim);
  border-left: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.index-rail__link::before {
  content: attr(data-ord);
  font-size: .66rem;
  color: var(--fog-line);
}
.index-rail__link:hover { color: var(--mist-stone); background: rgba(20, 160, 165, .1); }
.index-rail__link.is-current,
.index-rail__link[aria-current="true"] {
  color: var(--turf-lime);
  border-left-color: var(--turf-lime);
  background: rgba(182, 255, 60, .08);
}

/* ---------- 显现协议 ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease) var(--d, 0ms), transform .5s var(--ease) var(--d, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 面包屑与正文 ---------- */

.breadcrumbs {
  padding-block: clamp(14px, 3vw, 26px);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--dim);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--fog-line); }
.breadcrumbs a { color: var(--dim); }
.breadcrumbs a:hover { color: var(--turf-lime); }
.breadcrumbs [aria-current="page"] { color: var(--mist-stone); }

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  letter-spacing: -.01em;
  line-height: 1.24;
}
.prose h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.35; }
.prose p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .35em; }
.prose a { border-bottom: 1px solid rgba(20, 160, 165, .55); }
.prose--light { color: var(--karst-ink); }
.prose--light a { color: var(--teal-deep); }
.prose--light a:hover { color: var(--pulse-orange); }

.light-zone { background: var(--mist-stone); color: var(--karst-ink); }
.light-zone a { color: var(--teal-deep); }
.light-zone a:hover { color: var(--pulse-orange); }
.light-zone .dim { color: #5C6B76; }
.light-zone .eyebrow { color: var(--teal-deep); }
.light-zone .section-num { color: rgba(20, 160, 165, .28); }
.light-zone .stat__value { color: var(--teal-deep); }
.light-zone .stat__label { color: #5C6B76; }
.light-zone .rule { background: linear-gradient(90deg, rgba(20, 24, 28, .22), rgba(20, 24, 28, .04)); }
.light-zone .index-rail__link { color: #5C6B76; }
.light-zone .index-rail__link:hover { color: var(--karst-ink); background: rgba(20, 160, 165, .12); }
.light-zone .index-rail__link.is-current,
.light-zone .index-rail__link[aria-current="true"] { color: var(--teal-deep); border-left-color: var(--teal-deep); background: rgba(20, 160, 165, .12); }

/* ---------- 常驻浮层 ---------- */

.collect-chip {
  position: fixed;
  right: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 28px);
  z-index: var(--z-chip);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(35, 42, 49, .74);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--fog-line);
  color: var(--mist-stone);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.collect-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--pulse-orange);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.collect-chip:hover { transform: translateY(-3px); border-color: var(--turf-lime); }
.collect-chip[aria-pressed="true"] { border-color: var(--turf-lime); color: var(--turf-lime); }
.collect-chip[aria-pressed="true"]::before { background: var(--turf-lime); }

.to-top {
  position: fixed;
  left: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 28px);
  z-index: var(--z-chip);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(35, 42, 49, .74);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--fog-line);
  color: var(--mist-stone);
  font-family: var(--font-mono);
  font-size: .78rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), visibility .22s var(--ease), transform .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.to-top.is-shown { opacity: 1; visibility: visible; }
.to-top:hover { border-color: var(--turf-lime); color: var(--turf-lime); transform: translateY(-3px); }

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--fog-line);
  background: linear-gradient(180deg, var(--karst-ink), #0E1216 58%, #0A0D10);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(20, 160, 165, .18), transparent 42%),
    linear-gradient(300deg, rgba(255, 106, 26, .12), transparent 48%);
}
.site-footer > .container {
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 6vw, 72px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 2.1fr;
  gap: clamp(28px, 4vw, 64px);
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-region {
  max-width: 30ch;
  color: var(--dim);
  font-size: .9rem;
  line-height: 1.7;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--waterfall-teal);
}

.footer-links { display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; }
.footer-links a { color: var(--mist-stone); font-size: .92rem; }
.footer-links a:hover { color: var(--turf-lime); }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid rgba(59, 70, 80, .8);
}
.footer-contact__item { display: flex; flex-direction: column; gap: 6px; }
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-contact__value { color: var(--mist-stone); font-size: .92rem; line-height: 1.6; word-break: break-word; }
.footer-contact__note {
  grid-column: 1 / -1;
  max-width: 82ch;
  color: var(--dim);
  font-size: .82rem;
  line-height: 1.75;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(24px, 4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid rgba(59, 70, 80, .8);
  color: var(--dim);
  font-size: .8rem;
}
.footer-legal p { margin: 0; }
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 0; list-style: none; }
.footer-legal__links a { color: var(--dim); }
.footer-legal__links a:hover { color: var(--turf-lime); }
.footer-icp { font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  .tools { display: none; }
  .masthead__cta { margin-left: auto; }
}

@media (max-width: 1023px) {
  .grid-12 { gap: 18px; }
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-7, .col-8, .col-9 { grid-column: span 12; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 899px) {
  html { scroll-padding-top: 108px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .masthead__cta { margin-left: 0; }

  .nav-rail { background: transparent; }
  .nav-rail::before { display: none; }
  .nav-rail__inner { padding-block: 0; }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: var(--z-drawer);
    display: none;
    max-height: min(78vh, 560px);
    overflow-y: auto;
    padding: 18px var(--page-pad) 30px;
    background:
      linear-gradient(180deg, rgba(11, 107, 119, .24), rgba(20, 24, 28, .99) 26%),
      var(--karst-ink);
    border-top: 1px solid var(--fog-line);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, .55);
  }
  .nav[data-open="true"] {
    display: block;
    animation: drawer-in .22s var(--ease) both;
  }

  .nav__list { flex-direction: column; gap: 0; overflow: visible; }
  .nav__item { border-bottom: 1px solid rgba(59, 70, 80, .55); }
  .nav__link { width: 100%; padding: 15px 14px; font-size: 1.02rem; }
  .nav__link::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 16px;
    transform: scaleY(0);
    transform-origin: bottom;
  }
  .nav__link:hover::after,
  .nav__link[aria-current="page"]::after { transform: scaleY(1); }
}

@media (max-width: 719px) {
  .col-3, .col-4, .col-5, .col-6 { grid-column: span 12; }
  .masthead__inner { min-height: 58px; gap: 10px; }
  .brand__line { display: none; }
  .brand__name { font-size: 1rem; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .collect-chip { font-size: .76rem; padding: 10px 13px; }
  .to-top { width: 38px; height: 38px; }
}

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
