/* =========================================================
   球盟会QMH·中国站 — 共享样式 /assets/site.css
   夜场球场绿 · 粗边框与硬阴影 · 等宽索引
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

/* ---------- 2. 变量 ---------- */
:root {
  --bg: #0A1410;
  --bg-rail: #0E1F19;
  --bg-card: #12362A;
  --line: #1C5C43;
  --accent: #C8FF3D;
  --accent-soft: #E8FF7A;
  --warn: #FF8A3D;
  --indigo: #2B2F4A;
  --text: #F2F7F3;
  --text-dim: #9DB3A7;
  --ok: #66E0A3;

  --rail-w: 320px;
  --line-w: 2px;

  --font-sans: 'Noto Sans SC', 'Source Han Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xxl: clamp(44px, 7vw, 88px);
  --fs-xl: clamp(32px, 5vw, 56px);
  --fs-l: clamp(25px, 3.2vw, 34px);
  --fs-m: clamp(20px, 2.1vw, 24px);
  --fs-body: 17px;
  --fs-xs: 13px;

  --space-section: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow-hard: 6px 6px 0 0 var(--bg);
  --hairline: rgba(200, 255, 61, .22);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: .01em;
}

h1, .h-display {
  font-size: var(--fs-xxl);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.02em;
}

h2, .h-xl {
  font-size: var(--fs-xl);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.015em;
}

h3, .h-l {
  font-size: var(--fs-l);
  font-weight: 800;
  line-height: 1.2;
}

h4, .h-m {
  font-size: var(--fs-m);
  font-weight: 700;
  line-height: 1.35;
}

code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
}

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 4. 通用链接扫过 ---------- */
.u-sweep {
  position: relative;
}

.u-sweep::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}

.u-sweep:hover::after,
.u-sweep:focus-visible::after { transform: scaleX(1); }

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: var(--line-w) solid var(--bg);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

.skip-link:focus { transform: none; }

/* ---------- 6. 头部 / 左侧轨道 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-rail);
  border-bottom: var(--line-w) solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 12px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand__mark {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  padding: 0 8px;
  border: var(--line-w) solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  box-shadow: 4px 4px 0 0 var(--line);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .01em;
}

.brand__line {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* 抽屉按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: var(--line-w) solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}

.nav-toggle:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 4px 4px 0 0 var(--line);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--accent);
  color: var(--bg);
}

.nav-toggle__bars {
  position: relative;
  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;
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle__text { text-transform: uppercase; }

/* 面板（移动端抽屉 / 桌面轨道） */
.site-header__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  padding: 18px;
  background: var(--bg-card);
  border-top: var(--line-w) solid var(--line);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 8px 0 0 rgba(10, 20, 16, .85);
}

.site-header[data-open="true"] .site-header__panel { display: block; }

.rail-status {
  margin-bottom: 18px;
  padding: 10px 0 10px 14px;
  border-left: 3px solid var(--warn);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .05em;
}

/* 主导航 */
.nav__list {
  display: flex;
  flex-direction: column;
}

.nav__item { border-top: 1px solid var(--hairline); }

.nav__item:last-child { border-bottom: 1px solid var(--hairline); }

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 10px 10px 12px;
  border-left: 2px solid transparent;
  color: var(--text);
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}

.nav__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text-dim);
  transition: color .18s var(--ease);
}

.nav__label {
  position: relative;
  font-size: 17px;
  font-weight: 500;
}

.nav__label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}

.nav__link:hover {
  border-left-color: var(--accent);
  background: rgba(200, 255, 61, .06);
  color: var(--accent-soft);
}

.nav__link:hover .nav__num { color: var(--accent); }
.nav__link:hover .nav__label::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  border-left-color: var(--accent);
  background: var(--bg-rail);
  color: var(--accent-soft);
  font-weight: 800;
}

.nav__link[aria-current="page"] .nav__num { color: var(--accent); }

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 9px;
  height: 9px;
  background: var(--accent);
}

/* 轨道底部直达 */
.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.quick-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 0 14px;
  border: var(--line-w) solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  box-shadow: 4px 4px 0 0 var(--line);
  transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}

.quick-entry:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 4px 4px 0 0 var(--accent-soft);
}

.quick-entry__label { text-transform: uppercase; }

.quick-entry__arrow { transition: transform .18s var(--ease); }

.quick-entry:hover .quick-entry__arrow { transform: translateX(4px); }

/* 阅读进度与回到顶部 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  z-index: 80;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  min-height: 44px;
  padding: 0 16px;
  border: var(--line-w) solid var(--accent);
  background: var(--bg-rail);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease), visibility .18s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- 7. 主体容器 ---------- */
.site-main {
  display: block;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.col-4, .col-6, .col-8, .col-12 { grid-column: 1 / -1; }

.section { padding-top: var(--space-section); }

.section--narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 8. 章节与正文 ---------- */
.chapter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 3px solid var(--line);
}

.chapter__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  color: var(--accent);
}

.chapter__title {
  font-size: var(--fs-xl);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.015em;
}

.chapter__note {
  max-width: 34em;
  color: var(--text-dim);
}

.prose {
  max-width: 34em;
  font-size: var(--fs-body);
  line-height: 1.75;
}

.prose p + p { margin-top: 1.1em; }

.prose h2 {
  margin-top: 1.6em;
  font-size: var(--fs-l);
  font-weight: 800;
  line-height: 1.2;
}

.prose h3 {
  margin-top: 1.4em;
  font-size: var(--fs-m);
  font-weight: 700;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: .5em;
  margin-top: 1em;
}

.prose li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

.prose strong { color: var(--accent-soft); font-weight: 800; }

.prose a {
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  transition: border-color .18s var(--ease);
}

.prose a:hover { border-bottom-color: var(--accent); }

/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text-dim);
}

.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumbs__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-dim);
  transition: color .18s var(--ease);
}

.breadcrumbs__link:hover { color: var(--accent); }

.breadcrumbs__current { color: var(--text); font-weight: 700; }

/* ---------- 9. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: var(--line-w) solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--shadow-hard);
  box-shadow: 6px 6px 0 0 var(--line);
}

.btn:active { transform: translate(2px, 2px); }

.btn--solid {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 6px 6px 0 0 var(--line);
}

.btn--solid:hover {
  background: var(--accent-soft);
  color: var(--bg);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  color: var(--accent);
}

.btn--warn {
  border-color: var(--warn);
  color: var(--warn);
}

.btn--warn:hover {
  background: var(--warn);
  color: var(--bg);
  box-shadow: 6px 6px 0 0 var(--line);
}

/* ---------- 10. 卡片 / 标签 / 指标 ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--bg-card);
  border: var(--line-w) solid var(--line);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 6px 6px 0 0 var(--line);
}

.card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
}

.card__title {
  font-size: var(--fs-m);
  font-weight: 800;
  line-height: 1.3;
}

.card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

.card__foot { margin-top: auto; padding-top: 12px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: rgba(28, 92, 67, .28);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tag::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.tag--warn { border-color: var(--warn); color: var(--warn); }
.tag--warn::before { background: var(--warn); }

.tag--ok { border-color: var(--ok); color: var(--ok); }
.tag--ok::before { background: var(--ok); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.stat__value {
  font-family: var(--font-mono);
  font-size: var(--fs-l);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat--ok .stat__value { color: var(--ok); }

.stat--warn { border-left-color: var(--warn); }
.stat--warn .stat__value { color: var(--warn); }

/* ---------- 11. 时间轴 ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 20px;
  border-left: var(--line-w) solid var(--indigo);
}

.timeline__item { position: relative; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 7px;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: var(--line-w) solid var(--line);
}

.timeline__item--current::before {
  background: var(--accent);
  border-color: var(--accent);
  animation: qmh-breathe 2s ease-in-out infinite;
}

@keyframes qmh-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .88; }
}

.timeline__time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--warn);
}

.timeline__title {
  margin-top: 4px;
  font-size: var(--fs-m);
  font-weight: 800;
  line-height: 1.3;
}

.timeline__text {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------- 12. 图片容器（页面阶段放置占位） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: var(--line-w) solid var(--line);
  background:
    linear-gradient(200deg, rgba(200, 255, 61, .10) 0%, rgba(18, 54, 42, .0) 46%),
    linear-gradient(160deg, var(--bg-card) 0%, var(--bg-rail) 58%, var(--indigo) 100%);
  box-shadow: 6px 6px 0 0 var(--bg);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 16, 0) 42%, rgba(10, 20, 16, .74) 100%);
  pointer-events: none;
}

.media__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media--wide .media__img { aspect-ratio: 21 / 9; }

.media--phone { max-width: 320px; }
.media--phone .media__img { aspect-ratio: 9 / 19.5; }

.media__caption {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-rail);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  margin-top: var(--space-section);
  background: var(--indigo);
  border-top: 3px solid var(--accent);
  color: var(--text);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 28px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand--footer .brand__mark {
  box-shadow: 4px 4px 0 0 rgba(10, 20, 16, .6);
}

.footer__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: .14em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.footer__index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 20px;
}

.index-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
}

.index-group__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent);
}

.index-group__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}

.index-group__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--text-dim);
  font-size: 15px;
  transition: color .18s var(--ease);
}

.index-group__link:hover { color: var(--accent-soft); }

.footer__contact { display: flex; flex-direction: column; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-line__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
}

.contact-line__val {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

.footer__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 32px;
  border-top: 1px solid var(--hairline);
}

.footer__line {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--text-dim);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--text);
  transition: color .18s var(--ease);
}

.legal-link:hover { color: var(--accent-soft); }

.footer__icp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-dim);
}

/* ---------- 14. 响应式 ---------- */
@media (min-width: 560px) {
  .footer__index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 559px) {
  .brand__line { display: none; }
  .brand__name { font-size: 15px; }
  .brand__mark { min-width: 44px; height: 44px; font-size: 10px; box-shadow: 3px 3px 0 0 var(--line); }
  .nav-toggle { padding: 0 12px; }
}

@media (min-width: 760px) {
  .wrap { padding: 0 32px; }
  .grid { gap: 24px; }
  .col-6 { grid-column: span 6; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 56px 32px 32px; gap: 36px; }
  .footer__index { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__contact { grid-column: 1 / -1; }
  .footer__bottom { padding: 20px 32px 36px; }
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--rail-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: var(--line-w) solid var(--line);
  }

  .site-header__bar {
    flex: none;
    padding: 22px 22px 18px;
    border-bottom: var(--line-w) solid var(--line);
  }

  .nav-toggle { display: none; }

  .site-header__panel {
    position: static;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    padding: 18px 22px 24px;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow-y: auto;
  }

  .rail-status { margin-bottom: 22px; }

  .rail-foot { margin-top: auto; }

  .grid { gap: 28px; }
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: span 12; }

  .wrap { padding: 0 40px; }

  .scroll-progress { left: var(--rail-w); }

  .to-top { right: 24px; bottom: 24px; }

  .footer__top {
    grid-template-columns: 1fr 2.2fr 1.2fr;
    padding: 64px 40px 40px;
    gap: 40px;
  }

  .footer__contact { grid-column: auto; }

  .footer__bottom { padding: 22px 40px 40px; }

  .media-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1440px) {
  :root { --rail-w: 352px; }
}

/* ---------- 15. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .timeline__item--current::before { animation: none; }
}
