/* ==========================================================================
   美高美游艺 · 共享站点样式 /assets/site.css
   深空黑沉浸底 + 金属金骨架 + 霓虹青单一强调色
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink-900: #07080C;
  --ink-850: #0C0E15;
  --ink-800: #12141C;
  --ink-700: #1B1E28;

  --gold: #E7B45A;
  --gold-lift: #FFD98A;
  --cyan: #35E6D2;
  --magenta: #FF3D8B;
  --jade: #EDF2F5;
  --mist: #9AA3B2;
  --amber: #FF8A3D;
  --shu: #8E2F2B;

  --line: rgba(231, 180, 90, .28);
  --line-soft: rgba(237, 242, 245, .10);
  --glass: rgba(27, 30, 40, .78);
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, .55);

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --shell: 1280px;
  --gutter: clamp(16px, 2.4vw, 40px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* ---------- 2. Reset 与基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--ink-900);
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink-900);
  color: var(--jade);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 背景层：金属金光晕 + 霓虹青冷光 + 蜀锦暗红斜纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 10% -8%, rgba(231, 180, 90, .16), transparent 62%),
    radial-gradient(760px 460px at 94% 6%, rgba(53, 230, 210, .12), transparent 62%),
    radial-gradient(700px 520px at 68% 100%, rgba(255, 61, 139, .10), transparent 66%),
    var(--ink-900);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    repeating-linear-gradient(15deg, rgba(142, 47, 43, .18) 0 1px, transparent 1px 7px),
    linear-gradient(90deg, rgba(237, 242, 245, .035) 1px, transparent 1px),
    linear-gradient(rgba(237, 242, 245, .035) 1px, transparent 1px);
  background-size: auto, 76px 76px, 76px 76px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), transparent 76%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), transparent 76%);
}

body > * { position: relative; z-index: 1; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; }
button { font: inherit; }

[id] { scroll-margin-top: 104px; }

::selection { background: rgba(53, 230, 210, .32); color: var(--jade); }

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

/* ---------- 3. 跳至主内容 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -96px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04120F;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

/* ---------- 4. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 920px; }

.page-main { display: block; }

.section { padding-block: clamp(44px, 7vw, 96px); }
.section + .section { border-top: 1px solid rgba(237, 242, 245, .07); }
.section-tight { padding-block: clamp(28px, 4vw, 56px); }

.grid { display: grid; gap: clamp(18px, 2.6vw, 32px); }
.grid-editorial { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.grid-editorial-rev { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); }

.stripe-band {
  height: 6px;
  border: 0;
  margin: clamp(32px, 5vw, 60px) 0;
  background: linear-gradient(90deg, transparent, rgba(231, 180, 90, .78) 20%, rgba(53, 230, 210, .72) 56%, rgba(255, 61, 139, .62) 82%, transparent);
  transform: skewY(-1.2deg);
}
.rule-gold {
  height: 1px;
  border: 0;
  margin: clamp(22px, 3vw, 38px) 0;
  background: linear-gradient(90deg, var(--gold), rgba(231, 180, 90, 0) 72%);
}

/* ---------- 5. 排版 ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--jade);
  margin-bottom: 14px;
}
.section-lede {
  max-width: 64ch;
  color: var(--mist);
  margin-bottom: clamp(20px, 3vw, 34px);
}
.idx-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--gold);
}

.prose {
  max-width: 74ch;
  color: var(--jade);
  font-size: 16px;
  line-height: 1.8;
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 800;
  line-height: 1.32;
  margin-top: 1.9em;
  color: var(--jade);
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1.6em;
  color: var(--gold-lift);
}
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--gold-lift); font-weight: 600; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(53, 230, 210, .42);
}
.prose a:hover { text-decoration-color: var(--cyan); }
.prose code {
  font-family: var(--font-mono);
  font-size: .92em;
  padding: .12em .42em;
  border-radius: 4px;
  background: rgba(53, 230, 210, .10);
  color: var(--cyan);
}
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 18px;
  color: var(--mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(231, 180, 90, .38);
  background: rgba(231, 180, 90, .09);
  color: var(--gold-lift);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.6;
}
.tag-cyan {
  border-color: rgba(53, 230, 210, .42);
  background: rgba(53, 230, 210, .09);
  color: var(--cyan);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #1FBFAE);
  color: #04120F;
  box-shadow: 0 0 0 1px rgba(53, 230, 210, .45), 0 10px 26px -14px rgba(53, 230, 210, .9);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--gold-lift), 0 14px 30px -12px rgba(53, 230, 210, .95);
}
.btn-ghost {
  background: rgba(231, 180, 90, .07);
  border-color: rgba(231, 180, 90, .45);
  color: var(--gold-lift);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(231, 180, 90, .16);
  border-color: var(--gold-lift);
}
.btn-line {
  background: transparent;
  border-color: rgba(237, 242, 245, .26);
  color: var(--jade);
}
.btn-line:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-sm { padding: 7px 13px; font-size: 13px; }

/* ---------- 7. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 8, 12, .88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 22px 46px -32px rgba(0, 0, 0, .98);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 12px var(--gutter);
  min-height: 68px;
}

.header-brand { flex: 0 0 auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--jade);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 10px;
  height: 26px;
  background: linear-gradient(180deg, var(--gold-lift), var(--gold) 52%, var(--magenta));
  box-shadow: 0 0 16px rgba(231, 180, 90, .55);
  clip-path: polygon(0 0, 100% 16%, 100% 100%, 0 84%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .06em;
}
.brand-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--gold);
}
.brand-ver {
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--gold);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.cmd-nav { flex: 1 1 auto; min-width: 0; }
.cmd-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  list-style: none;
}
.cmd-item { position: relative; }
.cmd-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.cmd-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--gold);
  opacity: .78;
}
.cmd-label { white-space: nowrap; }
.cmd-link:hover {
  color: var(--jade);
  background: rgba(231, 180, 90, .08);
  border-color: rgba(231, 180, 90, .32);
}
.cmd-link:hover .cmd-idx { opacity: 1; color: var(--gold-lift); }

.cmd-link[aria-current="page"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120F;
  box-shadow: 0 0 24px -6px rgba(53, 230, 210, .75);
}
.cmd-link[aria-current="page"] .cmd-idx { color: #04322C; opacity: 1; }
.cmd-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(27, 30, 40, .92);
  color: var(--jade);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  cursor: pointer;
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle-bars i:nth-child(2) { width: 70%; }
.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); }
.site-header[data-open] .nav-toggle { border-color: var(--cyan); color: var(--cyan); }

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), var(--cyan) 55%, var(--magenta));
  pointer-events: none;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 116px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 20, 28, .55), var(--ink-800) 26%, #0A0B11);
  color: var(--mist);
}
.footer-stripe {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--cyan) 52%, var(--magenta) 84%, transparent);
  opacity: .85;
}
.footer-shell {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.15fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(24px, 3vw, 38px);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--jade);
  margin-bottom: 8px;
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-note {
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.85;
  color: var(--mist);
  margin-bottom: 20px;
}
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold-lift);
}
.footer-col-title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--cyan);
}

.footer-list { list-style: none; display: grid; gap: 9px; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mist);
  font-size: 14px;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
.footer-link::before {
  content: "›";
  font-family: var(--font-mono);
  color: var(--gold);
  opacity: .6;
}
.footer-link:hover { color: var(--cyan); transform: translateX(3px); }

.footer-contact { list-style: none; }
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(154, 163, 178, .17);
}
.contact-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--gold);
}
.contact-value {
  flex: 1 1 130px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--jade);
}
.copy-btn {
  flex: 0 0 auto;
  margin-inline-start: auto;
  padding: 3px 9px;
  border: 1px solid rgba(53, 230, 210, .36);
  border-radius: 4px;
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.copy-btn:hover { background: rgba(53, 230, 210, .14); border-color: var(--cyan); }
.copy-btn[data-copied] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
}

.footer-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mist);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid rgba(237, 242, 245, .08);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mist);
}
.footer-copy { margin: 0; }
.footer-legal { margin: 0; color: var(--gold); }

/* ---------- 9. 通用组件 ---------- */
.breadcrumbs { margin-bottom: clamp(22px, 3vw, 36px); }
.crumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
}
.crumb-list li { display: inline-flex; align-items: center; gap: 9px; }
.crumb-list li + li::before { content: "/"; color: var(--gold); opacity: .6; }
.crumb-list a { color: var(--mist); text-decoration: none; }
.crumb-list a:hover { color: var(--cyan); }
.crumb-list [aria-current="page"] { color: var(--jade); }

.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(27, 30, 40, .92), rgba(18, 20, 28, .8));
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 180, 90, .5);
  box-shadow: 0 20px 44px -24px rgba(0, 0, 0, .96), 0 0 0 1px rgba(231, 180, 90, .22);
}
.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--jade);
  margin-bottom: 8px;
}
.card-text { color: var(--mist); font-size: 14.5px; line-height: 1.8; }

.tabs { border-bottom: 1px solid var(--line-soft); }
.tablist { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  padding: 8px 14px;
  border: 1px solid rgba(237, 242, 245, .14);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.tab:hover { color: var(--jade); border-color: rgba(231, 180, 90, .5); }
.tab[aria-selected="true"] {
  background: rgba(53, 230, 210, .14);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px -8px rgba(53, 230, 210, .85);
}
.tab-panel { padding-top: clamp(18px, 2.4vw, 28px); }
.tab-panel[hidden] { display: none; }

.disclosure {
  margin-bottom: 12px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(27, 30, 40, .92), rgba(18, 20, 28, .76));
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.disclosure[open] {
  border-left-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(53, 230, 210, .18);
}
.disclosure > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: var(--jade);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after {
  content: "+";
  margin-inline-start: auto;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  transition: transform .22s ease, color .22s ease;
}
.disclosure[open] > summary::after { transform: rotate(45deg); color: var(--cyan); }
.disclosure-body {
  padding: 0 18px 18px;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.85;
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(237, 242, 245, .12);
  border-radius: var(--radius-md);
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(231, 180, 90, .24), transparent 60%),
    radial-gradient(120% 100% at 88% 94%, rgba(255, 61, 139, .18), transparent 62%),
    linear-gradient(150deg, #14161F, #0A0B11);
  box-shadow: var(--shadow-hard);
}
.media-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame-wide { aspect-ratio: 21 / 9; }
.media-frame-square { aspect-ratio: 1 / 1; }
.media-frame-tall { aspect-ratio: 3 / 4; }

/* ---------- 10. 显现动效 ---------- */
.reveal-pending {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .26s ease-out, transform .26s ease-out;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal]:not(.reveal-pending) { opacity: 1; transform: none; }

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1140px) {
  .cmd-link { padding: 8px 9px; font-size: 13px; }
  .grid-editorial, .grid-editorial-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 1080px) {
  .brand-sub { display: none; }
  .footer-shell { grid-template-columns: 1fr 1fr; }
  .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .header-shell { min-height: 62px; }
  .nav-toggle { display: inline-flex; }
  .cmd-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: min(74vh, 560px);
    overflow-y: auto;
    padding: 16px var(--gutter) 22px;
    background: rgba(12, 14, 21, .985);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 34px 64px -34px #000;
  }
  .site-header[data-open] .cmd-nav { display: block; }
  .cmd-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
  }
  .cmd-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 15px;
    background: rgba(27, 30, 40, .55);
    border-color: rgba(237, 242, 245, .08);
  }
  .cmd-idx { font-size: 12px; }
  .header-actions { margin-inline-start: auto; }
  .header-actions .btn { padding: 9px 13px; font-size: 13px; }
  .grid-editorial, .grid-editorial-rev { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .prose { font-size: 15.5px; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 15px; }
  .brand-mark { height: 22px; }
  .brand-ver { font-size: 10px; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn { padding: 8px 12px; font-size: 12.5px; }
  .nav-toggle-label { display: none; }
  .site-header { box-shadow: 0 14px 30px -24px #000; }
}

/* ---------- 12. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal-pending { opacity: 1 !important; transform: none !important; }
  .header-progress { transition: none !important; }
}
