/* ============================================================
   开元财神捕鱼 · 共享样式表  /assets/site.css
   深海墨蓝基底 · 鎏金为光 · 珊瑚橙与青玉绿点灯
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
}
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #071A2F;
  --ink-layer: #0E2C4A;
  --ink-deep: #05121F;
  --gold: #E8B54A;
  --gold-light: #F6D98A;
  --coral: #FF7A45;
  --jade: #2FBFA0;
  --paper: #F5EEE1;
  --soot: #1B1A17;
  --neon: #6FE3FF;
  --silver: #C9D2DC;
  --text-on-ink: #E8EDF3;
  --text-mute: rgba(232, 237, 243, 0.68);
  --text-dim: rgba(201, 210, 220, 0.55);

  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Noto Sans Mono", "Courier New", monospace;

  --wrap: 1120px;
  --wrap-narrow: 720px;
  --radius-organic: 22px 8px 22px 8px;
  --radius-soft: 16px 6px 18px 8px;
  --line-hair: rgba(201, 210, 220, 0.18);
  --line-gold: rgba(232, 181, 74, 0.42);
  --shadow-deep: 0 26px 60px -34px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: 0.015em;
  background-color: var(--ink);
  color: var(--text-on-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(30px, 4.8vw, 58px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
h4 { font-size: 17px; }
#main-content { display: block; }
#main-content:focus { outline: none; }

/* ---------- 4. 工具类 ---------- */
.wrap {
  width: min(var(--wrap), 92vw);
  margin-inline: auto;
}
.wrap--narrow {
  width: min(var(--wrap-narrow), 92vw);
  margin-inline: auto;
}
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--paper { background: var(--paper); color: var(--soot); }
.section--ink { background: var(--ink-layer); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
}
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 999;
  padding: 12px 22px;
  transform: translate(-50%, -130%);
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  color: #2A1B05;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 0 0 14px 14px;
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--text-on-ink);
  background:
    radial-gradient(120% 200% at 12% -60%, rgba(47, 191, 160, 0.20), transparent 62%),
    radial-gradient(110% 190% at 88% -50%, rgba(255, 122, 69, 0.16), transparent 64%),
    linear-gradient(180deg, #06182C 0%, #08203A 62%, #0B2946 100%);
  border-bottom: 1px solid var(--line-gold);
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, 0.98);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(201, 210, 220, 0.12) 0 1px,
    transparent 1px 7px
  );
}
.masthead {
  position: relative;
  z-index: 1;
  display: grid;
  padding-top: 16px;
}
.masthead__utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  transition: padding 0.28s var(--ease);
}
.masthead__kicker {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.masthead__search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 6px 14px;
  border: 1px solid var(--line-hair);
  border-radius: 999px;
  background: rgba(7, 26, 47, 0.72);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease),
    background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.masthead__search::before {
  content: "\25CE";
  color: var(--neon);
  font-size: 13px;
  line-height: 1;
}
.masthead__search:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(232, 181, 74, 0.10);
  box-shadow: 0 0 0 3px rgba(232, 181, 74, 0.08);
}
.masthead__center {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px 0 12px;
  text-align: center;
  transition: padding 0.28s var(--ease);
}
.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.masthead__seal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px 4px 12px 4px;
  background: linear-gradient(148deg, var(--gold-light) 0%, var(--gold) 52%, #A9762A 100%);
  color: #34230A;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(246, 217, 138, 0.55), 0 10px 26px -12px rgba(232, 181, 74, 0.85);
  transition: width 0.28s var(--ease), height 0.28s var(--ease),
    flex-basis 0.28s var(--ease), font-size 0.28s var(--ease);
}
.masthead__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4.3vw, 44px);
  line-height: 1.05;
  letter-spacing: 0.07em;
  color: var(--paper);
  text-shadow:
    1px 0 0 rgba(232, 181, 74, 0.75),
    -1px 0 0 rgba(232, 181, 74, 0.75),
    0 1px 0 rgba(232, 181, 74, 0.75),
    0 -1px 0 rgba(232, 181, 74, 0.75),
    0 0 24px rgba(232, 181, 74, 0.45);
  transition: font-size 0.28s var(--ease), color 0.24s var(--ease);
}
.masthead__brand:hover .masthead__wordmark { color: #FFFFFF; }
.masthead__tagline {
  max-height: 32px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  transition: opacity 0.25s var(--ease), max-height 0.25s var(--ease);
}
.masthead__navrow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2px;
}
.masthead__navrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 181, 74, 0.55),
    rgba(111, 227, 255, 0.35),
    rgba(232, 181, 74, 0.55),
    transparent
  );
}
.site-nav { width: 100%; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.site-nav__list a {
  display: block;
  padding: 13px 17px;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(232, 237, 243, 0.76);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.24s var(--ease);
}
.site-nav__list a:hover {
  color: var(--gold-light);
  background: rgba(232, 181, 74, 0.10);
}
.site-nav__list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  box-shadow: 0 8px 22px -14px rgba(232, 181, 74, 0.95);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  padding: 10px 18px;
  border: 1px solid var(--line-hair);
  border-radius: 999px;
  background: rgba(7, 26, 47, 0.78);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold-light); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.site-header[data-open="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.site-header[data-open="true"] .nav-toggle { border-color: var(--jade); color: var(--jade); }
.nav-toggle__label { line-height: 1; }
.progress-rail {
  position: relative;
  height: 2px;
  background: rgba(201, 210, 220, 0.12);
  overflow: hidden;
}
.progress-rail__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--jade), var(--gold-light), var(--coral));
  box-shadow: 0 0 12px rgba(232, 181, 74, 0.7);
}
.site-header[data-shrunk="true"] .masthead { padding-top: 8px; }
.site-header[data-shrunk="true"] .masthead__utility { padding-bottom: 2px; }
.site-header[data-shrunk="true"] .masthead__center { padding: 2px 0 6px; gap: 0; }
.site-header[data-shrunk="true"] .masthead__tagline {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}
.site-header[data-shrunk="true"] .masthead__wordmark { font-size: clamp(20px, 2.6vw, 26px); }
.site-header[data-shrunk="true"] .masthead__seal {
  width: 30px; height: 30px; flex-basis: 30px; font-size: 16px;
}
.site-header[data-shrunk="true"] .site-nav__list a { padding: 10px 15px; }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(232, 237, 243, 0.78);
  background:
    radial-gradient(100% 150% at 8% 0%, rgba(47, 191, 160, 0.18), transparent 60%),
    radial-gradient(90% 140% at 94% 4%, rgba(255, 122, 69, 0.14), transparent 62%),
    linear-gradient(180deg, #0B2946 0%, #071A2F 46%, #050F1B 100%);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  pointer-events: none;
  opacity: 0.38;
  transform: rotate(-13deg);
  background-image:
    radial-gradient(circle, rgba(111, 227, 255, 0.30) 0 2px, transparent 2px),
    radial-gradient(circle, rgba(232, 181, 74, 0.22) 0 2.5px, transparent 2.5px);
  background-size: 110px 74px, 168px 120px;
  background-position: 0 0, 56px 38px;
  animation: footer-drift 72s linear infinite;
}
@keyframes footer-drift {
  from { background-position: 0 0, 56px 38px; }
  to { background-position: 220px 148px, -56px -82px; }
}
.site-footer__glint {
  position: relative;
  z-index: 1;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--jade),
    var(--gold-light) 28%,
    var(--gold) 52%,
    var(--coral) 78%,
    var(--jade)
  );
  opacity: 0.9;
}
.site-footer__inner {
  position: relative;
  z-index: 1;
  padding: 56px 0 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: 38px 34px;
}
.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}
.footer-brand__seal {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 10px 3px 10px 3px;
  background: linear-gradient(148deg, var(--gold-light), var(--gold) 58%, #A9762A);
  color: #34230A;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}
.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0.08em;
}
.footer-brand__text {
  margin-top: 16px;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(232, 237, 243, 0.62);
}
.footer-col__title {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.footer-col__list li + li { margin-top: 9px; }
.footer-col__list a {
  font-size: 14.5px;
  letter-spacing: 0.03em;
  color: rgba(232, 237, 243, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-col__list a:hover {
  color: var(--jade);
  border-bottom-color: rgba(47, 191, 160, 0.6);
}
.footer-col__list--plain li {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(232, 237, 243, 0.66);
  word-break: break-word;
}
.footer-col__list--plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 1px;
  background: var(--coral);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: 46px;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(201, 210, 220, 0.14);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.site-footer__legal a {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 210, 220, 0.3);
}
.site-footer__legal a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.24s var(--ease),
    background 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.btn--gold {
  color: #2A1B05;
  background: linear-gradient(120deg, var(--gold-light) 0%, var(--gold) 60%, #D09A2C 100%);
  box-shadow: 0 14px 32px -18px rgba(232, 181, 74, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -18px rgba(232, 181, 74, 1);
}
.btn--ghost {
  color: var(--paper);
  background: rgba(14, 44, 74, 0.55);
  border-color: rgba(201, 210, 220, 0.34);
}
.btn--ghost:hover {
  color: var(--jade);
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(47, 191, 160, 0.12);
}
.btn--coral {
  color: #2B0E02;
  background: linear-gradient(120deg, #FF9A6B, var(--coral));
  box-shadow: 0 14px 32px -20px rgba(255, 122, 69, 0.95);
}
.btn--coral:hover { transform: translateY(-2px); }

/* ---------- 9. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 1px solid rgba(201, 210, 220, 0.3);
  border-radius: 999px;
  color: var(--silver);
  background: rgba(14, 44, 74, 0.5);
}
.tag--gold {
  border-color: rgba(232, 181, 74, 0.6);
  color: var(--gold-light);
  background: rgba(232, 181, 74, 0.12);
}
.tag--coral {
  border-color: rgba(255, 122, 69, 0.6);
  color: #FFB495;
  background: rgba(255, 122, 69, 0.14);
}
.tag--jade {
  border-color: rgba(47, 191, 160, 0.6);
  color: #7FE3CB;
  background: rgba(47, 191, 160, 0.14);
}

/* ---------- 10. 章节刻度 ---------- */
.chapter-marker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.chapter-marker__num { color: var(--gold-light); }
.chapter-marker__line {
  flex: 1 1 auto;
  max-width: 220px;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 181, 74, 0.7), rgba(232, 181, 74, 0));
}

/* ---------- 11. 面板 ---------- */
.panel {
  position: relative;
  padding: 26px 26px 28px;
  border: 1px solid var(--line-hair);
  border-radius: var(--radius-organic);
  background: linear-gradient(160deg, rgba(14, 44, 74, 0.92), rgba(7, 26, 47, 0.94));
  box-shadow: var(--shadow-deep);
}
.panel--paper {
  color: var(--soot);
  background: var(--paper);
  border-color: rgba(27, 26, 23, 0.12);
}
.panel--tick::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(201, 210, 220, 0.16);
  border-radius: 14px 6px 14px 6px;
  pointer-events: none;
}
.panel--paper.panel--tick::after { border-color: rgba(27, 26, 23, 0.16); }

/* ---------- 12. 框景图片容器 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(232, 181, 74, 0.32);
  border-radius: var(--radius-organic);
  background:
    repeating-linear-gradient(128deg, rgba(201, 210, 220, 0.07) 0 2px, transparent 2px 9px),
    linear-gradient(158deg, #0E2C4A, #071A2F 70%);
  box-shadow: var(--shadow-deep);
}
.img-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 2;
  border: 1px dashed rgba(232, 181, 74, 0.28);
  border-radius: 15px 5px 15px 5px;
  pointer-events: none;
}
.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--auto { aspect-ratio: auto; }
.img-frame__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  background: rgba(5, 18, 31, 0.84);
  border: 1px solid rgba(232, 181, 74, 0.45);
  border-radius: 999px;
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.breadcrumb a { color: var(--silver); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb__sep { color: rgba(232, 181, 74, 0.6); }
.breadcrumb [aria-current="page"] { color: var(--gold); }

/* ---------- 14. 长文排版 ---------- */
.prose {
  max-width: 42em;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--soot);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.15em;
  top: 0.85em;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
}
.prose ol { list-style: decimal; }
.prose ol li::marker {
  font-family: var(--font-mono);
  color: var(--coral);
}
.prose a {
  color: #14604F;
  text-decoration: underline;
  text-decoration-color: rgba(47, 191, 160, 0.5);
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--coral); }
.prose--dark { color: var(--text-on-ink); }
.prose--dark a { color: var(--jade); }

/* ---------- 15. 数据表 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.data-table caption {
  caption-side: top;
  padding-bottom: 10px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-hair);
}
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--silver);
  background: rgba(14, 44, 74, 0.55);
  border-bottom: 1px solid rgba(232, 181, 74, 0.45);
}
.data-table tbody tr:hover { background: rgba(232, 181, 74, 0.06); }
.data-table .num {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--gold-light);
  white-space: nowrap;
}

/* ---------- 16. 折叠内容组 ---------- */
.accordion {
  overflow: hidden;
  border: 1px solid var(--line-hair);
  border-radius: var(--radius-soft);
  background: rgba(14, 44, 74, 0.45);
}
.accordion + .accordion { margin-top: 10px; }
.accordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-on-ink);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.accordion__head:hover {
  color: var(--gold-light);
  background: rgba(232, 181, 74, 0.07);
}
.accordion__sign {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(201, 210, 220, 0.4);
  border-radius: 6px;
}
.accordion__sign::before,
.accordion__sign::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}
.accordion__sign::before { left: 4px; right: 4px; top: 9px; height: 1.5px; }
.accordion__sign::after { top: 4px; bottom: 4px; left: 9px; width: 1.5px; }
.accordion[data-open="true"] .accordion__sign::after {
  transform: scaleY(0);
  opacity: 0;
}
.accordion[data-open="true"] .accordion__head { color: var(--gold-light); }
.accordion__body {
  display: none;
  padding: 16px 20px 18px;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(232, 237, 243, 0.78);
  border-top: 1px solid rgba(201, 210, 220, 0.14);
}
.accordion[data-open="true"] .accordion__body {
  display: block;
  animation: panel-in 0.28s var(--ease) both;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 17. 关数区间阶梯 ---------- */
.stair-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line-hair);
  border-radius: 18px 6px 18px 6px;
  background: rgba(14, 44, 74, 0.5);
}
.stair-nav__item {
  flex: 1 1 auto;
  min-width: 96px;
  padding: 12px 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--silver);
  background: rgba(7, 26, 47, 0.7);
  border: 1px solid transparent;
  border-radius: 12px 4px 12px 4px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.stair-nav__item:hover {
  color: var(--gold-light);
  border-color: rgba(232, 181, 74, 0.5);
  transform: translateY(-2px);
}
.stair-nav__item[aria-selected="true"],
.stair-nav__item[data-active="true"] {
  color: #04241C;
  font-weight: 700;
  background: linear-gradient(140deg, #79E7C6, var(--jade));
  border-color: rgba(47, 191, 160, 0.7);
  box-shadow: 0 10px 24px -16px rgba(47, 191, 160, 0.95);
}

/* ---------- 18. 筛选标签 ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 8px 15px;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--silver);
  background: transparent;
  border: 1px solid rgba(201, 210, 220, 0.34);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold-light); }
.chip[aria-pressed="true"] {
  color: #2A1B05;
  font-weight: 700;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  border-color: var(--coral);
  box-shadow: 0 0 0 2px rgba(255, 122, 69, 0.35);
}

/* ---------- 19. 锚点索引 ---------- */
.anchor-index {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.anchor-index a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.anchor-index a::before {
  content: "";
  width: 10px;
  height: 1px;
  background: currentColor;
  transition: width 0.24s var(--ease);
}
.anchor-index a:hover { color: var(--gold-light); }
.anchor-index a[aria-current="true"] { color: var(--jade); }
.anchor-index a[aria-current="true"]::before {
  width: 22px;
  background: var(--jade);
}

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1080px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 96px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .masthead__navrow { padding-bottom: 10px; }
  .site-header[data-open="true"] .site-nav {
    display: block;
    animation: panel-in 0.28s var(--ease) both;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 12px;
  }
  .site-nav__list a {
    padding: 14px 16px;
    border: 1px solid rgba(201, 210, 220, 0.16);
    border-radius: 14px 6px 14px 6px;
    background: rgba(7, 26, 47, 0.6);
  }
  .site-header[data-shrunk="true"] .site-nav__list a { padding: 14px 16px; }
  .masthead__wordmark { font-size: clamp(24px, 7vw, 34px); }
  .masthead__tagline { letter-spacing: 0.1em; }
  .anchor-index { position: static; }
}

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .masthead__utility { font-size: 11px; letter-spacing: 0.06em; }
  .masthead__search { padding: 6px 11px; }
  .masthead__search-text { display: none; }
  .masthead__search::before { font-size: 14px; }
  .masthead__tagline { font-size: 11.5px; }
  .masthead__seal { width: 34px; height: 34px; flex-basis: 34px; font-size: 18px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 34px;
  }
  .img-frame--wide { aspect-ratio: 4 / 3; }
  .stair-nav { flex-direction: column; }
  .stair-nav__item { min-width: 0; }
}

/* ---------- 21. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .site-footer::before { animation: none; }
  .accordion[data-open="true"] .accordion__body { animation: none; }
}
