/* =========================================================
   乐投官网安装 · 共享样式 /assets/site.css
   年鉴台账 × 安装验资 · 侧边轨道 + 铜橙锚点
   ========================================================= */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.is-nav-open { overflow: hidden; }

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%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --indigo: #1B2A4A;
  --indigo-deep: #0E1A2E;
  --indigo-soft: #24365C;
  --copper: #C87A2E;
  --copper-soft: #E4B77F;
  --teal: #0E5E6F;
  --paper: #F4F6F9;
  --white: #FFFFFF;
  --muted: #6B7688;
  --line: #D8DEE7;
  --ink: #0B1220;
  --on-dark: #E9EEF6;
  --on-dark-dim: #9FB0C9;

  --rail-w: 240px;
  --topbar-h: 64px;
  --content-max: 1120px;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "Songti SC", STSong, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --shadow-1: 0 1px 0 rgba(11, 18, 32, .04), 0 8px 24px -18px rgba(11, 18, 32, .35);
  --shadow-2: 0 2px 4px -2px rgba(11, 18, 32, .12), 0 18px 40px -28px rgba(11, 18, 32, .45);
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--topbar-h);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main { display: block; flex: 1 0 auto; background: var(--paper); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .01em;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5.2vw, 72px); }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: 20px; }
p { max-width: 74ch; }

::selection { background: var(--copper); color: #fff; }

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

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

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

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section {
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }
.section.is-current { box-shadow: inset 3px 0 0 0 var(--copper); }
.section--dark { background: var(--indigo); color: var(--on-dark); border-top-color: transparent; }
.section--deep { background: var(--indigo-deep); color: var(--on-dark); border-top-color: transparent; }
.section--teal { background: var(--teal); color: #EAF4F6; border-top-color: transparent; }
.section--dark h1, .section--deep h1, .section--teal h1,
.section--dark h2, .section--deep h2, .section--teal h2,
.section--dark h3, .section--deep h3, .section--teal h3 { color: #fff; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.split {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}

.rule { height: 1px; background: var(--line); margin-block: clamp(24px, 4vw, 40px); }
.rule--copper { background: linear-gradient(90deg, var(--copper), rgba(200, 122, 46, 0)); }

/* ---------- 5. 页头 · 基础（移动端顶栏 + 抽屉） ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 100;
  background: var(--indigo);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 220;
  padding: 10px 16px;
  background: var(--copper);
  color: #fff;
  font-size: 14px;
  border-radius: 2px;
  transform: translateY(-220%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: none; }

.topbar {
  position: relative;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding-inline: 16px;
}
.topbar-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .02em;
  color: #fff;
}
.topbar-year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--copper-soft);
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, .22);
}
.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 2px;
  color: #fff;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--copper-soft); background: rgba(255, 255, 255, .12); }
.nav-toggle-bars { position: relative; display: inline-block; width: 16px; height: 10px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.site-header[data-open] .nav-toggle-bars::before { transform: translateY(4.2px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars::after { transform: translateY(-4.2px) rotate(-45deg); }
.nav-toggle-text { font-size: 13.5px; letter-spacing: .04em; }

.rail-panel {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 110;
  width: min(86vw, 320px);
  display: flex;
  flex-direction: column;
  padding: calc(var(--topbar-h) + 8px) 0 20px;
  background: var(--indigo-deep);
  color: var(--on-dark);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-102%);
  transition: transform .26s var(--ease);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .65);
}
.site-header[data-open] .rail-panel { transform: translateX(0); }

.rail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(11, 18, 32, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s var(--ease);
}
.site-header[data-open] .rail-backdrop { opacity: 1; pointer-events: auto; }

/* 品牌块 */
.brand {
  display: grid;
  gap: 6px;
  padding: 4px 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.brand-year {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  letter-spacing: .02em;
  color: #fff;
}
.brand-name { font-size: 16px; font-weight: 500; color: #fff; }
.brand-tag { font-size: 12.5px; line-height: 1.55; color: var(--on-dark-dim); max-width: 28ch; }

/* 滚动进度 */
.rail-progress {
  position: relative;
  height: 2px;
  margin: 0 22px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.rail-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--copper);
  transition: width .12s linear;
}

/* 轨道导航 */
.rail-nav { padding-top: 18px; }
.rail-label {
  padding: 0 22px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}
.nav-list { display: grid; }
.nav-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 22px;
  border-left: 2px solid transparent;
  font-size: 15px;
  color: var(--on-dark);
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-no { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--on-dark-dim); }
.nav-label { font-size: 15px; line-height: 1.4; }
.nav-link[aria-current="page"] {
  background: rgba(200, 122, 46, .16);
  border-left-color: var(--copper);
  color: #fff;
  font-weight: 500;
}
.nav-link[aria-current="page"] .nav-no { color: var(--copper-soft); }

/* 轨道支持入口 */
.rail-utility {
  margin-top: 22px;
  padding: 20px 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.rail-utility .rail-label { padding-inline: 0; }
.utility-list { display: grid; gap: 2px; margin-top: 6px; }
.utility-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--on-dark-dim);
  border-bottom: 1px dashed rgba(255, 255, 255, .12);
  transition: color .18s var(--ease);
}
.utility-link::after { content: "→"; font-family: var(--font-mono); font-size: 12px; color: var(--copper); }
.utility-link:hover { color: var(--copper-soft); }

/* 轨道底部：CTA + 页码 */
.rail-cta { margin: auto 22px 18px; }
.rail-foot {
  display: grid;
  gap: 6px;
  padding: 14px 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.rail-foot-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}
.rail-foot-line { display: flex; align-items: baseline; gap: 10px; }
.rail-chapter-no {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--copper);
}
.rail-chapter-name { font-size: 14px; color: #fff; }

/* ---------- 6. 页头 · 桌面侧边轨道 ---------- */
@media (min-width: 1024px) {
  body { padding-top: 0; padding-left: var(--rail-w); }

  .site-header {
    top: 0; bottom: 0; left: 0; right: auto;
    width: var(--rail-w);
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, #1B2A4A 0%, #16233D 100%);
  }
  .site-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--copper) 0%, var(--copper-soft) 55%, rgba(200, 122, 46, 0) 100%);
    z-index: 2;
  }

  .topbar { display: none; }
  .rail-backdrop { display: none; }

  .rail-panel {
    position: static;
    flex: 1 1 auto;
    min-height: 0;
    width: auto;
    padding: 30px 0 20px;
    background: transparent;
    box-shadow: none;
    transform: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
  }
  .rail-panel::-webkit-scrollbar { width: 6px; }
  .rail-panel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); }

  .brand { padding: 0 22px 20px; }
  .brand-year { font-size: 44px; }
  .nav-link { padding: 12px 22px; }

  .skip-link { left: calc(var(--rail-w) + 12px); }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  background: var(--indigo-deep);
  color: var(--on-dark);
  border-top: 3px solid var(--copper);
  padding-block: clamp(40px, 6vw, 72px) 28px;
  font-size: 14px;
}

.footer-grid { display: grid; gap: clamp(24px, 4vw, 40px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }

.footer-brand { max-width: 42ch; }
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: .02em;
}
.footer-tag { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--on-dark-dim); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--on-dark);
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper-soft);
}
.footer-links { display: grid; gap: 10px; }
.footer-links a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer-links a:hover { color: #fff; border-bottom-color: var(--copper); }

.footer-contact {
  display: grid;
  gap: 14px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
@media (min-width: 860px) { .footer-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-item { display: grid; gap: 4px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}
.contact-value { font-size: 14.5px; line-height: 1.55; color: #fff; word-break: break-word; }
.contact-value.mono { font-size: 14px; color: var(--copper-soft); }

.footer-note { margin-top: 18px; font-size: 12.5px; line-height: 1.65; color: var(--on-dark-dim); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px;
  color: var(--on-dark-dim);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal a {
  color: var(--on-dark-dim);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer-legal a:hover { color: var(--copper-soft); border-bottom-color: var(--copper-soft); }
.footer-icp { font-family: var(--font-mono); letter-spacing: .04em; }
.footer-copy { margin-left: auto; }

/* ---------- 8. 组件 · 章节与文字 ---------- */
.chapter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.chapter-no { font-family: var(--font-mono); font-size: 13px; letter-spacing: .18em; color: var(--copper); }
.chapter-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.15;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: #2A3A55; }
.section--dark .lede, .section--deep .lede, .section--teal .lede { color: var(--on-dark); }

/* ---------- 9. 组件 · 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--copper); color: #fff; }
.btn--primary:hover { background: #B06A22; }
.btn--ghost { background: transparent; color: var(--indigo); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--copper); color: var(--copper); }
.btn--quiet { background: rgba(255, 255, 255, .08); color: var(--on-dark); border-color: rgba(255, 255, 255, .22); }
.btn--quiet:hover { background: rgba(200, 122, 46, .22); border-color: var(--copper-soft); color: #fff; }
.btn--block { width: 100%; }

/* ---------- 10. 组件 · 卡片与数据件 ---------- */
.card {
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-1);
}
.card--flat { box-shadow: none; }
.card--accent { border-top: 2px solid var(--copper); }
.card--dark {
  background: var(--indigo-soft);
  border-color: rgba(255, 255, 255, .12);
  color: var(--on-dark);
  box-shadow: none;
}
.card-title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.25;
}
.card-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.card--dark .card-meta { color: var(--on-dark-dim); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--indigo);
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.chip:hover { border-color: var(--copper); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--copper-soft);
  border-color: var(--copper);
  color: #3A2408;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--teal);
}

.stat { display: grid; gap: 6px; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  color: var(--indigo);
}
.stat-label { font-size: 13px; color: var(--muted); }
.stat--dark .stat-value { color: #fff; }
.stat--dark .stat-label { color: var(--on-dark-dim); }

.deflist { display: grid; border-top: 1px solid var(--line); }
.deflist > div {
  display: grid;
  grid-template-columns: minmax(120px, 32%) 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.deflist dt { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.deflist dd { font-size: 15px; }
@media (max-width: 560px) {
  .deflist > div { grid-template-columns: 1fr; gap: 4px; }
}

.timeline { display: grid; gap: 20px; padding-left: 24px; border-left: 1px solid var(--line); }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px; top: 7px;
  width: 9px; height: 9px;
  background: var(--paper);
  border: 2px solid var(--copper);
  border-radius: 50%;
}
.timeline-year { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--copper); }

/* ---------- 11. 组件 · 面包屑 / 表格 / 问答 / 分段控件 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a:hover { color: var(--copper); }
.crumbs [aria-current="page"] { color: var(--ink); }

.table-scroll {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.data { min-width: 640px; font-size: 14px; }
.data th, .data td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.data thead th {
  background: var(--indigo-deep);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  white-space: nowrap;
}
.data tbody tr:hover { background: #FBFCFE; }
.data .is-focus { background: rgba(200, 122, 46, .10); }

.qa { background: var(--white); border: 1px solid var(--line); border-radius: 2px; }
.qa + .qa { margin-top: 10px; }
.qa summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "＋"; font-family: var(--font-mono); color: var(--copper); }
.qa[open] summary::before { content: "－"; }
.qa .qa-body { padding: 0 18px 18px; color: #2A3A55; }

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.segmented [role="tab"] {
  padding: 8px 16px;
  background: transparent;
  border: 0;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--muted);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.segmented [role="tab"]:hover { color: var(--indigo); }
.segmented [role="tab"][aria-selected="true"] { background: var(--indigo); color: #fff; }
[role="tabpanel"] { animation: panelIn .18s var(--ease); }
[role="tabpanel"][hidden] { display: none; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 12. 组件 · 图片容器 ---------- */
.figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--indigo);
  background-image: linear-gradient(135deg,
    rgba(255, 255, 255, .05) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, .05) 50%,
    rgba(255, 255, 255, .05) 75%, transparent 75%);
  background-size: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--4x3 { aspect-ratio: 4 / 3; }
.figure--1x1 { aspect-ratio: 1 / 1; }
.figure--wide { aspect-ratio: 21 / 9; }
.figure--portrait { aspect-ratio: 3 / 4; }
.figure--overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 50%, rgba(11, 18, 32, .55) 100%);
}
.figure-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- 13. 动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1023px) {
  .footer-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .rail-panel { transition: none; }
}
