/* ============================================================
   顺发体育 · sf-shunfa.com.cn
   共享样式表 /assets/site.css
   轮次轴外壳 + Bento 组件基座 + 粗野主义材质
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:where(button, [type="button"]) { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--flare); outline-offset: 3px; }

/* ---------- 2. Design tokens ---------- */
:root {
  --gold: #C89B3C;
  --glacier: #6FB7C9;
  --glacier-deep: #2F6F7E;
  --ink: #1C1B19;
  --flare: #FF6B2C;
  --sand: #E7E1D8;
  --sand-deep: #CFC6B8;
  --night: #0E1416;
  --warm: #F7F4EF;

  --rail: 264px;
  --bar-h: 70px;
  --line: 3px;
  --gap: 16px;
  --wrap: 1240px;
  --radius: 2px;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --fs-display: clamp(2.4rem, 7vw, 6rem);
  --fs-h2: clamp(1.65rem, 3.4vw, 3rem);
  --fs-h3: clamp(1.15rem, 1.9vw, 1.6rem);
  --fs-body: clamp(1rem, 0.55vw + 0.86rem, 1.125rem);
  --fs-small: 0.8125rem;
  --fs-tag: 0.78rem;

  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --shadow-soft: 0 24px 48px -30px rgba(14, 20, 22, 0.75);
  --ease: cubic-bezier(0.22, 0.75, 0.2, 1);
}

/* ---------- 3. 基础排版 ---------- */
html { background: var(--sand); }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
  padding-top: var(--bar-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1 1 auto; }
#main-content { scroll-margin-top: calc(var(--bar-h) + 16px); }

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 800; }
h4 { font-size: 1.05rem; font-weight: 800; letter-spacing: 0; }
p { max-width: 68ch; }
strong { font-weight: 800; }
::selection { background: var(--gold); color: var(--night); }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--night);
  font-weight: 800;
  font-size: 0.9rem;
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 轮次轴（Header） ---------- */
.site-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  width: auto;
  z-index: 96;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--warm);
  background:
    radial-gradient(140% 90% at 0% 0%, rgba(111, 183, 201, 0.26), transparent 62%),
    radial-gradient(120% 90% at 100% 100%, rgba(200, 155, 60, 0.22), transparent 60%),
    var(--night);
  border-bottom: var(--line) solid var(--ink);
  overflow: visible;
}
.rail-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: rgba(247, 244, 239, 0.14);
  pointer-events: none;
}
.rail-progress__bar {
  display: block;
  width: calc(var(--p, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--glacier), var(--gold) 60%, var(--flare));
}
.rail-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
}
.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: var(--warm);
}
.rail-brand__mark {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--night);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 rgba(14, 20, 22, 0.9);
}
.rail-brand__text { display: flex; flex-direction: column; min-width: 0; }
.rail-brand__name { font-size: 1rem; font-weight: 900; letter-spacing: 0.02em; line-height: 1.3; }
.rail-brand__line { display: none; font-size: var(--fs-tag); color: var(--glacier); line-height: 1.4; }
.rail-hint { display: none; }
.rail-toggle {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: var(--line) solid rgba(247, 244, 239, 0.35);
  border-radius: var(--radius);
  color: var(--warm);
  font-weight: 800;
  font-size: 0.85rem;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.rail-toggle:hover { border-color: var(--gold); }
.rail-toggle[aria-expanded="true"] { background: rgba(255, 107, 44, 0.18); border-color: var(--flare); }
.rail-toggle__bars {
  width: 20px;
  height: 14px;
  flex: none;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat;
}
.rail-toggle[aria-expanded="true"] .rail-toggle__bars {
  background: linear-gradient(var(--flare), var(--flare)) 0 50% / 100% 3px no-repeat;
}
.site-nav {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  bottom: 0;
  width: min(86vw, 330px);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 20px 30px;
  overflow-y: auto;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(111, 183, 201, 0.2), transparent 60%),
    var(--night);
  border-right: 4px solid var(--gold);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
}
.site-nav[data-open] { transform: none; visibility: visible; }
.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(247, 244, 239, 0.16);
}
.site-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-left: 4px solid transparent;
  border-radius: var(--radius);
  color: var(--sand);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.site-nav__link:hover { background: rgba(247, 244, 239, 0.08); border-left-color: var(--glacier); transform: translateX(3px); }
.site-nav__link[aria-current="page"] {
  background: rgba(200, 155, 60, 0.22);
  border-left-color: var(--gold);
  color: var(--warm);
}
.site-nav__idx { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--glacier); }
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--flare); }
.site-nav__text { letter-spacing: 0.01em; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.rail-cta-link {
  align-self: flex-start;
  color: var(--glacier);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(111, 183, 201, 0.5);
}
.rail-cta-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 94;
  background: rgba(14, 20, 22, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.nav-scrim[data-open] { opacity: 1; pointer-events: auto; }
.site-rail :focus-visible { outline-color: var(--gold); }

/* ---------- 6. 页脚 ---------- */
.site-foot {
  margin-top: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(200, 155, 60, 0.16), transparent 60%),
    radial-gradient(100% 70% at 0% 100%, rgba(111, 183, 201, 0.14), transparent 62%),
    var(--night);
  color: var(--sand);
  border-top: 4px solid var(--gold);
}
.site-foot__inner { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; padding: clamp(34px, 5vw, 64px) 0 22px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 30px 28px; }
.foot-col { min-width: 0; }
.foot-col--brand { border-left: 4px solid var(--glacier); padding-left: 14px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 900; color: var(--warm); }
.foot-brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--night);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}
.foot-note { margin-top: 10px; font-size: 0.86rem; color: rgba(231, 225, 216, 0.78); max-width: 34ch; }
.foot-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.foot-list { display: flex; flex-direction: column; gap: 9px; }
.foot-list a {
  color: var(--sand);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.foot-list a:hover, .foot-list a:focus-visible { color: var(--glacier); border-bottom-color: var(--glacier); }
.foot-meta { display: flex; flex-direction: column; gap: 10px; }
.foot-meta li { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.88rem; }
.foot-meta__k { flex: none; min-width: 62px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--glacier); padding-top: 2px; }
.foot-meta__v { color: rgba(231, 225, 216, 0.9); }
.foot-base {
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 16px;
  border-top: 1px solid rgba(231, 225, 216, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  justify-content: space-between;
}
.foot-icp { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; color: rgba(231, 225, 216, 0.7); max-width: none; }
.foot-top {
  padding: 10px 16px;
  background: transparent;
  color: var(--warm);
  font-weight: 800;
  font-size: 0.84rem;
  border: var(--line) solid rgba(247, 244, 239, 0.4);
  border-radius: var(--radius);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.foot-top:hover { background: var(--gold); color: var(--night); border-color: var(--ink); transform: translate(-2px, -2px); }

/* ---------- 7. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--warm);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn--gold { background: var(--gold); }
.btn--glacier { background: var(--glacier); }
.btn--flare { background: var(--flare); color: var(--warm); }
.btn--night { background: var(--night); color: var(--warm); border-color: var(--night); box-shadow: 4px 4px 0 var(--gold); }
.btn--block { width: 100%; }

/* ---------- 8. 容器与节奏 ---------- */
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(44px, 6.5vw, 96px) 0; }
.section--tight { padding: clamp(30px, 4vw, 60px) 0; }
.section--sand { background: var(--sand); }
.section--deep { background: var(--sand-deep); }
.section--night { background: var(--night); color: var(--warm); }
.section--night p { color: rgba(231, 225, 216, 0.86); }
.grad-focus {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(111, 183, 201, 0.55), transparent 62%),
    radial-gradient(95% 85% at 92% 8%, rgba(200, 155, 60, 0.48), transparent 64%),
    radial-gradient(80% 70% at 50% 110%, rgba(255, 107, 44, 0.22), transparent 66%),
    linear-gradient(180deg, var(--warm), var(--sand));
  overflow: hidden;
}
.grad-focus--night {
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(47, 111, 126, 0.75), transparent 62%),
    radial-gradient(95% 85% at 92% 10%, rgba(200, 155, 60, 0.42), transparent 64%),
    linear-gradient(180deg, var(--night), #131b1e);
  color: var(--warm);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glacier-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--gold); }
.section--night .eyebrow { color: var(--glacier); }
.rule { height: var(--line); border: 0; background: var(--ink); margin: 0; }
.rule--soft { background: var(--sand-deep); }

/* ---------- 9. Bento / 栅格 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.bento > * { grid-column: span 12; min-width: 0; }
.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.split { display: grid; gap: var(--gap); grid-template-columns: 1fr; }

/* ---------- 10. 卡片与数据 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--warm);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.card--sand { background: var(--sand); }
.card--glacier { background: rgba(111, 183, 201, 0.22); }
.card--night { background: var(--night); color: var(--warm); border-color: var(--ink); }
.card--night p { color: rgba(231, 225, 216, 0.86); }
.card--flat { box-shadow: none; }
.card__title { font-size: 1.15rem; font-weight: 900; margin-bottom: 8px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat__value--gold { color: var(--gold); }
.stat__value--glacier { color: var(--glacier-deep); }
.stat__value--flare { color: var(--flare); }
.stat__label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(28, 27, 25, 0.62); }
.card--night .stat__value, .section--night .stat__value { color: var(--warm); }
.card--night .stat__label, .section--night .stat__label { color: rgba(231, 225, 216, 0.66); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--warm);
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.tag--gold { background: var(--gold); }
.tag--glacier { background: var(--glacier); color: var(--night); }
.tag--flare { background: var(--flare); color: var(--warm); border-color: var(--ink); }

/* ---------- 11. 数据表 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--warm);
  border: var(--line) solid var(--ink);
  font-size: 0.94rem;
}
.data-table caption { text-align: left; padding: 0 0 10px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--glacier-deep); }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--sand-deep); }
.data-table thead th { background: var(--night); color: var(--warm); font-size: 0.8rem; letter-spacing: 0.08em; border-bottom: var(--line) solid var(--ink); }
.data-table tbody tr:nth-child(odd) { background: var(--sand-deep); }
.data-table tbody tr { transition: background 0.16s var(--ease); }
.data-table tbody tr:hover { background: rgba(200, 155, 60, 0.4); }
.data-table tbody tr[data-locked] { background: rgba(255, 107, 44, 0.28); box-shadow: inset 4px 0 0 var(--flare); }
.data-table .num { font-family: var(--font-mono); font-weight: 700; }

/* 主客场双色对比条 */
.bar-duo { display: flex; height: 12px; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--warm); }
.bar-duo__home { background: var(--gold); }
.bar-duo__away { background: var(--glacier); }

/* ---------- 12. 手风琴（可展开内容组） ---------- */
.accordion { border: var(--line) solid var(--ink); background: var(--warm); border-radius: var(--radius); box-shadow: var(--shadow-hard); }
.accordion__item + .accordion__item { border-top: var(--line) solid var(--ink); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  transition: background 0.18s var(--ease);
}
.accordion__trigger:hover { background: var(--sand-deep); }
.accordion__trigger[aria-expanded="true"] { background: rgba(200, 155, 60, 0.28); }
.accordion__trigger::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--night);
}
.accordion__trigger[aria-expanded="true"]::after { content: "–"; background: var(--flare); color: var(--warm); }
.accordion__panel {
  height: 0;
  overflow: hidden;
  transition: height 0.28s var(--ease);
}
.accordion__panel > div { padding: 0 20px 20px; }
.accordion__panel p + p { margin-top: 10px; }

/* ---------- 13. 时间线 ---------- */
.timeline { position: relative; padding-left: 26px; border-left: var(--line) solid var(--ink); display: flex; flex-direction: column; gap: 26px; }
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 13px;
  height: 13px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.timeline__year { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--glacier-deep); display: block; margin-bottom: 4px; }

/* ---------- 14. 图片容器（页面阶段放置占位） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  background: linear-gradient(160deg, var(--sand) 0%, var(--sand-deep) 100%);
}
.media > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.72) contrast(1.06); }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--night { background: linear-gradient(160deg, var(--night), #16232a); }
.media__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(247, 244, 239, 0.22) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(247, 244, 239, 0.16) 0 1px, transparent 1px 64px);
  mix-blend-mode: screen;
}
.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 12px;
  background: var(--night);
  color: var(--warm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.media-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }

/* ---------- 15. 面包屑 ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; color: rgba(28, 27, 25, 0.7); }
.crumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.crumbs__item + .crumbs__item::before { content: "/"; color: var(--gold); }
.crumbs a { color: var(--glacier-deep); text-decoration: none; border-bottom: 2px solid transparent; }
.crumbs a:hover { border-bottom-color: var(--glacier-deep); }
.section--night .crumbs { color: rgba(231, 225, 216, 0.7); }
.section--night .crumbs a { color: var(--glacier); }

/* ---------- 16. 显现动画 ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js [data-reveal][data-revealed] { opacity: 1; transform: none; }

/* ---------- 17. 平板 ---------- */
@media (min-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-6, .bento-8, .bento-4, .bento-3 { grid-column: span 6; }
}

@media (min-width: 768px) {
  .bento-3 { grid-column: span 3; }
  .bento-4 { grid-column: span 4; }
  .bento-6 { grid-column: span 6; }
  .bento-8 { grid-column: span 8; }
  .bento-12 { grid-column: span 12; }
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.7fr; }
}

/* ---------- 18. 桌面：竖立轮次轴 ---------- */
@media (min-width: 1024px) {
  body { padding-top: 0; padding-left: var(--rail); }
  #main-content { scroll-margin-top: 24px; }
  .site-rail {
    top: 0;
    bottom: 0;
    right: auto;
    height: auto;
    width: var(--rail);
    align-items: stretch;
    padding: 26px 20px 22px;
    border-bottom: 0;
    border-right: var(--line) solid var(--ink);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .rail-progress { top: 0; bottom: 0; right: 0; left: auto; width: 3px; height: auto; }
  .rail-progress__bar { width: 100%; height: calc(var(--p, 0) * 100%); background: linear-gradient(180deg, var(--glacier), var(--gold) 55%, var(--flare)); }
  .rail-inner { flex-direction: column; align-items: stretch; gap: 16px; height: auto; min-height: 100%; }
  .rail-brand { flex: none; }
  .rail-brand__mark { width: 44px; height: 44px; font-size: 0.9rem; }
  .rail-brand__name { font-size: 1.12rem; }
  .rail-brand__line { display: block; }
  .rail-hint {
    display: block;
    font-size: 0.74rem;
    line-height: 1.5;
    color: rgba(231, 225, 216, 0.55);
    border-top: 1px solid rgba(247, 244, 239, 0.14);
    padding-top: 12px;
  }
  .rail-toggle { display: none; }
  .nav-scrim { display: none; }
  .site-nav {
    position: static;
    transform: none;
    visibility: visible;
    width: auto;
    background: none;
    border-right: 0;
    padding: 0;
    overflow: visible;
    flex: 1 1 auto;
    gap: 18px;
  }
  .site-nav__link { font-size: 0.97rem; padding: 11px 12px; }
}

/* ---------- 19. 降级与偏好 ---------- */
@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;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
