/* ============================================================
   澳门王牌中国站 · 共享 Site Kit
   /assets/site.css — reset / 变量 / 中文排版 / 头部 / 页脚 /
   按钮 / 面包屑 / 容器 / 网格 / 基础组件（页面特色布局另行编写）
   ============================================================ */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

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

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

table { width: 100%; border-collapse: collapse; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色 */
  --night: #0B1736;
  --red: #7A0E1E;
  --paper: #F4E9D8;
  --ink: #1C1512;
  --gold: #D6A64A;
  --teal: #1FA3A3;
  --green: #2E7D4F;
  --yellow: #F2C14E;
  --white: #F7F3E9;
  --print: #E0472E;
  --fog: #B9B2A6;
  --dark-gold: #8C6A2A;

  /* 度量 */
  --rail-w: 64px;
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: clamp(16px, 2vw, 26px);

  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  /* 形状 */
  --line: 3px solid var(--ink);
  --radius: 2px;
  --shadow-hard: 8px 8px 0 var(--ink);
  --shadow-gold: 6px 6px 0 var(--gold);
  --shadow-red: 6px 6px 0 var(--red);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 中文排版与基底 ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(28, 21, 18, .045) 31px 32px);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.85;
  color: rgba(28, 21, 18, .84);
}

.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin-top: 1.8em;
  padding-left: 14px;
  border-left: 6px solid var(--red);
}
.prose h3 { font-size: clamp(18px, 1.6vw, 22px); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; list-style: none; }
.prose li { position: relative; padding-left: .4em; margin-top: .45em; }
.prose li::before {
  content: "▚";
  position: absolute;
  left: -1.1em;
  color: var(--gold);
  font-size: .8em;
  top: .25em;
}
.prose strong { font-weight: 800; color: var(--red); }

.mono { font-family: var(--font-mono); letter-spacing: .06em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .26em;
  color: var(--red);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--gold);
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 999;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--gold);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-180%);
  transition: transform .22s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 头部 · 品牌轨道 ---------- */
.brand-rail { display: none; }

@media (min-width: 1120px) {
  body { padding-left: var(--rail-w); }

  .brand-rail {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: var(--rail-w);
    padding: 18px 0 24px;
    color: var(--white);
    background-color: var(--red);
    background-image: repeating-linear-gradient(180deg, rgba(214, 166, 74, .3) 0 2px, transparent 2px 28px);
    border-right: 3px solid var(--ink);
  }

  .brand-rail__mark {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: 3px 3px 0 var(--ink);
  }

  .brand-rail__text {
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .34em;
    color: rgba(247, 243, 233, .86);
  }

  .brand-rail__dots {
    width: 26px; height: 26px;
    border: 2px solid var(--gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: rail-spin 8s linear infinite;
  }
}

@keyframes rail-spin {
  to { transform: rotate(360deg); }
}

/* ---------- 6. 头部 · 刊头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  color: var(--white);
  background: var(--night);
  border-bottom: 4px solid var(--ink);
  transition: box-shadow .3s var(--ease);
}
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--gold) 0 22%,
    var(--print) 22% 44%,
    var(--teal) 44% 64%,
    var(--green) 64% 82%,
    var(--yellow) 82% 100%
  );
}
.site-header[data-scrolled] { box-shadow: 0 14px 30px rgba(11, 23, 54, .42); }

.masthead {
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 16% -60%, rgba(122, 14, 30, .9), transparent 60%),
    radial-gradient(circle at 92% 150%, rgba(31, 163, 163, .26), transparent 58%);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px var(--gutter);
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.masthead__glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  background: var(--red);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
}

.masthead__lines { display: grid; gap: 2px; min-width: 0; }

.masthead__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.1vw, 25px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .04em;
  color: var(--white);
  text-shadow: 2px 2px 0 rgba(122, 14, 30, .95);
  white-space: nowrap;
}

.masthead__note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--gold);
  white-space: nowrap;
}
.masthead__note::before { content: "› "; color: var(--print); }

.masthead__coord {
  display: none;
  margin-left: clamp(4px, 1vw, 18px);
  padding-left: 16px;
  border-left: 2px solid rgba(214, 166, 74, .4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: rgba(247, 243, 233, .56);
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

@media (min-width: 900px) {
  .masthead__coord { display: block; }
}

@media (max-width: 600px) {
  .masthead__actions .btn { display: none; }
  .masthead__note { letter-spacing: .12em; }
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn--primary {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--red);
}
.btn--primary:hover { box-shadow: 6px 6px 0 var(--red); }
.btn--primary:active { box-shadow: 1px 1px 0 var(--red); }

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--white); transform: none; box-shadow: none; }

.btn--sm { padding: 7px 14px; font-size: 12px; }
.btn--block { width: 100%; }

/* ---------- 8. 移动导航按钮 ---------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  color: var(--white);
  background: rgba(122, 14, 30, .55);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:hover { background: var(--red); }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span {
  display: block;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .26s var(--ease), opacity .18s var(--ease);
}
.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
}
.site-header[data-open] .nav-toggle { background: var(--print); border-color: var(--ink); }
.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

/* ---------- 9. 刊头导航条 ---------- */
.site-nav {
  background: var(--red);
  border-top: 2px solid rgba(214, 166, 74, .38);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-nav__item { display: flex; }

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 11px 15px;
  font-size: 14px;
  letter-spacing: .06em;
  color: rgba(247, 243, 233, .84);
  border-bottom: 3px solid transparent;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.site-nav__link:hover {
  color: var(--gold);
  background: rgba(11, 23, 54, .55);
  border-bottom-color: var(--gold);
}

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--yellow);
  opacity: .8;
}

.site-nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--gold);
  border-bottom-color: var(--print);
  font-weight: 700;
}
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--red); opacity: 1; }

@media (max-width: 899px) {
  .site-nav {
    max-height: 0;
    overflow: hidden;
    border-top-width: 0;
    transition: max-height .38s var(--ease);
  }
  .site-header[data-open] .site-nav {
    max-height: min(74vh, 580px);
    overflow-y: auto;
    border-top-width: 2px;
  }
  .site-nav__list {
    flex-direction: column;
    padding: 8px var(--gutter) 18px;
  }
  .site-nav__item { width: 100%; }
  .site-nav__link {
    width: 100%;
    padding: 14px 6px;
    font-size: 16px;
    border-bottom: 1px solid rgba(214, 166, 74, .24);
  }
  .site-nav__link[aria-current="page"] { border-bottom-color: var(--print); }
}

/* ---------- 10. 页脚 · 玛尼堆层叠 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  color: var(--white);
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(122, 14, 30, .8), transparent 55%),
    radial-gradient(circle at 96% 90%, rgba(31, 163, 163, .2), transparent 52%);
  border-top: 6px solid var(--red);
}
.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--yellow) 0 20%,
    var(--green) 20% 40%,
    var(--teal) 40% 60%,
    var(--print) 60% 80%,
    var(--gold) 80% 100%
  );
}

.footer-stack {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  grid-template-columns: 1fr;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 60px) var(--gutter) clamp(22px, 3vw, 38px);
}

@media (min-width: 720px) {
  .footer-stack { grid-template-columns: 1fr 1fr; }
  .footer-lead { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
  .footer-stack { grid-template-columns: 1.35fr .75fr 1.25fr .85fr; align-items: start; }
  .footer-lead { grid-column: auto; }
}

.footer-lead {
  padding: 6px 0 0;
  border-left: 8px solid var(--gold);
  padding-left: 18px;
}

.footer-lead__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .3em;
  color: var(--yellow);
}
.footer-lead__kicker::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--print);
  border: 2px solid var(--ink);
}

.footer-lead__brand {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 900;
  letter-spacing: .03em;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--red);
  transition: color .2s var(--ease);
}
.footer-lead__brand:hover { color: var(--gold); }

.footer-lead__note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.9;
  letter-spacing: .1em;
  color: rgba(247, 243, 233, .74);
}

.footer-col { display: grid; align-content: start; }

.footer-col--nav,
.footer-col--contact,
.footer-col--legal {
  padding-top: 16px;
  border-top: 2px solid rgba(214, 166, 74, .34);
}

.footer-col__title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--gold);
  border-bottom: 2px solid rgba(214, 166, 74, .2);
}

.footer-col__list { display: grid; gap: 9px; }

.footer-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(247, 243, 233, .86);
  border-bottom: 1px dashed transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-link::before {
  content: "/";
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dark-gold);
}
.footer-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.footer-col__list--meta { gap: 11px; }
.footer-col__list--meta > li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-meta__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--yellow);
}

.footer-meta__v {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(247, 243, 233, .92);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 16px;
  padding-left: 12px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--fog);
  border-left: 3px solid var(--dark-gold);
}
.footer-note--quiet { border-left-color: rgba(214, 166, 74, .5); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--gutter) 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--fog);
  border-top: 2px solid rgba(214, 166, 74, .28);
}
.footer-base__copy { color: rgba(247, 243, 233, .82); }
.footer-base__icp { color: var(--gold); }
.footer-base__route { color: rgba(185, 178, 166, .8); }

/* ---------- 11. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.grid { display: grid; gap: var(--gap); }

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

@media (min-width: 768px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
  .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-9 { grid-column: span 9; }
  .span-10 { grid-column: span 10; }
  .span-12 { grid-column: span 12; }
}

/* ---------- 12. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--dark-gold);
}
.breadcrumb__link {
  color: var(--dark-gold);
  border-bottom: 1px dashed transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.breadcrumb__link:hover { color: var(--red); border-bottom-color: var(--red); }
.breadcrumb__sep { color: var(--fog); }
.breadcrumb__current {
  color: var(--ink);
  font-weight: 700;
  padding: 1px 8px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

/* ---------- 13. 章节眉标 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 18px;
  padding-bottom: 12px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  border-bottom: 3px solid var(--ink);
}
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.5vw, 32px);
  font-weight: 900;
  line-height: 1.25;
}
.section-head__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--dark-gold);
}

/* ---------- 14. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  color: var(--ink);
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--ink); }

.card__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 800;
  line-height: 1.35;
}
.card__meta {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--dark-gold);
}
.card__body {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(28, 21, 18, .82);
}

/* ---------- 15. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.tag--teal { background: var(--teal); }
.tag--green { background: var(--green); color: var(--white); }
.tag--yellow { background: var(--yellow); }
.tag--print { background: var(--print); color: var(--white); }
.tag--ghost { background: transparent; color: var(--ink); border-style: dashed; }

/* ---------- 16. 图像容器（页面阶段放图占位） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--night);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.media-frame img,
.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.media-frame--wide img,
.media-frame--wide .media-frame__img { aspect-ratio: 21 / 9; }
.media-frame--tall img,
.media-frame--tall .media-frame__img { aspect-ratio: 3 / 4; }
.media-frame--square img,
.media-frame--square .media-frame__img { aspect-ratio: 1 / 1; }

.media-frame--placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  background-color: var(--night);
  background-image:
    repeating-linear-gradient(135deg, rgba(214, 166, 74, .16) 0 12px, transparent 12px 24px),
    radial-gradient(circle at 78% 18%, rgba(122, 14, 30, .9), transparent 58%);
}
.media-frame--placeholder::after {
  content: attr(data-placeholder-label);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(247, 243, 233, .7);
  padding: 6px 12px;
  border: 2px dashed rgba(214, 166, 74, .6);
}

.media-frame__caption {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--fog);
  background: var(--night);
  border-top: 2px solid var(--red);
}

/* ---------- 17. 索引行（章节跟随） ---------- */
.index-list { display: grid; gap: 6px; }

.index-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: rgba(28, 21, 18, .045);
  border-left: 4px solid transparent;
  border-radius: var(--radius);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.index-link:hover { background: rgba(214, 166, 74, .26); border-left-color: var(--gold); }
.index-link[aria-current] {
  font-weight: 700;
  color: var(--red);
  background: rgba(214, 166, 74, .32);
  border-left-color: var(--red);
}

/* ---------- 18. 数字锚点 ---------- */
.stat { display: grid; gap: 4px; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--gold);
  text-shadow: 4px 4px 0 var(--red);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--dark-gold);
}

/* ---------- 19. 滚动进度 / 返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  width: 100%;
  height: 4px;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--print) 55%, var(--teal));
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 54px; height: 54px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--print); color: var(--white); }

/* ---------- 20. 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (scripting: none) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 21. 响应式微调 ---------- */
@media (max-width: 479px) {
  .masthead__inner { padding: 10px var(--gutter); }
  .masthead__glyph { width: 36px; height: 36px; font-size: 19px; }
  .footer-base { font-size: 10.5px; letter-spacing: .08em; }
  .to-top { right: 12px; bottom: 12px; width: 48px; height: 48px; }
}

/* ---------- 22. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .brand-rail__dots { animation: none; border-top-color: var(--gold); }

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

  .card:hover,
  .btn:hover,
  .btn:active { transform: none; }
}
