/* ============================================================
   永丽皇宫品牌 · 共享样式表  /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, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #14100E;
  --paper: #F7F3EA;
  --paper-2: #E3DCD0;
  --red: #7A1220;
  --red-2: #A8232F;
  --gold: #C9A24B;
  --gold-hi: #E7C877;
  --jade: #1F6B54;
  --smoke: #5C5349;
  --glass: rgba(247, 243, 234, 0.62);
  --line: rgba(201, 162, 75, 0.38);
  --line-soft: rgba(20, 16, 14, 0.12);

  --rail: 88px;
  --wrap: 1180px;
  --gap: clamp(20px, 3vw, 40px);
  --sec: clamp(56px, 8vw, 120px);

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

  --fs-display: clamp(2.25rem, 1.1rem + 4.2vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-h3: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-panel: 0 18px 48px -28px rgba(20, 16, 14, 0.55);
}

/* ---------- 3. Page base ---------- */
body {
  padding-left: var(--rail);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: var(--gold-hi); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

#main-content { scroll-margin-top: 24px; }
#main-content:focus { outline: none; }

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail) + 12px);
  z-index: 200;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--gold-hi);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  border: 1px solid var(--gold);
  transform: translateY(-190%);
  transition: transform 0.18s ease-out;
}

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

/* ---------- 5. Header：侧边卷轴脊 ---------- */
.emp-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 90;
}

.emp-header__spine {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 26px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-right: 1px solid rgba(201, 162, 75, 0.42);
  transition: background 0.22s ease-out, border-color 0.22s ease-out;
}

.emp-header.is-solid .emp-header__spine {
  background: var(--paper);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-right-color: var(--gold);
}

.emp-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: inherit;
}

.emp-brand__seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--gold-hi);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px rgba(201, 162, 75, 0.32);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.emp-brand:hover .emp-brand__seal {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 3px rgba(201, 162, 75, 0.6), 0 0 0 4px rgba(201, 162, 75, 0.16);
}

.emp-brand__name {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--ink);
}

.scroll-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.scroll-toggle__rod {
  position: relative;
  display: block;
  width: 2px;
  height: 44px;
  background: var(--gold);
  transform-origin: center;
  transition: background 0.18s ease-out, transform 0.2s var(--ease);
}

.scroll-toggle__rod::before,
.scroll-toggle__rod::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 2px;
  background: var(--red-2);
  transition: background 0.18s ease-out;
}

.scroll-toggle__rod::before { top: 0; }
.scroll-toggle__rod::after { bottom: 0; }

.scroll-toggle__label {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--smoke);
  transition: color 0.18s ease-out;
}

.scroll-toggle:hover .scroll-toggle__rod,
.scroll-toggle:focus-visible .scroll-toggle__rod { transform: scaleY(1.32); }

.scroll-toggle:hover .scroll-toggle__rod::before,
.scroll-toggle:hover .scroll-toggle__rod::after,
.scroll-toggle:focus-visible .scroll-toggle__rod::before,
.scroll-toggle:focus-visible .scroll-toggle__rod::after { background: var(--gold-hi); }

.scroll-toggle:hover .scroll-toggle__label,
.scroll-toggle:focus-visible .scroll-toggle__label { color: var(--red-2); }

.emp-header[data-open] .scroll-toggle__rod { background: var(--gold-hi); }
.emp-header[data-open] .scroll-toggle__label { color: var(--gold-hi); }

.emp-header__cta {
  writing-mode: vertical-rl;
  padding: 18px 10px;
  background: var(--red);
  color: var(--gold-hi);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.24em;
  border: 1px solid var(--red-2);
  transition: background 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out, transform 0.18s ease-out;
}

.emp-header__cta:hover,
.emp-header__cta:focus-visible {
  background: var(--ink);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.emp-header__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3px;
  height: calc(var(--p, 0) * 100%);
  z-index: 4;
  background: linear-gradient(180deg, var(--gold-hi), var(--red-2));
  transition: height 0.1s linear;
}

/* ---------- 6. 卷轴栏目面板 ---------- */
.emp-nav {
  position: fixed;
  top: 0;
  left: var(--rail);
  z-index: 2;
  width: min(340px, calc(100vw - var(--rail) - 20px));
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 56px 34px 40px;
  overflow-y: auto;
  background: var(--ink);
  border-right: 1px solid rgba(201, 162, 75, 0.35);
  box-shadow: 28px 0 70px -46px rgba(0, 0, 0, 0.95);
  visibility: hidden;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.2s ease-out, transform 0.24s var(--ease), visibility 0s linear 0.24s;
}

.emp-header[data-open] .emp-nav {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0s;
}

.emp-nav__list { display: flex; flex-direction: column; }

.emp-nav__item { border-bottom: 1px solid rgba(247, 243, 234, 0.1); }
.emp-nav__item:first-child { border-top: 1px solid rgba(247, 243, 234, 0.1); }

.emp-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 17px 4px 17px 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: rgba(247, 243, 234, 0.86);
  transition: color 0.18s ease-out, padding-left 0.22s var(--ease);
}

.emp-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.22s var(--ease);
}

.emp-nav__link:hover,
.emp-nav__link:focus-visible { color: var(--gold-hi); padding-left: 12px; }
.emp-nav__link:hover::after,
.emp-nav__link:focus-visible::after { width: 100%; }

.emp-nav__link[aria-current="page"] { color: var(--gold-hi); }
.emp-nav__link[aria-current="page"]::after { width: 100%; }

.emp-nav__index {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.emp-nav__link[aria-current="page"] .emp-nav__index { color: var(--gold-hi); }

.emp-nav__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.emp-nav__meta {
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 234, 0.6);
}

.emp-nav__cta {
  width: 100%;
  justify-content: center;
}

.emp-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(20, 16, 14, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.emp-header[data-open] .emp-scrim {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 140px);
  margin-left: calc(-1 * var(--rail));
  width: calc(100% + var(--rail));
  padding-left: var(--rail);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold) 45%, var(--gold-hi) 62%, var(--red-2));
}

.footer-inner {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr;
  gap: 44px 56px;
  padding: clamp(48px, 6vw, 84px) 0 clamp(36px, 4vw, 56px);
}

.footer-brand__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand__seal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--gold-hi);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px rgba(201, 162, 75, 0.28);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.footer-brand__tag {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.footer-brand__note {
  margin-top: 16px;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(247, 243, 234, 0.66);
}

.footer-col__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.28);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col__list a {
  position: relative;
  display: inline-block;
  font-size: 14.5px;
  color: rgba(247, 243, 234, 0.8);
  transition: color 0.18s ease-out, padding-left 0.2s var(--ease);
}

.footer-col__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.2s var(--ease);
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--gold-hi);
  padding-left: 6px;
}

.footer-col__list a:hover::after,
.footer-col__list a:focus-visible::after { width: calc(100% - 6px); }

.footer-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px 14px;
  font-size: 14px;
}

.footer-meta__k {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.footer-meta__v {
  line-height: 1.75;
  color: rgba(247, 243, 234, 0.82);
  word-break: break-word;
}

.footer-meta__note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(247, 243, 234, 0.55);
}

.footer-legal {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 24px 0 40px;
  border-top: 1px solid rgba(247, 243, 234, 0.12);
  font-size: 13px;
  color: rgba(247, 243, 234, 0.6);
}

.footer-legal__paths {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-legal__paths a { transition: color 0.18s ease-out; }
.footer-legal__paths a:hover,
.footer-legal__paths a:focus-visible { color: var(--gold-hi); }

/* ---------- 8. 容器与章节 ---------- */
.container {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
}

.section { padding: var(--sec) 0; }
.section--tight { padding: calc(var(--sec) * 0.55) 0; }

.section--ink { background: var(--ink); color: var(--paper); }
.section--red { background: var(--red); color: var(--paper); }
.section--paper2 { background: var(--paper-2); }

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

/* ---------- 9. 排版工具 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-2);
}

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

.section--ink .eyebrow,
.section--red .eyebrow { color: var(--gold-hi); }

.display {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.h2 { font-size: var(--fs-h2); font-weight: 800; }
.h3 { font-size: var(--fs-h3); font-weight: 700; }

.lede {
  max-width: 38em;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.85;
  color: var(--smoke);
}

.prose {
  max-width: 38em;
  line-height: 1.85;
}

.section--ink .lede,
.section--ink .prose,
.section--red .lede,
.section--red .prose { color: rgba(247, 243, 234, 0.78); }

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

.text-gold { color: var(--gold); }
.text-gold-hi { color: var(--gold-hi); }

/* ---------- 10. 细线与印章 ---------- */
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 75, 0));
}

.rule--center {
  background: linear-gradient(90deg, rgba(201, 162, 75, 0), var(--gold), rgba(201, 162, 75, 0));
}

.divider-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold);
}

.divider-mark::before,
.divider-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.seal-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  color: var(--gold-hi);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.15;
  text-align: center;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px rgba(201, 162, 75, 0.3);
}

.seal-badge--sm {
  width: 34px;
  height: 34px;
  font-size: 12px;
  box-shadow: inset 0 0 0 2px rgba(201, 162, 75, 0.3);
}

.seal-badge--jade { background: var(--jade); }

/* ---------- 11. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: background 0.18s ease-out, color 0.18s ease-out,
              border-color 0.18s ease-out, transform 0.18s ease-out;
}

.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }

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

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--gold-hi);
  border-color: var(--gold-hi);
}

.btn--red {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red-2);
}

.btn--red:hover,
.btn--red:focus-visible {
  background: var(--ink);
  border-color: var(--gold);
  color: var(--gold-hi);
}

.btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: var(--line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--red-2);
  color: var(--red-2);
}

.section--ink .btn--ghost:hover,
.section--ink .btn--ghost:focus-visible,
.section--red .btn--ghost:hover,
.section--red .btn--ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold-hi);
}

/* ---------- 12. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 22px 0;
  font-size: 13px;
  color: var(--smoke);
}

.crumbs__item {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.crumbs__sep { color: var(--gold); }

.crumbs a {
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 75, 0.5);
  text-underline-offset: 3px;
  transition: color 0.18s ease-out, text-decoration-color 0.18s ease-out;
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--red-2);
  text-decoration-color: var(--red-2);
}

.crumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 13. 面板 ---------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--red);
  transition: border-color 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.panel:hover {
  border-top-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-panel);
}

.panel__head { padding: 26px 26px 0; }

.panel__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--ink);
}

.panel__body {
  padding: 14px 26px 28px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--smoke);
}

.panel--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: rgba(247, 243, 234, 0.14);
}

.panel--ink .panel__title { color: var(--paper); }
.panel--ink .panel__body { color: rgba(247, 243, 234, 0.76); }

/* ---------- 14. 网格 ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}

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

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

.grid--offset > .col-a { grid-column: 3 / span 7; }
.grid--offset > .col-b { grid-column: 9 / span 4; }
.grid--offset > .col-c { grid-column: 2 / span 5; }
.grid--offset > .col-d { grid-column: 8 / span 4; }

/* ---------- 15. 数据与标签 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--red);
}

.section--ink .stat__num,
.section--red .stat__num { color: var(--gold-hi); }

.stat__label {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--smoke);
}

.section--ink .stat__label,
.section--red .stat__label { color: rgba(247, 243, 234, 0.7); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  border: 1px solid var(--gold);
  color: var(--red-2);
  white-space: nowrap;
}

.tag--jade { border-color: var(--jade); color: var(--jade); }

.tag--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ---------- 16. 影像容器 ---------- */
.figure-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
}

.figure-frame__media {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.figure-frame__media:not(img) {
  background:
    linear-gradient(135deg, rgba(122, 18, 32, 0.94) 0%, rgba(20, 16, 14, 0.94) 58%, rgba(201, 162, 75, 0.32) 100%);
}

.figure-frame:hover .figure-frame__media { transform: scale(1.03); }

.figure-frame--wide .figure-frame__media { aspect-ratio: 21 / 9; }
.figure-frame--tall .figure-frame__media { aspect-ratio: 3 / 4; }
.figure-frame--square .figure-frame__media { aspect-ratio: 1 / 1; }
.figure-frame--ink { background: var(--ink); }

.figure-frame__caption {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--smoke);
}

.section--ink .figure-frame__caption,
.section--red .figure-frame__caption { color: rgba(247, 243, 234, 0.62); }

/* ---------- 17. 排列工具 ---------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.stack--sm { gap: 14px; }

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

/* ---------- 18. 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease-out, transform 0.45s var(--ease);
}

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

/* ---------- 19. 响应式 ---------- */
@media (max-width: 1080px) {
  .grid--7-3,
  .grid--3-7 { grid-template-columns: 1fr; }
  .grid--offset > .col-a,
  .grid--offset > .col-b,
  .grid--offset > .col-c,
  .grid--offset > .col-d { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --rail: 0px; }

  body {
    padding-left: 0;
    padding-top: 64px;
    font-size: 16px;
  }

  .skip-link { left: 12px; }

  .emp-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 64px;
  }

  .emp-header__spine {
    inset: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(201, 162, 75, 0.42);
  }

  .emp-header.is-solid .emp-header__spine { border-bottom-color: var(--gold); }

  .emp-brand {
    flex-direction: row;
    gap: 10px;
  }

  .emp-brand__seal {
    width: 36px;
    height: 36px;
    font-size: 16px;
    box-shadow: inset 0 0 0 2px rgba(201, 162, 75, 0.32);
  }

  .emp-brand__name {
    writing-mode: horizontal-tb;
    font-size: 15px;
    letter-spacing: 0.16em;
  }

  .scroll-toggle {
    flex-direction: row;
    gap: 10px;
  }

  .scroll-toggle__rod {
    width: 34px;
    height: 2px;
  }

  .scroll-toggle__rod::before,
  .scroll-toggle__rod::after {
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 9px;
  }

  .scroll-toggle__rod::before { left: 0; }
  .scroll-toggle__rod::after { right: 0; bottom: auto; }

  .scroll-toggle__label {
    writing-mode: horizontal-tb;
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  .emp-header__cta {
    writing-mode: horizontal-tb;
    padding: 9px 15px;
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .emp-nav {
    top: 64px;
    left: 0;
    width: min(360px, 88vw);
    height: calc(100% - 64px);
    padding: 28px 24px 32px;
    transform: translateX(-24px);
  }

  .emp-header__progress {
    top: auto;
    left: 0;
    bottom: -3px;
    width: calc(var(--p, 0) * 100%);
    height: 3px;
  }

  .footer-inner { gap: 36px 32px; }
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
}

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

  .container,
  .container--narrow { width: min(100% - 32px, var(--wrap)); }

  .footer-inner,
  .footer-legal { width: min(100% - 32px, var(--wrap)); }

  .footer-inner { grid-template-columns: 1fr; }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal__paths { gap: 16px; }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ---------- 20. 减弱动效 ---------- */
@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;
  }

  .emp-header__progress { transition: none; }
  .btn:hover,
  .btn:focus-visible { transform: none; }
  .panel:hover { transform: none; }
  .figure-frame:hover .figure-frame__media { transform: none; }

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