/* ============================================================
   澳门永信 · 共享样式表  /assets/site.css
   深海蓝 #0B2A45 · 驶舱蓝 #123B5C · 赤金 #C8A24A · 亮金 #E6C97A
   翡翠绿 #1F7A63 · 暖沙 #E8DCC8 · 纸白 #F5F2EC · 墨黑 #10161C
   非对称编辑部版式 · 紧凑命令栏 · 航海图与数据流
   ============================================================ */

/* ---------- 0. 设计令牌 ---------- */
:root {
  --sea: #0B2A45;
  --deck: #123B5C;
  --gold: #C8A24A;
  --gold-light: #E6C97A;
  --gold-mist: #F0E3C2;
  --jade: #1F7A63;
  --jade-light: #2A9C7E;
  --sand: #E8DCC8;
  --paper: #F5F2EC;
  --mist: #7E93A8;
  --ink: #10161C;

  --on-deep: #D6E1EA;
  --on-deep-dim: #93A7B9;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-body: "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, "Courier New", monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 78px;
  --sec-y: clamp(72px, 9vw, 140px);

  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --fast: 180ms;
  --slow: 520ms;
}

@media (max-width: 1080px) {
  :root { --header-h: 64px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

html.nav-open { overflow: hidden; }

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

ul[class],
ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

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

[hidden] { display: none !important; }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 2. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.015em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}

h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.32;
}

h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.55;
}

p { line-height: 1.9; }

a { color: inherit; }

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

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.85;
  color: #3A4A57;
}

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

#main-content { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 20px;
  background: var(--gold-light);
  color: var(--sea);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  border-radius: var(--r-pill);
  transform: translateY(-180%);
  transition: transform var(--fast) var(--ease);
}

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

/* ---------- 4. 命令栏页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--sea);
  background-image: linear-gradient(180deg, #0C2E4B 0%, var(--sea) 100%);
  color: var(--paper);
  border-bottom: 1px solid rgba(200, 162, 74, .38);
}

.site-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(200, 162, 74, .55) 22%, rgba(31, 122, 99, .45) 62%, transparent 100%);
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 44px);
}

/* 品牌 */
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}

.brand__glyph {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(200, 162, 74, .85);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(230, 201, 122, .9) 0 1.6px, transparent 1.6px);
}

.brand__glyph::before,
.brand__glyph::after {
  content: "";
  position: absolute;
  background: var(--gold);
  opacity: .85;
}

.brand__glyph::before {
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 1px;
  transform: translateX(-50%);
}

.brand__glyph::after {
  top: 50%;
  left: 6px;
  right: 6px;
  height: 1px;
  transform: translateY(-50%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: .14em;
  color: var(--paper);
}

.brand__tag {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .2em;
  color: var(--on-deep-dim);
  white-space: nowrap;
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  background: transparent;
  border: 1px solid rgba(200, 162, 74, .45);
  border-radius: var(--r-pill);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--fast) var(--ease), top var(--fast) var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* 主导航 */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 28px);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.4vw, 22px);
}

.site-nav__list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 2px 14px;
  color: var(--on-deep);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--fast) var(--ease);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 26px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--fast) var(--ease);
}

.site-nav__list a::before {
  content: "";
  position: absolute;
  left: 32px;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--jade-light);
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible { color: var(--gold-light); }

.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after { transform: scaleX(1); }

.site-nav__list a[aria-current="page"] {
  color: var(--gold-light);
}

.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__list a[aria-current="page"]::before { opacity: 1; }

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--mist);
  transition: color var(--fast) var(--ease);
}

.site-nav__list a:hover .site-nav__idx,
.site-nav__list a[aria-current="page"] .site-nav__idx { color: var(--gold); }

.nav-entry {
  flex: 0 0 auto;
  padding: 9px 17px;
  border: 1px solid rgba(200, 162, 74, .5);
  border-radius: var(--r-pill);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.nav-entry:hover,
.nav-entry:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--sea);
}

/* 移动端索引面板 */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 26px var(--gutter) 48px;
    background: linear-gradient(180deg, #0B2A45 0%, #123B5C 100%);
    border-top: 1px solid rgba(200, 162, 74, .35);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s linear var(--fast);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list li {
    border-bottom: 1px solid rgba(126, 147, 168, .22);
  }

  .site-nav__list a {
    width: 100%;
    padding: 17px 0;
    font-size: 19px;
    color: var(--paper);
  }

  .site-nav__list a::after { bottom: 12px; }
  .site-nav__list a::before { bottom: 11px; }

  .site-nav__idx { font-size: 12px; }

  .nav-entry {
    align-self: flex-start;
    margin-top: 30px;
    padding: 13px 26px;
    font-size: 13px;
  }
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 132px);
  background: var(--sea);
  color: var(--on-deep);
  border-top: 1px solid rgba(200, 162, 74, .42);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 320px at 88% 0%, rgba(31, 122, 99, .22), transparent 70%),
    radial-gradient(560px 280px at 4% 100%, rgba(200, 162, 74, .13), transparent 72%);
}

.footer-top {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(36px, 4vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 60px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: .12em;
  color: var(--paper);
}

.footer-brand__tag {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--gold);
}

.footer-brand__note {
  margin-top: 18px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--on-deep-dim);
}

.footer-col { position: relative; }

.footer-col__heading {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200, 162, 74, .28);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--mist);
}

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

.footer-col__list a {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  color: var(--on-deep);
  font-size: 14.5px;
  text-decoration: none;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.footer-col__line {
  margin-bottom: 9px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--on-deep);
  overflow-wrap: anywhere;
}

.footer-base {
  position: relative;
  border-top: 1px solid rgba(126, 147, 168, .22);
}

.footer-base__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 20px var(--gutter) 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  font-size: 12.5px;
  color: var(--mist);
}

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

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- 6. 版式容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: 68ch;
}

.prose p { margin-bottom: 1.4em; }
.prose p:last-child { margin-bottom: 0; }

.prose h2,
.prose h3 { margin: 2em 0 .7em; }

.prose a {
  color: var(--sea);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 162, 74, .75);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.prose a:hover,
.prose a:focus-visible {
  color: var(--jade);
  border-bottom-color: var(--jade);
}

.section {
  padding-block: var(--sec-y);
}

.section--deep {
  background: var(--sea);
  color: var(--on-deep);
}

.section--deep h1,
.section--deep h2,
.section--deep h3 { color: var(--paper); }

.section--sand {
  background: var(--sand);
  color: var(--ink);
}

.section__head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(32px, 4vw, 60px);
}

.section__title { color: var(--sea); }

.section--deep .section__title { color: var(--paper); }

.section__note {
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.85;
  color: #55636E;
}

.section--deep .section__note { color: var(--on-deep-dim); }

.grid {
  display: grid;
  gap: clamp(22px, 2.8vw, 42px);
}

.grid--editorial {
  grid-template-columns: minmax(170px, 3fr) minmax(0, 9fr);
  align-items: start;
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.col-note { display: grid; gap: 16px; }
.col-main { min-width: 0; }

@media (max-width: 900px) {
  .grid--editorial { grid-template-columns: 1fr; }
}

.annote {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .24em;
  color: var(--gold);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--gold);
}

.section--deep .eyebrow { color: var(--gold-light); }

@media (max-width: 720px) {
  .annote {
    writing-mode: horizontal-tb;
    letter-spacing: .2em;
  }
}

.index-big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 128px);
  line-height: .88;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 162, 74, .7);
  text-stroke: 1px rgba(200, 162, 74, .7);
  font-variant-numeric: tabular-nums;
}

.index-big--solid {
  color: var(--gold);
  -webkit-text-stroke: 0;
  text-stroke: 0;
}

.section--deep .index-big {
  -webkit-text-stroke-color: rgba(230, 201, 122, .75);
  text-stroke-color: rgba(230, 201, 122, .75);
}

.rule {
  height: 1px;
  margin: clamp(30px, 4vw, 56px) 0;
  border: 0;
  background: currentColor;
  opacity: .18;
}

.stack {
  display: grid;
  gap: clamp(14px, 2vw, 26px);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

/* ---------- 7. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 27px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
              border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: var(--sea);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--gold-light);
  transform: translateY(-1px);
}

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

.btn--jade:hover,
.btn--jade:focus-visible {
  background: var(--jade-light);
  transform: translateY(-1px);
}

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

.btn--ink:hover,
.btn--ink:focus-visible {
  background: var(--deck);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(200, 162, 74, .55);
  color: var(--gold);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(200, 162, 74, .12);
  border-color: var(--gold);
  color: var(--sea);
}

.section--deep .btn--ghost { color: var(--gold-light); }

.crumbs {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--mist);
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crumbs__list li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(126, 147, 168, .7);
}

.crumbs a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.card {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--paper);
  border: 1px solid rgba(16, 22, 28, .1);
  border-radius: var(--r-lg);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: var(--gold);
  background: #FBF9F4;
  transform: translateY(-2px);
}

.card--tint {
  background: var(--gold-mist);
  border-color: rgba(200, 162, 74, .35);
}

.card--deep {
  background: var(--deck);
  border-color: rgba(200, 162, 74, .28);
  color: var(--on-deep);
}

.card--deep:hover,
.card--deep:focus-within { background: #16456A; }

.card__title {
  margin-bottom: 10px;
  color: var(--sea);
}

.card--deep .card__title { color: var(--paper); }

.card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mist);
}

.tag {
  display: inline-block;
  padding: 5px 13px;
  background: var(--gold-mist);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--sea);
}

.section--deep .tag {
  background: rgba(200, 162, 74, .18);
  color: var(--gold-light);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  vertical-align: middle;
}

.status-dot--gold { background: var(--gold); }
.status-dot--mist { background: var(--mist); }

.table-zebra {
  border: 1px solid rgba(16, 22, 28, .1);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.table-zebra th {
  background: var(--deck);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-align: left;
}

.table-zebra th,
.table-zebra td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(16, 22, 28, .08);
  font-size: 14.5px;
}

.table-zebra tbody tr:nth-child(even) { background: var(--gold-mist); }

.table-zebra tbody tr {
  transition: background var(--fast) var(--ease);
}

.table-zebra tbody tr:hover { background: #E9D8AF; }

/* 图片容器基础规则（页面阶段放置 img / svg） */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--deck);
  aspect-ratio: 16 / 10;
}

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

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media--contour {
  background-color: var(--sea);
  background-image:
    radial-gradient(circle at 30% 72%, rgba(31, 122, 99, .38), transparent 56%),
    radial-gradient(circle at 78% 20%, rgba(200, 162, 74, .24), transparent 60%),
    repeating-radial-gradient(circle at 22% 30%, rgba(126, 147, 168, .16) 0 1px, transparent 1px 26px);
}

.media__caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--mist);
}

.section--deep .media__caption { color: var(--on-deep-dim); }

.media__badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 14px;
  background: rgba(11, 42, 69, .82);
  border: 1px solid rgba(200, 162, 74, .55);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold-light);
}

/* ---------- 8. 滚动显现（JS 协议） ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 9. 章节索引导航基础态 ---------- */
[data-toc] a[aria-current="true"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.section--deep [data-toc] a[aria-current="true"] { color: var(--gold-light); }
