/* ==========================================================================
   ABG会馆 · 共享站点样式  /assets/site.css
   剧场后台秩序 + 技术蓝图网格 + 收藏册仪式感
   ========================================================================== */

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

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

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

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

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

button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }
table { border-collapse: collapse; }
address { font-style: normal; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B1A2A;
  --ink-deep: #06101C;
  --paper: #F6F1E7;
  --paper-2: #DED6C8;
  --char: #11151A;
  --gold: #C8A24A;
  --gold-soft: #E6D3A0;
  --cinnabar: #B23A2E;
  --celadon: #4F6F5A;
  --mist: #5F6670;

  --rail-w: 264px;
  --bar-h: 62px;
  --gutter: clamp(18px, 4vw, 58px);
  --maxw: 1180px;
  --baseline: 8px;

  --line: rgba(17, 21, 26, .15);
  --line-soft: rgba(17, 21, 26, .08);
  --line-ink: rgba(246, 241, 231, .16);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --scroll-progress: 0;
}

/* ---------- 3. 中文排版基座 ---------- */
body {
  margin: 0;
  background: var(--paper);
  color: var(--char);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .02em;
}

strong { font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 2px;
}
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

#main-content { scroll-margin-top: calc(var(--bar-h) + 12px); }

@media (min-width: 900px) {
  body { padding-left: var(--rail-w); }
  #main-content { scroll-margin-top: 28px; }
}

@media (max-width: 899px) {
  body { padding-top: var(--bar-h); }
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-decoration: none;
  border-radius: 0;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 5. 侧边轨道页头（桌面） ---------- */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 22px;
  background: var(--ink);
  color: var(--paper);
  border-right: 1px solid rgba(200, 162, 74, .28);
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(246, 241, 231, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 231, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent);
}

.rail-top {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-ink);
  text-decoration: none;
  color: inherit;
}
.brand__mark {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 2px;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.05;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--gold);
  text-transform: uppercase;
}
.brand:hover .brand__name { color: var(--gold-soft); }

/* 抽屉按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(200, 162, 74, .5);
  color: var(--paper);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold-soft); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: var(--gold);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* 遮罩 */
.nav-scrim { display: none; }

/* 导航 */
.site-nav {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 24px;
  overflow-y: auto;
  counter-reset: navitem;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 162, 74, .5) transparent;
}
.site-nav::-webkit-scrollbar { width: 4px; }
.site-nav::-webkit-scrollbar-thumb { background: rgba(200, 162, 74, .45); }

.nav-close { display: none; }

.nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: rgba(246, 241, 231, .5);
}
.nav-label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.nav-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
.nav-list li {
  counter-increment: navitem;
  border-top: 1px solid var(--line-ink);
}
.nav-list li:last-child { border-bottom: 1px solid var(--line-ink); }

.nav-list a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 6px 12px 2px;
  color: rgba(246, 241, 231, .82);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .08em;
  transition: color .2s var(--ease), background .25s var(--ease), padding-left .25s var(--ease);
}
.nav-list a::before {
  content: counter(navitem, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  color: rgba(200, 162, 74, .62);
  transition: color .2s var(--ease);
}
.nav-list a:hover {
  padding-left: 10px;
  color: var(--gold-soft);
  background: linear-gradient(90deg, rgba(200, 162, 74, .14), rgba(200, 162, 74, 0));
}
.nav-list a:hover::before { color: var(--gold); }

.nav-list a[aria-current="page"] { color: var(--gold); }
.nav-list a[aria-current="page"]::before { color: var(--gold); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--gold);
}

/* 轨道底部 */
.rail-foot {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line-ink);
}
.rail-foot__line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: rgba(246, 241, 231, .68);
}
.rail-foot__line::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 74, .18);
}
.rail-foot__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(246, 241, 231, .38);
}
.rail-progress {
  height: 3px;
  margin-top: 14px;
  background: rgba(246, 241, 231, .14);
  overflow: hidden;
}
.rail-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-progress));
  transition: transform .12s linear;
}

/* ---------- 6. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 54px;
  height: 54px;
  background: var(--ink);
  color: var(--gold);
  border: 1px solid rgba(200, 162, 74, .5);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink-deep); color: var(--gold-soft); border-color: var(--gold); }
.to-top__arrow { font-size: 14px; line-height: 1; }

/* ---------- 7. 移动端：顶栏 + 抽屉 ---------- */
@media (max-width: 899px) {
  .site-header {
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    padding: 0 14px 0 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(200, 162, 74, .32);
    overflow: visible;
  }
  .site-header::after { display: none; }

  .rail-top { width: 100%; }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .brand__mark { width: 20px; height: 2px; margin-bottom: 0; flex: 0 0 auto; }
  .brand__name { font-size: 19px; letter-spacing: .12em; white-space: nowrap; }
  .brand__sub { display: none; }

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

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(6, 16, 28, .62);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
  }
  .site-header[data-open] .nav-scrim { opacity: 1; visibility: visible; }

  .site-nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    bottom: 0;
    width: min(88vw, 340px);
    margin-top: 0;
    z-index: 2;
    padding: 18px 22px 34px;
    background: var(--ink);
    border-top: 1px solid rgba(200, 162, 74, .35);
    border-right: 1px solid rgba(200, 162, 74, .35);
    transform: translateX(-102%);
    transition: transform .34s var(--ease);
    overflow-y: auto;
  }
  .site-header[data-open] .site-nav {
    transform: none;
    box-shadow: 28px 0 60px rgba(6, 16, 28, .55);
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(200, 162, 74, .45);
    color: rgba(246, 241, 231, .85);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .18em;
    cursor: pointer;
    transition: border-color .2s var(--ease), color .2s var(--ease);
  }
  .nav-close:hover { border-color: var(--gold); color: var(--gold-soft); }
  .nav-close__x { font-size: 13px; line-height: 1; color: var(--gold); }

  .nav-list a { font-size: 18px; padding: 13px 6px 13px 2px; }

  .rail-foot { display: none; }

  .to-top { right: 14px; bottom: 14px; width: 48px; height: 48px; }
}

@media (min-width: 900px) {
  .to-top { right: 26px; bottom: 26px; }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 112px);
  padding: clamp(42px, 6vw, 76px) var(--gutter) 0;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(200, 162, 74, .55);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 32px);
  opacity: .5;
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(246, 241, 231, .05) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.site-footer p { margin: 0; }

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-bottom: clamp(34px, 5vw, 56px);
}

.footer-brand { grid-column: span 5; }
.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.footer-brand__line {
  font-size: 15px;
  color: rgba(246, 241, 231, .82);
  margin-bottom: 8px;
}
.footer-brand__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold);
  padding-top: 12px;
  border-top: 1px solid rgba(200, 162, 74, .3);
  display: inline-block;
}

.footer-col { grid-column: span 2; }
.footer-col--contact { grid-column: span 3; }

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--gold);
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(246, 241, 231, .14);
}

.footer-links { display: flex; flex-direction: column; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(246, 241, 231, .72);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-links a::before {
  content: "";
  width: 8px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--gold);
  opacity: .6;
  transition: width .22s var(--ease), opacity .2s var(--ease);
}
.footer-links a:hover { color: var(--gold-soft); }
.footer-links a:hover::before { width: 18px; opacity: 1; }

.footer-contact {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246, 241, 231, .78);
  overflow-wrap: anywhere;
}
.footer-contact__k {
  flex: 0 0 auto;
  padding: 1px 5px;
  border: 1px solid rgba(200, 162, 74, .4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--gold);
}
.footer-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(246, 241, 231, .12);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(246, 241, 231, .5);
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(246, 241, 231, .14);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(246, 241, 231, .55);
}
.footer-base__note { color: rgba(200, 162, 74, .85); }

@media (max-width: 1023px) {
  .footer-brand { grid-column: span 12; }
  .footer-col { grid-column: span 4; }
  .footer-col--contact { grid-column: span 12; }
}
@media (max-width: 640px) {
  .footer-col { grid-column: span 6; }
  .footer-col--contact { grid-column: span 12; }
  .footer-base { justify-content: flex-start; }
}

/* ---------- 9. 通用容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: calc(var(--baseline) * 3) 24px;
}
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

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

/* ---------- 10. 文字层级 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7.4vw, 88px);
  line-height: 1.06;
  letter-spacing: .02em;
}
.heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: .02em;
}
.heading-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.28;
  letter-spacing: .02em;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mist);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--gold);
}
.index-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--gold);
}
.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--char);
}
.prose p + p { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.9em; margin-bottom: .6em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: .4em; }

/* ---------- 11. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--char);
  --btn-bd: rgba(17, 21, 26, .35);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-decoration: none;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.btn::after {
  content: "→";
  font-size: 13px;
  letter-spacing: 0;
  transition: transform .22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:hover::after { transform: translateX(4px); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--ink-deep); --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: var(--gold-soft); --btn-bd: var(--gold-soft); }

.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
.btn--ink:hover { --btn-bg: var(--ink-deep); --btn-bd: var(--gold); --btn-fg: var(--gold-soft); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--char); --btn-bd: rgba(17, 21, 26, .35); }
.btn--ghost:hover { --btn-bd: var(--char); --btn-bg: rgba(17, 21, 26, .05); }

.btn--on-dark { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: rgba(246, 241, 231, .42); }
.btn--on-dark:hover { --btn-bd: var(--gold); --btn-fg: var(--gold-soft); }

/* ---------- 12. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: rgba(17, 21, 26, .07);
  color: var(--char);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
}
.tag--gold { background: var(--gold); color: var(--ink-deep); }
.tag--cinnabar { background: var(--cinnabar); color: var(--paper); }
.tag--celadon { background: var(--celadon); color: var(--paper); }
.tag--outline { background: transparent; border-color: rgba(17, 21, 26, .3); color: var(--char); }

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: rgba(17, 21, 26, .25);
}
.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.breadcrumb a:hover { color: var(--cinnabar); }
.breadcrumb [aria-current="page"] { color: var(--char); }

/* ---------- 14. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.94) contrast(1.04);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--ticket {
  aspect-ratio: 5 / 3;
  clip-path: polygon(0 0, 100% 0, 100% 74%, calc(100% - 20px) 100%, 0 100%);
}
.media-frame--stack {
  box-shadow: 12px 12px 0 -1px var(--paper-2), 12px 12px 0 0 var(--gold);
}
.media-frame__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

/* ---------- 15. 显现动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 16. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::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-progress > span { transition: none; }
}
