/* ============================================================
   超圣娱乐 · 共享外壳样式表  /assets/site.css
   墨绿档案手册体系：纸—墨—金—珊瑚点
   ============================================================ */

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

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

body { margin: 0; }

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

ul, ol { padding: 0; }

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

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

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

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #0F2E28;
  --ink-800: #16443A;
  --ink-700: #1F5C4D;
  --gold: #C9A96A;
  --gold-light: #E3CFA3;
  --coral: #D96C5F;
  --coral-dark: #C0554A;
  --paper: #F4EFE6;
  --paper-2: #EDE6DA;
  --paper-3: #FBF8F2;
  --text: #1B1F1C;
  --muted: #6E7A72;
  --line: #D8C9A8;

  --maxw: 1280px;
  --gutter: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 24px;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Roboto Mono", "Courier New", monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (max-width: 560px) {
  body { font-size: 16px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.4rem); line-height: 1.35; }
h4 { font-size: 1rem; line-height: 1.5; }

p { line-height: 1.85; }

strong { font-weight: 700; color: var(--ink-900); }

.num,
[data-year] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

::selection { background: rgba(201, 169, 106, 0.42); color: var(--ink-900); }

/* ---------- 4. 焦点与动效偏好 ---------- */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-header :focus-visible,
.site-footer :focus-visible,
.on-dark :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 5. 通用工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--tight { max-width: 880px; }

.section { padding-block: clamp(44px, 7vw, 92px); }

.stack { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 20px); }

.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(8px, 1.2vw, 16px); }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--gold), rgba(201, 169, 106, 0.18) 70%, transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex: 0 0 auto;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.95;
  color: #2F3A34;
}

.muted {
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--muted);
}

.prose > * + * { margin-top: 0.95em; }
.prose p { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 0.4em; }

.on-dark {
  background: linear-gradient(155deg, var(--ink-800), var(--ink-900));
  color: #E7E1D3;
}

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #F3ECDD; }
.on-dark .muted, .on-dark .lead { color: #AFBCB3; }
.on-dark .eyebrow { color: var(--gold-light); }

/* ---------- 6. 网格 ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 30px); }

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 262px), 1fr)); }

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3, .col-4, .col-5 { grid-column: span 3; }
  .col-6, .col-7, .col-8, .col-12 { grid-column: span 6; }
}

@media (max-width: 560px) {
  .grid--12 { grid-template-columns: 1fr; }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: 1 / -1; }
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.22s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--action { background: var(--coral); color: #FFF7F3; }
.btn--action:hover { background: var(--coral-dark); }

.btn--gold { background: var(--gold); color: #2A2110; }
.btn--gold:hover { background: var(--gold-light); }

.btn--line { border-color: var(--gold); color: var(--ink-900); background: transparent; }
.btn--line:hover { background: var(--gold-light); color: #2A2110; }

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

.btn--sm { padding: 0.5em 1.05em; font-size: 0.85rem; }

.on-dark .btn--line,
.site-footer .btn--line { border-color: rgba(201, 169, 106, 0.55); color: var(--gold-light); }

.on-dark .btn--line:hover,
.site-footer .btn--line:hover { background: rgba(201, 169, 106, 0.16); color: #FFF6E4; }

/* ---------- 8. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 300;
  padding: 0.55em 1.1em;
  background: var(--coral);
  color: #FFF7F3;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-s);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------- 9. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 26px -24px rgba(15, 46, 40, 0.85);
}

.cmdbar {
  background: linear-gradient(90deg, var(--ink-900), var(--ink-800) 65%, #123A32);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.cmdbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.42rem var(--gutter);
}

.cmdbar__seg {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
}

.cmdbar__seg--status { color: #CBBF9F; }

.cmdbar__seg--right {
  margin-left: auto;
  color: #93A79C;
  letter-spacing: 0.08em;
}

.cmdbar__num {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(217, 108, 95, 0.22);
  flex: 0 0 auto;
}

.header-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 34px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.8rem var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--ink-700), var(--ink-900));
  box-shadow: inset 0 0 0 1px rgba(201, 169, 106, 0.45);
}

.brand__mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid var(--gold);
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.brand__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  transform: translate(-50%, -50%);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.14rem;
  letter-spacing: 0.07em;
  line-height: 1.2;
  color: var(--ink-900);
}

.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  line-height: 1.6;
  color: var(--muted);
  text-transform: uppercase;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55em;
  margin-left: auto;
  padding: 0.46em 0.95em;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(227, 207, 163, 0.32);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover { background: rgba(227, 207, 163, 0.6); }

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
  flex: 0 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink-900);
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}

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

.site-header[data-open="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }
.site-header[data-open="true"] .nav-toggle { background: var(--gold-light); }

/* 导航（桌面） */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 14px);
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.7vw, 8px);
}

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.42em;
  padding: 0.5em 0.72em;
  border-radius: var(--radius-s);
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--ink-800);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--ink-900);
  background: rgba(201, 169, 106, 0.18);
}

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  flex: 0 0 auto;
}

.site-nav__link[aria-current="page"] {
  color: var(--ink-900);
  font-weight: 700;
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.72em;
  right: 0.72em;
  bottom: 0.2em;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

.header-cta { margin-left: clamp(6px, 1.2vw, 16px); flex: 0 0 auto; }

/* 导航（移动 / 平板） */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px var(--gutter) 26px;
    background: linear-gradient(180deg, var(--ink-900), #0B241F 88%);
    border-top: 1px solid rgba(201, 169, 106, 0.4);
    box-shadow: 0 34px 44px -34px rgba(0, 0, 0, 0.85);
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s linear;
  }

  .site-header[data-open="true"] .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.95em 0.3em;
    border-radius: 0;
    border-bottom: 1px solid rgba(201, 169, 106, 0.18);
    font-size: 1.02rem;
    color: #EFE8DA;
  }

  .site-nav__link:hover {
    background: rgba(201, 169, 106, 0.12);
    color: #FFF6E4;
  }

  .site-nav__num { color: var(--gold); font-size: 0.72rem; }

  .site-nav__link[aria-current="page"] {
    color: #FFF6E4;
    padding-left: 0.95em;
  }

  .site-nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 0.75em;
    bottom: 0.75em;
    width: 3px;
    height: auto;
    border-radius: 2px;
  }

  .header-cta {
    margin: 20px 0 0;
    align-self: stretch;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .cmdbar__seg--status { display: none; }
  .cmdbar__seg--right { margin-left: auto; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 1.05rem; }
  .brand__sub { display: none; }
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: clamp(34px, 5vw, 62px);
  background: linear-gradient(180deg, #0F2E28 0%, #0B241F 58%, #091D19 100%);
  color: #D6D1C2;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 169, 106, 0.22) 58%, var(--coral));
}

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

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(26px, 4vw, 46px);
  border-bottom: 1px solid rgba(201, 169, 106, 0.26);
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer__mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 11px;
  border: 1px solid rgba(201, 169, 106, 0.5);
  background: rgba(201, 169, 106, 0.08);
}

.footer__mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid var(--gold);
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.footer__brandtext { min-width: 0; }

.footer__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: #F2EBDC;
}

.footer__tagline {
  margin-top: 0.6rem;
  max-width: 36ch;
  font-size: 0.87rem;
  line-height: 1.95;
  color: #A3B1A8;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.footer__col { min-width: 0; }

.footer__title {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #D3CDBF;
  transition: color 0.2s ease, transform 0.2s var(--ease);
}

.footer__link:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.footer__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 2.6vw, 34px);
  padding-block: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid rgba(201, 169, 106, 0.18);
}

.footer__block { min-width: 0; }

.footer__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: #8CA095;
}

.footer__contact {
  font-size: 0.89rem;
  line-height: 1.85;
  color: #D8D2C4;
  word-break: break-word;
}

.footer__note {
  padding-top: clamp(14px, 2vw, 20px);
  font-size: 0.79rem;
  line-height: 1.9;
  color: #83948B;
  max-width: 82ch;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em 1.4em;
  margin-top: clamp(14px, 2vw, 22px);
  padding-block: 18px 26px;
  border-top: 1px solid rgba(201, 169, 106, 0.22);
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: #8CA095;
}

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

@media (max-width: 620px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

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

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.75rem var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.breadcrumb__list li { display: inline-flex; align-items: center; }

.breadcrumb__list li + li::before {
  content: "/";
  margin-right: 0.5em;
  color: var(--gold);
}

.breadcrumb a:hover {
  color: var(--ink-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb [aria-current="page"] { color: var(--ink-900); }

/* ---------- 12. 卡片 / 标签 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 34px -26px rgba(15, 46, 40, 0.6);
}

.card--ink {
  background: linear-gradient(158deg, var(--ink-800), var(--ink-900));
  border-color: rgba(201, 169, 106, 0.34);
  color: #E7E1D3;
}

.card--ink h2, .card--ink h3, .card--ink h4 { color: #F3ECDD; }
.card--ink .muted { color: #A3B1A8; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.22em 0.72em;
  border: 1px solid rgba(201, 169, 106, 0.75);
  border-radius: 999px;
  background: var(--gold-light);
  color: #4A3B1B;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.tag--coral {
  background: rgba(217, 108, 95, 0.14);
  border-color: rgba(217, 108, 95, 0.45);
  color: #8E3B31;
}

.tag--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-700);
}

.on-dark .tag--ghost { border-color: rgba(201, 169, 106, 0.4); color: var(--gold-light); }

/* ---------- 13. 图片容器 ---------- */
.figure-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(150deg, #E9E2D4, #F7F2E9);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.figure-frame__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(201, 169, 106, 0.16) 0 1px, transparent 1px 10px),
    linear-gradient(150deg, #E7DFCF, #F6F1E7);
}

.figure-frame__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(27, 31, 28, 0.16) 0.5px, transparent 0.6px);
  background-size: 4px 4px;
}

.figure-frame__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.12) contrast(0.97) saturate(0.92);
}

.figure-frame__ph {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7C8A80;
  text-align: center;
  padding: 1rem;
}

.figure-frame figcaption {
  padding: 0.7rem 0.95rem;
  border-top: 1px solid var(--line);
  background: rgba(227, 207, 163, 0.34);
  font-size: 0.78rem;
  line-height: 1.8;
  color: #4F5A52;
}

.figure-frame--wide .figure-frame__media { aspect-ratio: 16 / 9; }
.figure-frame--tall .figure-frame__media { aspect-ratio: 3 / 4; }

@media (max-width: 560px) {
  .figure-frame--wide .figure-frame__media { aspect-ratio: 4 / 3; }
  .figure-frame--tall .figure-frame__media { aspect-ratio: 1 / 1; }
}

/* ---------- 14. 文档片段 ---------- */
.doc-snippet {
  padding: 0.9em 1.05em;
  background: rgba(227, 207, 163, 0.36);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.95;
  color: #3A4139;
}

.doc-snippet code,
.doc-snippet .num { font-family: var(--font-mono); font-size: 0.86em; }

/* ---------- 15. 筛选条 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
}

.filter-btn {
  padding: 0.42em 1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-800);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--gold);
  background: rgba(227, 207, 163, 0.45);
}

.filter-btn[aria-pressed="true"] {
  background: var(--coral);
  border-color: var(--coral);
  color: #FFF7F3;
}

.filter-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

[data-filter-item][hidden] { display: none !important; }

@media (max-width: 560px) {
  .filter-status { margin-left: 0; width: 100%; }
}

/* ---------- 16. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
  will-change: opacity, transform;
}

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

/* ---------- 17. 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .filter-bar,
  .btn { display: none !important; }

  body { background: #fff; color: #000; font-size: 12pt; }
  .card, .figure-frame, .doc-snippet { border-color: #999; box-shadow: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
