*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 90px) + 24px);
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

:root {
  --ink-night: #0A0F1E;
  --dome-purple: #1C1236;
  --tiger: #FF4E1A;
  --lava: #FF8A3C;
  --steppe: #0FBF8B;
  --aurora: #7BF2CE;
  --announce: #5A46F0;
  --paper: #F3ECE1;
  --silhouette: #12151F;
  --fog: #C8C4BC;
  --line: rgba(123, 242, 206, .32);
  --line-soft: rgba(200, 196, 188, .16);
  --display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 90px;
  --page-max: 1480px;
  --radius-organic: 30px 46px 24px 38px;
}

body {
  min-height: 100vh;
  padding-top: var(--header-h);
  background:
    radial-gradient(1100px 620px at 84% -6%, rgba(90, 70, 240, .28), transparent 62%),
    radial-gradient(900px 560px at 4% 14%, rgba(255, 78, 26, .12), transparent 64%),
    var(--ink-night);
  color: var(--paper);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
}
main { display: block; }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.08; letter-spacing: -.02em; }
p { color: inherit; }
::selection { background: var(--tiger); color: var(--silhouette); }
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--aurora);
  outline-offset: 3px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 框架式导航：页头是页面边框的一部分 */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 220;
  padding: 12px 18px;
  background: var(--aurora);
  color: var(--silhouette);
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 15, 30, .98), rgba(10, 15, 30, .88) 72%, rgba(10, 15, 30, .7));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1px;
  height: 24px;
  transform: translateY(-50%);
  pointer-events: none;
}
.site-header::before { left: 8px; background: var(--tiger); }
.site-header::after { right: 8px; background: var(--steppe); }

.header-shell {
  width: min(100% - 32px, var(--page-max));
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 12px clamp(14px, 2vw, 30px);
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  background: linear-gradient(145deg, var(--tiger), var(--lava));
  color: var(--silhouette);
  font-size: 24px;
  font-weight: 900;
  border-radius: 42% 58% 46% 54%;
  transform: rotate(-6deg);
  box-shadow: 0 0 0 1px rgba(255, 138, 60, .7), 0 12px 28px rgba(255, 78, 26, .28);
}
.brand-copy { display: grid; gap: 2px; min-width: 0; }
.brand-line {
  display: block;
  font-size: clamp(14px, 1.1vw, 15px);
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tagline {
  display: block;
  color: var(--fog);
  font-size: 11px;
  letter-spacing: .1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav { min-width: 0; justify-self: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: nav-num;
}
.nav-item {
  counter-increment: nav-num;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-item::before {
  content: "0" counter(nav-num);
  color: rgba(200, 196, 188, .5);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 6px 12px;
  color: var(--fog);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--tiger), var(--lava));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--paper); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--paper); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--tiger); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .04);
  color: var(--paper);
  border: 1px solid rgba(123, 242, 206, .42);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
}
.nav-toggle-box { display: inline-grid; gap: 4px; width: 18px; }
.nav-toggle-box span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle-text { line-height: 1; }

.header-cta { flex: 0 0 auto; }
.scroll-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: rgba(200, 196, 188, .12);
  overflow: hidden;
}
.scroll-progress {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--tiger), var(--lava) 44%, var(--steppe));
  transition: width .12s linear;
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}
.btn--primary {
  background: linear-gradient(135deg, var(--tiger), var(--lava));
  color: var(--silhouette);
  box-shadow: 0 10px 30px rgba(255, 78, 26, .28);
}
.btn--primary:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 16px 38px rgba(15, 191, 139, .28);
}
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(123, 242, 206, .5);
}
.btn--ghost:hover {
  background: rgba(123, 242, 206, .08);
  transform: translateY(-2px);
}
.btn--quiet {
  background: rgba(243, 236, 225, .1);
  color: var(--paper);
  border-color: var(--line-soft);
}
.btn--quiet:hover { background: rgba(243, 236, 225, .16); }

/* 页脚四段式 */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
  background:
    radial-gradient(820px 520px at 10% 0%, rgba(255, 78, 26, .16), transparent 62%),
    radial-gradient(720px 440px at 88% 16%, rgba(90, 70, 240, .24), transparent 66%),
    linear-gradient(180deg, #1C1236 0%, #0A0F1E 72%);
  border-top: 1px solid rgba(123, 242, 206, .26);
  color: var(--paper);
}
.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora), transparent);
  opacity: .5;
}
.footer-shell {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 72px) 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 44px 48px;
}
.footer-brand { min-width: 0; }
.footer-mark {
  display: inline-block;
  color: var(--paper);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -.02em;
  text-decoration: none;
  transform: skewX(-3deg);
  border-bottom: 2px solid var(--tiger);
  padding-bottom: 2px;
}
.footer-brand-line {
  margin-top: 14px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.footer-note { margin-top: 8px; color: var(--fog); font-size: 13px; line-height: 1.8; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}
.footer-nav-group {
  padding-top: 14px;
  border-top: 2px solid var(--line-soft);
  min-width: 0;
}
.footer-nav-group--open { border-color: var(--tiger); }
.footer-nav-group--guide { border-color: var(--steppe); }
.footer-nav-group--notice { border-color: var(--announce); }
.footer-nav-title {
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
}
.footer-nav-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-nav-link {
  color: var(--fog);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-nav-link:hover,
.footer-nav-link:focus-visible { color: var(--aurora); border-color: rgba(123, 242, 206, .6); }

.footer-contact { min-width: 0; }
.contact-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.contact-item { display: grid; gap: 2px; min-width: 0; }
.contact-label {
  color: rgba(200, 196, 188, .7);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
}
.contact-value { color: var(--paper); font-size: 13px; line-height: 1.7; word-break: break-word; }
.footer-icp {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(200, 196, 188, .24);
  color: var(--aurora);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
}
.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(200, 196, 188, .18);
}
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.legal-link {
  color: var(--fog);
  font-size: 12px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.legal-link:hover,
.legal-link:focus-visible { color: var(--aurora); }
.copyright { color: rgba(200, 196, 188, .8); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }

/* 容器、章节与文字节奏 */
.container { width: min(100% - 40px, 1200px); margin-inline: auto; }
.container--wide { width: min(100% - 32px, 1440px); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--paper {
  background: linear-gradient(160deg, #F7F1E8, var(--paper) 56%, #EDE4D6);
  color: var(--silhouette);
}
.section--paper .eyebrow { color: #7A4B36; border-color: rgba(18, 21, 31, .2); }
.section--paper .section-title,
.section--paper h1,
.section--paper h2,
.section--paper h3 { color: var(--silhouette); }
.section--paper p { color: #2c2e36; }

.prose { max-width: 72ch; color: var(--fog); }
.prose > * + * { margin-top: 1.1em; }
.prose a { color: var(--aurora); text-underline-offset: 3px; }
.section--paper .prose { color: #2c2e36; }
.section--paper .prose a { color: #A83A15; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 900;
  letter-spacing: -.02em;
  transform: skewX(-2deg);
  display: inline-block;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 5px 10px;
  border: 1px solid rgba(123, 242, 206, .42);
  border-radius: 999px;
  color: var(--aurora);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.vertical-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: var(--aurora);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .24em;
  line-height: 1.2;
  justify-self: end;
  align-self: start;
}
.watermark { position: relative; }
.watermark::before {
  content: attr(data-watermark);
  position: absolute;
  top: -.12em;
  left: -.06em;
  color: currentColor;
  opacity: .08;
  font-family: var(--mono);
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1;
  letter-spacing: -.04em;
  pointer-events: none;
}

/* 面包屑 */
.breadcrumbs { padding-top: clamp(20px, 3vw, 32px); font-size: 12px; }
.crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--fog);
  font-family: var(--mono);
  letter-spacing: .12em;
}
.crumbs-list li + li::before { content: "/"; margin-right: 8px; color: rgba(200, 196, 188, .5); }
.crumbs-list a {
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px dotted rgba(200, 196, 188, .5);
}
.crumbs-list a:hover,
.crumbs-list a:focus-visible { color: var(--aurora); border-color: var(--aurora); }

/* 网格与卡片 */
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(160deg, rgba(28, 18, 54, .92), rgba(10, 15, 30, .94));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-organic);
  color: var(--paper);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover {
  transform: translateY(-4px) rotate(-2deg);
  box-shadow: 0 18px 44px rgba(15, 191, 139, .18);
  border-color: rgba(123, 242, 206, .5);
}
.card h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; }
.card p { color: var(--fog); font-size: 14px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  line-height: 1.6;
  white-space: nowrap;
}
.tag--open { color: #FFB08A; border-color: rgba(255, 78, 26, .72); background: rgba(255, 78, 26, .14); }
.tag--guide { color: #A9FFE8; border-color: rgba(15, 191, 139, .7); background: rgba(15, 191, 139, .14); }
.tag--notice { color: #CDC6FF; border-color: rgba(90, 70, 240, .78); background: rgba(90, 70, 240, .2); }

.scoreboard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(10, 15, 30, .72);
  border: 1px solid rgba(200, 196, 188, .22);
  border-radius: 12px;
  font-family: var(--mono);
}
.scoreboard__id { color: var(--tiger); font-size: 13px; letter-spacing: .12em; white-space: nowrap; }
.scoreboard__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--paper);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}
.stat-value {
  display: inline-block;
  color: var(--tiger);
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 6px 12px;
  background: var(--paper);
  color: var(--silhouette);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

/* 图片容器基础规则 */
.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(60% 80% at 78% 12%, rgba(255, 78, 26, .24), transparent 70%),
    linear-gradient(140deg, var(--dome-purple), var(--ink-night) 58%, #17132b);
  border: 1px solid rgba(123, 242, 206, .24);
  border-radius: var(--radius-organic);
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(10, 15, 30, .42));
  pointer-events: none;
}
.image-frame img,
.image-frame picture { width: 100%; height: 100%; object-fit: cover; }
.image-frame--wide { aspect-ratio: 21 / 9; }
.image-frame--portrait { aspect-ratio: 4 / 5; }
.image-frame--square { aspect-ratio: 1 / 1; }
.figure-caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(200, 196, 188, .26);
  color: var(--fog);
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.7;
}
.figure-caption__no { flex: 0 0 auto; color: var(--aurora); font-family: var(--mono); }
.section--paper .figure-caption { color: #55575e; border-color: rgba(18, 21, 31, .2); }
.section--paper .figure-caption__no { color: #A83A15; }

/* 返回顶部 */
.back-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  min-height: 48px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--silhouette);
  border: 1px solid rgba(18, 21, 31, .18);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  cursor: pointer;
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.back-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top__chapter {
  max-width: 10em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4a4f5f;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
}
.back-top__arrow {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  background: var(--tiger);
  color: var(--silhouette);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

/* 章节索引 */
[data-section-nav] { font-family: var(--mono); }
[data-section-nav] a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fog);
  font-size: 12px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .2s var(--ease), transform .22s var(--ease);
}
[data-section-nav] a::before { content: ""; width: 14px; height: 1px; background: currentColor; opacity: .6; }
[data-section-nav] a:hover,
[data-section-nav] a:focus-visible { color: var(--paper); }
[data-section-nav] a.is-active {
  color: var(--aurora);
  transform: translateX(6px);
}
[data-section-nav] a.is-active::before { background: var(--tiger); opacity: 1; width: 20px; }

/* 响应式 */
@media (max-width: 1180px) {
  .header-shell { grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) auto; }
  .brand-tagline { display: none; }
  .nav-item::before { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 74px; }
  body { padding-top: var(--header-h); }
  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-block: 10px;
  }
  .nav-toggle { display: inline-flex; grid-column: 2; justify-self: end; }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
    border-top: 1px solid var(--line-soft);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .site-nav[data-open="true"] { display: block; }
  .nav-list { min-width: max-content; gap: 8px; }
  .nav-item::before { display: none; }
  .nav-link {
    padding: 9px 13px;
    background: rgba(243, 236, 225, .06);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
  }
  .nav-link::after { left: 12px; right: 12px; bottom: 5px; }
  .nav-link[aria-current="page"] { border-color: rgba(255, 78, 26, .7); }
  .header-cta { display: none; }
  .footer-shell { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand,
  .footer-nav,
  .footer-contact,
  .footer-legal { grid-column: 1 / -1; }
  .grid--7-5,
  .grid--8-4,
  .grid--12 { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .vertical-note { writing-mode: horizontal-tb; justify-self: start; }
}
@media (max-width: 640px) {
  .container,
  .container--wide { width: min(100% - 28px, 100%); }
  .footer-smell { width: min(100% - 28px, 100%); }
  .footer-shell { width: min(100% - 28px, 100%); padding-bottom: 24px; }
  .footer-nav { grid-template-columns: 1fr; gap: 18px; }
  .footer-legal { align-items: flex-start; }
  .scoreboard { grid-template-columns: 1fr auto; }
  .scoreboard__id { grid-column: 1 / -1; }
  .back-top { right: 14px; bottom: 14px; }
}

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .btn--primary:hover { transform: none; }
  .back-top { transition: opacity .01ms linear; }
}
