/* ===========================================================
   牛牛赌钱棋牌 · 全站共享样式
   文件：/assets/site.css
   =========================================================== */

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

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

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; }
ul[class], ol[class] { list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 主色板 */
  --ink: #0B0E12;
  --ink-2: #151A21;
  --edge: #232A33;
  --gold: #E8A33D;
  --gold-lite: #F6D28B;
  --cyan: #2FD3C4;
  --chili: #E2432F;
  --paper: #F5EFE3;
  --muted: #8B96A5;
  --deep: #123A44;

  /* 阴影：只有 4px / 2px 两档 */
  --shadow-hard: 4px 4px 0 #04060A;
  --shadow-sm: 2px 2px 0 #04060A;
  --shadow-gold: 2px 2px 0 rgba(232, 163, 61, 0.55);

  /* 尺寸 */
  --edge-w: 2px;
  --radius: 2px;
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);

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

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

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

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--paper);
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--paper);
}

p { max-width: 68ch; }

/* 斜切描边阴影层（首屏压阵标题用） */
.shear { position: relative; isolation: isolate; }
.shear::before {
  content: attr(data-shear);
  position: absolute;
  inset: 0;
  transform: skewX(-3deg) translate(6px, 6px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 163, 61, 0.45);
  z-index: -1;
  pointer-events: none;
  white-space: pre;
}

/* ---------- 4. 工具类 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  display: inline-block;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: top 140ms ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  border-bottom: var(--edge-w) solid var(--edge);
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  transition: min-height 220ms ease;
}

.site-header[data-condensed="true"] .header-inner { min-height: 56px; }

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--paper);
  white-space: nowrap;
  transition: color 160ms ease;
}
.brand-mark::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: skewX(-12deg);
  transition: background 160ms ease;
}
.brand-mark:hover { color: var(--gold-lite); }
.brand-mark:hover::before { background: var(--cyan); }

.brand-tagline {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
  max-width: none;
}

.site-header[data-condensed="true"] .brand-tagline { display: none; }

/* 移动按钮 */
.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--ink-2);
  color: var(--paper);
  border: var(--edge-w) solid var(--edge);
  border-radius: var(--radius);
  transition: border-color 160ms ease, color 160ms ease;
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.nav-toggle[aria-expanded="true"]::before {
  box-shadow: 0 0 0 currentColor;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"]::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}

/* 右侧导航轨道 */
.header-rail {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 1.8vw, 26px);
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--paper);
  white-space: nowrap;
  transition: color 160ms ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--cyan);
  transition: width 180ms ease;
}
.nav-list a:hover { color: var(--gold-lite); }
.nav-list a:hover::after { width: 100%; }

.nav-list a[aria-current="page"] { color: var(--gold); }
.nav-list a[aria-current="page"]::after {
  width: 100%;
  background: var(--gold);
}

/* 牌型速查入口 */
.drawer-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 6px 2px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.drawer-trigger::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  transform: rotate(45deg);
  transition: background 160ms ease;
}
.drawer-trigger:hover { color: var(--gold-lite); border-color: var(--gold); }
.drawer-trigger:hover::before { background: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.3em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--paper);
  background: transparent;
  border: var(--edge-w) solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease,
              background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 transparent;
}
.btn:active { transform: translate(2px, 2px); box-shadow: none; }

.btn--primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-lite);
  box-shadow: 2px 2px 0 rgba(246, 210, 139, 0.4);
}
.btn--primary:hover { background: var(--gold-lite); }

.btn--ghost { color: var(--paper); border-color: var(--edge); }
.btn--ghost:hover { color: var(--gold-lite); border-color: var(--gold); }

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

.section { padding-block: clamp(40px, 6vw, 88px); }
.section--tight { padding-block: clamp(26px, 4vw, 52px); }

.ruled {
  height: 2px;
  border: 0;
  background: var(--edge);
  margin-block: clamp(28px, 4vw, 48px);
}

/* 面包屑 */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  list-style: none;
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "／"; color: var(--edge); }
.crumbs a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.crumbs a:hover { color: var(--cyan); border-color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--gold); }

/* 栏目标签 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan);
  flex: none;
}

/* 正文段落 */
.body-copy {
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  max-width: 64ch;
}
.body-copy p + p { margin-top: 1.2em; }
.body-copy strong { color: var(--gold-lite); font-weight: 700; }
.body-copy a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(47, 211, 196, 0.45);
  transition: color 160ms ease, border-color 160ms ease;
}
.body-copy a:hover { color: var(--gold-lite); border-color: var(--gold); }

/* ---------- 9. 栅格 ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* ---------- 10. 档案卡 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--ink-2);
  border: var(--edge-w) solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translate(2px, 2px);
}

.card--file { padding-top: calc(clamp(18px, 2.4vw, 26px) + 10px); }
.card--file::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 52%;
  height: 6px;
  background: var(--gold);
  transition: background 180ms ease;
}
.card--file:hover::before { background: var(--gold-lite); }

.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.3;
  color: var(--paper);
  margin-bottom: 6px;
}

.card-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(245, 239, 227, 0.82);
  max-width: 58ch;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 11. 标签 ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(35, 42, 51, 0.55);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  transition: color 160ms ease, border-color 160ms ease;
}
.tag--gold { color: var(--gold); border-color: rgba(232, 163, 61, 0.55); }
.tag--cyan { color: var(--cyan); border-color: rgba(47, 211, 196, 0.5); }
.tag--chili { color: var(--chili); border-color: rgba(226, 67, 47, 0.55); }

/* ---------- 12. 数据条 ---------- */
.data-strip { display: grid; gap: 14px; }

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--edge);
}
.stat-label { font-size: 13.5px; color: var(--muted); }
.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold);
  text-align: right;
}

/* 进度条 */
.meter {
  height: 10px;
  background: var(--ink);
  border: var(--edge-w) solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}
.meter > i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(var(--fill, 0.5));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--deep), var(--cyan) 58%, var(--gold));
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 13. 提示块 ---------- */
.callout {
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(245, 239, 227, 0.9);
  background: rgba(232, 163, 61, 0.07);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  max-width: 68ch;
}
.callout--cyan {
  border-left-color: var(--cyan);
  background: rgba(47, 211, 196, 0.07);
}

/* ---------- 14. 媒体容器（页面阶段放图占位） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--deep) 0%, var(--ink-2) 55%, var(--ink) 100%);
  border: var(--edge-w) solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.media::after {
  content: "";
  display: block;
  padding-top: var(--media-ratio, 62.5%);
}
.media > img,
.media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { --media-ratio: 52%; }
.media--square { --media-ratio: 100%; }
.media--tall { --media-ratio: 132%; }

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--ink-2);
  border-top: var(--edge-w) solid var(--edge);
  color: var(--paper);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lite) 22%, var(--cyan) 58%, var(--deep) 100%);
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter) 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.15fr 1.5fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--paper);
  max-width: none;
}
.footer-brand-line {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gold-lite);
  max-width: 22ch;
}
.footer-brand-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 32ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 44px);
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  max-width: none;
}

.footer-list {
  display: grid;
  gap: 9px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-list a {
  position: relative;
  display: inline-block;
  color: var(--paper);
  transition: color 160ms ease;
}
.footer-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 180ms ease;
}
.footer-list a:hover { color: var(--gold); }
.footer-list a:hover::after { width: 100%; }

.footer-list--data { gap: 14px; }
.footer-list--data li { display: grid; gap: 2px; }

.footer-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.footer-v {
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.footer-v--num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.footer-base {
  margin-top: clamp(30px, 4vw, 50px);
  padding-top: 18px;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  max-width: none;
}
.footer-copy { max-width: 62ch; line-height: 1.6; }

/* ---------- 16. 牌型速查抽屉（由 JS 注入） ---------- */
.hand-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}
.hand-drawer[data-open="true"] { display: block; }

.hand-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.74);
}

.hand-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  padding: 22px var(--gutter) 30px;
  overflow-y: auto;
  background: var(--ink-2);
  border-left: var(--edge-w) solid var(--edge);
  box-shadow: -8px 0 0 rgba(4, 6, 10, 0.55);
}

.hand-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: var(--edge-w) solid var(--edge);
}
.hand-drawer__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--gold-lite);
  max-width: none;
}
.hand-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--paper);
  background: var(--ink);
  border: var(--edge-w) solid var(--edge);
  border-radius: var(--radius);
  transition: color 160ms ease, border-color 160ms ease;
}
.hand-drawer__close:hover { color: var(--chili); border-color: var(--chili); }

.hand-group { margin-bottom: 20px; }
.hand-group h3 {
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.hand-list { display: flex; flex-wrap: wrap; gap: 7px; }
.hand-list span {
  padding: 5px 9px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(245, 239, 227, 0.86);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  transition: color 160ms ease, border-color 160ms ease;
}
.hand-list span:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- 17. 返回顶部（由 JS 注入） ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--gold);
  background: var(--ink-2);
  border: var(--edge-w) solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.to-top[data-visible="true"] { display: flex; }
.to-top:hover {
  color: var(--gold-lite);
  border-color: var(--gold);
  box-shadow: 2px 2px 0 rgba(232, 163, 61, 0.5);
}

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1080px) {
  .grid--split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

@media (max-width: 920px) {
  .header-inner { min-height: 64px; gap: 12px; }
  .site-header[data-condensed="true"] .header-inner { min-height: 56px; }
  .brand-tagline { display: none; }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .header-rail {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 6px var(--gutter) 22px;
    background: var(--ink-2);
    border-bottom: var(--edge-w) solid var(--edge);
    box-shadow: 0 14px 0 rgba(4, 6, 10, 0.45);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .header-rail[data-open="true"] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 4px;
  }
  .nav-list a {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--edge);
  }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] {
    color: var(--gold);
    padding-left: 12px;
    box-shadow: inset 3px 0 0 var(--gold);
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--edge);
  }
  .header-actions .btn { width: 100%; }
  .drawer-trigger { justify-content: flex-start; padding: 8px 2px; border-bottom: 0; }

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

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-brand-note { max-width: 46ch; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-base { font-size: 12px; }
  .hand-drawer__panel { width: 100%; border-left: 0; }
  .stat { flex-wrap: wrap; gap: 6px; }
  .stat-value { font-size: 22px; }
}

/* ---------- 19. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .card:hover,
  .card:hover::before { transform: none; }
  .meter > i { transition: none; }
}
