/* ==========================================================================
   大发彩票 · 数据档案主站 — 共享样式 /assets/site.css
   墨海蓝底 + 档案纸白 + 鎏金展签 + 朱砂数据点
   ========================================================================== */

:root {
  --ink-sea: #0A1C26;
  --night: #12313D;
  --paper: #F5F1E8;
  --mist: #D8D4C8;
  --gilt: #C7A24B;
  --gilt-lift: #D9B75F;
  --cinnabar: #B43A2E;
  --celadon: #5F8F7B;
  --ember: #D98245;
  --indigo: #3B355F;
  --tx-paper: #F8F5ED;
  --tx-ink: #0D1B21;
  --hair: rgba(216, 212, 200, 0.22);
  --hair-soft: rgba(216, 212, 200, 0.12);
  --hair-dark: rgba(13, 27, 33, 0.16);

  --shell-w: 1240px;
  --gutter: 24px;
  --ledger-h: 34px;
  --masthead-h: 78px;
  --header-total: calc(var(--ledger-h) + var(--masthead-h));

  --font-heading: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", ui-monospace, monospace;
  --font-label: "IBM Plex Sans Condensed", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;

  --ease: 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-fast: 180ms ease;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--tx-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }

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

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { line-height: 1.75; }

strong { font-weight: 700; }

/* 数字：等宽 + 表格数字 */
[data-num],
.is-num,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.02em;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gilt);
  color: var(--ink-sea);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--ease-fast);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

/* ---------- 容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  color: var(--tx-paper);
  background: linear-gradient(
    180deg,
    rgba(10, 28, 38, 0.92) 0%,
    rgba(10, 28, 38, 0.62) 58%,
    rgba(10, 28, 38, 0) 100%
  );
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.site-header.is-condensed {
  --ledger-h: 0px;
  --masthead-h: 64px;
  background: var(--ink-sea);
  border-bottom-color: var(--hair);
  box-shadow: 0 20px 44px -34px rgba(0, 0, 0, 0.95);
}

/* 档案条 */
.ledger-strip {
  height: var(--ledger-h);
  overflow: hidden;
  border-bottom: 1px solid var(--hair-soft);
  transition: height var(--ease), opacity var(--ease), border-color var(--ease);
}

.site-header.is-condensed .ledger-strip {
  opacity: 0;
  border-bottom-color: transparent;
}

.ledger-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: var(--ledger-h);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(216, 212, 200, 0.72);
  white-space: nowrap;
}

.ledger-strip__mark {
  color: var(--gilt);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ledger-strip__mark::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gilt);
}

.ledger-strip__note {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-strip__clock {
  color: rgba(216, 212, 200, 0.5);
  letter-spacing: 0.14em;
}

/* 主行 */
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--masthead-h);
  transition: min-height var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.brand__glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gilt);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  color: var(--gilt);
  background: rgba(199, 162, 75, 0.08);
  transition: background var(--ease-fast), color var(--ease-fast);
}

.brand:hover .brand__glyph,
.brand:focus-visible .brand__glyph {
  background: var(--gilt);
  color: var(--ink-sea);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--tx-paper);
}

.brand__lockup {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(199, 162, 75, 0.86);
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font-label);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: rgba(248, 245, 237, 0.76);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gilt);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease-fast);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--tx-paper);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--gilt);
}

.site-nav__link[aria-current="page"]::after {
  height: 2px;
  transform: scaleX(1);
}

.site-nav__item--cta { display: none; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-label);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast);
}

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

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

.btn--ghost {
  background: transparent;
  border-color: rgba(199, 162, 75, 0.55);
  color: var(--tx-paper);
}

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

.btn--stamp {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: var(--paper);
}

.btn--stamp:hover,
.btn--stamp:focus-visible {
  background: #c8483a;
  border-color: #c8483a;
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 4px;
}

/* 移动目录按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--tx-paper);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--ease-fast), color var(--ease-fast);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--gilt);
  color: var(--gilt);
}

.nav-toggle__bars {
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--gilt) 0 0) top / 100% 1px no-repeat,
    linear-gradient(var(--gilt) 0 0) center / 100% 1px no-repeat,
    linear-gradient(var(--gilt) 0 0) bottom / 100% 1px no-repeat;
  transition: opacity var(--ease-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__label { color: var(--gilt); }

/* 滚动进度 */
.scroll-rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(199, 162, 75, 0.14);
}

.scroll-rule__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gilt), var(--cinnabar));
  transition: width 90ms linear;
}

/* 移动端抽屉 */
@media (max-width: 960px) {
  :root { --gutter: 20px; }

  .ledger-strip__clock { display: none; }

  .masthead__inner { gap: 14px; }

  .masthead__cta { display: none; }

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

  .site-nav {
    position: fixed;
    top: var(--header-total);
    left: 0;
    right: 0;
    margin-left: 0;
    max-height: calc(100vh - var(--header-total));
    overflow-y: auto;
    padding: 4px var(--gutter) 26px;
    background: var(--ink-sea);
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--ease), transform var(--ease), visibility 0s linear 240ms;
    z-index: 85;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity var(--ease), transform var(--ease), visibility 0s linear 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--hair-soft);
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"] {
    color: var(--gilt);
    border-bottom-color: rgba(199, 162, 75, 0.45);
  }

  .site-nav__item--cta {
    display: block;
    margin-top: 20px;
  }

  .site-nav__cta {
    width: 100%;
    padding: 14px 18px;
  }
}

@media (max-width: 560px) {
  .ledger-strip__note { font-size: 10px; letter-spacing: 0.12em; }
  .brand__lockup { letter-spacing: 0.18em; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 11px 12px; }
}

/* 抽屉打开时锁滚动 */
body.nav-is-open { overflow: hidden; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 0;
  padding-top: 58px;
  background: var(--ink-sea);
  color: var(--tx-paper);
  border-top: 1px solid rgba(199, 162, 75, 0.35);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(216, 212, 200, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(216, 212, 200, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.85;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr 0.85fr 0.85fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand--footer .brand__glyph { background: transparent; }

.footer-brand__note {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(248, 245, 237, 0.62);
  max-width: 34ch;
}

.footer-brand__stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(199, 162, 75, 0.72);
}

.footer-col__title {
  position: relative;
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gilt);
}

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

.footer-col__link {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(248, 245, 237, 0.72);
  text-decoration: none;
  transition: color var(--ease-fast), transform var(--ease-fast);
}

.footer-col__link:hover,
.footer-col__link:focus-visible {
  color: var(--gilt);
  transform: translateX(2px);
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.footer-contact__row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair-soft);
}

.footer-contact__key {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(216, 212, 200, 0.55);
  padding-top: 4px;
}

.footer-contact__val {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--tx-paper);
  word-break: break-word;
}

.footer-contact .footer-brand__note { max-width: 40ch; }

.footer-base {
  position: relative;
  border-top: 1px solid var(--hair);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 0 22px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(216, 212, 200, 0.55);
}

.footer-base__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-base__link {
  color: rgba(248, 245, 237, 0.7);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.footer-base__link:hover,
.footer-base__link:focus-visible { color: var(--gilt); }

.footer-base__icp {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: rgba(216, 212, 200, 0.5);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 40px;
  }
  .footer-brand,
  .footer-contact { grid-column: span 2; }
  .footer-brand__note,
  .footer-contact .footer-brand__note { max-width: 52ch; }
}

@media (max-width: 640px) {
  .site-footer { padding-top: 42px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 34px;
  }
  .footer-brand,
  .footer-contact { grid-column: span 1; }
  .footer-base__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ==========================================================================
   通用区块与网格
   ========================================================================== */
.section { padding: 72px 0; }

.section--dark {
  background: var(--ink-sea);
  color: var(--tx-paper);
}

.section--night {
  background: var(--night);
  color: var(--tx-paper);
}

.section--indigo {
  background: var(--indigo);
  color: var(--tx-paper);
}

.section--paper {
  background: var(--paper);
  color: var(--tx-ink);
}

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

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .section { padding: 52px 0; }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
}

.stack { display: flex; flex-direction: column; gap: 18px; }
.stack--tight { gap: 10px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.rule-hair {
  height: 1px;
  border: 0;
  margin: 32px 0;
  background: var(--hair);
}

.rule-hair--dark { background: var(--hair-dark); }

/* ==========================================================================
   面包屑
   ========================================================================== */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--hair-dark);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(13, 27, 33, 0.55);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 8px;
  color: rgba(13, 27, 33, 0.3);
}

.breadcrumb__link {
  color: rgba(13, 27, 33, 0.62);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible { color: var(--cinnabar); }

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

.section--dark .breadcrumb,
.section--night .breadcrumb { border-bottom-color: var(--hair); }

.section--dark .breadcrumb__list,
.section--night .breadcrumb__list { color: rgba(216, 212, 200, 0.55); }

.section--dark .breadcrumb__link,
.section--night .breadcrumb__link { color: rgba(248, 245, 237, 0.7); }

.section--dark .breadcrumb__item + .breadcrumb__item::before,
.section--night .breadcrumb__item + .breadcrumb__item::before { color: rgba(216, 212, 200, 0.3); }

/* ==========================================================================
   长文容器
   ========================================================================== */
.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.85;
  color: inherit;
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 2em;
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 0.01em;
}

.prose h3 {
  margin-top: 1.7em;
  font-family: var(--font-heading);
  font-size: 21px;
}

.prose ul, .prose ol {
  padding-left: 1.2em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: 0.4em; }

.prose a {
  color: var(--cinnabar);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  padding: 16px 20px;
  border-left: 2px solid var(--gilt);
  background: rgba(199, 162, 75, 0.08);
  font-family: var(--font-serif);
}

/* ==========================================================================
   展签与说明牌
   ========================================================================== */
.exhibit-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gilt);
}

.exhibit-tag::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.exhibit-tag--ink { color: var(--cinnabar); }

.plate {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--night);
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--tx-paper);
}

.plate--paper {
  background: #FFFDF7;
  border-color: var(--hair-dark);
  color: var(--tx-ink);
}

.plate--gilt {
  border-color: rgba(199, 162, 75, 0.45);
  box-shadow: inset 0 1px 0 rgba(199, 162, 75, 0.35);
}

.plate__tag {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gilt);
}

.plate__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.plate__note {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(248, 245, 237, 0.66);
}

.plate--paper .plate__note { color: rgba(13, 27, 33, 0.66); }

/* ==========================================================================
   数据表格
   ========================================================================== */
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ledger caption {
  caption-side: top;
  padding-bottom: 10px;
  text-align: left;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gilt);
}

.ledger th,
.ledger td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--hair-dark);
  vertical-align: top;
}

.ledger th {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(13, 27, 33, 0.6);
  background: rgba(216, 212, 200, 0.4);
  border-bottom-color: var(--hair-dark);
  white-space: nowrap;
}

.ledger .is-num { text-align: right; }

.ledger--dark { color: var(--tx-paper); }

.ledger--dark th {
  background: rgba(18, 49, 61, 0.9);
  color: rgba(216, 212, 200, 0.7);
  border-bottom-color: var(--hair);
}

.ledger--dark td { border-bottom-color: var(--hair-soft); }

.ledger--dark .is-hot { color: var(--cinnabar); }
.ledger--dark .is-up { color: var(--celadon); }

/* ==========================================================================
   图片容器基础规则
   ========================================================================== */
.fig-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--hair-dark);
  border-radius: 2px;
  background: var(--night);
}

.fig-frame img,
.fig-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fig-frame--wide { aspect-ratio: 16 / 9; }
.fig-frame--tall { aspect-ratio: 4 / 5; }
.fig-frame--square { aspect-ratio: 1 / 1; }
.fig-frame--strip { aspect-ratio: 24 / 9; }

.fig-frame__caption {
  margin-top: 10px;
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: rgba(13, 27, 33, 0.6);
}

.section--dark .fig-frame__caption,
.section--night .fig-frame__caption,
.plate .fig-frame__caption { color: rgba(216, 212, 200, 0.66); }

.section--dark .fig-frame,
.section--night .fig-frame { border-color: var(--hair); }

/* 页面首屏需要的头部偏移工具 */
.page-offset { padding-top: var(--header-total); }

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-rule__bar { transition: none; }
  .site-nav { transform: none; }
  .site-nav[data-open] { transform: none; }
}
