/* ==========================================================================
   财神棋牌汇 · 共享样式表 /assets/site.css
   庙会霓虹 × 深夜牌桌 · 刊头居中 · 签筒侧导览
   ========================================================================== */

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

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

body { margin: 0; }

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

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

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

img { height: auto; }

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --red: #C41E3A;
  --red-deep: #9E1730;
  --red-wash: rgba(196, 30, 58, 0.08);
  --gold: #D4AF37;
  --gold-deep: #8A6E12;
  --gold-line: rgba(212, 175, 55, 0.42);
  --ink: #14110F;
  --ink-soft: #2A2521;
  --paper: #F6F1E7;
  --paper-2: #EFE8D9;
  --gray: #6B6660;
  --moss: #4E6B52;
  --table: #1F5B4A;
  --neon: #39F0D0;
  --clay: #B5654A;
  --incense: #F29A3D;

  --hair: rgba(20, 17, 15, 0.12);
  --hair-soft: rgba(20, 17, 15, 0.07);
  --hair-light: rgba(246, 241, 231, 0.16);

  --font-head: "Source Han Serif SC", "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Sarasa Mono SC", Consolas, Menlo, monospace;

  --radius: 3px;
  --wrap: 1220px;
  --shadow-card: 0 22px 44px -40px rgba(20, 17, 15, 0.85);
  --shadow-lift: 0 16px 34px -26px rgba(20, 17, 15, 0.6);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#main-content { display: block; scroll-margin-top: 168px; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 12px; }

/* ---------- 5. 刊头 / 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 14px 30px -28px rgba(20, 17, 15, 0.8);
}

.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0 62%, var(--gold) 62% 100%);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--hair-soft);
  overflow: hidden;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--red), var(--gold) 58%, var(--neon));
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) auto minmax(96px, 1fr);
  align-items: center;
  gap: 14px;
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 8px;
}

.site-header__rail { display: flex; justify-content: flex-start; }

.site-header__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* 签筒 */
.rail-tube {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  transition: transform 0.22s ease;
}

.rail-tube:hover { transform: translateY(-2px); }

.rail-tube__sticks {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 14px;
}

.rail-tube__sticks i {
  display: block;
  width: 3px;
  height: 13px;
  border-radius: 1px 1px 0 0;
  background: var(--incense);
}

.rail-tube__sticks i:nth-child(2) { height: 14px; background: var(--gold); }
.rail-tube__sticks i:nth-child(3) { height: 11px; background: var(--clay); }

.rail-tube__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  padding: 6px 12px 7px;
  background: var(--red);
  color: #FFFFFF;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 12px 22px -18px rgba(196, 30, 58, 0.95);
}

.rail-tube__cn {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

.rail-tube__en {
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.85;
}

/* 刊头品牌 */
.masthead { text-align: center; min-width: 0; }

.masthead__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.masthead__cn {
  position: relative;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(20px, 5.6vw, 44px);
  line-height: 1;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  color: var(--ink);
  transition: color 0.2s ease;
}

.masthead__cn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 46px;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}

.masthead__brand:hover .masthead__cn { color: var(--red); }

.masthead__sub {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--gray);
}

.masthead__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--gray);
}

.masthead__ver {
  color: var(--red);
  background: var(--red-wash);
  border: 1px solid rgba(196, 30, 58, 0.28);
  border-radius: 2px;
  padding: 1px 7px;
  font-size: 11px;
}

.masthead__dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.masthead__status {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 11px;
  color: var(--gray);
}

.masthead__status-key { font-size: 10px; letter-spacing: 0.2em; }

.masthead__status-value { color: var(--ink); font-weight: 600; }

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-wash);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle__bars i {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

/* 主栏目索引 */
.site-nav {
  border-top: 1px solid var(--hair-soft);
  background: rgba(255, 255, 255, 0.45);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2.6vw, 36px);
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding: 10px 16px 12px;
}

.site-nav__item { display: flex; }

.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 2px 5px;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.site-nav__link:hover {
  color: var(--red);
  border-bottom-color: var(--gold);
}

.site-nav__link[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

.site-nav__idx {
  font-size: 10px;
  letter-spacing: 0;
  color: var(--gray);
}

.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--gold-deep); }

/* 签筒抽屉 */
.rail-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 120;
  width: min(342px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 22px 28px;
  overflow-y: auto;
  background: var(--ink);
  color: #EDE6D8;
  border-right: 1px solid var(--gold-line);
  box-shadow: 34px 0 66px -46px rgba(20, 17, 15, 0.95);
  transform: translateX(-102%);
  transition: transform 0.3s cubic-bezier(0.22, 0.7, 0.24, 1);
}

.rail-drawer.is-open { transform: none; }

.rail-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold-line);
}

.rail-drawer__kicker {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.rail-drawer__close {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(246, 241, 231, 0.72);
  border: 1px solid rgba(246, 241, 231, 0.24);
  border-radius: 999px;
  padding: 4px 13px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.rail-drawer__close:hover {
  color: var(--neon);
  border-color: var(--neon);
}

.rail-drawer__list { display: grid; gap: 0; }

.rail-drawer__item { border-bottom: 1px dashed rgba(246, 241, 231, 0.12); }

.rail-drawer__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 4px;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: #EDE6D8;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.rail-drawer__link:hover {
  color: var(--neon);
  padding-left: 11px;
}

.rail-drawer__link[aria-current="page"] { color: var(--gold); }

.rail-drawer__num { font-size: 11px; color: var(--gold); }

.rail-drawer__foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--gold-line);
}

.rail-drawer__sub { display: grid; gap: 7px; }

.rail-drawer__sublink {
  display: inline-block;
  font-size: 13px;
  color: rgba(246, 241, 231, 0.78);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(246, 241, 231, 0.18);
}

.rail-drawer__sublink:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.rail-drawer__note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: rgba(246, 241, 231, 0.52);
  word-break: break-all;
}

.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(20, 17, 15, 0.58);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rail-scrim.is-open { opacity: 1; }

body.rail-open { overflow: hidden; }

.rail-drawer :focus-visible,
.site-footer :focus-visible { outline-color: var(--neon); }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  background: var(--ink);
  color: #E9E2D5;
}

.site-footer::before {
  content: "";
  display: block;
  height: 5px;
  background: repeating-linear-gradient(90deg,
    var(--red) 0 40px,
    var(--gold) 40px 56px,
    var(--table) 56px 96px,
    var(--ink) 96px 104px);
}

.footer__inner {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 26px;
}

.footer__head {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.35fr);
  gap: 36px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--hair-light);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--red);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.06em;
  transform: rotate(-3deg);
}

.footer__brand-cn {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.08em;
  color: var(--paper);
  line-height: 1.1;
}

.footer__brand-sub {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
}

.footer__cta { margin-top: 6px; }

.footer__tagline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(16px, 1.9vw, 22px);
  line-height: 1.85;
  color: rgba(246, 241, 231, 0.82);
  max-width: 30em;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 38px 0;
}

.footer__col { min-width: 0; }

.footer__col-title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.footer__list { display: grid; gap: 9px; }

.footer__link {
  display: inline-block;
  font-size: 14px;
  color: rgba(246, 241, 231, 0.78);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer__link:hover {
  color: var(--neon);
  border-bottom-color: rgba(57, 240, 208, 0.55);
}

.footer__contact {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(246, 241, 231, 0.62);
  word-break: break-all;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--hair-light);
  font-size: 12.5px;
  color: rgba(246, 241, 231, 0.6);
}

.footer__legal {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.footer__credit { font-size: 12.5px; }

.footer__note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(246, 241, 231, 0.45);
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

/* ---------- 7. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
  box-shadow: 0 16px 28px -22px rgba(196, 30, 58, 0.95);
}

.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); }

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

.btn--gold:hover { background: #E3C155; border-color: #E3C155; }

.btn--ghost {
  background: transparent;
  border-color: rgba(20, 17, 15, 0.22);
  color: var(--ink);
}

.btn--ghost:hover { border-color: var(--red); color: var(--red); }

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

.btn--dark:hover { background: var(--table); border-color: var(--table); }

/* ---------- 8. 正文容器与网格 ---------- */
.container { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.container--narrow { width: min(880px, calc(100% - 40px)); margin-inline: auto; }
.container--read { width: min(720px, calc(100% - 40px)); margin-inline: auto; }

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

.section { padding: clamp(52px, 7vw, 104px) 0; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }

.index-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gray);
}

.index-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.section__title {
  margin-top: 12px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.section__desc {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray);
  max-width: 36em;
}

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.95;
  color: #39332E;
  max-width: 34em;
}

.rule {
  border: 0;
  height: 1px;
  background: var(--hair);
  margin: clamp(28px, 4vw, 52px) 0;
}

.rule--gold { background: var(--gold-line); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.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)); }

/* ---------- 9. 主题带 ---------- */
.band { padding: clamp(42px, 5.4vw, 82px) 0; }
.band--paper { background: var(--paper-2); }
.band--table { background: var(--table); color: var(--paper); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--red { background: var(--red); color: #FFFFFF; }

.band--table .section__title,
.band--ink .section__title,
.band--red .section__title { color: inherit; }

.band--table .section__desc,
.band--ink .section__desc,
.band--red .section__desc { color: rgba(246, 241, 231, 0.74); }

.band--table .index-label,
.band--ink .index-label,
.band--red .index-label { color: rgba(246, 241, 231, 0.72); }

/* ---------- 10. 卡片 ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 28px);
  background: #FFFFFF;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card--ink {
  background: var(--ink);
  border-color: var(--gold-line);
  color: #EDE6D8;
}

.card__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: inherit;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gray);
}

.card--ink .card__meta { color: var(--gold); }

.card__body {
  font-size: 15px;
  line-height: 1.9;
  color: #4A443E;
}

.card--ink .card__body { color: rgba(246, 241, 231, 0.72); }

.card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hair-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray);
}

.card--ink .card__foot { border-top-color: var(--hair-light); color: rgba(246, 241, 231, 0.6); }

/* ---------- 11. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.tag--red { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.tag--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.tag--jade { background: var(--moss); border-color: var(--moss); color: var(--paper); }
.tag--table { background: var(--table); border-color: var(--table); color: var(--paper); }
.tag--neon { background: var(--neon); border-color: var(--neon); color: var(--ink); }
.tag--clay { background: var(--clay); border-color: var(--clay); color: var(--ink); }

/* ---------- 12. 状态面板 ---------- */
.panel {
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--ink);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  color: #E9E2D5;
}

.panel__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--hair-light);
  font-size: 14px;
}

.panel__row:last-child { border-bottom: 0; }

.panel__key {
  font-size: 13px;
  color: rgba(246, 241, 231, 0.6);
}

.panel__value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--neon);
  text-align: right;
}

/* ---------- 13. 图片容器 ---------- */
.media {
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.media__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

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

.media__frame--ph::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(45deg,
    rgba(196, 30, 58, 0.07) 0 8px,
    transparent 8px 16px);
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  background: var(--ink);
  color: var(--gold);
  border-right: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.media__caption {
  padding: 10px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--hair);
}

/* ---------- 14. 面包屑 ---------- */
.breadcrumb { padding: 18px 0 0; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
}

.breadcrumb__link {
  color: var(--gray);
  border-bottom: 1px solid var(--hair);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.breadcrumb__link:hover { color: var(--red); border-bottom-color: var(--red); }

.breadcrumb__sep { color: var(--gold); }

.breadcrumb__current { color: var(--ink); font-weight: 600; }

/* ---------- 15. 主题筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.filter-bar__label {
  margin-right: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.filter-btn {
  padding: 6px 15px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(20, 17, 15, 0.2);
  border-radius: 999px;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.filter-btn:hover { color: var(--red); border-color: var(--red); }

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

.filter-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray);
}

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

/* ---------- 16. 显现动效 ---------- */
.reveal.is-in { animation: revealRise 0.62s cubic-bezier(0.22, 0.7, 0.24, 1) both; }

@keyframes revealRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

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

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 0 8px;
  }

  .site-header__side { flex-direction: row; align-items: center; }

  .masthead__meta,
  .masthead__status { display: none; }

  .site-nav {
    display: none;
    border-top: 1px solid var(--hair);
    background: var(--paper-2);
  }

  .site-nav[data-open] {
    display: block;
    animation: navDrop 0.26s ease both;
  }

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

  .site-nav__item {
    border-bottom: 1px solid var(--hair-soft);
  }

  .site-nav__item:last-child { border-bottom: 0; }

  .site-nav__link {
    justify-content: flex-start;
    padding: 14px 22px;
    font-size: 16px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .site-nav__link:hover { border-bottom-color: transparent; }

  .site-nav__link[aria-current="page"] {
    border-left-color: var(--red);
    background: var(--red-wash);
  }

  .nav-toggle { display: inline-flex; }

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

  .footer__head { grid-template-columns: 1fr; align-items: start; gap: 24px; }

  #main-content { scroll-margin-top: 132px; }
}

@media (max-width: 720px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .footer__inner { padding-top: 40px; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

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

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

  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .filter-status { margin-left: 0; width: 100%; }

  .btn { width: 100%; }
  .footer__cta { width: auto; }
}

/* ---------- 18. 减少动效 ---------- */
@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;
  }

  .reveal.is-in { animation: none; }
  .site-nav[data-open] { animation: none; }
  .rail-drawer { transition: none; }
  .to-top { transition: none; }
  .btn:hover { transform: none; }
}
