/* ==========================================================================
   OG对战平台「CN」 · /assets/site.css
   共享外壳：蓝图格线底纹 / 居中刊头 / 状态细条 / 纸色联系面板
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, p, ul, ol, figure, figcaption, dl, dd,
details, summary { margin: 0; }

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

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

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

svg { display: block; }

img { max-width: 100%; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --ink-void: #050B18;
  --ink-panel: #0B1730;
  --ink-line: #1C3560;
  --text-main: #E9F6FF;
  --text-soft: #A8BCD6;
  --cyan: #22E0D6;
  --cyan-strong: #4FF0E6;
  --cyan-ink: #04121A;
  --violet: #7A5CFF;
  --violet-soft: #BCA9FF;
  --amber: #FF8A3D;
  --paper: #F4EBDD;
  --coral: #FF6B7A;
  --edge: #2E4A78;

  --shell: 1200px;
  --pad: clamp(16px, 4vw, 28px);
  --r-lg: 26px;
  --r-md: 16px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: "Barlow Condensed", "Oswald", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, Consolas, monospace;
}

/* 3. Base ----------------------------------------------------------------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(15px, 0.55vw + 13px, 16.5px);
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--ink-void);
  background-image:
    radial-gradient(1100px 620px at 88% -12%, rgba(122, 92, 255, 0.2), transparent 62%),
    radial-gradient(760px 520px at 4% 2%, rgba(34, 224, 214, 0.13), transparent 64%),
    linear-gradient(rgba(28, 53, 96, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 53, 96, 0.42) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(34px, 8vw, 76px); }
h2 { font-size: clamp(24px, 4.2vw, 40px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.25; }
h4 { font-size: 16px; line-height: 1.35; letter-spacing: 0.02em; }

p { max-width: 68ch; }

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: var(--cyan);
  color: var(--cyan-ink);
}

/* 4. Layout --------------------------------------------------------------- */
.shell {
  width: min(100% - var(--pad) * 2, var(--shell));
  margin-inline: auto;
}

.shell--wide { --shell: 1340px; }

.section { padding-block: clamp(44px, 7vw, 88px); }

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.title-xl { font-size: clamp(34px, 8vw, 76px); }
.title-lg { font-size: clamp(24px, 4.2vw, 40px); }
.title-md { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.25; }

.lede {
  font-size: clamp(15px, 1.2vw + 12px, 17px);
  color: var(--text-soft);
  max-width: 62ch;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* 5. Utilities ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  flex: none;
}

.index-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.index-tag b { color: var(--cyan); font-weight: 600; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  background: rgba(5, 11, 24, 0.6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  white-space: nowrap;
}

.chip--cyan { color: var(--cyan); border-color: rgba(34, 224, 214, 0.45); background: rgba(34, 224, 214, 0.1); }
.chip--violet { color: var(--violet-soft); border-color: rgba(122, 92, 255, 0.5); background: rgba(122, 92, 255, 0.14); }
.chip--amber { color: var(--amber); border-color: rgba(255, 138, 61, 0.45); background: rgba(255, 138, 61, 0.12); }
.chip--coral { color: var(--coral); border-color: rgba(255, 107, 122, 0.45); background: rgba(255, 107, 122, 0.12); }

.panel {
  padding: clamp(18px, 2.6vw, 32px);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  background: var(--ink-panel);
}

.panel--paper {
  background: var(--paper);
  color: var(--ink-panel);
  border-color: rgba(11, 23, 48, 0.2);
}

.panel--paper .mono { color: #31405c; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, rgba(11, 23, 48, 0.96), rgba(5, 11, 24, 0.94));
  overflow: hidden;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.tile::after {
  content: "";
  position: absolute;
  right: -26%;
  bottom: -58%;
  width: 68%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(34, 224, 214, 0.22), transparent 70%);
  pointer-events: none;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--edge);
}

.rail {
  display: flex;
  gap: clamp(12px, 1.6vw, 18px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.rail > * { flex: 0 0 auto; scroll-snap-align: start; }

.rail__item { width: min(80vw, 320px); }

.media-frame {
  position: relative;
  aspect-ratio: var(--ratio, 16 / 9);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(160deg, rgba(11, 23, 48, 0.92), rgba(5, 11, 24, 0.94));
  overflow: hidden;
}

.media-frame img,
.media-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame--wide { --ratio: 21 / 9; }
.media-frame--square { --ratio: 1 / 1; }
.media-frame--portrait { --ratio: 4 / 5; }

.media-frame--tilt {
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  border-radius: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--edge); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--cyan); }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p { color: var(--text-soft); }
.prose strong { color: var(--text-main); }
.prose li {
  position: relative;
  padding-left: 1.15em;
  color: var(--text-soft);
}
.prose li + li { margin-top: 0.4em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--cyan);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.toc__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  color: var(--text-soft);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.toc__link:hover { color: var(--text-main); border-color: var(--cyan); }

.toc__link[aria-current="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--cyan-ink);
  font-weight: 600;
}

/* 6. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease),
    border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  color: var(--cyan-ink);
  box-shadow: 0 0 0 1px rgba(34, 224, 214, 0.35), 0 14px 32px -18px rgba(34, 224, 214, 0.9);
}

.btn--primary:hover { background: var(--cyan-strong); transform: translateY(-2px); }

.btn--ghost {
  border-color: var(--edge);
  background: rgba(11, 23, 48, 0.55);
  color: var(--text-main);
}

.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--paper {
  background: var(--paper);
  color: var(--ink-panel);
}

.btn--paper:hover { background: #fff; }

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

/* 7. Header --------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 80;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 0.7em 1.2em;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: var(--cyan-ink);
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* 状态细条 */
.status-strip {
  border-bottom: 1px solid var(--ink-line);
  background: rgba(5, 11, 24, 0.92);
  font-size: 12px;
}

.status-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(10px, 2vw, 22px);
  min-height: 38px;
  padding-block: 6px;
}

.status-strip__cell {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  max-width: none;
}

.status-strip__cell strong { color: var(--cyan); font-weight: 600; }

.status-strip__key { color: var(--text-soft); opacity: 0.72; }

.status-strip__links {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.status-strip__links a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(34, 224, 214, 0.35);
  padding-bottom: 1px;
}

.status-strip__links a:hover { border-color: var(--cyan); }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 224, 214, 0.18);
  flex: none;
  animation: status-pulse 2.6s var(--ease) infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 224, 214, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(34, 224, 214, 0.04); }
}

/* 居中刊头 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(5, 11, 24, 0.92);
  border-bottom: 1px solid var(--ink-line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 76px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-self: start;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(34, 224, 214, 0.22), rgba(122, 92, 255, 0.3));
  color: var(--cyan);
}

.brand__mark svg { width: 22px; height: 22px; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__suffix { color: var(--cyan); }

.brand__tag {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  white-space: nowrap;
}

.brand--footer { margin-bottom: 14px; }

/* 栏目索引 */
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.16s var(--ease), background 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.nav__link:hover {
  color: var(--text-main);
  border-color: var(--edge);
  background: rgba(11, 23, 48, 0.7);
}

.nav__link[aria-current="page"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--cyan-ink);
  font-weight: 700;
}

.masthead__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  background: rgba(11, 23, 48, 0.6);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle__box {
  display: grid;
  gap: 4px;
  width: 18px;
  flex: none;
}

.nav-toggle__box i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__box i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__box i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__text { font-weight: 600; }

/* 8. Footer --------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--ink-line);
  background: linear-gradient(180deg, rgba(11, 23, 48, 0.55), rgba(5, 11, 24, 0.98));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 0.85fr;
  gap: clamp(20px, 3vw, 44px);
  padding-block: clamp(34px, 5vw, 58px) clamp(24px, 3vw, 36px);
}

.footer__brand { min-width: 0; }

.footer__line {
  max-width: 34ch;
  font-size: 13.5px;
  color: var(--text-soft);
}

.foot-col {
  border: 0;
  min-width: 0;
}

.foot-col__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  list-style: none;
}

.foot-col__title::-webkit-details-marker { display: none; }

.foot-col__title::after {
  content: "+";
  font-size: 15px;
  line-height: 1;
  color: var(--text-soft);
}

.foot-col[open] > .foot-col__title::after { content: "–"; }

.foot-col__list {
  display: grid;
  gap: 2px;
  padding-top: 8px;
}

.foot-col__list a,
.foot-col__text {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.16s var(--ease);
}

.foot-col__list a:hover { color: var(--cyan); }

.foot-col__text {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* 暖纸色联系面板 */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  padding: clamp(18px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink-panel);
}

.contact-strip__item {
  display: grid;
  gap: 4px;
  max-width: none;
  min-width: 0;
}

.contact-strip__key {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7a94;
}

.contact-strip__value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-panel);
  word-break: break-word;
}

a.contact-strip__value { border-bottom: 1px solid rgba(11, 23, 48, 0.3); justify-self: start; }
a.contact-strip__value:hover { border-color: var(--ink-panel); }

.contact-strip__note {
  grid-column: 1 / -1;
  max-width: none;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 23, 48, 0.18);
  font-size: 12.5px;
  line-height: 1.7;
  color: #46536b;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: clamp(18px, 2.4vw, 28px);
  padding-block: 18px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ink-line);
}

.footer__legal-text {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  max-width: none;
}

.footer__legal-note {
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.72;
  max-width: none;
}

/* 9. 脚本注入：阅读进度与返回顶部 ------------------------------------------ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 60%, var(--amber));
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: calc(clamp(14px, 3vw, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: var(--ink-panel);
  color: var(--cyan);
  font-size: 17px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 20px 44px -22px #000;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    visibility 0.2s var(--ease), border-color 0.16s var(--ease);
}

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

.to-top:hover { border-color: var(--cyan); color: var(--cyan-strong); }

/* 10. 滚动显现 ------------------------------------------------------------ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 11. 响应式 -------------------------------------------------------------- */
@media (max-width: 1120px) {
  .brand__tag { display: none; }
  .nav__link { padding: 0 11px; font-size: 13.5px; }
}

@media (max-width: 900px) {
  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
  }

  .masthead__tools { grid-column: 2; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    padding: 16px var(--pad) 22px;
    border-bottom: 1px solid var(--ink-line);
    background: rgba(11, 23, 48, 0.98);
    box-shadow: 0 30px 60px -30px #000;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
      visibility 0.2s var(--ease);
  }

  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .nav__link {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--edge);
    border-radius: var(--r-md);
    background: rgba(5, 11, 24, 0.6);
    font-size: 15px;
    color: var(--text-main);
  }

  .nav__link[aria-current="page"] {
    border-color: var(--cyan);
    background: var(--cyan);
    color: var(--cyan-ink);
  }

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

  .btn--ghost.btn--sm { display: none; }

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

  .footer__brand { grid-column: 1 / -1; }

  .foot-col {
    border-top: 1px solid var(--ink-line);
    padding-top: 4px;
  }

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

  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 6; }
  .span-3 { grid-column: span 3; }
}

@media (max-width: 640px) {
  .status-strip__cell--hide-sm { display: none; }

  .status-strip__links { gap: 12px; }

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

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

  .footer__legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .masthead__tools .btn--primary { display: none; }

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

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

  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: span 2; }
}

/* 12. 动效降级 ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .status-dot { animation: none; }

  html.js [data-reveal],
  html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .to-top { transform: none; }
}
