/* =========================================================
   /assets/site.css — 魔方娱乐中心 共享外壳与基础组件
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0E1B33;
  --ink-2: #1B2E52;
  --cream: #F7F3EA;
  --paper: #FFFDF7;
  --orange: #E85D2A;
  --lime: #A9C43B;
  --rose: #C9366B;
  --amber: #F2C14E;
  --mist: #C9C5B8;
  --graphite: #4A4F5A;
  --teal: #177E89;

  --rail-w: 96px;
  --edge: clamp(18px, 3.4vw, 48px);
  --header-min: 72px;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .7, .28, 1);
}

@media (min-width: 1440px) {
  :root { --rail-w: 112px; }
}

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

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

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

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

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

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

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

/* ---------- 3. 中文排版基底 ---------- */
body {
  font-family: var(--sans);
  font-size: clamp(16px, 0.5vw + 15px, 17.5px);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  padding-left: var(--rail-w);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 12 栏低对比网格线，仅桌面 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(14, 27, 51, .055) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 4.6vw, 76px); }
h2 { font-size: clamp(26px, 2.8vw, 44px); }
h3 { font-size: clamp(19px, 1.4vw, 26px); }
h4 { font-size: clamp(17px, 1.1vw, 20px); letter-spacing: -.01em; }

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

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  border-bottom: 3px solid var(--amber);
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ---------- 5. 头部外壳 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
  transition: box-shadow .2s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(14, 27, 51, .06), 0 14px 28px -22px rgba(14, 27, 51, .55);
}

/* 5.1 品牌轨道 */
.brand-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 26px 0 22px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.brand-rail::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 auto;
  left: 50%;
  width: 1px;
  background: rgba(201, 197, 184, .16);
  transform: translateX(-.5px);
  pointer-events: none;
}

.brand-rail__name {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--paper);
  text-decoration: none;
  padding: 4px 0;
  transition: color .18s var(--ease);
}

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

.brand-rail__domain {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--mist);
  opacity: .75;
}

.brand-rail__edition {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--amber);
  padding: 6px 3px;
  border: 1px solid rgba(242, 193, 78, .45);
}

.brand-rail__scale {
  flex: 1 1 auto;
  width: 12px;
  min-height: 48px;
  margin-top: auto;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(201, 197, 184, .7) 0 1px,
    transparent 1px 9px
  );
}

.brand-rail :focus-visible {
  outline-color: var(--amber);
}

/* 5.2 顶部横条 */
.header-main {
  width: 100%;
  min-width: 0;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  min-height: var(--header-min);
  padding: 0 clamp(18px, 2.8vw, 40px);
}

.header-brand {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-brand__link {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}

.header-brand__edition {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink);
  background: var(--amber);
  padding: 3px 6px;
  white-space: nowrap;
}

/* 5.3 主导航 */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 24px);
}

.site-nav__link {
  display: inline-block;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.site-nav__link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.site-nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--orange);
}

/* 5.4 头部入口按钮 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

/* ---------- 6. 按钮体系 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #FFFFFF;
  border-color: var(--orange);
}

.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--ghost {
  background: transparent;
  color: var(--graphite);
  border-color: var(--mist);
}

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

.btn--sm {
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: .06em;
}

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

/* ---------- 7. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--mist);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
}

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

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}

.nav-toggle__label {
  white-space: nowrap;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- 8. 页脚外壳 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 112px);
  padding: clamp(40px, 5.5vw, 72px) var(--edge) 36px;
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--orange);
}

.footer-inner {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.7fr) repeat(3, minmax(120px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(26px, 3.4vw, 40px);
  border-bottom: 1px solid rgba(201, 197, 184, .24);
}

.footer-brand__name {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--paper);
  margin-bottom: 8px;
}

.footer-brand__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
  word-break: break-all;
  margin-bottom: 10px;
}

.footer-brand__note {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 253, 247, .66);
  max-width: 32ch;
}

.footer-col__title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(201, 197, 184, .24);
}

.footer-col__list li + li { margin-top: 2px; }

.footer-link {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  color: rgba(255, 253, 247, .82);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

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

/* 8.1 账户自查条 */
.footer-check {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  margin-top: clamp(24px, 3vw, 34px);
  padding: 16px 20px;
  background: rgba(242, 193, 78, .07);
  border: 1px solid rgba(242, 193, 78, .3);
  border-left: 4px solid var(--amber);
}

.footer-check__title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .01em;
}

.footer-check__text {
  font-size: 14px;
  color: rgba(255, 253, 247, .72);
}

.footer-check__link {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--paper);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--amber);
  transition: color .18s var(--ease);
}

.footer-check__link:hover { color: var(--amber); }

/* 8.2 联系块 */
.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 32px;
  margin-top: clamp(24px, 3vw, 34px);
  padding-top: clamp(20px, 2.6vw, 28px);
  border-top: 1px solid rgba(201, 197, 184, .2);
}

.footer-contact__item--wide {
  grid-column: 1 / -1;
}

.footer-contact__label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
  margin-bottom: 5px;
}

.footer-contact__value {
  display: block;
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper);
  word-break: break-word;
}

.footer-contact__value .copy-btn { margin-left: 8px; }

.copy-btn {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
  background: transparent;
  border: 1px solid rgba(201, 197, 184, .42);
  vertical-align: middle;
  transition: color .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease);
}

.copy-btn:hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

/* 8.3 备案行 */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: clamp(22px, 3vw, 30px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(201, 197, 184, .8);
}

.footer-legal__dot { opacity: .5; }

/* 8.4 固定反馈锚点 */
.feedback-anchor {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--rose);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: 0 10px 24px -12px rgba(14, 27, 51, .6);
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}

.feedback-anchor::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  flex: 0 0 auto;
}

.feedback-anchor:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

/* 8.5 复制状态提示 */
.copy-status {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  z-index: 95;
  margin: 0;
  padding: 10px 18px;
  max-width: calc(100vw - 32px);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .03em;
  border-left: 3px solid var(--lime);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.copy-status.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.site-footer :focus-visible {
  outline-color: var(--amber);
}

/* ---------- 9. 通用布局容器 ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--edge);
}

.container--wide { max-width: 1480px; }

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 32px);
}

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

.grid--halves {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 10. 章节头 ---------- */
.section {
  padding-block: clamp(44px, 6.5vw, 96px);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--graphite);
}

.section__label::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--orange);
  flex: 0 0 auto;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.18;
  color: var(--ink);
  max-width: 24ch;
}

.lede {
  margin-top: 16px;
  max-width: 62ch;
  font-size: clamp(16px, 1vw, 19px);
  line-height: 1.75;
  color: var(--graphite);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--graphite);
}

.breadcrumb a {
  color: var(--graphite);
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.breadcrumb a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.breadcrumb__sep {
  opacity: .45;
}

/* ---------- 12. 正文区 ---------- */
.prose {
  max-width: 68ch;
  font-family: var(--sans);
  font-size: clamp(16px, .5vw + 15px, 17.5px);
  line-height: 1.8;
  color: var(--ink);
}

.prose > * + * { margin-top: 1em; }

.prose h2,
.prose h3 {
  margin-top: 1.9em;
  letter-spacing: -.02em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: .35em; }

.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--orange); }

.prose strong { font-weight: 700; }

/* ---------- 13. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2vw, 28px);
  background: var(--paper);
  border: 1px solid var(--mist);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

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

.card__title {
  font-family: var(--serif);
  font-size: clamp(18px, 1.3vw, 21px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ---------- 14. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag--orange { background: var(--orange); color: #FFFFFF; border-color: var(--orange); }
.tag--lime   { background: var(--lime);   color: var(--ink); border-color: var(--lime); }
.tag--rose   { background: var(--rose);   color: #FFFFFF; border-color: var(--rose); }
.tag--amber  { background: var(--amber);  color: var(--ink); border-color: var(--amber); }
.tag--teal   { background: var(--teal);   color: #FFFFFF; border-color: var(--teal); }
.tag--ghost  { background: transparent;   color: var(--graphite); border-color: var(--mist); }

/* ---------- 15. 视觉容器（页面阶段放内联 SVG / 图片） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--mist);
  aspect-ratio: 4 / 3;
}

.media-frame > img,
.media-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(to bottom left, transparent 50%, var(--orange) 50%);
  pointer-events: none;
}

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

.media-frame__caption {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--graphite);
}

/* ---------- 16. 费用矩阵基础 ---------- */
.matrix {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--mist);
  font-size: 15px;
}

.matrix th,
.matrix td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--mist);
}

.matrix thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.matrix tbody tr {
  transition: background-color .16s var(--ease);
}

.matrix tbody tr:hover {
  background: rgba(232, 93, 42, .06);
}

.matrix td.is-number {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.matrix tfoot td {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--graphite);
  background: rgba(201, 197, 184, .12);
}

/* ---------- 17. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}

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

/* ---------- 18. 平板 ---------- */
@media (max-width: 1100px) {
  .site-nav__link { font-size: 14px; }
  .header-actions .btn { padding: 8px 12px; font-size: 13px; }
  .footer-grid { grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(110px, 1fr)); }
}

/* ---------- 19. 移动 ---------- */
@media (max-width: 959px) {
  :root { --rail-w: 0px; }

  body { padding-left: 0; }
  body::before { display: none; }

  .brand-rail { display: none; }

  .header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "nav   actions";
    align-items: center;
    gap: 0;
    min-height: 0;
    padding: 0;
  }

  .header-brand {
    grid-area: brand;
    display: flex;
    padding: 11px var(--edge) 9px;
    min-width: 0;
  }

  .nav-toggle {
    grid-area: toggle;
    display: inline-flex;
    justify-self: end;
    margin-right: var(--edge);
  }

  .site-nav {
    grid-area: nav;
    min-width: 0;
    border-top: 1px solid var(--mist);
  }

  .site-nav__list {
    gap: 0;
    overflow-x: auto;
    padding: 0 6px 0 var(--edge);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav__item + .site-nav__item {
    border-left: 1px solid var(--mist);
  }

  .site-nav__link {
    padding: 10px 13px;
    font-size: 14px;
    border-bottom: 3px solid transparent;
  }

  .header-actions {
    grid-area: actions;
    margin-left: 0;
    padding: 6px var(--edge) 6px 8px;
    gap: 6px;
    justify-content: flex-end;
  }

  .header-actions .btn {
    padding: 7px 10px;
    font-size: 12px;
  }

  /* 展开态 */
  .header-bar[data-nav-open="true"] {
    grid-template-areas:
      "brand toggle"
      "nav   nav"
      "actions actions";
  }

  .header-bar[data-nav-open="true"] .site-nav__list {
    flex-direction: column;
    overflow-x: visible;
    padding: 0;
  }

  .header-bar[data-nav-open="true"] .site-nav__item + .site-nav__item {
    border-left: 0;
    border-top: 1px solid var(--mist);
  }

  .header-bar[data-nav-open="true"] .site-nav__link {
    display: block;
    padding: 12px var(--edge);
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .header-bar[data-nav-open="true"] .site-nav__link[aria-current="page"] {
    border-left-color: var(--orange);
  }

  .header-bar[data-nav-open="true"] .header-actions {
    justify-content: flex-start;
    padding: 10px var(--edge) 14px;
    border-top: 1px solid var(--mist);
  }

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

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

  .footer-check__link { margin-left: 0; }

  .feedback-anchor {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* ---------- 20. 窄屏 ---------- */
@media (max-width: 600px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

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

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

  .header-actions .btn {
    padding: 6px 8px;
    font-size: 11px;
    letter-spacing: 0;
  }

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

  .copy-status { bottom: 76px; }
}

/* ---------- 21. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }

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

  .card:hover,
  .feedback-anchor:hover,
  .btn:active {
    transform: none;
  }
}

/* ---------- 22. 打印 ---------- */
@media print {
  body { padding-left: 0; background: #FFFFFF; color: #000000; }
  body::before { display: none; }
  .site-header,
  .feedback-anchor,
  .copy-status,
  .nav-toggle { display: none !important; }
  .site-footer { background: #FFFFFF; color: #000000; border-top: 1px solid #000000; }
  .footer-link,
  .footer-brand__name,
  .footer-contact__value { color: #000000; }
}
