/* 平面版：浅色宣纸底、深墨字，字大、按钮大，只用上下翻。字体由 pm.js 从 VR 展厅的字体子集载入（PMBody 正文 / PMTitle 题目）。 */
:root {
  --paper: #f6f2ea; --card: #fbf8f2; --ink: #2a241e; --ink2: #5a4a3b; --muted: #8a7a68;
  --line: #e4dccf; --gold: #9c7b4f; --gold-bg: #c9a46a;
  --serif: "PMBody", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --title: "PMTitle", var(--serif);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.8; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.hero { text-align: center; padding: calc(40px + env(safe-area-inset-top)) 16px 26px; }
.title { font-family: var(--title); white-space: nowrap; }
.title b { font-weight: 400; font-size: min(46px, 11vw); letter-spacing: .18em; }
.title span { font-size: min(22px, 5.4vw); letter-spacing: .12em; margin-left: .3em; color: var(--ink2); }
.line2 { font-family: var(--title); font-size: min(26px, 6.6vw); letter-spacing: .3em; text-indent: .3em; margin-top: 6px; color: var(--ink2); }
.tagline { margin: 14px 0 20px; color: var(--muted); font-size: 16px; letter-spacing: .12em; }
.to-vr { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 23px; border: 1px solid var(--gold); color: var(--gold); text-decoration: none; font-size: 17px; letter-spacing: .08em; }

/* 书体导航：吸顶，点了跳到那一组 */
#nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; padding: 8px 12px; background: rgba(246, 242, 234, .94); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#nav a { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 22px; text-decoration: none; font-size: 18px; background: var(--card); }
#nav a.wide { flex: 1.25; font-size: 16px; }
#nav a.on { background: var(--gold-bg); border-color: var(--gold-bg); color: #221b12; }

main { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.loading { text-align: center; color: var(--muted); padding: 60px 0; }
section { scroll-margin-top: 66px; }

.doc { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px 20px 12px; margin: 22px 0; }
.doc h2 { margin: 0 0 10px; font-weight: 400; font-size: 24px; letter-spacing: .3em; color: var(--ink); }
.doc p { margin: 0 0 12px; text-indent: 2em; text-align: justify; color: #3a2f25; }

.zone-head { display: flex; align-items: baseline; gap: 10px; margin: 34px 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.zone-head h2 { margin: 0; font-weight: 400; font-size: 28px; letter-spacing: .2em; }
.zone-head span { color: var(--muted); font-size: 16px; }

.work { padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.work:last-child { border-bottom: 0; }
.shot { display: block; width: 100%; padding: 0; text-align: center; }
.shot img { height: min(66vh, 560px); width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(60, 45, 30, .22)); background: transparent; }
.shot .hint { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
.info { margin-top: 12px; }
.info .who { font-size: 22px; letter-spacing: .06em; }
.info .who b { font-weight: 400; color: var(--gold); margin-right: .5em; font-size: 18px; letter-spacing: 0; }
.info .name { font-size: 19px; color: var(--ink2); margin-top: 2px; }
.info dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 10px 0 0; font-size: 17px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; }

.foot { text-align: center; padding: 30px 16px calc(30px + env(safe-area-inset-bottom)); }
.icp { margin: 22px 0 0; font-size: 13px; }
.icp a { color: #9a9590; text-decoration: none; }

/* 看大图：先整幅，点「放大看字」变成铺满宽度、上下滑着看 */
#viewer { position: fixed; inset: 0; z-index: 20; background: #1b1815; color: #f3eee6; }
#viewer[hidden] { display: none; }
.v-stage { position: absolute; inset: 0; overflow: auto; -webkit-overflow-scrolling: touch; padding: calc(58px + env(safe-area-inset-top)) 0 calc(76px + env(safe-area-inset-bottom)); text-align: center; }
.v-stage img { display: block; margin: 0 auto; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.v-stage.zoom img { height: auto; width: 100%; max-width: none; }
.v-top { position: fixed; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: rgba(27, 24, 21, .85); }
.v-top span { flex: 1; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-top button, .v-bar button { height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 22px; font-size: 16px; white-space: nowrap; }
.v-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; justify-content: space-between; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(27, 24, 21, .85); }
.v-bar #v-zoom { background: var(--gold-bg); border-color: var(--gold-bg); color: #221b12; }
body.lock { overflow: hidden; }
