/* ============ 灵犀纸翼 · 纸艺立体书 ============ */
:root {
  --paper: #f7f1e4;
  --paper-2: #efe6d2;
  --paper-edge: #d9cdb0;
  --ink: #2b2a26;
  --ink-soft: #5c564a;
  --navy: #14304d;
  --navy-deep: #0c2136;
  --red: #c8452c;
  --gold: #d9a441;
  --era0: #8a6d3b;
  --era1: #3f6e8e;
  --era2: #c8452c;
  --serif: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --rainbow: linear-gradient(90deg, #e5484d, #f0862c, #e9c04a, #58a55c, #3f7fbf, #7b5ea7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(63, 127, 191, .22), transparent 60%),
    radial-gradient(900px 600px at 12% 108%, rgba(200, 69, 44, .12), transparent 60%),
    radial-gradient(2px 2px at 12% 22%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(2px 2px at 32% 64%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(2px 2px at 68% 18%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(2px 2px at 86% 72%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 52% 40%, rgba(255,255,255,.35) 50%, transparent 51%),
    linear-gradient(175deg, #10263e 0%, #0c2136 55%, #081827 100%);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 加载遮罩 ---------- */
#veil {
  position: fixed; inset: 0; z-index: 99;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  background: linear-gradient(175deg, #10263e, #081827);
  color: #e9dfc8; transition: opacity .7s ease; letter-spacing: 4px;
}
#veil.off { opacity: 0; pointer-events: none; }
#veil .fold {
  width: 46px; height: 46px; border-radius: 6px;
  background: linear-gradient(135deg, #f7f1e4 50%, #d9cdb0 50%);
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
  animation: fold 1.1s ease-in-out infinite alternate;
}
@keyframes fold { from { transform: rotateY(0) rotate(-4deg); } to { transform: rotateY(150deg) rotate(4deg); } }
#veil p { font-size: 13px; opacity: .75; }

/* ---------- 顶部品牌 / 底部提示 ---------- */
#brand {
  position: fixed; top: 16px; left: 20px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  color: #e9dfc8; font-family: var(--serif); user-select: none;
}
#brand .mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--gold), #b9832f);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: #10263e;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
#brand b { font-size: 16px; letter-spacing: 3px; }
#brand span { font-size: 11px; opacity: .6; letter-spacing: 2px; display: block; margin-top: 1px; }

#hint {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 12px;
  background: rgba(10, 26, 42, .72); border: 1px solid rgba(233, 223, 200, .18);
  backdrop-filter: blur(6px); border-radius: 999px;
  padding: 8px 18px; color: #d8cfb8; font-size: 12.5px; letter-spacing: 1px;
  user-select: none; white-space: nowrap; max-width: 94vw; overflow: hidden;
}
#hint .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
#hint b { color: #f3ead2; font-weight: 600; }

/* ---------- 3D 舞台 ---------- */
#stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#fit {
  width: 1400px; height: 900px; flex: none;
  transform: scale(var(--s, 1));
  transform-style: preserve-3d;
  display: flex; align-items: center; justify-content: center;
}
#scene { perspective: 2000px; perspective-origin: 50% 34%; }
/* 注册自定义属性：让 var 变化本身可过渡，比依赖 transform 重算更可靠 */
@property --shift { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --tilt { syntax: "<angle>"; inherits: false; initial-value: 10deg; }
@property --drop { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --zoom { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --tiltS { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --dropS { syntax: "<length>"; inherits: false; initial-value: 0px; }

#bookWrap {
  position: relative; width: 1280px; height: 800px;
  transform-style: preserve-3d;
  --shift: -320px; --tilt: 10deg; --drop: 0px; --zoom: 1;
  transform: translateX(var(--shift)) translateY(var(--drop)) rotateX(var(--tilt)) scale(var(--zoom));
  transition: --shift 1.15s cubic-bezier(.6, .08, .28, 1), --tilt 1.15s cubic-bezier(.6, .08, .28, 1), --drop 1.15s cubic-bezier(.6, .08, .28, 1), --zoom 1.15s cubic-bezier(.6, .08, .28, 1);
}
#bookWrap.flat { --tilt: 56deg; --drop: 46px; --zoom: .93; }

#book { position: absolute; inset: 0; transform-style: preserve-3d; }

/* 书壳底板与投影 */
#board {
  position: absolute; inset: -8px -20px -12px -20px; border-radius: 14px;
  background: linear-gradient(160deg, #1d3d60, #0d2238 70%);
  box-shadow: 0 40px 80px rgba(2, 8, 16, .55), inset 0 0 0 1px rgba(233, 223, 200, .12);
  transform: translateZ(-20px);
}
#bookShadow {
  position: absolute; left: 2%; right: -3%; bottom: -58px; height: 84px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(3, 10, 20, .55), transparent 72%);
  filter: blur(8px); transform: translateZ(-24px);
  transition: all 1.15s cubic-bezier(.6, .08, .28, 1);
}
#bookWrap.flat #bookShadow { bottom: -30px; left: -2%; right: -2%; opacity: .8; }

/* 书页侧面（纸页叠层） */
.edge {
  position: absolute; top: 10px; bottom: -8px; width: 15px;
  background: repeating-linear-gradient(180deg, #f2ead6 0 3px, #d9cdb0 3px 5px);
  transform: translateZ(-6px); opacity: 0; transition: opacity .5s ease;
  border-radius: 3px;
}
.edge.l { left: -15px; border-radius: 6px 2px 2px 6px; }
.edge.r { right: -15px; border-radius: 2px 6px 6px 2px; }
.edge.on { opacity: 1; }

/* ---------- 翻页 sheet ---------- */
.sheet {
  position: absolute; left: 50%; top: 0; width: 50%; height: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transform: rotateY(0deg);
  transition: transform .95s cubic-bezier(.52, .06, .32, 1);
}
.sheet.turned { transform: rotateY(-180deg); }

.face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.face.front { }
.face.back { transform: rotateY(180deg); }

/* ---------- 纸页通用 ---------- */
.page {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(120, 96, 60, .05), rgba(120, 96, 60, .05)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .26 0 0 0 .06 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>"),
    var(--paper);
  overflow: hidden;
}
.face.front .page { border-radius: 0 12px 12px 0; box-shadow: inset 22px 0 34px -22px rgba(60, 40, 10, .38); }
.face.back .page { border-radius: 12px 0 0 12px; box-shadow: inset -22px 0 34px -22px rgba(60, 40, 10, .38); }
.face.no-clip .page { overflow: visible; }

/* ---------- 封面 ---------- */
.page.cover { border-radius: 0 12px 12px 0; }
.cover-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-shade {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(8, 20, 36, .68) 0%, rgba(8, 20, 36, .25) 42%, transparent 68%);
}
.cover-text { position: absolute; left: 46px; top: 64px; right: 40%; color: #f5eeda; }
.cover-badge {
  display: inline-block; font-size: 12px; letter-spacing: 3px;
  border: 1px solid rgba(233, 223, 200, .55); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 22px; color: #ecd9a8;
  background: rgba(12, 30, 50, .35); backdrop-filter: blur(3px);
}
.cover-text h1 {
  font-family: var(--serif); font-weight: 900; font-size: 92px; line-height: 1.14;
  letter-spacing: 10px;
  background: linear-gradient(180deg, #fdf6e3 15%, #f3d489 60%, #d9a441 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 16px rgba(4, 12, 24, .65));
}
.cover-sub { margin-top: 16px; font-family: var(--serif); font-size: 21px; letter-spacing: 7px; color: #e8ddc2; }
.cover-line { margin-top: 10px; font-size: 13px; letter-spacing: 2.5px; color: rgba(232, 221, 194, .72); }
.cover-rule { margin-top: 22px; width: 150px; height: 5px; border-radius: 3px; background: var(--rainbow); box-shadow: 0 2px 10px rgba(233, 160, 60, .45); }
.cover-hint {
  position: absolute; right: 26px; bottom: 26px;
  color: #f2e9d2; font-size: 13px; letter-spacing: 2px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10, 24, 40, .5); border: 1px solid rgba(233, 223, 200, .25);
  padding: 9px 16px; border-radius: 999px; backdrop-filter: blur(4px);
  animation: nudge 2.2s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translateX(7px); } }
.cover-hint i {
  width: 9px; height: 9px; border-top: 2px solid #f2e9d2; border-right: 2px solid #f2e9d2;
  transform: rotate(45deg); display: inline-block;
}

/* ---------- 介绍左页 ---------- */
.page.intro-l { padding: 42px 40px; }
.era-chip {
  display: inline-block; font-size: 12px; letter-spacing: 2.5px;
  color: var(--era-c, var(--era1));
  border: 1px solid currentColor; border-radius: 999px; padding: 4px 13px;
  background: rgba(255, 255, 255, .5);
}
.year-big {
  position: absolute; top: 18px; right: 26px;
  font-family: var(--serif); font-weight: 900; font-size: 110px; line-height: 1;
  color: rgba(43, 42, 38, .07); letter-spacing: 2px; user-select: none;
}
.plane-name { margin-top: 18px; font-family: var(--serif); font-weight: 900; font-size: 47px; letter-spacing: 3px; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.plane-name .nick {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: 3px;
  background: var(--red); color: #fff; padding: 4px 10px 4px 12px; border-radius: 4px;
  box-shadow: 0 3px 8px rgba(200, 69, 44, .35); transform: translateY(2px);
}
.role { margin-top: 10px; font-size: 15px; letter-spacing: 1.5px; color: var(--era-c, var(--era1)); font-weight: 600; }
.role::before { content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 2px; background: currentColor; vertical-align: middle; margin-right: 9px; }
.intro-text { margin-top: 15px; }
.intro-text p { font-size: 15px; line-height: 1.88; color: var(--ink-soft); text-align: justify; }
.intro-text p + p { margin-top: 9px; }
.intro-img {
  position: absolute; left: 34px; right: 34px; bottom: 34px; height: 296px;
  display: flex; align-items: flex-end; justify-content: center;
}
.intro-img { height: 306px; }
.intro-img img.photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  border-radius: 10px; border: 1px solid rgba(43, 42, 38, .18);
  box-shadow: 0 12px 22px rgba(30, 22, 8, .25);
}
.intro-img figcaption {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 1.5px; color: #f7f1e4;
  background: rgba(12, 24, 40, .62); backdrop-filter: blur(3px);
  padding: 4px 10px; border-radius: 999px;
}
.intro-img figcaption i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.img-fallback {
  position: absolute; inset: auto 0 0 0; height: 200px;
  background: repeating-linear-gradient(45deg, rgba(43,42,38,.05) 0 12px, transparent 12px 24px);
  border: 1px dashed rgba(43, 42, 38, .25); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(43, 42, 38, .4); font-size: 13px; letter-spacing: 2px;
}

/* ---------- 介绍右页 ---------- */
.page.intro-r { padding: 42px 40px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; }
.sec-head b { font-family: var(--serif); font-size: 21px; letter-spacing: 4px; color: var(--ink); }
.sec-head span { font-size: 11px; letter-spacing: 3px; color: rgba(43, 42, 38, .45); }
.sec-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(43,42,38,.28), transparent); }
.params { margin-top: 16px; }
.prow {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 10.5px 2px; border-bottom: 1px dashed rgba(43, 42, 38, .18); font-size: 14.5px;
}
.prow .pk { color: var(--ink-soft); letter-spacing: 2px; flex: none; }
.prow .pk::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--era-c, var(--era1)); margin-right: 9px; vertical-align: 2px; }
.prow .pv { font-weight: 600; color: var(--ink); text-align: right; letter-spacing: .5px; }
.story {
  position: relative; margin-top: 24px;
  background: #fdf6e6; border: 1px solid rgba(217, 164, 65, .55); border-radius: 12px;
  padding: 20px 20px 16px; box-shadow: 0 6px 16px rgba(120, 90, 30, .1);
}
.story::before {
  content: ""; position: absolute; top: -9px; left: 34px; width: 74px; height: 18px;
  background: rgba(217, 164, 65, .38); transform: rotate(-2deg); border-radius: 2px;
  box-shadow: 0 1px 3px rgba(120, 90, 30, .18);
}
.story .story-tag {
  position: absolute; top: -12px; left: 22px;
  background: var(--gold); color: #fff; font-size: 12px; letter-spacing: 3px;
  padding: 3px 12px; border-radius: 999px; box-shadow: 0 3px 8px rgba(180, 130, 40, .4);
}
.story p { font-size: 14px; line-height: 1.85; color: #5a4d33; text-align: justify; }
.tl { position: absolute; left: 42px; right: 42px; bottom: 34px; height: 58px; }
.tl::before {
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 3px; border-radius: 2px;
  background: var(--rainbow); opacity: .85;
}
.tl-dot { position: absolute; top: 4.5px; width: 12px; height: 12px; border-radius: 50%; transform: translateX(-50%); background: var(--paper); border: 2px solid #b9ad93; }
.tl-dot b { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: rgba(43, 42, 38, .55); white-space: nowrap; font-weight: 500; }
.tl-dot.on { width: 17px; height: 17px; top: 2px; background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px rgba(200, 69, 44, .16); }
.tl-dot.on b { color: var(--red); font-weight: 700; font-size: 11.5px; }

/* ---------- 弹出跨页 ---------- */
/* 弹出页背景放入独立 page-bg：preserve-3d 面板自身的 backface 剔除在 Chromium 下不可靠，
   由带 backface-visibility 的子节点 + 翻页状态可见性规则双重保证 */
.face.no-clip .page { background: none; box-shadow: none; }
.page-bg {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background:
    linear-gradient(rgba(120, 96, 60, .04), rgba(120, 96, 60, .04)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .26 0 0 0 .05 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, #e3f0fb 0%, #d3e6f6 52%, #e8f1df 100%);
}
.face.front .page-bg { border-radius: 0 12px 12px 0; box-shadow: inset 22px 0 34px -22px rgba(60, 40, 10, .38); }
.face.back .page-bg { border-radius: 12px 0 0 12px; box-shadow: inset -22px 0 34px -22px rgba(60, 40, 10, .38); }

/* 翻页可见性编排：页面转过约 90 度前后切换内容，避免镜像透出 */
.page-bg, .big-name, .runway { transition: visibility 0s linear .5s; }
.sheet:not(.turned) .face.back .page-bg,
.sheet:not(.turned) .face.back .cloud,
.sheet:not(.turned) .face.back .big-name,
.sheet.turned .face.front .page-bg,
.sheet.turned .face.front .cloud,
.sheet.turned .face.front .runway { visibility: hidden; }
.popup-l .big-name {
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  position: absolute; left: 52px; bottom: 66px;
  font-family: var(--serif); font-weight: 900; font-size: 116px; letter-spacing: 8px;
  color: var(--navy); text-shadow: 0 2px 0 rgba(255,255,255,.65), 0 14px 26px rgba(20, 48, 77, .25);
}
.popup-l .big-name::after {
  content: ""; display: block; margin-top: 14px; width: 78%; height: 7px; border-radius: 4px;
  background: var(--rainbow); box-shadow: 0 3px 10px rgba(233, 160, 60, .4);
}
.popup-r .runway {
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(180deg, #e2d7bc, #d5c8a9);
  border-top: 2px solid rgba(43, 42, 38, .14);
}
.popup-r .runway::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 4px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(245, 240, 225, .95) 0 30px, transparent 30px 58px);
  border-radius: 2px;
}

/* 弹出页 3D 链路：仅弹出页开启 preserve-3d，飞机才能飞出纸面；其余页保持叶子节点以确保背面剔除生效 */
.face.no-clip { transform-style: preserve-3d; }
.face.no-clip .page, .face.no-clip .page .plane-rig { transform-style: preserve-3d; }

/* 型号小字：桌面端隐藏，手机单页模式显示 */
.mini-name { display: none; }

/* 纸云 */
/* 云朵仅在当前弹出跨页（.live）浮现，避免其他未翻到页的立体云隔页飘出 */
.cloud { position: absolute; background: #fdfbf4; border-radius: 999px; box-shadow: 0 10px 18px rgba(60, 90, 120, .16), inset -6px -8px 0 rgba(190, 205, 220, .35); backface-visibility: hidden; -webkit-backface-visibility: hidden; opacity: 0; transition: opacity .7s ease .1s, visibility 0s linear .5s; }
.face.live .cloud { opacity: 1; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 58%; height: 130%; left: 12%; bottom: 32%; }
.cloud::after { width: 42%; height: 95%; right: 12%; bottom: 28%; }
.cloud.c1 { width: 120px; height: 44px; left: 8%; top: 16%; transform: translateZ(26px); }
.cloud.c2 { width: 86px; height: 32px; right: 12%; top: 10%; transform: translateZ(38px); }
.cloud.c3 { width: 100px; height: 38px; left: 30%; top: 34%; transform: translateZ(16px); }
.popup-l .cloud.c2 { right: 8%; top: 22%; }
.popup-l .cloud.c3 { left: 56%; top: 12%; }

/* 弹出飞机 */
.plane-rig { position: absolute; left: -46%; right: -1%; bottom: 19%; height: 60%; pointer-events: none; transform-style: preserve-3d; }
.popup-plane {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
  transform: translateZ(0px) scale(.5); opacity: 0;
  transform-origin: 50% 92%;
  transition: transform 1.05s cubic-bezier(.22, 1.38, .36, 1) .58s, opacity .45s ease .58s;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 6px 10px rgba(20, 40, 60, .18));
}
.face.live .popup-plane { transform: translateZ(210px) rotateX(-7deg) scale(1.06); opacity: 1; }
.face.live .plane-rig { animation: hover 4.5s ease-in-out 1.75s infinite alternate; }
@keyframes hover { from { transform: translateY(0); } to { transform: translateY(-13px); } }

.plane-shadow {
  position: absolute; left: -30%; right: 0%; bottom: 12%; height: 44px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(15, 35, 55, .38), rgba(15, 35, 55, 0) 72%);
  filter: blur(3px); transform: translateZ(1px) scale(.45); opacity: 0;
  transition: transform 1.05s cubic-bezier(.22, 1.38, .36, 1) .58s, opacity .5s ease .58s;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.face.live .plane-shadow { transform: translateZ(1px) scale(1); opacity: 1; }

/* ---------- 尾页 ---------- */
.page.end { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px; }
.end .end-arc { width: 190px; height: 95px; border-radius: 190px 190px 0 0; background: var(--rainbow); mask: radial-gradient(130px 62px at 50% 100%, transparent 98%, #000); -webkit-mask: radial-gradient(130px 62px at 50% 100%, transparent 98%, #000); opacity: .9; margin-bottom: 30px; }
.end h2 { font-family: var(--serif); font-weight: 900; font-size: 44px; letter-spacing: 8px; color: var(--navy); }
.end .end-sub { margin-top: 14px; font-size: 15px; color: var(--ink-soft); letter-spacing: 2px; }
.end .end-tags { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.end .end-tags span {
  font-size: 12.5px; letter-spacing: 1.5px; color: #7a5c22;
  background: rgba(217, 164, 65, .16); border: 1px solid rgba(217, 164, 65, .5);
  padding: 6px 14px; border-radius: 999px;
}
.end .end-credit { margin-top: 34px; font-size: 12px; color: rgba(43, 42, 38, .5); letter-spacing: 2px; }

/* ---------- 标签纸导航 ---------- */
#tabs { position: absolute; top: 0; right: -40px; width: 40px; height: 100%; z-index: 500; transform-style: preserve-3d; }
.tab {
  position: absolute; right: 2px; width: 38px; height: 72px;
  border: none; cursor: pointer;
  background: linear-gradient(180deg, #fbf5e6, #efe5cd);
  border-radius: 6px 0 0 6px;
  box-shadow: -3px 3px 8px rgba(5, 15, 28, .35), inset -1px 0 0 rgba(43, 42, 38, .08);
  color: var(--ink-soft); font-family: var(--serif); font-weight: 700; font-size: 13.5px;
  writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
  outline: none;
}
.tab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tc, var(--era1)); border-radius: 6px 0 0 6px; }
.tab:hover { transform: translateX(-5px); color: var(--ink); }
.tab:focus-visible { box-shadow: 0 0 0 3px rgba(217, 164, 65, .8); }
.tab.active {
  transform: translateX(-9px);
  background: linear-gradient(rgba(9, 20, 34, .22), rgba(9, 20, 34, .22)), var(--tc, var(--era1));
  color: #fff; box-shadow: -5px 5px 12px rgba(5, 15, 28, .4);
}
.tab.active::before { background: rgba(255, 255, 255, .55); }

/* ---------- 翻页热区 ---------- */
.nav-zone { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 400; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav-zone.l { left: 0; }
.nav-zone.r { right: 0; }
.nav-zone.r::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 52px; height: 52px;
  background: linear-gradient(315deg, rgba(43, 42, 38, .16) 50%, transparent 50.5%);
  border-bottom-right-radius: 12px; opacity: 0; transition: opacity .25s ease;
}
.nav-zone.r:hover::after { opacity: 1; }
.nav-zone.l::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 52px;
  background: linear-gradient(45deg, rgba(43, 42, 38, .16) 50%, transparent 50.5%);
  border-bottom-left-radius: 12px; opacity: 0; transition: opacity .25s ease;
}
.nav-zone.l:hover::after { opacity: 1; }

/* ---------- 移动端单页模式 ---------- */
#single { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; perspective: 1300px; perspective-origin: 50% 30%; }
#singleWrap {
  position: relative; width: 640px; height: 800px; flex: none;
  transform: scale(var(--s, .5)) rotateX(var(--tiltS, 0deg)) translateY(var(--dropS, 0px));
  transform-style: preserve-3d;
  transition: --tiltS .95s cubic-bezier(.6, .08, .28, 1), --dropS .95s cubic-bezier(.6, .08, .28, 1);
}
#singleWrap.flat { --tiltS: 50deg; --dropS: 30px; }
#singleFace { position: absolute; inset: 0; transform-style: preserve-3d; }
#singleFace .page { border-radius: 12px; box-shadow: 0 30px 60px rgba(2, 8, 16, .5); }
#singleFace .page.cover { border-radius: 12px; }
#singleTabs { position: absolute; top: 0; right: -40px; width: 40px; height: 100%; z-index: 500; }
#single .nav-zone { z-index: 400; }
#singleFace .enter-r { animation: inR .5s cubic-bezier(.3, .9, .4, 1) both; }
#singleFace .enter-l { animation: inL .5s cubic-bezier(.3, .9, .4, 1) both; }
@keyframes inR { from { opacity: 0; transform: translateX(9%) rotateY(10deg); } to { opacity: 1; transform: none; } }
@keyframes inL { from { opacity: 0; transform: translateX(-9%) rotateY(-10deg); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  #stage, #brand span { display: none; }
  #singleFace .mini-name {
    display: block; position: absolute; left: 40px; bottom: 74px; z-index: 3;
    font-family: var(--serif); font-weight: 900; font-size: 44px; letter-spacing: 3px;
    color: var(--navy); text-shadow: 0 2px 0 rgba(255,255,255,.65);
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
  }
  #single { display: flex; }
  #brand { top: 12px; left: 14px; }
  #brand b { font-size: 14px; }
  #hint { bottom: 12px; font-size: 11.5px; padding: 7px 14px; }
}

/* 平板竖屏等中等宽度也走单页 */
@media (max-width: 900px) and (orientation: portrait) {
  #stage { display: none; }
  #single { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet, #bookWrap, #singleWrap, .popup-plane, .plane-shadow, .strut { transition-duration: .2s !important; transition-delay: 0s !important; }
  .face.live .plane-rig, .cover-hint, #hint .dot { animation: none !important; }
}
