/* =========================================================
   开元中心 · 共享样式 /assets/site.css
   墨黑 · 宣纸暖白 · 徽派青灰 · 朱砂红 · 黛蓝 · 稻壳黄
   ========================================================= */

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

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

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

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

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

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #14100E;
  --paper: #F6F1E7;
  --paper-sub: #E8E0D2;
  --gray: #6E7A78;
  --deep: #3B4644;
  --deep-2: #2B3432;
  --cinnabar: #B23A2E;
  --dai: #2F4A6B;
  --dai-soft: #A9BACD;
  --husk: #C9A96A;
  --dot: #CFC7B8;

  --line: 1px solid rgba(110, 122, 120, .36);
  --line-soft: 1px solid rgba(110, 122, 120, .2);
  --line-ink: 1px solid rgba(20, 16, 14, .55);
  --line-light: 1px solid rgba(246, 241, 231, .18);

  --font-head: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1440px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius-pill: 999px;
}

/* ---------- 3. 中文排版底座 ---------- */
body {
  position: relative;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 印刷网点底纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(207, 199, 184, .55) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: .4;
}

.page-main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

h1 { font-size: clamp(34px, 5.4vw, 68px); }
h2 { font-size: clamp(25px, 3.1vw, 38px); }
h3 { font-size: clamp(19px, 2.1vw, 24px); }
h4 { font-size: 18px; font-weight: 700; line-height: 1.4; }

p { max-width: 74ch; }

a {
  color: var(--dai);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration: underline;
}

strong { font-weight: 500; color: var(--ink); }

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

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 8px;
  z-index: 200;
  transform: translateY(-220%);
  padding: 11px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  text-decoration: none;
  color: var(--paper);
}

/* =========================================================
   5. 悬浮胶囊头部
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 12px var(--gutter);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: padding .32s var(--ease), background-color .32s var(--ease), border-color .32s var(--ease);
}

.site-header[data-scrolled] {
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(246, 241, 231, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom-color: rgba(110, 122, 120, .3);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .12s linear;
  pointer-events: none;
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* --- 品牌浮岛 --- */
.brand-island {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 20px 8px 14px;
  border: var(--line);
  border-radius: var(--radius-pill);
  background: rgba(246, 241, 231, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  text-decoration: none;
  transition: padding .32s var(--ease), border-color .16s var(--ease), background-color .32s var(--ease);
}

.brand:hover {
  text-decoration: none;
  border-color: rgba(20, 16, 14, .5);
}

.brand-mark {
  width: 24px;
  height: 18px;
  flex: none;
  background: var(--ink);
  clip-path: polygon(0 100%, 0 62%, 24% 62%, 24% 40%, 48% 40%, 48% 20%, 72% 20%, 72% 0, 100% 0, 100% 100%);
  transition: background-color .16s var(--ease);
}

.brand:hover .brand-mark { background: var(--cinnabar); }

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

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: .02em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--gray);
}

.site-header[data-scrolled] .brand-domain { display: none; }

/* --- 栏目胶囊 --- */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px 5px 12px;
  border: var(--line);
  border-radius: var(--radius-pill);
  background: rgba(246, 241, 231, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1px;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--deep);
  white-space: nowrap;
  text-decoration: none;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}

.nav-list a:hover {
  color: var(--ink);
  background: rgba(110, 122, 120, .14);
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  background: var(--cinnabar);
  transform: translateX(-50%);
}

.nav-divider {
  flex: none;
  width: 1px;
  height: 18px;
  margin: 0 6px;
  background: rgba(110, 122, 120, .34);
}

.nav-utility {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-utility-link {
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--gray);
  white-space: nowrap;
  text-decoration: none;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}

.nav-utility-link:hover {
  color: var(--ink);
  background: rgba(110, 122, 120, .12);
  text-decoration: none;
}

.nav-cta {
  display: inline-block;
  margin-left: 6px;
  padding: 8px 18px;
  border: 1px solid var(--dai);
  border-radius: var(--radius-pill);
  background: var(--dai);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}

.nav-cta:hover {
  background: transparent;
  color: var(--dai);
  text-decoration: none;
}

/* --- 移动端按钮 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: var(--line);
  border-radius: var(--radius-pill);
  background: rgba(246, 241, 231, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 12px;
}

.nav-toggle-bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1220px) {
  .nav-divider,
  .nav-utility { display: none; }
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  background: var(--deep);
  color: rgba(246, 241, 231, .84);
  font-size: 14.5px;
  line-height: 1.75;
  margin-top: clamp(72px, 9vw, 120px);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(246, 241, 231, .12) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: .6;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1;
  background: linear-gradient(90deg, var(--cinnabar) 0 8%, rgba(178, 58, 46, 0) 8% 100%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(44px, 5.6vw, 72px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) repeat(3, minmax(120px, .8fr)) minmax(210px, 1.3fr);
  gap: clamp(22px, 2.6vw, 44px);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
}

.footer-logo:hover {
  color: var(--husk);
  text-decoration: none;
}

.footer-logo .brand-mark { background: var(--husk); }
.footer-logo:hover .brand-mark { background: var(--paper); }

.footer-logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .02em;
}

.footer-domain {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: rgba(246, 241, 231, .54);
}

.footer-tagline {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(246, 241, 231, .62);
}

.footer-col-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: var(--line-light);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--husk);
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: rgba(246, 241, 231, .78);
  text-decoration: none;
  transition: color .16s var(--ease), transform .16s var(--ease);
}

.footer-links a:hover {
  color: var(--paper);
  transform: translateX(3px);
  text-decoration: none;
}

.contact-list {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  max-width: none;
  font-size: 13.5px;
  line-height: 1.65;
}

.contact-key {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(246, 241, 231, .5);
}

.contact-val {
  color: rgba(246, 241, 231, .9);
  word-break: break-word;
}

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

.contact-note {
  max-width: 40ch;
  margin-top: 16px;
  padding-top: 14px;
  border-top: var(--line-light);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(246, 241, 231, .58);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  margin-top: clamp(32px, 4vw, 52px);
  padding: 20px var(--gutter) 30px;
  border-top: var(--line-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  font-size: 12.5px;
  color: rgba(246, 241, 231, .6);
}

.footer-legal {
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

.footer-copy { max-width: none; }

.footer-return a {
  color: var(--husk);
  text-decoration: none;
}

.footer-return a:hover {
  color: var(--paper);
  text-decoration: underline;
}

/* =========================================================
   7. 内容容器与网格
   ========================================================= */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 960px; }

.page-main {
  padding-top: clamp(92px, 11vh, 124px);
}

.page-main--flush { padding-top: 0; }

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

.grid--split {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: start;
}

.grid--split > * { min-width: 0; }

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

.section + .section { border-top: var(--line); }

.section__head {
  max-width: 70ch;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: rgba(110, 122, 120, .3);
}

.rule--ink { background: rgba(20, 16, 14, .45); }

/* ---------- 8. 窄栏边注 ---------- */
.margin-note {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--deep);
}

.margin-note + .margin-note { margin-top: 28px; }

.margin-note__title {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gray);
}

.margin-list {
  display: flex;
  flex-direction: column;
}

.margin-list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: var(--line-soft);
  font-size: 14px;
  color: var(--deep);
  text-decoration: none;
  transition: color .16s var(--ease), padding-left .16s var(--ease);
}

.margin-list a:hover {
  color: var(--cinnabar);
  padding-left: 4px;
  text-decoration: none;
}

.margin-list a:last-child { border-bottom: 0; }

/* ---------- 9. 堆叠面板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  border: var(--line);
  background: rgba(246, 241, 231, .72);
}

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

.panel--ink {
  background: var(--deep);
  border-color: var(--deep);
  color: rgba(246, 241, 231, .88);
}

.panel--ink h2,
.panel--ink h3,
.panel--ink h4 { color: var(--paper); }

.panel--ink .panel__index { color: var(--husk); }

.panel--ink a { color: var(--husk); }

.panel__index {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--gray);
}

.panel + .panel { margin-top: -1px; }

/* ---------- 10. 状态、标签、导语 ---------- */
.status-dot {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--cinnabar);
}

.status-dot--idle { background: var(--gray); }
.status-dot--husk { background: var(--husk); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: var(--line-soft);
  background: rgba(232, 224, 210, .6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--deep);
}

.tag--cinnabar {
  color: var(--cinnabar);
  border-color: rgba(178, 58, 46, .4);
}

.tag--dai {
  color: var(--dai);
  border-color: rgba(47, 74, 107, .4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--gray);
}

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

.lede {
  max-width: 62ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.8;
  color: var(--deep);
}

.figure-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}

/* ---------- 11. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

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

.btn--primary:hover {
  background: transparent;
  color: var(--dai);
}

.btn--ghost {
  border-color: rgba(20, 16, 14, .35);
  color: var(--deep);
}

.btn--ghost:hover {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--paper);
}

/* ---------- 12. 面包屑 ---------- */
.breadcrumb { margin-bottom: 22px; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(110, 122, 120, .6);
}

.breadcrumb a {
  color: var(--deep);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--cinnabar);
  text-decoration: underline;
}

/* ---------- 13. 筛选条 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-bar button {
  padding: 7px 15px;
  border: 1px solid rgba(110, 122, 120, .42);
  background: transparent;
  color: var(--deep);
  font-size: 13.5px;
  letter-spacing: .02em;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.filter-bar button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-bar button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

[data-filter-item].is-shown {
  animation: kxItemIn .2s var(--ease) both;
}

@keyframes kxItemIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 14. 数据表 ---------- */
.table-wrap {
  overflow-x: auto;
  border: var(--line);
  background: rgba(246, 241, 231, .6);
}

.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 15px;
}

.data-table caption {
  padding: 14px 16px;
  border-bottom: var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--gray);
  text-align: left;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 46px;
  padding: 0 16px;
  background: var(--paper-sub);
  border-bottom: var(--line);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--deep);
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: var(--line-soft);
  line-height: 1.6;
  vertical-align: top;
}

.data-table tbody tr { transition: background-color .16s var(--ease); }
.data-table tbody tr:hover { background: rgba(110, 122, 120, .1); }
.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table .num {
  font-size: 1.25em;
  color: var(--ink);
}

/* ---------- 15. 折叠块 ---------- */
.fold { border-bottom: var(--line); }

.fold summary {
  position: relative;
  padding: 16px 34px 16px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.fold summary::-webkit-details-marker { display: none; }

.fold summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--gray);
  transform: translateY(-50%);
}

.fold summary::before {
  content: "";
  position: absolute;
  right: 10.75px;
  top: 50%;
  width: 1.5px;
  height: 10px;
  background: var(--gray);
  transform: translateY(-50%);
  transition: opacity .2s var(--ease);
}

.fold[open] summary::before { opacity: 0; }
.fold[open] summary { color: var(--dai); }

.fold__body {
  padding: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--deep);
}

/* ---------- 16. 图片容器 ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: var(--line);
  background: var(--paper-sub);
}

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

.figure--21x9 { aspect-ratio: 21 / 9; }
.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3  { aspect-ratio: 4 / 3; }
.figure--1x1  { aspect-ratio: 1 / 1; }
.figure--3x4  { aspect-ratio: 3 / 4; }

.figure figcaption {
  padding: 10px 14px;
  border-top: var(--line);
  background: rgba(232, 224, 210, .6);
  font-size: 13px;
  line-height: 1.6;
  color: var(--deep);
}

.figure__plate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--paper-sub);
  background-image:
    linear-gradient(rgba(110, 122, 120, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 122, 120, .16) 1px, transparent 1px);
  background-size: 32px 32px;
}

.figure__plate::after {
  content: "";
  width: 34%;
  max-width: 120px;
  height: 26%;
  background: var(--gray);
  opacity: .28;
  clip-path: polygon(0 100%, 0 62%, 24% 62%, 24% 40%, 48% 40%, 48% 20%, 72% 20%, 72% 0, 100% 0, 100% 100%);
}

/* ---------- 17. 显现动效 ---------- */
[data-reveal] {
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

[data-reveal].is-armed {
  opacity: 0;
  transform: translateY(12px);
}

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

/* =========================================================
   18. 响应式
   ========================================================= */
@media (max-width: 1200px) {
  .footer-inner {
    grid-template-columns: minmax(200px, 1.2fr) repeat(3, 1fr);
  }
  .footer-contact {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: var(--line-light);
  }
}

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

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

  .primary-nav {
    position: absolute;
    top: calc(100% + 6px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    border-color: rgba(110, 122, 120, .42);
    background: rgba(246, 241, 231, .99);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
  }

  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    padding: 12px 14px;
    border-bottom: var(--line-soft);
    border-radius: 10px;
    font-size: 16px;
  }

  .nav-list li:last-child a { border-bottom: 0; }

  .nav-list a[aria-current="page"]::after {
    left: auto;
    right: 14px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .nav-cta {
    margin: 12px 0 2px;
    padding: 12px 18px;
    text-align: center;
  }

  .brand-domain { display: none; }

  .grid--split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .grid { gap: 18px; }

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

@media (max-width: 720px) {
  h1 { font-size: clamp(30px, 8vw, 40px); }
  h2 { font-size: clamp(23px, 6vw, 30px); }

  .site-footer { font-size: 14px; }

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .data-table th,
  .data-table td { padding-inline: 12px; }
}

@media (max-width: 480px) {
  .brand { padding: 7px 16px 7px 12px; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 20px; height: 15px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-contact { grid-column: auto; }

  .contact-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- 19. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .scroll-progress { transition: none; }
}
