/* ==========================================================================
   皇家国际站 /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, ul, ol, li, figure, blockquote, dl, dd, hr {
  margin: 0;
}

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

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩体系 */
  --vermilion: #6E1024;
  --vermilion-deep: #4A0B19;
  --gold: #C9A24A;
  --gold-bright: #E4C77B;
  --gold-metal: linear-gradient(135deg, #B98A3D 0%, #F0D79A 50%, #B98A3D 100%);
  --ink: #14100E;
  --ivory: #F7F0E4;
  --paper: #E9DFC9;
  --slate: #5E6D7A;
  --slate-tint: #E3E8EB;
  --text: #2A1E18;
  --text-soft: #5A473C;
  --card: #FFFCF5;

  /* 线条与描边 */
  --rule: rgba(201, 162, 74, 0.34);
  --rule-strong: rgba(201, 162, 74, 0.68);
  --hairline: rgba(42, 30, 24, 0.12);

  /* 排版 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-latin: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* 尺度 */
  --rail-w: 248px;
  --bar-h: 64px;
  --gutter: clamp(20px, 4.5vw, 72px);
  --content-max: 1180px;
  --focus-ring: #8C6B22;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ivory);
  background-image:
    repeating-linear-gradient(0deg, rgba(42, 30, 24, 0.016) 0 1px, transparent 1px 4px);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(15px, 0.45vw + 13.4px, 17px);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: 0;
  padding-top: 0;
}

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

h1 { font-size: clamp(2rem, 3.6vw + 0.6rem, 3.6rem); letter-spacing: 0.11em; }
h2 { font-size: clamp(1.45rem, 1.9vw + 0.6rem, 2.3rem); }
h3 { font-size: clamp(1.1rem, 0.9vw + 0.8rem, 1.55rem); }
h4 { font-size: clamp(1rem, 0.5vw + 0.85rem, 1.18rem); }

p { text-wrap: pretty; }

.num,
.stat-value,
.brand-mark,
.nav-num {
  font-family: var(--font-latin);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.02em;
}

small { font-size: 0.8em; }

/* ---------- 4. 焦点与可访问性 ---------- */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.site-header :where(a, button):focus-visible,
.site-footer :where(a, button):focus-visible {
  outline-color: var(--gold-bright);
}

#main-content { scroll-margin-top: 88px; }

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 0.7em 1.2em;
  background: var(--ink);
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  font-size: 13px;
  letter-spacing: 0.14em;
  transform: translateY(-240%);
  transition: transform 0.22s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 6. 进度尺 ---------- */
.header-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: rgba(233, 223, 201, 0.14);
  pointer-events: none;
  z-index: 3;
}

.header-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 55%, #8C6B22 100%);
  transform: scaleY(var(--scroll-progress, 0));
  transform-origin: top left;
  transition: transform 0.1s linear;
}

/* ---------- 7. 页头 / 左侧索引栏 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 100;
  display: flex;
  background: var(--vermilion);
  background-image:
    linear-gradient(180deg, rgba(20, 16, 14, 0.28) 0%, rgba(20, 16, 14, 0) 38%),
    radial-gradient(120% 60% at 0% 100%, rgba(74, 11, 25, 0.9) 0%, rgba(74, 11, 25, 0) 70%);
  color: var(--ivory);
  border-right: 1px solid var(--rule-strong);
}

.header-frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* 品牌锁定块 */
.brand-lockup {
  flex: none;
  padding: 28px 24px 22px 26px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background-image: var(--gold-metal);
  color: var(--vermilion-deep);
  border: 1px solid rgba(240, 215, 154, 0.85);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2;
  color: var(--ivory);
  white-space: nowrap;
}

.brand-line {
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: rgba(247, 240, 228, 0.58);
  white-space: nowrap;
}

/* 移动按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  min-height: var(--bar-h);
  color: var(--gold-bright);
  font-size: 12px;
  letter-spacing: 0.22em;
  border-left: 1px solid var(--rule);
}

.nav-toggle-bar {
  position: relative;
  display: block;
  flex: none;
  width: 20px;
  height: 1px;
  background: currentColor;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 0.24s ease, top 0.24s ease, bottom 0.24s ease;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { bottom: -6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { bottom: 0; transform: rotate(-45deg); }

/* 导航本体 */
.site-nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-index { padding: 12px 0 8px; }

.nav-index a {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 11px 22px 11px 24px;
  font-size: 14px;
  letter-spacing: 0.11em;
  line-height: 1.5;
  color: rgba(247, 240, 228, 0.76);
  border-left: 2px solid transparent;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nav-index a::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  background: transparent;
  transform: rotate(45deg);
  transition: background-color 0.18s ease;
}

.nav-index a:hover {
  color: var(--ivory);
  background: rgba(20, 16, 14, 0.22);
  border-left-color: var(--gold);
}

.nav-num {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.72;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.nav-index a:hover .nav-num { opacity: 1; }

.nav-inc
.nav-index a[aria-current="page"] {
  color: var(--ivory);
  background: linear-gradient(90deg, rgba(201, 162, 74, 0.26) 0%, rgba(201, 162, 74, 0) 78%);
  border-left-color: var(--gold-bright);
}

.nav-index a[aria-current="page"] .nav-num {
  color: var(--gold-bright);
  opacity: 1;
}

.nav-index a[aria-current="page"]::after { background: var(--gold-bright); }

.nav-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 22px 26px 24px;
  border-top: 1px solid var(--rule);
}

.nav-utility {
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: rgba(247, 240, 228, 0.58);
}

.nav-cta { width: 100%; }

/* ---------- 8. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 44px;
  padding: 0.62em 1.5em;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.2s ease, filter 0.2s ease;
}

.btn-gold {
  background-color: var(--gold);
  background-image: var(--gold-metal);
  color: #33220A;
  border-color: #B98A3D;
}

.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
  opacity: 0.92;
}

.btn-ghost:hover {
  background-image: var(--gold-metal);
  background-color: var(--gold);
  color: #33220A;
  border-color: var(--gold);
  opacity: 1;
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

/* ---------- 9. 布局基础件 ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(48px, 6.5vw, 96px);
  position: relative;
}

.section--paper {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(135deg, rgba(42, 30, 24, 0.035) 0 1px, transparent 1px 10px);
  border-block: 1px solid var(--hairline);
}

.section--ink {
  background-color: var(--ink);
  color: rgba(247, 240, 228, 0.84);
}

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

.section--vermilion {
  background-color: var(--vermilion);
  color: rgba(247, 240, 228, 0.86);
}

.section--vermilion h1,
.section--vermilion h2,
.section--vermilion h3,
.section--vermilion h4 { color: var(--ivory); }

.grid-2,
.grid-3 {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

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

/* ---------- 10. 标题件 ---------- */
.rule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.section--ink .eyebrow,
.section--vermilion .eyebrow { color: rgba(228, 199, 123, 0.9); }

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 0.6vw + 14px, 19px);
  line-height: 1.82;
  color: var(--text-soft);
}

.section--ink .lede,
.section--vermilion .lede { color: rgba(247, 240, 228, 0.76); }

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.breadcrumb a {
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "／";
  margin: 0 8px;
  color: var(--gold);
}

.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- 12. 卡片与标签 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 32px);
  background: var(--card);
  border: 1px solid var(--rule);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -30px rgba(20, 16, 14, 0.75);
}

.card--ink {
  background: var(--ink);
  color: rgba(247, 240, 228, 0.82);
  border-color: rgba(201, 162, 74, 0.3);
}

.card--ink h3,
.card--ink h4 { color: var(--ivory); }

.card--paper {
  background: var(--paper);
  background-image: repeating-linear-gradient(135deg, rgba(42, 30, 24, 0.035) 0 1px, transparent 1px 10px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.3em 0.72em;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--vermilion);
  background: rgba(201, 162, 74, 0.1);
  border: 1px solid var(--rule);
}

.tag--gold {
  color: #4A3208;
  background-image: var(--gold-metal);
  border-color: #B98A3D;
}

.tag--slate {
  color: var(--slate);
  background: var(--slate-tint);
  border-color: rgba(94, 109, 122, 0.28);
}

/* ---------- 13. 数据叙事单元 ---------- */
.stat { display: grid; gap: 6px; }

.stat-value {
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.05;
  color: var(--vermilion);
}

.section--ink .stat-value,
.card--ink .stat-value { color: var(--gold-bright); }

.stat-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

.section--ink .stat-label,
.card--ink .stat-label { color: rgba(247, 240, 228, 0.58); }

/* ---------- 14. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(135deg, rgba(42, 30, 24, 0.05) 0 1px, transparent 1px 10px);
  border: 1px solid var(--rule);
}

.figure > img,
.figure > picture,
.figure > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure > picture { display: block; }

.figure--16x10 { aspect-ratio: 16 / 10; }
.figure--4x5 { aspect-ratio: 4 / 5; }
.figure--1x1 { aspect-ratio: 1 / 1; }
.figure--3x1 { aspect-ratio: 3 / 1; }

.figure--framed::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(201, 162, 74, 0.45);
  pointer-events: none;
}

.figure-caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  background-color: var(--vermilion-deep);
  background-image:
    radial-gradient(120% 80% at 100% 0%, rgba(110, 16, 36, 0.85) 0%, rgba(74, 11, 25, 0) 62%),
    repeating-linear-gradient(135deg, rgba(247, 240, 228, 0.022) 0 1px, transparent 1px 9px);
  color: rgba(247, 240, 228, 0.78);
  border-top: 1px solid var(--rule-strong);
}

.footer-inner {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(40px, 5.5vw, 76px) var(--gutter) 26px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(26px, 3.6vw, 44px);
  border-bottom: 1px solid rgba(201, 162, 74, 0.28);
}

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

.footer-wordmark {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.25;
  color: var(--ivory);
}

.footer-wordmark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 3px;
  background-image: var(--gold-metal);
}

.footer-summary {
  margin-top: 14px;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(247, 240, 228, 0.66);
}

.footer-seal {
  position: relative;
  flex: none;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 162, 74, 0.55);
  border-radius: 50%;
  color: rgba(228, 199, 123, 0.9);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-align: center;
}

.footer-seal-ring {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 162, 74, 0.26);
  border-radius: 50%;
}

.footer-seal-text { position: relative; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(26px, 3.6vw, 44px);
  border-bottom: 1px solid rgba(201, 162, 74, 0.28);
}

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

.footer-heading {
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-list { display: grid; gap: 10px; }

.footer-item {
  display: grid;
  grid-template-columns: 5.4em minmax(0, 1fr);
  gap: 12px;
  font-size: 13px;
  line-height: 1.72;
}

.footer-key {
  color: rgba(247, 240, 228, 0.46);
  letter-spacing: 0.08em;
}

.footer-val {
  color: rgba(247, 240, 228, 0.9);
  overflow-wrap: anywhere;
}

.footer-scale {
  position: relative;
  height: 18px;
  margin: 8px 0 14px;
  border-bottom: 1px solid rgba(201, 162, 74, 0.36);
  background-image: repeating-linear-gradient(90deg, rgba(201, 162, 74, 0.52) 0 1px, transparent 1px 14px);
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: 14px 8px;
}

.footer-scale-fill {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 38%;
  height: 2px;
  background-image: var(--gold-metal);
}

.footer-note {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(247, 240, 228, 0.6);
}

.footer-links { display: grid; gap: 10px; }

.footer-links a {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: rgba(247, 240, 228, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-links a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 22px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(247, 240, 228, 0.48);
}

.footer-icp,
.footer-copy { margin: 0; }

/* ---------- 16. 进入视口渐显 ---------- */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 17. 响应式 ---------- */
@media (min-width: 900px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  body { padding-top: var(--bar-h); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 0;
    border-bottom: 1px solid var(--rule-strong);
    box-shadow: 0 24px 44px -34px rgba(20, 16, 14, 0.95);
  }

  .header-frame {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    height: auto;
  }

  .brand-lockup {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 16px 18px;
    border-bottom: 0;
  }

  .brand-mark { width: 32px; height: 32px; font-size: 16px; }
  .brand-name { font-size: 16px; letter-spacing: 0.13em; }
  .brand-line { display: none; }

  .nav-toggle { display: flex; }

  .site-nav {
    flex: 0 0 100%;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: max-height 0.32s ease, border-color 0.32s ease;
  }

  .site-nav[data-open] {
    max-height: calc(100vh - var(--bar-h));
    max-height: calc(100dvh - var(--bar-h));
    overflow-y: auto;
    border-top-color: var(--rule);
  }

  .nav-index { padding: 6px 0 10px; }

  .nav-index a {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 13px 18px;
    font-size: 14.5px;
  }

  .nav-index a::after { right: 16px; }

  .nav-foot { padding: 16px 18px 22px; }

  .header-progress {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 2px;
  }

  .header-progress-fill {
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: left center;
  }

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

  #main-content { scroll-margin-top: calc(var(--bar-h) + 24px); }
}

@media (max-width: 640px) {
  .footer-top { flex-direction: column; }
  .footer-seal { width: 66px; height: 66px; font-size: 11px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid > .footer-col:last-child { grid-column: auto; }
  .footer-item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer-key { font-size: 11px; letter-spacing: 0.14em; }
  .footer-legal { justify-content: flex-start; }
}

/* ---------- 18. 减少动态效果 ---------- */
@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;
  }

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

  .skip-link { transition: none; }
  .header-progress-fill { transition: none; }
  .btn:hover,
  .card:hover { transform: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: none; top: -6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: none; bottom: -6px; }
}

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

  body {
    padding: 0;
    background: #fff;
    color: #000;
  }
}
