/* ============================================================
   /assets/site.css — 百家家乐共享样式
   0. Reset
   1. Tokens
   2. 基础与中文排版
   3. 布局工具
   4. 跳转与滚动进度
   5. 页头
   6. 导航
   7. 页脚
   8. 按钮
   9. 面包屑
   10. 面板 / 分类面板 / 章节头 / 竖排注释
   11. 长文
   12. 媒体容器
   13. 数据表
   14. 响应式
   15. 动效偏好
   ============================================================ */

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

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

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

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

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

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

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

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

/* ---------- 1. Tokens ---------- */
:root {
  --ink-900: #07111D;
  --ink-800: #0D1A2B;
  --ink-700: #1B3149;
  --paper: #F1E8D8;
  --paper-light: #FAF4E8;
  --cinnabar: #C63F2E;
  --cinnabar-bright: #E0664C;
  --gold: #B9924F;
  --celadon: #98A7A1;
  --mist: #C9D3DC;
  --charcoal: #1C232B;

  --gold-line: rgba(185, 146, 79, 0.3);
  --gold-line-soft: rgba(185, 146, 79, 0.18);
  --paper-line: rgba(28, 35, 43, 0.14);

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

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 160ms;
  --dur-fast: 120ms;

  --shell: 1200px;
  --gutter: 24px;
  --pad-x: 24px;
}

/* ---------- 2. 基础与中文排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--paper);
  background-color: var(--ink-800);
  background-image:
    repeating-linear-gradient(0deg, rgba(201, 211, 220, 0.04) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(201, 211, 220, 0.04) 0 1px, transparent 1px 24px);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
  box-shadow: inset 0 0 0 1px var(--paper-light);
}

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

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

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

/* ---------- 3. 布局工具 ---------- */
.container {
  width: min(var(--shell), calc(100% - (var(--pad-x) * 2)));
  margin-inline: auto;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.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-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ---------- 4. 跳转与滚动进度 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  background: var(--paper-light);
  border: 1px solid var(--cinnabar);
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cinnabar) 0%, var(--cinnabar-bright) 55%, var(--gold) 100%);
  pointer-events: none;
}

/* ---------- 5. 页头 ---------- */
.site-header {
  position: relative;
  z-index: 60;
  color: var(--paper);
  background: var(--ink-800);
  border-bottom: 1px solid var(--gold-line);
}

.header-strip {
  background: var(--ink-900);
  border-bottom: 1px solid var(--gold-line-soft);
}

.header-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  width: min(var(--shell), calc(100% - (var(--pad-x) * 2)));
  margin-inline: auto;
  padding: 9px 0;
}

.issue-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--celadon);
}

.utility-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.utility-list__item { display: block; }

.utility-link {
  display: inline-block;
  padding-bottom: 1px;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.utility-link:hover,
.utility-link:focus-visible {
  color: var(--paper-light);
  border-bottom-color: var(--cinnabar-bright);
}

.utility-static { color: var(--celadon); }

.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(var(--shell), calc(100% - (var(--pad-x) * 2)));
  margin-inline: auto;
  padding: 26px 0 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand__seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  color: var(--cinnabar);
  background: var(--paper-light);
  border: 1px solid var(--gold);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--paper-light);
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  position: absolute;
  top: 6px;
  right: 0;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--gold-line);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-toggle:hover { border-color: var(--gold); background: rgba(185, 146, 79, 0.1); }

.nav-toggle__lines {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: top var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.nav-toggle__lines span:first-child { top: 0; }
.nav-toggle__lines span:last-child { top: 9px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:first-child {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:last-child {
  top: 4px;
  transform: rotate(-45deg);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}

/* ---------- 6. 导航 ---------- */
.site-nav {
  background: var(--ink-800);
  border-top: 1px solid var(--gold-line);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 clamp(18px, 3vw, 44px);
  width: min(var(--shell), calc(100% - (var(--pad-x) * 2)));
  margin-inline: auto;
}

.nav-list__item { display: block; }

.nav-link {
  position: relative;
  display: block;
  padding: 15px 2px 14px;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--mist);
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 9px;
  width: 100%;
  height: 1px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-link:hover { color: var(--paper-light); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--paper-light);
  font-weight: 500;
}

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

.nav-link:focus-visible { color: var(--paper-light); }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  color: var(--mist);
  background: var(--ink-900);
  border-top: 1px solid var(--gold-line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.05fr 2fr;
  gap: 44px 56px;
  width: min(var(--shell), calc(100% - (var(--pad-x) * 2)));
  margin-inline: auto;
  padding: 56px 0 0;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--paper-light);
}

.footer-brand__desc {
  margin-top: 12px;
  max-width: 22em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--celadon);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-col__title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line-soft);
}

.footer-col__list {
  display: grid;
  gap: 9px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--paper-light);
  border-bottom-color: var(--cinnabar-bright);
}

.footer-contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--gold-line-soft);
  border-bottom: 1px solid var(--gold-line-soft);
}

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

.footer-contact__label {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.footer-contact__value {
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
  overflow-wrap: anywhere;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--celadon);
}

.footer-legal__icp { color: var(--celadon); }
.footer-legal__year { color: var(--celadon); }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--paper-light);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

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

.btn--primary {
  color: var(--paper-light);
  background: var(--cinnabar);
  border-color: var(--cinnabar);
}

.btn--primary:hover {
  background: var(--cinnabar-bright);
  border-color: var(--cinnabar-bright);
}

.btn--ghost {
  color: var(--paper);
  border-color: rgba(185, 146, 79, 0.62);
}

.btn--ghost:hover {
  color: var(--paper-light);
  border-color: var(--gold);
  background: rgba(185, 146, 79, 0.12);
}

.btn--paper {
  color: var(--charcoal);
  background: var(--paper-light);
  border-color: rgba(28, 35, 43, 0.28);
}

.btn--paper:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.42;
  pointer-events: none;
  transform: none;
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  padding: 18px 0;
  border-bottom: 1px solid var(--gold-line-soft);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--celadon);
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(185, 146, 79, 0.62);
}

.breadcrumb__link {
  color: var(--celadon);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--paper-light);
  border-bottom-color: var(--cinnabar-bright);
}

.breadcrumb__current { color: var(--paper-light); }

/* ---------- 10. 面板 / 分类面板 / 章节头 / 竖排注释 ---------- */
.panel {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  color: var(--charcoal);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 0;
}

.panel--light { background: var(--paper-light); }

.panel--deep {
  color: var(--mist);
  background: var(--ink-700);
  border-color: var(--gold-line);
}

.tag-panel {
  border: 1px solid var(--gold-line);
  background: var(--ink-700);
}

.tag-panel__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gold-line);
}

.tag-panel__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.tag-panel__list {
  display: grid;
}

.tag-panel__item { border-bottom: 1px solid var(--gold-line-soft); }
.tag-panel__item:last-child { border-bottom: 0; }

.tag-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: var(--mist);
  border-left: 2px solid transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.tag-link:hover,
.tag-link:focus-visible {
  color: var(--paper-light);
  background: rgba(185, 146, 79, 0.1);
  border-left-color: var(--gold);
}

.tag-link[aria-current="page"] {
  color: var(--paper-light);
  background: rgba(198, 63, 46, 0.18);
  border-left-color: var(--cinnabar);
}

.tag-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--celadon);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-line);
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--paper-light);
}

.section-head__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--celadon);
}

.panel .section-head,
.panel--light .section-head { border-bottom-color: var(--paper-line); }

.panel .section-head__title,
.panel--light .section-head__title { color: var(--charcoal); }

.panel .section-head__meta,
.panel--light .section-head__meta { color: rgba(28, 35, 43, 0.6); }

.note-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.28em;
  color: var(--gold);
}

/* ---------- 11. 长文 ---------- */
.prose {
  max-width: 42em;
  font-size: 17px;
  line-height: 1.75;
  color: var(--charcoal);
}

.prose--dark { color: var(--mist); }

.prose h2 {
  margin: 2.2em 0 0.7em;
  font-size: clamp(22px, 2.6vw, 28px);
  color: inherit;
}

.prose h3 {
  margin: 1.8em 0 0.6em;
  font-size: 19px;
  color: inherit;
}

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

.prose a {
  color: var(--cinnabar);
  border-bottom: 1px solid currentColor;
}

.prose--dark a { color: var(--cinnabar-bright); }

.prose ul,
.prose ol {
  margin: 1em 0;
  display: grid;
  gap: 0.45em;
}

.prose ul > li,
.prose ol > li {
  position: relative;
  padding-left: 1.5em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 9px;
  height: 1px;
  background: var(--gold);
}

.prose ol { counter-reset: prose-ol; }

.prose ol > li::before {
  counter-increment: prose-ol;
  content: counter(prose-ol) ".";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--cinnabar);
  color: inherit;
  font-size: 16px;
}

/* ---------- 12. 媒体容器 ---------- */
.figure {
  display: block;
  margin: 0;
}

.figure__frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--ink-700);
  background-image:
    repeating-linear-gradient(0deg, rgba(201, 211, 220, 0.06) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(201, 211, 220, 0.06) 0 1px, transparent 1px 24px);
  border: 1px solid var(--gold-line);
}

.figure__frame > img,
.figure__frame > svg,
.figure__frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04);
}

.figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 26, 43, 0.14) 0%, rgba(7, 17, 29, 0.42) 100%);
  mix-blend-mode: multiply;
}

.figure--wide .figure__frame { aspect-ratio: 21 / 9; }
.figure--square .figure__frame { aspect-ratio: 1 / 1; }
.figure--tall .figure__frame { aspect-ratio: 3 / 4; }

.figure--paper .figure__frame {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(28, 35, 43, 0.07) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(28, 35, 43, 0.07) 0 1px, transparent 1px 24px);
  border-color: var(--paper-line);
}

.figure--paper .figure__frame::after {
  background: linear-gradient(180deg, rgba(241, 232, 216, 0.06) 0%, rgba(241, 232, 216, 0.24) 100%);
  mix-blend-mode: normal;
}

.figure__cap {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--celadon);
}

/* ---------- 13. 数据表 ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--gold-line);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  min-width: 560px;
  font-size: 14px;
  line-height: 1.6;
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--gold-line-soft);
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(185, 146, 79, 0.08);
  white-space: nowrap;
}

.data-table td { color: var(--mist); }

.data-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.data-table tbody tr:last-child td { border-bottom: 0; }

.panel .data-table td,
.panel--light .data-table td { color: var(--charcoal); }

.panel .data-table th,
.panel--light .data-table th {
  color: var(--cinnabar);
  background: rgba(198, 63, 46, 0.06);
}

.panel .table-scroll,
.panel--light .table-scroll { border-color: var(--paper-line); }

.panel .data-table th,
.panel .data-table td,
.panel--light .data-table th,
.panel--light .data-table td { border-bottom-color: var(--paper-line); }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1024px) {
  :root { --gutter: 20px; }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 48px;
  }

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --pad-x: 20px; }

  .header-strip__inner {
    font-size: 10px;
    letter-spacing: 0.06em;
    gap: 6px 14px;
  }

  .issue-line { font-size: 10px; letter-spacing: 0.1em; }

  .utility-list { gap: 4px 14px; font-size: 10px; }

  .masthead {
    flex-direction: column;
    padding: 20px 0 16px;
  }

  .brand {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .brand__seal { width: 36px; height: 36px; font-size: 19px; }

  .brand__name { font-size: 26px; }

  .brand__tag { font-size: 9px; letter-spacing: 0.24em; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    border-top: 0;
    transition: max-height var(--dur) var(--ease), visibility var(--dur) var(--ease);
  }

  .site-nav[data-open] {
    max-height: 34rem;
    visibility: visible;
    border-top: 1px solid var(--gold-line);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6px 0 12px;
  }

  .nav-list__item { border-bottom: 1px solid var(--gold-line-soft); }
  .nav-list__item:last-child { border-bottom: 0; }

  .nav-link {
    padding: 14px 2px 13px;
    font-size: 15px;
    letter-spacing: 0.18em;
  }

  .nav-link::after { bottom: 0; }

  .breadcrumb { padding: 14px 0; }
}

@media (max-width: 640px) {
  .page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .footer-nav { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }

  .prose { font-size: 16px; }

  .btn { width: 100%; }
  .btn--sm { width: auto; }
}

@media (max-width: 380px) {
  .utility-list__item:last-child { display: none; }
}

/* ---------- 15. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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