/* =========================================================
   99棋牌电玩 · 共享站点样式 /assets/site.css
   高原牌桌编辑部：框景、刻度、斜切、珠宝色分区
   ========================================================= */

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

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

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

a { color: inherit; }

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩 */
  --ink: #0C1526;
  --ink-2: #16233C;
  --ink-3: #080F1C;
  --saffron: #B3202B;
  --wine: #7A121C;
  --gold: #D9A84E;
  --gold-soft: #F0D28C;
  --turq: #2E9C8C;
  --paper: #F3EADC;
  --mist: #93A4C0;
  --alert: #E0743C;

  --line: rgba(217, 168, 78, 0.26);
  --line-strong: rgba(217, 168, 78, 0.55);
  --line-faint: rgba(217, 168, 78, 0.14);

  /* 版式 */
  --gutter: 64px;
  --maxw: 1440px;
  --header-h: 78px;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

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

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 520px at 88% -6%, rgba(46, 156, 140, 0.13), transparent 62%),
    radial-gradient(920px 620px at 2% 108%, rgba(122, 18, 28, 0.30), transparent 66%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--paper);
}

a { text-decoration: none; }

::selection {
  background: var(--saffron);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

#main-content { display: block; }

/* ---------- 4. Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 220;
  transform: translate(-50%, -160%);
  padding: 12px 22px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 5. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-shell {
  padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px));
}

.band {
  padding-block: clamp(48px, 7vw, 104px);
}

.band--tight {
  padding-block: clamp(28px, 4vw, 56px);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.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; }

.slant-band {
  position: relative;
  background: var(--ink-2);
  padding-block: clamp(64px, 8vw, 112px);
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

/* ---------- 6. Typography utilities ---------- */
.display-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.sub-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.35;
}

.lead {
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--paper);
}

.note {
  font-size: 0.8125rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

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

.prose {
  max-width: 36em;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--paper);
}

.prose p + p { margin-top: 1.1em; }

.prose a {
  color: var(--gold-soft);
  border-bottom: 1px solid var(--line-strong);
}

.prose a:hover { border-bottom-color: var(--gold); }

.rule {
  position: relative;
  height: 1px;
  margin-block: clamp(24px, 4vw, 44px);
  border: 0;
  background: var(--line);
}

.rule::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--gold-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
}

.link-arrow::after {
  content: "→";
  font-size: 0.875rem;
}

.link-arrow:hover {
  color: var(--paper);
  border-bottom-color: var(--gold);
}

/* ---------- 7. Buttons / pills / tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.8125rem;
}

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

.btn-solid:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--gold-soft);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background-color 0.16s;
}

.pill:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}

.pill[aria-pressed="true"],
.pill.is-active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--paper);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- 8. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--paper);
  transition: background-color 0.24s ease-out, border-color 0.24s ease-out;
}

.site-header[data-scrolled] {
  background: var(--ink);
  border-bottom-color: var(--line-strong);
}

.site-header[data-open] {
  background: var(--ink);
  border-bottom-color: var(--line-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--maxw);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 品牌锁定 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--paper);
}

.brand-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold);
  flex: 0 0 auto;
}

.brand-seal::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--line-strong);
}

.seal-core {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--saffron);
  box-shadow: 0 0 0 1px var(--gold-soft);
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--paper);
  white-space: nowrap;
}

.brand-divider {
  display: block;
  width: 1px;
  height: 18px;
  background: var(--line-strong);
}

.brand-meta {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

/* 主导航 */
.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 2px;
  color: var(--paper);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.nav-link::before {
  content: attr(data-index);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.55;
  transition: opacity 0.18s, color 0.18s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease), background-color 0.24s var(--ease);
}

.nav-link:hover { color: var(--gold-soft); }

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

.nav-link:hover::after {
  background: var(--gold);
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--gold-soft);
}

.nav-link[aria-current="page"]::before {
  color: var(--gold-soft);
  opacity: 1;
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* 快捷入口 */
.header-utility {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 28px;
  flex: 0 0 auto;
}

/* 移动目录按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-soft);
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 9px; }

.site-header[data-open] .nav-toggle {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--paper);
}

.site-header[data-open] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
  background: var(--paper);
}

.site-header[data-open] .nav-toggle-bars::after {
  top: 4px;
  transform: rotate(-45deg);
  background: var(--paper);
}

.nav-toggle-label { line-height: 1; }

/* 刻度带 */
.header-rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
}

.site-header[data-scrolled] .header-rule { opacity: 0.75; }

/* ---------- 9. Mobile dock ---------- */
.mobile-dock { display: none; }

/* ---------- 10. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 128px);
  background: var(--ink-3);
  color: var(--paper);
}

.footer-fold {
  position: relative;
  height: 72px;
  background: var(--wine);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 28%);
  overflow: hidden;
}

.footer-pattern {
  position: absolute;
  inset: 0 0 auto 0;
  height: 24px;
  background-image:
    repeating-linear-gradient(90deg, rgba(240, 210, 140, 0.35) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(0deg, rgba(240, 210, 140, 0.18) 0 1px, transparent 1px 12px);
  opacity: 0.9;
}

.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 56px);
}

.footer-brand { min-width: 0; }

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gold-soft);
}

.footer-seal {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold);
  flex: 0 0 auto;
}

.footer-seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-strong);
}

.footer-seal::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: var(--saffron);
}

.footer-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer-tagline {
  margin-top: 16px;
  max-width: 26em;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--mist);
}

.footer-icp {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.footer-col { min-width: 0; }

.footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.4;
}

.footer-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.footer-list {
  display: grid;
  gap: 11px;
}

.footer-list-plain { gap: 14px; }

.footer-link {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  color: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.footer-contact-item {
  display: grid;
  gap: 3px;
}

.footer-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-value {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.footer-note {
  max-width: 62em;
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 22px;
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal .footer-link {
  font-size: 0.8125rem;
  color: var(--mist);
}

.footer-legal .footer-link:hover { color: var(--gold-soft); }

/* ---------- 11. Back to top ---------- */
.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: 34px;
  z-index: 130;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--gold-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s linear, border-color 0.18s;
  --scroll-progress: 0%;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) var(--scroll-progress), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  opacity: 0.9;
  pointer-events: none;
}

.to-top-mark {
  font-size: 1rem;
  line-height: 1;
}

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

/* ---------- 12. Page components ---------- */
/* 框景 */
.frame {
  position: relative;
  padding: clamp(20px, 3vw, 42px);
  border: 1px solid var(--line);
  background: var(--ink-2);
}

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

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

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

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin-inline: 10px;
  color: var(--gold);
  opacity: 0.7;
}

.breadcrumb-link {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.breadcrumb-link:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.breadcrumb-current { color: var(--gold-soft); }

/* 索引带 */
.index-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.index-item {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-faint);
  color: inherit;
  transition: background-color 0.16s;
}

.index-item:last-child { border-bottom: 0; }

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

.index-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--paper);
  transition: color 0.16s;
}

.index-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
}

.index-item:hover .index-title { color: var(--gold-soft); }
.index-item:hover { background: rgba(46, 156, 140, 0.08); }

/* 图片容器 */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 21, 38, 0) 38%, rgba(12, 21, 38, 0.86) 100%);
  pointer-events: none;
}

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

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-caption {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* 数据表 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(22, 35, 60, 0.45);
}

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

.data-table caption {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-faint);
  text-align: left;
  vertical-align: baseline;
}

.data-table thead th {
  background: rgba(22, 35, 60, 0.85);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.data-table tbody tr { transition: background-color 0.16s; }

.data-table tbody tr:hover,
.data-table tbody tr:focus-within {
  background: rgba(46, 156, 140, 0.12);
}

.data-table td.num { color: var(--gold-soft); }
.data-table .is-up { color: var(--turq); }
.data-table .is-down { color: var(--alert); }

/* 卡片与统计 */
.card {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.stat { display: grid; gap: 6px; }

.stat-value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: var(--gold-soft);
}

.stat-label {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 1240px) {
  :root {
    --gutter: 40px;
    --header-h: 72px;
  }

  .header-inner { gap: 20px; }

  .nav-list { gap: 16px; }

  .nav-link { font-size: 0.875rem; }

  .header-utility { margin-left: 18px; }

  .brand-meta { display: none; }

  .brand-divider { display: none; }
}

@media (max-width: 1024px) {
  :root { --gutter: 32px; }

  .header-inner { gap: 14px; }

  .header-utility { display: none; }

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

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    margin: 0;
    padding: 6px var(--gutter) 26px;
    overflow-y: auto;
    background: var(--ink);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 24px 48px rgba(4, 9, 18, 0.6);
  }

  .site-header[data-open] .primary-nav { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item { border-bottom: 1px solid var(--line-faint); }

  .nav-link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 16px 2px;
    font-size: 1.0625rem;
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(179, 32, 43, 0.28), rgba(179, 32, 43, 0));
    box-shadow: inset 2px 0 0 var(--saffron);
    padding-left: 12px;
  }

  .mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 125;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line-strong);
    border-top: 1px solid var(--line-strong);
  }

  .dock-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 8px;
    background: var(--ink-2);
    color: var(--paper);
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
    transition: background-color 0.16s;
  }

  .dock-link:active { background: var(--saffron); }

  .dock-num {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    color: var(--gold);
  }

  body { padding-bottom: 56px; }

  .to-top {
    right: 20px;
    bottom: 76px;
    width: 42px;
    height: 42px;
  }

  html { scroll-padding-top: 108px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .footer-brand { grid-column: 1 / -1; }

  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 {
    grid-column: 1 / -1;
  }

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

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --header-h: 64px;
  }

  body { font-size: 0.9375rem; }

  .brand-name { font-size: 1rem; }

  .brand-seal { width: 26px; height: 26px; }

  .footer-fold { height: 44px; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-inner { padding-bottom: 26px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-legal { gap: 14px; }

  .display-title { font-size: clamp(2.2rem, 9vw, 3rem); }

  .index-item {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    row-gap: 4px;
  }

  .index-meta {
    grid-column: 2;
    font-size: 0.6875rem;
  }

  .slant-band { clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%); }

  .to-top { right: 14px; bottom: 70px; }
}

/* ---------- 14. Motion preferences ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

  .card:hover { transform: none; }

  .to-top { transform: none; }
}
