/* =========================================================
   王者赏金赛 · 共享样式  /assets/site.css
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 400; }

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

/* ---------- 2. 设计变量 ---------- */
:root {
  --bg: #070A14;
  --panel: #0E1424;
  --panel-2: #121A2E;
  --line: #1E2740;
  --silver: #C7CEDA;
  --ivory: #F5F7FB;
  --gold: #FFA41B;
  --gold-soft: #FFD98A;
  --ice: #6FE3FF;
  --lava: #FF4D3D;
  --violet: #7A5CFF;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

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

  --fs-hero: clamp(2.6rem, 8vw, 7rem);
  --fs-display: clamp(2rem, 5.2vw, 4rem);
  --fs-heading: clamp(1.25rem, 2.2vw, 1.9rem);
  --fs-body: 1rem;
  --fs-index: 0.75rem;

  --wrap: 1440px;
  --gutter: clamp(18px, 4vw, 56px);
  --rail-h: 92px;

  --shadow-lift: 0 18px 40px -24px rgba(0, 0, 0, 0.95);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--bg);
  color: var(--silver);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 10% -12%, rgba(255, 164, 27, 0.11), transparent 62%),
    radial-gradient(780px 460px at 94% 6%, rgba(111, 227, 255, 0.07), transparent 60%),
    radial-gradient(680px 420px at 50% 108%, rgba(122, 92, 255, 0.08), transparent 62%),
    linear-gradient(180deg, #070A14 0%, #05070F 100%);
}
h1, h2, h3, .u-display {
  color: var(--ivory);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.22;
}
p { max-width: 68ch; }
strong { color: var(--ivory); font-weight: 700; }
code, kbd, .u-mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.04em;
}
::selection { background: rgba(255, 164, 27, 0.34); color: var(--ivory); }

/* ---------- 4. 焦点与可访问 ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 300;
  transform: translate(-50%, -260%);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #14100A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 0.24s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 900px; }
.rule {
  height: 1px;
  border: 0;
  margin: clamp(32px, 5vw, 72px) 0;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }

/* 侧边导览：左轨道 + 右正文 */
.rail-layout {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.rail-layout__track {
  position: sticky;
  top: 168px;
  align-self: start;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(7, 10, 20, 0.93);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 164, 27, 0.55), rgba(111, 227, 255, 0.28), transparent);
  pointer-events: none;
}
.header-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gutter) 0;
}
.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}
.masthead-rail {
  grid-column: 1;
  justify-self: start;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: var(--rail-h);
  padding-block: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--gold);
  border-left: 2px solid rgba(255, 164, 27, 0.42);
  padding-left: 10px;
}
.masthead-brand {
  grid-column: 2;
  justify-self: center;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  color: var(--ivory);
  white-space: nowrap;
  transition: color 0.24s ease;
}
.masthead-brand::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  margin: 8px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 0.36s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.masthead-brand:hover, .masthead-brand:focus-visible { color: var(--gold-soft); }
.masthead-brand:hover::after, .masthead-brand:focus-visible::after { width: 100%; }

.header-side {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}
.masthead-corner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(14, 20, 36, 0.85);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--silver);
  white-space: nowrap;
}
.masthead-corner__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 164, 27, 0.16);
  animation: bk-pulse 2.6s ease-in-out infinite;
}
@keyframes bk-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--ivory);
  transition: border-color 0.24s ease, background-color 0.24s ease;
}
.nav-toggle:hover { border-color: var(--gold); background: var(--panel-2); }
.nav-toggle__icon { display: grid; gap: 4px; }
.nav-toggle__bar {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ivory);
  transition: transform 0.26s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav { margin-top: 6px; border-top: 1px solid var(--line); }
.nav-list {
  display: flex;
  align-items: stretch;
  gap: clamp(6px, 1.6vw, 24px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 4px 13px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--silver);
  white-space: nowrap;
  transition: color 0.22s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--ivory); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--gold); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #6B768C;
}
.nav-link[aria-current="page"] .nav-index { color: var(--gold-soft); }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  margin-top: clamp(60px, 10vw, 130px);
  padding: 0 var(--gutter) clamp(26px, 4vw, 46px);
}
.footer-plate {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(880px 320px at 6% 0%, rgba(255, 164, 27, 0.11), transparent 62%),
    radial-gradient(700px 300px at 100% 100%, rgba(111, 227, 255, 0.07), transparent 60%),
    linear-gradient(160deg, #111A2C 0%, #090E1A 100%);
}
.footer-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 164, 27, 0.55), rgba(30, 39, 64, 0.9) 42%, rgba(111, 227, 255, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.footer-plate::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 164, 27, 0.7), transparent);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr 0.95fr 1.35fr 0.95fr;
  gap: clamp(22px, 3vw, 46px);
}
.footer-block { display: grid; align-content: start; gap: 12px; }
.footer-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.footer-brand {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.24em;
  color: var(--ivory);
}
.footer-brand:hover, .footer-brand:focus-visible { color: var(--gold-soft); }
.footer-desc { font-size: 14px; line-height: 1.8; color: #8E99AF; max-width: 34ch; }
.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 4px;
}
.footer-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(7, 10, 20, 0.6);
}
.footer-stat__num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
}
.footer-stat__label { font-size: 12px; letter-spacing: 0.08em; color: #8E99AF; }

.footer-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ivory);
}
.footer-links { display: grid; gap: 9px; }
.footer-links a {
  font-size: 14px;
  color: #9AA5BA;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.footer-links a::before {
  content: "—";
  margin-right: 8px;
  color: var(--line);
  transition: color 0.2s ease;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold); transform: translateX(3px); }
.footer-links a:hover::before, .footer-links a:focus-visible::before { color: var(--gold); }

.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: grid; gap: 3px; }
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #6B768C;
}
.footer-contact__val {
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
  word-break: break-word;
}
.footer-hint { font-size: 12.5px; line-height: 1.75; color: #7C879E; max-width: 34ch; }
.footer-icp {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--silver);
}
.footer-base {
  position: relative;
  z-index: 1;
  margin-top: clamp(26px, 4vw, 46px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #7C879E;
}
.footer-base__mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #6B768C;
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 110;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(14, 20, 36, 0.94);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, border-color 0.24s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--gold); background: var(--panel-2); }

/* ---------- 8. 框景首屏 ---------- */
.frame-hero {
  position: relative;
  padding: clamp(28px, 5vw, 76px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 8% -6%, rgba(255, 164, 27, 0.13), transparent 62%),
    linear-gradient(165deg, rgba(18, 26, 46, 0.94), rgba(8, 12, 22, 0.96));
}
.frame-hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(30, 39, 64, 0.95);
  border-radius: calc(var(--radius-lg) - 12px);
  pointer-events: none;
}
.frame-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.frame-hero > * { position: relative; z-index: 1; }

/* ---------- 9. 编号章节 ---------- */
.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 34px);
  align-items: end;
  margin-bottom: clamp(24px, 3.4vw, 48px);
}
.section-num {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.section-title {
  font-size: var(--fs-display);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ivory);
}
.section-sub {
  margin-top: 8px;
  font-size: 14px;
  color: #8E99AF;
  max-width: 56ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ---------- 10. 面板 ---------- */
.panel {
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease, background-color 0.26s ease;
}
.panel--lift:hover,
.panel--lift:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 164, 27, 0.6);
  box-shadow: var(--shadow-lift);
  background: var(--panel-2);
}
.panel__title {
  font-size: var(--fs-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ivory);
}
.panel__meta {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #6B768C;
}
.panel__body { margin-top: 12px; font-size: 15px; line-height: 1.8; color: #9AA5BA; }

/* ---------- 11. 按钮与胶囊 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--ivory);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 0.24s ease, background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); border-color: var(--gold); }
.btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #FFB838, #FF8A00);
  color: #14100A;
  box-shadow: 0 12px 34px -16px rgba(255, 164, 27, 0.85);
}
.btn--primary:hover, .btn--primary:focus-visible { color: #14100A; }
.btn--ghost { background: transparent; }
.btn__arrow {
  font-family: var(--font-mono);
  transition: transform 0.24s ease;
}
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(4px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(14, 20, 36, 0.72);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--silver);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.chip--gold { color: var(--gold-soft); border-color: rgba(255, 164, 27, 0.42); background: rgba(255, 164, 27, 0.09); }
.chip--ice { color: var(--ice); border-color: rgba(111, 227, 255, 0.4); background: rgba(111, 227, 255, 0.08); }
.chip--violet { color: #B7A6FF; border-color: rgba(122, 92, 255, 0.44); background: rgba(122, 92, 255, 0.1); }
.chip--lava { color: #FF9086; border-color: rgba(255, 77, 61, 0.44); background: rgba(255, 77, 61, 0.1); }
.chip:hover { color: var(--ivory); border-color: var(--gold); }

/* ---------- 12. 键值列表与面包屑 ---------- */
.meta-list { display: grid; gap: 10px; }
.meta-list > li {
  display: grid;
  grid-template-columns: minmax(0, 108px) minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(30, 39, 64, 0.7);
}
.meta-list__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #6B768C;
}
.meta-list__val { font-size: 14px; color: var(--silver); word-break: break-word; }

.breadcrumbs {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #7C879E;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { color: var(--gold); }

/* ---------- 13. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(155deg, #131B2E 0%, #090E1A 100%);
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 10, 20, 0) 42%, rgba(7, 10, 20, 0.78) 100%);
}
.media-frame__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
}

/* ---------- 14. 滚动显现 ---------- */
.has-js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.62s ease, transform 0.62s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--d, 0ms);
}
.has-js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .header-inner { padding: 10px var(--gutter) 12px; }
  .header-top { grid-template-columns: 1fr auto; min-height: 62px; gap: 12px; }
  .masthead-rail { display: none; }
  .masthead-brand { grid-column: 1; justify-self: start; font-size: 1.3rem; letter-spacing: 0.26em; padding-left: 0; }
  .header-side { grid-column: 2; }
  .masthead-corner { display: none; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    margin-top: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(11, 17, 32, 0.985);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .site-nav[data-open] {
    max-height: 74vh;
    overflow-y: auto;
  }
  .nav-list { flex-direction: column; gap: 0; padding: 6px var(--gutter) 18px; }
  .nav-link {
    padding: 15px 0;
    border-bottom: 1px solid rgba(30, 39, 64, 0.8);
    font-size: 15px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--gold); }
  .nav-index { font-size: 11px; }

  .rail-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rail-layout__track { position: static; padding-left: 0; border-left: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

  .section-head { grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
  .section-num { font-size: clamp(2.2rem, 12vw, 3.6rem); }
}
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-12 { grid-template-columns: minmax(0, 1fr); }
  .media-frame--wide { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-plate { border-radius: var(--radius-md); }
  .frame-hero { border-radius: var(--radius-md); }
  .frame-hero::before { inset: 10px; border-radius: calc(var(--radius-md) - 8px); }
  .meta-list > li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .masthead-brand { font-size: 1.12rem; letter-spacing: 0.2em; }
  .footer-base { font-size: 12px; }
}

/* ---------- 16. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .has-js .reveal { opacity: 1 !important; transform: none !important; }
  .masthead-corner__dot { animation: none; }
  .panel--lift:hover { transform: none; }
  .to-top { transition: none; }
}
