/* ============================================================
   ALLWINCITY 万象城官网 · 中文版共享样式 /assets/site.css
   结构：reset → 设计令牌 → 中文排版 → 无障碍 → 页头 → 侧边轨道
        → 本地入口带 → 页脚 → 通用组件 → 网格 → 响应式 → 动效降级
   ============================================================ */

/* ---------- 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, dt, dd, address { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

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

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

address { font-style: normal; }

[hidden] { display: none !important; }

/* ---------- 设计令牌 ---------- */
:root {
  --gold: #C79A3B;
  --gold-sand: #EBD9AE;
  --deep: #12362B;
  --mid: #1E5544;
  --mint: #DCE6E1;
  --coral: #FF6A45;
  --coral-deep: #D94A28;
  --paper: #FAF7F1;
  --mist: #A7B4C2;
  --ink: #14181A;

  --line: rgba(20, 24, 26, .16);
  --line-soft: rgba(20, 24, 26, .085);
  --line-light: rgba(250, 247, 241, .22);

  --rail-w: 88px;
  --shell-max: 1280px;
  --shell-wide: 1560px;
  --pad-x: clamp(18px, 4vw, 56px);
  --header-offset: 122px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 320ms;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-narrow: "Oswald", "Archivo Narrow", "Arial Narrow", "Noto Sans SC", sans-serif;
}

/* ---------- 基础排版 ---------- */
html { scroll-padding-top: var(--header-offset); }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  padding-left: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) { body { font-size: 18px; } }

h1, h2, h3, h4 {
  line-height: 1.14;
  letter-spacing: -.012em;
  font-weight: 900;
}

h1 { font-size: clamp(34px, 6.4vw, 86px); }
h2 { font-size: clamp(26px, 3.6vw, 46px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: .01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-narrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.label {
  font-family: var(--font-narrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.num {
  font-family: var(--font-narrow);
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.82;
  color: rgba(20, 24, 26, .78);
  max-width: 34em;
}

.prose { max-width: 34em; }
.prose p + p { margin-top: 1.05em; }
.prose h2, .prose h3 { margin-top: 1.5em; margin-bottom: .55em; }
.prose strong { font-weight: 700; }
.prose a { color: var(--coral-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin-top: .8em; }
.prose ul li { position: relative; padding-left: 20px; margin-top: .5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 10px;
  height: 1px;
  background: var(--gold);
}
.prose blockquote {
  margin-top: 1.4em;
  padding: 18px 22px;
  background: var(--mint);
  border-left: 2px solid var(--gold);
  font-family: var(--font-serif);
}

/* ---------- 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--deep);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: .08em;
  border-left: 2px solid var(--coral);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus { top: 14px; }

@media (min-width: 1080px) {
  .skip-link { left: calc(var(--rail-w) + 20px); }
}

#main-content { scroll-margin-top: var(--header-offset); }

/* ---------- 页头 ---------- */
.site-header {
  position: relative;
  z-index: 80;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(250, 247, 241, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar__inner {
  width: 100%;
  max-width: var(--shell-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 28px);
  min-height: 62px;
  padding-inline: var(--pad-x);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-block: 10px;
  transition: color var(--dur) var(--ease);
}

.brand:hover .brand__mark { color: var(--coral-deep); }

.brand__mark {
  font-family: var(--font-narrow);
  font-weight: 800;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--deep);
  transition: color var(--dur) var(--ease);
}

.brand__cn {
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(20, 24, 26, .62);
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.brand__ver {
  font-family: var(--font-narrow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #7d5f1a;
  border: 1px solid var(--gold);
  background: var(--gold-sand);
  padding: 2px 6px;
}

.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--deep);
  padding: 9px 14px;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--deep);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover { background: var(--deep); color: var(--paper); }

.nav-toggle[aria-expanded="true"] { background: var(--deep); color: var(--paper); }

.nav-toggle__icon {
  display: inline-block;
  width: 16px;
  height: 10px;
  background:
    repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 5px);
}

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
}

/* ---------- 滚动进度线 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  pointer-events: none;
}

/* ---------- 本地首页导航带 ---------- */
.entryband {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(235, 217, 174, .42), rgba(250, 247, 241, 0));
  overflow: hidden;
}

.entryband__nav {
  max-width: var(--shell-wide);
  margin-inline: auto;
}

.entryband__list {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  padding-inline: var(--pad-x);
  scrollbar-width: none;
}

.entryband__list::-webkit-scrollbar { display: none; }

.entryband__item { flex: 0 0 auto; }

.entryband__item + .entryband__item { border-left: 1px solid var(--line-soft); }

.entryband__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px clamp(14px, 1.6vw, 22px);
  font-size: 14px;
  letter-spacing: .04em;
  white-space: nowrap;
  color: rgba(20, 24, 26, .78);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.entryband__link:hover {
  color: var(--deep);
  background: rgba(235, 217, 174, .55);
}

.entryband__link[aria-current="page"] {
  color: var(--deep);
  font-weight: 700;
}

.entryband__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: clamp(14px, 1.6vw, 22px);
  right: clamp(14px, 1.6vw, 22px);
  bottom: 0;
  height: 2px;
  background: var(--coral);
}

.entryband__num {
  font-family: var(--font-narrow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

/* ---------- 侧边轨道导航（桌面） ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 20px 0 18px;
  background: var(--deep);
  color: var(--paper);
  visibility: visible;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line-light);
}

.rail__wordmark {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-narrow);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-sand);
  transition: color var(--dur) var(--ease);
}

.rail__wordmark:hover { color: var(--coral); }

.rail__ver {
  font-family: var(--font-narrow);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold);
  border: 1px solid rgba(199, 154, 59, .65);
  padding: 2px 5px;
}

.rail__close { display: none; }

.rail__nav {
  flex: 1 1 auto;
  padding-top: 14px;
  overflow: visible;
}

.rail__list { display: flex; flex-direction: column; }

.rail__item { position: relative; }

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  color: rgba(250, 247, 241, .72);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.rail__link:hover { color: var(--paper); background: var(--mid); }

.rail__num {
  font-family: var(--font-narrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}

.rail__label {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(-10px, -50%);
  opacity: 0;
  visibility: hidden;
  padding: 10px 18px;
  background: var(--deep);
  color: var(--paper);
  border-left: 2px solid var(--gold);
  font-size: 13px;
  letter-spacing: .1em;
  white-space: nowrap;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.rail__link:hover .rail__label,
.rail__link:focus-visible .rail__label {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.rail__link[aria-current="page"] {
  color: var(--paper);
  background: rgba(30, 85, 68, .95);
}

.rail__link[aria-current="page"] .rail__num { color: var(--coral); }

.rail__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--coral);
}

.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
}

.rail__dot {
  width: 6px;
  height: 6px;
  background: var(--coral);
}

.rail__cta {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--gold-sand);
  border: 1px solid rgba(199, 154, 59, .55);
  padding: 14px 7px;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.rail__cta:hover { background: var(--gold); color: #1b1405; }

.rail-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(18, 54, 43, .58);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 110px);
  background: var(--deep);
  color: rgba(250, 247, 241, .84);
  border-top: 3px solid var(--gold);
}

.footer__inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 74px) var(--pad-x) clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.footer__col--brand { border-left: 2px solid var(--gold); padding-left: 18px; }

.footer__mark {
  font-family: var(--font-narrow);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper);
}

.footer__cn {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: .08em;
  color: rgba(250, 247, 241, .74);
}

.footer__meta {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(250, 247, 241, .62);
}

.footer__ver {
  font-family: var(--font-narrow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #1b1405;
  background: var(--gold);
  padding: 2px 6px;
  margin-right: 8px;
}

.footer__title {
  font-family: var(--font-narrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-light);
}

.footer__list li + li { margin-top: 9px; }

.footer__list a {
  font-size: 15px;
  color: rgba(250, 247, 241, .86);
  transition: color var(--dur) var(--ease);
}

.footer__list a:hover { color: var(--coral); }

.footer__contact {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(250, 247, 241, .86);
}

.footer__note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(250, 247, 241, .6);
}

.footer__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--gold-sand);
  border-bottom: 1px solid rgba(199, 154, 59, .6);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer__link:hover { color: var(--coral); border-color: var(--coral); }

.footer__legal { border-top: 1px solid var(--line-light); }

.footer__legal-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 18px var(--pad-x) 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: space-between;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(250, 247, 241, .62);
}

/* ---------- 容器与分区 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container--wide { max-width: var(--shell-wide); }

.container--narrow { max-width: 880px; }

.section { padding-block: clamp(44px, 7vw, 96px); }

.section--divided { border-top: 1px solid var(--line-soft); }

.band { padding-block: clamp(40px, 6vw, 84px); }

.band--warm {
  background: linear-gradient(180deg, rgba(235, 217, 174, .55), rgba(250, 247, 241, 0));
  border-block: 1px solid var(--line-soft);
}

.band--cool {
  background: linear-gradient(180deg, rgba(167, 180, 194, .26), rgba(167, 180, 194, .12));
  border-block: 1px solid var(--line-soft);
}

.band--mint { background: var(--mint); }

.band--dark { background: var(--deep); color: rgba(250, 247, 241, .88); }

.band--dark h2,
.band--dark h3,
.band--dark h4 { color: var(--paper); }

.band--dark .lede,
.band--dark .prose { color: rgba(250, 247, 241, .8); }

/* ---------- 细线与切角装饰 ---------- */
.rule {
  height: 1px;
  width: 100%;
  background: var(--line);
  border: 0;
}

.rule--gold { background: linear-gradient(90deg, var(--gold), rgba(199, 154, 59, 0)); }

.rule--mist { background: var(--mist); }

.slash-mark {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--mist);
  transform: rotate(-24deg);
}

.cut-panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.cut-panel--mint { background: var(--mint); border-color: transparent; }

.cut-panel--dark {
  background: var(--deep);
  color: rgba(250, 247, 241, .86);
  border-color: transparent;
}

.cut-panel--dark h3,
.cut-panel--dark h4 { color: var(--paper); }

/* ---------- 小标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-narrow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7d5f1a;
  background: var(--gold-sand);
  border: 1px solid rgba(199, 154, 59, .5);
  padding: 3px 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--deep);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 5px 12px;
}

.chip--coral { color: var(--coral-deep); border-color: rgba(217, 74, 40, .42); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  font-size: 14px;
  letter-spacing: .1em;
  background: var(--deep);
  color: var(--paper);
  border: 1px solid var(--deep);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:hover { background: var(--mid); border-color: var(--mid); }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #1b1405;
}

.btn--gold:hover { background: #b98d31; border-color: #b98d31; }

.btn--coral {
  background: var(--coral);
  border-color: var(--coral);
  color: #2a1008;
}

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

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

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

.btn--quiet {
  background: transparent;
  color: var(--deep);
  border-color: var(--line);
}

.btn--quiet:hover { background: var(--gold-sand); border-color: var(--gold); }

.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding-block: 16px; }

.breadcrumb__list,
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(20, 24, 26, .62);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 10px;
  color: var(--mist);
}

.breadcrumb a { transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--coral-deep); }

/* ---------- 章节标题 ---------- */
.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 42px);
}

.section-head__num {
  font-family: var(--font-narrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head__title { max-width: 22em; }

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    column-gap: clamp(32px, 5vw, 72px);
  }
  .section-head--split .section-head__num { grid-column: 1 / -1; }
}

/* ---------- 索引行（金色游标） ---------- */
.index-list { border-top: 1px solid var(--line); }

.index-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 4px 18px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.index-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 2px;
  background: var(--coral);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform var(--dur) var(--ease);
}

.index-item:hover,
.index-item:focus-within {
  padding-left: 16px;
  background: rgba(235, 217, 174, .3);
}

.index-item:hover::before,
.index-item:focus-within::before { transform: scaleY(1); }

.index-item__num {
  font-family: var(--font-narrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

.index-item__body { min-width: 0; }

.index-item__body h3,
.index-item__body h4 { margin-bottom: 4px; }

.index-item__body p {
  font-size: 15px;
  color: rgba(20, 24, 26, .72);
  max-width: 34em;
}

.index-item__meta {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(20, 24, 26, .55);
  white-space: nowrap;
}

/* ---------- 数据结构行 ---------- */
.data-list { border-top: 1px solid var(--line); }

.data-row {
  display: grid;
  grid-template-columns: minmax(88px, 150px) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}

.data-row dt {
  font-family: var(--font-narrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.data-row dd { color: rgba(20, 24, 26, .86); }

/* ---------- 指标 ---------- */
.stat__num {
  font-family: var(--font-narrow);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--deep);
  letter-spacing: .02em;
}

.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(20, 24, 26, .66);
}

/* ---------- 图像容器 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--mint);
  border: 1px solid var(--line-soft);
}

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

.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--21x9 { aspect-ratio: 21 / 9; }
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--3x2 { aspect-ratio: 3 / 2; }
.img-frame--1x1 { aspect-ratio: 1 / 1; }
.img-frame--3x4 { aspect-ratio: 3 / 4; }

.img-frame--cut {
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.img-caption {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: rgba(20, 24, 26, .68);
}

/* ---------- 标签页 ---------- */
.tabs { border-top: 1px solid var(--line); }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.tabs__tab {
  position: relative;
  padding: 14px clamp(14px, 2vw, 24px);
  font-size: 14px;
  letter-spacing: .08em;
  color: rgba(20, 24, 26, .66);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.tabs__tab + .tabs__tab { border-left: 1px solid var(--line-soft); }

.tabs__tab:hover { color: var(--deep); background: rgba(220, 230, 225, .7); }

.tabs__tab[aria-selected="true"] {
  color: var(--deep);
  font-weight: 700;
  background: rgba(235, 217, 174, .42);
}

.tabs__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--coral);
}

.tabs__panel { padding-top: clamp(22px, 3vw, 36px); }

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

.filter-btn {
  padding: 8px 15px;
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(20, 24, 26, .74);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.filter-btn:hover { border-color: var(--gold); color: var(--deep); }

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

.filter-count {
  font-family: var(--font-narrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold);
}

/* ---------- 网格 ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }

@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

@media (min-width: 900px) {
  .grid--index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 4vw, 64px);
  }
}

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

@media (min-width: 1024px) {
  .grid--split {
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
  }
}

.sticky-index { position: sticky; top: var(--header-offset); }

/* ---------- 动效与显现 ---------- */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

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

/* ---------- 响应式：抽屉与轨道 ---------- */
@media (min-width: 1080px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 1079px) {
  .rail {
    inset: 0 auto 0 0;
    width: min(84vw, 340px);
    padding: 18px 0 22px;
    visibility: hidden;
    transform: translateX(-101%);
    transition: transform 340ms var(--ease), visibility 340ms var(--ease);
    overflow-y: auto;
  }

  .site-header[data-open] .rail {
    visibility: visible;
    transform: none;
  }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 20px 16px;
  }

  .rail__wordmark {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 16px;
    letter-spacing: .2em;
  }

  .rail__close {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 6px 11px;
    font-size: 12px;
    letter-spacing: .12em;
    color: rgba(250, 247, 241, .82);
    border: 1px solid rgba(250, 247, 241, .4);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  }

  .rail__close:hover { background: var(--paper); color: var(--deep); }

  .rail__nav { padding-top: 10px; }

  .rail__link {
    justify-content: flex-start;
    gap: 16px;
    min-height: 58px;
    padding: 0 22px;
    font-size: 16px;
    color: rgba(250, 247, 241, .82);
  }

  .rail__num { font-size: 13px; color: var(--gold); }

  .rail__label {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    background: none;
    border-left: 0;
    font-size: 16px;
    letter-spacing: .05em;
    color: inherit;
  }

  .rail__link[aria-current="page"] { background: rgba(30, 85, 68, .95); }

  .rail__link[aria-current="page"]::before { width: 3px; }

  .rail__foot {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    margin: 18px 22px 0;
    padding-top: 18px;
  }

  .rail__cta {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: .16em;
    padding: 9px 16px;
  }

  .rail-scrim { display: block; }

  .site-header[data-open] .rail-scrim {
    opacity: 1;
    visibility: visible;
  }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  html.js-ready [data-reveal],
  html.js-ready [data-reveal].is-revealed {
    opacity: 1 !important;
    transform: none !important;
  }

  .rail { transition: none; }
}
