/* ==========================================================================
   9393看台 · 共享样式表 /assets/site.css
   分区：reset → 变量 → 中文排版 → 布局容器 → 头部 → 页脚 → 组件 → 响应式 → 动效偏好
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5,
p, ul, ol, li, figure, figcaption,
blockquote, dl, dd, details, summary { margin: 0; }

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

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

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

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* 2. 变量 ------------------------------------------------------------------ */
:root {
  --dusk: #14120F;
  --dusk-soft: #1B1A17;
  --pine: #1F3D2B;
  --pine-deep: #16291D;
  --soil: #B24A2E;
  --amber: #FFB627;
  --brass: #D99B45;
  --cream: #F5EFE6;
  --cream-2: #EDE4D6;
  --mist: #C7BEB1;
  --ink: #1B1A17;
  --field: #3E6B4F;

  --dusk-grad: linear-gradient(135deg, #F0B27A 0%, #B24A2E 52%, #6E3B2A 100%);
  --ember-grad: linear-gradient(90deg, #D99B45 0%, #FFB627 100%);

  --hair: rgba(27, 26, 23, 0.14);
  --hair-soft: rgba(27, 26, 23, 0.075);
  --hair-dark: rgba(245, 239, 230, 0.16);
  --grid-line: rgba(27, 26, 23, 0.045);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-sans: "Noto Sans SC", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-gap: clamp(64px, 8vw, 112px);
  --radius: 2px;
  --dur: 0.22s;
}

/* 3. 中文排版 -------------------------------------------------------------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

.t-display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.t-section {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
}

.t-sub {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
}

.t-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

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

.u-muted { color: rgba(27, 26, 23, 0.62); }
.u-amber { color: var(--soil); }
.u-nowrap { white-space: nowrap; }

.prose {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(27, 26, 23, 0.84);
}
.prose p + p { margin-top: 1em; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose a { border-bottom: 1px solid var(--soil); }
.prose a:hover { color: var(--soil); }

.prose--dark { color: rgba(245, 239, 230, 0.82); }
.prose--dark strong { color: var(--cream); }

/* 4. 布局容器 -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-main {
  flex: 1 0 auto;
  display: block;
}

.section {
  padding-block: var(--section-gap);
  position: relative;
}

.section--tight { padding-block: clamp(44px, 5vw, 72px); }
.section--flush { padding-block: 0; }

.section--archive {
  background: var(--cream-2);
  border-block: 1px solid var(--hair);
}

.section--dark {
  background: var(--pine);
  color: var(--cream);
}

.section--dusk {
  background: var(--dusk);
  color: var(--cream);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.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)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (min-width: 901px) {
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-9 { grid-column: span 9; }
  .span-12 { grid-column: span 12; }
}

/* 5. 章节抬头 -------------------------------------------------------------- */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.sec-head__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--soil);
  font-variant-numeric: tabular-nums;
}

.sec-head__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.sec-head__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(27, 26, 23, 0.58);
}

.section--dark .sec-head,
.section--dusk .sec-head { border-top-color: var(--amber); }
.section--dark .sec-head__title,
.section--dusk .sec-head__title { color: var(--cream); }
.section--dark .sec-head__note,
.section--dusk .sec-head__note { color: var(--mist); }
.section--dark .sec-head__index,
.section--dusk .sec-head__index { color: var(--brass); }

/* 6. 头部：品牌说明层 ------------------------------------------------------ */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -160%);
  background: var(--amber);
  color: var(--dusk);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform var(--dur) ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: relative;
  z-index: 60;
}

.masthead {
  background: var(--cream-2);
  border-bottom: 1px solid var(--hair);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  background: var(--dusk);
  color: var(--amber);
  padding: 7px 10px;
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.brand__name {
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

.brand__tag {
  font-size: 0.75rem;
  color: rgba(27, 26, 23, 0.6);
}

.masthead__service {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(27, 26, 23, 0.68);
  text-align: right;
}

.pulse-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--field);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 107, 79, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(62, 107, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 107, 79, 0); }
}

/* 7. 头部：栏目层 ---------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--pine);
  color: var(--cream);
  border-bottom: 1px solid rgba(20, 18, 15, 0.4);
}

.navbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
  min-height: 58px;
}

.navbar__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  color: var(--brass);
}

.nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 30px);
}

.nav__link {
  position: relative;
  display: block;
  padding: 18px 2px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: rgba(245, 239, 230, 0.76);
  transition: color var(--dur) ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 9px;
  width: 22px;
  height: 2px;
  background: var(--soil);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) ease, background-color var(--dur) ease;
}

.nav__link:hover { color: var(--cream); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--cream); }
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--amber);
}

.navbar__cta {
  margin-left: auto;
  flex: none;
  color: var(--brass);
  font-size: 0.8125rem;
  padding: 8px 14px;
}
.navbar__cta:hover {
  color: var(--amber);
  background: rgba(255, 182, 39, 0.12);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 9px 13px;
  border: 1px solid rgba(245, 239, 230, 0.32);
  border-radius: var(--radius);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.nav-toggle:hover { border-color: var(--amber); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--amber);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--amber);
  transition: transform var(--dur) ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(20, 18, 15, 0.42);
  overflow: hidden;
}
.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ember-grad);
}

/* 8. 页脚 ------------------------------------------------------------------ */
.site-footer {
  background: var(--dusk);
  color: var(--mist);
  font-size: 0.875rem;
  margin-top: auto;
}

.footer__band {
  height: 12px;
  background: var(--soil);
  clip-path: polygon(0 0, 100% 0, calc(100% - 148px) 100%, 0 100%);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.4fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(40px, 5vw, 72px) clamp(28px, 3vw, 44px);
}

.footer__lead { min-width: 0; }

.footer__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.footer__tag {
  margin-top: 8px;
  color: var(--brass);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.footer__kicker {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  color: var(--amber);
}

.footer__entries {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
}
.footer__entries li {
  display: flex;
  align-items: center;
}
.footer__entries li + li::before {
  content: "·";
  margin-inline: 8px;
  color: rgba(199, 190, 177, 0.5);
}
.footer__entries a {
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.footer__entries a:hover {
  color: var(--amber);
  border-bottom-color: var(--soil);
}

.footer__col { min-width: 0; }

.footer__head {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  color: var(--brass);
  margin-bottom: 14px;
}

.footer__list li {
  padding-block: 5px;
  color: rgba(199, 190, 177, 0.9);
  line-height: 1.65;
  word-break: break-word;
}

.footer__list a {
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.footer__list a:hover {
  color: var(--amber);
  border-bottom-color: var(--soil);
}

.footer__list--meta li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.footer__k {
  flex: none;
  min-width: 68px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: rgba(199, 190, 177, 0.55);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--hair-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(199, 190, 177, 0.72);
  letter-spacing: 0.02em;
}

.footer__note { color: rgba(199, 190, 177, 0.58); }

/* 9. 按钮 ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--dur) ease, color var(--dur) ease,
              border-color var(--dur) ease;
}

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--dusk);
}
.btn--amber:hover { background: #FFC64F; border-color: #FFC64F; }

.btn--soil {
  background: var(--soil);
  border-color: var(--soil);
  color: var(--cream);
}
.btn--soil:hover { background: #C4562F; border-color: #C4562F; }

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover { background: rgba(245, 239, 230, 0.12); }

.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* 10. 面板与数据块 --------------------------------------------------------- */
.panel {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
}

.panel--flat { background: transparent; }

.panel--edge { border-left: 4px solid var(--soil); }
.panel--amber { border-left: 4px solid var(--amber); }

.panel--dark {
  background: var(--pine);
  border-color: rgba(245, 239, 230, 0.14);
  color: var(--cream);
}

.panel--grid {
  background-image:
    linear-gradient(var(--hair-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair-soft) 1px, transparent 1px);
  background-size: 40px 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--amber);
  color: var(--dusk);
  padding: 14px 16px;
  border-radius: var(--radius);
}

.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(20, 18, 15, 0.72);
}

.stat--dark {
  background: rgba(245, 239, 230, 0.06);
  border: 1px solid rgba(245, 239, 230, 0.18);
  color: var(--cream);
}
.stat--dark .stat__num { color: var(--amber); }
.stat--dark .stat__label { color: var(--mist); }

/* 11. 斜切比分条 ----------------------------------------------------------- */
.scorebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2.4vw, 30px);
  background: var(--dusk);
  color: var(--cream);
  padding: clamp(16px, 2.2vw, 24px) clamp(30px, 4vw, 52px) clamp(16px, 2.2vw, 24px) clamp(20px, 3vw, 36px);
  clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
  border-radius: var(--radius);
}

.scorebar__team {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.scorebar__score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.scorebar__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.scorebar__tag {
  margin-left: auto;
  background: var(--soil);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  border-radius: var(--radius);
}

/* 12. 时间轴 --------------------------------------------------------------- */
.timeline {
  display: flex;
  border-top: 1px solid var(--mist);
  overflow-x: auto;
  scrollbar-width: thin;
}

.tl-node {
  position: relative;
  flex: 1 0 168px;
  padding: 26px 22px 4px 0;
}

.tl-node::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(217, 155, 69, 0.18);
}

.tl-node__time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--soil);
  font-variant-numeric: tabular-nums;
}

.tl-node__label {
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.tl-node__desc {
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(27, 26, 23, 0.66);
}

.section--dark .timeline,
.section--dusk .timeline { border-top-color: rgba(245, 239, 230, 0.24); }
.section--dark .tl-node__label,
.section--dusk .tl-node__label { color: var(--cream); }
.section--dark .tl-node__desc,
.section--dusk .tl-node__desc { color: rgba(199, 190, 177, 0.8); }
.section--dark .tl-node__time,
.section--dusk .tl-node__time { color: var(--amber); }

/* 13. 表格 ----------------------------------------------------------------- */
.table-scroll { overflow-x: auto; }

.table {
  width: 100%;
  min-width: 520px;
  font-size: 0.9375rem;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}

.table thead th {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(27, 26, 23, 0.6);
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}

.table td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.table tbody tr:hover { background: rgba(178, 74, 46, 0.055); }

.table--dark { color: var(--cream); }
.table--dark thead th { color: var(--mist); border-bottom-color: var(--amber); }
.table--dark th,
.table--dark td { border-bottom-color: var(--hair-dark); }
.table--dark tbody tr:hover { background: rgba(255, 182, 39, 0.08); }

/* 14. 折叠面板 ------------------------------------------------------------- */
.fold {
  background: #FFFFFF;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}
.fold + .fold { margin-top: 12px; }

.fold__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.9375rem;
}

.fold__summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--soil);
}

.fold[open] .fold__summary::after { content: "−"; }

.fold__body {
  padding: 14px 18px 20px;
  border-top: 1px solid var(--hair);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(27, 26, 23, 0.8);
}

.fold[open] .fold__body { animation: foldIn 0.28s ease both; }

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

/* 15. 筛选与标签页 --------------------------------------------------------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.filter__btn {
  padding: 8px 14px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(27, 26, 23, 0.64);
  cursor: pointer;
  transition: background-color var(--dur) ease, color var(--dur) ease,
              border-color var(--dur) ease;
}
.filter__btn:hover { border-color: var(--soil); color: var(--ink); }
.filter__btn[aria-pressed="true"],
.filter__btn[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--amber);
}

.section--dark .filter__btn,
.section--dusk .filter__btn {
  border-color: rgba(245, 239, 230, 0.24);
  color: rgba(245, 239, 230, 0.72);
}
.section--dark .filter__btn:hover,
.section--dusk .filter__btn:hover { color: var(--cream); border-color: var(--brass); }
.section--dark .filter__btn[aria-pressed="true"],
.section--dusk .filter__btn[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--dusk);
}

/* 16. 术语提示 ------------------------------------------------------------- */
.term {
  position: relative;
  border-bottom: 1px dashed var(--soil);
  cursor: help;
}

.term::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: max-content;
  max-width: min(280px, 78vw);
  padding: 8px 11px;
  background: var(--dusk);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) ease;
}

.term:hover::after,
.term:focus-visible::after { opacity: 1; visibility: visible; }

/* 17. 面包屑与目录 --------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(27, 26, 23, 0.6);
}
.crumbs a:hover { color: var(--soil); }
.crumbs__sep { color: var(--mist); }

.crumbs--dark { color: rgba(199, 190, 177, 0.78); }
.crumbs--dark .crumbs__sep { color: rgba(199, 190, 177, 0.42); }
.crumbs--dark a:hover { color: var(--amber); }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.toc a {
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  color: var(--mist);
  transition: color var(--dur) ease, border-color var(--dur) ease;
}

.toc a:hover { color: var(--pine); }
.toc a[aria-current="true"] {
  color: var(--pine);
  border-bottom-color: var(--soil);
}

.section--dark .toc a,
.section--dusk .toc a { color: rgba(199, 190, 177, 0.66); }
.section--dark .toc a[aria-current="true"],
.section--dusk .toc a[aria-current="true"] {
  color: var(--amber);
  border-bottom-color: var(--soil);
}

/* 18. 图片容器（半调网点） ------------------------------------------------- */
.figure {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dusk-grad);
  aspect-ratio: 16 / 9;
}

.figure--wide { aspect-ratio: 21 / 9; }
.figure--portrait { aspect-ratio: 4 / 5; }
.figure--square { aspect-ratio: 1 / 1; }

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04);
}

.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(20, 18, 15, 0.55) 1px, transparent 1.2px);
  background-size: 5px 5px;
  opacity: 0.26;
  mix-blend-mode: multiply;
}

.figure__cap {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(27, 26, 23, 0.6);
}

.section--dark .figure__cap,
.section--dusk .figure__cap { color: rgba(199, 190, 177, 0.72); }

/* 19. 显现 ----------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 20. 响应式 --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col:last-child { grid-column: span 3; }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 96px; }

  .masthead__service { display: none; }

  .navbar__label { display: none; }

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: var(--pine-deep);
    border-top: 1px solid rgba(245, 239, 230, 0.12);
    box-shadow: 0 20px 34px rgba(20, 18, 15, 0.34);
  }

  .navbar[data-open] .nav { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 18px;
  }

  .nav__list li { border-bottom: 1px solid rgba(245, 239, 230, 0.1); }
  .nav__list li:last-child { border-bottom: 0; }

  .nav__link { padding: 15px 0; font-size: 1rem; }
  .nav__link::after { bottom: 11px; }

  .navbar__cta { margin-left: auto; }

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

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

  .sec-head__note { margin-left: 0; width: 100%; }
}

@media (max-width: 700px) {
  .navbar__cta { display: none; }
  .nav-toggle { margin-left: auto; }

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

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

  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__col:last-child { grid-column: auto; }

  .footer__base { padding-bottom: 22px; }

  .scorebar { clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }
  .scorebar__tag { margin-left: 0; }

  .footer__k { min-width: 62px; }
}

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

.section--dark :focus-visible,
.section--dusk :focus-visible,
.site-footer :focus-visible,
.navbar :focus-visible { outline-color: var(--amber); }

@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 [data-reveal],
  .js [data-reveal].is-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .read-progress__bar { transition: none !important; }
}
