/* ============================================================
   中欧体育 · 共享样式表 /assets/site.css
   矿物色 + 侧边轨道 + 归档册秩序
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
figure,
blockquote,
dl,
dd { margin: 0; }

h1, h2, h3, h4, h5, h6,
p { margin: 0; }

ul,
ol { margin: 0; padding: 0; }

ul[class],
ol[class] { list-style: none; }

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

a { color: inherit; }

table {
  border-collapse: collapse;
  width: 100%;
}

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #0A211C;
  --ink-700: #123A31;
  --moss: #3E6B58;
  --gold: #C9A15A;
  --gold-pale: #EBD9B4;
  --ice: #7FB6D4;
  --rust: #A34E2C;
  --rock: #6E7378;
  --paper: #F4F1E9;
  --paper-warm: #E6E0D2;
  --line: #2B3B36;

  --rail-w: 88px;
  --topbar-h: 56px;

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 14px;

  --edge: clamp(18px, 4vw, 48px);
  --flow: clamp(48px, 7vw, 96px);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-speed: "Oswald", "Barlow Condensed", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

/* ---------- 3. 页面基底 ---------- */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-700);
  background: var(--paper);
  padding-left: var(--rail-w);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.2;
}

::selection {
  background: var(--gold);
  color: var(--ink-900);
}

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

.site-header { position: static; }

/* ---------- 4. 排版工具 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 5.2vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--ink-900);
}

.speed {
  font-family: var(--font-speed);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
}

.subhead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.35;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  color: var(--ink-900);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--moss);
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.8;
  color: var(--ink-700);
  max-width: 32em;
}

.prose { max-width: 38em; }
.prose p { max-width: 34em; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin-top: 2.4em; margin-bottom: .8em; }
.prose h3 { margin-top: 1.9em; margin-bottom: .6em; font-size: 1.125rem; }
.prose ul { margin-top: 1em; padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: .5em; }

/* ---------- 5. 容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--edge);
}

.wrap--narrow { max-width: 820px; }
.wrap--wide { max-width: 1440px; }

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.section { padding-block: var(--flow); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--paper-warm) 12%, var(--paper-warm) 88%, transparent);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-m);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}

.btn:active { transform: translateY(1px); }

.btn--gold { background: var(--gold); color: var(--ink-900); }
.btn--gold:hover { background: var(--gold-pale); }

.btn--ink { background: var(--ink-900); color: var(--paper); }
.btn--ink:hover { background: var(--ink-700); }

.btn--ghost {
  background: transparent;
  border-color: rgba(10, 33, 28, .22);
  color: var(--ink-900);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--ink-700); }

.btn--on-dark {
  background: transparent;
  border-color: rgba(244, 241, 233, .3);
  color: var(--paper);
}
.btn--on-dark:hover { border-color: var(--gold); color: var(--gold-pale); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 16px;
  border: 1px solid rgba(201, 161, 90, .45);
  border-radius: 999px;
  background: rgba(201, 161, 90, .12);
  color: var(--gold-pale);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.copy-btn:hover { background: rgba(201, 161, 90, .24); border-color: var(--gold); }
.copy-btn[data-copied="true"] { color: var(--ice); border-color: var(--ice); }

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--rock);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(110, 115, 120, .55);
}
.breadcrumb a { text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--ink-700); border-bottom-color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--ink-900); }

/* ---------- 8. 色带 / 浮动卡片 / 数据块 ---------- */
.band {
  width: 100%;
  background: var(--ink-900);
  color: var(--paper);
}
.band--paper { background: var(--paper-warm); color: var(--ink-900); }
.band--moss { background: var(--moss); color: var(--paper); }
.band__inner { padding-block: var(--flow); }

.band--paper .display,
.band--paper .subhead { color: var(--ink-900); }
.band .display,
.band .subhead { color: var(--paper); }

.panel {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-l);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 22px 46px -32px rgba(10, 33, 28, .55);
}
.panel--ink {
  background: var(--ink-700);
  color: var(--paper);
}
.panel--ink .subhead { color: var(--paper); }

.stat { display: flex; flex-direction: column; gap: 6px; }

.stat__num {
  font-family: var(--font-speed);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--gold);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--rock);
}

.stat__label--on-dark { color: rgba(244, 241, 233, .62); }

/* ---------- 9. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold-pale);
  color: var(--ink-700);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.tag:hover { border-color: var(--gold); }

.tag[aria-pressed="true"],
.tag.is-active {
  background: var(--ink-900);
  color: var(--gold-pale);
  border-color: var(--ink-900);
}

.tag--rust { background: rgba(163, 78, 44, .16); color: var(--rust); }
.tag--rust[aria-pressed="true"] { background: var(--rust); color: var(--paper); border-color: var(--rust); }

/* ---------- 10. 分段切换 ---------- */
.tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--paper-warm);
}

.tab {
  appearance: none;
  padding: 12px 16px;
  border-radius: var(--r-s) var(--r-s) 0 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--rock);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}
.tab:hover { color: var(--ink-700); background: rgba(230, 224, 210, .45); }
.tab[aria-selected="true"] { color: var(--ink-900); }

.tabs__underline {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ice));
  transition: transform .22s ease, width .22s ease;
  pointer-events: none;
}

.tab-panel { padding-top: clamp(20px, 3vw, 32px); }

/* ---------- 11. 手风琴 ---------- */
.acc { border-top: 1px solid var(--paper-warm); }

.acc__item { border-bottom: 1px solid var(--paper-warm); }

.acc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
}

.acc__icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  position: relative;
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--gold);
  transition: transform .18s ease;
}
.acc__icon::after { transform: rotate(90deg); }
.acc__trigger[aria-expanded="true"] .acc__icon::after { transform: rotate(0deg); }

.acc__panel { padding: 0 0 20px; }

/* ---------- 12. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-l);
  background: linear-gradient(135deg, var(--ink-700), var(--moss));
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media:empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg,
    rgba(244, 241, 233, .07) 0 12px,
    transparent 12px 24px);
}

.media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(10, 33, 28, .88));
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
}

/* ---------- 13. 筛选与显现 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.filter-item { animation: filterIn .12s ease-out both; }

@keyframes filterIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease-out, transform .2s ease-out;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 14. 索引目录 ---------- */
.toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.toc__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-s) var(--r-s) 0;
  text-decoration: none;
  color: var(--rock);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.toc__link:hover { color: var(--ink-700); background: rgba(230, 224, 210, .5); }
.toc__link[aria-current="true"] {
  color: var(--ink-900);
  border-left-color: var(--gold);
  background: rgba(235, 217, 180, .35);
}

/* ---------- 15. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-m);
  background: var(--gold);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .16s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   16. 头部 · 侧边轨道
   ============================================================ */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 70;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--paper);
  border-right: 1px solid rgba(201, 161, 90, .26);
}

.rail::before {
  content: "";
  position: absolute;
  left: -60%;
  right: -60%;
  bottom: 16%;
  height: 130px;
  background: linear-gradient(90deg, transparent, rgba(62, 107, 88, .5), transparent);
  transform: rotate(-14deg);
  pointer-events: none;
}

.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--gold), var(--ice));
  z-index: 3;
  pointer-events: none;
}

.rail__top {
  position: relative;
  flex: 0 0 auto;
  padding: 22px 8px 14px;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  text-align: center;
}

.rail__mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 7px var(--ink-900), 0 0 0 1px rgba(201, 161, 90, .5);
}

.rail__brand-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--paper);
  line-height: 1.3;
}

.rail__brand-note {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.5;
  color: rgba(244, 241, 233, .48);
}

.rail__nav {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 6px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border-top: 1px solid rgba(244, 241, 233, .1);
  margin-top: 6px;
}
.rail__nav::-webkit-scrollbar { display: none; }

.rail__marker {
  position: absolute;
  left: 8px;
  top: 0;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--ice));
  opacity: 0;
  transition: transform .18s ease, height .18s ease, opacity .18s ease;
  pointer-events: none;
  z-index: 1;
}
.rail__nav[data-marker-ready] .rail__marker { opacity: 1; }

.rail__list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 6px 7px 10px;
}

.rail__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 2px;
  border-radius: var(--r-m);
  text-decoration: none;
  color: rgba(244, 241, 233, .6);
  transition: color .18s ease, background-color .18s ease;
}

.rail__link:hover {
  color: var(--paper);
  background: rgba(244, 241, 233, .07);
}

.rail__link[aria-current="page"] {
  color: var(--gold);
  background: rgba(201, 161, 90, .13);
}

.rail__idx {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  color: rgba(201, 161, 90, .6);
}

.rail__link[aria-current="page"] .rail__idx { color: var(--gold); }

.rail__label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.25;
  text-align: center;
}

.rail__foot {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 8px calc(18px);
  border-top: 1px solid rgba(244, 241, 233, .12);
  text-align: center;
}

.rail__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.6;
  color: rgba(244, 241, 233, .55);
}

.pulse {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
  animation: pulseDot 2.4s ease-out infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(163, 78, 44, .55); }
  70% { box-shadow: 0 0 0 7px rgba(163, 78, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 78, 44, 0); }
}

.rail__cta {
  display: block;
  width: 100%;
  padding: 10px 4px;
  border-radius: var(--r-m);
  background: var(--gold);
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.rail__cta:hover { background: var(--gold-pale); transform: translateY(-1px); }

/* ---------- 17. 头部 · 移动横栏与抽屉 ---------- */
.topbar { display: none; }
.scrim { display: none; }

@media (max-width: 1023px) {
  html { scroll-padding-top: calc(var(--topbar-h) + 18px); }

  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 65;
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--topbar-h);
    padding: 0 14px;
    background: var(--ink-900);
    color: var(--paper);
    border-bottom: 1px solid rgba(201, 161, 90, .26);
  }

  .topbar__toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: var(--r-m);
    color: var(--gold-pale);
    cursor: pointer;
    transition: background-color .18s ease;
  }
  .topbar__toggle:hover { background: rgba(244, 241, 233, .08); }

  .topbar__bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
  }
  .topbar__bars i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    transition: transform .18s ease, width .18s ease;
  }
  .topbar__bars i:nth-child(2) { width: 12px; }
  .topbar__toggle[aria-expanded="true"] .topbar__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .topbar__toggle[aria-expanded="true"] .topbar__bars i:nth-child(2) { width: 18px; opacity: 0; }
  .topbar__toggle[aria-expanded="true"] .topbar__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .topbar__text {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .08em;
  }

  .topbar__brand {
    flex: 1 1 auto;
    text-align: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--paper);
    text-decoration: none;
  }

  .topbar__cta {
    padding: 7px 14px;
    border: 1px solid rgba(201, 161, 90, .5);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--gold-pale);
    text-decoration: none;
    white-space: nowrap;
  }

  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(10, 33, 28, .62);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .scrim[data-open="true"] { opacity: 1; visibility: visible; }

  .rail {
    width: min(82vw, 320px);
    transform: translateX(-100%);
    transition: transform .22s cubic-bezier(.22, .8, .28, 1);
    box-shadow: 0 26px 60px -22px rgba(0, 0, 0, .65);
    border-right: 0;
  }
  .rail[data-open="true"] { transform: translateX(0); }

  .rail::before {
    left: -20%;
    right: -20%;
    bottom: 8%;
    height: 180px;
  }

  .rail__top { padding: 22px 18px 16px; }

  .rail__brand {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 12px;
    text-align: left;
  }
  .rail__mark { grid-row: 1 / span 2; }
  .rail__brand-name { font-size: 17px; }
  .rail__brand-note { font-size: 10px; }

  .rail__nav {
    padding: 0;
    margin-top: 0;
    border-top: 1px solid rgba(244, 241, 233, .1);
  }

  .rail__marker { left: 16px; }

  .rail__list { padding: 14px 16px 20px; gap: 4px; }

  .rail__link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--r-m);
  }

  .rail__idx { font-size: 11px; }

  .rail__label {
    font-size: 16px;
    text-align: left;
  }

  .rail__foot {
    align-items: stretch;
    gap: 12px;
    padding: 16px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    text-align: left;
  }
  .rail__status { justify-content: flex-start; font-size: 11px; }
  .rail__cta { padding: 12px 16px; font-size: 13px; }
}

/* ---------- 18. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: rgba(244, 241, 233, .78);
  padding-top: clamp(46px, 6vw, 84px);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ice) 38%, transparent 78%);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 12%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 107, 88, .35), transparent 68%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--edge);
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(0, 2.6fr) minmax(240px, 1.7fr);
  gap: clamp(26px, 4vw, 52px);
}

.footer__brand { display: flex; flex-direction: column; align-items: flex-start; }

.footer__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--paper);
}

.footer__note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 241, 233, .6);
  max-width: 22em;
}

.footer__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 13px;
  border: 1px solid rgba(201, 161, 90, .32);
  border-radius: 999px;
  background: rgba(201, 161, 90, .13);
  color: var(--gold-pale);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .05em;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--gold);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list a {
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  color: rgba(244, 241, 233, .72);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.footer__list a:hover {
  color: var(--gold-pale);
  border-bottom-color: rgba(201, 161, 90, .55);
}

.footer__contact { display: flex; flex-direction: column; align-items: flex-start; }

.footer__line {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(244, 241, 233, .66);
  max-width: 30em;
}
.footer__line + .footer__line { margin-top: 4px; }

.footer__base {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: clamp(34px, 5vw, 62px) auto 0;
  padding: 20px var(--edge) 28px;
  border-top: 1px solid rgba(244, 241, 233, .12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 30px;
}

.footer__base .mono {
  font-size: 12px;
  color: rgba(244, 241, 233, .5);
}

@media (max-width: 1023px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer__base { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- 19. 中屏微调 ---------- */
@media (max-width: 1023px) {
  .display { font-size: clamp(2.125rem, 7.6vw, 3.25rem); }
  body { font-size: 16.5px; }
}

@media (max-width: 400px) {
  :root { --edge: 16px; }
  .topbar__text { display: none; }
}

/* ---------- 20. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1 !important; transform: none !important; }
  .filter-item { animation: none !important; opacity: 1 !important; transform: none !important; }
  .pulse { animation: none !important; box-shadow: 0 0 0 3px rgba(163, 78, 44, .22) !important; }
}
