/* ==========================================================================
   瑞祥真人综合 · 中文资料库  /assets/site.css
   共享样式表：reset · tokens · 中文排版 · 头部 · 页脚 · 基础组件
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h, 56px) + 16px);
}

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

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

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

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

a { color: inherit; }

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 主色板 */
  --paper-50: #F6F1E7;
  --ink-900: #131C24;
  --deep-sea-800: #0F2C3F;
  --deep-sea-600: #1C4A63;
  --sand-gold-500: #C8A45B;
  --sand-gold-200: #EBDCBE;
  --celadon-500: #6E9E8A;
  --amber-500: #DE8A2A;
  --amber-400: #EFA149;
  --clay-600: #A6402D;
  --slate-500: #4A5A66;

  /* 派生边界与面 */
  --rule: rgba(200, 164, 91, 0.45);
  --rule-soft: rgba(200, 164, 91, 0.30);
  --rule-ink: rgba(19, 28, 36, 0.12);
  --rule-light: rgba(246, 241, 231, 0.18);
  --wash-gold: rgba(200, 164, 91, 0.12);
  --shadow-float: 0 6px 12px rgba(19, 28, 36, 0.06);

  /* 字族 */
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  /* 尺度 */
  --header-h: 56px;
  --rail-w: 208px;
  --page-max: 1440px;
  --gutter: clamp(20px, 3.2vw, 40px);
  --gap: 24px;
  --radius: 2px;
  --radius-btn: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  /* 运行时 */
  --read-progress: 0%;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--paper-50);
  background-image:
    repeating-linear-gradient(0deg, rgba(19, 28, 36, 0.020) 0 1px, transparent 1px 4px);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--ink-900);
}

h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.006em; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: 0; }

@media (min-width: 1100px) {
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  h3 { font-size: 26px; }
}

p { margin: 0 0 1.05em; }

strong, b { font-weight: 700; }

a {
  color: var(--deep-sea-600);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

a:hover { color: var(--deep-sea-800); }

.prose { max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(200, 164, 91, 0.75);
}
.prose a:hover { text-decoration-color: var(--deep-sea-800); }
.prose ul, .prose ol { margin: 0 0 1.05em; padding-left: 1.2em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }

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

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

.site-header :focus-visible,
.footer-main :focus-visible {
  outline-color: var(--sand-gold-200);
}

/* ---------- 4. 工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.94em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-sea-600);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--amber-500);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 22px;
}

.section-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate-500);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease),
              border-color 160ms var(--ease),
              color 160ms var(--ease);
}

.btn--amber {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--ink-900);
}
.btn--amber:hover,
.btn--amber:focus-visible {
  background: var(--amber-400);
  border-color: var(--amber-400);
  color: var(--ink-900);
}

.btn--frame {
  background: transparent;
  border-color: rgba(200, 164, 91, 0.5);
  color: var(--paper-50);
}
.btn--frame:hover,
.btn--frame:focus-visible {
  background: rgba(200, 164, 91, 0.14);
  border-color: var(--sand-gold-500);
  color: #fff;
}

.btn--deep {
  background: var(--deep-sea-800);
  border-color: var(--deep-sea-800);
  color: var(--paper-50);
}
.btn--deep:hover,
.btn--deep:focus-visible {
  background: var(--deep-sea-600);
  border-color: var(--deep-sea-600);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--rule-ink);
  color: var(--deep-sea-800);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--sand-gold-200);
  border-color: var(--sand-gold-500);
  color: var(--ink-900);
}

.btn--sm { padding: 8px 13px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- 6. 标签与状态 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.tag--gold { background: var(--sand-gold-200); color: #4A3A12; }
.tag--ink { background: var(--deep-sea-800); color: var(--paper-50); }
.tag--ghost { background: transparent; border-color: var(--rule-ink); color: var(--slate-500); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate-500);
}
.status::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slate-500);
  transition: background-color 160ms var(--ease);
}
.status--ok::before { background: var(--celadon-500); }
.status--current::before { background: var(--amber-500); }
.status--retired::before { background: var(--clay-600); }

/* ---------- 7. Skip link ---------- */
.skip-link {
  position: absolute;
  top: -72px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  background: var(--amber-500);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip-link:focus {
  top: 12px;
  color: var(--ink-900);
}

/* ---------- 8. 头部框架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--deep-sea-800);
  color: var(--paper-50);
  border-bottom: 1px solid var(--rule);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: var(--read-progress, 0%);
  background: var(--amber-500);
  pointer-events: none;
  transition: width 120ms linear;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-block: 8px;
  color: var(--paper-50);
  text-decoration: none;
}
.brand:hover { color: #fff; }

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--sand-gold-500);
  flex: 0 0 auto;
}
.brand-mark::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--amber-500);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--paper-50);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(246, 241, 231, 0.56);
}

.brand-version {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid rgba(200, 164, 91, 0.42);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--sand-gold-500);
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 clamp(8px, 1.1vw, 15px);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: rgba(246, 241, 231, 0.74);
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: clamp(8px, 1.1vw, 15px);
  right: clamp(8px, 1.1vw, 15px);
  bottom: 0;
  height: 2px;
  background: var(--amber-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--ease);
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 右侧动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(200, 164, 91, 0.45);
  border-radius: var(--radius-btn);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--sand-gold-200);
  cursor: pointer;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.nav-toggle:hover {
  border-color: var(--sand-gold-500);
  color: #fff;
}

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 9px;
  flex: 0 0 auto;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease);
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-toggle-text {
  line-height: 1;
  white-space: nowrap;
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  margin-top: 0;
}

.footer-main {
  background: var(--deep-sea-800);
  color: rgba(246, 241, 231, 0.78);
  padding-block: clamp(34px, 4.6vw, 62px);
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.footer-heading {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-light);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--sand-gold-500);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(246, 241, 231, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.footer-list a:hover,
.footer-list a:focus-visible {
  color: #fff;
  border-bottom-color: rgba(200, 164, 91, 0.7);
}

.footer-contact {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(246, 241, 231, 0.7);
  word-break: break-word;
}

.footer-meta {
  background: var(--paper-50);
  border-top: 1px solid var(--rule-soft);
}

.footer-meta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 14px var(--gutter);
  font-size: 13px;
  color: var(--slate-500);
}

.footer-brandline {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-900);
}

.footer-copy { font-size: 12.5px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.footer-legal a {
  padding-bottom: 1px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--slate-500);
  text-decoration: none;
  font-size: 13px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--deep-sea-800);
  border-bottom-color: var(--sand-gold-500);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--slate-500);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--rule-ink);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--deep-sea-800);
  cursor: pointer;
  transition: border-color 160ms var(--ease),
              background-color 160ms var(--ease),
              color 160ms var(--ease);
}
.to-top:hover,
.to-top:focus-visible {
  border-color: var(--sand-gold-500);
  background: var(--sand-gold-200);
  color: var(--ink-900);
}

/* ---------- 10. 容器 / 网格 / 面包屑 ---------- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.canvas {
  padding-block: clamp(22px, 3.2vw, 40px) clamp(40px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
  align-items: start;
}

@media (min-width: 981px) {
  .split {
    grid-template-columns: clamp(180px, 17vw, 208px) minmax(0, 1fr);
  }
}

.rail {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  min-width: 0;
}

.stack > * + * { margin-top: var(--gap); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--slate-500);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb a {
  color: var(--slate-500);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.breadcrumb a:hover {
  color: var(--deep-sea-600);
  border-bottom-color: var(--rule);
}
.breadcrumb .sep {
  color: var(--sand-gold-500);
  font-weight: 500;
}
.breadcrumb [aria-current="page"] { color: var(--ink-900); }

/* ---------- 11. 媒体容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule-ink);
  border-radius: var(--radius);
  background-color: var(--sand-gold-200);
  background-image: linear-gradient(160deg, rgba(200, 164, 91, 0.14), rgba(19, 28, 36, 0.05));
  aspect-ratio: 16 / 10;
}

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

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--device { aspect-ratio: 3 / 4; }

.media-frame__caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--slate-500);
}

/* ---------- 12. 可展开组 ---------- */
.disclosure {
  border-bottom: 1px solid var(--rule-soft);
}

.disclosure-trigger {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px 4px;
  text-align: left;
  cursor: pointer;
  color: var(--ink-900);
  transition: background-color 160ms var(--ease);
}
.disclosure-trigger:hover { background: var(--wash-gold); }

.disclosure-index {
  flex: 0 0 auto;
  min-width: 2.2em;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--sand-gold-500);
  line-height: 1.9;
}

.disclosure-label {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.disclosure-sign {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 5px;
}
.disclosure-sign::before,
.disclosure-sign::after {
  content: "";
  position: absolute;
  background: var(--deep-sea-600);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.disclosure-sign::before { left: 0; right: 0; top: 5px; height: 1.5px; }
.disclosure-sign::after { top: 0; bottom: 0; left: 5px; width: 1.5px; }
.disclosure[data-open] .disclosure-sign::after { transform: scaleY(0); opacity: 0; }

.disclosure-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 240ms var(--ease), opacity 200ms var(--ease);
}
.disclosure[data-open] .disclosure-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
.disclosure-panel > div {
  min-height: 0;
  overflow: hidden;
  padding-left: calc(2.2em + 14px);
  padding-right: 26px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate-500);
}
.disclosure[data-open] .disclosure-panel > div {
  padding-top: 2px;
  padding-bottom: 20px;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-link { font-size: 13.5px; padding-inline: 9px; }
  .nav-link::after { left: 9px; right: 9px; }
}

@media (max-width: 980px) {
  .site-header { position: sticky; }

  .brand-version { display: none; }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: 6px var(--gutter) 20px;
    background: var(--deep-sea-800);
    border-top: 1px solid var(--rule-light);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 20px rgba(19, 28, 36, 0.18);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav[data-open] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav-list > li { width: 100%; }

  .nav-link {
    height: auto;
    width: 100%;
    padding: 14px 4px 14px 12px;
    font-size: 15px;
    border-bottom: 1px solid rgba(200, 164, 91, 0.16);
  }
  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    color: var(--sand-gold-200);
    box-shadow: inset 3px 0 0 var(--amber-500);
  }

  .header-actions { margin-left: auto; }

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

  .rail { position: static; top: auto; }
}

@media (max-width: 700px) {
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }

  .brand-sub { display: none; }
  .btn--sm { padding: 8px 11px; font-size: 12.5px; }

  .footer-meta-inner { gap: 8px 16px; }
  .footer-legal { margin-left: 0; }
  .to-top { margin-left: auto; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .header-actions .btn { display: none; }
  .disclosure-panel > div { padding-left: 0; padding-right: 0; }
}

/* ---------- 14. 动效与可访问性 ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@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;
  }

  .site-header::after { transition: none; }
  .disclosure-panel { transition: none; }
}
