/* ==========================================================================
   财神通棋牌 · 共享样式表  /assets/site.css
   藏地经幡配色 · 纸张叠层 · 框架式导航
   ========================================================================== */

/* ---------- 1. Token ---------- */
:root {
  /* 品牌色 */
  --ink-red: #B8342A;
  --ink-red-deep: #96271F;
  --ink-indigo: #1E2A4A;
  --ink-indigo-soft: #3B4869;
  --ink-gold: #C9A227;
  --ink-butter: #F2C879;
  --ink-paper: #F5EFE3;
  --ink-paper-2: #EDE3D1;
  --ink-clay: #8A4B32;
  --ink-moss: #4F6B52;
  --ink-stone: #6E7681;
  --ink-felt: #14110F;
  --ink-hair: #E4D3A3;
  --ink-layer: #2A211C;

  /* 语义面 */
  --surface-deep: #1E2A4A;
  --surface-deep-2: #16203C;
  --surface-header: #1A2540;
  --surface-paper: #F5EFE3;
  --surface-paper-2: #EDE3D1;
  --surface-felt: #14110F;

  /* 深底上的文字 */
  --on-deep: #F5EFE3;
  --on-deep-dim: rgba(245, 239, 227, 0.62);
  --on-deep-faint: rgba(245, 239, 227, 0.34);

  /* 字体 */
  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono", monospace;

  /* 结构 */
  --rail-w: 0px;
  --shell-max: 1200px;
  --gutter: 24px;
  --header-h: 74px;
  --radius-s: 2px;
  --radius-m: 4px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1180px) {
  :root { --rail-w: 54px; }
}

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

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

html.nav-open { overflow: hidden; }

body {
  margin: 0;
  padding-left: var(--rail-w);
  min-height: 100vh;
  background-color: var(--surface-deep);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(184, 52, 42, 0.16), transparent 42%),
    radial-gradient(circle at 88% 88%, rgba(201, 162, 39, 0.10), transparent 46%);
  background-attachment: fixed;
  color: var(--on-deep);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }

::selection {
  background: var(--ink-gold);
  color: var(--ink-felt);
}

/* ---------- 3. 焦点环 ---------- */
:focus-visible {
  outline: 2px solid var(--ink-gold);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-220%);
  background: var(--ink-red);
  color: var(--ink-paper);
  padding: 11px 18px;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out);
}

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

/* ==========================================================================
   4. 页头 —— 框架式导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--surface-header);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(245, 239, 227, 0.028) 0 1px,
    transparent 1px 6px
  );
  border-bottom: 1px solid rgba(228, 211, 163, 0.32);
}

.frame-rail {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  z-index: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(180deg, #1A2540 0%, var(--ink-indigo) 42%, var(--ink-felt) 100%);
  border-right: 1px solid rgba(228, 211, 163, 0.22);
}

.frame-rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ink-red), var(--ink-gold), var(--ink-butter));
}

@media (min-width: 1180px) {
  .frame-rail { display: flex; }
}

.rail-rule {
  width: 1px;
  height: 58px;
  background: linear-gradient(180deg, transparent, var(--ink-gold), transparent);
}

.rail-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.44em;
  font-size: 14px;
  font-weight: 500;
  color: rgba(245, 239, 227, 0.9);
  padding: 12px 9px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius-s);
}

.header-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  transition: padding 0.3s var(--ease-out);
}

.site-header[data-scrolled] .masthead {
  padding: 8px 0;
}

.brand-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink-paper);
  text-decoration: none;
  white-space: nowrap;
}

.brand-name:hover { color: var(--ink-butter); }

.brand-sep {
  color: var(--ink-red);
  font-weight: 700;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--on-deep-dim);
  white-space: nowrap;
}

.utility-note {
  margin: 0 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--on-deep-dim);
  white-space: nowrap;
  transition: opacity 0.25s var(--ease-out);
}

.site-header[data-scrolled] .utility-note { opacity: 0.5; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.site-header[data-scrolled] .header-actions { margin-left: 16px; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid rgba(228, 211, 163, 0.5);
  border-radius: var(--radius-s);
  color: var(--ink-paper);
  font-size: 13.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.nav-toggle:hover {
  color: var(--ink-butter);
  border-color: var(--ink-butter);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.24s var(--ease-out), opacity 0.2s linear;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* 导航条 */
.site-nav {
  border-top: 1px solid rgba(228, 211, 163, 0.26);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-item { flex: 0 0 auto; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 11px;
  color: var(--on-deep);
  text-decoration: none;
  font-size: 15.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: var(--radius-m);
  box-shadow: inset 0 0 0 1px transparent;
  transition: color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-gold);
  opacity: 0.75;
  transition: opacity 0.2s var(--ease-out);
}

.nav-link:hover {
  color: var(--ink-butter);
  background: rgba(242, 200, 121, 0.07);
}

.nav-link:hover .nav-index { opacity: 1; }

.nav-link[aria-current="page"] {
  color: var(--ink-butter);
  background: rgba(201, 162, 39, 0.09);
  box-shadow: inset 0 0 0 1px var(--ink-gold);
}

.nav-link[aria-current="page"] .nav-index { opacity: 1; }

/* 滚动进度细线 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ink-red), var(--ink-gold) 55%, var(--ink-butter));
  pointer-events: none;
}

/* ---------- 页头移动端 ---------- */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .utility-note { display: none; }

  .header-actions { margin-left: auto; }

  .btn-ghost { display: none; }

  .masthead { flex-wrap: nowrap; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    z-index: 70;
    padding: 14px 0 40px;
    background-color: var(--surface-deep-2);
    background-image: repeating-linear-gradient(
      135deg,
      rgba(245, 239, 227, 0.03) 0 1px,
      transparent 1px 7px
    );
    border-top: 1px solid rgba(228, 211, 163, 0.24);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s var(--ease-out), visibility 0.24s linear;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    display: block;
    padding: 0 var(--gutter);
    overflow: visible;
  }

  .nav-item + .nav-item {
    border-top: 1px solid rgba(228, 211, 163, 0.16);
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 12px;
    font-size: 17px;
    border-radius: 0;
  }

  .nav-link[aria-current="page"] {
    box-shadow: inset 3px 0 0 0 var(--ink-gold);
    background: rgba(201, 162, 39, 0.08);
  }

  .nav-index { font-size: 11.5px; }
}

@media (min-width: 900px) and (max-width: 1179px) {
  .nav-list { justify-content: space-between; }
  .nav-link { padding: 12px 8px; font-size: 15px; }
}

/* ==========================================================================
   5. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: var(--surface-felt);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(245, 239, 227, 0.022) 0 1px,
    transparent 1px 8px
  );
  color: var(--on-deep);
  border-top: 1px solid rgba(228, 211, 163, 0.26);
  padding-top: 5px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink-red) 0 16px,
    transparent 16px 32px,
    var(--ink-gold) 32px 48px,
    transparent 48px 64px,
    var(--ink-indigo) 64px 80px,
    transparent 80px 96px
  );
  opacity: 0.75;
}

.footer-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 760px) {
  .footer-shell {
    grid-template-columns: minmax(200px, 1fr) minmax(0, 1.9fr);
    gap: 48px;
  }
}

@media (min-width: 1080px) {
  .footer-shell {
    grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr) minmax(260px, 1.2fr);
    gap: 56px;
  }
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ink-paper);
  margin: 0 0 10px;
}

.footer-brand-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-deep-dim);
  margin: 0 0 16px;
}

.footer-brand-mark {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--ink-gold);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(228, 211, 163, 0.22);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 28px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ink-gold);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(228, 211, 163, 0.2);
}

.footer-list { list-style: none; }

.footer-link {
  display: block;
  padding: 6px 0;
  color: var(--on-deep-dim);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);
}

.footer-link:hover {
  color: var(--ink-butter);
  padding-left: 6px;
}

.footer-contact .contact-line {
  display: flex;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--on-deep-dim);
}

.contact-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink-butter);
  padding-top: 5px;
}

.contact-value { color: var(--on-deep); }

.contact-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(228, 211, 163, 0.18);
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--on-deep-dim);
}

.footer-legal {
  border-top: 1px solid rgba(228, 211, 163, 0.18);
}

.footer-legal-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 18px var(--gutter) 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.legal-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--on-deep-faint);
}

/* ==========================================================================
   6. 通用布局
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 68px;
  position: relative;
}

@media (min-width: 900px) {
  .section { padding-block: 104px; }
}

.section--paper {
  background-color: var(--surface-paper);
  color: var(--ink-indigo);
}

.section--paper-2 {
  background-color: var(--surface-paper-2);
  color: var(--ink-indigo);
}

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

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

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

@media (min-width: 900px) {
  .grid { gap: 32px; }
}

.grid--2 { grid-template-columns: 1fr; gap: 28px; }
.grid--3 { grid-template-columns: 1fr; gap: 28px; }

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

.stack > * + * { margin-top: 18px; }

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--ink-hair), transparent);
  opacity: 0.6;
}

.section--paper .divider,
.section--paper-2 .divider { background: linear-gradient(90deg, transparent, var(--ink-clay), transparent); }

/* ==========================================================================
   7. 排版
   ========================================================================== */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(42px, 9vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

@media (min-width: 900px) {
  .display { font-size: clamp(64px, 7.6vw, 104px); }
}

.h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}

.h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

.lead {
  font-size: 17.5px;
  line-height: 1.78;
  max-width: 38ch;
  color: var(--on-deep-dim);
}

.section--paper .lead,
.section--paper-2 .lead { color: var(--ink-indigo-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-gold);
  margin: 0 0 14px;
}

.num {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--ink-gold);
  margin-bottom: 30px;
}

.section-head-index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--ink-gold);
}

/* ==========================================================================
   8. 印刷叠层与细线框
   ========================================================================== */
.paper-card {
  position: relative;
  background: var(--surface-paper);
  color: var(--ink-indigo);
  border: 1px solid var(--ink-hair);
  border-radius: var(--radius-s);
  padding: 26px 24px;
  box-shadow:
    8px 8px 0 -1px rgba(237, 227, 209, 0.9),
    8px 8px 0 0 rgba(228, 211, 163, 0.65),
    14px 14px 0 -1px rgba(42, 33, 28, 0.5);
}

.paper-card .lead { color: var(--ink-indigo-soft); }

.paper-card--flat {
  box-shadow: none;
}

.gold-frame {
  position: relative;
  border: 1px solid var(--ink-gold);
  border-radius: var(--radius-s);
  padding: 26px 24px;
}

.section--paper .gold-frame,
.section--paper-2 .gold-frame { color: var(--ink-indigo); }

.gold-frame::before,
.gold-frame::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink-gold);
  pointer-events: none;
}

.gold-frame::before {
  top: -6px;
  left: -6px;
  border-right: 0;
  border-bottom: 0;
}

.gold-frame::after {
  bottom: -6px;
  right: -6px;
  border-left: 0;
  border-top: 0;
}

/* ==========================================================================
   9. 媒体容器
   ========================================================================== */
.fig-card {
  --media-ratio: 16 / 9;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--media-ratio);
  overflow: hidden;
  border: 1px solid rgba(228, 211, 163, 0.55);
  border-radius: var(--radius-s);
  background-color: var(--ink-layer);
  background-image:
    radial-gradient(circle at 22% 20%, rgba(184, 52, 42, 0.42), transparent 56%),
    radial-gradient(circle at 80% 82%, rgba(201, 162, 39, 0.3), transparent 58%),
    repeating-linear-gradient(45deg, rgba(245, 239, 227, 0.055) 0 1px, transparent 1px 7px);
  isolation: isolate;
}

.fig-card--wide { --media-ratio: 21 / 9; }
.fig-card--tall { --media-ratio: 3 / 4; }
.fig-card--square { --media-ratio: 1 / 1; }
.fig-card--portrait { --media-ratio: 4 / 5; }

.fig-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fig-card::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(201, 162, 39, 0.42);
  pointer-events: none;
  z-index: 2;
}

.fig-card:has(> img)::after { border-color: rgba(228, 211, 163, 0.5); }

.fig-caption {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--on-deep-dim);
}

.section--paper .fig-caption,
.section--paper-2 .fig-caption { color: var(--ink-stone); }

/* ==========================================================================
   10. 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

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

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

.btn-ghost {
  background: transparent;
  border-color: rgba(228, 211, 163, 0.5);
  color: var(--ink-paper);
}

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

.btn-outline {
  background: transparent;
  border-color: rgba(30, 42, 74, 0.34);
  color: var(--ink-indigo);
}

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

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

.btn-gold:hover {
  background: rgba(201, 162, 39, 0.13);
}

.section--paper .btn-gold,
.section--paper-2 .btn-gold { color: var(--ink-clay); }

/* ==========================================================================
   11. 徽章与标签
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}

.badge--gold { color: var(--ink-gold); }
.badge--live { color: var(--ink-moss); }
.badge--clay { color: var(--ink-clay); }
.badge--red { color: var(--ink-red); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  border-radius: var(--radius-s);
  background: rgba(138, 75, 50, 0.14);
  color: var(--ink-clay);
}

.tag--deep {
  background: rgba(242, 200, 121, 0.14);
  color: var(--ink-butter);
}

.tag--moss {
  background: rgba(79, 107, 82, 0.16);
  color: var(--ink-moss);
}

/* ==========================================================================
   12. 面包屑
   ========================================================================== */
.breadcrumb {
  padding: 22px 0 4px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--on-deep-dim);
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--ink-clay);
}

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

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

.section--paper .breadcrumb li,
.section--paper-2 .breadcrumb li { color: var(--ink-stone); }
.section--paper .breadcrumb [aria-current="page"],
.section--paper-2 .breadcrumb [aria-current="page"] { color: var(--ink-clay); }

/* ==========================================================================
   13. 文档：目录、条款、表格
   ========================================================================== */
.toc {
  list-style: none;
  border-left: 1px solid var(--ink-hair);
  padding-left: 20px;
  font-size: 15px;
}

.toc li { margin: 0; }

.toc a {
  display: block;
  padding: 7px 0;
  color: inherit;
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
}

.toc a:hover { color: var(--ink-gold); }

.toc a[aria-current="true"] {
  color: var(--ink-gold);
  font-weight: 600;
}

.section--paper .toc,
.section--paper-2 .toc { border-left-color: rgba(138, 75, 50, 0.35); }

.section--paper .toc a:hover,
.section--paper-2 .toc a:hover,
.section--paper .toc a[aria-current="true"],
.section--paper-2 .toc a[aria-current="true"] { color: var(--ink-clay); }

.rule-list {
  list-style: none;
  counter-reset: rule;
}

.rule-list > li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(228, 211, 163, 0.28);
}

.section--paper .rule-list > li,
.section--paper-2 .rule-list > li {
  border-bottom-color: rgba(138, 75, 50, 0.22);
}

.rule-list > li::before {
  content: counter(rule, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--ink-gold);
  padding-top: 4px;
}

.rule-table {
  width: 100%;
  font-size: 15px;
}

.rule-table th,
.rule-table td {
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(228, 211, 163, 0.3);
}

.rule-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-butter);
  white-space: nowrap;
}

.section--paper .rule-table th,
.section--paper-2 .rule-table th { color: var(--ink-clay); }

.section--paper .rule-table th,
.section--paper .rule-table td,
.section--paper-2 .rule-table th,
.section--paper-2 .rule-table td {
  border-bottom-color: rgba(138, 75, 50, 0.22);
}

.rule-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--ink-gold);
}

.anchor-target {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

/* ==========================================================================
   14. 显现动效
   ========================================================================== */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s var(--ease-out), transform 0.42s var(--ease-out);
}

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

/* ==========================================================================
   15. Reduced motion
   ========================================================================== */
@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;
  }

  .js-reveal .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-meter { transition: none; }
}

/* ==========================================================================
   16. 打印
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .scroll-meter { display: none !important; }

  body {
    background: #fff;
    color: #000;
    padding-left: 0;
  }
}
