/* Fumei Hat Museum — editorial museum site */
/* Type system: Avenir for slogan + headings; Inter / system sans for body & UI; JetBrains Mono for labels. No italics. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Nunito:wght@300;400;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:where(*) { /* font stacks defined as CSS vars for clarity */ }

:root {
  /* Type stacks */
  --font-display: 'Avenir Next', 'Avenir', 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'San Francisco', 'PingFang SC', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-serif-cn: var(--font-display);
  --font-serif: var(--font-display);

  --paper: #f4efe6;
  --paper-2: #ece5d6;
  --ink: #161412;
  --ink-soft: #2a2622;
  --mute: #6b645b;
  --line: #1a1816;
  --red: oklch(0.52 0.17 25);
  --red-deep: oklch(0.36 0.13 25);
  --gold: oklch(0.72 0.09 70);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.serif { font-family: var(--font-display); }
.cn { font-family: var(--font-display); }

/* Display type — Avenir for slogan + all headings */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 36px;
  background: transparent;
  color: #f4efe6;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav.solid { background: rgba(244,239,230,0.92); backdrop-filter: blur(10px); color: var(--ink); border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav .brand { display: flex; align-items: center; gap: 12px; }
.nav .brand-logo { height: 36px; width: auto; display: block; object-fit: contain; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.nav-links a:hover { opacity: 0.6; }
.nav-cta { display: flex; align-items: center; gap: 18px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-cta .lang { opacity: 0.7; }
.nav-cta .lang.active { opacity: 1; font-weight: 700; }

/* Burger (mobile only) */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  background: transparent;
  z-index: 110;
  position: relative;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}
.nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer */
.nav-drawer {
  position: fixed; inset: 0;
  background: var(--paper);
  color: var(--ink);
  z-index: 99;
  display: flex; flex-direction: column;
  padding: 96px 28px 36px;
  gap: 6px;
  transform: translateY(-100%);
  transition: transform 0.42s cubic-bezier(.6,.05,.2,1);
  visibility: hidden;
  pointer-events: none;
}
.nav-drawer.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.nav-drawer a {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-drawer a span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.nav-drawer-foot {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; gap: 10px;
  color: var(--mute);
}
.nav-drawer-foot .lang.active { color: var(--ink); font-weight: 700; }
.nav.menu-open { background: var(--paper) !important; color: var(--ink) !important; }

/* ---------- responsive ---------- */
/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .nav { padding: 18px 24px; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 11px; }
  .section { padding: 96px 28px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .about-bleed { aspect-ratio: 4/3; height: auto; margin: 0 -28px; }
  .about-bleed .caption { left: 28px; right: 28px; bottom: 28px; gap: 24px; }
  .about-prose { grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 64px; padding: 0; }
  .about-prose .lead { grid-column: 1 / -1; }
  .exh-grid { grid-template-columns: 1fr 1fr; }
  .exh-card.wide { grid-column: 1 / -1; aspect-ratio: 16/10; }
  .exh-list { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .coll-mag { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .coll-mag .lead-img { grid-column: 1 / -1; aspect-ratio: 4/3; }
  .coll-mag .lead-text { grid-column: 1 / -1; padding-top: 0; }
  .coll-mag .lead-text h3 { font-size: 44px; }
  .coll-mag .side-text { grid-column: 1 / span 6; }
  .coll-mag .right-img { grid-column: 1 / -1; aspect-ratio: 16/10; }
  .artifact-strip { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .right { flex-direction: row; }
  .gallery-grid .right img { aspect-ratio: 4/5; flex: 1; }
  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .visit-map { aspect-ratio: 16/10; max-height: 60vh; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-grid .brand-block { grid-column: 1 / -1; }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
  /* 语言切换直接露在顶栏、汉堡键左边(原来只藏在抽屉里) */
  .nav-cta { display: flex; margin-left: auto; margin-right: 6px; gap: 6px; font-size: 11px; letter-spacing: 0.1em; }
  .nav-cta .lang { padding: 8px 4px; }
  .nav-burger { display: flex; flex: none; }
  .nav .brand-logo { height: 28px; width: auto !important; max-width: calc(100vw - 150px); }

  .section { padding: 72px 20px; }
  .section-head h2 { font-size: clamp(40px, 11vw, 64px); }
  .section-head p { font-size: 14px; }


  .about-bleed { aspect-ratio: 3/4; height: auto; margin: 0 -20px; }
  .about-bleed .caption { grid-template-columns: 1fr; gap: 12px; left: 20px; right: 20px; bottom: 20px; }
  .about-bleed .caption .lede { font-size: clamp(24px, 7vw, 36px); }
  .about-bleed .caption .meta { text-align: left; font-size: 10px; }
  .about-prose { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .about-prose .lead { font-size: 18px; line-height: 1.45; }

  .exh-grid { grid-template-columns: 1fr; gap: 18px; }
  .exh-card { aspect-ratio: 4/5 !important; }
  .exh-card .info { padding: 20px; }
  .exh-card .info h3 { font-size: 22px; }
  .exh-list { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }

  .coll-mag { grid-template-columns: 1fr; gap: 18px; }
  .coll-mag > * { grid-column: 1 / -1 !important; }
  .coll-mag .lead-img { aspect-ratio: 4/5; }
  .coll-mag .lead-text h3 { font-size: 36px; }
  .coll-mag .lead-text dl { grid-template-columns: 1fr; gap: 4px; }
  .coll-mag .lead-text dt { margin-top: 8px; }
  .coll-mag .right-img { aspect-ratio: 4/3; }
  .artifact-strip { grid-template-columns: 1fr; margin-top: 40px; }

  .gallery-grid .right { flex-direction: column; }
  .gallery-grid .right img { aspect-ratio: 16/10; }
  .gallery-quote { margin-top: 56px; }
  .gallery-quote blockquote { font-size: clamp(22px, 6.5vw, 32px) !important; }

  .visit-grid { gap: 32px; }
  .visit-map { aspect-ratio: 1/1; max-height: none; }
  .visit-map .pin-label { font-size: 9px; }
  .visit-map .map-label, .visit-map .map-label-coord { font-size: 9px; }

  .foot-mega { font-size: clamp(36px, 11vw, 64px) !important; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid .brand-block { font-size: 16px; }
  .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }

  .ticker-track { font-size: 16px; gap: 36px; }
  .ticker-track span { gap: 36px; }
}

/* Tighten the navbar at very narrow widths so the brand chip never wraps */
@media (max-width: 380px) {
  .nav-cta > span { display: none; }   /* 窄屏去掉中间的圆点,两个语言键都保留 */
  .nav-cta { gap: 2px; margin-right: 2px; }
  .nav .brand-logo { max-width: calc(100vw - 132px); }
}
/* ============================================================
   纸本首屏 —— 真实馆藏三维扫描悬在暖纸上
   取向:印刷品 / 水墨的层级(大留白、极小说明、单一强调色)。
   器物是主角,文字是展签。
   ============================================================ */

.hero-paper {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  background: var(--paper);
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: 86px 36px 22px;
  overflow: hidden;
}
/* 纸纹:比暗场那层更淡,只在近看时可辨 */
.hero-paper::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.38 0 0 0 0 0.32 0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  opacity: 0.55; mix-blend-mode: multiply;
}
/* 极淡的中心晕,把视线收到器物上,不做成暗角 */
.hero-paper::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(58% 46% at 50% 42%, rgba(255,253,248,0.75), rgba(244,239,230,0) 72%);
}
.hero-boot { display: block; }

.stage-wrap { position: relative; z-index: 1; min-height: 0; }
.stage { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.stage-scroll-first .stage { touch-action: pan-y pinch-zoom; cursor: auto; }
.stage-touch-tools { position: relative; z-index: 3; display: grid; justify-items: center; gap: 6px; margin: 0 0 14px; }
.stage-touch-tools button { min-height: 44px; padding: 10px 18px; color: var(--ink); background: var(--paper); border: 1px solid #b9aa98; font: inherit; font-size: 13px; }
.stage-touch-tools button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.stage-touch-tools small { font-size: 11px; color: var(--mute); text-align: center; }
.stage:active { cursor: grabbing; }
.stage canvas { display: block; width: 100% !important; height: 100% !important; }

/* 接地投影:参考里的建筑都浮在一道浅椭圆之上 */
.stage-shadow {
  position: absolute; left: 50%; bottom: 4%;
  width: min(30vw, 300px); height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(34,28,22,0.20), rgba(34,28,22,0) 70%);
  pointer-events: none;
}

.stage-load {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  color: var(--mute); display: flex; gap: 10px; align-items: baseline;
  transition: opacity 0.5s ease; pointer-events: none;
}
.stage-load.done { opacity: 0; }
.stage-load .pct { font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---- 展签 ---- */
.plate { position: relative; z-index: 1; text-align: center; padding: 2px 0 16px; }
.plate-rule {
  width: 22px; height: 1px; background: var(--red);
  margin: 0 auto 12px; opacity: 0.85;
}
.plate-name {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 500; letter-spacing: 0.02em; line-height: 1.45;
  color: var(--ink); margin: 0 auto; max-width: 30ch;
}
.plate-sub {
  margin-top: 7px; color: var(--mute);
  text-transform: none; letter-spacing: 0.06em; font-size: 10.5px;
}
.plate-place {
  margin-top: 10px; color: var(--mute);
  text-transform: none; letter-spacing: 0.16em; font-size: 10.5px; opacity: 0.72;
}

/* ---- 器物轨道 ---- */
.rail {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 9px;
  flex-wrap: wrap; padding-bottom: 18px;
}
.rail-item {
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 2px;
  background: rgba(255,255,255,0.5); cursor: pointer; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(26,24,22,0.10);
  filter: grayscale(0.55) contrast(0.95); opacity: 0.62;
  transition: opacity 0.25s, filter 0.25s, box-shadow 0.25s, transform 0.25s;
}
.rail-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rail-item:hover { opacity: 0.9; filter: grayscale(0.15); transform: translateY(-2px); }
.rail-item.on {
  opacity: 1; filter: none; transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(26,24,22,0.10), 0 0 0 1px var(--red);
}
.rail-item:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.hero-meta {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--mute); border-top: 1px solid rgba(26,24,22,0.10); padding-top: 12px;
}
.hero-meta .hint { text-transform: none; letter-spacing: 0.06em; opacity: 0.8; }

/* 纸本首屏下导航一开始就是墨色(原逻辑是暗底用白 logo,滚动后才变深) */
.nav.on-paper { color: var(--ink); }
.nav.on-paper .nav-links a,
.nav.on-paper .nav-cta { color: var(--ink); }

@media (max-width: 1024px) {
  .hero-paper { padding: 84px 24px 20px; }
  .stage-shadow { width: min(46vw, 240px); }
}
@media (max-width: 640px) {
  .hero-paper { padding: 74px 18px 16px; }
  .plate-name { font-size: 14px; }
  .rail-item { width: 40px; height: 40px; }
  .hero-meta { font-size: 10px; gap: 10px; }
  .hero-meta .hint { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .rail-item { transition: none; }
}

/* ============================================================
   电子明信片 —— 把当前三维角度做成正面,写一段话寄出
   ============================================================ */

.mast-card {
  display: inline-flex; align-items: center; justify-content: center; gap: 15px;
  border: 1px solid rgba(180,57,43,.4); background: #faf5ea; padding: 14px 20px;
  min-height: 78px; max-width: 100%; border-radius: 3px;
  font: inherit; color: var(--red); cursor: pointer; text-align: left;
  box-shadow: 0 3px 0 rgba(180,57,43,.12), 0 5px 18px rgba(65,42,25,.06);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.mast-card:hover:not(:disabled), .mast-card:focus-visible { background: #fffaf0; transform: translateY(-2px); box-shadow: 0 5px 0 rgba(180,57,43,.16), 0 8px 22px rgba(65,42,25,.1); }
.mast-card:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.mast-card:disabled { opacity: .6; cursor: progress; }
.mast-card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.mast-card-copy { display: grid; gap: 5px; min-width: 0; }
.mast-card-copy strong { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: .02em; text-transform: none; }
.mast-card-copy small { font-size: 10px; letter-spacing: .04em; color: var(--mute); text-transform: none; }
.mast-card-arrow { font-size: 22px; transition: transform .2s; }
.mast-card:hover .mast-card-arrow { transform: translate(2px,-2px); }
.pc-envelope { position: relative; width: 52px; height: 38px; flex: 0 0 52px; background: #dfbca4; border-radius: 2px; perspective: 180px; }
.pc-envelope-letter { position: absolute; inset: 5px 5px 3px; background: #fffdf7; border: 1px solid #dbcfc0; transition: transform .3s; }
.pc-envelope-letter::after { content: ''; position: absolute; top: 7px; left: 7px; width: 22px; height: 8px; border-top: 1px solid #b4392b; border-bottom: 1px solid #d6baa5; }
.pc-envelope-pocket { position: absolute; inset: 0; background: #e8c9af; clip-path: polygon(0 0,50% 57%,100% 0,100% 100%,0 100%); z-index: 2; }
.pc-envelope-flap { position: absolute; inset: 0; background: #c98568; clip-path: polygon(0 0,100% 0,50% 57%); transform-origin: top; transition: transform .3s; z-index: 3; backface-visibility: hidden; }
.mast-card:is(:hover,:focus-visible) .pc-envelope-flap { transform: rotateX(170deg); }
.mast-card:is(:hover,:focus-visible) .pc-envelope-letter { transform: translateY(-10px); }

/* Additions are confined to the postcard entry and its dialog. */
.pc-veil[role="dialog"] { overflow: hidden; place-items: start center; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.pc.pc-expanded { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-top: 48px; }
.pc-expanded .pc-side { min-width: 0; }
.pc-veil > .pc-x { min-width: 44px; min-height: 44px; top: max(12px, env(safe-area-inset-top)); right: max(16px, calc((100vw - 1080px) / 2 + 4px), env(safe-area-inset-right)); z-index: 4; background: var(--paper); }
.pc-picker-hint { font-size: 12px; line-height: 1.5; color: var(--mute); margin: -4px 0 8px; }
.pc-kinds, .pc-faces { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pc-kind, .pc-faces button { min-height: 44px; border: 1px solid #c8bdae; background: transparent; color: var(--ink); padding: 10px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.pc-kind.on, .pc-faces button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pc-kind:disabled { opacity: .4; cursor: default; }
.pc-art-picker { display: flex; gap: 10px; overflow-x: auto; padding: 4px 3px 12px; margin-bottom: 20px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.pc-art-option { flex: 0 0 104px; min-width: 0; padding: 5px; border: 2px solid transparent; background: #e9e1d5; color: var(--ink); cursor: pointer; scroll-snap-align: start; transition: border-color .2s, background .2s; }
.pc-art-option img { display: block; width: 90px; height: 104px; object-fit: contain; }
.pc-art-option span { display: block; margin-top: 5px; font-size: 10px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
.pc-art-option.on { border-color: var(--red); background: #fff9ef; }
.pc-art-option:hover { border-color: #c58a78; }
.pc-expanded .pc-card-art { aspect-ratio: auto; height: min(440px, 48svh); padding: 8px; background: #e9e1d5; box-shadow: none; }
.pc-card-art .pc-art-face { width: 100%; height: 100%; min-height: 0; object-fit: contain; animation: pc-turn .3s ease-out; }
.pc-expanded .pc-tools > * { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.pc-expanded [aria-disabled="true"] { opacity: .45; cursor: default; }
.pc-expanded .pc-chip { min-height: 44px; }
.pc-expanded .pc-note { line-height: 1.65; }
.pc-expanded .pc-skel { padding: 16px; text-align: center; }
.pc-expanded button:focus-visible, .pc-expanded a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@keyframes pc-turn { from { opacity: .3; transform: perspective(900px) rotateY(-12deg); } to { opacity: 1; transform: perspective(900px) rotateY(0); } }
@font-face { font-family: 'Postcard Hand'; src: url('/assets/fonts/LongCang-Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
.pc-expanded .pc-msg, .pc-expanded .pc-address-fields .pc-in { font-family: 'Postcard Hand', 'Kaiti SC', KaiTi, cursive; font-size: 25px; line-height: 1.5; }
.pc-expanded .pc-address-fields { margin: 20px 0; }
.pc-expanded .pc-styles { padding: 18px 0; margin-top: 10px; border-bottom: 1px solid #d6cbb9; gap: 10px; }
.pc-delivery { margin-top: 28px; padding: 22px 0 0; border-top: 1px solid #cdbfae; }
.pc-delivery h4 { font-size: 13px; font-weight: 500; color: var(--mute); }
.pc-export-note { margin-top: 8px; font-size: 13px; line-height: 1.65; color: var(--mute); }
.pc-faces button { min-height: 44px; }
.pc-delivery .pc-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.pc-delivery button { min-height: 76px; border: 1px solid #b8afa3; display: flex; gap: 10px; align-items: center; text-align: left; padding: 12px; cursor: pointer; font: inherit; font-size: 14px; }
.pc-delivery button > span:first-child { font-size: 24px; }
.pc-delivery small { display: block; font-size: 10px; line-height: 1.5; margin-top: 5px; }
.pc-save-album { background: #b4392b; color: #fff9ee; border-color: #b4392b !important; }
.pc-share-person { background: #faf6ee; color: var(--ink); }
.pc-delivery button:disabled { opacity: .45; cursor: default; }
.pc-file-link { font-size: 11px; text-underline-offset: 4px; color: var(--mute); display: inline-block; padding: 10px 0; }
.pc-save-view { max-width: 800px; margin: auto; }
.pc-save-view .pc-title { margin-top: 20px; }
.pc-save-view .pc-lede { max-width: none; font-size: 15px; }
.pc-save-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 24px; }
.pc-save-actions > * { min-height: 44px; padding: 12px; font-size: 13px; }
.pc-save-image { display: block; width: 100%; height: auto; -webkit-touch-callout: default; user-select: auto; -webkit-user-select: auto; touch-action: pan-y pinch-zoom; }
.visit-season { display: block; margin-bottom: 18px; font-size: 17px; line-height: 1.7; }
.visit-season strong { font-weight: 500; }
.ed-museum-intro { max-width: 800px; margin: 0 0 38px; }
.ed-museum-intro .ed-p { max-width: none; }
@media (max-width: 440px) { .pc-delivery .pc-tools { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .hero-meta .mast-card { flex-basis: 100%; width: 100%; min-height: 76px; margin: 5px 0; }
  .pc.pc-expanded { padding: 48px 16px max(24px, env(safe-area-inset-bottom)); }
  .pc-kinds { gap: 6px; }
  .pc-kind { flex: 1 1 120px; padding: 10px 6px; font-size: 12px; }
  .pc-art-option { flex-basis: 90px; }
  .pc-art-option img { width: 76px; height: 84px; }
  .pc-expanded .pc-card-art { height: min(360px, 42svh); }
  .pc-expanded .pc-msg, .pc-expanded .pc-in { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .mast-card, .mast-card-arrow, .pc-envelope-letter, .pc-envelope-flap, .pc-art-option { transition: none; }
  .pc-card-art .pc-art-face { animation: none; }
}

.pc-veil {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(22,20,18,0.55);
  backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 24px;
  overflow-y: auto;
}
.pc {
  position: relative;
  width: min(1080px, 100%);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
  padding: 34px;
}
.pc-x {
  position: absolute; top: 10px; right: 14px;
  border: 0; background: none; font-size: 26px; line-height: 1;
  color: var(--mute); cursor: pointer; padding: 6px;
}
.pc-x:hover { color: var(--ink); }
.pc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: start; }

.pc-card {
  aspect-ratio: 3 / 2; background: var(--paper-2);
  box-shadow: 0 2px 18px rgba(26,24,22,0.16);
  display: grid; place-items: center; overflow: hidden;
}
.pc-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pc-skel { color: var(--mute); }

.pc-tools { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pc-ghost {
  border: 1px solid rgba(26,24,22,0.22); background: none;
  padding: 8px 14px; cursor: pointer; color: var(--ink);
  text-transform: none; letter-spacing: 0.06em; text-decoration: none;
  display: inline-block; transition: border-color 0.2s, background 0.2s;
}
.pc-ghost:hover { border-color: var(--ink); background: rgba(26,24,22,0.04); }
.pc-note { margin-top: 12px; color: var(--mute); text-transform: none; letter-spacing: 0.05em; opacity: 0.8; }

.pc-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.pc-lede { font-size: 13px; line-height: 1.75; color: var(--mute); margin-bottom: 20px; max-width: 40ch; }
.pc-lab { display: block; color: var(--mute); margin-bottom: 7px; text-transform: none; letter-spacing: 0.08em; }
.pc-msg, .pc-in {
  width: 100%; background: rgba(255,255,255,0.55);
  border: 1px solid rgba(26,24,22,0.18); padding: 11px 12px;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  line-height: 1.7; resize: vertical;
}
.pc-msg:focus, .pc-in:focus { outline: none; border-color: var(--ink); background: #fff; }
.pc-count { text-align: right; color: var(--mute); margin-top: 5px; opacity: 0.75; }
.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }

.pc-send {
  margin-top: 20px; width: 100%;
  background: var(--ink); color: var(--paper); border: 0;
  padding: 13px 18px; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.2s;
}
.pc-send:hover:not(:disabled) { background: var(--red); }
.pc-send:disabled { opacity: 0.4; cursor: default; }
.pc-ok  { margin-top: 20px; color: #2e6b48; text-transform: none; letter-spacing: 0.05em; line-height: 1.7; }
.pc-err { margin-top: 12px; color: var(--red); text-transform: none; letter-spacing: 0.05em; line-height: 1.7; }

@media (max-width: 860px) {
  .pc { padding: 26px 20px; }
  .pc-grid { grid-template-columns: 1fr; gap: 24px; }
  .pc-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-meta { flex-wrap: wrap; row-gap: 8px; }
  .hero-meta .hint { flex-basis: 100%; text-align: left; }
}

/* ---- 建筑在地,器物在天 ----------------------------------------
   自家绘制的博艺楼水墨稿通栏压底,顶边用遮罩渐隐融进纸色
   (画稿纸底 #f4ecdf 与站上 --paper #f4efe6 相差 7 个单位,不渐隐会有可见接缝)。
   器物悬在它上方的留白里 —— 一顶帽子比一座楼还大。
   ------------------------------------------------------------- */
.hero-paper { background: linear-gradient(to bottom, var(--paper) 0%, #f4ecdf 68%); }
.bldg {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: auto; display: block; z-index: 0;
  pointer-events: none; user-select: none;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.55) 16%, #000 34%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.55) 16%, #000 34%);
}
/* 器物落在建筑之上,展签与轨道再压一层 */
.hero-paper .stage-wrap,
.hero-paper .plate,
.hero-paper .rail,
.hero-paper .hero-meta { position: relative; z-index: 2; }

/* 展签压在屋檐上会糊,给它一层极淡的纸色托底 */
.plate::before {
  content: ''; position: absolute; inset: -10px -24px 0;
  background: radial-gradient(60% 100% at 50% 50%, rgba(246,240,229,0.92), rgba(246,240,229,0) 78%);
  z-index: -1; pointer-events: none;
}

@media (max-width: 640px) {
  /* 竖屏放不下「建筑当场、器物当焦点」的横向构图:
     画稿退成最底一条淡淡的地平线,把版面整个让给器物。 */
  /* 竖屏不把画稿压在底部(会被文字蒙版盖白),改成让屋檐从器物背后横穿画面中部 */
  .bldg { width: 205%; left: -52%; right: auto; bottom: auto; top: 26%; opacity: 0.5; }
  .hero-paper { padding: 74px 16px 14px; }
  /* 下半部压一层纸色,保证展签与轨道压在屋檐上仍然清楚 */
  .hero-foot::before {
    content: ''; position: absolute; inset: -22px -16px -8px; z-index: -1;
    background: linear-gradient(to bottom, rgba(246,240,229,0) 0%, rgba(246,240,229,.7) 30%, rgba(246,240,229,.92) 100%);
    pointer-events: none;
  }
  .hero-foot .plate::before { display: none; }
  /* 缩略图单行横滑,不再铺满整宽压住画稿 */
  .hero-foot .rail {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    max-width: 100%; padding: 2px 0 2px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hero-foot .rail::-webkit-scrollbar { display: none; }
  .hero-foot .rail-item { flex: none; }
  .hero-meta { background: rgba(246,240,229,.96); margin: 0 -16px; padding: 10px 16px 0; }
}

/* ---- 首屏下部:让开画稿中间的红马 ---- */
.hero-foot {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0,auto) 1fr minmax(0,auto);
  align-items: end; gap: 24px; padding-bottom: 16px;
}
.hero-foot .plate { grid-column: 1; text-align: left; padding: 0; max-width: 34ch; }
.hero-foot .plate::before { inset: -14px -20px -10px -16px;
  background: radial-gradient(72% 100% at 30% 50%, rgba(246,240,229,0.94), rgba(246,240,229,0) 82%); }
.hero-foot .plate-rule { margin: 0 0 11px; }
.hero-foot .plate-name { margin: 0; max-width: none; }
.hero-foot .rail { grid-column: 3; justify-content: flex-end; padding-bottom: 0;
  flex-wrap: nowrap; max-width: 48vw; overflow-x: auto; scrollbar-width: none; }
.hero-foot .rail::-webkit-scrollbar { display: none; }
.hero-foot .rail-item { flex: none; }

@media (max-width: 860px) {
  .hero-foot { grid-template-columns: 1fr; gap: 14px; justify-items: center; }
  .hero-foot .plate { grid-column: 1; text-align: center; max-width: none; }
  .hero-foot .plate-rule { margin: 0 auto 11px; }
  .hero-foot .plate::before { inset: -10px -24px 0;
    background: radial-gradient(60% 100% at 50% 50%, rgba(246,240,229,0.94), rgba(246,240,229,0) 78%); }
  .hero-foot .rail { grid-column: 1; justify-content: center; max-width: none; }
}

/* ============================================================
   三维典藏库 —— 21 件可转着看
   ============================================================ */

.lib { margin-top: 96px; }
.lib-head { max-width: 56ch; margin-bottom: 30px; }
.lib-head .kicker { color: var(--mute); margin-bottom: 12px; }
.lib-title { font-family: var(--font-display); font-size: clamp(22px,2.6vw,34px);
  font-weight: 500; line-height: 1.25; color: var(--ink); margin-bottom: 12px; }
.lib-lede { font-size: 14px; line-height: 1.85; color: var(--mute); }

.tile-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}
.tile {
  display: block; text-align: left; border: 0; padding: 0; background: none;
  cursor: pointer; font: inherit; color: inherit;
}
.tile-img {
  display: block; position: relative; aspect-ratio: 1/1;
  background: var(--paper-2); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(26,24,22,.09);
  transition: box-shadow .25s, transform .25s;
}
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(.35) contrast(.97); transition: filter .3s, transform .5s; }
.tile:hover .tile-img { box-shadow: inset 0 0 0 1px rgba(26,24,22,.09), 0 8px 26px rgba(26,24,22,.13); transform: translateY(-3px); }
.tile:hover .tile-img img { filter: none; transform: scale(1.04); }
.tile:focus-visible .tile-img { outline: 2px solid var(--red); outline-offset: 3px; }
.tile-none { position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--mute); opacity: .6; text-transform: none; }
.tile-entry { min-width: 0; }
.tile-entry .tile { width: 100%; }
.catalogue-note { margin-top: 8px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.catalogue-note summary { min-height: 44px; padding: 11px 0; box-sizing: border-box; cursor: pointer; color: var(--red); }
.catalogue-note summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.catalogue-note p { margin: 0 0 16px; }
.tile-n { display: block; margin-top: 11px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.tile-s { display: block; margin-top: 4px; font-size: 10.5px; color: var(--mute);
  text-transform: none; letter-spacing: .05em; }

.lib-more {
  margin-top: 30px; background: none; cursor: pointer; color: var(--ink);
  border: 1px solid rgba(26,24,22,.24); padding: 11px 24px;
  text-transform: none; letter-spacing: .1em; transition: border-color .2s, background .2s;
}
.lib-more:hover { border-color: var(--ink); background: rgba(26,24,22,.04); }

/* ---- 灯箱 ---- */
.lb {
  position: fixed; inset: 0; z-index: 500;
  background: var(--paper);
  display: grid; grid-template-rows: 1fr auto;
  padding: 62px 28px 22px;
}
.lb::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 48% at 50% 42%, rgba(255,253,248,.8), rgba(244,239,230,0) 74%);
}
.lb-x {
  position: absolute; top: 14px; right: 20px; z-index: 3;
  border: 0; background: none; font-size: 30px; line-height: 1;
  color: var(--mute); cursor: pointer; padding: 6px 10px;
}
.lb-x:hover { color: var(--ink); }

.lb-stage-wrap { position: relative; min-height: 0; z-index: 1; }
.lb-stage { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.lb-stage:active { cursor: grabbing; }
.lb-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.lb-shadow {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%);
  width: min(32vw, 320px); height: 26px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(34,28,22,.20), rgba(34,28,22,0) 70%);
  pointer-events: none;
}
.lb-load { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  color: var(--mute); display: flex; gap: 10px; align-items: baseline;
  transition: opacity .45s; pointer-events: none; }
.lb-load.done { opacity: 0; }
.lb-load .pct { color: var(--ink); font-variant-numeric: tabular-nums; }

.lb-foot {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  border-top: 1px solid rgba(26,24,22,.12); padding-top: 16px;
}
.lb-plate { text-align: center; }
.lb-plate .plate-rule { margin: 0 auto 10px; }
.lb-name { font-family: var(--font-display); font-size: clamp(15px,1.5vw,20px);
  font-weight: 500; color: var(--ink); line-height: 1.4; }
.lb-sub { margin-top: 6px; color: var(--mute); text-transform: none; letter-spacing: .06em; font-size: 10.5px; }
.lb-idx { margin-top: 9px; color: var(--mute); opacity: .72; text-transform: none; letter-spacing: .12em; font-size: 10px; }
.lb-nav {
  background: none; border: 1px solid rgba(26,24,22,.2); color: var(--ink);
  padding: 9px 15px; cursor: pointer; white-space: nowrap;
  text-transform: none; letter-spacing: .06em; transition: border-color .2s, background .2s;
}
.lb-nav:hover { border-color: var(--ink); background: rgba(26,24,22,.04); }

@media (max-width: 640px) {
  .lib { margin-top: 64px; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
  .lb { padding: 54px 14px 16px; }
  .lb-foot { grid-template-columns: 1fr; gap: 12px; }
  .lb-nav { width: 100%; }
  .lb-plate { order: -1; }
}

/* 明信片版式切换 */
.pc-card-riso { aspect-ratio: 2 / 3; }
.pc-styles { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pc-styles-l { color: var(--mute); text-transform: none; letter-spacing: .1em; margin-right: 2px; }
.pc-chip {
  border: 1px solid rgba(26,24,22,.2); background: none; color: var(--mute);
  padding: 6px 12px; cursor: pointer; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .06em; text-transform: none; transition: all .18s;
}
.pc-chip:hover { border-color: var(--ink); color: var(--ink); }
.pc-chip.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* ============================================================
   走进展厅 —— 实拍网格 + 大图灯箱
   网格用 800px 缩略懒加载,点开才下 1800px 大图
   ============================================================ */

.pgrid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
}
.pcell {
  position: relative; display: block; padding: 0; border: 0; background: var(--paper-2);
  cursor: pointer; overflow: hidden; font: inherit;
}
.pcell.wide { grid-column: span 2; }
.pcell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.3,1), filter .35s;
  filter: saturate(.94);
}
.pcell:hover img { transform: scale(1.05); filter: none; }
.pcap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px; text-align: left;
  color: #f4efe6; text-transform: none; letter-spacing: .06em; font-size: 10.5px;
  background: linear-gradient(to top, rgba(16,14,12,.72), rgba(16,14,12,0));
  opacity: 0; transform: translateY(4px); transition: opacity .28s, transform .28s;
}
.pcell:hover .pcap, .pcell:focus-visible .pcap { opacity: 1; transform: none; }
.pcell:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.plb {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(18,16,14,.94);
  display: grid; grid-template-rows: 1fr auto; gap: 14px;
  padding: 54px 24px 20px;
}
.plb-img { width: 100%; height: 100%; object-fit: contain; display: block; min-height: 0; }
.plb-foot {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  color: rgba(244,239,230,.86);
}
.plb .lb-nav { border-color: rgba(244,239,230,.28); color: rgba(244,239,230,.86); }
.plb .lb-nav:hover { border-color: rgba(244,239,230,.7); background: rgba(244,239,230,.08); }
.plb .lb-x { color: rgba(244,239,230,.6); }
.plb .lb-x:hover { color: #f4efe6; }
.plb-cap { text-align: center; font-size: 13px; display: flex; flex-direction: column; gap: 5px; }
.plb-idx { color: rgba(244,239,230,.5); text-transform: none; letter-spacing: .14em; font-size: 10px; }

@media (max-width: 1024px) { .pgrid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 640px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; gap: 10px; }
  .pcap { opacity: 1; transform: none; font-size: 9.5px; padding: 20px 8px 7px; }
  .plb { padding: 46px 12px 14px; }
  .plb-foot { gap: 10px; }
}

/* 明信片:保存 / 分享为主动作 */
.pc-act {
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  padding: 9px 18px; cursor: pointer; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: none; transition: background .2s, border-color .2s;
}
.pc-act:hover:not(:disabled) { background: var(--red); border-color: var(--red); }
.pc-act:disabled { opacity: .5; cursor: default; }
.pc-ghost.pc-act-a { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pc-ghost.pc-act-a:hover { background: var(--red); border-color: var(--red); }
.pc-guide { color: var(--mute); margin: -12px 0 20px; text-transform: none; letter-spacing: .05em; opacity: .85; }
.pc-soon {
  background: var(--paper-2); border-left: 2px solid var(--red);
  padding: 10px 13px; margin-bottom: 18px; color: var(--mute);
  text-transform: none; letter-spacing: .04em; line-height: 1.75;
}

/* 三维载入前的占位:同一件器物的缩略图,居中、略透明,就绪后淡出 */
.stage-poster {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%);
  width: min(38vw, 360px); height: auto; opacity: .55; pointer-events: none;
  filter: saturate(.9); transition: opacity .6s ease;
  mix-blend-mode: multiply;
}
.stage-poster.gone { opacity: 0; }
@media (max-width: 640px) { .stage-poster { width: 62vw; top: 44%; } }


/* ---------- 方位罗盘(替代中国地图) ----------
   只有方向、距离与刻度,没有边界。颜色全部走 currentColor,暗底纸底都能用。 */
.compass { border: 1px solid rgba(244,239,230,0.18); padding: clamp(18px, 2.4vw, 32px); color: var(--paper); background: rgba(244,239,230,0.03); }
.compass-head { color: rgba(244,239,230,0.55); margin-bottom: 14px; }
.compass-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.compass-svg { width: 100%; height: auto; display: block; }
.compass-list { list-style: none; margin: 0; padding: 0; }
.compass-list li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgba(244,239,230,0.12); font-size: 15px; }
.compass-list li:last-child { border-bottom: 0; }
.compass-list .n { color: rgba(244,239,230,0.5); }
.compass-list .city small { display: block; font-size: 11px; color: rgba(244,239,230,0.5); letter-spacing: 0.04em; }
.compass-list .km { color: rgba(244,239,230,0.85); }
.compass-list .deg { color: rgba(244,239,230,0.5); min-width: 42px; text-align: right; }
.compass-note { margin-top: 14px; color: rgba(244,239,230,0.45); }
@media (max-width: 760px) {
  .compass-body { grid-template-columns: 1fr; }
  .compass-list li { font-size: 14px; padding: 8px 0; }
}


/* ============================================================
   ② 报刊版式 —— 首屏之下与各分页
   参考 Dezeen 米兰设计周报:标题上压一道红线、粗黑体红字标题、正文窄栏、
   大字引言配靛蓝署名、「日期 · 地点。」粗体起句接正文、条目页多栏流排。
   颜色只用纸 / 墨 / 红 / 靛蓝(靛蓝取自竖版蓝印画稿)。
   ============================================================ */
:root {
  --indigo: #2f4f7f;
  --font-head: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}
.ed { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px) clamp(64px, 8vw, 112px); }
.ed-front { padding-top: clamp(20px, 3vw, 40px); }
.ed-top { padding-top: 64px; }   /* 分页第一屏:让出 50px 固定导航 */
.ed-folio { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 10px; border-bottom: 1px solid var(--ink); color: var(--mute); margin-bottom: clamp(28px, 4vw, 56px); }
.ed-rule { height: 3px; background: var(--red); margin-bottom: 10px; }
.ed-rule-thin { height: 1px; background: rgba(22,20,18,0.22); margin: 28px 0 12px; }
.ed-label { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; color: var(--red); margin-bottom: 14px; }
.ed-head { margin-bottom: clamp(24px, 3vw, 40px); }
.ed-head .ed-label { border-top: 3px solid var(--red); padding-top: 8px; }
.ed-title, .ed-h { font-family: var(--font-head); font-weight: 700; color: var(--red); letter-spacing: -0.02em; line-height: 1.0; margin: 0; }
.ed-title { font-size: clamp(34px, 4.6vw, 64px); max-width: 16ch; }
.ed-title .em, .ed-h .em { color: var(--red); font-weight: 700; }
.ed-h { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; margin-bottom: 12px; }
.ed-h-lg { font-size: clamp(28px, 3.2vw, 44px); }
.ed-h-xl { font-size: clamp(32px, 4vw, 56px); margin-bottom: 18px; }
.ed-h-sm { font-size: clamp(19px, 1.6vw, 22px); }
.ed-lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-soft); max-width: 40ch; margin-top: 16px; }
.ed-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: start; }
.ed-grid-gap { margin-top: clamp(32px, 4vw, 56px); }
.ed-col { min-width: 0; }
.c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; }
.c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-12 { grid-column: 1 / -1; }
.ed-p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 1em; max-width: 44ch; text-wrap: pretty; }
.ed-p:last-child { margin-bottom: 0; }
.ed-runin { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.ed-pull { margin: 0 0 28px; }
.ed-pull p { font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
.ed-pull cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--indigo); }
.ed-more { display: inline-block; margin-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--indigo); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ed-more:hover { color: var(--red); }
.ed-fig { margin: 0 0 20px; }
.ed-fig img { width: 100%; aspect-ratio: var(--ratio, 4/3); object-fit: cover; background: var(--paper-2); }
.ed-fig-wide { margin-bottom: clamp(24px, 3vw, 40px); }
.ed-cap { display: block; margin-top: 8px; color: var(--mute); text-transform: none; letter-spacing: 0.04em; font-size: 12px; }
.ed-count { margin: 12px 0 4px; color: var(--ink); display: flex; align-items: baseline; gap: 10px; }
.ed-count b { font-family: var(--font-head); font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: 1; color: var(--red); letter-spacing: -0.03em; }
.ed-item { margin-bottom: 28px; break-inside: avoid; }
.ed-item-sm { margin-bottom: 18px; }
.ed-listing { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.ed-listing .ed-item { margin-bottom: clamp(28px, 3vw, 44px); }
.ed-listing .ed-fig { margin-bottom: 14px; }
.ed-index { list-style: none; margin: 0; padding: 0; }
.ed-index li a { display: grid; grid-template-columns: 4.5em 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(22,20,18,0.18); text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.4; }
.ed-index li a .k { font-family: var(--font-head); font-weight: 700; color: var(--red); }
.ed-index li a:hover .v { color: var(--indigo); }
.ed-timeline { list-style: none; margin: 0; padding: 0; }
.ed-timeline li { display: grid; grid-template-columns: 4em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(22,20,18,0.18); font-size: 15px; color: var(--ink-soft); }
.ed-timeline li .y { color: var(--mute); padding-top: 3px; }
.ed-timeline li.now { color: var(--ink); font-family: var(--font-head); font-weight: 700; }
.ed-timeline li.now .y { color: var(--red); }
.ed-dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 18px 0 0; }
.ed-dl dt { color: var(--mute); padding-top: 4px; }
.ed-dl dd { margin: 0; font-size: 16px; color: var(--ink); line-height: 1.45; }
.ed-dl dd small { display: block; font-size: 13px; color: var(--mute); }
.ed-dl dd a { color: var(--indigo); text-decoration: none; border-bottom: 1px solid currentColor; }
.ed-dl-big { margin-top: 0; gap: 14px 18px; }
.ed-dl-big dd { font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; line-height: 1.2; }
.ed-dl-big dd small { font-family: var(--font-body); font-weight: 400; margin-top: 4px; }
.ed-note { color: var(--mute); margin-top: 24px; text-transform: none; letter-spacing: 0.04em; }

/* 920 页首:暗场舞台 */
.fest-hero { position: relative; min-height: 78vh; display: grid; align-items: end; background: var(--ink); color: var(--paper); overflow: hidden; }
.fest-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; filter: saturate(0.5); }
.fest-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,20,18,0.2), rgba(22,20,18,0.86)); }
.fest-hero-in { position: relative; z-index: 1; max-width: 1320px; width: 100%; margin: 0 auto; padding: 120px clamp(20px, 4vw, 56px) clamp(40px, 6vw, 72px); }
.fest-kicker { color: rgba(244,239,230,0.6); }
.fest-920 { font-family: var(--font-head); font-weight: 700; font-size: clamp(120px, 24vw, 360px); line-height: 0.82; letter-spacing: -0.06em; margin: 8px 0 0 -0.04em; }
.fest-name { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 3.2vw, 44px); letter-spacing: -0.01em; margin-top: 14px; }
.fest-date { margin-top: 10px; color: rgba(244,239,230,0.7); }
.fest-count { margin-top: 22px; display: flex; align-items: baseline; gap: 12px; }
.fest-count b { font-family: var(--font-head); font-weight: 700; font-size: clamp(56px, 8vw, 120px); line-height: 0.9; letter-spacing: -0.04em; color: var(--paper); }
.fest-count span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,239,230,0.7); }
.fest-count .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 3vw, 40px); text-transform: none; letter-spacing: 0; color: var(--paper); }

/* 罗盘落在纸上 */
.compass { color: var(--ink); border-color: rgba(22,20,18,0.2); background: transparent; }
.compass-head { color: var(--mute); }
.compass-list li { border-bottom-color: rgba(22,20,18,0.15); }
.compass-list .n, .compass-list .city small, .compass-list .deg, .compass-note { color: var(--mute); }
.compass-list .km { color: var(--ink); }

/* 页脚 */
.ed-foot { padding: 0 clamp(20px, 4vw, 56px) 40px; }
.ed-foot-in { max-width: 1320px; margin: 0 auto; border-top: 3px solid var(--ink); padding-top: 32px; }
.ed-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.ed-foot h5 { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--red); margin-bottom: 12px; }
.ed-foot ul { list-style: none; padding: 0; margin: 0; }
.ed-foot li { font-size: 14px; line-height: 1.9; }
.ed-foot a { color: var(--ink); text-decoration: none; }
.ed-foot a:hover { color: var(--indigo); }
.ed-foot .brand { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.35; }
.ed-foot .tag { color: var(--mute); margin-top: 8px; }
.ed-foot-bottom { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 14px; border-top: 1px solid rgba(22,20,18,0.2); color: var(--mute); }

/* 导航:当前页与 920 */
.nav .nav-links a.current, .nav-drawer a.current { color: var(--red); }
.nav .nav-links a.fest, .nav-drawer a.fest { color: var(--red); font-weight: 700; }

@media (max-width: 1024px) {
  .c-3, .c-4, .c-5 { grid-column: span 6; }
  .c-6, .c-7, .c-8 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ed-grid { grid-template-columns: 1fr; gap: 28px; }
  .ed-grid > * { grid-column: 1 / -1 !important; }
  .ed-title br, .ed-h br { display: none; }
  .ed-title { font-size: clamp(30px, 9vw, 40px); }
  .ed-foot-grid { grid-template-columns: 1fr 1fr; }
  .ed-foot-bottom { flex-direction: column; gap: 8px; }
  .fest-hero { min-height: 70vh; }
  .fest-hero-in { padding-top: 96px; }
}


/* ============================================================
   ③ 首页三格:外观轮播(首屏)· 920 倒计时红版 · 纸本三维舞台
   ============================================================ */
.hc { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: #0a0908; color: var(--paper); overflow: hidden; }
.hc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hc-slide.on { opacity: 1; }
.hc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-slide.on img { animation: hcKen 9s ease-out forwards; }
@keyframes hcKen { from { transform: scale(1); } to { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .hc-slide.on img { animation: none; } }
.hc-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,9,8,0.38) 0%, rgba(10,9,8,0) 28%, rgba(10,9,8,0) 52%, rgba(10,9,8,0.74) 100%); }
.hc-text { position: absolute; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); bottom: clamp(76px, 12vh, 124px); }
.hc-h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.1; letter-spacing: 0.02em; margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hc-sub { margin: 12px 0 0; font-size: clamp(13px, 1.2vw, 16px); color: rgba(244,239,230,0.86); }
.hc-cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.hc-btn { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; padding: 12px 16px; border: 1px solid rgba(244,239,230,0.6); color: var(--paper); text-decoration: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, color .2s; }
.hc-btn.red { background: var(--red); border-color: var(--red); }
.hc-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hc-foot { position: absolute; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: rgba(244,239,230,0.75); }
.hc-ctl { display: inline-flex; align-items: center; gap: 12px; }
.hc-ctl button { background: transparent; border: 1px solid rgba(244,239,230,0.4); color: var(--paper); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1; }
.hc-ctl button:hover { background: var(--paper); color: var(--ink); }
.hc-dots { display: inline-flex; gap: 8px; }
.hc-dots button { width: 22px; height: 2px; border: 0; background: rgba(244,239,230,0.35); cursor: pointer; padding: 0; }
.hc-dots button.on { background: var(--paper); }

/* 920 倒计时:红底通栏 */
.cd { background: var(--red); color: var(--paper); padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px); overflow: hidden; }
.cd-in { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.cd-dial { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.cd-dial svg { width: 100%; height: auto; display: block; }
.cd-num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; gap: 10px; padding-top: 38%; }
.cd-num b { font-family: var(--font-head); font-weight: 700; font-size: clamp(88px, 12vw, 200px); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.cd-num span { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.cd-num .cd-today { font-size: clamp(26px, 4vw, 52px); letter-spacing: -0.01em; }
.cd-label { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.cd-date { margin-top: 14px; opacity: 0.85; }
.cd-editions { margin-top: 18px; opacity: 0.7; letter-spacing: 0.18em; }
.cd-line { margin: 18px 0 0; font-size: 15px; opacity: 0.92; max-width: 40ch; }
.cd-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.cd-btn { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; padding: 12px 16px; background: var(--paper); color: var(--red); text-decoration: none; border: 1px solid var(--paper); cursor: pointer; transition: background .2s, color .2s; }
.cd-btn.ghost { background: transparent; color: var(--paper); }
.cd-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* 纸本三维舞台降为第三格:不再给固定导航留顶边 */
.hero-paper.as-section { min-height: 88vh; min-height: 88svh; padding-top: 40px; }

/* 头版:在展三条并排 */
.ed-grid-tight { gap: clamp(14px, 2vw, 28px); margin-bottom: 8px; }
.ed-grid-tight .ed-fig { margin-bottom: 12px; }

@media (max-width: 900px) {
  .cd-in { grid-template-columns: 1fr; gap: 20px; }
  .cd-dial { max-width: 340px; }
  .cd-text { text-align: center; }
  .cd-cta { justify-content: center; }
  .cd-line { margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .hc-text { bottom: 92px; }
  .hc-foot { flex-wrap: wrap; row-gap: 10px; }
  .hc-ctl { display: none; }
  .ed-grid-tight > * { grid-column: 1 / -1 !important; }
  .hero-paper.as-section { padding-top: 28px; }
}
