/* ============================================================
   上下分牌局 · COIN-UP — 共享站点样式 /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, dd, ul, ol {
  margin: 0;
}

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

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

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

a { color: inherit; }

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

/* ---------- 2. Tokens ---------- */
:root {
  /* 底色 */
  --ink: #16121F;
  --ink-soft: #1F1A2B;
  --paper: #F4EBD8;
  --paper-deep: #EDE2CB;
  --card: #FFF9EE;

  /* 强调 */
  --violet: #8B5CF6;
  --arcade: #FF7A1A;
  --settle: #19C6A3;
  --alert: #D9485F;
  --lilac: #D9D1EA;
  --index: #5B6480;
  --body: #3B3547;

  /* 线与深底文字 */
  --line: rgba(91, 100, 128, 0.24);
  --line-soft: rgba(91, 100, 128, 0.14);
  --line-dark: rgba(217, 209, 234, 0.18);
  --on-ink: #F4EBD8;
  --on-ink-dim: rgba(217, 209, 234, 0.66);
  --on-ink-faint: rgba(217, 209, 234, 0.32);

  /* 字体 */
  --font-display: "Helvetica Neue", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", "IBM Plex Mono", "Menlo", "Consolas", monospace;

  /* 尺度 */
  --shell: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  --header-h: 78px;
  --cut: 14px;
  --cut-lg: 22px;
  --radius-soft: 2px;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100%;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0.005em;
  font-weight: 300;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 7.2vw, 104px); }
h2 { font-size: clamp(28px, 4.2vw, 56px); }
h3 { font-size: clamp(20px, 2.3vw, 28px); font-weight: 600; line-height: 1.32; }
h4 { font-size: 17px; font-weight: 800; line-height: 1.45; letter-spacing: 0.02em; }

p { text-wrap: pretty; }

strong, b { font-weight: 800; color: var(--ink); }

em { font-style: normal; border-bottom: 2px solid var(--arcade); }

::selection {
  background: var(--violet);
  color: #FFFFFF;
}

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: var(--gutter);
  z-index: 400;
  display: inline-block;
  padding: 12px 20px;
  background: var(--settle);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: top 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ink);
}

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

.section {
  padding-block: clamp(46px, 6.5vw, 100px);
}

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

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

.section--card {
  background: var(--card);
  color: var(--body);
}

.on-ink { color: var(--on-ink); }
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4, .on-ink strong { color: var(--on-ink); }
.on-ink .coord, .on-ink .index-tag { color: var(--on-ink-dim); }

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 34px);
}

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

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-12 { grid-column: span 12; }

/* ---------- 6. 索引与文本小件 ---------- */
.coord {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--index);
  line-height: 1.5;
}

.index-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--index);
  line-height: 1.4;
}

.index-tag::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.rule {
  border: 0;
  height: 1px;
  margin: 0;
  background: var(--line);
}

.rule--dark { background: var(--line-dark); }

.prose {
  max-width: 68ch;
  color: var(--body);
  font-size: 17px;
  line-height: 1.78;
}

.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.15em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 7. 按钮 ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  --btn-bg: var(--violet);
  --btn-fg: #FFFFFF;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 14px 26px;
  border: 0;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--settle);
}

.btn--violet { --btn-bg: var(--violet); --btn-fg: #FFFFFF; }
.btn--violet:hover { --btn-bg: #7A48F0; }

.btn--arcade { --btn-bg: var(--arcade); --btn-fg: #1A1109; }
.btn--arcade:hover { --btn-bg: #FF8C3A; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }

.btn--on-ink {
  --btn-bg: transparent;
  --btn-fg: var(--on-ink);
  box-shadow: inset 0 0 0 1.5px var(--on-ink-faint);
}
.btn--on-ink:hover { --btn-bg: var(--on-ink); --btn-fg: var(--ink); }

/* ---------- 8. 面包屑 ---------- */
.crumbs {
  padding-block: 18px;
}

.crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--index);
}

.crumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumbs-item + .crumbs-item::before {
  content: "/";
  color: var(--lilac);
}

.crumbs-link {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.crumbs-link:hover {
  color: var(--violet);
  border-bottom-color: var(--violet);
}

.crumbs-item[aria-current="page"] { color: var(--body); }

/* ---------- 9. 面板 ---------- */
.panel {
  position: relative;
  background: var(--card);
  color: var(--body);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg)));
}

.panel--ink {
  background: var(--ink-soft);
  color: var(--on-ink);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}

.panel--ink h1, .panel--ink h2, .panel--ink h3, .panel--ink h4 { color: var(--on-ink); }

.panel--edge {
  box-shadow: inset 0 0 0 1px var(--lilac);
}

/* ---------- 10. 图片容器（页面阶段放置占位/实拍） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  background:
    radial-gradient(115% 90% at 16% 10%, rgba(139, 92, 246, 0.55), transparent 62%),
    radial-gradient(95% 85% at 84% 92%, rgba(255, 122, 26, 0.4), transparent 62%),
    linear-gradient(158deg, #2A2138 0%, var(--ink) 64%);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg)));
  aspect-ratio: 4 / 3;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(22, 18, 31, 0.26) 0 1px, transparent 1px 4px);
  opacity: 0.55;
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

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

.media-frame--light {
  background:
    radial-gradient(110% 90% at 20% 12%, rgba(139, 92, 246, 0.28), transparent 62%),
    radial-gradient(90% 80% at 82% 90%, rgba(255, 122, 26, 0.24), transparent 60%),
    linear-gradient(160deg, #FBF3E3, var(--lilac));
  box-shadow: inset 0 0 0 1px var(--line);
}

.media-frame--light::after { opacity: 0.25; }

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--index);
}

/* ---------- 11. 显现与进度 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 300;
  pointer-events: none;
  background: linear-gradient(90deg, var(--violet) 0%, var(--arcade) 58%, var(--settle) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 12. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink);
  color: var(--on-ink);
  border-bottom: 1px solid var(--line-dark);
}

.site-header::after {
  content: "";
  display: block;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--on-ink-faint) 0 1px, transparent 1px 22px);
  background-size: 22px 6px;
  background-repeat: repeat-x;
  opacity: 0.7;
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: none;
  padding-block: 6px;
}

.brand-notch {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  background: linear-gradient(135deg, var(--violet) 0%, var(--arcade) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
  transition: transform 0.2s ease;
}

.brand-notch::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(22, 18, 31, 0.6);
  clip-path: polygon(0 0, 100% 0, 100% 54%, 54% 100%, 0 100%);
}

.brand:hover .brand-notch { transform: translateY(-2px); }

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--on-ink);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.36em;
  color: var(--arcade);
}

.brand-coord {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--on-ink-dim);
  white-space: nowrap;
}

.brand-coord::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--settle);
  box-shadow: 0 0 8px rgba(25, 198, 163, 0.9);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

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

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 12px 13px;
  text-decoration: none;
  color: rgba(244, 235, 216, 0.82);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--arcade);
  opacity: 0.72;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--arcade));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.22s ease, background 0.22s ease;
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--card);
  transform: translateY(-2px);
  outline-offset: 6px;
}

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

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

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

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

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

/* 移动按钮与遮罩 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  cursor: pointer;
  background: rgba(139, 92, 246, 0.16);
  color: var(--on-ink);
  box-shadow: inset 0 0 0 1px var(--on-ink-faint);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: box-shadow 0.16s ease, background-color 0.16s ease;
}

.nav-toggle:hover { background: rgba(139, 92, 246, 0.28); }

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--settle);
}

.nav-toggle-label { white-space: nowrap; }

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  flex: none;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-scrim { display: none; }

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--arcade) 46%, var(--settle) 100%);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(44px, 5.6vw, 82px) var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.45fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(34px, 4.4vw, 62px);
  border-bottom: 1px solid var(--line-dark);
}

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

.footer-coord {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-ink-faint);
  margin-bottom: 14px;
}

.footer-brand {
  font-family: var(--font-body);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--on-ink);
}

.footer-brand-sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--arcade);
}

.footer-note {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--on-ink-dim);
}

.footer-meter {
  display: flex;
  gap: 5px;
  margin-top: 22px;
}

.footer-meter span {
  display: block;
  width: 26px;
  height: 5px;
  background: var(--violet);
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  opacity: 0.85;
}

.footer-meter span:nth-child(2) { background: #9B72F8; opacity: 0.75; }
.footer-meter span:nth-child(3) { background: var(--arcade); opacity: 0.8; }
.footer-meter span:nth-child(4) { background: #FF9A4D; opacity: 0.6; }
.footer-meter span:nth-child(5) { background: var(--settle); opacity: 0.7; }

.footer-head {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-ink);
  margin-bottom: 16px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
}

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

.footer-link {
  display: inline-block;
  color: var(--on-ink-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--arcade);
  border-bottom-color: var(--arcade);
  transform: translateY(-1px);
}

.footer-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--settle);
  margin-bottom: 3px;
}

.footer-text {
  display: block;
  color: var(--on-ink-dim);
  font-size: 14px;
  line-height: 1.65;
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom));
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--on-ink-dim);
}

.footer-legal .footer-link { font-size: 11px; letter-spacing: 0.14em; }

.footer-icp { color: var(--on-ink-faint); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--on-ink-faint);
}

.dot { color: var(--on-ink-faint); }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-idx { display: none; }
  .nav-link { padding-inline: 11px; font-size: 14.5px; }
}

@media (max-width: 1080px) {
  .brand-coord { display: none; }
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-block:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

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

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 260;
    display: block;
    max-height: 82vh;
    overflow-y: auto;
    padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.45);
    transform: translateY(105%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    visibility: hidden;
  }

  .site-nav[data-open] {
    transform: translateY(0);
    visibility: visible;
  }

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

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

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

  .site-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 2px;
    font-size: 17px;
    font-weight: 600;
    color: var(--on-ink);
  }

  .site-nav .nav-idx {
    display: inline-block;
    font-size: 11px;
    color: var(--arcade);
    opacity: 1;
  }

  .site-nav .nav-link::after {
    left: 0;
    right: auto;
    width: 46px;
    bottom: 8px;
  }

  .site-nav .nav-link:hover,
  .site-nav .nav-link:focus-visible { transform: none; }

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

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(22, 18, 31, 0.66);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease;
  }

  .nav-scrim.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--12 > * { grid-column: span 6; }
  .span-1, .span-2, .span-3 { grid-column: span 3; }
  .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-10 { grid-column: span 6; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .header-shell { gap: 10px; }

  .brand-name { font-size: 17px; letter-spacing: 0.06em; }
  .brand-sub { font-size: 9px; letter-spacing: 0.3em; }
  .brand-notch { width: 28px; height: 28px; }

  .nav-toggle { padding: 9px 11px; font-size: 9.5px; letter-spacing: 0.14em; }

  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--12 > * { grid-column: span 2; }
  .span-1, .span-2, .span-3, .span-4, .span-5, .span-6,
  .span-7, .span-8, .span-9, .span-10, .span-12 { grid-column: span 2; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-block:first-child { grid-column: auto; }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-legal { gap: 7px; row-gap: 6px; }

  .btn { width: 100%; }
  .btn-row { flex-direction: column; }

  .media-frame { aspect-ratio: 3 / 2; }
}

/* ---------- 15. 无障碍 / 降低动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .site-nav { transition: none; }
  .btn:hover { transform: none; }
  .nav-link:hover { transform: none; }
}

@media (forced-colors: active) {
  .btn,
  .panel,
  .media-frame,
  .brand-notch { clip-path: none; }
}

/* ---------- 16. 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .scroll-progress,
  .nav-scrim { display: none !important; }

  body { background: #FFFFFF; color: #000000; font-size: 12pt; }

  .media-frame {
    background: none;
    box-shadow: none;
    clip-path: none;
    border: 1px solid #999999;
  }

  .prose { max-width: none; }
}
