/* ============================================================
   爱游戏赛场 — 共享样式 /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, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- 2. 令牌 ---------- */
:root {
  --night: #081421;
  --board: #0E1E30;
  --lake: #12395C;
  --ochre: #A63D2B;
  --ochre-lit: #C7543A;
  --pulse: #32F2C6;
  --sand: #F1E9DD;
  --mist: #9AAEC4;
  --line: #2D435C;
  --gold: #E6B978;

  --font-display: "Oswald", "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --dur: .24s;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  color: var(--sand);
  font-family: var(--font-body);
  font-size: clamp(15.5px, .5vw + 14px, 17.5px);
  line-height: 1.78;
  letter-spacing: .012em;
  background-color: var(--night);
  background-image:
    linear-gradient(180deg, rgba(18, 57, 92, .34) 0%, rgba(8, 20, 33, 0) 46%),
    repeating-linear-gradient(90deg, rgba(45, 67, 92, .20) 0 1px, transparent 1px 112px),
    repeating-linear-gradient(0deg, rgba(45, 67, 92, .16) 0 1px, transparent 1px 112px);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .015em;
  color: var(--sand);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.05rem; letter-spacing: .06em; }
::selection { background: rgba(50, 242, 198, .26); color: #fff; }
:focus-visible { outline: 2px solid var(--pulse); outline-offset: 3px; border-radius: 1px; }
#main-content { display: block; outline: none; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 4. 进度条与跳转链接 ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(45, 67, 92, .6);
  z-index: 95;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ochre) 0%, var(--ochre-lit) 46%, var(--pulse) 100%);
  transition: transform .1s linear;
}
.skip-link {
  position: absolute;
  left: 14px;
  top: -72px;
  z-index: 130;
  padding: .72em 1.1em;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: #03202A;
  background: var(--pulse);
  border: 1px solid #1aa88b;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 5. 头部：状态带 ---------- */
.site-header {
  position: relative;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 33, .99), rgba(11, 26, 42, .95));
}
.header-utility {
  border-bottom: 1px solid rgba(45, 67, 92, .65);
  background: linear-gradient(90deg, rgba(18, 57, 92, .55), rgba(8, 20, 33, 0) 64%);
}
.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 32px);
  min-height: 34px;
  padding-block: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-utility__inner::-webkit-scrollbar { display: none; }
.header-descriptor {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  flex: none;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--mist);
  white-space: nowrap;
}
.header-descriptor::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: none;
  background: var(--ochre-lit);
}
.header-utility__meta {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  white-space: nowrap;
}
.header-hint {
  padding-left: 14px;
  border-left: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: rgba(154, 174, 196, .78);
}
.header-status {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .2em .75em .2em .6em;
  border: 1px solid rgba(50, 242, 198, .32);
  background: rgba(50, 242, 198, .07);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--sand);
}
.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 0 0 rgba(50, 242, 198, .55);
  animation: pulse-dot 2.4s var(--ease) infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(50, 242, 198, .5); }
  70% { box-shadow: 0 0 0 7px rgba(50, 242, 198, 0); }
  100% { box-shadow: 0 0 0 0 rgba(50, 242, 198, 0); }
}

/* ---------- 6. 头部：命令栏 ---------- */
.header-bar { background: linear-gradient(180deg, rgba(18, 57, 92, .34), rgba(8, 20, 33, 0) 72%); }
.header-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  padding-block: 11px;
}
.brand {
  order: 1;
  flex: none;
  display: flex;
  align-items: center;
  gap: .7em;
  transition: opacity var(--dur) var(--ease);
}
.brand:hover { opacity: .86; }
.brand__index {
  padding: .34em .6em;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--sand);
  background: linear-gradient(135deg, rgba(166, 61, 43, .96), rgba(199, 84, 58, .74));
  border: 1px solid rgba(199, 84, 58, .9);
}
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--sand);
  white-space: nowrap;
}
.brand__rule { width: 1px; height: 20px; flex: none; background: var(--line); }

.nav-toggle {
  order: 2;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .52em .8em;
  border: 1px solid var(--line);
  background: rgba(14, 30, 48, .9);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--sand);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--ochre-lit); color: #fff; }
.nav-toggle[aria-expanded="true"] {
  border-color: var(--pulse);
  color: var(--pulse);
  background: rgba(50, 242, 198, .08);
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
  flex: none;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__label { white-space: nowrap; }

.primary-nav {
  order: 3;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.primary-nav::-webkit-scrollbar { height: 3px; }
.primary-nav::-webkit-scrollbar-thumb { background: var(--line); }
.nav-list { display: flex; align-items: stretch; min-width: max-content; }
.nav-list__item { display: flex; }
.nav-link {
  display: flex;
  align-items: baseline;
  gap: .5em;
  padding: .58em .85em;
  border-left: 1px solid rgba(45, 67, 92, .55);
  border-bottom: 2px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-list__item:first-child .nav-link { border-left: 0; }
.nav-link__index {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: rgba(154, 174, 196, .7);
  transition: color var(--dur) var(--ease);
}
.nav-link__label {
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--mist);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav-link:hover { background: rgba(166, 61, 43, .16); }
.nav-link:hover .nav-link__label { color: var(--sand); }
.nav-link:hover .nav-link__index { color: var(--ochre-lit); }
.nav-link[aria-current="page"] {
  background: linear-gradient(180deg, rgba(166, 61, 43, .42), rgba(166, 61, 43, 0));
  border-bottom-color: var(--pulse);
}
.nav-link[aria-current="page"] .nav-link__label { color: #fff; }
.nav-link[aria-current="page"] .nav-link__index { color: var(--pulse); }

.header-cta {
  order: 4;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .56em 1em;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  color: #fff;
  background: linear-gradient(135deg, var(--ochre), var(--ochre-lit));
  border: 1px solid rgba(199, 84, 58, .9);
  transition: filter var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header-cta::after { content: "→"; font-size: .95em; line-height: 1; }
.header-cta:hover { filter: brightness(1.14); box-shadow: 0 8px 22px -14px rgba(199, 84, 58, .95); }

/* ---------- 7. 头部响应式 ---------- */
@media (min-width: 901px) {
  .nav-toggle { display: none; }
}
@media (max-width: 900px) {
  .header-hint { display: none; }
  .header-descriptor { font-size: .66rem; letter-spacing: .13em; }
  .header-status { font-size: .68rem; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .primary-nav {
    order: 5;
    flex: 1 1 100%;
    display: none;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    overflow: visible;
  }
  .primary-nav[data-open="true"] {
    display: block;
    animation: nav-drop .26s var(--ease) both;
  }
  .nav-list { flex-direction: column; min-width: 0; }
  .nav-list__item { width: 100%; }
  .nav-link {
    border-left: 0;
    border-bottom: 1px solid rgba(45, 67, 92, .5);
    padding: .88em .2em;
    align-items: center;
    gap: .9em;
  }
  .nav-link__label { font-size: 1rem; }
  .nav-link__index { font-size: .72rem; }
  .nav-link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(166, 61, 43, .42), rgba(8, 20, 33, 0));
    border-bottom-color: transparent;
    border-left: 3px solid var(--pulse);
    padding-left: .9em;
  }
}
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 420px) {
  .brand__rule { display: none; }
  .header-descriptor { display: none; }
  .header-utility__inner { justify-content: flex-end; }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 88px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--board) 0%, #0A1728 56%, var(--night) 100%);
  overflow: hidden;
}
.footer-slice {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(58%, 760px);
  height: 100%;
  pointer-events: none;
  opacity: .9;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(122deg, rgba(166, 61, 43, .18) 0 1px, transparent 1px 22px),
    linear-gradient(200deg, rgba(18, 57, 92, .55), rgba(8, 20, 33, 0) 72%);
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(38px, 5vw, 72px);
}
.footer-brand { min-width: 0; }
.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: .7em;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .24em;
  color: var(--ochre-lit);
}
.footer-brand__mark::before { content: ""; width: 26px; height: 1px; flex: none; background: var(--ochre-lit); }
.footer-brand__name {
  margin-bottom: .55em;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--sand);
}
.footer-summary {
  max-width: 44ch;
  font-size: .95rem;
  line-height: 1.82;
  color: var(--mist);
}
.footer-note {
  margin-top: 1.1em;
  padding-left: .9em;
  border-left: 2px solid rgba(50, 242, 198, .6);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(154, 174, 196, .92);
}
.footer-col { min-width: 0; display: grid; align-content: start; }
.footer-col__title {
  margin-bottom: .95em;
  padding-bottom: .7em;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--sand);
  text-transform: uppercase;
}
.footer-nav { min-width: 0; }
.footer-nav__list { display: grid; grid-template-columns: 1fr; gap: .06em; }
.footer-nav__link {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .42em 0;
  font-size: .94rem;
  color: var(--mist);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.footer-nav__link::before {
  content: "";
  width: 10px;
  height: 1px;
  flex: none;
  background: var(--line);
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}
.footer-nav__link:hover { color: var(--sand); padding-left: .32em; }
.footer-nav__link:hover::before { width: 18px; background: var(--pulse); }
.footer-contact { min-width: 0; }
.footer-contact__list { display: grid; gap: .85em; }
.footer-contact__row { display: grid; gap: .1em; }
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .2em;
  color: rgba(154, 174, 196, .74);
  text-transform: uppercase;
}
.footer-contact__value {
  font-family: var(--font-mono);
  font-size: .86rem;
  color: var(--sand);
  word-break: break-word;
}
.footer-contact__value--plain {
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.62;
  color: var(--mist);
}
.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 16px 24px;
  border-top: 1px solid rgba(45, 67, 92, .7);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(154, 174, 196, .85);
}
.footer-copy { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal__link {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-legal__link:hover { color: var(--pulse); border-bottom-color: var(--pulse); }
.footer-icp { color: rgba(154, 174, 196, .7); }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-slice { width: 100%; opacity: .55; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- 9. 分区与章节头 ---------- */
.section {
  position: relative;
  padding-block: clamp(44px, 6vw, 92px);
}
.section--board {
  background: linear-gradient(180deg, rgba(14, 30, 48, .92), rgba(14, 30, 48, .34));
  border-block: 1px solid rgba(45, 67, 92, .55);
}
.section--lake {
  background: linear-gradient(140deg, rgba(18, 57, 92, .85), rgba(8, 20, 33, .18) 72%);
  border-block: 1px solid rgba(45, 67, 92, .5);
}
.section-head {
  display: grid;
  gap: .7em;
  max-width: 64ch;
  margin-bottom: clamp(22px, 3vw, 40px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--pulse);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; flex: none; background: currentColor; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--sand);
}
.section-lead {
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 10. 网格 ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

/* ---------- 11. 面包屑 ---------- */
.crumbs { margin-top: clamp(16px, 2vw, 26px); }
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: rgba(154, 174, 196, .82);
}
.crumbs__item { display: inline-flex; align-items: center; gap: .55em; }
.crumbs__item:not(:last-child)::after { content: "/"; color: var(--line); }
.crumbs__link {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.crumbs__link:hover { color: var(--pulse); border-bottom-color: var(--pulse); }
.crumbs__item[aria-current="page"] { color: var(--sand); }

/* ---------- 12. 正文容器 ---------- */
.prose { max-width: 74ch; color: var(--sand); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.prose h3 { margin-top: 1.6em; color: var(--sand); }
.prose p { line-height: 1.86; color: rgba(241, 233, 221, .9); }
.prose ul, .prose ol { display: grid; gap: .5em; }
.prose li { position: relative; padding-left: 1.4em; color: rgba(241, 233, 221, .88); }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 8px;
  height: 1px;
  background: var(--ochre-lit);
}
.prose a {
  color: var(--pulse);
  border-bottom: 1px solid rgba(50, 242, 198, .42);
  transition: border-color var(--dur) var(--ease);
}
.prose a:hover { border-bottom-color: var(--pulse); }

/* ---------- 13. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .78em 1.35em;
  border: 1px solid var(--line);
  background: rgba(14, 30, 48, .76);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  color: var(--sand);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { background: rgba(166, 61, 43, .24); border-color: var(--ochre-lit); color: #fff; }
.btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ochre), var(--ochre-lit));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 28px -16px rgba(199, 84, 58, .95);
}
.btn--primary:hover { background: linear-gradient(135deg, var(--ochre-lit), var(--ochre)); }
.btn--ghost {
  background: transparent;
  border-color: var(--mist);
  color: var(--sand);
}
.btn--ghost:hover { background: rgba(50, 242, 198, .08); border-color: var(--pulse); color: var(--pulse); }

/* ---------- 14. 数据与索引标记 ---------- */
.index-tag {
  display: inline-flex;
  align-items: center;
  padding: .28em .62em;
  border: 1px solid var(--line);
  background: rgba(18, 57, 92, .7);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--sand);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .32em .78em;
  border: 1px solid var(--line);
  background: rgba(14, 30, 48, .82);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--sand);
}
.chip--pulse {
  color: var(--pulse);
  border-color: rgba(50, 242, 198, .45);
  background: rgba(50, 242, 198, .08);
}
.chip--ochre {
  color: #fff;
  border-color: rgba(199, 84, 58, .8);
  background: rgba(166, 61, 43, .38);
}
.data-value {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--pulse);
}

/* ---------- 15. 图片容器基础（无图状态可用） ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(45, 67, 92, .28) 0 1px, transparent 1px 48px),
    linear-gradient(150deg, var(--lake), var(--board) 78%);
}
.media img,
.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media__label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: .42em .78em;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(8, 20, 33, .88);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--mist);
  text-transform: uppercase;
}
@media (max-width: 620px) {
  .media--wide { aspect-ratio: 16 / 9; }
  .media--portrait { aspect-ratio: 1 / 1; }
}

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

/* ---------- 17. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .status-dot { animation: none; box-shadow: none; }
  .scroll-progress__bar { transition: none; }
  .primary-nav[data-open="true"] { animation: none; }
}
