/* 品牌图鉴（Phase 1 样板）。复古档案馆 + 全屏单事件阅读。
   只用系统字体（file:// 与国内网络下都能用）；动画克制，并尊重 reduced-motion。 */
:root {
  --ink: #140d08;
  --brown: #24180f;
  --brown-2: #33231a;
  --line: rgba(232, 200, 140, .18);
  --paper: #efe4cb;
  --paper-2: #e2d3b2;
  --paper-ink: #2a1c12;
  --gold: #e0b25c;
  --gold-soft: #c9a56b;
  --text: #f3eadb;
  --muted: #b7a58a;
  --red: #b23a2e;
  --stamp: #2f4e8c;
  --ok: #2f7d4f;
  --warn: #a8701c;
  --bad: #a3362b;
  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "Noto Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --tl-h: 5.25rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--ink); color: var(--text);
  font: 16px/1.7 var(--sans);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(224, 178, 92, .12), transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .6), transparent 60%);
  background-attachment: fixed;
}
/* 胶片颗粒 */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--gold); }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd { font: 600 .7em/1 var(--sans); border: 1px solid currentColor; border-radius: 3px; padding: .1em .35em; margin-left: .35em; opacity: .6; }

.eyebrow { margin: 0 0 .4rem; color: var(--gold-soft); font-size: .82rem; letter-spacing: .14em; }
.lede { color: #d9ccb6; max-width: 40rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: 0 1.4rem; border-radius: 3px;
  background: var(--gold); color: #1b120a; border: 1px solid var(--gold); font-weight: 700; letter-spacing: .06em;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s;
}
.btn:hover { background: #f0c875; }
.btn.ghost { background: rgba(20, 13, 8, .4); color: var(--text); border-color: rgba(243, 234, 219, .45); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.disabled { opacity: .5; cursor: default; }
.back {
  display: inline-block; color: var(--text); text-decoration: none; font-size: .92rem; padding: .35rem .8rem;
  border: 1px solid rgba(243, 234, 219, .3); border-radius: 999px; background: rgba(20, 13, 8, .45);
}
.back:hover { border-color: var(--gold); color: var(--gold); }

/* 超级主人横幅 */
.sh-banner {
  position: sticky; top: 0; z-index: 60; display: flex; gap: .9rem; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: .45rem 1rem; background: var(--stamp); color: #eef2fb; font-size: .9rem;
}
.sh-banner b { letter-spacing: .1em; }
.sh-banner button { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: 3px; padding: .1rem .7rem; cursor: pointer; }

/* 档案馆样式见文件末尾「档案馆：无框、米纸平面」 */
.link { background: none; border: 0; color: var(--gold-soft); text-decoration: underline; cursor: pointer; padding: 0; font-size: .85rem; }
.wordmark { font: 900 1em/1.1 var(--serif); color: var(--brand); letter-spacing: .04em; text-align: center; }
.segs { display: flex; gap: 3px; width: 100%; }
.segs i { flex: 1; height: 5px; border-radius: 1px; background: rgba(42, 28, 18, .18); }
.segs i.on { background: #c78a2c; }
.segs i.new { background: #d4532f; }

/* ———————————————— 封面 ———————————————— */
.cover { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; }
.cover-art { position: absolute; inset: 0; margin: 0; }
.cover-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 9, 5, .96) 0%, rgba(14, 9, 5, .82) 34%, rgba(14, 9, 5, .2) 66%, rgba(14, 9, 5, .05)), linear-gradient(0deg, rgba(14, 9, 5, .7), transparent 30%); }
.cover-body { position: relative; z-index: 2; width: min(40rem, 92vw); padding: 5vh 0 5vh clamp(1.2rem, 6vw, 6rem); }
.cover-body .back { margin-bottom: 2.2rem; }
.cover-title { display: flex; align-items: center; gap: 1.1rem; }
.cover-title h1, .cover-lite h1 { margin: 0; font: 900 clamp(3rem, 7vw, 5.6rem)/1.05 var(--serif); letter-spacing: .08em; color: #fbf1dc; text-shadow: 0 3px 24px rgba(0, 0, 0, .6); }
.cover-logo { display: grid; place-items: center; width: 4.6rem; height: 4.6rem; background: #fffaf0; border-radius: 50%; padding: .45rem; flex: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.cover-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cover-logo .wordmark { font-size: .8rem !important; line-height: 1.1; text-align: center; overflow: hidden; }
.cover-quote { font: 700 1.25rem/1.5 var(--serif); color: var(--gold); margin: 1.1rem 0 .2rem; letter-spacing: .08em; }
.cover-span { margin: 0 0 .8rem; color: var(--muted); letter-spacing: .2em; font-size: .9rem; }
.cover .lede { font-size: 1.02rem; line-height: 1.9; }
.prog-line { display: flex; align-items: center; gap: .9rem; margin: 1.2rem 0; font-size: .85rem; color: #d8c8ad; }
.prog-line .segs { width: 9rem; }
.prog-line .segs i { background: rgba(243, 234, 219, .2); height: 6px; }
.prog-line .segs i.on { background: var(--gold); }
.cover-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.4rem 0 1.8rem; }
.cover-toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 34rem; }
.cover-toc li { border-bottom: 1px solid var(--line); }
.cover-toc a, .cover-toc li.locked { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .6rem; align-items: baseline; padding: .55rem .2rem; color: var(--text); text-decoration: none; }
.cover-toc a:hover .toc-title { color: var(--gold); }
.toc-no { font: 700 .95rem var(--serif); color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.toc-title { font: 700 1rem var(--serif); }
.toc-meta { font-size: .8rem; color: var(--muted); }
.cover-toc li.locked { color: rgba(183, 165, 138, .6); }
.cover-toc li.locked .toc-title { font-weight: 400; letter-spacing: .2em; }
.dot-new { margin-left: .4rem; color: #fff; background: #d4532f; border-radius: 999px; padding: 0 .4rem; font-size: .72rem; }
.cover-lite { background: radial-gradient(ellipse at 70% 40%, color-mix(in srgb, var(--brand, #8a6a3a) 30%, transparent), transparent 60%); }
.cover-lite .cover-logo { width: 6rem; height: 6rem; margin-bottom: 1.2rem; border-radius: 8px; }
.loading { color: var(--muted); }

/* ———————————————— 阅读器 ———————————————— */
.reader { position: fixed; inset: 0; overflow: hidden; background: #0d0805; }
.is-superhost .reader { top: var(--sh-h, 2.3rem); }
.stage { position: absolute; inset: 0; }
.page { position: absolute; inset: 0; overflow: hidden; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.page.enter { opacity: 0; }
.page.enter.from-right { transform: translateX(2.5%); }
.page.enter.from-left { transform: translateX(-2.5%); }
.page.leave { opacity: 0; pointer-events: none; }
.page figure { margin: 0; }
.bg { position: absolute; inset: 0; }
.bg img { width: 100%; height: 100%; object-fit: cover; animation: drift 14s var(--ease) both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.img-missing { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, #22170f 0 14px, #1d130c 14px 28px); }

.badge {
  position: absolute; right: clamp(1rem, 2.5vw, 2rem); bottom: calc(var(--tl-h) + 1rem); z-index: 5;
  font: 600 .74rem/1.3 var(--sans); letter-spacing: .08em; padding: .3rem .6rem; border-radius: 2px; max-width: 22rem;
}
.badge.recon { color: #ffe2a8; background: rgba(20, 13, 8, .78); border: 1px dashed #e0b25c; }
.badge.hist { color: #e8dcc6; background: rgba(20, 13, 8, .7); border: 1px solid rgba(232, 220, 198, .35); }

.story { position: relative; z-index: 4; }
.story .period { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 .3rem; color: var(--gold); font: 700 1.05rem/1.2 var(--serif); letter-spacing: .12em; }
.story .period .no { font-size: .8rem; color: var(--gold-soft); border: 1px solid rgba(224, 178, 92, .5); padding: .05rem .4rem; border-radius: 2px; letter-spacing: .05em; }
.story h2 { margin: 0 0 1rem; font: 900 clamp(2rem, 4.2vw, 3.9rem)/1.15 var(--serif); letter-spacing: .04em; color: #fbf1dc; text-wrap: balance; }
.story p { margin: 0 0 .8rem; font-size: clamp(1rem, 1.18vw, 1.14rem); line-height: 1.9; color: #ecdfc9; }
.story strong { color: var(--gold); font: 800 1.12em var(--serif); }
.just-unlocked .story .period::after { content: "新解锁"; font: 700 .72rem/1 var(--sans); color: #fff; background: #d4532f; padding: .25rem .45rem; border-radius: 999px; letter-spacing: .06em; }

/* 版式 1：时代大画面 */
.layout-hero .shade { position: absolute; inset: 0; z-index: 2; background:
  linear-gradient(90deg, rgba(12, 8, 5, .9) 0%, rgba(12, 8, 5, .62) 30%, rgba(12, 8, 5, 0) 58%),
  linear-gradient(0deg, rgba(12, 8, 5, .85) 0%, rgba(12, 8, 5, 0) 36%); }
.layout-hero .story { position: absolute; left: clamp(1.2rem, 6vw, 6.5rem); bottom: calc(var(--tl-h) + 2.5rem); width: min(34rem, 44vw); }

/* 版式 2：数字成为主角 */
.layout-data { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 4vw; align-items: center; padding: 4.5rem clamp(1.2rem, 5vw, 5.5rem) calc(var(--tl-h) + 1rem);
  background:
    radial-gradient(ellipse 45% 55% at 24% 42%, rgba(224, 178, 92, .2), transparent 70%),
    radial-gradient(ellipse 35% 50% at 74% 55%, rgba(224, 178, 92, .08), transparent 70%),
    repeating-linear-gradient(0deg, rgba(232, 200, 140, .028) 0 1px, transparent 1px 34px),
    radial-gradient(ellipse at 40% 45%, #3d2611, #120b06 78%); }
.layout-data .bg.dim img { opacity: .28; filter: grayscale(.4) sepia(.3); }
.layout-data .bg.dim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 11, 6, .7), rgba(18, 11, 6, .35)); }
.data-hero { position: relative; z-index: 4; }
.big { margin: 0; display: flex; align-items: baseline; gap: .6rem; color: var(--gold); font-family: var(--serif); text-shadow: 0 4px 40px rgba(224, 178, 92, .25); }
.big-num { font-weight: 900; font-size: clamp(5rem, min(15vw, 30vh), 15rem); line-height: .9; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.big-unit { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.8rem); }
.big-label { margin: .6rem 0 1.6rem; font-size: 1.25rem !important; font: 700 1.15rem var(--serif); color: #f1e2c4; letter-spacing: .06em; }
.bars { display: grid; grid-template-columns: max-content 1fr max-content; gap: .8rem; max-width: 38rem; }
.bar { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; white-space: nowrap; gap: .8rem; align-items: center; font-size: 1rem; color: #d9c8aa; }
.chart-title { margin: 0 0 .7rem; font-size: .8rem; letter-spacing: .16em; color: var(--gold-soft); border-top: 1px solid rgba(224, 178, 92, .3); padding-top: .8rem; max-width: 38rem; }
.bar-track { height: 22px; background: rgba(243, 234, 219, .08); border-radius: 1px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); background: rgba(201, 165, 107, .55); transform-origin: left; animation: grow 1.1s .2s var(--ease) both; }
.bar.hl .bar-fill { background: var(--gold); }
.bar.hl { color: #fbf1dc; font-weight: 700; }
.bar-val { font-variant-numeric: tabular-nums; text-align: right; font-family: var(--serif); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.data-note { margin: 1rem 0 0; font-size: .8rem; color: var(--muted); max-width: 34rem; }
.layout-data .story h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }

/* 版式 3：报道 / 转折 —— 展台陈列 */
.layout-news {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4.5vw; align-items: center;
  padding: 5rem clamp(1.2rem, 5.5vw, 6rem) calc(var(--tl-h) + 1.5rem);
  background:
    radial-gradient(ellipse 50% 60% at 30% 45%, rgba(255, 214, 150, .26), transparent 70%),
    repeating-linear-gradient(92deg, rgba(0, 0, 0, .08) 0 3px, transparent 3px 11px, rgba(255, 220, 170, .03) 11px 13px, transparent 13px 29px),
    linear-gradient(180deg, #2a1a0f, #3b2414 55%, #24160c);
}
.layout-news::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .6), transparent 60%), radial-gradient(ellipse at 50% -20%, rgba(0, 0, 0, .55), transparent 55%); }
.layout-news .story { color: var(--text); }
.layout-news .story .period { color: #e98c72; }
.layout-news .story .period .no { color: #e98c72; border-color: rgba(233, 140, 114, .5); }
.layout-news .story strong { color: #f0a58c; }
.exhibit { position: relative; z-index: 3; padding: 1.2rem 0 4.5rem 1rem; }
.sheet-under { position: absolute; left: 3.5rem; top: -.4rem; width: 82%; height: 78%; padding: 1.4rem 1.6rem; transform: rotate(4deg);
  background: #e6d9b8; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .8); display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem 1rem; align-content: start; }
.sheet-under i { height: 5.2rem; background: repeating-linear-gradient(0deg, rgba(70, 50, 30, .22) 0 2px, transparent 2px 8px); }
.sheet-under i:first-child { grid-column: 1 / -1; height: 1.6rem; background: rgba(70, 50, 30, .32); }
.clip {
  position: relative; z-index: 3; background: #f7f0de; padding: 2rem 2.2rem 1.4rem; transform: rotate(-1.6deg); max-width: 36rem;
  box-shadow: 0 26px 44px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(60, 40, 20, .12);
  border-top: 6px double #2a1c12; font-family: var(--serif); color: var(--paper-ink);
}
.tape { position: absolute; width: 5.5rem; height: 1.6rem; background: rgba(240, 228, 190, .7); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.tape.t1 { left: -1.4rem; top: .6rem; transform: rotate(-32deg); }
.tape.t2 { right: -1.4rem; top: .6rem; transform: rotate(30deg); }
.clip-kicker { margin: 0 0 .5rem; font-size: .85rem; letter-spacing: .2em; color: #6b5641; border-bottom: 1px solid rgba(42, 28, 18, .3); padding-bottom: .5rem; }
.clip-head { margin: 0 0 1rem; font-weight: 900; font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1.15; color: #1d120a; }
.clip-line { position: relative; margin: 0 0 .6rem; font-size: 1.05rem; line-height: 1.8; color: #3a2a1c; padding-left: 1.1rem; }
.clip-line::before { content: ""; position: absolute; left: 0; top: .72em; width: .42rem; height: .42rem; background: #8a2c22; }
.clip-line strong { color: #8a2c22; }
.clip-note { margin: 1rem 0 0; font: .74rem var(--sans); color: #8a7660; letter-spacing: .12em; }
.exhibit-label { position: absolute; z-index: 4; right: 4%; bottom: 0; width: min(17rem, 60%); padding: .8rem 1rem; transform: rotate(1deg);
  background: #f3efe6; color: #2a1c12; border: 1px solid rgba(42, 28, 18, .25); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8); font-size: .8rem; line-height: 1.6; }
.exhibit-label p { margin: 0 0 .3rem; }
.exhibit-label .label-title { font: 900 .78rem var(--serif); letter-spacing: .4em; color: #8a2c22; border-bottom: 1px solid rgba(138, 44, 34, .4); padding-bottom: .2rem; margin-bottom: .45rem; }
.side-photo { position: absolute; right: clamp(1rem, 4vw, 3rem); top: 5rem; width: min(15rem, 18vw); z-index: 2; transform: rotate(3deg); background: #fff; padding: .5rem .5rem 1.6rem; box-shadow: 0 12px 30px -12px rgba(40, 24, 10, .7); }
.side-photo img { width: 100%; display: block; }
.side-photo .badge { position: absolute; right: .4rem; bottom: .2rem; padding: .1rem .3rem; font-size: .66rem; background: transparent; color: #6b5641; border: 0; }

/* 版式 4：尾声 */
.layout-epilogue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: center; padding: 6rem clamp(1.2rem, 6vw, 6.5rem) calc(var(--tl-h) + 2rem); background: radial-gradient(ellipse at 30% 50%, #1f3324, #0e140d 70%); }
.gallery { position: relative; height: min(60vh, 34rem); }
.print { position: absolute; background: #f6efe0; padding: .6rem .6rem 2.2rem; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9); width: 58%; }
.print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #fff; }
.print.p1 img { object-fit: contain; padding: 1rem; }
.print .img-missing { position: relative; aspect-ratio: 4 / 3; }
.print.p0 { left: 2%; top: 4%; transform: rotate(-4deg); }
.print.p1 { right: 2%; top: 26%; transform: rotate(3deg); }
.print.p2 { left: 22%; bottom: 0; transform: rotate(-1deg); width: 44%; }
.print-cap { position: absolute; left: .7rem; right: .7rem; bottom: .35rem; margin: 0; display: flex; justify-content: space-between; gap: .6rem; font: 700 .8rem/1.4 var(--serif); color: #3a2a1c; }
.print-src { font: 400 .68rem/1.4 var(--sans); color: #7a6650; white-space: nowrap; }
.print.inset { position: relative; width: clamp(16rem, 44vh, 27rem); max-width: 100%; margin: 1.4rem 0 0; transform: rotate(-1.5deg); }
.print.inset img { aspect-ratio: 437 / 284; object-fit: cover; }
.fin { color: var(--gold-soft) !important; letter-spacing: .4em; font-family: var(--serif); margin-top: 1.4rem !important; }

/* 版式 5：纯字体（没有照片时的默认）——大号年份做背景，品牌标志做印章 */
.layout-type {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5vw; align-items: center;
  padding: 5rem clamp(1.2rem, 6vw, 6.5rem) calc(var(--tl-h) + 1.5rem);
  background:
    radial-gradient(ellipse 55% 70% at 22% 45%, color-mix(in srgb, var(--brand, #8a6a3a) 32%, transparent), transparent 70%),
    repeating-linear-gradient(0deg, rgba(232, 200, 140, .025) 0 1px, transparent 1px 34px),
    radial-gradient(ellipse at 40% 45%, #2f1e11, #0f0905 78%);
}
.type-stage { position: relative; height: min(56vh, 28rem); display: grid; place-items: end start; }
.type-year {
  position: absolute; inset: 0 0 auto 0; display: block; text-align: left; font: 900 clamp(6rem, min(15vw, 30vh), 14rem)/1 var(--serif);
  letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--brand, #c9a56b) 55%, #e0b25c);
  opacity: .5; white-space: nowrap;
}
.type-seal {
  position: relative; display: grid; place-items: center; width: clamp(7rem, 12vw, 10rem); aspect-ratio: 1; padding: 1.1rem; border-radius: 50%; margin: 0 0 1rem 38%;
  background: radial-gradient(circle at 35% 30%, #fffaf0, #efe4cb); box-shadow: 0 0 0 6px rgba(20, 13, 8, .6), 0 0 0 8px color-mix(in srgb, var(--brand, #c9a56b) 70%, #e0b25c), 0 24px 50px -16px #000;
  transform: rotate(-6deg);
}
.type-seal img { max-width: 100%; max-height: 100%; object-fit: contain; }
.type-seal .wordmark { font-size: clamp(1.4rem, 2.4vw, 2rem) !important; text-align: center; line-height: 1.15; }
.pull { margin: 1.2rem 0 0 !important; padding-top: .9rem; border-top: 1px solid rgba(224, 178, 92, .35); font: 700 clamp(1.1rem, 1.6vw, 1.4rem)/1.6 var(--serif) !important; color: #f6e2b8 !important; }

/* 版式 6：广告语 / 名言 */
.layout-quote {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 5vw; align-items: center;
  padding: 5rem clamp(1.2rem, 6vw, 6.5rem) calc(var(--tl-h) + 1.5rem);
  background:
    radial-gradient(ellipse 60% 70% at 30% 45%, color-mix(in srgb, var(--brand, #8a6a3a) 38%, transparent), transparent 72%),
    radial-gradient(ellipse at 40% 45%, #2a1a0e, #0e0805 78%);
}
.slogan { position: relative; z-index: 3; margin: 0; padding: 0 0 0 1rem; }
.slogan::before { content: "“"; position: absolute; left: -1.2rem; top: -3.2rem; font: 900 9rem/1 var(--serif); color: color-mix(in srgb, var(--brand, #e0b25c) 60%, #e0b25c); opacity: .55; }
.slogan p { margin: 0; font: 900 clamp(2.2rem, 4.8vw, 4.4rem)/1.25 var(--serif); letter-spacing: .04em; color: #fbf1dc; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); text-wrap: balance; }
.slogan footer { margin-top: 1.2rem; font-size: .9rem; letter-spacing: .14em; color: var(--gold-soft); }
.slogan footer::before { content: "—— "; }

/* 无图封面：品牌标志 + 大号品牌名 */
.cover-type .type-art { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 38%;
  background: radial-gradient(ellipse 50% 60% at 68% 48%, color-mix(in srgb, var(--brand, #8a6a3a) 42%, transparent), transparent 70%), radial-gradient(ellipse at 60% 50%, #2c1c10, #0e0805 80%); }
.type-art .type-logo { display: grid; place-items: center; width: min(26vw, 22rem); aspect-ratio: 1; padding: 2.4rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffaf0, #e9dcbf); box-shadow: 0 0 0 10px rgba(20, 13, 8, .55), 0 0 0 12px color-mix(in srgb, var(--brand, #c9a56b) 60%, #e0b25c), 0 40px 80px -20px #000; }
.type-art .type-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.type-art .type-logo .wordmark { font-size: clamp(2rem, 3.6vw, 3.4rem) !important; }
.type-art .type-name { position: absolute; right: 3vw; bottom: 4vh; font: 900 clamp(4rem, 12vw, 11rem)/1 var(--serif); color: rgba(243, 234, 219, .05); letter-spacing: .1em; white-space: nowrap; }
.cover-type .cover-shade { background: linear-gradient(90deg, rgba(14, 9, 5, .92) 0%, rgba(14, 9, 5, .6) 36%, transparent 60%); }

/* 尾声：品牌标志或字标做展品 */
.print.solo { left: 50%; top: 50%; translate: -50% -50%; width: min(70%, 22rem); transform: rotate(-2deg); }
.print.is-logo img { object-fit: contain; padding: 1.4rem; background: #fff; }
.print-word { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fffaf0; padding: 1rem; }

/* 锁定页：牛皮纸档案袋 + 交叉封条 */
.layout-locked { display: grid; place-items: center; padding: 5rem 1.2rem calc(var(--tl-h) + 1.5rem);
  background: radial-gradient(ellipse at 50% 35%, rgba(224, 178, 92, .14), transparent 55%), radial-gradient(ellipse at 50% 50%, #2a1b10, #0f0905 75%); }
.dossier { position: relative; width: min(40rem, 94vw); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); transform: rotate(-.8deg); }
.dossier-tab { display: inline-block; margin-left: 1.6rem; padding: .35rem 1.2rem .25rem; background: #b9945d; color: #3b2913;
  font: 700 .85rem var(--serif); letter-spacing: .2em; border-radius: 6px 6px 0 0; }
.dossier-body { position: relative; overflow: hidden; padding: 2rem 2.4rem 1.8rem; color: #2f2010; border-radius: 2px 6px 6px 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .08 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #cfae74, #b48d55 60%, #a37d48); }
.dossier-head { margin: 0 0 .4rem; font: 600 .8rem var(--serif); letter-spacing: .18em; color: #5b4120; }
.dossier h2 { position: relative; z-index: 2; margin: 2.6rem 0 .3rem; font: 900 clamp(2rem, 4vw, 2.8rem)/1.2 var(--serif); letter-spacing: .3em; color: #2a1a0b; }
.dossier-sub { position: relative; z-index: 2; margin: 0 0 1.4rem; font-size: .9rem; color: #4b3418; }
.seal-strips { position: absolute; inset: 0; pointer-events: none; }
.strip { position: absolute; left: -10%; width: 120%; height: 2.1rem; display: flex; align-items: center; justify-content: center;
  background: #efe6d2; color: rgba(140, 32, 24, .75); font: 900 .95rem var(--serif); letter-spacing: 1.4em; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgba(140, 32, 24, .08) 18px 20px); opacity: .92; }
.strip.s1 { top: 18%; transform: rotate(-9deg); }
.strip.s2 { top: 18%; transform: rotate(7deg); opacity: .78; }
.wax { position: absolute; right: 12%; top: 9%; width: 3.6rem; height: 3.6rem; display: grid; place-items: center; border-radius: 50%; transform: rotate(-12deg);
  background: radial-gradient(circle at 35% 30%, #c84a3b, #7a2117 72%); color: #f3d6c4; font: 900 1.3rem var(--serif);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .45), inset 0 0 0 4px rgba(0, 0, 0, .12); }
.meter { position: relative; height: 12px; margin: 1.6rem 0 2.2rem; background: rgba(60, 38, 14, .25); border-radius: 2px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #7d5418, #c58b2e); border-radius: 2px; }
.meter-mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #8c2018; }
.meter-mark span { position: absolute; top: calc(100% + 4px); left: 50%; translate: -50% 0; white-space: nowrap; font-size: .72rem; font-weight: 700; color: #8c2018; }
.dossier-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 1rem; border-top: 1px dashed rgba(60, 38, 14, .4); border-bottom: 1px dashed rgba(60, 38, 14, .4); }
.dossier-stats div { padding: .6rem .2rem; text-align: center; }
.dossier-stats dt { font-size: .75rem; color: #5b4120; }
.dossier-stats dd { margin: 0; font: 900 1.45rem/1.3 var(--serif); color: #2a1a0b; font-variant-numeric: tabular-nums; }
.dossier-stats .need dd { color: #8c2018; }
.dossier-stats small { font: 400 .72rem var(--sans); color: #6b4a22; }
.dossier .hint { margin: 0; font-size: .85rem; line-height: 1.7; color: #45301a; }

/* 阅读器外壳 */
.chrome { transition: opacity .3s; }
.chrome.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 2.5vw, 2rem); background: linear-gradient(rgba(10, 6, 3, .75), rgba(10, 6, 3, 0));
}
.counter { font: 700 1rem var(--serif); letter-spacing: .14em; color: #f1e2c4; font-variant-numeric: tabular-nums; }
.chrome-actions { margin-left: auto; display: flex; gap: .5rem; }
.chrome-actions button, .restore-ui {
  background: rgba(20, 13, 8, .55); color: var(--text); border: 1px solid rgba(243, 234, 219, .3); border-radius: 999px;
  padding: .35rem .85rem; cursor: pointer; font-size: .85rem; backdrop-filter: blur(4px);
}
.chrome-actions button:hover, .restore-ui:hover { border-color: var(--gold); color: var(--gold); }
.nav {
  position: absolute; top: 50%; z-index: 9; width: 3.2rem; height: 3.2rem; margin-top: -1.6rem; border-radius: 50%;
  border: 1px solid rgba(243, 234, 219, .3); background: rgba(14, 9, 5, .45); color: var(--text); font-size: 1.9rem; line-height: 1;
  cursor: pointer; transition: opacity .3s, border-color .2s; backdrop-filter: blur(4px);
}
.nav:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.nav:disabled { opacity: 0; pointer-events: none; }
.nav.prev { left: clamp(.4rem, 1.2vw, 1.2rem); }
.nav.next { right: clamp(.4rem, 1.2vw, 1.2rem); }
.timeline {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; height: var(--tl-h);
  padding: 0 clamp(4rem, 12vw, 14rem) .9rem; display: flex; align-items: flex-end;
  background: linear-gradient(rgba(10, 6, 3, 0), rgba(10, 6, 3, .8));
}
.timeline ol { list-style: none; margin: 0; padding: 0; display: flex; width: 100%; position: relative; }
.timeline ol::before { content: ""; position: absolute; left: 0; right: 0; top: .42rem; height: 1px; background: rgba(243, 234, 219, .28); }
.timeline li { flex: 1; display: flex; justify-content: center; }
.node { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-decoration: none; color: #cbbba0; padding: 0 .4rem; min-width: 3.5rem; }
.node .dot { width: .85rem; height: .85rem; border-radius: 50%; background: #1a110a; border: 2px solid #cbbba0; transition: transform .2s; }
.node .yr { font: 700 .82rem/1 var(--serif); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.node .tl-title { font-size: .72rem; color: var(--muted); white-space: nowrap; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .2s; }
.node:hover .tl-title, .node:focus-visible .tl-title, .node.current .tl-title { opacity: 1; }
.node:hover .dot { transform: scale(1.2); }
.node.current { color: var(--gold); }
.node.current .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(224, 178, 92, .25); }
.node.locked { color: rgba(203, 187, 160, .45); }
.node.locked .dot { border-style: dashed; border-color: rgba(203, 187, 160, .45); }
.node.unread .dot::after { content: ""; position: absolute; top: -3px; left: calc(50% + 4px); width: 8px; height: 8px; border-radius: 50%; background: #e2563a; }
.restore-ui { position: absolute; right: 1rem; bottom: 1rem; z-index: 11; opacity: 0; pointer-events: none; }
.ui-hidden .chrome, .ui-hidden .nav, .ui-hidden .layout-hero .story { opacity: 0; pointer-events: none; }
.ui-hidden .shade { opacity: .15; }
.ui-hidden .restore-ui { opacity: .75; pointer-events: auto; }
.layout-hero .shade, .story { transition: opacity .35s; }

/* 来源抽屉 */
.drawer { position: fixed; inset: 0; z-index: 70; background: rgba(8, 5, 3, .55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(31rem, 94vw); overflow-y: auto; padding: 1.2rem 1.5rem 2rem;
  background: var(--paper); color: var(--paper-ink); transform: translateX(100%); transition: transform .3s var(--ease);
  box-shadow: -18px 0 40px rgba(0, 0, 0, .5);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-panel:focus { outline: none; }
.drawer header { display: flex; align-items: flex-start; gap: 1rem; border-bottom: 2px solid #2a1c12; padding-bottom: .6rem; margin-bottom: .6rem; }
.drawer h2 { margin: 0; font: 900 1.3rem/1.35 var(--serif); flex: 1; }
.drawer header button { background: none; border: 1px solid rgba(42, 28, 18, .4); border-radius: 50%; width: 2rem; height: 2rem; cursor: pointer; font-size: 1.2rem; line-height: 1; color: inherit; }
.drawer h3 { font: 700 .95rem var(--serif); letter-spacing: .12em; margin: 1.3rem 0 .5rem; color: #6b4a22; }
.drawer a { color: #7a3a14; }
.drawer ul, .drawer ol { margin: 0; padding-left: 1.1rem; }
.drawer li { margin-bottom: .55rem; font-size: .9rem; line-height: 1.6; }
.facts { list-style: none; padding: 0 !important; }
.fact { background: #f8f1e1; border: 1px solid rgba(42, 28, 18, .15); padding: .6rem .75rem; border-radius: 3px; }
.fact-top { display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.fact-metric { font-weight: 700; }
.fact-val { margin: .2rem 0; font: 800 1.2rem var(--serif); color: #2a1c12; }
.fact-meta, .fact-src, .fact-note { margin: 0; font-size: .8rem; color: #5d4a36; }
.fact-note { margin-top: .2rem; }
.status { font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; color: #fff; white-space: nowrap; }
.status.ok { background: var(--ok); }
.status.warn { background: var(--warn); }
.status.bad { background: var(--bad); }
.media-list { list-style: none; padding: 0 !important; }
.muted { color: #7a6650; }
.small { font-size: .78rem; margin-top: 1.5rem; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 80; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  background: #f1e5c8; color: #2a1c12; padding: .6rem 1.1rem; border-radius: 3px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transition: opacity .25s, transform .25s; font-size: .9rem; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 背景音乐控制器：右上角，小而不抢画面 */
.music-ctl { position: fixed; top: .9rem; right: clamp(.7rem, 1.6vw, 1.4rem); z-index: 66; font-size: .85rem; }
.is-superhost .music-ctl { top: calc(var(--sh-h, 2.3rem) + .9rem); }
.music-btn { display: inline-flex; align-items: center; gap: .4rem; height: 2.15rem; padding: 0 .85rem; border-radius: 999px; cursor: pointer;
  background: linear-gradient(#3a2618, #2c1c12); color: #f1dfb8; border: 1px solid rgba(200, 160, 90, .55); }
.music-btn:hover { border-color: var(--gold); color: var(--gold); }
.music-icon { font-size: 1rem; line-height: 1; }
.music-ctl.is-playing .music-icon { color: var(--gold); animation: beat 2.4s ease-in-out infinite; }
.music-ctl.is-off .music-icon { opacity: .45; text-decoration: line-through; }
@keyframes beat { 50% { opacity: .55; } }
.music-pop { position: absolute; right: 0; top: calc(100% + .5rem); width: 16.5rem; padding: .9rem 1rem; border-radius: 4px;
  background: var(--paper); color: var(--paper-ink); box-shadow: 0 16px 36px rgba(0, 0, 0, .55); }
.music-pop[hidden] { display: none; }
.music-title { margin: 0 0 .5rem; font: 700 .9rem var(--serif); letter-spacing: .2em; }
.music-levels { display: flex; border: 1px solid rgba(42, 28, 18, .35); border-radius: 3px; overflow: hidden; }
.music-levels button { flex: 1; padding: .35rem 0; border: 0; border-left: 1px solid rgba(42, 28, 18, .25); background: transparent; color: inherit; cursor: pointer; }
.music-levels button:first-child { border-left: 0; }
.music-levels button[aria-checked="true"] { background: #2a1c12; color: #f3e6c8; font-weight: 700; }
.music-now { margin: .7rem 0 .3rem; font: 600 .82rem/1.55 var(--serif); }
.music-now span { font: 400 .74rem var(--sans); color: #6b5641; }
.music-lic { margin: 0; font-size: .68rem; color: #8a7660; }
.reader .chrome.top { padding-right: calc(clamp(.7rem, 1.6vw, 1.4rem) + 6rem); }
#app:has(.reader.ui-hidden) ~ .music-ctl { opacity: 0; pointer-events: none; }
.hall-head { padding-top: 1.2rem; }

/* 窄屏与竖屏：叙述改到下方，版式改为单列，页面可滚动 */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  :root { --tl-h: 4.5rem; }
  .hall-stats div { padding: .5rem .8rem; }
  .demo-note { margin-left: 0; width: 100%; }
  .layout-hero .story { left: 1.2rem; right: 1.2rem; width: auto; }
  .layout-hero .shade { background: linear-gradient(0deg, rgba(12, 8, 5, .95) 0%, rgba(12, 8, 5, .75) 45%, rgba(12, 8, 5, 0) 75%); }
  .layout-data, .layout-news, .layout-epilogue, .layout-type, .layout-quote { grid-template-columns: 1fr; overflow-y: auto; align-content: start; padding-top: 4.5rem; gap: 2rem; }
  .type-stage { height: 30vh; }
  .type-seal { width: 7rem; }
  .cover-type .type-art { padding-left: 0; align-items: start; padding-top: 12vh; opacity: .55; }
  .side-photo { display: none; }
  .gallery { height: 42vh; }
  .timeline { padding: 0 3.6rem .6rem; }
  .node .tl-title { display: none; }
  .node { min-width: 0; }
  .badge { bottom: auto; top: 4rem; }
  .chrome-actions kbd { display: none; }
  .music-level { display: none; }
  .music-btn { width: 2.15rem; padding: 0; justify-content: center; }
  .reader .chrome.top { padding-right: 3.4rem; }
  .dossier-body { padding: 1.4rem 1.2rem 1.2rem; }
  .exhibit-label { position: relative; right: auto; width: auto; margin: 1.2rem 0 0; }
  .exhibit { padding-bottom: 0; }
  .sheet-under { display: none; }
  .nav { display: none; }
  .back, .counter, .chrome-actions button { white-space: nowrap; }
  .chrome-actions [data-act=toggle-ui] { display: none; }
  .sh-banner span { display: none; }
  .chrome.top { gap: .5rem; padding: .7rem; }
  .chrome-actions button { padding: .3rem .6rem; font-size: .8rem; }
  .data-hero, .layout-data .story, .exhibit { min-width: 0; }
  .layout-data, .layout-news, .layout-epilogue, .layout-type, .layout-quote { grid-template-columns: minmax(0, 1fr) !important; }
  .bars { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
  .bar { grid-template-columns: minmax(0, 1fr) max-content; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .story h2 { font-size: 1.7rem; margin-bottom: .5rem; }
  .story p { font-size: .92rem; line-height: 1.65; }
  .layout-hero .story { bottom: calc(var(--tl-h) + .8rem); }
  .big-num { font-size: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ———————————————— 品牌片头：黑场 → logo 淡入停留 → 暗下 ———————————————— */
.intro { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; background: #000; cursor: pointer; transition: opacity .7s ease; }
.intro.done { opacity: 0; pointer-events: none; }
.intro-logo { display: grid; justify-items: center; gap: 1.1rem; opacity: 0; transform: scale(.97); transition: opacity 1s ease, transform 2.6s ease-out, filter 1s ease; }
.intro.show .intro-logo { opacity: 1; transform: scale(1); }
.intro.dim .intro-logo { opacity: 0; filter: brightness(.3); transition: opacity .8s ease, filter .8s ease; }
.intro-mark { display: grid; place-items: center; width: min(40vw, 15rem); height: min(40vw, 15rem); overflow: hidden; padding: 1.8rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffaf0, #e7dabd); box-shadow: 0 0 80px rgba(224, 178, 92, .15); }
.intro-mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
.intro-mark .wordmark { font-size: clamp(1.4rem, 3vw, 2.6rem) !important; text-align: center; white-space: nowrap; }
.intro-name { font: 900 clamp(1.6rem, 3vw, 2.4rem)/1 var(--serif); letter-spacing: .5em; padding-left: .5em; color: #efe2c8; }
.intro-span { font: .82rem var(--serif); letter-spacing: .4em; color: #8f7f66; }
.intro-skip { position: absolute; right: 1.4rem; bottom: 1.2rem; font-size: .75rem; color: #6d604d; letter-spacing: .1em; }

/* ———————————————— 电影胶片放映版式（左图右文） ————————————————
   三行：顶栏 / 舞台（左 45% 胶片画面 + 右侧完整正文）/ 胶片时间轴。
   顶栏和时间轴在沉浸放映时只淡出、不让出空间，所以画面和文字不跳动。 */
.reader.film {
  --perf: 12px;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  overflow: hidden; isolation: isolate; background: #070504;
}
.film-backdrop { position: absolute; inset: -8%; z-index: -2; background-size: cover; background-position: center; filter: blur(40px) grayscale(.5) sepia(.35) brightness(.3); }
.film-vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(0, 0, 0, .7) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: normal; opacity: .9; }
.reader.film .chrome.top { position: relative; display: flex; align-items: center; gap: .8rem; padding: .6rem clamp(.8rem, 2vw, 1.6rem); padding-right: calc(clamp(.7rem, 1.6vw, 1.4rem) + 5.4rem); background: none; }
.film-brand { font: 700 .95rem var(--serif); color: #f1e2c4; letter-spacing: .1em; }
.film-explore { font-size: .72rem; color: #9f8f76; }
.reader.film .chrome-actions { display: flex; gap: .45rem; align-items: center; }
.reader.film .chrome-actions button { padding: .25rem .75rem; font-size: .8rem; }
.film-play { display: inline-flex; align-items: center; gap: .4rem; }
.film-play .fp-icon { font-size: .7rem; letter-spacing: -.1em; width: 1em; text-align: center; }
.reader.film.is-playing .film-play { border-color: var(--gold); color: var(--gold); }
.film-speed { display: inline-flex; border: 1px solid rgba(243, 234, 219, .3); border-radius: 999px; overflow: hidden; }
.reader.film .film-speed button { border: 0; border-radius: 0; background: rgba(20, 13, 8, .55); padding: .25rem .55rem; font-size: .74rem; color: #cdbb98; }
.reader.film .film-speed button[aria-pressed="true"] { background: var(--gold); color: #1b120a; font-weight: 700; }

.film-stage { position: relative; min-height: 0; display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: clamp(1rem, 3vw, 3rem); padding: .4rem clamp(3.4rem, 5vw, 5rem) .8rem; }
.gate { position: relative; min-height: 0; }
.filmstrip { position: absolute; inset: 0; background: #0f0b08; box-shadow: 0 24px 50px -18px #000, 0 0 0 1px rgba(255, 220, 160, .06); }
.perf { position: absolute; left: 0; right: 0; height: var(--perf); z-index: 3; background: #120d09;
  background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(233, 220, 192, .16) 7px 16px, transparent 16px 23px);
  background-size: 100% 5px; background-position: 0 50%; background-repeat: repeat-x; }
.perf.top { top: 0; } .perf.bottom { bottom: 0; }
.window { position: absolute; inset: var(--perf) 0; overflow: hidden; background: #0b0806; }
.frame { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; overflow: hidden; }
.frame.has-img { cursor: zoom-in; }
.frame-bg { position: absolute; inset: -6%; background-size: cover; background-position: center; filter: blur(24px) brightness(.42) sepia(.5); }
.frame-img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: sepia(.28) saturate(.82) contrast(1.06) brightness(.97); animation: weave 7s steps(28) infinite, slowpush 14s ease-out both; }
.frame.cover .frame-img { object-fit: cover; }
.frame.small .frame-img { width: auto; height: auto; max-width: 90%; max-height: 90%; padding: .5rem .5rem 1.4rem; background: #efe6d2; box-shadow: 0 20px 40px -12px #000; transform: rotate(-.8deg); animation: none; }
.frame.placeholder { background: radial-gradient(ellipse at 50% 50%, #3a2a1a, #120c07 75%); }
.frame.placeholder.sealed { background: repeating-linear-gradient(135deg, #1b120b 0 18px, #170f09 18px 36px); }
.logo-card-inner { display: grid; justify-items: center; gap: 1rem; padding: 1.6rem 2rem 1.2rem; background: #efe6d2; box-shadow: 0 20px 40px -12px #000; transform: rotate(-1.2deg); }
.lc-logo { display: grid; place-items: center; width: min(14rem, 30vw); aspect-ratio: 4 / 3; }
.lc-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lc-year { font: 300 1.4rem "Songti SC", "STSong", var(--serif); color: #5a4428; letter-spacing: .2em; }
.leader { position: relative; height: min(60%, 22rem); aspect-ratio: 1; display: grid; place-items: center; }
.leader .ring { position: absolute; border-radius: 50%; border: 2px solid rgba(236, 220, 190, .32); }
.leader .r1 { inset: 0; } .leader .r2 { inset: 14%; border-width: 1px; }
.leader .cross { position: absolute; inset: -12%; background: linear-gradient(rgba(236, 220, 190, .22), rgba(236, 220, 190, .22)) center / 1px 100% no-repeat, linear-gradient(90deg, rgba(236, 220, 190, .22), rgba(236, 220, 190, .22)) center / 100% 1px no-repeat; }
.leader-num { font: 900 clamp(2rem, 7vh, 5rem)/1 var(--serif); color: rgba(244, 230, 200, .7); }
.grain { position: absolute; inset: var(--perf) 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, .6) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; opacity: .55; animation: grain .5s steps(4) infinite, flicker 3.2s linear infinite; }
.grain::after { content: ""; position: absolute; top: 0; bottom: 0; left: 37%; width: 1px; background: rgba(255, 245, 225, .35); animation: scratch 9s linear infinite; }
@keyframes grain { 0% { background-position: 0 0, 0 0; } 25% { background-position: 0 0, -40px 30px; } 50% { background-position: 0 0, 30px -50px; } 75% { background-position: 0 0, -60px -20px; } }
@keyframes flicker { 0%, 100% { opacity: .55; } 7% { opacity: .62; } 9% { opacity: .5; } 41% { opacity: .58; } 43% { opacity: .66; } 70% { opacity: .52; } }
@keyframes scratch { 0%, 82% { opacity: 0; left: 37%; } 84% { opacity: 1; } 92% { opacity: .6; left: 61%; } 94%, 100% { opacity: 0; left: 62%; } }
@keyframes weave { 0%, 100% { translate: 0 0; } 25% { translate: .3px -.4px; } 50% { translate: -.3px .3px; } 75% { translate: .2px .4px; } }
@keyframes slowpush { from { scale: 1.035; } to { scale: 1; } }
/* 换一张幻灯片：画面过片（手动）或溶接（自动），文字淡入 */
.frame.in.advance { animation: filmInUp .55s cubic-bezier(.3, .7, .2, 1) both; }
.frame.out.advance { animation: filmOutUp .55s cubic-bezier(.3, .7, .2, 1) both; }
.frame.in.advance-back { animation: filmInDown .55s cubic-bezier(.3, .7, .2, 1) both; }
.frame.out.advance-back { animation: filmOutDown .55s cubic-bezier(.3, .7, .2, 1) both; }
.frame.in.dissolve { animation: dissolveIn 1.4s ease both; }
.frame.out.dissolve { animation: dissolveOut 1.4s ease both; }
@keyframes filmInUp { from { transform: translateY(104%); filter: blur(2px) brightness(1.4); } to { transform: none; filter: none; } }
@keyframes filmOutUp { to { transform: translateY(-104%); filter: blur(2px) brightness(1.4); } }
@keyframes filmInDown { from { transform: translateY(-104%); filter: blur(2px) brightness(1.4); } to { transform: none; filter: none; } }
@keyframes filmOutDown { to { transform: translateY(104%); filter: blur(2px) brightness(1.4); } }
@keyframes dissolveIn { from { opacity: 0; } 40% { opacity: 0; } to { opacity: 1; } }
@keyframes dissolveOut { from { opacity: 1; } 55% { opacity: .2; filter: brightness(.4); } to { opacity: 0; } }
.caption-body.text-in { animation: textIn .7s .15s ease both; }
.caption-body.text-in.slow { animation-duration: 1.1s; animation-delay: .45s; }
@keyframes textIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.film-backdrop { transition: background-image .9s ease; }
.film-credit { position: absolute; z-index: 4; left: .7rem; bottom: calc(var(--perf) + .35rem); max-width: calc(100% - 1.4rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .64rem; letter-spacing: .06em; color: rgba(240, 228, 205, .66); text-shadow: 0 1px 2px #000; pointer-events: none; }
.film-end { position: absolute; inset: var(--perf) 0; z-index: 5; display: grid; place-content: center; gap: 1rem; text-align: center; background: rgba(8, 5, 3, .72); }
.film-end[hidden] { display: none; }
.film-end p { margin: 0; font: 700 1.1rem var(--serif); letter-spacing: .4em; color: #eadbbd; }

/* 右侧文字区 */
.caption-area { position: relative; min-height: 0; display: flex; }
.reel-progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(243, 234, 219, .08); }
.reel-progress i { display: block; height: 100%; width: 0; background: rgba(224, 178, 92, .75); transition: width .12s linear; }
.reader.film:not(.is-playing) .reel-progress { opacity: 0; }
.caption-body { flex: 1; min-height: 0; display: flex; }
.subtitle { flex: 1; min-height: 0; display: flex; flex-direction: column; max-width: 40rem; padding-top: .4rem; }
.sub-year { margin: 0; font: 300 clamp(2.4rem, 6vh, 4.2rem)/1 "Songti SC", "STSong", "Times New Roman", var(--serif); letter-spacing: .02em; color: #f0e4cc; }
.sub-year::after { content: ""; display: block; height: 1px; margin: .6rem 0 .55rem; background: rgba(239, 227, 203, .25); }
.sub-head { margin: 0 0 .2rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sub-title { font: 700 clamp(1rem, 2.2vh, 1.25rem) var(--serif); color: #f5e9d2; letter-spacing: .06em; }
.sub-meta { font-size: .72rem; color: #8f806a; letter-spacing: .08em; }
.sub-same { margin: .1rem 0 .5rem; font-size: .76rem; color: #a2927a; }
.sub-same b { color: #c9b48e; font-weight: 600; margin-right: .5em; letter-spacing: .15em; }
.sub-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .3rem .8rem 1.4rem 0; scrollbar-width: thin; scrollbar-color: rgba(233, 220, 192, .22) transparent;
  -webkit-mask: linear-gradient(transparent, #000 .6rem, #000 calc(100% - 1.6rem), transparent); mask: linear-gradient(transparent, #000 .6rem, #000 calc(100% - 1.6rem), transparent); }
.sub-scroll::-webkit-scrollbar { width: 4px; }
.sub-scroll::-webkit-scrollbar-thumb { background: rgba(233, 220, 192, .22); border-radius: 2px; }
.sub-scroll:focus-visible { outline: 1px dashed rgba(224, 178, 92, .45); outline-offset: 2px; }
.sub-text { margin: 0 0 .9rem; font-size: clamp(.9rem, 1.9vh, 1rem); line-height: 1.95; color: #d3c6ae; }
.sub-text strong { color: var(--gold); font-weight: 700; }

.reader.film .nav { position: absolute; top: 50%; margin-top: -1.4rem; width: 2.8rem; height: 2.8rem; font-size: 1.6rem; z-index: 8; }
.reader.film .nav.prev { left: .5rem; } .reader.film .nav.next { right: .5rem; }
.reader.film .reel { position: relative; padding: .2rem 0 .6rem; background: none; }
.reel ol { list-style: none; margin: 0 auto; padding: 8px .8rem; display: flex; gap: 6px; overflow-x: auto; width: max-content; max-width: 100%; scrollbar-width: none;
  background: #16100b; background-image: repeating-linear-gradient(90deg, rgba(233, 220, 192, .16) 0 6px, transparent 6px 14px), repeating-linear-gradient(90deg, rgba(233, 220, 192, .16) 0 6px, transparent 6px 14px);
  background-size: 100% 3px, 100% 3px; background-position: 0 2px, 0 calc(100% - 2px); background-repeat: repeat-x; }
.reel ol::-webkit-scrollbar { display: none; }
.thumb { display: block; width: 72px; text-decoration: none; color: #b9a98d; opacity: .7; transition: opacity .2s; }
.thumb:hover, .thumb.current { opacity: 1; }
.thumb-pic { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: #2a1d13; outline: 1px solid rgba(233, 220, 192, .15); }
.thumb-pic img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.4) saturate(.7); }
.thumb-ph { font: 700 .72rem var(--serif); color: rgba(233, 220, 192, .55); }
.thumb.current .thumb-pic { outline: 2px solid var(--gold); }
.thumb.locked .thumb-pic { background: repeating-linear-gradient(135deg, #1d140d 0 6px, #170f09 6px 12px); }
.thumb.unread .thumb-pic { box-shadow: inset 0 0 0 2px #d4532f; }
.thumb-yr { display: block; margin-top: 2px; text-align: center; font: 600 .64rem var(--serif); letter-spacing: .05em; }
.thumb.current .thumb-yr { color: var(--gold); }
.reader.film .chrome, .reader.film .nav, .music-ctl { transition: opacity .5s ease; }
.reader.film.immersive .chrome, .reader.film.immersive .nav, .film-immersive .music-ctl { opacity: 0; pointer-events: none; }

/* 完整大图 */
.film-zoom { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(5, 3, 2, .94); cursor: zoom-out; padding: 2rem; }
.film-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 60px #000; }
.film-zoom button { position: absolute; top: 1rem; right: 1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid rgba(243, 234, 219, .4); background: rgba(20, 13, 8, .6); color: var(--text); font-size: 1.3rem; cursor: pointer; }

/* 窄屏、竖屏：上图下文 */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .film-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(10rem, 42%) minmax(0, 1fr); gap: .8rem; padding: .3rem .8rem .5rem; }
  .reader.film .nav { display: none; }
  .reader.film .chrome.top { padding-right: 3.4rem; gap: .5rem; flex-wrap: wrap; }
  .film-explore, .film-brand, .reader.film .chrome-actions [data-act=sources-all], .film-play .fp-label { display: none; }
  .sub-year { font-size: 2rem; }
  .thumb { width: 56px; }
}
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .sub-year { font-size: 1.9rem; }
  .sub-year::after { margin: .35rem 0 .3rem; }
  .thumb { width: 56px; }
  .reader.film .reel { padding: 0 0 .3rem; }
  .reel ol { padding: 6px .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none !important; } .grain::after { display: none; }
  .reader.film .frame.in, .reader.film .caption-body.text-in { animation: rmFade .35s ease both !important; }
  .reader.film .frame.out { animation: rmFadeOut .35s ease both !important; }
}
@keyframes rmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rmFadeOut { to { opacity: 0; } }
/* 画面保持横幅比例（最高 4:3 竖向余量），在左栏里垂直居中 */
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .gate { align-self: center; height: auto; max-height: 100%; aspect-ratio: 4 / 3; }
}

/* ———————————————— 展陈形式（博物馆 V2） ———————————————— */
/* 展品按原比例陈列，不强行铺满；下方是展品标签 */
.frame.exhibit { padding: 2rem 1.4rem 1rem; }
.ex-kind { position: absolute; top: .7rem; left: .8rem; z-index: 3; font-size: .64rem; letter-spacing: .2em; color: rgba(240, 228, 205, .6); }
.piece { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; max-width: 100%; max-height: 100%; min-height: 0; cursor: zoom-in; }
.piece-img { display: block; min-height: 0; flex: 0 1 auto; max-height: calc(100% - 2.8rem); }
.piece-img img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 18px 36px -14px #000; filter: sepia(.2) saturate(.88) contrast(1.04); }
.piece.main { width: 100%; height: 100%; justify-content: center; }
.piece.main .piece-img { height: calc(100% - 2.8rem); display: grid; place-items: center; }
.piece.main .piece-img img { animation: weave 7s steps(28) infinite; }
.zoom-chip { position: absolute; top: .4rem; right: .4rem; font-size: .66rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(10, 6, 3, .65); color: #e9dcc0; opacity: 0; transition: opacity .2s; }
.piece:hover .zoom-chip, .piece:focus-visible .zoom-chip { opacity: 1; }
.ex-label { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .7rem; max-width: 100%; font-size: .68rem; line-height: 1.4; color: rgba(236, 224, 200, .78); text-align: center; }
.ex-label b { color: #f0e4cc; font-weight: 600; }
.ex-label .ex-src { color: rgba(220, 205, 180, .5); }
.reader.film .film-credit { display: none; }
/* 档案证物：米白展台 + 射灯，原件按原比例 */
.frame.ex-archive { background: radial-gradient(ellipse 70% 60% at 50% 40%, #e9dfc8, #c9b892 70%, #a79570); }
.frame.ex-archive .ex-kind { color: rgba(60, 40, 20, .55); }
.archive-table { width: 100%; height: 100%; display: grid; place-items: center; min-height: 0; }
.frame.ex-archive .piece .ex-label { color: #4a3520; }
.frame.ex-archive .piece .ex-label b { color: #2a1c12; }
.frame.ex-archive .piece .ex-label .ex-src { color: #7a6650; }
.piece.document .piece-img img { background: #fff; padding: .35rem; transform: rotate(-.6deg); }
.mock-paper { width: min(92%, 30rem); max-height: 100%; overflow: hidden; background: #f7f0de; padding: 1.4rem 1.6rem 1rem; transform: rotate(-1.2deg); border-top: 6px double #2a1c12; box-shadow: 0 22px 40px -16px rgba(40, 24, 10, .8); font-family: var(--serif); color: #2a1c12; }
.mp-kicker { margin: 0 0 .4rem; font-size: .74rem; letter-spacing: .16em; color: #6b5641; border-bottom: 1px solid rgba(42, 28, 18, .3); padding-bottom: .4rem; }
.mp-head { margin: 0 0 .7rem; font-weight: 900; font-size: clamp(1.4rem, 3.2vh, 2.2rem); line-height: 1.2; }
.mp-line { margin: 0 0 .4rem; font-size: .9rem; line-height: 1.7; padding-left: 1rem; position: relative; }
.mp-line::before { content: ""; position: absolute; left: 0; top: .65em; width: .38rem; height: .38rem; background: #8a2c22; }
.mp-line strong { color: #8a2c22; }
.mp-note { margin: .6rem 0 0; font: .68rem var(--sans); color: #8a7660; letter-spacing: .08em; }
/* 商业数据：数字是主角 */
.frame.ex-data { background: radial-gradient(ellipse 70% 70% at 35% 40%, #3d2611, #120b06 80%); place-items: center start; }
.data-card { width: 100%; max-height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: .4rem; padding: 0 .6rem; }
.dc-big { margin: 0; display: flex; align-items: baseline; gap: .5rem; color: var(--gold); font-family: var(--serif); }
.dc-num { font-weight: 900; font-size: clamp(3.6rem, 13vh, 8rem); line-height: .9; }
.dc-unit { font-weight: 700; font-size: clamp(1.2rem, 3.5vh, 2rem); }
.dc-label { margin: 0 0 .4rem; font: 700 .95rem var(--serif); color: #f1e2c4; }
.dc-title { margin: .2rem 0 .3rem; font-size: .7rem; letter-spacing: .14em; color: var(--gold-soft); border-top: 1px solid rgba(224, 178, 92, .3); padding-top: .5rem; }
.dbars { display: grid; grid-template-columns: max-content 1fr max-content; gap: .45rem .7rem; align-items: center; }
.dbar { display: contents; }
.dbar-label { font-size: .78rem; color: #d9c8aa; white-space: nowrap; }
.dbar-track { height: 14px; background: rgba(243, 234, 219, .08); }
.dbar-fill { display: block; height: 100%; background: rgba(201, 165, 107, .55); transform-origin: left; animation: grow .9s .1s cubic-bezier(.2, .7, .2, 1) both; }
.dbar.hl .dbar-fill { background: var(--gold); }
.dbar.hl .dbar-label, .dbar.hl .dbar-val { color: #fbf1dc; font-weight: 700; }
.dbar-val { font: .82rem var(--serif); color: #d9c8aa; text-align: right; white-space: nowrap; }
.dc-note { margin: .3rem 0 0; font-size: .7rem; color: var(--muted); }
.piece.inset { align-self: flex-start; max-width: 55%; margin-top: .4rem; }
.piece.inset .piece-img img { max-height: 22vh; }
/* 产品收藏：多件藏品并排 */
.frame.ex-gallery { background: radial-gradient(ellipse 80% 70% at 50% 40%, #2c1d12, #0f0905 80%); }
.gallery-grid { width: 100%; height: 100%; display: grid; gap: 1rem; align-items: center; justify-items: center; min-height: 0; }
.gallery-grid.n2 { grid-template-columns: 1fr 1fr; }
.gallery-grid.n3, .gallery-grid.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.piece.item { height: 100%; justify-content: center; }
.piece.item .piece-img { height: calc(100% - 3.2rem); display: grid; place-items: center; }
/* 无图：标志卡 */
.frame.logo-card.exhibit { background: radial-gradient(ellipse at 50% 50%, #3a2a1a, #120c07 75%); }
/* 放大镜：完整原图 + 标签 */
.film-zoom { flex-direction: column; gap: .8rem; }
.film-zoom img { max-height: calc(100% - 3rem); }
.zoom-label { margin: 0; display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; font-size: .8rem; color: #d8c9ad; }
.zoom-label b { color: #f3e6cb; }
/* 手动翻页：轻快淡入 + 轻位移（约 0.3 秒） */
.frame.in.quick { animation: qIn .3s ease-out both; }
.frame.out.quick { animation: qOut .3s ease-in both; }
.frame.in.quick-back { animation: qInBack .3s ease-out both; }
.frame.out.quick-back { animation: qOut .3s ease-in both; }
@keyframes qIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes qInBack { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes qOut { to { opacity: 0; } }
.caption-body.text-in { animation-duration: .3s; animation-delay: .05s; }
.caption-body.text-in.slow { animation-duration: 1.1s; animation-delay: .45s; }
/* 人物与转折：文字更宽 */
.reader.film[data-exhibit="editorial_story"] .film-stage { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
.reader.film[data-exhibit="editorial_story"] .subtitle { max-width: 46rem; }
/* 重大时刻：全屏大图，数字压在画面上 */
.reader.film[data-compose="full"] .film-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.reader.film[data-compose="full"] .subtitle { max-width: 60rem; margin: 0 auto; }
.reader.film[data-compose="full"] .sub-scroll { max-height: 6.5rem; }
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .reader.film[data-exhibit] .film-stage { grid-template-columns: minmax(0, 1fr); }
  .dc-num { font-size: 3.4rem; }
}
/* 重大时刻：画面区占满整宽，图片铺满，标签压在左下 */
.frame.ex-hero { padding: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; filter: sepia(.25) saturate(.85) contrast(1.05); animation: weave 7s steps(28) infinite, slowpush 14s ease-out both; }
.frame.ex-hero .ex-label { position: absolute; left: .8rem; bottom: .5rem; justify-content: flex-start; text-align: left; text-shadow: 0 1px 3px #000; max-width: calc(100% - 1.6rem); }
.frame.ex-hero .ex-label.ph-note { left: 50%; translate: -50% 0; }
.reader.film[data-compose="full"] .film-stage { grid-template-rows: minmax(0, 1fr) minmax(0, 34%); gap: .6rem; }
.reader.film[data-compose="full"] .sub-scroll { max-height: none; }
.reader.film[data-compose="full"] .subtitle { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 1.6rem; width: 100%; max-width: 64rem; }
.reader.film[data-compose="full"] .sub-year { grid-row: 1 / span 3; font-size: clamp(2.4rem, 7vh, 4.6rem); }
.reader.film[data-compose="full"] .sub-year::after { display: none; }
/* 数据展在矮屏上压缩，配图收起 */
@media (max-height: 820px) {
  .dc-num { font-size: clamp(3rem, 11vh, 6rem); }
  .dc-label { font-size: .85rem; margin-bottom: .2rem; }
  .dbars { gap: .3rem .6rem; }
  .dbar-track { height: 10px; }
  .frame.ex-data .piece.inset { display: none; }
}
@media (max-height: 560px) {
  .dc-num { font-size: 2.8rem; }
  .dc-note { display: none; }
  .frame.exhibit { padding: 1.6rem .8rem .6rem; }
}
@media (max-height: 940px) { .frame.ex-data .piece.inset { display: none; } }
.reader.film[data-compose="full"] .gate { width: 100%; height: 100%; aspect-ratio: auto; align-self: stretch; }
.piece.document { height: 100%; justify-content: center; }
.piece.document .piece-img { height: calc(100% - 3rem); display: grid; place-items: center; }
.piece.document .piece-img img { max-height: 100%; }
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .reader.film[data-compose="full"] .gate { aspect-ratio: auto; height: 100%; width: 100%; align-self: stretch; }
}
/* 陈列墙：标签紧贴展品 */
.piece.item { height: auto; max-height: 100%; }
.piece.item .piece-img { height: auto; max-height: calc(100% - 3.2rem); }
.gallery-grid .piece.item .piece-img img { max-height: min(46vh, 100%); }
.gallery-grid.n2 .piece.item .piece-img img { max-height: 52vh; }
@media (max-height: 480px) { .dc-title { display: none; } .dbars { gap: .15rem .5rem; } .dbar-track { height: 8px; } .dbar-label, .dbar-val { font-size: .7rem; } .dc-label { font-size: .78rem; } }
/* 图片一律按原比例完整显示，不裁主体；空出的地方用同图虚化填满 */
.hero-img { position: relative; object-fit: contain; animation: weave 7s steps(28) infinite; }
.frame.ex-hero .ex-label { background: linear-gradient(transparent, rgba(0, 0, 0, .5)); padding: .2rem .4rem; }
.layout-hero .bg .bg-blur { position: absolute; inset: -6%; background-size: cover; background-position: center; filter: blur(30px) brightness(.45) sepia(.4); }
.layout-hero .bg img { position: relative; object-fit: contain; }
.intro-note { position: absolute; left: 50%; bottom: 3.2rem; translate: -50% 0; width: max-content; max-width: 90vw; text-align: center; font-size: .72rem; letter-spacing: .08em; color: rgba(200, 186, 160, .45); }

.hero-img, .piece.main .piece-img img { animation: weave 7s steps(28) infinite !important; }
.layout-hero .bg img { animation: none; }
.print img { object-fit: contain !important; background: #fffaf0; }
.layout-data .bg.dim img, .side-photo img { object-fit: contain; }

/* —— 构图（compose） —— */
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  /* 右图左文 */
  .reader.film[data-compose="rl"] .film-stage { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
  .reader.film[data-compose="rl"] .gate { order: 2; }
  .reader.film[data-compose="rl"] .caption-area { order: 1; justify-content: flex-end; }
  /* 斜角：图片在左上、文字卡在右下，局部错落叠压 */
  .reader.film[data-compose="diagonal"] .film-stage { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(10, minmax(0, 1fr)); gap: 0; }
  .reader.film[data-compose="diagonal"] .gate { grid-column: 1 / 9; grid-row: 1 / 9; aspect-ratio: auto; width: 100%; height: 100%; align-self: stretch; }
  .reader.film[data-compose="diagonal"] .caption-area { grid-column: 7 / 13; grid-row: 4 / 11; z-index: 6; padding: 1.1rem 1.4rem 0; margin-left: 1rem;
    background: rgba(18, 12, 8, .94); border: 1px solid rgba(233, 220, 192, .12); box-shadow: -18px -18px 40px -16px rgba(0, 0, 0, .8); }
  .reader.film[data-compose="diagonal"] .sub-year { font-size: clamp(2rem, 5vh, 3.4rem); }
  /* 上图下文 */
  .reader.film[data-compose="stack"] .film-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 58fr) minmax(0, 42fr); gap: .7rem; }
  .reader.film[data-compose="stack"] .gate { aspect-ratio: auto; width: 100%; height: 100%; align-self: stretch; }
  .reader.film[data-compose="stack"] .subtitle { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 1.6rem; width: 100%; max-width: 64rem; margin: 0 auto; }
  .reader.film[data-compose="stack"] .sub-year { grid-row: 1 / span 3; }
  .reader.film[data-compose="stack"] .sub-year::after { display: none; }
}
/* 展品图片：外框占满可用空间，图片在框内按原比例完整显示（contain），保证不超出画框 */
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.piece.main, .piece.document, .piece.item { width: 100%; height: 100%; justify-content: center; }
.piece.main .piece-img, .piece.document .piece-img, .piece.item .piece-img { position: relative; width: 100%; flex: 1 1 0; min-height: 0; height: auto; max-height: none; display: block; }
.piece.main .piece-img img, .piece.document .piece-img img, .piece.item .piece-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain;
  background: none; padding: 0; box-shadow: none; filter: sepia(.2) saturate(.88) contrast(1.04) drop-shadow(0 16px 24px rgba(0, 0, 0, .55)); }
.piece.document .piece-img img { transform: none; }
.gallery-grid { grid-auto-rows: minmax(0, 1fr); }
.gallery-grid.n2 { grid-template-rows: minmax(0, 1fr); }
.gallery-grid .piece.item .piece-img img { max-height: none; }
.data-card { height: 100%; }
.piece.inset { flex: 1 1 0; min-height: 4rem; width: 55%; max-width: 55%; align-self: flex-start; }
.piece.inset .piece-img { position: relative; width: 100%; flex: 1 1 0; min-height: 0; display: block; max-height: none; }
.piece.inset .piece-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: left center; }
/* 锁 */
.lock-ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12em; }
.lock-ico circle { fill: currentColor; stroke: none; }
.big-lock { font-size: clamp(3rem, 12vh, 6rem); color: rgba(224, 178, 92, .45); }
.frame.placeholder.sealed { display: grid; place-items: center; }
.thumb-lock { font-size: 1.1rem; color: rgba(224, 178, 92, .55); }
.thumb.locked { opacity: .45; cursor: help; }
.reader.film .nav.is-locked { opacity: .55; font-size: 1.1rem; display: grid; place-items: center; color: rgba(224, 178, 92, .75); }
.seal-strips { display: grid; place-items: center; font-size: 3rem; color: rgba(140, 32, 24, .55); }
/* 空的图片位 */
.frame.empty-slot { background: #0b0806; }
.empty-paper { position: absolute; inset: 8% 8% 10%; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E"),
  linear-gradient(160deg, #2b2016, #211810 60%, #1b130c);
  box-shadow: inset 0 0 0 1px rgba(233, 220, 192, .08), inset 0 0 60px rgba(0, 0, 0, .55); }
.empty-note { position: relative; font: 400 .78rem var(--serif); letter-spacing: .5em; padding-left: .5em; color: rgba(220, 205, 180, .28); }
/* 数据展：柱子多时自动压缩，不超出画框 */
.data-card { justify-content: center; }
.dbars { min-height: 0; overflow: hidden; }
.data-card:has(.dbar:nth-child(5)) .dc-num { font-size: clamp(2.8rem, 9vh, 6rem); }
.data-card:has(.dbar:nth-child(5)) .dbar-track { height: 9px; }
.data-card:has(.dbar:nth-child(5)) .dbars { gap: .25rem .6rem; }
.data-card:has(.dbar:nth-child(5)) .dbar-label, .data-card:has(.dbar:nth-child(5)) .dbar-val { font-size: .72rem; }
@media (max-height: 920px) { .dc-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
/* 宽而矮的画框（上图下文、全屏）：数据展改成左右两栏——数字在左，图表在右 */
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .reader.film:is([data-compose="stack"], [data-compose="full"]) .data-card {
    display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); grid-auto-rows: auto; column-gap: 2.4rem; align-content: center; padding: 0 1.6rem; }
  .reader.film:is([data-compose="stack"], [data-compose="full"]) .data-card > .dc-big,
  .reader.film:is([data-compose="stack"], [data-compose="full"]) .data-card > .dc-label { grid-column: 1; }
  .reader.film:is([data-compose="stack"], [data-compose="full"]) .data-card > .dc-title,
  .reader.film:is([data-compose="stack"], [data-compose="full"]) .data-card > .dbars,
  .reader.film:is([data-compose="stack"], [data-compose="full"]) .data-card > .dc-note { grid-column: 2; }
  .reader.film:is([data-compose="stack"], [data-compose="full"]) .data-card > .dc-big { grid-row: 1 / span 2; align-self: end; }
  .reader.film:is([data-compose="stack"], [data-compose="full"]) .data-card > .dc-label { grid-row: 3 / span 2; align-self: start; }
  .reader.film:is([data-compose="stack"], [data-compose="full"]) .data-card > .dc-title { grid-row: 1; border-top: 0; padding-top: 0; }
  .reader.film:is([data-compose="stack"], [data-compose="full"]) .data-card > .dbars { grid-row: 2 / span 2; }
  .reader.film:is([data-compose="stack"], [data-compose="full"]) .data-card > .dc-note { grid-row: 4; }
}

/* 产品陈列：三件时首件（场景图，数据里 lead:true）横跨上排，下排两件产品 */
.gallery-grid.n3.has-lead { grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); }
.gallery-grid.n3.has-lead .piece.item.lead { grid-column: 1 / -1; }

/* 数据展 + 情境复原底图：图铺满画框、压暗，数字和图表叠在上面 */

.frame.ex-data .data-backdrop { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(.75) brightness(.42); }
.frame.ex-data.has-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 9, 5, .82) 0%, rgba(14, 9, 5, .55) 55%, rgba(14, 9, 5, .25) 100%); pointer-events: none; }
.frame.ex-data.has-backdrop .data-card { position: relative; z-index: 1; }

/* ———————————————— 档案馆：无框、米纸平面（类别页 + 类别品牌墙） ————————————————
   素材：assets/archive-ui/（AI 生图试装版）。没有卡片外框、白框、缎带和印章：图标和 logo 直接放在纸面上。
   刻度：间距只用 4 / 8 / 12 / 16 / 24 / 32 / 48；颜色只用深棕、米色和一点红；控件高 32；圆角 小件 6、按钮全圆。 */
:root {
  --ap-paper: #f1e7d3; --ap-ink: #3a2414; --ap-ink-2: #6b4f36; --ap-ink-3: #9a8466; --ap-line: rgba(110, 76, 44, .18);
  --ap-red: #a8322a; --ap-red-2: #8c2620; --ap-gold: #c9962e; --ap-bar: #2c1c12; --ap-top-gold: #e6c27a; --ap-gold-line: rgba(200, 160, 90, .55);
  --ap-gutter: 48px; --ap-max: 1360px; --ap-ctl: 32px; --ap-top: 56px;
  --ap-music-room: 112px;
}
/* 平整米色 + 极淡细纹（对比度很低，正文底下没有斑块） */
body:has(.hall) {
  color: var(--ap-ink);
  background: var(--ap-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .17 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
body:has(.hall)::after { display: none; }

/* 顶栏：吸顶，内容与正文同宽对齐；控件同高、垂直居中 */
.ah-top { position: sticky; top: 0; z-index: 50; height: var(--ap-top); background: var(--ap-bar); }
.is-superhost .ah-top { top: var(--sh-h, 2.3rem); }
.ah-top-in { max-width: var(--ap-max); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 24px;
  padding: 0 max(var(--ap-gutter), calc(var(--ap-music-room) - max(0px, (100vw - var(--ap-max)) / 2))) 0 var(--ap-gutter); }
.ah-brand { font: 900 17px/1 var(--serif); letter-spacing: .16em; color: var(--ap-top-gold); white-space: nowrap; }
.ah-tab { position: relative; align-self: stretch; display: flex; align-items: center; font: 700 14px/1 var(--serif); letter-spacing: .2em; color: #f1dfb8; white-space: nowrap; }
.ah-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ap-red); }
.ah-top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ah-mode { display: inline-flex; height: var(--ap-ctl); border: 1px solid var(--ap-gold-line); border-radius: 999px; overflow: hidden; }
.ah-mode button { display: flex; align-items: center; height: 100%; padding: 0 12px; background: transparent; color: #d8c29a; border: 0; font: 13px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.ah-mode button + button { border-left: 1px solid rgba(200, 160, 90, .3); }
.ah-mode button[aria-pressed="true"] { background: var(--ap-top-gold); color: var(--ap-bar); font-weight: 700; }
.ah-btn { display: inline-flex; align-items: center; height: var(--ap-ctl); padding: 0 16px; border: 1px solid var(--ap-gold-line); border-radius: 999px;
  color: #f1dfb8; font: 13px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.ah-btn:hover, .ah-mode button:hover:not([aria-pressed="true"]) { color: #ffe3a6; }
.ah-lang { min-height: 36px; min-width: 44px; justify-content: center; background: transparent; cursor: pointer; }

.hall { max-width: var(--ap-max); margin: 0 auto; padding: 0 var(--ap-gutter) 48px; }

/* 类别页标题行：左标题，右探索进度，两端与网格对齐 */
.ah-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 48px 0 0; }
.ah-title h1 { margin: 0; font: 900 40px/1.1 var(--serif); letter-spacing: .1em; color: var(--ap-ink); }
.ah-title p { margin: 12px 0 0; font: 15px/1.4 var(--serif); letter-spacing: .12em; color: var(--ap-ink-2); }
.ah-progress { margin: 0; display: flex; align-items: flex-end; gap: 16px; }
.ah-pct { margin: 0; display: flex; align-items: baseline; gap: 2px; color: var(--ap-red); }
.ah-num { font: 900 40px/1 var(--serif); font-variant-numeric: tabular-nums; }
.ah-unit { font: 700 18px/1 var(--sans); }
.ah-pside { display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }
.ah-bar { display: block; width: 240px; height: 2px; background: var(--ap-line); }
.ah-bar i { display: block; height: 100%; background: var(--ap-red); }
.ah-sub { margin: 0; display: flex; gap: 24px; font: 13px/1 var(--sans); color: var(--ap-ink-2); white-space: nowrap; }
.ah-sub b { font-weight: 700; color: var(--ap-ink); font-variant-numeric: tabular-nums; }
.ah-sub .has-new b { color: var(--ap-red); }
.ah-note { margin: 16px 0 0; padding-bottom: 24px; border-bottom: 1px solid var(--ap-line); font: 13px/1.5 var(--sans); color: var(--ap-ink-3); }
.ah-note .link { color: var(--ap-red); font-size: 13px; margin-left: 8px; }

/* 类别：图标在上，类别名、数量、类别色细线在下 */
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 24px; padding-top: 32px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; background: none; border: 0; border-radius: 6px;
  color: var(--ap-ink); font: inherit; cursor: pointer; transition: background .2s; }
.cat-card:hover, .cat-card:focus-visible { background: rgba(110, 76, 44, .06); }
.cat-art { --art-h: 96px; height: var(--art-h); width: 100%; display: grid; place-items: center; margin-bottom: 4px; }
.cat-img { display: block; max-width: 128px; max-height: var(--art-h); width: auto; height: auto; object-fit: contain; transition: transform .25s var(--ease); }
.cat-card:hover .cat-img { transform: scale(1.05); }
.cat-art .cat-svg { width: 56px; height: 56px; fill: none; stroke: var(--ap-ink-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cat-name { position: relative; font: 900 18px/1.3 var(--serif); letter-spacing: .08em; white-space: nowrap; }
.cat-count { display: flex; align-items: center; gap: 4px; font: 13px/1 var(--sans); color: var(--ap-ink-2); font-variant-numeric: tabular-nums; }
.cat-lock .lock-ico { width: 12px; height: 12px; vertical-align: 0; }
.cat-card.is-locked .cat-img { filter: grayscale(1) sepia(.15); opacity: .38; }
.cat-card.is-locked .cat-name { color: var(--ap-ink-3); }
.cat-card.is-locked .cat-count { color: var(--ap-ink-3); }
i.dot-new, i.dot-full { display: inline-block; width: 7px; height: 7px; padding: 0; margin-left: 6px; border-radius: 50%; vertical-align: .45em; }
i.dot-new { background: var(--ap-red); }
i.dot-full { background: var(--ap-gold); }
.cat-name i.dot-new { position: absolute; right: -13px; top: 2px; margin: 0; }
/* 只开放一两个类别时：图标放大 */
.cat-grid.few { grid-template-columns: repeat(auto-fill, 240px); }
.cat-grid.few .cat-art { --art-h: 144px; }
.cat-grid.few .cat-img { max-width: 180px; }
.cat-grid.few .cat-name { font-size: 22px; }
.cat-grid.few .cat-count { font-size: 14px; }

/* 品牌墙标题行：返回、标题、说明、筛选、已发现进度一行对齐 */
.bw-head { display: flex; align-items: center; gap: 16px; padding: 40px 0 24px; border-bottom: 1px solid var(--ap-line); }
.bw-back { flex: none; display: grid; place-items: center; width: var(--ap-ctl); height: var(--ap-ctl); padding: 0; border: 1px solid rgba(110, 76, 44, .35); border-radius: 50%;
  background: none; color: var(--ap-ink); font: 15px/1 var(--sans); cursor: pointer; }
.bw-back:hover { border-color: var(--ap-red); color: var(--ap-red); }
.bw-head h2 { flex: none; margin: 0; font: 900 32px/1 var(--serif); letter-spacing: .12em; color: var(--ap-ink); }
.bw-desc { flex: 1; min-width: 0; margin: 0; font: 14px/1.4 var(--sans); color: var(--ap-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { flex: none; display: inline-flex; height: var(--ap-ctl); border: 1px solid rgba(110, 76, 44, .35); border-radius: 999px; overflow: hidden; }
.seg button { display: flex; align-items: center; height: 100%; padding: 0 14px; background: transparent; color: var(--ap-ink-2); border: 0; font: 13px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.seg button + button { border-left: 1px solid rgba(110, 76, 44, .2); }
.seg button[aria-pressed="true"] { background: var(--ap-ink); color: #f6ecd8; }
.bw-found { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 112px; }
.bw-found p { margin: 0; font: 13px/1 var(--sans); color: var(--ap-ink-2); white-space: nowrap; }
.bw-found b { font: 900 20px/1 var(--serif); color: var(--ap-ink); font-variant-numeric: tabular-nums; }
.bw-bar { display: block; width: 112px; height: 2px; background: var(--ap-line); }
.bw-bar i { display: block; height: 100%; background: var(--ap-red); }

/* 品牌：logo、正下方 2px 进度细线（与 logo 区同宽，已读深红）、一行章节小字；无框，不重复写品牌名
   logo 按面积归一：高度 = --logo-k（√目标面积）× --lk（1/√宽高比，JS 按图片算），再受 logo 区宽高限制 */
.wall { --logo-w: 200px; --logo-h: 96px; --logo-k: 96px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; padding-top: 48px; }
.empty { grid-column: 1 / -1; color: var(--ap-ink-2); padding: 48px 0; text-align: center; }
.card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; background: none; border: 0; color: var(--ap-ink); text-decoration: none; font: inherit; }
.card-logo { display: grid; place-items: end center; width: calc(var(--logo-w) + 24px); height: calc(var(--logo-h) + 20px); padding: 12px 12px 8px; border-radius: 6px; transition: background .25s; }
.card-logo img { display: block; width: auto; height: calc(var(--logo-k) * var(--lk, .6)); max-width: var(--logo-w); max-height: var(--logo-h); object-fit: contain;
  mix-blend-mode: multiply; transition: transform .25s var(--ease), box-shadow .25s; }
.card.is-badge .card-logo img { mix-blend-mode: normal; border-radius: 6px; box-shadow: 0 1px 2px rgba(60, 40, 20, .18), 0 4px 10px -6px rgba(60, 40, 20, .35); }
.card-logo .wordmark { font-size: 30px; transition: transform .25s var(--ease); }
a.card:hover .card-logo, a.card:focus-visible .card-logo { background: rgba(110, 76, 44, .06); }
a.card:hover .card-logo img, a.card:hover .card-logo .wordmark, a.card:focus-visible .card-logo img { transform: scale(1.04); }
.card-count { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 12px; font: 12px/1 var(--sans); color: var(--ap-ink-3); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.card-count i.dot-new, .card-count i.dot-full { margin: 0; vertical-align: 0; }
.card.locked-card { cursor: help; }
.card.locked-card .lc-sil { display: block; max-width: 112px; max-height: 80px; width: auto; height: auto; filter: brightness(0) opacity(.1); }
.card.locked-card .cat-svg { width: 56px; height: 56px; fill: rgba(110, 76, 44, .1); stroke: none; }
.hall-foot { margin: 48px 0 0; color: var(--ap-ink-3); font: 12px/1.6 var(--sans); text-align: center; }

/* 背景音乐按钮：与顶栏控件同高，中线对齐 */
.music-ctl { top: calc((var(--ap-top) - var(--ap-ctl)) / 2); }
.is-superhost .music-ctl { top: calc(var(--sh-h, 2.3rem) + (var(--ap-top) - var(--ap-ctl)) / 2); }
.music-btn { height: var(--ap-ctl); }

@media (max-width: 1400px) { :root { --ap-gutter: 32px; } }
@media (max-width: 1240px) {
  .bw-desc { display: none; }
  .bw-head h2 { margin-right: auto; }
}
@media (max-width: 1300px) { .wall { --logo-w: 176px; --logo-h: 84px; --logo-k: 86px; } }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  :root { --ap-gutter: 24px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ah-tab { display: none; }
  .ah-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .bw-head { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  :root { --ap-gutter: 16px; }
  .cat-grid, .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .wall { --logo-w: 132px; --logo-h: 64px; --logo-k: 64px; }
  .ah-mode button { padding: 0 8px; }
  /* 英文更长：窄屏收起品牌字标、压缩顶栏控件 */
  [data-lang="en"] .ah-brand { display: none; }
  [data-lang="en"] .ah-top-in { gap: 8px; }
  [data-lang="en"] .ah-top-right { gap: 6px; }
  [data-lang="en"] .ah-mode button { padding: 0 6px; font-size: 11px; }
  [data-lang="en"] .ah-btn { padding: 0 9px; font-size: 11px; }
}
/* 手机横屏（约 844×390）：顶栏 48，标题与进度一行，首屏就能看到类别 */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  :root { --ap-top: 48px; --ap-ctl: 28px; --ap-gutter: 24px; --ap-music-room: 64px; }
  .ah-top-in { gap: 16px; }
  .ah-brand { font-size: 15px; }
  .ah-tab { display: flex; font-size: 13px; }
  .ah-mode button { padding: 0 8px; font-size: 12px; }
  .ah-btn { padding: 0 12px; font-size: 12px; }
  .ah-head { flex-direction: row; align-items: flex-end; padding-top: 16px; gap: 16px; }
  .ah-title h1 { font-size: 24px; }
  .ah-title p { font-size: 12px; margin-top: 4px; }
  .ah-num { font-size: 28px; }
  .ah-unit { font-size: 14px; }
  .ah-bar { width: 144px; }
  .ah-pside { gap: 4px; padding-bottom: 2px; }
  .ah-sub { gap: 12px; font-size: 12px; }
  .ah-note { margin-top: 8px; padding-bottom: 12px; font-size: 12px; }
  .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 12px; padding-top: 16px; }
  .cat-card { gap: 4px; padding: 8px 4px; }
  .cat-art { --art-h: 52px; margin-bottom: 0; }
  .cat-img { max-width: 72px; }
  .cat-name { font-size: 14px; letter-spacing: .02em; }
  .cat-count { font-size: 11px; }
  .cat-grid.few { grid-template-columns: repeat(auto-fill, 160px); }
  .cat-grid.few .cat-art { --art-h: 88px; }
  .cat-grid.few .cat-img { max-width: 112px; }
  .cat-grid.few .cat-name { font-size: 18px; }
  .bw-head { padding: 12px 0; gap: 12px; }
  .bw-head h2 { font-size: 22px; margin-right: auto; }
  .bw-desc { display: none; }
  .seg button { padding: 0 8px; font-size: 12px; }
  .bw-found { min-width: 80px; gap: 6px; }
  .bw-found b { font-size: 16px; }
  .bw-found p { font-size: 12px; }
  .bw-bar { width: 80px; }
  .wall { --logo-w: 136px; --logo-h: 52px; --logo-k: 58px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; padding-top: 16px; }
  .card { gap: 6px; }
  .card-logo { padding: 8px; width: calc(var(--logo-w) + 16px); height: calc(var(--logo-h) + 16px); }
  .card-logo .wordmark { font-size: 20px; }
  .card-count { font-size: 11px; }
  .card.locked-card .lc-sil { max-height: 52px; }
}

/* ———— 品牌片头、封面、阅读器：与档案馆统一的配色与按钮（不改版式） ———— */
.sh-banner { background: #2c1c12; color: #e6c27a; border-bottom: 1px solid #8a6a3a; }
.sh-banner button { border-color: rgba(230, 194, 122, .6); color: #e6c27a; border-radius: 999px; }
/* 放映阅读器：米纸底、深色胶片相框、深色正文；版式不变 */
.reader.film { background: var(--ap-paper) url("../assets/archive-ui/bg-paper.webp?v=f9e5a6f497") center / cover; color: var(--ap-ink); }
.reader.film .film-backdrop { filter: blur(50px) grayscale(.6) sepia(.5) brightness(1.1); opacity: .16; mix-blend-mode: multiply; }
.reader.film .film-vignette { background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(110, 70, 30, .28) 100%); opacity: 1; }
.reader.film .filmstrip { box-shadow: 0 0 0 3px #3a2618, 0 0 0 4px rgba(200, 160, 90, .6), 0 22px 40px -18px rgba(50, 30, 12, .8); }
.reader.film .film-brand { color: var(--ap-ink); }
.reader.film .film-explore { color: var(--ap-ink-2); }
.reader.film .back, .reader.film .chrome-actions button, .reader.film .restore-ui {
  background: linear-gradient(#3a2618, #2c1c12); color: #f1dfb8; border: 1px solid rgba(200, 160, 90, .55); backdrop-filter: none; }
.reader.film .back:hover, .reader.film .chrome-actions button:hover { color: #ffe3a6; border-color: #e6c27a; }
.reader.film .film-speed { border-color: rgba(200, 160, 90, .55); }
.reader.film .film-speed button { background: #2c1c12; color: #d8c29a; }
.reader.film .film-speed button[aria-pressed="true"] { background: #e6c27a; color: #2c1c12; }
.reader.film.is-playing .film-play { color: #ffe3a6; border-color: #e6c27a; }
.reader.film .nav { background: linear-gradient(#3a2618, #2c1c12); border-color: rgba(200, 160, 90, .55); color: #f1dfb8; box-shadow: 0 4px 10px -4px rgba(50, 30, 12, .6); }
.reader.film .nav:hover:not(:disabled) { color: #ffe3a6; border-color: #e6c27a; }
.reader.film .nav.is-locked { color: #e6c27a; }
.reader.film .sub-year { color: var(--ap-red); font-weight: 400; }
.reader.film .sub-year::after { background: var(--ap-line); }
.reader.film .sub-title { color: var(--ap-ink); }
.reader.film .sub-meta { color: #8a7254; }
.reader.film .sub-same { color: #7a6048; }
.reader.film .sub-same b { color: var(--ap-red); }
.reader.film .sub-text { color: #3d2a1a; }
.reader.film .sub-text strong { color: var(--ap-red); }
.reader.film .sub-scroll { scrollbar-color: rgba(110, 76, 44, .3) transparent; }
.reader.film .sub-scroll::-webkit-scrollbar-thumb { background: rgba(110, 76, 44, .3); }
.reader.film .reel-progress { background: rgba(110, 76, 44, .15); }
.reader.film .reel-progress i { background: var(--ap-red); }
.reader.film .reel ol { background-color: #2c1c12; box-shadow: 0 0 0 2px #3a2618, 0 0 0 3px rgba(200, 160, 90, .5), 0 8px 18px -10px rgba(50, 30, 12, .7); border-radius: 4px; }
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .reader.film[data-compose="diagonal"] .caption-area { background: rgba(250, 243, 227, .97); border: 1px solid rgba(150, 112, 70, .45); box-shadow: -14px -14px 34px -16px rgba(50, 30, 12, .55); }
}
/* 阅读器顶栏：与档案馆顶栏同高，按钮同高、与右上音乐按钮同一中线 */
.reader.film .chrome.top { min-height: var(--ap-top); padding-top: 0; padding-bottom: 0; align-items: center; }
.reader.film .back, .reader.film .chrome-actions button { display: inline-flex; align-items: center; height: var(--ap-ctl); padding: 0 14px; font: 13px/1 var(--sans); border-radius: 999px; white-space: nowrap; }
.reader.film .film-speed { height: var(--ap-ctl); }
.reader.film .film-speed button { display: inline-flex; align-items: center; height: 100%; padding: 0 10px; }
.reader.film .film-brand { font: 700 15px/1 var(--serif); }
@media (max-width: 760px), (max-aspect-ratio: 1/1), (max-height: 520px) { .music-btn { width: var(--ap-ctl); padding: 0; justify-content: center; } .music-level { display: none; } }

/* 英文界面：界面标签收小字距（品牌名、章节正文仍是中文，不受影响） */
html[data-lang="en"] :is(.exhibit-label .label-title, .fin, .film-end p, .empty-note) { letter-spacing: .06em; padding-left: 0; }

/* 配图性质小字：很淡、半透明、贴近画面底色，不抢画面（详细出处在「资料与来源」） */
.nat { font: 400 10px/1.4 var(--sans); letter-spacing: .06em; color: rgba(236, 224, 200, .42); white-space: nowrap; }
.ex-label .nat { align-self: center; }
.frame.ex-archive .piece .ex-label .nat { color: rgba(74, 53, 32, .45); }
.nat-corner { position: absolute; left: 12px; bottom: 8px; z-index: 3; pointer-events: none; }
.nat-corner.nat-2 { left: 52px; }
.frame.ex-archive .nat-corner { color: rgba(74, 53, 32, .4); }

/* 来源抽屉：可折叠分组 */
.drawer-panel details.dg { margin: 0 0 .9rem; border-top: 1px solid rgba(42, 28, 18, .14); padding-top: .55rem; }
.drawer-panel details.dg > summary { display: flex; align-items: baseline; gap: .5rem; cursor: pointer; list-style: none; }
.drawer-panel details.dg > summary::-webkit-details-marker { display: none; }
.drawer-panel details.dg > summary::before { content: "▸"; font-size: .7rem; color: #8a7254; transition: transform .2s; }
.drawer-panel details.dg[open] > summary::before { transform: rotate(90deg); }
.drawer-panel details.dg > summary h3 { margin: 0; }
.drawer-panel .dg-n { font-size: .75rem; color: #8a7254; font-variant-numeric: tabular-nums; }
.drawer-panel details.dg > :not(summary) { margin-top: .5rem; }
.drawer-panel .review-log { margin: 0; padding-left: 1.1rem; font-size: .82rem; line-height: 1.6; }
.drawer-panel .review-log li { margin-bottom: .5rem; }
.drawer-panel .todo { color: #a8322a; font-size: .78rem; }
/* 阅读页：时效性章节的截至日期 */
.sub-asof { margin: .2rem 0 0; font: 11px/1.4 var(--sans); letter-spacing: .04em; color: rgba(110, 82, 54, .6); }

/* ===== 触屏（手机 / 平板）：可点区域 ≥ 44px；顶栏避开刘海 ===== */
@media (pointer: coarse) {
  :root { --ap-ctl: 44px; --ap-top: 60px; --ap-music-room: 76px; }
  .ah-top-in { padding-left: max(var(--ap-gutter, 16px), var(--sai-l, env(safe-area-inset-left, 0px))); }
  .music-ctl { right: max(clamp(.7rem, 1.6vw, 1.4rem), var(--sai-r, env(safe-area-inset-right, 0px))); }
  .music-btn { height: 44px; min-width: 44px; }
  #app button:not(.cat-card):not(.card):not(.node):not(.dot), #app a.back, #app a.ah-btn, .sh-bar button { min-height: 44px; }
  .ah-mode button { min-height: 0; }
}
@media (pointer: coarse) { #app button:not(.cat-card):not(.card):not(.node):not(.dot) { min-width: 44px; } }

/* 触屏手机横屏：顶栏放不下品牌字标和全部 44px 控件，收起字标 */
@media (pointer: coarse) and (max-height: 520px) and (min-aspect-ratio: 1/1) {
  :root { --ap-top: 56px; --ap-ctl: 44px; --ap-music-room: 76px; }
  .ah-brand { display: none; }
  .ah-top-right { gap: 8px; }
}

/* ===== P1 版式（审阅蓝图 7.3）：胶片框变轻、浅色展台、正文宽度与行高统一、故事年份与影像年份分开 ===== */
/* 胶片框：细线低对比，齿孔条变窄变淡；画面底衬改浅米色展台，不再用同图放大虚化的大片暗底 */
.reader.film { --perf: 8px; --mat: #e8ddc7; }
.reader.film .filmstrip { background: var(--mat); box-shadow: 0 0 0 1px rgba(110, 76, 44, .26), 0 16px 32px -20px rgba(60, 36, 16, .45); }
.reader.film .perf { background-color: #ddd0b6; background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 250, 238, .75) 7px 15px, transparent 15px 22px); background-size: 100% 4px; }
.reader.film .window { background: var(--mat); }
.reader.film .frame-bg { display: none; }
.reader.film .grain { opacity: .12; animation: grain .5s steps(4) infinite; }
.reader.film .grain::after { display: none; }
.reader.film :is(.frame.ex-gallery, .frame.ex-data:not(.has-backdrop), .frame.logo-card.exhibit) { background: transparent; }
.reader.film .piece-img img, .reader.film .piece.main .piece-img img, .reader.film .piece.document .piece-img img, .reader.film .piece.item .piece-img img { filter: sepia(.16) saturate(.9) contrast(1.03) drop-shadow(0 10px 18px rgba(60, 36, 16, .32)); }
.reader.film .logo-card-inner { box-shadow: 0 12px 26px -14px rgba(60, 36, 16, .45); }
/* 展台上的标签用深色墨水；压在画面上的（全幅大图、带底图的数据页）仍是浅色 */
.reader.film .piece .ex-label { color: rgba(58, 36, 20, .72); }
.reader.film .piece .ex-label b { color: var(--ap-ink); }
.reader.film .window .nat { color: rgba(74, 53, 32, .5); }
.reader.film .frame.ex-data.has-backdrop .nat { color: rgba(236, 224, 200, .55); }
/* 数据页（无底图）：浅色展台上用深红数字 */
.reader.film .frame.ex-data:not(.has-backdrop) :is(.dc-num, .dc-unit) { color: var(--ap-red); }
.reader.film .frame.ex-data:not(.has-backdrop) .dc-label { color: var(--ap-ink); }
.reader.film .frame.ex-data:not(.has-backdrop) .dc-title { color: var(--ap-ink-2); border-top-color: var(--ap-line); }
.reader.film .frame.ex-data:not(.has-backdrop) :is(.dbar-label, .dbar-val) { color: var(--ap-ink-2); }
.reader.film .frame.ex-data:not(.has-backdrop) .dbar-track { background: rgba(110, 76, 44, .1); }
.reader.film .frame.ex-data:not(.has-backdrop) .dbar-fill { background: rgba(168, 50, 42, .32); }
.reader.film .frame.ex-data:not(.has-backdrop) .dbar.hl .dbar-fill { background: var(--ap-red); }
.reader.film .frame.ex-data:not(.has-backdrop) .dbar.hl :is(.dbar-label, .dbar-val) { color: var(--ap-ink); }
.reader.film .frame.ex-data:not(.has-backdrop) .dc-note { color: var(--ap-ink-3); }
/* 底部章节条：同样细线 */
.reader.film .reel ol { box-shadow: 0 0 0 1px rgba(110, 76, 44, .3), 0 8px 16px -12px rgba(50, 30, 12, .5); }
/* 斜角构图的文字卡：阴影收轻 */
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .reader.film[data-compose="diagonal"] .caption-area { border-color: rgba(110, 76, 44, .22); box-shadow: -10px -10px 28px -18px rgba(50, 30, 12, .4); }
}

/* 正文：各版式同一字号、行高，行宽不超过约 36 个汉字 */
.reader.film .sub-text { font-size: clamp(.9rem, 1.9vh, 1rem); line-height: 1.9; margin: 0 0 .8rem; }
.reader.film .subtitle { max-width: 36rem; }
.reader.film[data-exhibit="editorial_story"] .subtitle { max-width: 38rem; }
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .reader.film:is([data-compose="stack"], [data-compose="full"]) .subtitle { max-width: 48rem; }
  /* 左右构图：文字块与画面垂直居中，不再贴顶留下半屏空白 */
  .reader.film:is([data-compose="lr"], [data-compose="rl"]) .caption-body { align-items: center; }
  .reader.film:is([data-compose="lr"], [data-compose="rl"]) .subtitle { flex: 0 1 auto; max-height: 100%; }
  .reader.film:is([data-compose="lr"], [data-compose="rl"]) .sub-scroll { flex: 0 1 auto; }
}
/* 故事年份标记：与配图性质小字同一风格（小、淡） */
.sub-story { font-size: .66rem; letter-spacing: .12em; color: var(--ap-ink-3); opacity: .8; }
/* 全幅大图的标签：浅色小底，压在展台或画面上都看得清 */
.reader.film .frame.ex-hero .ex-label { background: rgba(236, 226, 205, .86); color: rgba(58, 36, 20, .75); text-shadow: none; padding: .15rem .5rem; border-radius: 2px; }
.reader.film .frame.ex-hero .ex-label b { color: var(--ap-ink); }
.reader.film .frame.ex-hero .nat { color: rgba(74, 53, 32, .5); }

/* 竖着拿的手机（宽 ≤ 560）：顶栏一行放不下字标 + 三段模式 + 语言 + 回牌桌 + 音乐，会把整页撑宽、安卓 Chrome 里左边被切。
   改成两行：第一行字标、语言、回牌桌（右边给音乐键留位），第二行三段模式铺满 */
@media (max-width: 560px) {
  .ah-top { height: auto; }
  .ah-top-in { flex-wrap: wrap; row-gap: 8px; column-gap: 8px; padding-top: calc((var(--ap-top) - var(--ap-ctl)) / 2); padding-bottom: 8px; }
  .ah-top-right { display: contents; }
  .ah-brand { display: block; font-size: 15px; letter-spacing: .1em; margin-right: auto; }
  [data-lang="en"] .ah-brand { display: none; }
  .ah-tab { display: none; }
  .ah-lang { margin-left: auto; }
  .ah-btn { padding: 0 12px; }
  /* 第二行不用给音乐键留位：铺满到右边距 */
  .ah-mode { order: 9; flex: 0 0 calc(100% + var(--ap-music-room) - var(--ap-gutter)); display: flex; }
  .ah-mode button { flex: 1 1 0; min-width: 0; padding: 0 4px; justify-content: center; white-space: nowrap; }
}

/* ===== 阅读页 GT7 式（默认，.reader.film.gt）=====
   参照 GT7 Brand Central 博物馆：整页铺当前照片的浅色虚化（与档案馆米纸同一调性），
   左边一张大图、无框无衬底，右边文字直接放在背景上、不加卡片、不与图重叠；一章一张主图。 */
.reader.film.gt { background: var(--ap-paper); color: var(--ap-ink); }
.reader.film.gt .film-backdrop { inset: -8%; z-index: -2; opacity: .5; mix-blend-mode: multiply; filter: blur(46px) grayscale(.55) sepia(.25) brightness(1.25) contrast(.85); }
.reader.film.gt .film-vignette { opacity: 1; background: linear-gradient(90deg, rgba(241, 231, 211, 0) 0%, rgba(241, 231, 211, .35) 58%, rgba(241, 231, 211, .6) 100%); }
.reader.film.gt .film-stage { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); gap: clamp(1.4rem, 3.4vw, 3.6rem); padding: .4rem clamp(3.6rem, 5vw, 5.2rem) .6rem; }
.reader.film.gt .gate { aspect-ratio: auto; height: 100%; width: 100%; align-self: stretch; container-type: size; }
.reader.film.gt :is(.filmstrip, .window) { background: none; box-shadow: none; }
.reader.film.gt :is(.perf, .grain, .frame-bg, .film-credit) { display: none; }
.reader.film.gt .window { inset: 0; overflow: visible; }
.reader.film.gt .frame { overflow: visible; }
.reader.film.gt .frame.exhibit { padding: 0; background: transparent; }
.reader.film.gt :is(.frame.ex-archive, .frame.ex-gallery, .frame.logo-card, .frame.empty-slot) { background: transparent; }
/* 主图：按自身比例取最大尺寸，左对齐，标签紧贴图下 */
.reader.film.gt :is(.piece.main, .piece.document, .piece.item) { justify-content: center; align-items: flex-start; height: 100%; gap: .55rem; }
.reader.film.gt :is(.piece.main, .piece.document, .piece.item) .piece-img { position: static; flex: 0 0 auto; width: auto; height: auto; max-height: none; display: block; }
.reader.film.gt :is(.piece.main, .piece.document, .piece.item) .piece-img img { position: static; inset: auto; width: auto; height: auto; max-width: 100cqw; max-height: calc(100cqh - 2rem);
  transform: none; background: none; padding: 0; animation: none !important; filter: sepia(.12) saturate(.92) drop-shadow(0 14px 26px rgba(60, 36, 16, .28)); }
.reader.film.gt .frame.ex-hero { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .55rem; }
.reader.film.gt .frame.ex-hero .hero-img { position: static; flex: 0 0 auto; width: auto; height: auto; max-width: 100cqw; max-height: calc(100cqh - 2rem); object-fit: contain; animation: none !important; filter: sepia(.12) saturate(.92) drop-shadow(0 14px 26px rgba(60, 36, 16, .28)); }
/* 图下一行小标签：深色小字、不加底 */
.reader.film.gt :is(.ex-label, .piece .ex-label, .frame.ex-archive .piece .ex-label, .frame.ex-hero .ex-label) { position: static; translate: none; background: none; padding: 0; text-shadow: none; color: rgba(58, 36, 20, .62); justify-content: flex-start; text-align: left; }
.reader.film.gt :is(.ex-label b, .piece .ex-label b, .frame.ex-hero .ex-label b, .frame.ex-archive .piece .ex-label b) { color: var(--ap-ink); font-weight: 500; }
.reader.film.gt .window .nat, .reader.film.gt .frame.ex-hero .nat { color: rgba(74, 53, 32, .5); }
.reader.film.gt .nat-corner { left: 0; bottom: -1.4rem; }
.reader.film.gt .nat-corner.nat-2 { left: 2.6rem; }
/* 报刊排版示意：纸张本身就是展品，不加外框 */
.reader.film.gt .archive-table { place-items: center start; }
.reader.film.gt .mock-paper { transform: none; box-shadow: 0 16px 30px -14px rgba(60, 36, 16, .4); }
/* 品牌标志卡（没有可用照片时）：标志直接放在纸面上 */
.reader.film.gt .frame.logo-card { display: grid; place-items: center start; }
.reader.film.gt .logo-card-inner { background: none; box-shadow: none; transform: none; padding: 0; justify-items: start; }
.reader.film.gt .lc-logo { width: min(18rem, 36vw); place-items: center start; }
.reader.film.gt .lc-logo img { mix-blend-mode: multiply; }
.reader.film.gt .lc-year { color: rgba(90, 68, 40, .7); }
/* 数据页：照片整张铺满（4:3），压暗后把大数字压在照片上；没有照片时数字直接放在纸面 */
.reader.film.gt .frame.ex-data { inset: 0; margin: auto 0; height: min(100%, 75cqw); width: 100%; place-items: center start; }
.reader.film.gt .frame.ex-data.has-backdrop { overflow: hidden; box-shadow: 0 14px 26px -10px rgba(60, 36, 16, .35); }
.reader.film.gt .frame.ex-data .data-backdrop { display: block; filter: saturate(.7) brightness(.62); }
.reader.film.gt .frame.ex-data.has-backdrop::after { display: block; background: linear-gradient(90deg, rgba(14, 9, 5, .78) 0%, rgba(14, 9, 5, .5) 60%, rgba(14, 9, 5, .2) 100%); }
.reader.film.gt .frame.ex-data .data-card { position: relative; z-index: 1; padding: 1.6rem clamp(1.2rem, 3vw, 2.6rem); justify-content: center; }
.reader.film.gt .frame.ex-data.has-backdrop :is(.dc-num, .dc-unit) { color: #f0d79a; }
.reader.film.gt .frame.ex-data.has-backdrop .dc-label { color: #f7eedd; }
.reader.film.gt .frame.ex-data.has-backdrop .dc-title { color: rgba(239, 230, 214, .72); border-top-color: rgba(239, 230, 214, .22); }
.reader.film.gt .frame.ex-data.has-backdrop :is(.dbar-label, .dbar-val) { color: rgba(239, 230, 214, .85); }
.reader.film.gt .frame.ex-data.has-backdrop .dbar-track { background: rgba(239, 230, 214, .14); }
.reader.film.gt .frame.ex-data.has-backdrop .dbar-fill { background: rgba(240, 215, 154, .5); }
.reader.film.gt .frame.ex-data.has-backdrop .dbar.hl .dbar-fill { background: #f0d79a; }
.reader.film.gt .frame.ex-data.has-backdrop .dbar.hl :is(.dbar-label, .dbar-val) { color: #fff7e6; }
.reader.film.gt .frame.ex-data.has-backdrop .dc-note { color: rgba(239, 230, 214, .62); }
.reader.film.gt .frame.ex-data.has-backdrop .nat { color: rgba(239, 230, 214, .6); }
.reader.film.gt .frame.ex-data.has-backdrop .nat-corner { left: clamp(1.2rem, 3vw, 2.6rem); bottom: .7rem; }
.reader.film.gt .frame.ex-data.has-backdrop .nat-corner.nat-2 { left: calc(clamp(1.2rem, 3vw, 2.6rem) + 2.6rem); }
.reader.film.gt .frame.ex-data:not(.has-backdrop) .data-card { padding-left: 0; }
/* 文字：不加卡片、不叠在图上；大号细衬线年份 + 一条细线 */
.reader.film.gt .caption-area { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; justify-content: flex-start; }
.reader.film.gt .caption-body { align-items: center; }
.reader.film.gt .subtitle { flex: 0 1 auto; max-height: 100%; max-width: 30rem; display: flex; }
.reader.film.gt .sub-scroll { flex: 0 1 auto; }
.reader.film.gt .sub-year { font: 300 clamp(2.6rem, 7vh, 4.4rem)/1 "Songti SC", "STSong", "Times New Roman", serif; color: var(--ap-ink); }
.reader.film.gt .sub-year::after { background: rgba(110, 76, 44, .3); margin: .7rem 0; }
.reader.film.gt .sub-text { font-size: clamp(.9rem, 1.85vh, 1rem); line-height: 1.85; }
/* 翻页按钮、章节条：低调 */
.reader.film.gt .reel ol { box-shadow: none; }
/* 手机横屏：图 46%、文字 54%；字号收小，保证正文一屏读完不截断 */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .reader.film.gt .film-stage { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: .9rem; padding: .15rem .9rem .2rem; }
  .reader.film.gt .subtitle { max-width: none; }
  .reader.film.gt .sub-year { font-size: 1.5rem; }
  .reader.film.gt .sub-year::after { margin: .25rem 0 .3rem; }
  .reader.film.gt .sub-head { margin: 0; }
  .reader.film.gt .sub-title { font-size: .9rem; }
  .reader.film.gt .sub-meta { font-size: .62rem; }
  .reader.film.gt .sub-same { margin: 0 0 .15rem; font-size: .66rem; }
  .reader.film.gt .sub-text { font-size: 12px; line-height: 1.6; margin: 0 0 .35rem; }
  .reader.film.gt .sub-scroll { padding: .1rem .3rem .2rem 0; -webkit-mask: none; mask: none; }
  .reader.film.gt .sub-asof { font-size: 10px; }
  .reader.film.gt .ex-label { font-size: .6rem; }
  .reader.film.gt :is(.piece.main, .piece.document, .piece.item) .piece-img img, .reader.film.gt .frame.ex-hero .hero-img { max-height: calc(100cqh - 1.4rem); }
  .reader.film.gt .dc-num { font-size: 2.4rem; }
  .reader.film.gt .frame.ex-data .data-card { padding: .7rem .9rem; gap: .2rem; }
  .reader.film.gt .mock-paper { padding: .7rem .9rem .5rem; width: 100%; }
  .reader.film.gt .mp-head { font-size: 1rem; margin-bottom: .3rem; }
  .reader.film.gt .mp-line { font-size: .7rem; line-height: 1.45; margin-bottom: .2rem; }
}
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  /* 章节条收成一行年份，给正文腾出高度 */
  .reader.film.gt .reel { padding: 0 0 .2rem; }
  .reader.film.gt .reel ol { padding: 3px .5rem; gap: 2px; }
  .reader.film.gt .thumb { width: auto; min-width: 44px; min-height: 28px; display: grid; place-items: center; padding: 0 .35rem; }
  .reader.film.gt .thumb-pic { display: none; }
  .reader.film.gt .thumb-yr { margin: 0; font-size: .7rem; }
  .reader.film.gt .thumb.current { box-shadow: inset 0 -2px 0 var(--gold); }
  .reader.film.gt .thumb.unread .thumb-yr::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 3px; border-radius: 50%; background: #d4532f; vertical-align: .3em; }
  .reader.film.gt .thumb.locked .thumb-yr { opacity: .5; }
}
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .reader.film.gt .film-stage { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
  .reader.film.gt .sub-year { font-size: 1.3rem; }
  .reader.film.gt .sub-year::after { margin: .2rem 0 .2rem; }
}
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .reader.film.gt .sub-text { line-height: 1.55; margin-bottom: .25rem; }
  .reader.film.gt .sub-same { line-height: 1.3; }
}
/* 排版示意页、标志卡：内容居中偏左，配图性质小字紧跟在下面 */
.reader.film.gt :is(.frame.ex-archive, .frame.logo-card) { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .6rem; }
.reader.film.gt :is(.frame.ex-archive, .frame.logo-card) .nat-corner { position: static; }
.reader.film.gt .frame.ex-archive .archive-table { height: auto; max-height: calc(100% - 1.6rem); width: 100%; }
.reader.film.gt .lc-logo { width: min(22rem, 40vw); aspect-ratio: 3 / 2; }
.reader.film.gt .lc-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
@media (max-height: 520px) and (min-aspect-ratio: 1/1) { .reader.film.gt .lc-logo { width: 100%; } }
