/* ==========================================================================
   必一体育 · 通勤体育台 / 共享样式表 /assets/site.css
   顺序：reset → 变量 → 中文排版 → 头部 → 页脚 → 通用组件 → 响应式 → 动效
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  background-color: #070A14;
  scroll-behavior: smooth;
}

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

ul, ol {
  padding: 0;
  list-style: none;
}

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

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

a { color: inherit; }

/* 1. 设计变量 ------------------------------------------------------------ */
:root {
  --night-indigo: #0B1233;
  --dusk-indigo: #1A2350;
  --dusk-orange: #FF7A3D;
  --ember-orange: #C74B1C;
  --data-cyan: #35F2C4;
  --amber-gold: #F5B841;
  --paper-ivory: #F4EFE6;
  --ink-black: #070A14;
  --mist-gray: #AAB4C8;
  --focus-blue: #7FB2FF;

  --line-light: rgba(244, 239, 230, .14);
  --line-dark: rgba(7, 10, 20, .16);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --page-max: 1180px;
  --gutter: 16px;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 56px;
  --s6: 72px;

  --shadow-paper: 7px 7px 0 rgba(7, 10, 20, .55);
  --shadow-stack: 10px 10px 0 rgba(7, 10, 20, .32);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --masthead-h: 62px;
  --dock-h: 54px;
}

/* 2. 基础排版与暮色底 ---------------------------------------------------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper-ivory);
  background-color: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(115% 75% at 82% 4%, rgba(255, 122, 61, .18), rgba(255, 122, 61, 0) 60%),
    radial-gradient(90% 60% at 6% 88%, rgba(53, 242, 196, .07), rgba(53, 242, 196, 0) 60%),
    linear-gradient(168deg, #070A14 0%, #0B1233 30%, #16204A 54%, #38224E 72%, #7B3A24 90%, #150B1A 100%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 6.4vw, 4.25rem);
  letter-spacing: -.03em;
  line-height: 1.06;
}

h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); }

h3 {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.3;
}

h4 {
  font-size: 1rem;
  line-height: 1.35;
}

strong { font-weight: 800; }

/* 3. 焦点与跳转链接 ------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--focus-blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-black);
  background: var(--paper-ivory);
  border: 1px solid var(--ink-black);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--focus-blue);
  outline-offset: 2px;
}

/* 4. 头部命令栏 ---------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--paper-ivory);
  background: linear-gradient(180deg, rgba(7, 10, 20, .97), rgba(11, 18, 51, .94));
  border-bottom: 1px solid var(--ember-orange);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.masthead__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  width: min(100% - 32px, var(--page-max));
  min-height: var(--masthead-h);
  margin-inline: auto;
  padding-block: 9px;
}

/* 字标 + 状态灯 */
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--dusk-orange);
  background: rgba(255, 122, 61, .09);
  border: 1px solid var(--dusk-orange);
  box-shadow: 3px 3px 0 rgba(255, 122, 61, .22);
}

.brand__text {
  display: grid;
  gap: 1px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .04em;
}

.brand__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--mist-gray);
}

.brand__mode { white-space: nowrap; }

.brand__dot { opacity: .45; }

.status-lamp {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--data-cyan);
  box-shadow: 0 0 0 3px rgba(53, 242, 196, .18);
  animation: lampPulse 2.6s ease-in-out infinite;
}

/* 编号导航 */
.cmdnav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.cmdnav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.cmdnav__item { display: block; }

.cmdnav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 9px 9px;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--mist-gray);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}

.cmdnav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: rgba(170, 180, 200, .5);
  transition: color .18s var(--ease);
}

.cmdnav__label {
  display: inline-block;
  white-space: nowrap;
}

.cmdnav__link:hover {
  color: var(--paper-ivory);
  background: rgba(244, 239, 230, .05);
}

.cmdnav__link[aria-current="page"] {
  color: var(--paper-ivory);
  border-bottom-color: var(--dusk-orange);
}

.cmdnav__link[aria-current="page"] .cmdnav__idx {
  color: var(--dusk-orange);
}

/* 右侧工具区 */
.masthead__tail {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ink-black);
  background: var(--dusk-orange);
  border: 1px solid var(--ink-black);
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(7, 10, 20, .85);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
}

.pill::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 12px;
}

.pill:hover {
  background: #ff8b55;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(7, 10, 20, .9);
}

.pill:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(7, 10, 20, .85);
}

.navbtn {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--paper-ivory);
  background: transparent;
  border: 1px solid rgba(244, 239, 230, .28);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.navbtn:hover { border-color: var(--dusk-orange); }

.navbtn[aria-expanded="true"] {
  color: var(--dusk-orange);
  border-color: var(--dusk-orange);
}

.navbtn__bars {
  display: grid;
  gap: 5px;
  width: 16px;
}

.navbtn__bars span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform .2s var(--ease);
}

.navbtn[aria-expanded="true"] .navbtn__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.navbtn[aria-expanded="true"] .navbtn__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.navbtn__txt { line-height: 1; }

/* 滚动进度 */
.progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  pointer-events: none;
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--data-cyan), var(--dusk-orange));
  transition: width .12s linear;
}

/* 5. 底部快捷标签（移动端） ---------------------------------------------- */
.dock { display: none; }

.dock__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--dock-h);
  padding: 8px 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--mist-gray);
  text-decoration: none;
  border-right: 1px solid rgba(244, 239, 230, .07);
  transition: color .16s var(--ease), background-color .16s var(--ease);
}

.dock__link:last-child { border-right: 0; }

.dock__idx {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  opacity: .6;
}

.dock__label { white-space: nowrap; }

.dock__link[aria-current="page"] {
  color: var(--dusk-orange);
  background: rgba(255, 122, 61, .09);
}

.dock__link[aria-current="page"] .dock__idx { opacity: 1; }

/* 6. 页脚路线图 ---------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: var(--s5);
  color: var(--paper-ivory);
  background: linear-gradient(180deg, #0B1233 0%, #080C1E 58%, #070A14 100%);
  border-top: 1px solid var(--ember-orange);
}

.site-footer__rail {
  position: relative;
  height: 30px;
  overflow: hidden;
  border-bottom: 1px solid rgba(244, 239, 230, .08);
}

.site-footer__rail::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: repeating-linear-gradient(to right, rgba(170, 180, 200, .45) 0 9px, transparent 9px 22px);
}

.site-footer__rail::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--data-cyan);
  box-shadow: 0 0 0 4px rgba(53, 242, 196, .14);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4) var(--s3);
  width: min(100% - 32px, var(--page-max));
  margin-inline: auto;
  padding-block: var(--s4) var(--s4);
}

.site-footer__wordmark {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.site-footer__tagline {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--dusk-orange);
  text-transform: uppercase;
}

.site-footer__area {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist-gray);
}

.site-footer__arealabel {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(170, 180, 200, .6);
}

.site-footer__col { min-width: 0; }

.site-footer__h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--mist-gray);
  border-bottom: 1px solid rgba(244, 239, 230, .14);
}

.site-footer__h::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--dusk-orange);
}

.footlist {
  display: grid;
  gap: 9px;
}

.footlist a {
  display: inline-block;
  padding: 2px 0;
  font-size: 13.5px;
  color: var(--mist-gray);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.footlist a:hover {
  color: var(--paper-ivory);
  border-bottom-color: var(--dusk-orange);
}

.footlist--contact {
  gap: 12px;
  font-size: 12.5px;
  color: var(--mist-gray);
}

.footlist--contact li {
  display: grid;
  gap: 2px;
  line-height: 1.5;
}

.footlist--contact .mono {
  font-size: 12px;
  color: var(--paper-ivory);
  word-break: break-all;
}

.footlist__k {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(170, 180, 200, .58);
}

.legend {
  display: grid;
  gap: 10px;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--mist-gray);
}

.legend__swatch {
  flex: none;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(244, 239, 230, .32);
}

.legend__swatch--live { background: var(--data-cyan); border-color: var(--data-cyan); }
.legend__swatch--rank { background: var(--amber-gold); border-color: var(--amber-gold); }
.legend__swatch--brand { background: var(--dusk-orange); border-color: var(--dusk-orange); }
.legend__swatch--paper { background: var(--paper-ivory); border-color: var(--paper-ivory); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--page-max));
  margin-inline: auto;
  padding-block: 18px 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--mist-gray);
  border-top: 1px solid rgba(244, 239, 230, .12);
}

.site-footer__copy { line-height: 1.6; }

.legallinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.legallinks a {
  font-size: 11px;
  color: var(--mist-gray);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(170, 180, 200, .32);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.legallinks a:hover {
  color: var(--dusk-orange);
  border-bottom-color: var(--dusk-orange);
}

/* 7. 返回顶部 ------------------------------------------------------------ */
.totop {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-black);
  background: var(--paper-ivory);
  border: 1px solid var(--ink-black);
  box-shadow: 4px 4px 0 rgba(7, 10, 20, .6);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.totop[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.totop:hover { background: #ffffff; }

/* 8. 布局骨架 ------------------------------------------------------------ */
.shell {
  width: min(100% - 32px, var(--page-max));
  margin-inline: auto;
}

.shell--narrow { width: min(100% - 32px, 820px); }
.shell--wide { width: min(100% - 32px, 1360px); }

.section { padding-block: var(--s5); }

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

.stack > * + * { margin-top: var(--s2); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}

.grid--2,
.grid--3 { grid-template-columns: 1fr; }

.grid--rail { grid-template-columns: 1fr; }

.divider {
  height: 1px;
  border: 0;
  background: repeating-linear-gradient(to right, rgba(170, 180, 200, .45) 0 8px, transparent 8px 18px);
}

/* 9. 页面头部与正文 ------------------------------------------------------ */
.page-head { padding-block: var(--s4) var(--s3); }

.page-kicker {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--data-cyan);
}

.page-title { margin-bottom: 14px; }

.page-lede {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--mist-gray);
}

.prose p {
  max-width: 36ch;
  margin-bottom: 14px;
  font-size: 15.5px;
  line-height: 1.62;
}

.prose p:last-child { margin-bottom: 0; }

.prose a {
  color: inherit;
  text-decoration-color: var(--dusk-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose ul {
  display: grid;
  gap: 8px;
  max-width: 36ch;
}

.prose li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.6;
}

.prose li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--dusk-orange);
}

/* 10. 通用组件 ----------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--data-cyan);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.marker-v {
  display: inline-block;
  padding-left: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--mist-gray);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-left: 1px solid var(--line-light);
}

.paper {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  color: var(--ink-black);
  background: var(--paper-ivory);
  border: 1px solid var(--ink-black);
  box-shadow: var(--shadow-paper);
}

.paper a {
  color: inherit;
  text-decoration-color: var(--ember-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.paper h2,
.paper h3 { color: var(--ink-black); }

.paper--dark {
  color: var(--paper-ivory);
  background: linear-gradient(160deg, rgba(26, 35, 80, .94), rgba(11, 18, 51, .96));
  border-color: rgba(244, 239, 230, .2);
  box-shadow: var(--shadow-stack);
}

.paper--dark a { color: var(--paper-ivory); }
.paper--dark h2,
.paper--dark h3 { color: var(--paper-ivory); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--dusk-orange);
  border: 1px solid currentColor;
}

.tag--live { color: var(--data-cyan); }
.tag--rank { color: var(--amber-gold); }
.tag--ink { color: var(--ink-black); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid var(--ink-black);
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.btn--solid {
  color: var(--ink-black);
  background: var(--dusk-orange);
  box-shadow: 4px 4px 0 rgba(7, 10, 20, .72);
}

.btn--solid:hover {
  background: #ff8b55;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(7, 10, 20, .78);
}

.btn--solid:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 rgba(7, 10, 20, .72);
}

.btn--ghost {
  color: var(--paper-ivory);
  background: rgba(244, 239, 230, .03);
  border-color: rgba(244, 239, 230, .38);
}

.btn--ghost:hover {
  color: var(--dusk-orange);
  background: rgba(255, 122, 61, .09);
  border-color: var(--dusk-orange);
}

.btn--quiet {
  min-height: 38px;
  padding: 6px 4px;
  color: var(--data-cyan);
  background: transparent;
  border-color: transparent;
}

.btn--quiet:hover { text-decoration: underline; }

/* 面包屑 */
.crumbs { padding-top: 16px; }

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist-gray);
}

.crumbs__link {
  padding: 4px 2px;
  color: var(--mist-gray);
  text-decoration: none;
  transition: color .16s var(--ease);
}

.crumbs__link:hover { color: var(--dusk-orange); }

.crumbs__sep {
  padding-inline: 2px;
  opacity: .45;
}

.crumbs__current { color: var(--paper-ivory); }

/* 11. 图片容器 ----------------------------------------------------------- */
.figure {
  position: relative;
  margin: 0;
}

.figure__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, #1A2350 0%, #38224E 55%, #7B3A24 100%);
  border: 1px solid rgba(7, 10, 20, .85);
  box-shadow: 7px 7px 0 rgba(7, 10, 20, .42);
}

.figure__frame--tall { aspect-ratio: 3 / 4; }
.figure__frame--wide { aspect-ratio: 21 / 9; }
.figure__frame--square { aspect-ratio: 1 / 1; }

.figure__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__cap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--mist-gray);
}

.figure__cap::before {
  content: "▣";
  flex: none;
  color: var(--dusk-orange);
}

/* 12. 进入视口显现 ------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

.js [data-reveal][data-in="true"] {
  opacity: 1;
  transform: none;
}

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

@media (min-width: 900px) {
  :root { --gutter: 24px; }

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

  .grid--rail {
    grid-template-columns: minmax(140px, 2fr) minmax(0, 7fr) minmax(200px, 3fr);
    gap: var(--s4);
  }

  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: var(--s5) var(--s4);
    padding-block: var(--s5) var(--s4);
  }

  .section { padding-block: var(--s6); }
}

@media (max-width: 980px) {
  body {
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  }

  .masthead__inner {
    gap: 10px 12px;
    min-height: 56px;
    padding-block: 8px;
  }

  .cmdnav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 4px var(--gutter) 18px;
    background: linear-gradient(180deg, #0B1233 0%, #121B44 100%);
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--ember-orange);
    box-shadow: 0 20px 36px rgba(7, 10, 20, .62);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .cmdnav[data-open="true"] {
    display: block;
    animation: navIn .22s var(--ease);
  }

  .cmdnav__list {
    display: block;
  }

  .cmdnav__link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 2px;
    font-size: 16px;
    font-weight: 700;
    color: var(--paper-ivory);
    border-bottom: 1px solid rgba(244, 239, 230, .1);
  }

  .cmdnav__idx {
    width: 22px;
    font-size: 11px;
    color: var(--dusk-orange);
    flex: none;
  }

  .cmdnav__link[aria-current="page"] {
    color: var(--dusk-orange);
    border-bottom-color: rgba(255, 122, 61, .4);
  }

  .navbtn { display: inline-flex; }

  .dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 85;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(7, 10, 20, .97);
    border-top: 1px solid var(--ember-orange);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .totop { bottom: calc(var(--dock-h) + 14px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 560px) {
  .pill { display: none; }
  .brand__meta { font-size: 9px; letter-spacing: .06em; }
  .site-footer__base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .brand__mark { width: 30px; height: 30px; font-size: 15px; }
  .brand__name { font-size: 15px; }
  .navbtn__txt { display: none; }
}

/* 14. 动效关键帧 --------------------------------------------------------- */
@keyframes lampPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(53, 242, 196, .18); }
  50% { opacity: .5; box-shadow: 0 0 0 6px rgba(53, 242, 196, .05); }
}

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

/* 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;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .status-lamp { animation: none; }
}

@media print {
  body::before,
  .masthead,
  .dock,
  .totop,
  .skip-link,
  .progress { display: none !important; }

  body {
    color: #000;
    background: #fff;
    padding-bottom: 0;
  }

  .site-footer {
    color: #000;
    background: #fff;
    border-top: 1px solid #000;
  }

  .site-footer a,
  .footlist a,
  .legallinks a { color: #000; }

  .paper { box-shadow: none; }
}
