/* ============================================================
   微赢棋牌 · 中文官方站 共享样式 /assets/site.css
   框架：蓝图网格 + 玻璃层 + 牌面层
   ============================================================ */

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink-green: #0B3A2C;
  --ink-deep: #061E17;
  --moss: #4F6B52;
  --amber: #C8912F;
  --amber-light: #E8C067;
  --felt: #7A2431;
  --clay: #A9603F;
  --stone: #3A3F3C;
  --cream: #F2EDE3;
  --chip: #FFFFFF;

  --line: rgba(79, 107, 82, 0.42);
  --grid-line: rgba(79, 107, 82, 0.16);
  --gold-line: rgba(200, 145, 47, 0.42);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1240px;
  --gutter: 20px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 18px 40px -28px rgba(6, 30, 23, 0.7);
  --header-offset: 132px;
}

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

@media (min-width: 1200px) {
  :root { --gutter: 48px; --max: 1280px; }
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--stone);
  background-color: var(--cream);
  background-image:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid-line) 1px, transparent 1px);
  background-size: 96px 100%, 100% 120px;
  background-position: 0 0, 0 0;
  -webkit-font-smoothing: antialiased;
}

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

p { line-height: 1.75; }

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

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

.h-display {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink-green);
}

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

#main-content { display: block; scroll-margin-top: var(--header-offset); }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -140px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--amber);
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}

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

/* ---------- 5. 头部：牌桌围栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink-green);
  color: var(--cream);
  border-bottom: 1px solid rgba(79, 107, 82, 0.75);
}

.site-rail {
  background: var(--ink-deep);
  border-bottom: 1px dashed rgba(79, 107, 82, 0.5);
}

.site-rail__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 7px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(242, 237, 227, 0.62);
}

.rail-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
}

.rail-meta b {
  font-weight: 500;
  color: var(--amber-light);
}

.rail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-light);
  box-shadow: 0 0 10px 1px rgba(232, 192, 103, 0.8);
  display: inline-block;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - var(--gutter) * 2, var(--max));
  margin: 0 auto;
  padding: 12px 0;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-deep);
  background: linear-gradient(150deg, var(--amber-light), var(--amber));
  box-shadow: inset 0 0 0 2px rgba(6, 30, 23, 0.55), 0 0 18px -6px rgba(232, 192, 103, 0.9);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-line {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-tag {
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(242, 237, 227, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { display: block; }

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 2px;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  color: rgba(242, 237, 227, 0.78);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(200, 145, 47, 0.72);
}

.nav-link:hover {
  color: var(--amber-light);
  background: rgba(79, 107, 82, 0.22);
}

.nav-link[aria-current="page"] {
  color: var(--amber-light);
  border-bottom-color: var(--amber);
  background: rgba(79, 107, 82, 0.3);
}

.nav-link[aria-current="page"] .nav-idx { color: var(--amber-light); }

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle:hover { background: rgba(200, 145, 47, 0.14); }

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

.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: var(--amber-light);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

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

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: rgba(242, 237, 227, 0.06);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber-light) 100%);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  padding: clamp(40px, 6vw, 64px) 0 24px;
  background: linear-gradient(180deg, var(--ink-green) 0%, var(--ink-deep) 100%);
  color: rgba(242, 237, 227, 0.78);
  border-top: 1px solid var(--gold-line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(79, 107, 82, 0.22) 1px, transparent 1px),
    linear-gradient(180deg, rgba(79, 107, 82, 0.22) 1px, transparent 1px);
  background-size: 96px 100%, 100% 72px;
}

.footer-inner {
  position: relative;
  width: min(100% - var(--gutter) * 2, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) 1.4fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(79, 107, 82, 0.5);
}

.footer-mark {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.footer-pitch {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(242, 237, 227, 0.68);
}

.footer-stat {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(232, 192, 103, 0.85);
}

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

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber-light);
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: rgba(242, 237, 227, 0.76);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--amber-light);
  border-bottom-color: rgba(232, 192, 103, 0.6);
}

.footer-contact {
  position: relative;
  width: min(100% - var(--gutter) * 2, var(--max));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(242, 237, 227, 0.6);
}

.footer-legal {
  position: relative;
  width: min(100% - var(--gutter) * 2, var(--max));
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(79, 107, 82, 0.4);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(242, 237, 227, 0.45);
}

/* ---------- 7. 布局骨架 ---------- */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0;
}

.section--dark {
  background: var(--ink-green);
  color: rgba(242, 237, 227, 0.82);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark .h-display { color: var(--cream); }

.section--deep { background: var(--ink-deep); color: rgba(242, 237, 227, 0.82); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 54ch;
  margin-bottom: clamp(24px, 3vw, 40px);
}

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

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--amber);
}

.section--dark .eyebrow,
.section--deep .eyebrow { color: var(--amber-light); }

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
}

.lede {
  max-width: 38em;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.85;
  color: var(--moss);
}

.section--dark .lede,
.section--deep .lede { color: rgba(242, 237, 227, 0.78); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.stack { display: grid; gap: clamp(12px, 1.6vw, 20px); }

.prose {
  max-width: 38em;
  display: grid;
  gap: 14px;
}

.prose p { color: var(--stone); }

.section--dark .prose p,
.section--deep .prose p { color: rgba(242, 237, 227, 0.8); }

.list-plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--moss);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(79, 107, 82, 0.6);
}

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

/* ---------- 9. 面板与卡片 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel--dark {
  background: var(--ink-deep);
  border-color: rgba(79, 107, 82, 0.6);
  color: rgba(242, 237, 227, 0.82);
}

.panel--dark h2,
.panel--dark h3 { color: var(--cream); }

.panel--glass {
  background: rgba(242, 237, 227, 0.13);
  border: 1px solid rgba(200, 145, 47, 0.35);
  color: rgba(242, 237, 227, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 18px 18px 20px;
  background: var(--chip);
  border: 1px solid rgba(79, 107, 82, 0.35);
  border-radius: var(--radius);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--amber), rgba(200, 145, 47, 0));
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
  box-shadow: var(--shadow);
}

.card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink-green);
}

.card__meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--clay);
}

.card__note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--moss);
}

/* ---------- 10. 数据卡 ---------- */
.metric {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: var(--chip);
  border: 1px solid rgba(79, 107, 82, 0.3);
  border-left: 2px solid var(--amber);
  border-radius: var(--radius);
}

.metric__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-green);
}

.metric__unit {
  margin-left: 0.15em;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--clay);
}

.metric__label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--moss);
}

.panel--dark .metric,
.panel--glass .metric,
.section--dark .metric {
  background: rgba(242, 237, 227, 0.08);
  border-color: rgba(200, 145, 47, 0.3);
}

.panel--dark .metric__value,
.section--dark .metric__value { color: var(--amber-light); }

.panel--dark .metric__label,
.section--dark .metric__label { color: rgba(242, 237, 227, 0.66); }

/* ---------- 11. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn--solid {
  background: linear-gradient(140deg, var(--amber-light), var(--amber));
  color: var(--ink-deep);
  box-shadow: 0 12px 28px -18px rgba(200, 145, 47, 0.9);
}

.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -18px rgba(232, 192, 103, 0.95);
}

.btn--ghost {
  background: rgba(11, 58, 44, 0.4);
  border-color: var(--gold-line);
  color: var(--amber-light);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(200, 145, 47, 0.16);
}

.btn--quiet {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--line);
  color: var(--ink-green);
}

.btn--quiet:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ---------- 12. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 2px;
  border: 1px solid rgba(79, 107, 82, 0.32);
  background: rgba(79, 107, 82, 0.16);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone);
}

.tag--red {
  background: rgba(122, 36, 49, 0.14);
  border-color: rgba(122, 36, 49, 0.4);
  color: var(--felt);
}

.tag--clay {
  background: rgba(169, 96, 63, 0.14);
  border-color: rgba(169, 96, 63, 0.42);
  color: var(--clay);
}

.tag--amber {
  background: rgba(200, 145, 47, 0.16);
  border-color: rgba(200, 145, 47, 0.45);
  color: #8A6216;
}

.section--dark .tag,
.section--deep .tag {
  background: rgba(242, 237, 227, 0.1);
  border-color: rgba(200, 145, 47, 0.4);
  color: rgba(242, 237, 227, 0.86);
}

/* ---------- 13. 筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--stone);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--amber);
  color: var(--ink-green);
}

.filter-btn[aria-pressed="true"] {
  background: linear-gradient(140deg, var(--amber-light), var(--amber));
  border-color: var(--amber);
  color: var(--ink-deep);
  font-weight: 600;
}

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

/* ---------- 14. 折叠 ---------- */
.collapse {
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.collapse__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  background: rgba(242, 237, 227, 0.6);
  border: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-green);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.collapse__head:hover { background: rgba(200, 145, 47, 0.14); }

.collapse__icon {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--amber);
  transition: transform 0.22s var(--ease);
}

.collapse[data-open] .collapse__icon { transform: rotate(45deg); }

.collapse__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s var(--ease);
}

.collapse[data-open] .collapse__body { max-height: 1400px; }

.collapse__body-inner {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.85;
  color: var(--moss);
}

/* ---------- 15. 章节索引 ---------- */
.toc {
  display: grid;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.toc__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  color: var(--stone);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.toc__link:hover {
  border-left-color: var(--amber);
  background: rgba(79, 107, 82, 0.1);
  color: var(--ink-green);
}

.toc__link[aria-current="location"] {
  border-left-color: var(--amber);
  background: rgba(200, 145, 47, 0.12);
  color: var(--ink-green);
}

/* ---------- 16. 图片容器 ---------- */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(79, 107, 82, 0.6);
  border-radius: 2px;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(232, 192, 103, 0.22), transparent 58%),
    repeating-linear-gradient(45deg, rgba(200, 145, 47, 0.12) 0 2px, transparent 2px 9px),
    linear-gradient(140deg, rgba(6, 30, 23, 0.94), rgba(11, 58, 44, 0.78));
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame::after {
  content: attr(data-caption);
  position: absolute;
  left: 12px;
  bottom: 10px;
  max-width: calc(100% - 24px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(242, 237, 227, 0.72);
  text-shadow: 0 1px 6px rgba(6, 30, 23, 0.9);
}

.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--card { aspect-ratio: 4 / 3; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--tall { aspect-ratio: 3 / 4; }

/* ---------- 17. 动效：发牌 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 18. 响应式 ---------- */
@media (max-width: 980px) {
  :root { --header-offset: 118px; }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--ink-deep);
    border-top: 1px solid rgba(79, 107, 82, 0.55);
    border-bottom: 1px solid rgba(79, 107, 82, 0.55);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.32s var(--ease), opacity 0.2s var(--ease);
  }

  .site-nav[data-open] {
    max-height: 72vh;
    opacity: 1;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
  }

  .nav-link {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(79, 107, 82, 0.3);
  }

  .nav-link[aria-current="page"] { border-bottom-color: var(--amber); }

  .brand-tag { display: none; }

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

@media (max-width: 900px) {
  .grid--7-5,
  .grid--5-7,
  .grid--3,
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .site-rail__inner { gap: 6px 16px; font-size: 11px; }
  .rail-meta:nth-child(n + 3) { display: none; }
  .header-inner { padding: 10px 0; gap: 12px; }
  .brand-mark { width: 36px; height: 36px; font-size: 19px; }
  .brand-line { font-size: 15px; }
  .nav-toggle-label { display: none; }
  .footer-legal { flex-direction: column; }
}

/* ---------- 19. 降低动效 ---------- */
@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;
  }

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