/* ============================================================
   巴沙看台 · 全站共享样式 /assets/site.css
   设计语言：看台夜光 · 回声层叠 · 纸张索引
   ============================================================ */

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

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

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
table { width: 100%; border-collapse: collapse; }
hr { height: 1px; border: 0; background: var(--line); margin: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-deep: #0A1C17;
  --ink-mid: #102A22;
  --ink-soft: #0E2620;
  --paper: #F2EAD9;
  --paper-2: #E3D6BA;
  --charcoal: #16211F;
  --cyan: #22E0C4;
  --amber: #FF9A3C;
  --press: #D94F2B;
  --muted: #93A79E;
  --line: #2F4C43;
  --rail-w: 220px;
  --wrap-w: 1180px;
  --font-head: "Helvetica Neue", "Arial Narrow", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-data: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 全局底纹与正文 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-deep);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 55% at 84% -8%, rgba(34, 224, 196, .13), transparent 62%),
    radial-gradient(72% 46% at 2% 104%, rgba(255, 154, 60, .10), transparent 64%),
    repeating-radial-gradient(circle at 90% 2%, rgba(34, 224, 196, .055) 0 1px, transparent 1px 52px);
}

main, .site-footer { position: relative; z-index: 1; }

/* ---------- 4. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ink-deep);
}

/* ---------- 5. 跳至主内容 ---------- */
.skip-link {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 200;
  padding: 13px 18px;
  background: var(--amber);
  color: var(--charcoal);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  text-align: center;
  transform: translateY(-120%);
  transition: transform .16s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   6. 头部：桌面端左侧品牌轨道 / 移动端顶部吸顶条
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 60;
  background: linear-gradient(178deg, #102A22 0%, #0A1C17 64%);
  border-right: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(34, 224, 196, .62) 20%, rgba(34, 224, 196, .06) 56%, transparent 88%);
}

.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 16px 22px;
  gap: 24px;
}

/* --- 品牌 --- */
.brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: none;
}

.brand__mark {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(34, 224, 196, .34);
  background: radial-gradient(circle at 50% 50%, var(--cyan) 0 3px, transparent 3px);
}
.brand__mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(34, 224, 196, .5);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 154, 60, .55);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: .08em;
  line-height: 1;
  color: var(--paper);
  transition: color .14s ease-out;
}
.brand:hover .brand__name { color: var(--cyan); }

.brand__tag {
  font-family: var(--font-data);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- 移动端汉堡按钮（桌面端不显示） --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: rgba(242, 234, 217, .04);
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: border-color .14s ease-out, color .14s ease-out;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
  flex: none;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .14s var(--ease-out), opacity .14s ease-out;
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- 导航 --- */
.rail-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.rail-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: navidx;
}

.rail-nav__link {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
  box-shadow: inset 2px 0 0 transparent;
  transition: color .14s ease-out, background-color .14s ease-out, box-shadow .14s ease-out;
}
.rail-nav__link::before {
  counter-increment: navidx;
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--line);
  transition: color .14s ease-out;
}
.rail-nav__link:hover {
  color: var(--paper);
  background: rgba(242, 234, 217, .05);
}
.rail-nav__link:hover::before { color: var(--amber); }

.rail-nav__link[aria-current="page"] {
  color: var(--paper);
  background: rgba(34, 224, 196, .09);
  box-shadow: inset 2px 0 0 var(--cyan);
}
.rail-nav__link[aria-current="page"]::before { color: var(--cyan); }

/* --- 轨道底部进度 --- */
.rail__foot {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rail__gauge {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail__readout {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.rail__track {
  position: relative;
  height: 3px;
  background: rgba(47, 76, 67, .7);
}
.rail__track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0 calc(100% / 8 - 1px),
    rgba(242, 234, 217, .2) calc(100% / 8 - 1px) calc(100% / 8));
}
.rail__track-fill {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width .12s linear;
}

.rail__note {
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--muted);
}

/* ---------- 7. 内容容器与排版 ---------- */
.wrap {
  width: calc(100% - 40px);
  max-width: var(--wrap-w);
  margin-inline: auto;
}

.section { margin-top: clamp(44px, 6vw, 84px); }
.section--tight { margin-top: clamp(26px, 3.4vw, 46px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.rule { height: 1px; border: 0; background: var(--line); margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: currentColor;
}

.h-xl {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.012em;
}
.h-lg {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(25px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -.008em;
}
.h-md {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.22;
}
.h-sm {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: .01em;
}

.lede {
  max-width: 34em;
  font-size: 18px;
  line-height: 1.78;
  color: #D6CDBC;
}

.prose { max-width: 38em; }
.prose p {
  font-size: 16.5px;
  line-height: 1.8;
  color: #CBC2B2;
}
.prose p + p { margin-top: 15px; }
.prose strong { color: var(--paper); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); transition: color .14s ease-out; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: var(--line); }
.breadcrumb [aria-current="page"] { color: var(--amber); }

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .03em;
  transition: transform .14s var(--ease-out), background-color .14s ease-out,
              color .14s ease-out, border-color .14s ease-out;
}
.btn--amber { background: var(--amber); color: var(--charcoal); }
.btn--amber:hover { background: #FFAB62; transform: translateY(-2px); }
.btn--ghost {
  border-color: var(--line);
  background: rgba(242, 234, 217, .04);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn--paper { background: var(--paper); color: var(--charcoal); }
.btn--paper:hover { background: var(--paper-2); transform: translateY(-2px); }

/* ---------- 10. 纸张卡片 ---------- */
.paper {
  position: relative;
  padding: 22px 22px 24px;
  background: var(--paper);
  color: var(--charcoal);
  border: 1px solid var(--paper-2);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, .30);
  transition: transform .14s ease-out, box-shadow .14s ease-out;
}
.paper:hover {
  transform: translateY(-2px);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, .34);
}
.paper__label {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--press);
}
.paper__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.25;
  color: var(--charcoal);
}
.paper__body {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #3B4744;
}
.paper .meter__head { color: #5C6B64; }
.paper .meter__value { color: var(--press); }
.paper .meter__track { background: rgba(22, 33, 31, .09); border-color: rgba(22, 33, 31, .16); }
.paper .meter__fill { background: linear-gradient(90deg, rgba(217, 79, 43, .55), var(--press)); }
.paper .tag {
  border-color: rgba(22, 33, 31, .2);
  background: rgba(22, 33, 31, .05);
  color: #5C6B64;
}

/* ---------- 11. 深色面板 ---------- */
.panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(16, 42, 34, .88), rgba(10, 28, 23, .88));
  transition: border-color .14s ease-out, transform .14s ease-out;
}
.panel:hover { border-color: rgba(34, 224, 196, .5); transform: translateY(-2px); }
.panel__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  color: var(--paper);
}
.panel__body {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 12. 网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--wide { gap: 32px; }

/* ---------- 13. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: rgba(47, 76, 67, .28);
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.tag--cyan { border-color: rgba(34, 224, 196, .5); color: var(--cyan); }
.tag--amber { border-color: rgba(255, 154, 60, .5); color: var(--amber); }
.tag--red { border-color: rgba(217, 79, 43, .55); color: #F0805F; }

/* ---------- 14. 数值 ---------- */
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat__value {
  font-family: var(--font-data);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 15. 数据条 ---------- */
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.meter__value { color: var(--cyan); font-variant-numeric: tabular-nums; }
.meter__track {
  position: relative;
  height: 8px;
  background: rgba(47, 76, 67, .45);
  border: 1px solid var(--line);
}
.meter__fill {
  display: block;
  height: 100%;
  width: var(--fill, 0%);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(34, 224, 196, .5), var(--cyan));
}

@keyframes meterGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .meter__fill { animation: meterGrow .46s var(--ease-out) both; }
}

/* ---------- 16. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #102A22, #0A1C17 72%);
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }

.media__slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(147, 167, 158, .62);
}
.media__slot::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(47, 76, 67, .85);
  pointer-events: none;
}

.media__caption {
  padding: 9px 2px 0;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted);
}

.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--21x9 { aspect-ratio: 21 / 9; }

.media--echo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-radial-gradient(circle at 72% 38%,
    rgba(34, 224, 196, .11) 0 1px, transparent 1px 34px);
}

/* ---------- 17. 进入视口显现 ---------- */
html[data-reveal="ready"] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .42s ease-out, transform .42s var(--ease-out);
}
html[data-reveal="ready"] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   18. 页脚
   ============================================================ */
.site-footer {
  margin-top: 72px;
  background: linear-gradient(180deg, #0A1C17 0%, #102A22 100%);
  border-top: 1px solid var(--line);
}

.footer-beacon {
  height: 4px;
  opacity: .75;
  background:
    repeating-linear-gradient(90deg, rgba(34, 224, 196, .82) 0 3px, transparent 3px 24px),
    repeating-linear-gradient(90deg, rgba(255, 154, 60, .6) 0 3px, transparent 3px 41px);
}

.footer-inner {
  width: calc(100% - 40px);
  max-width: var(--wrap-w);
  margin-inline: auto;
  padding: 52px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 38px 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .08em;
  color: var(--paper);
}
.footer-brand__desc {
  max-width: 32em;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}
.footer-brand__cta { margin-top: 4px; }

.footer-col { min-width: 0; }

.footer-title {
  margin-bottom: 15px;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list { display: flex; flex-direction: column; gap: 10px; }
.footer-list a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  color: var(--muted);
  transition: color .14s ease-out;
}
.footer-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--cyan);
  transition: right .16s var(--ease-out);
}
.footer-list a:hover { color: var(--paper); }
.footer-list a:hover::after { right: 0; }

.footer-list--data li {
  display: grid;
  gap: 2px;
  font-family: var(--font-data);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--muted);
  word-break: break-word;
}
.footer-meta {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(147, 167, 158, .7);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--muted);
}
.footer-legal a { color: var(--amber); transition: color .14s ease-out; }
.footer-legal a:hover { color: var(--paper); }

/* ============================================================
   19. 响应式
   ============================================================ */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 28, 23, .96);
  }
  .site-header::after { display: none; }

  .rail {
    flex-direction: row;
    align-items: center;
    height: auto;
    padding: 10px 16px;
    gap: 12px;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand__text { flex-direction: row; align-items: center; gap: 8px; }
  .brand__name { font-size: 17px; letter-spacing: .06em; }
  .brand__tag { display: none; }

  .nav-toggle { display: inline-flex; }

  .rail-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 8px 12px 18px;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .16s ease-out, transform .16s ease-out, visibility .16s;
  }
  .site-header[data-open] .rail-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .rail-nav__link {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 13px 10px;
    font-size: 16px;
  }

  .rail__foot { display: none; }

  .footer-inner { width: calc(100% - 32px); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { margin-top: 36px; }
}

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lede { max-width: none; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { width: calc(100% - 32px); }
  .grid { gap: 18px; }
  .grid--2, .grid--3, .grid--4, .grid--auto { grid-template-columns: minmax(0, 1fr); }
  .grid--wide { gap: 22px; }
  .paper { padding: 18px 16px 20px; box-shadow: 3px 4px 0 rgba(0, 0, 0, .30); }
  .panel { padding: 18px 16px; }
  .prose { max-width: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .footer-inner { padding: 40px 0 22px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .brand__name { font-size: 15.5px; }
  .nav-toggle { padding: 8px 10px; }
  .nav-toggle__text { display: none; }
}

/* ============================================================
   20. 降低动效
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  html[data-reveal="ready"] [data-reveal] { opacity: 1; transform: none; }
  .meter__fill { transform: none !important; }
  .paper:hover, .panel:hover, .btn:hover { transform: none; }
  .rail__track-fill { transition: none; }
}
