/* ==========================================================================
   BET·竞技 — Site Kit / assets/site.css
   编辑部战术板：墨色场·纸色界·橙色信号
   ========================================================================== */

/* ---------- 1. 重置与变量 ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* 色彩系统 */
  --ink: #0B0C0E;
  --paper: #F4F2ED;
  --brand: #FF6A1B;
  --deep-blue: #1B2A4A;
  --crimson: #8A1F2D;
  --gold: #D4A84B;
  --stone: #6E6E6E;
  --line: #2A2D30;
  --soft-paper: #D9D9D0;

  /* 字体 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: "DIN Alternate", "Roboto Mono", monospace;

  /* 布局 */
  --header-h: 72px;
  --header-h-mobile: 60px;
  --container-w: 1200px;
  --container-narrow: 840px;
  --container-wide: 1440px;
  --gutter: 24px;
  --gutter-mobile: 16px;

  /* 动效 */
  --dur-fast: 0.2s;
  --dur-med: 0.4s;
  --dur-slow: 0.6s;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

/* ---------- 2. 基础排版 ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: inherit;
}

h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
}

h2 {
  font-size: clamp(24px, 3.5vw, 32px);
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

p {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

ul, ol {
  list-style: none;
}

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

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

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

@media (max-width: 1023px) {
  [id] {
    scroll-margin-top: calc(var(--header-h-mobile) + 16px);
  }
}

/* ---------- 3. 容器 ---------- */

.container,
.container--narrow,
.container--wide,
.container--fluid {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container {
  max-width: var(--container-w);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--fluid {
  max-width: none;
}

@media (max-width: 767px) {
  .container,
  .container--narrow,
  .container--wide,
  .container--fluid {
    padding-inline: var(--gutter-mobile);
  }
}

/* ---------- 4. 章节与页面头 ---------- */

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

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

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

.page-head {
  position: relative;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 56px;
}

.page-head__num {
  display: block;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--brand);
  margin-bottom: 16px;
}

.page-head__title {
  max-width: 20em;
}

.page-head__lead {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--soft-paper);
  max-width: 46em;
}

.section--light .page-head__lead {
  color: var(--stone);
}

.section-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}

.section-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 4px;
  background: var(--brand);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.section-head__num {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand);
  flex-shrink: 0;
  padding-top: 20px;
}

.section-head__title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  padding-top: 14px;
}

.section-head__line {
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
  margin-inline: 8px 4px;
  min-width: 40px;
}

.section--light .section-head__line {
  background: rgba(11, 12, 14, 0.16);
}

.section-head__note {
  writing-mode: vertical-rl;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.3em;
  color: var(--stone);
  height: 96px;
  flex-shrink: 0;
  padding-top: 4px;
}

.section--light .section-head__note {
  color: var(--stone);
}

.outline-num {
  font-family: var(--font-num);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 242, 237, 0.16);
  user-select: none;
  pointer-events: none;
}

.section--light .outline-num {
  -webkit-text-stroke: 1px rgba(11, 12, 14, 0.12);
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 56px;
  color: var(--stone);
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.section--light .section-divider::before,
.section--light .section-divider::after {
  background: rgba(11, 12, 14, 0.14);
}

.section-divider__diamond {
  width: 8px;
  height: 8px;
  background: var(--brand);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---------- 5. 头部 ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-med) var(--ease),
              color var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease),
              box-shadow var(--dur-med) var(--ease);
}

.site-header.is-scrolled {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: rgba(11, 12, 14, 0.14);
  box-shadow: 0 1px 0 rgba(11, 12, 14, 0.04),
              0 4px 24px rgba(11, 12, 14, 0.08);
}

.site-header__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
  pointer-events: none;
  z-index: 3;
}

.site-header__inner {
  height: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  flex-shrink: 0;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  transition: background-color var(--dur-med) var(--ease),
              color var(--dur-med) var(--ease);
}

.site-header__logo::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--brand);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  flex-shrink: 0;
}

.site-header__sub {
  font-size: 11px;
  letter-spacing: 0.36em;
  line-height: 1.6;
  color: var(--soft-paper);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  max-height: 44px;
  overflow: hidden;
  margin-top: 3px;
  transition: color var(--dur-med) var(--ease);
}

.site-header.is-scrolled .site-header__sub {
  color: var(--stone);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-header__link {
  position: relative;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}

.site-header__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-fast) var(--ease);
}

.site-header__link:hover::after,
.site-header__link[aria-current="page"]::after {
  transform: scaleX(1);
}

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

.site-header__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 8px 6px;
  cursor: pointer;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.site-header__toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
}

.site-header__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--brand);
  transition: transform var(--dur-med) var(--ease),
              opacity var(--dur-med) var(--ease);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1199px) {
  .site-header__link {
    padding: 8px 9px;
    font-size: 13px;
  }
}

@media (max-width: 1023px) {
  .site-header {
    height: var(--header-h-mobile);
  }

  .site-header__inner {
    padding-inline: var(--gutter-mobile);
  }

  .site-header__sub {
    display: none;
  }

  .site-header__logo {
    font-size: 17px;
    padding: 6px 11px;
  }

  .site-header__toggle {
    display: inline-flex;
  }

  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid rgba(11, 12, 14, 0.14);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height var(--dur-slow) var(--ease),
                opacity var(--dur-med) var(--ease);
  }

  .site-header__nav[data-open] {
    max-height: calc(100vh - var(--header-h-mobile));
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }

  .site-header__link {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(11, 12, 14, 0.08);
    color: var(--ink);
  }

  .site-header__link::after {
    display: none;
  }

  .site-header__link[aria-current="page"] {
    color: var(--brand);
    background: rgba(255, 106, 27, 0.07);
  }
}

/* 键盘跳转链接 */

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 20px;
  background: var(--brand);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  transition: top var(--dur-fast) var(--ease);
}

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

/* ---------- 6. 页脚 ---------- */

.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(140px, 0.8fr));
  gap: 48px 40px;
  padding-block: 72px 56px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--paper);
  line-height: 1.2;
}

.site-footer__logo-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--brand);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  margin-top: 4px;
}

.site-footer__tagline {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--brand);
}

.site-footer__about {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--soft-paper);
  max-width: 380px;
}

.site-footer__trust {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--stone);
  max-width: 380px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  margin-bottom: 2px;
}

.site-footer__title-num {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__links a {
  display: inline-block;
  font-size: 14px;
  color: var(--soft-paper);
  transition: color var(--dur-fast) var(--ease);
  padding: 2px 0;
  position: relative;
}

.site-footer__links a:hover {
  color: var(--brand);
}

.site-footer__links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--brand);
  transition: width var(--dur-fast) var(--ease);
}

.site-footer__links a:hover::before {
  width: 100%;
}

.site-footer__links--meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--soft-paper);
  gap: 6px;
}

.site-footer__links--meta li {
  color: var(--stone);
  letter-spacing: 0.02em;
}

.site-footer__bottom {
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.site-footer__bottom-inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 20px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--stone);
}

.site-footer__copyright {
  color: var(--soft-paper);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.site-footer__icp {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--stone);
}

.site-footer__icp a {
  color: var(--soft-paper);
  transition: color var(--dur-fast) var(--ease);
}

.site-footer__icp a:hover {
  color: var(--brand);
}

.site-footer__icp-sep {
  color: var(--line);
}

@media (max-width: 1023px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
    padding-block: 56px 40px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__brand {
    grid-column: auto;
  }

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

/* ---------- 7. 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--brand);
  color: var(--ink);
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              opacity var(--dur-fast) var(--ease);
}

.btn:hover {
  background: #ff8235;
}

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

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  clip-path: none;
}

.btn--ghost:hover {
  background: rgba(255, 106, 27, 0.1);
  color: var(--brand);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
  clip-path: none;
  border-radius: 2px;
}

.btn--ink:hover {
  background: #1c1f24;
  color: var(--paper);
}

/* ---------- 8. 面包屑 ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding-block: 12px 0;
  font-size: 13px;
  color: var(--stone);
}

.breadcrumb a {
  color: var(--soft-paper);
  transition: color var(--dur-fast) var(--ease);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb__sep {
  color: var(--line);
  margin-inline: 6px;
}

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

.section--light .breadcrumb a {
  color: var(--stone);
}

.section--light .breadcrumb__current {
  color: var(--brand);
}

/* ---------- 9. 数据卡片 ---------- */

.data-card {
  position: relative;
  background: var(--deep-blue);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px;
  min-height: 150px;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.data-card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.data-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.data-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.02em;
}

.data-card__tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--soft-paper);
  letter-spacing: 0.14em;
  white-space: nowrap;
  padding: 3px 8px;
  border: 1px solid rgba(244, 242, 237, 0.18);
  border-radius: 2px;
}

.data-card__value {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.02em;
}

.data-card__label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--soft-paper);
  line-height: 1.5;
}

.data-card--blue {
  background: var(--deep-blue);
}

.data-card--highlight {
  background: var(--ink);
  box-shadow: inset 0 3px 0 var(--brand);
}

@media (max-width: 767px) {
  .data-card {
    padding: 20px;
  }
}

/* ---------- 10. 筛选组件 ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 17px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--soft-paper);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

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

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

.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
  font-weight: 700;
}

.section--light .filter-btn {
  color: var(--stone);
  border-color: rgba(11, 12, 14, 0.25);
}

.section--light .filter-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.section--light .filter-btn.is-active,
.section--light .filter-btn[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
}

[data-filter-item] {
  transition: opacity var(--dur-fast) var(--ease);
}

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

[data-filter-item].is-in {
  animation: filterFadeIn 0.35s var(--ease) both;
}

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

/* ---------- 11. 表格与列表 ---------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--stone);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background-color var(--dur-fast) var(--ease);
}

.data-table tbody tr:hover {
  background: rgba(255, 106, 27, 0.05);
}

.data-table .data-table__num {
  font-family: var(--font-num);
  font-weight: 700;
}

.data-table .data-table__accent {
  color: var(--brand);
  font-weight: 700;
}

.data-table .data-table__gold {
  color: var(--gold);
  font-weight: 700;
}

.data-table--scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.section--light .data-table th {
  color: var(--stone);
  border-bottom-color: rgba(11, 12, 14, 0.2);
}

.section--light .data-table td {
  color: var(--ink);
  border-bottom-color: rgba(11, 12, 14, 0.08);
}

.section--light .data-table tbody tr:hover {
  background: rgba(255, 106, 27, 0.06);
}

.data-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- 12. 数字与注释 ---------- */

.stat-num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.stat-num--gold {
  color: var(--gold);
}

.stat-num--paper {
  color: var(--paper);
}

.vertical-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.28em;
  color: var(--stone);
  max-height: 180px;
  overflow: hidden;
}

/* ---------- 13. 引用块 ---------- */

.quote-block {
  position: relative;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--brand);
  margin-block: 24px;
}

.quote-block__text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: inherit;
}

.quote-block__source {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--stone);
  letter-spacing: 0.06em;
}

.section--light .quote-block__text {
  color: var(--ink);
}

/* ---------- 14. 图片占位 ---------- */

.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--deep-blue);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  min-height: 160px;
}

.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 5px,
      rgba(255, 255, 255, 0.035) 5px,
      rgba(255, 255, 255, 0.035) 6px
    );
}

.img-frame::after {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: rgba(244, 242, 237, 0.55);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.img-frame--data {
  background:
    linear-gradient(rgba(244, 242, 237, 0.92), rgba(244, 242, 237, 0.92)),
    repeating-linear-gradient(0deg, transparent 0, transparent 23px, rgba(11, 12, 14, 0.07) 23px, rgba(11, 12, 14, 0.07) 24px),
    repeating-linear-gradient(90deg, transparent 0, transparent 23px, rgba(11, 12, 14, 0.07) 23px, rgba(11, 12, 14, 0.07) 24px);
  background-color: var(--soft-paper);
}

.img-frame--data::before {
  background: none;
}

.img-frame--data::after {
  color: rgba(11, 12, 14, 0.45);
}

.img-frame--action {
  background:
    linear-gradient(125deg, var(--deep-blue) 0%, var(--ink) 55%, var(--crimson) 130%);
}

.img-frame--action::before {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 7px,
      rgba(255, 106, 27, 0.045) 7px,
      rgba(255, 106, 27, 0.045) 8px
    );
}

/* ---------- 15. 网格 ---------- */

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

/* ---------- 16. 章节目录 ---------- */

.directory {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  border-left: 1px solid var(--line);
  padding-left: 18px;
  margin: 0;
}

.directory__link {
  display: block;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease),
              padding-left var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.directory__link:hover {
  color: var(--brand);
}

.directory__link.is-active {
  color: var(--brand);
  font-weight: 700;
  padding-left: 4px;
  border-bottom-color: var(--brand);
}

@media (max-width: 1023px) {
  .directory {
    position: static;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-left: 0;
    padding-bottom: 8px;
    border-left: none;
    -webkit-overflow-scrolling: touch;
  }

  .directory__link {
    flex-shrink: 0;
    padding: 6px 14px;
    white-space: nowrap;
    border-bottom: 2px solid var(--line);
  }

  .directory__link.is-active {
    padding-left: 14px;
    border-bottom-color: var(--brand);
  }
}

/* ---------- 17. 装饰 ---------- */

.diag-cut {
  width: 120px;
  height: 24px;
  background: var(--brand);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 100%, 0 100%);
}

.diag-cut--small {
  width: 56px;
  height: 12px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--deep-blue);
  color: var(--soft-paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  white-space: nowrap;
}

.tag--brand {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--brand);
  font-weight: 700;
}

.tag--gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.tag--crimson {
  background: var(--crimson);
  color: var(--paper);
  border-color: var(--crimson);
}

/* ---------- 18. 显现动效 ---------- */

.js-init [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease),
              transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.js-init [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 19. 无障碍 ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

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

  .site-header,
  .site-header__nav,
  .site-header__link,
  .site-header__logo {
    transition: none;
  }

  [data-filter-item].is-in {
    animation: none;
  }
}

/* ---------- 20. 移动端微调 ---------- */

@media (max-width: 767px) {
  .section {
    padding-block: 36px;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 28px;
  }

  .section-head__note {
    display: none;
  }

  .section-head__line {
    display: none;
  }

  .filter-btn {
    padding: 7px 13px;
    font-size: 12px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 13px;
  }

  .page-head {
    padding-top: calc(var(--header-h-mobile) + 48px);
    padding-bottom: 36px;
  }

  .data-table td {
    padding: 11px 12px;
  }
}
