/* ============================================================
   欧宝看台 · 共享样式 /assets/site.css
   夜空深靛底色 + 藏红/琥珀金锚点 + 极细高原脊线边界
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --night: #0A1024;
  --rock: #121A33;
  --rock-deep: #0E1630;
  --ridge: #1F2A4D;
  --snow: #E9EEF8;
  --mist: #9AA9C6;
  --red: #D7263D;
  --red-deep: #8C1B2E;
  --amber: #F2A93B;
  --teal: #2FBFA6;
  --paper: #F4F6FB;
  --ink: #121A33;

  --shell: 1240px;
  --wide: 1440px;
  --gutter: clamp(1.1rem, 3vw, 2.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px -30px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.22, .61, .36, 1);

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

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    radial-gradient(rgba(154, 169, 198, .09) 1px, transparent 1.4px),
    radial-gradient(70% 45% at 86% -8%, rgba(215, 38, 61, .18), transparent 62%),
    radial-gradient(58% 40% at 4% 2%, rgba(47, 191, 166, .12), transparent 60%);
  background-size: 26px 26px, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
  color: var(--snow);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 900; letter-spacing: -.02em; line-height: 1.16; color: var(--snow); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.02rem; letter-spacing: 0; }
p { color: var(--snow); }
p + p { margin-top: 1rem; }
strong, b { font-weight: 700; }
::selection { background: rgba(215, 38, 61, .55); color: #fff; }

.display {
  font-weight: 900;
  letter-spacing: -.03em;
  font-size: clamp(2.75rem, 8vw, 5.75rem);
  line-height: .98;
  transform: skewX(-1.5deg);
}

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -140px;
  left: var(--gutter);
  z-index: 200;
  padding: .6rem 1.1rem;
  border-radius: 10px;
  background: var(--amber);
  color: var(--night);
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: .7rem; }

.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;
}

/* ---------- 5. 布局容器与节奏 ---------- */
.container { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.container--wide { width: min(100% - (var(--gutter) * 1.4), var(--wide)); margin-inline: auto; }

.section { position: relative; padding: clamp(2.4rem, 5.5vw, 4.6rem) 0; }
.section--tight { padding: clamp(1.6rem, 3.5vw, 2.6rem) 0; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ridge) 16%, var(--ridge) 84%, transparent);
}

.prose { max-width: 68ch; }
.prose--center { margin-inline: auto; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.muted { color: var(--mist); }
.note { font-size: 13.5px; color: var(--mist); }
.accent-red { color: var(--red); }
.accent-amber { color: var(--amber); }
.accent-teal { color: var(--teal); }

.grid { display: grid; gap: clamp(.9rem, 2vw, 1.4rem); }
.grid--split { display: grid; gap: clamp(1rem, 3vw, 2rem); }

@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); align-items: start; }
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .62rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(215, 38, 61, .95);
}
.btn-primary:hover { background: linear-gradient(135deg, #E33C52, var(--red)); }

.btn-amber {
  background: linear-gradient(135deg, var(--amber), #D98C1F);
  color: var(--night);
  box-shadow: 0 12px 26px -16px rgba(242, 169, 59, .95);
}

.btn-ghost {
  background: rgba(18, 26, 51, .75);
  border-color: var(--ridge);
  color: var(--snow);
}
.btn-ghost:hover { border-color: rgba(215, 38, 61, .7); background: rgba(31, 42, 77, .8); }

/* ---------- 7. 头部：数据轨 + 悬浮胶囊浮岛 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 16, 36, .9);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(31, 42, 77, .9);
}
@supports not (backdrop-filter: blur(2px)) {
  .site-header { background: rgba(10, 16, 36, .98); }
}

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(31, 42, 77, .9);
  overflow: hidden;
}
.read-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red), var(--amber));
  transition: transform .12s linear;
}

.header-rail {
  border-bottom: 1px solid rgba(31, 42, 77, .7);
  background: linear-gradient(90deg, rgba(215, 38, 61, .16), transparent 46%, rgba(47, 191, 166, .14));
}
.rail-inner {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .42rem 0;
  font-size: 12.5px;
  color: var(--mist);
}
.rail-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  color: var(--mist);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 191, 166, .18);
  animation: dotPulse 2.6s ease-in-out infinite;
  flex: 0 0 7px;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47, 191, 166, .18); }
  50% { box-shadow: 0 0 0 7px rgba(47, 191, 166, .04); }
}
.rail-links { display: flex; align-items: center; gap: 1.1rem; }
.rail-link {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.rail-link:hover { color: var(--snow); border-color: var(--red); }

.header-island {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
  padding: .55rem 0 .8rem;
}
.island-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .42rem .5rem .42rem .95rem;
  border: 1px solid var(--ridge);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 26, 51, .96), rgba(14, 22, 48, .92));
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, .98), inset 0 1px 0 rgba(233, 238, 248, .05);
}

/* 品牌 */
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--snow); flex: 0 0 auto; }
.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: linear-gradient(140deg, var(--amber), var(--red) 62%, var(--red-deep));
  clip-path: polygon(0 0, 68% 0, 100% 32%, 100% 100%, 0 100%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 7px;
  width: 13px;
  height: 2px;
  background: rgba(10, 16, 36, .8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-name { font-weight: 900; font-size: 1.06rem; letter-spacing: -.02em; transform: skewX(-1.5deg); }
.brand-tag { font-size: 11.5px; color: var(--mist); letter-spacing: .02em; }

/* 导航 */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border: 1px solid var(--ridge);
  border-radius: 999px;
  background: rgba(31, 42, 77, .7);
  color: var(--snow);
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.nav-toggle:hover { border-color: rgba(215, 38, 61, .6); }
.nav-toggle-label { font-size: 13.5px; font-weight: 600; letter-spacing: .04em; }
.nav-toggle-bars { position: relative; width: 16px; height: 10px; flex: 0 0 16px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--snow);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.site-header[data-open] .nav-toggle { border-color: rgba(215, 38, 61, .75); background: rgba(215, 38, 61, .18); }
.site-header[data-open] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); background: var(--red); }
.site-header[data-open] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); background: var(--red); }

.site-nav { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-link {
  display: inline-block;
  padding: .5rem .85rem;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--mist);
  transition: color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.nav-link:hover { color: var(--snow); background: rgba(31, 42, 77, .78); }
.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(215, 38, 61, .18);
  box-shadow: inset 0 0 0 1px rgba(215, 38, 61, .6);
}
.header-cta { white-space: nowrap; }

@media (max-width: 899px) {
  .brand-tag { display: none; }
}

@media (max-width: 999px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + .55rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    margin-left: 0;
    padding: .7rem;
    border: 1px solid var(--ridge);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--rock), var(--rock-deep));
    box-shadow: var(--shadow-soft);
    z-index: 6;
  }
  .site-header[data-open] .site-nav {
    display: flex;
    animation: panelIn .18s var(--ease);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-link { display: block; padding: .7rem .85rem; border-radius: 12px; font-size: 16px; }
  .header-cta { width: 100%; margin-top: .35rem; }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  background: linear-gradient(180deg, #0A1024 0%, #070B19 100%);
  border-top: 1px solid var(--ridge);
}
.footer-ridge {
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--amber) 44%, var(--teal) 100%);
  opacity: .85;
}
.footer-inner {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.2rem) 0 1.4rem;
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.4rem);
}
.footer-top { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); }
}

.footer-brand { display: flex; flex-direction: column; gap: .85rem; max-width: 40ch; }
.footer-brand .brand-name { font-size: 1.15rem; }
.footer-note { font-size: 14px; color: var(--mist); }

.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
@media (min-width: 680px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.footer-col { display: flex; flex-direction: column; }
.footer-col-title {
  position: relative;
  margin-bottom: .7rem;
  padding-left: .8rem;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--mist);
}
.footer-col-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 2px;
  background: var(--red);
}
.footer-links { display: flex; flex-direction: column; gap: .2rem; }
.footer-link {
  display: inline-block;
  padding: .24rem 0;
  font-size: 15px;
  color: var(--snow);
  opacity: .82;
  border-bottom: 1px solid transparent;
  transition: opacity .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.footer-link:hover { opacity: 1; color: #fff; border-color: var(--red); }

.footer-contact {
  position: relative;
  display: grid;
  gap: .55rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid var(--ridge);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 26, 51, .95), rgba(14, 22, 48, .9));
}
.footer-contact::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(225deg, rgba(242, 169, 59, .95), rgba(215, 38, 61, .8));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  border-top-right-radius: var(--radius);
}
@media (min-width: 760px) {
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.contact-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; }
.contact-label {
  min-width: 5em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}
.contact-value { font-size: 15px; color: var(--snow); }
.contact-note {
  grid-column: 1 / -1;
  padding-top: .7rem;
  border-top: 1px solid rgba(31, 42, 77, .8);
  font-size: 13px;
  color: var(--mist);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--ridge);
  font-size: 13px;
  color: var(--mist);
}
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; color: var(--mist); }
.icp {
  padding: .15rem .5rem;
  border: 1px solid var(--ridge);
  border-radius: 6px;
  font-family: var(--font-mono);
  color: var(--mist);
}
.footer-meta { font-size: 12.5px; color: var(--mist); }

/* ---------- 9. 章节体系 ---------- */
.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(.8rem, 2vw, 1.6rem);
  align-items: end;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}
.sec-num {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: .85;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(215, 38, 61, .85);
  transform: skewX(-1.5deg);
  transition: color .3s var(--ease), -webkit-text-stroke-color .3s var(--ease);
}
[data-section].is-current .sec-num { color: var(--red); -webkit-text-stroke-color: var(--red); }
.sec-kicker {
  margin-bottom: .35rem;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--mist);
}
.sec-title { font-size: clamp(1.4rem, 3vw, 2rem); }
.sec-sub { margin-top: .4rem; max-width: 60ch; color: var(--mist); }

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 10. 卡片 / 数据 / 状态 ---------- */
.card {
  position: relative;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--ridge);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 26, 51, .95), rgba(14, 22, 48, .9));
  box-shadow: var(--shadow-soft);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.card:hover { border-color: rgba(215, 38, 61, .7); }
.card--fold {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.card--pulse::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-image: linear-gradient(90deg, transparent, var(--teal), transparent);
  background-size: 42% 100%;
  background-repeat: no-repeat;
  animation: pulseRun 3s linear infinite;
}
@keyframes pulseRun {
  0% { background-position: -45% 0; }
  100% { background-position: 145% 0; }
}
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .8rem; }
.card-title { font-size: 1.05rem; font-weight: 700; }
.card-note { font-size: 13px; color: var(--mist); }

.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: .02em;
  color: var(--amber);
}
.stat-label { font-size: 13px; color: var(--mist); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem;
  border: 1px solid var(--ridge);
  border-radius: 6px;
  background: rgba(18, 26, 51, .8);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--mist);
}
.tag--red { color: #FFD9DE; border-color: rgba(215, 38, 61, .6); background: rgba(215, 38, 61, .16); }
.tag--amber { color: #FFE9C6; border-color: rgba(242, 169, 59, .55); background: rgba(242, 169, 59, .14); }
.tag--teal { color: #CFF7EF; border-color: rgba(47, 191, 166, .5); background: rgba(47, 191, 166, .14); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  border: 1px solid var(--ridge);
  border-radius: 999px;
  background: rgba(18, 26, 51, .7);
  font-size: 13px;
  color: var(--mist);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.chip:hover { color: var(--snow); border-color: rgba(215, 38, 61, .6); }
.chip[aria-pressed="true"] {
  color: #fff;
  background: rgba(215, 38, 61, .18);
  border-color: rgba(215, 38, 61, .75);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--ridge);
}
.tab {
  padding: .45rem .9rem;
  border-radius: 999px 999px 0 0;
  font-size: 14px;
  color: var(--mist);
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.tab:hover { color: var(--snow); }
.tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(215, 38, 61, .22), transparent);
  box-shadow: inset 0 -2px 0 var(--red);
}

/* ---------- 11. 表格 ---------- */
.data-table { width: 100%; font-size: 15px; }
.data-table th {
  padding: .6rem .75rem;
  text-align: left;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--mist);
  border-bottom: 1px solid var(--ridge);
}
.data-table td {
  padding: .7rem .75rem;
  color: var(--snow);
  border-bottom: 1px solid rgba(31, 42, 77, .55);
}
.data-table tbody tr:hover { background: rgba(31, 42, 77, .35); }
.data-table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- 12. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mist);
}
.crumbs a { color: var(--mist); border-bottom: 1px solid transparent; transition: color .18s var(--ease), border-color .18s var(--ease); }
.crumbs a:hover { color: var(--snow); border-color: var(--red); }
.crumb-sep { color: var(--ridge); }
.crumbs [aria-current="page"] { color: var(--snow); }

/* ---------- 13. 图片容器（供页面阶段放置占位） ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ridge);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(31, 42, 77, .55), rgba(10, 16, 36, .95)),
    repeating-linear-gradient(135deg, rgba(154, 169, 198, .06) 0 2px, transparent 2px 12px);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--fold {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.media-caption { margin-top: .6rem; font-size: 13px; color: var(--mist); }

/* ---------- 14. 浅色阅读区（条款与说明） ---------- */
.panel-light {
  padding: clamp(1.4rem, 3vw, 2.6rem);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.panel-light h2,
.panel-light h3,
.panel-light h4,
.panel-light p,
.panel-light li,
.panel-light td,
.panel-light th { color: var(--ink); }
.panel-light .note { color: #5A6580; }
.panel-light .data-table th { color: #5A6580; border-bottom-color: #D6DDEC; }
.panel-light .data-table td { color: var(--ink); border-bottom-color: #E2E8F4; }

/* ---------- 15. 动效克制与降级 ---------- */
@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; }
  .read-progress-fill { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- 16. 窄屏收束 ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .rail-inner { justify-content: center; }
  .rail-links { display: none; }
  .island-inner { padding-left: .8rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: .3rem; align-items: start; }
  .sec-num { font-size: clamp(2.4rem, 14vw, 3.2rem); }
}
