/* ============================================================
   佳色莱特 2026 烤漆门图册
   A/B 双版本 · 书页翻阅 · 单门定制 · 我的订单
   ============================================================ */

/* ---------- 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3 { margin: 0; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; }

::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- 设计变量 ---------- */
:root {
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --ease-lux: cubic-bezier(.22, 1, .36, 1);
  --ease-flip: cubic-bezier(.19, 1, .22, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --app-h: 100vh;
  --spread-ratio: 1.3688;
  --single-ratio: 0.6844;
}

body.theme-a {
  --bg: #f4eee3;
  --bg-deep: #ede3d2;
  --ink: #2e261c;
  --ink-soft: rgba(46, 38, 28, .62);
  --line: rgba(74, 55, 32, .15);
  --line-strong: rgba(74, 55, 32, .28);
  --accent: #a67c48;
  --accent-soft: rgba(166, 124, 72, .13);
  --on-accent: #fbf7ef;
  --veil: #efe6d7;
  --shadow-deep: rgba(45, 28, 12, .45);
  --panel-card: #fbf7ef;
  --panel-deep: #f6efe3;
  --panel-line-soft: rgba(74, 55, 32, .12);
  --spot-glow: rgba(166, 124, 72, .16);
  --backdrop: rgba(38, 25, 12, .22);
}

body.theme-b {
  --bg: #171310;
  --bg-deep: #100d0b;
  --ink: #ece3d6;
  --ink-soft: rgba(236, 227, 214, .6);
  --line: rgba(232, 220, 200, .14);
  --line-strong: rgba(232, 220, 200, .27);
  --accent: #c0915f;
  --accent-soft: rgba(192, 145, 95, .16);
  --on-accent: #171310;
  --veil: #15110e;
  --shadow-deep: rgba(0, 0, 0, .7);
  --panel-card: #221b15;
  --panel-deep: #1a1511;
  --panel-line-soft: rgba(232, 220, 200, .12);
  --spot-glow: rgba(192, 145, 95, .18);
  --backdrop: rgba(0, 0, 0, .55);
}

/* ---------- 背景氛围 ---------- */
.site {
  position: relative;
  height: var(--app-h);
  overflow: hidden;
}

.ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__glow {
  position: absolute;
  inset: 0;
  transition: opacity 1.1s var(--ease-soft);
}

.ambient__glow--a {
  background:
    radial-gradient(62% 72% at 82% -8%, rgba(255, 249, 235, .95), transparent 62%),
    radial-gradient(48% 58% at 6% 106%, rgba(181, 142, 88, .16), transparent 70%),
    linear-gradient(158deg, #f9f4ea 0%, #f4ecdf 48%, #ece0cd 100%);
}

.ambient__glow--b {
  opacity: 0;
  background:
    radial-gradient(58% 68% at 16% 4%, rgba(146, 101, 60, .3), transparent 64%),
    radial-gradient(42% 52% at 94% 92%, rgba(103, 72, 45, .24), transparent 70%),
    linear-gradient(164deg, #1e1814 0%, #16120f 54%, #100d0b 100%);
}

.theme-b .ambient__glow--a { opacity: 0; }
.theme-b .ambient__glow--b { opacity: 1; }

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
}

.theme-b .ambient__grain { opacity: .05; mix-blend-mode: screen; }

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 18vw rgba(44, 28, 12, .1);
}

.theme-b .ambient::after {
  box-shadow: inset 0 0 20vw rgba(0, 0, 0, .55);
}

/* ---------- 视图切换 ---------- */
.view {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .6s var(--ease-soft), visibility .6s;
}

.view.is-current { opacity: 1; visibility: visible; pointer-events: auto; }
/* 非当前视图不仅隐藏，也不能再接收点击（避免书页热点覆盖在封面上层） */
.view:not(.is-current),
.view:not(.is-current) * { pointer-events: none !important; }

/* ---------- 品牌 ---------- */
.brand { display: inline-flex; width: max-content; color: var(--ink); }

.brand--cover {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.brand--cover .brand__logo {
  display: block;
  height: clamp(40px, 5.4vh, 54px);
  width: auto;
}
.brand--cover .brand__company {
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: .24em;
  opacity: .68;
  white-space: nowrap;
}

.brand--sm {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.brand--sm .brand__mark {
  display: block;
  height: 27px;
  width: auto;
  flex: 0 0 auto;
}
.brand__wrap { display: flex; flex-direction: column; gap: 4px; }
.brand--sm .brand__cn {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--ink);
}
.brand--sm .brand__en {
  font-size: 6.5px;
  letter-spacing: .3em;
  line-height: 1;
  color: var(--ink);
  opacity: .42;
  white-space: nowrap;
}

/* ---------- 载入遮罩 ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  background: #171310;
  color: #efe6d9;
  transition: opacity .9s var(--ease-soft), visibility .9s;
}

.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.boot__inner { text-align: center; transform: translateY(-8px); }
.boot__logo {
  display: block;
  height: clamp(58px, 8.6vh, 96px);
  width: auto;
  margin: 0 auto 20px;
  opacity: .96;
}
.boot__company {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .34em;
  text-indent: .34em;
  opacity: .8;
  margin-bottom: 6px;
}
.boot__line {
  display: block;
  width: 132px;
  height: 1px;
  margin: 26px auto;
  background: rgba(239, 230, 217, .16);
  overflow: hidden;
}
.boot__line i {
  display: block;
  width: 42%;
  height: 1px;
  background: #c79a66;
  animation: bootLine 1.35s var(--ease-soft) infinite;
}
.boot__sub { font-size: 9px; letter-spacing: .34em; opacity: .48; }

@keyframes bootLine {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(340%); }
}

/* ---------- 过渡遮罩 / 提示 ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: var(--veil);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .42s var(--ease-soft), visibility .42s;
}
.veil.is-on { opacity: 1; visibility: visible; pointer-events: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(30px + env(safe-area-inset-bottom));
  z-index: 190;
  transform: translate(-50%, 12px);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  letter-spacing: .2em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s var(--ease-soft), transform .4s var(--ease-soft), visibility .4s;
}
.toast.is-on { opacity: .92; visibility: visible; transform: translate(-50%, 0); }

/* ============================================================
   封面
   ============================================================ */
.view--cover {
  padding: clamp(18px, 3vh, 30px) clamp(18px, 3.4vw, 50px) clamp(14px, 2.2vh, 20px);
}

.cover-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 2px clamp(14px, 2.2vh, 20px);
  border-bottom: 1px solid var(--line);
}

.cover-head__tagline {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .56em;
  text-indent: .56em;
  color: var(--ink);
  opacity: .58;
  white-space: nowrap;
}

.cover-head__meta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--ink);
}
.cover-head__series { opacity: .6; white-space: nowrap; }

.pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 8px;
  letter-spacing: .24em;
  opacity: .7;
  white-space: nowrap;
}

.cover-panels {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.3vw, 18px);
  padding: clamp(12px, 2.2vh, 24px) 0 clamp(10px, 1.6vh, 16px);
}

/* 版本面板 */
.version-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: block;
  border: 1px solid var(--panel-line);
  border-radius: 2px;
  background: var(--panel-bg);
  color: var(--panel-ink);
  cursor: pointer;
  transition: transform .9s var(--ease-lux), box-shadow .9s var(--ease-lux), border-color .6s;
}

.version-panel--a {
  --panel-ink: #2f271c;
  --panel-soft: rgba(47, 39, 28, .6);
  --panel-line: rgba(122, 92, 48, .22);
  --panel-accent: #a87c45;
  --panel-bg: radial-gradient(120% 95% at 80% 0%, #fcf8f0 0%, #f5edde 46%, #e9dcc6 100%);
}

.version-panel--b {
  --panel-ink: #f0e8db;
  --panel-soft: rgba(240, 232, 219, .58);
  --panel-line: rgba(205, 165, 118, .2);
  --panel-accent: #c79a66;
  --panel-bg: radial-gradient(125% 105% at 18% 0%, #2b241e 0%, #1b1612 48%, #14100d 100%);
}

.version-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .5;
  pointer-events: none;
  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='.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: multiply;
}
.version-panel--b::before { mix-blend-mode: screen; opacity: .35; }

.version-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s var(--ease-soft);
  background: radial-gradient(560px circle at var(--gx, 72%) var(--gy, 42%), rgba(255, 250, 240, .5), transparent 64%);
}
.version-panel--b::after {
  background: radial-gradient(560px circle at var(--gx, 30%) var(--gy, 46%), rgba(207, 160, 104, .2), transparent 66%);
}
.version-panel:hover::after,
.version-panel:focus-visible::after { opacity: 1; }

.version-panel:hover,
.version-panel:focus-visible {
  transform: translateY(-2px);
  border-color: var(--panel-accent);
  box-shadow: 0 36px 70px -46px rgba(34, 22, 10, .6);
  outline: none;
}
.version-panel:focus-visible { outline: 1px solid var(--panel-accent); outline-offset: -7px; }

.version-panel__watermark {
  position: absolute;
  left: 1.5%;
  top: 5%;
  z-index: 0;
  font-family: var(--font-serif);
  font-size: clamp(180px, min(36vh, 42vw), 390px);
  line-height: .8;
  letter-spacing: -.04em;
  color: var(--panel-accent);
  opacity: .055;
  pointer-events: none;
  user-select: none;
}
.version-panel--b .version-panel__watermark { opacity: .07; }

/* 内嵌细线画框 */
.version-panel__frame {
  position: absolute;
  inset: clamp(10px, 1.15vw, 16px);
  z-index: 1;
  border: 1px solid var(--panel-line);
  opacity: .65;
  pointer-events: none;
}

.version-panel__top {
  position: absolute;
  top: clamp(16px, 2.6vh, 26px);
  left: clamp(20px, 2.7vw, 36px);
  right: clamp(20px, 2.7vw, 36px);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 8px;
  letter-spacing: .32em;
  opacity: .5;
}
.version-panel__en { white-space: nowrap; }

.version-panel__door {
  position: absolute;
  top: 47%;
  right: clamp(2%, 5.4vw, 9%);
  z-index: 2;
  height: 76%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: transform 1.15s var(--ease-lux);
}

.version-panel__door .door-main {
  position: relative;
  z-index: 2;
  height: 100%;
  width: auto;
  filter: drop-shadow(0 28px 30px rgba(35, 22, 10, .22));
  user-select: none;
  transition: transform 1.15s var(--ease-lux);
}
.version-panel--b .door-main { filter: drop-shadow(0 34px 36px rgba(0, 0, 0, .55)); }

.version-panel:hover .version-panel__door,
.version-panel:focus-visible .version-panel__door { transform: translateY(-52.5%); }

.door-glow {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 226, .8), transparent 62%);
  opacity: 0;
  transition: opacity 1s var(--ease-soft);
  pointer-events: none;
  z-index: 1;
}
.version-panel--b .door-glow {
  background: radial-gradient(circle, rgba(199, 154, 102, .28), transparent 64%);
}
.version-panel:hover .door-glow,
.version-panel:focus-visible .door-glow { opacity: 1; }

.door-shadow {
  position: absolute;
  left: 50%;
  bottom: 1%;
  width: 74%;
  height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(30, 18, 8, .34), transparent 70%);
  filter: blur(5px);
  z-index: 0;
  pointer-events: none;
}
.version-panel--b .door-shadow { background: radial-gradient(ellipse at center, rgba(0, 0, 0, .6), transparent 70%); }

.door-reflect {
  position: absolute;
  top: 99.2%;
  left: 0;
  width: 100%;
  height: auto;
  transform: scaleY(-1);
  opacity: .09;
  filter: blur(2px);
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 58%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 58%);
}
.version-panel--b .door-reflect { opacity: .075; }

.version-panel__info {
  position: absolute;
  left: clamp(22px, 3vw, 40px);
  bottom: clamp(22px, 4.2vh, 44px);
  z-index: 4;
  max-width: min(46%, 350px);
}

.version-panel__rule {
  display: block;
  width: 38px;
  height: 1px;
  margin-bottom: clamp(14px, 2.4vh, 22px);
  background: var(--panel-accent);
  opacity: .85;
  transform-origin: left center;
  transition: width .8s var(--ease-lux);
}
.version-panel:hover .version-panel__rule { width: 58px; }

.version-panel__title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.1vw, 47px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: .07em;
  margin-bottom: clamp(10px, 1.8vh, 14px);
}

.version-panel__desc {
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--panel-soft);
  margin-bottom: clamp(14px, 2.4vh, 20px);
}

.version-panel__copy {
  font-size: 12.5px;
  line-height: 2.15;
  letter-spacing: .05em;
  color: var(--panel-soft);
  margin-bottom: clamp(18px, 3.2vh, 30px);
  max-width: none;
}

.enter-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .28em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-line);
  color: var(--panel-ink);
  transition: color .5s, border-color .5s;
}
.enter-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  transition: transform .5s var(--ease-lux);
}
.version-panel:hover .enter-link { color: var(--panel-accent); border-color: var(--panel-accent); }
.version-panel:hover .enter-link svg { transform: translateX(5px); }

.cover-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: clamp(12px, 1.8vh, 17px);
  border-top: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: .24em;
  color: var(--ink);
  opacity: .52;
}
.cover-foot__hint { justify-self: start; }
.cover-foot__contact { justify-self: center; font-size: 8px; letter-spacing: .24em; opacity: .6; }
.cover-foot__copy { justify-self: end; }

/* 封面入场 */
body.is-ready .cover-head { animation: coverHeadIn 1s var(--ease-lux) .05s backwards; }
body.is-ready .version-panel--a { animation: panelIn 1.15s var(--ease-lux) .12s backwards; }
body.is-ready .version-panel--b { animation: panelIn 1.15s var(--ease-lux) .24s backwards; }
body.is-ready .cover-foot { animation: fadeIn 1.2s var(--ease-soft) .5s backwards; }
body.is-ready .version-panel--a .version-panel__door { animation: doorIn 1.5s var(--ease-lux) .3s backwards; }
body.is-ready .version-panel--b .version-panel__door { animation: doorIn 1.5s var(--ease-lux) .44s backwards; }

@keyframes coverHeadIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes doorIn {
  from { opacity: 0; transform: translateY(calc(-50% + 34px)); }
  to { opacity: 1; transform: translateY(-50%); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   图册
   ============================================================ */
.view--catalog { z-index: 3; }

.catalog-bar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(10px, 1.7vh, 15px) clamp(18px, 3vw, 44px);
}

.catalog-bar__center {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9px;
  letter-spacing: .26em;
  color: var(--ink);
  white-space: nowrap;
}
.catalog-bar__family {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: .34em;
  opacity: .95;
}
.hairline { display: block; width: 26px; height: 1px; background: currentColor; opacity: .28; }
.catalog-bar__version { opacity: .65; }
.catalog-bar__year { opacity: .32; letter-spacing: .2em; }

.catalog-bar__actions { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.switch button {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 8.5px;
  letter-spacing: .16em;
  color: var(--ink);
  opacity: .48;
  white-space: nowrap;
  transition: opacity .4s, background .4s, color .4s;
}
.switch button:hover { opacity: .82; }
.switch button.is-on { opacity: 1; background: var(--accent); color: var(--on-accent); }

.text-btn {
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--ink);
  opacity: .55;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: opacity .4s, border-color .4s;
}
.text-btn:hover { opacity: 1; border-color: var(--ink); }

/* 书页容器 */
.flipbook {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  will-change: transform;
  transition: transform .5s var(--ease-soft);
}

/* 到头 / 到底的轻回弹 */
.flipbook.is-bounce-up { animation: bookBounceUp .65s var(--ease-soft); }
.flipbook.is-bounce-down { animation: bookBounceDown .65s var(--ease-soft); }

@keyframes bookBounceUp {
  0%, 100% { transform: translate3d(0, 0, 0); }
  38% { transform: translate3d(0, -10px, 0); }
}
@keyframes bookBounceDown {
  0%, 100% { transform: translate3d(0, 0, 0); }
  38% { transform: translate3d(0, 10px, 0); }
}

.book-page {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(46px, 6.2vh, 62px) clamp(10px, 2vw, 28px) clamp(58px, 8.6vh, 84px);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 9vh, 0) scale(.988);
  filter: blur(8px);
  pointer-events: none;
  transition:
    opacity .8s var(--ease-soft),
    transform 1.06s var(--ease-flip),
    filter .9s var(--ease-soft);
}
.book-page.from-above { transform: translate3d(0, -9vh, 0) scale(.988); }

.book-page.is-active {
  z-index: 3;
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.book-page.is-leaving-up {
  z-index: 2;
  visibility: visible;
  opacity: 0;
  transform: translate3d(0, -13vh, 0) scale(.955);
  filter: blur(11px);
  transition-duration: .88s, .95s, .9s;
}
.book-page.is-leaving-down {
  z-index: 2;
  visibility: visible;
  opacity: 0;
  transform: translate3d(0, 13vh, 0) scale(.955);
  filter: blur(11px);
  transition-duration: .88s, .95s, .9s;
}

.is-fast-flip .book-page { transition-duration: .66s; }
.is-fast-flip .book-page.is-leaving-up,
.is-fast-flip .book-page.is-leaving-down { transition-duration: .6s, .66s, .62s; }

.plate {
  position: relative;
  display: inline-block;
  max-width: 100%;
  transform-origin: center 55%;
  cursor: default;
}
.book-page.is-active .plate { animation: plateIn 1.5s var(--ease-lux) .02s backwards; }

@keyframes plateIn {
  0% { opacity: 0; transform: translateY(26px) scale(.992); }
  40% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

.plate > picture img {
  display: block;
  width: min(96vw, calc((var(--app-h) - 150px) * var(--spread-ratio)));
  height: auto;
  max-height: calc(var(--app-h) - 150px);
  object-fit: contain;
  background: #fff;
  outline: 1px solid rgba(110, 80, 45, .13);
  outline-offset: -1px;
  box-shadow:
    0 46px 90px -36px rgba(45, 28, 12, .5),
    0 12px 30px rgba(45, 28, 12, .13);
}

/* 竖屏单页模式：一屏显示一页（左右页拆开） */
body.is-single .book-page {
  padding: clamp(56px, 8vh, 84px) 2vw clamp(88px, 12vh, 116px);
}
body.is-single .plate > picture img {
  width: min(96vw, calc((var(--app-h) - 196px) * var(--single-ratio)));
  max-height: calc(var(--app-h) - 196px);
  box-shadow:
    0 38px 74px -32px rgba(45, 28, 12, .46),
    0 10px 24px rgba(45, 28, 12, .12);
}
body.is-single.theme-b .plate > picture img {
  box-shadow: 0 48px 96px -38px rgba(0, 0, 0, .9), 0 0 0 1px rgba(232, 215, 190, .06);
}

/* 当前页背景大页码 */
.catalog-ghost {
  position: absolute;
  left: clamp(24px, 5vw, 90px);
  bottom: 15vh;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(120px, 19vh, 230px);
  line-height: .8;
  letter-spacing: -.02em;
  color: var(--accent);
  opacity: .055;
  pointer-events: none;
  user-select: none;
  transition: opacity .8s var(--ease-soft), transform 1s var(--ease-lux);
}
.theme-b .catalog-ghost { opacity: .07; }
body.is-single .catalog-ghost { display: none; }

.theme-b .plate > picture img {
  outline-color: rgba(232, 215, 190, .07);
  box-shadow:
    0 60px 120px -44px rgba(0, 0, 0, .92),
    0 0 0 1px rgba(232, 215, 190, .06);
}

/* 右侧页码 */
.page-rail {
  position: absolute;
  top: 50%;
  right: clamp(16px, 2.4vw, 34px);
  z-index: 40;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  max-height: calc(100dvh - 240px);
  overflow-y: auto;
  pointer-events: auto;
  scrollbar-width: none;
  padding: 6px 0;
}
.page-rail::-webkit-scrollbar { display: none; }
.rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  opacity: .3;
  transition: opacity .45s;
}
.rail-item:hover { opacity: .65; }
.rail-num {
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: .08em;
  transition: color .45s;
}
.rail-tick {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: width .55s var(--ease-lux), background .45s;
}
.rail-item.is-on { opacity: 1; }
.rail-item.is-on .rail-tick { width: 38px; background: var(--accent); }
.rail-item.is-on .rail-num { color: var(--accent); }

.catalog-brand {
  position: absolute;
  left: clamp(22px, 2.8vw, 44px);
  top: 50%;
  z-index: 35;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: clamp(116px, 9.6vw, 162px);
  color: var(--ink);
  pointer-events: none;
  user-select: none;
}
.catalog-brand__mark {
  display: block;
  align-self: flex-start;
  height: clamp(34px, 4.2vh, 48px);
  width: auto;
  margin-bottom: 15px;
  opacity: .9;
}
.catalog-brand__cn {
  font-family: var(--font-serif);
  font-size: 9.5px;
  letter-spacing: .12em;
  line-height: 1.9;
  opacity: .68;
}
.catalog-brand__en {
  margin-top: 5px;
  font-size: 6.5px;
  letter-spacing: .34em;
  opacity: .38;
}
.catalog-brand__copy {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  line-height: 2.15;
  letter-spacing: .1em;
  opacity: .42;
  white-space: nowrap;
}
.catalog-motto {
  position: absolute;
  right: clamp(22px, 2.8vw, 44px);
  top: 19%;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  width: clamp(120px, 10vw, 170px);
  text-align: right;
  color: var(--ink);
  pointer-events: none;
  user-select: none;
}
.catalog-motto__line {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: .55;
}
.catalog-motto__copy {
  font-family: var(--font-serif);
  font-size: 9.5px;
  line-height: 2;
  letter-spacing: .18em;
  opacity: .42;
  white-space: nowrap;
}
.catalog-motto__en {
  font-size: 6.5px;
  line-height: 1.8;
  letter-spacing: .26em;
  opacity: .28;
  white-space: nowrap;
}
@media (max-width: 1260px) {
  .catalog-brand,
  .catalog-motto { display: none; }
}
body.is-single .catalog-brand,
body.is-single .catalog-motto { display: none; }

.catalog-foot {
  position: absolute;
  left: clamp(18px, 3.6vw, 52px);
  right: clamp(18px, 3.6vw, 52px);
  bottom: clamp(12px, 2.1vh, 20px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 34px);
  pointer-events: none;
}
.catalog-foot button { pointer-events: auto; }

.book-caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.book-caption__page {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.9vw, 27px);
  letter-spacing: .08em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.book-caption__page span {
  font-family: var(--font-sans);
  font-size: .38em;
  letter-spacing: .26em;
  opacity: .45;
}
.book-caption__page strong { font-weight: 400; }

.book-caption__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--ink);
  opacity: .55;
}
.book-caption__meta .dot { opacity: .5; }
.craft {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: .13em;
  opacity: .9;
  white-space: nowrap;
}

.hotspot-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto;
  font-size: 8.5px;
  letter-spacing: .18em;
  color: var(--ink);
  opacity: .42;
  white-space: nowrap;
}
.hotspot-hint__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: hotDot 2.8s var(--ease-soft) infinite;
}
@keyframes hotDot {
  0%, 100% { opacity: .35; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1); }
}

.book-caption.swap-in .book-caption__page { animation: captionIn .75s var(--ease-lux) both; }
.book-caption.swap-in .book-caption__meta { animation: captionIn .75s var(--ease-lux) .08s both; }
@keyframes captionIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.catalog-foot__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}
.catalog-contact { pointer-events: auto; }
.catalog-contact:hover { opacity: 1; }
.page-jump-btn { pointer-events: auto; }
.page-jump-btn:hover { opacity: 1; }
@media (min-width: 900px) {
  .catalog-foot__right > .page-jump-btn,
  .catalog-foot__right > .catalog-contact { transform: translateY(12px); }
}

/* 跳页 */
.page-jump-backdrop {
  position: fixed;
  inset: 0;
  z-index: 192;
  background: rgba(15, 11, 8, .58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease-soft), visibility .35s;
}
body.page-jump-open .page-jump-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.page-jump {
  position: fixed;
  inset: 0;
  z-index: 193;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease-soft), visibility .35s;
}
.page-jump.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.page-jump__panel {
  position: relative;
  width: min(430px, 92vw);
  padding: 30px 28px 24px;
  background: var(--panel-card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 32px 80px -35px rgba(0, 0, 0, .65);
}
.page-jump__panel .drawer__close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.page-jump__eyebrow {
  font-size: 8px;
  letter-spacing: .26em;
  opacity: .42;
  margin-bottom: 9px;
}
.page-jump__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .1em;
}
.page-jump__hint {
  margin-top: 9px;
  font-size: 9px;
  letter-spacing: .08em;
  opacity: .48;
}
.page-jump__input {
  width: 100%;
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: .06em;
  outline: none;
}
.page-jump__input:focus { border-color: var(--accent); background: var(--accent-soft); }
.page-jump__error {
  min-height: 15px;
  margin-top: 7px;
  color: #b0503c;
  font-size: 8px;
  letter-spacing: .06em;
}
.page-jump__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.page-jump__actions .btn { padding: 10px 20px; }

.zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--ink);
  opacity: .55;
  transition: opacity .4s, color .4s;
  pointer-events: auto;
}
.zoom-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
}
.zoom-btn:hover { opacity: 1; color: var(--accent); }

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8.5px;
  letter-spacing: .24em;
  color: var(--ink);
  opacity: .4;
}
.scroll-hint__chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  animation: chevronFloat 2.6s var(--ease-soft) infinite;
}
@keyframes chevronFloat {
  0%, 100% { transform: translateY(-2px); opacity: .45; }
  50% { transform: translateY(3px); opacity: 1; }
}
.scroll-hint__touch { display: none; }
@media (hover: none) {
  .scroll-hint__desktop { display: none; }
  .scroll-hint__touch { display: inline; }
}

.mobile-dots { display: none; }

.mobile-page-hint {
  display: none;
  position: absolute;
  top: 82px;
  left: 50%;
  z-index: 41;
  transform: translateX(-50%);
  margin: 0;
  font-size: 8px;
  letter-spacing: .2em;
  color: var(--ink);
  opacity: .38;
  white-space: nowrap;
  pointer-events: none;
}
.mobile-page-hint__dot { margin: 0 8px; opacity: .6; }

/* ============================================================
   预览结束
   ============================================================ */
.view--end { z-index: 4; padding: clamp(18px, 3vh, 30px) clamp(20px, 4.2vw, 60px) clamp(14px, 2.2vh, 20px); }

.end-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: clamp(14px, 2.2vh, 20px);
  border-bottom: 1px solid var(--line);
}
.end-head__label { font-size: 8px; letter-spacing: .34em; color: var(--ink); opacity: .45; }

.end-main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(20px, 4vh, 48px) 0;
  min-height: 0;
}

.end-eyebrow {
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--ink);
  opacity: .5;
  margin-bottom: clamp(18px, 3vh, 28px);
}

.end-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: .08em;
  margin-bottom: clamp(20px, 3.2vh, 30px);
}

.end-text {
  font-size: 12.5px;
  line-height: 2.25;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin-bottom: clamp(24px, 4vh, 38px);
}

.end-roadmap {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 460px;
  padding: 22px 0 0;
  margin-bottom: clamp(24px, 4vh, 38px);
  border-top: 1px solid var(--line);
}
.end-roadmap li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink);
  opacity: .66;
}
.end-roadmap li span {
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--accent);
  opacity: .95;
}

.end-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: .26em;
  color: var(--ink);
  transition: border-color .5s, background .5s, color .5s, transform .5s;
}
.btn:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.end-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(54vh, 480px);
}
.end-visual__halo {
  position: absolute;
  width: min(58%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 66%);
  filter: blur(6px);
}
.end-visual__frame {
  position: absolute;
  width: min(64%, 330px);
  aspect-ratio: .6;
  border: 1px solid var(--line-strong);
}
.end-visual img {
  position: relative;
  z-index: 1;
  height: min(52vh, 500px);
  width: auto;
  filter: drop-shadow(0 34px 42px rgba(30, 18, 8, .24));
}
.theme-b .end-visual img { filter: drop-shadow(0 36px 48px rgba(0, 0, 0, .6)); }
.end-visual__seed {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  letter-spacing: .6em;
  color: var(--ink);
  opacity: .28;
  white-space: nowrap;
}

.end-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(12px, 1.8vh, 17px);
  border-top: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: .22em;
  color: var(--ink);
  opacity: .45;
}
.end-foot__company {
  white-space: nowrap;
  letter-spacing: .16em;
  opacity: .9;
}
.end-foot__link {
  border-bottom: 1px solid transparent;
  transition: border-color .4s, opacity .4s;
  opacity: .9;
}
.end-foot__link:hover { border-color: var(--accent); }

/* ============================================================
   大图查看
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 100% at 50% 0%, #14110e 0%, #0b0907 62%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s var(--ease-soft), visibility .45s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.lightbox__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(14px, 2.4vh, 22px) clamp(18px, 3vw, 34px);
  color: #efe6d9;
  font-size: 9px;
  letter-spacing: .26em;
}
.lightbox__close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(239, 230, 217, .25);
  border-radius: 50%;
  color: #efe6d9;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: border-color .4s, background .4s;
}
.lightbox__close:hover { border-color: rgba(239, 230, 217, .6); background: rgba(239, 230, 217, .08); }

.lightbox__scroll {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 22px 20px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.lightbox__scroll img {
  width: min(1600px, calc((var(--app-h) - 150px) * var(--spread-ratio)));
  max-width: none;
  height: auto;
  background: #fff;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
}
.lightbox__hint {
  flex: 0 0 auto;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  text-align: center;
  color: rgba(239, 230, 217, .45);
  font-size: 8px;
  letter-spacing: .26em;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .version-panel__copy { display: none; }
  .version-panel__info { max-width: min(50%, 320px); }
  .version-panel__door { height: 70%; }
}

@media (max-width: 960px) {
  .cover-head { grid-template-columns: 1fr auto; }
  .cover-head__tagline { display: none; }
  .cover-head__series { display: none; }
  .catalog-bar__center { display: none; }
}

/* ---- 平板 / 手机 ---- */
@media (max-width: 820px) {
  .view--cover { padding: 16px 16px calc(12px + env(safe-area-inset-bottom)); }

  .cover-head { padding-bottom: 12px; }
  .cover-head__meta { gap: 10px; }
  .pill { padding: 4px 9px; font-size: 7px; letter-spacing: .2em; }
  .brand--cover .brand__logo { height: 34px; }
  .brand--cover .brand__company { font-size: 8px; letter-spacing: .16em; }

  .cover-panels {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    padding: 12px 0 10px;
  }

  .version-panel__watermark { font-size: 34vh; right: -4%; bottom: -18%; }
  .version-panel__top {
    top: 14px;
    left: 18px;
    right: 18px;
    font-size: 7px;
    letter-spacing: .24em;
  }
  .version-panel__door { height: 86%; top: 46%; right: 3%; }
  .version-panel__info {
    left: 18px;
    bottom: 16px;
    max-width: 58%;
  }
  .version-panel__rule { width: 26px; margin-bottom: 10px; }
  .version-panel__title { font-size: 24px; margin-bottom: 8px; }
  .version-panel__desc { font-size: 8px; letter-spacing: .18em; margin-bottom: 12px; }
  .version-panel__copy { display: none; }
  .enter-link { font-size: 8px; letter-spacing: .22em; padding-bottom: 6px; gap: 8px; }
  .enter-link svg { width: 13px; height: 13px; }
  .door-shadow { height: 16px; }

  .cover-foot { font-size: 7px; letter-spacing: .18em; padding-top: 10px; }
  .cover-foot__copy { display: none; }

  /* ---- 图册 ---- */
  .catalog-bar { padding: 13px 16px; gap: 10px; }
  .brand--sm .brand__mark { height: 20px; }
  .brand--sm .brand__cn { font-size: 10.5px; letter-spacing: .01em; }
  .brand--sm .brand__en { display: none; }
  .catalog-bar__actions { gap: 8px; }
  .switch { padding: 2px; }
  .switch button { padding: 6px 9px; font-size: 7.5px; letter-spacing: .12em; }
  .text-btn { font-size: 8px; letter-spacing: .18em; }

  .book-page {
    padding: calc(64px) 0 calc(118px);
  }
  .plate > picture img {
    width: min(94vw, calc((var(--app-h) - 280px) * var(--spread-ratio)));
    max-height: calc(var(--app-h) - 280px);
    box-shadow:
      0 30px 60px -28px rgba(45, 28, 12, .46),
      0 8px 20px rgba(45, 28, 12, .12);
  }

  .page-rail, .catalog-side { display: none; }

  .catalog-foot {
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    align-items: flex-end;
    gap: 12px;
  }
  .book-caption__page { font-size: 19px; gap: 7px; }
  .book-caption__meta { gap: 7px; margin-top: 8px; font-size: 8px; letter-spacing: .14em; }
  .craft { font-size: 7px; padding: 3px 7px; }
  .catalog-foot__right { gap: 0; }
  .scroll-hint { display: none; }
  .zoom-btn span { display: none; }
  .zoom-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    opacity: .7;
  }
  .zoom-btn svg { width: 15px; height: 15px; }

  .mobile-dots {
    display: flex;
    position: absolute;
    top: 56px;
    left: 50%;
    z-index: 41;
    transform: translateX(-50%);
    gap: 6px;
    align-items: center;
  }
  .mobile-dots.is-progress {
    display: block;
    width: min(240px, 58vw);
    height: 2px;
    overflow: hidden;
    background: rgba(120, 90, 55, .18);
    border-radius: 2px;
  }
  .mobile-dots__fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
    transition: width .35s var(--ease-lux);
  }
  .mobile-dots i {
    display: block;
    width: 14px;
    height: 2px;
    background: var(--ink);
    opacity: .2;
    transition: width .5s var(--ease-lux), opacity .4s, background .4s;
  }
  .mobile-dots i.is-on { width: 26px; opacity: .95; background: var(--accent); }

  .mobile-page-hint { display: block; }

  .toast {
    bottom: calc(86px + env(safe-area-inset-bottom));
    font-size: 9px;
    letter-spacing: .16em;
  }

  /* ---- 结束页 ---- */
  .view--end { padding: 16px 18px calc(14px + env(safe-area-inset-bottom)); }
  .end-main {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 22px 0 10px;
    align-content: center;
  }
  .end-title { font-size: clamp(30px, 8vw, 40px); margin-bottom: 16px; }
  .end-eyebrow { margin-bottom: 16px; }
  .end-text { font-size: 11px; line-height: 2.1; margin-bottom: 20px; }
  .end-roadmap { padding-top: 16px; gap: 10px; margin-bottom: 22px; }
  .end-roadmap li { font-size: 9px; letter-spacing: .14em; }
  .end-visual { display: none; }
  .end-actions .btn { padding: 12px 20px; font-size: 8.5px; letter-spacing: .2em; }
  .end-foot { font-size: 7px; letter-spacing: .16em; }
  .end-foot__hint { max-width: 55%; }
  .end-foot__company { display: none; }

  /* ---- 大图 ---- */
  .lightbox__scroll { justify-content: flex-start; padding: 0 14px 16px; }
  .lightbox__scroll img { width: 1500px; }
}

@media (max-width: 480px) {
  .version-panel__door { height: 80%; right: 2%; }
  .version-panel__info { max-width: 62%; }
  .version-panel__title { font-size: 22px; }
  .cover-foot__hint { letter-spacing: .14em; }
}

/* 横屏手机 / 矮屏 */
@media (max-height: 620px) and (orientation: landscape) {
  .view--cover { padding: 12px 18px 10px; }
  .cover-head { padding-bottom: 8px; }
  .cover-panels {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    padding: 8px 0;
    gap: 10px;
  }
  .version-panel__info { bottom: 14px; left: 18px; max-width: 52%; }
  .version-panel__title { font-size: 22px; margin-bottom: 6px; }
  .version-panel__desc { margin-bottom: 8px; }
  .version-panel__copy { display: none; }
  .version-panel__door { height: 84%; top: 48%; }
  .version-panel__en { display: none; }
  .cover-foot { padding-top: 8px; }
  .book-page { padding: 54px 70px 76px; }
  .plate > picture img {
    width: min(64vw, calc((var(--app-h) - 150px) * var(--spread-ratio)));
    max-height: calc(var(--app-h) - 150px);
    box-shadow: 0 26px 50px -26px rgba(45, 28, 12, .46);
  }
  .catalog-foot { bottom: 10px; }
  .book-caption__page { font-size: 17px; }
  .page-rail { gap: 12px; }
  .catalog-side { display: none; }
  .mobile-page-hint { display: none; }

  .view--end { padding: 12px 22px 10px; }
  .end-main { padding: 10px 0; gap: 30px; }
  .end-eyebrow { margin-bottom: 10px; }
  .end-title { font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 12px; }
  .end-text { font-size: 10.5px; line-height: 1.9; margin-bottom: 14px; }
  .end-roadmap { display: none; }
  .end-actions .btn { padding: 10px 20px; font-size: 8px; }
  .end-visual { min-height: 40vh; }
  .end-visual img { height: min(46vh, 250px); }
  .end-visual__frame { width: min(38%, 180px); }
  .end-foot { padding-top: 8px; }
}

/* 矮屏手机（竖屏） */
@media (max-width: 820px) and (max-height: 700px) {
  .version-panel__door { height: 78%; }
  .version-panel__desc { display: none; }
  .end-roadmap { display: none; }
}

/* ---------- 减弱动效 ---------- */
/* ============================================================
   书页门型热点
   ============================================================ */
.plate picture { display: block; }

/* ---------- 书页内的品牌内容 ---------- */
.page-brand-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  container-type: inline-size;
}

.page-brand {
  position: absolute;
  display: flex;
  color: #473a2b;
  font-family: var(--font-sans);
}

.page-brand__mark {
  display: block;
  height: 30px;
  height: max(14px, 3.3cqw);
  width: auto;
  flex: 0 0 auto;
}

.page-brand--large {
  flex-direction: column;
  align-items: flex-start;
}
.page-brand--large .page-brand__mark {
  margin-bottom: 12px;
  margin-bottom: 1.15cqw;
  height: 34px;
  height: max(16px, 3.9cqw);
}
.page-brand--large .page-brand__cn {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 13px;
  font-size: max(8px, 1.4cqw);
  letter-spacing: .08em;
  line-height: 1.5;
  color: #463828;
  white-space: nowrap;
}
.page-brand--large .page-brand__en {
  margin: 4px 0 0;
  margin: .35cqw 0 0;
  font-size: 6.5px;
  font-size: max(4.8px, .58cqw);
  letter-spacing: .28em;
  line-height: 1.2;
  color: #8a7256;
  opacity: .85;
}
.page-brand__rule {
  display: block;
  width: 26px;
  width: 2.4cqw;
  height: 1px;
  margin: 13px 0 11px;
  margin: 1.15cqw 0 .95cqw;
  background: #a67c48;
  opacity: .55;
}
.page-brand--large .page-brand__copy {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 10px;
  font-size: max(7px, 1.08cqw);
  line-height: 1.95;
  letter-spacing: .04em;
  color: #5b4a36;
  opacity: .9;
}

.page-brand--line {
  flex-direction: row;
  align-items: center;
  gap: 1.1cqw;
}
.page-brand--line .page-brand__mark { margin: 0; }
.page-brand--line .page-brand__text {
  display: flex;
  flex-direction: column;
  gap: .38cqw;
  min-width: 0;
}
.page-brand--line .page-brand__cn {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 11px;
  font-size: max(7px, 1.12cqw);
  letter-spacing: .08em;
  line-height: 1.3;
  color: #463828;
  white-space: nowrap;
}
.page-brand--line .page-brand__copy {
  margin: 0;
  font-size: 8px;
  font-size: max(6px, .82cqw);
  line-height: 1.45;
  letter-spacing: .03em;
  color: #6a5741;
  opacity: .86;
  white-space: nowrap;
}

.page-brand--seal {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-brand--seal .page-brand__mark {
  height: 32px;
  height: max(16px, 3.6cqw);
  margin: 0 auto 7px;
  margin: 0 auto .55cqw;
}
.page-brand--seal .page-brand__cn {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 8.5px;
  font-size: max(6px, .88cqw);
  line-height: 1.45;
  letter-spacing: .02em;
  color: #463828;
}
.page-brand--seal .page-brand__copy {
  margin: 4px 0 0;
  margin: .35cqw 0 0;
  font-size: 7.5px;
  font-size: max(5px, .7cqw);
  line-height: 1.4;
  color: #6a5741;
  opacity: .82;
}

.hotspots {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.door-spot {
  position: absolute;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.door-spot:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* 透明单门图按模板匹配坐标精确叠在书页门上；悬停时单门放大 + 投影 */
.door-cutout {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 100%;
  transform: translateY(0) scale(1);
  filter: drop-shadow(0 0 0 rgba(30, 18, 8, 0));
  transition: opacity .14s ease .38s, transform .55s cubic-bezier(.22, .8, .22, 1), filter .55s var(--ease-soft);
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-drag: none;
}
.door-spot:hover .door-cutout,
.door-spot:focus-visible .door-cutout,
.door-spot.is-current .door-cutout {
  opacity: 1;
  transform: translateY(0) scale(1.01);
  filter:
    drop-shadow(0 20px 30px rgba(30, 18, 8, .32))
    drop-shadow(0 4px 8px rgba(30, 18, 8, .16));
  transition: opacity .12s ease 0s, transform .55s cubic-bezier(.22, .8, .22, 1), filter .55s var(--ease-soft);
}
.door-spot__tag {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: -9px;
  transform: translate(-50%, -100%) scale(.94);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: .12em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s, transform .45s var(--ease-lux);
  box-shadow: 0 10px 26px -12px rgba(30, 18, 8, .5);
}
.door-spot__tag i { font-style: normal; opacity: .7; margin-left: 4px; }
.door-spot:hover .door-spot__tag,
.door-spot:focus-visible .door-spot__tag,
.door-spot.is-current .door-spot__tag {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}
.door-spot--top .door-spot__tag {
  top: auto;
  bottom: -9px;
  transform: translate(-50%, 100%) scale(.94);
}
.door-spot--top:hover .door-spot__tag,
.door-spot--top:focus-visible .door-spot__tag,
.door-spot--top.is-current .door-spot__tag { transform: translate(-50%, 100%) scale(1); }

body.drawer-open .door-spot__tag { opacity: 0; }
body.drawer-open .door-spot.is-current .door-spot__tag { opacity: 1; }

/* ============================================================
   单门定制抽屉
   ============================================================ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 205;
  background: var(--backdrop);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .5s var(--ease-soft), visibility .5s;
}
body.drawer-open .drawer-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  width: min(452px, 94vw);
  height: var(--app-h);
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(103%, 0, 0);
  transition: transform .72s var(--ease-lux), visibility .72s;
}
.drawer.is-open { visibility: visible; pointer-events: auto; transform: translate3d(0, 0, 0); }

.drawer__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .5), transparent 60%),
    var(--panel-card);
  color: var(--ink);
  border-left: 1px solid var(--line-strong);
  box-shadow: -40px 0 90px -40px rgba(20, 12, 6, .55);
}
.theme-b .drawer__panel {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(192, 145, 95, .1), transparent 60%),
    var(--panel-card);
  box-shadow: -40px 0 100px -30px rgba(0, 0, 0, .8);
}

.drawer__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 3.4vh, 32px) 28px clamp(14px, 2.2vh, 20px);
}
.drawer__eyebrow {
  font-size: 8px;
  letter-spacing: .3em;
  opacity: .48;
  margin-bottom: 10px;
}
.drawer__model {
  font-family: var(--font-serif);
  font-size: clamp(27px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.1;
}
.drawer__sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 9px;
  font-size: 9px;
  letter-spacing: .16em;
  opacity: .55;
}
.drawer__sub i { font-style: normal; opacity: .4; }

.drawer__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
  color: var(--ink);
  transition: border-color .4s, background .4s, transform .4s;
}
.drawer__close:hover { border-color: var(--accent); background: var(--accent-soft); transform: rotate(90deg); }

.drawer__preview {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(210px, 31vh, 310px);
  margin: 0 20px;
  overflow: hidden;
  border: 1px solid var(--panel-line-soft);
  background: var(--panel-deep);
}
.drawer__preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 46%),
    radial-gradient(70% 60% at 50% 30%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.drawer__preview-glow {
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 226, .55), transparent 65%);
  filter: blur(8px);
  opacity: .7;
}
.theme-b .drawer__preview-glow { background: radial-gradient(circle, rgba(192, 145, 95, .18), transparent 65%); }
.drawer__preview-floor {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 52%;
  height: 18px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(30, 18, 8, .26), transparent 70%);
  filter: blur(6px);
}
.theme-b .drawer__preview-floor { background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), transparent 70%); }
.drawer__canvas {
  position: relative;
  z-index: 1;
  height: 92%;
  width: auto;
  max-width: 86%;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(30, 18, 8, .26));
}
.theme-b .drawer__canvas { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); }
.drawer__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  background: var(--panel-card);
  color: var(--ink);
  font-size: 7.5px;
  letter-spacing: .1em;
  opacity: .72;
  cursor: zoom-in;
  transition: opacity .3s, border-color .3s;
}
.drawer__zoom svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.drawer__zoom:hover { opacity: 1; border-color: var(--accent); }

.door-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(15, 11, 8, .68);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease-soft), visibility .35s;
}
body.door-viewer-open .door-viewer-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.door-viewer {
  position: fixed;
  inset: 0;
  z-index: 241;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease-soft), visibility .35s;
}
.door-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.door-viewer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(720px, 94vw);
  max-height: 92svh;
  padding: 54px 22px 14px;
  background: var(--panel-card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .7);
}
.door-viewer__panel .drawer__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: var(--panel-card);
}
.door-viewer__stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: min(64vh, 620px);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.door-viewer__stage:active { cursor: grabbing; }
.door-viewer__stage canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: 50% 50%;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.door-viewer__hint {
  margin-top: 8px;
  font-size: 8px;
  letter-spacing: .12em;
  opacity: .38;
}
.drawer__swatch-name {
  position: absolute;
  left: 12px;
  bottom: 11px;
  z-index: 2;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-card);
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--ink);
  opacity: .8;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 28px;
  margin-top: 4px;
}
.drawer__section {
  padding: clamp(16px, 2.4vh, 22px) 0;
  border-top: 1px solid var(--line);
}
.drawer__section:first-child { border-top: 0; }
.drawer__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.drawer__section-head h3 {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
}
.drawer__section-head span {
  font-size: 8px;
  letter-spacing: .14em;
  opacity: .42;
  text-align: right;
}

.size-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.size-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.size-field span { font-size: 8px; letter-spacing: .2em; opacity: .45; }
.size-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: .1em;
  outline: none;
  transition: border-color .4s, background .4s;
  appearance: textfield;
  -moz-appearance: textfield;
}
.size-field input::-webkit-outer-spin-button,
.size-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size-field input:focus { border-color: var(--accent); background: var(--accent-soft); }
.size-field input.is-invalid { border-color: #b0503c; }
.size-hint {
  margin-top: 10px;
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: .04em;
  opacity: .42;
}
.size-row--extra { margin-top: 10px; }
.size-field--note { flex: 1.55; }
.size-field--note input { letter-spacing: .02em; }
.size-swap {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  opacity: .6;
  transition: .4s;
}
.size-swap:hover { opacity: 1; border-color: var(--accent); color: var(--accent); }
.size-swap svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

.drawer__section--qty { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.drawer__section--qty .drawer__section-head { margin: 0; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}
.qty button {
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 16px;
  opacity: .65;
  transition: .3s;
}
.qty button:hover { opacity: 1; background: var(--accent-soft); }
.qty output {
  min-width: 34px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .1em;
}

.palette-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.palette-switch button {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 7.5px;
  letter-spacing: .06em;
  color: var(--ink);
  opacity: .5;
  white-space: nowrap;
  transition: opacity .35s, background .35s, color .35s;
}
.palette-switch button:hover { opacity: .85; }
.palette-switch button.is-on { opacity: 1; background: var(--accent); color: var(--on-accent); }

.palette-caption {
  margin-top: 9px;
  font-size: 7.5px;
  letter-spacing: .08em;
  color: var(--ink);
  opacity: .38;
}

.palette-scroll {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-height: clamp(170px, 24vh, 250px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 2px 4px;
  scrollbar-width: thin;
}
.palette-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  text-align: center;
  color: var(--ink);
}
.palette-chip__swatch {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.02;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  transition: transform .35s var(--ease-lux), border-color .35s, box-shadow .35s;
}
.palette-chip:hover .palette-chip__swatch { transform: translateY(-2px); border-color: var(--accent); }
.palette-chip__name {
  font-size: 7.5px;
  line-height: 1.3;
  letter-spacing: .02em;
  opacity: .55;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.palette-chip.is-on .palette-chip__swatch {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 10px 22px -12px rgba(30, 18, 8, .5);
}
.palette-chip.is-on .palette-chip__name { opacity: 1; color: var(--accent); }
.palette-chip.is-on .palette-chip__swatch::after {
  content: "✓";
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 9px;
  line-height: 1;
}

.drawer__foot {
  flex: 0 0 auto;
  padding: 14px 28px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--panel-card);
}
.drawer__add { width: 100%; padding: 15px 24px; }
.drawer__add.is-done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.drawer__note {
  margin-top: 10px;
  text-align: center;
  font-size: 7.5px;
  letter-spacing: .14em;
  opacity: .38;
}

/* ============================================================
   我的订单
   ============================================================ */
.orders-fab {
  position: fixed;
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(96px, 13vh, 122px);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 9px;
  letter-spacing: .18em;
  box-shadow: 0 18px 36px -18px rgba(20, 12, 6, .6);
  animation: fabIn .55s var(--ease-lux) both;
  transition: transform .4s var(--ease-lux), box-shadow .4s;
}
.orders-fab[hidden] { display: none; }
.orders-fab:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -18px rgba(20, 12, 6, .6); }
.orders-fab svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.orders-fab b {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 8px;
  font-weight: 500;
}
.orders-fab.is-pulse { animation: fabPulse .6s var(--ease-lux); }
@keyframes fabIn {
  from { opacity: 0; transform: translateY(14px) scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes fabPulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.06); }
}

.orders-backdrop {
  position: fixed;
  inset: 0;
  z-index: 225;
  background: var(--backdrop);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s var(--ease-soft), visibility .45s;
}
body.orders-open .orders-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }

.orders {
  position: fixed;
  inset: 0;
  z-index: 230;
  visibility: hidden;
  pointer-events: none;
}
.orders.is-open { visibility: visible; pointer-events: auto; }
.orders__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(560px, 100vw);
  height: 100%;
  background: var(--panel-card);
  color: var(--ink);
  border-left: 1px solid var(--line-strong);
  box-shadow: -40px 0 100px -40px rgba(20, 12, 6, .6);
  transform: translate3d(102%, 0, 0);
  transition: transform .68s var(--ease-lux);
}
.orders.is-open .orders__panel { transform: translate3d(0, 0, 0); }

.orders__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 3.4vh, 32px) 30px 18px;
  border-bottom: 1px solid var(--line);
}
.orders__eyebrow { font-size: 8px; letter-spacing: .3em; opacity: .42; margin-bottom: 9px; }
.orders__head h2 { font-family: var(--font-serif); font-size: clamp(26px, 2.4vw, 33px); font-weight: 500; letter-spacing: .1em; }

.orders__customer {
  flex: 0 0 auto;
  padding: 14px 30px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-deep);
}
.orders__customer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 9px;
  letter-spacing: .16em;
}
.orders__customer-head small { font-size: 7px; letter-spacing: .08em; opacity: .38; }
.orders__customer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.orders__customer label,
.orders__customer-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 7.5px;
  letter-spacing: .1em;
  opacity: .72;
}
.orders__customer input {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11px;
  outline: none;
  transition: border-color .3s, background .3s;
}
.orders__customer input:focus { border-color: var(--accent); background: var(--accent-soft); }
.orders__customer-note { margin-top: 8px; }

@media (max-width: 600px) {
  .orders__head { padding: 18px 20px 14px; }
  .orders__customer { padding: 12px 20px 14px; }
  .orders__customer-grid { grid-template-columns: 1fr; }
  .orders__list { padding: 8px 20px 16px; }
  .orders__foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
}

.orders__list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 30px 20px;
}
.orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  min-height: 260px;
  text-align: center;
  opacity: .5;
}
.orders-empty__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.orders-empty__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1; }
.orders-empty p { font-size: 10px; letter-spacing: .18em; line-height: 2; }

.order-item {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.order-item__thumb {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 78px;
  height: 116px;
  background: var(--panel-deep);
  border: 1px solid var(--panel-line-soft);
  overflow: hidden;
}
.order-item__thumb canvas { height: 96%; width: auto; max-width: 92%; }
.order-item__body { flex: 1; min-width: 0; }
.order-item__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.order-item__model { font-family: var(--font-serif); font-size: 17px; letter-spacing: .08em; }
.order-item__version { font-size: 7.5px; letter-spacing: .16em; opacity: .45; }
.order-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  font-size: 8.5px;
  letter-spacing: .12em;
  opacity: .6;
}
.order-item__meta b { font-weight: 400; color: var(--ink); opacity: .95; }
.order-item__note {
  width: 100%;
  font-size: 8px;
  letter-spacing: .08em;
  opacity: .58;
}
.order-item__note b { font-weight: 400; color: var(--ink); opacity: .9; }
.order-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.order-item__qty { font-size: 9px; letter-spacing: .16em; opacity: .55; }
.order-item__remove {
  font-size: 8px;
  letter-spacing: .18em;
  opacity: .45;
  border-bottom: 1px solid transparent;
  transition: .3s;
}
.order-item__remove:hover { opacity: 1; color: #a8533f; border-color: currentColor; }

.orders__foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 30px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.orders__note { font-size: 7.5px; letter-spacing: .12em; opacity: .38; }
.orders__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.orders__clear { opacity: .5; }
.orders__actions .btn { padding: 12px 20px; white-space: nowrap; }
.orders__actions .text-btn { white-space: nowrap; }
.orders__actions .btn[disabled],
.orders__actions .text-btn[disabled] { opacity: .45; cursor: wait; }

/* ============================================================
   联系门店
   ============================================================ */
.contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 186;
  background: rgba(24, 17, 11, .42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s var(--ease-soft), visibility .4s;
}
body.contact-open .contact-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.contact {
  position: fixed;
  inset: 0;
  z-index: 187;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s var(--ease-soft), visibility .4s;
}
.contact.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.contact__panel {
  --ink: #2e261c;
  --bg: #f8f2e7;
  --line: rgba(74, 55, 32, .15);
  --line-strong: rgba(74, 55, 32, .28);
  --accent: #a67c48;
  --accent-soft: rgba(166, 124, 72, .12);
  --on-accent: #fbf7ef;
  position: relative;
  width: min(820px, 92vw);
  max-height: 88vh;
  overflow: auto;
  padding: 42px 46px 32px;
  background: linear-gradient(180deg, #faf5ec 0%, #f3ebdd 100%);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--accent);
  box-shadow: 0 40px 90px -40px rgba(35, 22, 10, .55);
}
.contact__panel .drawer__close {
  position: absolute;
  top: 18px;
  right: 18px;
}
.contact__eyebrow {
  font-size: 8px;
  letter-spacing: .28em;
  opacity: .42;
  margin-bottom: 10px;
}
.contact__title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.contact__company {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .18em;
  opacity: .62;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact__label {
  font-size: 8px;
  letter-spacing: .2em;
  opacity: .45;
  margin-bottom: 9px;
}
.contact__block + .contact__block { margin-top: 24px; }
.contact__phone {
  display: block;
  width: max-content;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.7;
  letter-spacing: .05em;
  border-bottom: 1px solid transparent;
  transition: border-color .35s, opacity .35s;
}
.contact__phone:hover { border-color: var(--accent); }
.contact__people {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.contact__person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .32);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .35s, border-color .35s, transform .35s;
}
.contact__person:hover {
  background: rgba(166, 124, 72, .08);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.contact__person-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.contact__person-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--ink);
}
.contact__person-phone {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: .05em;
  line-height: 1.25;
  color: var(--ink);
}
.contact__person-call {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  letter-spacing: .16em;
  color: var(--accent);
}
.contact__person-call svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact__address {
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .04em;
  opacity: .82;
}
.contact__copy-address {
  margin-top: 10px;
  font-size: 8px;
  letter-spacing: .14em;
}
.contact__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .22);
}
.contact__qr-img {
  display: block;
  width: 208px;
  height: 208px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}
.contact__qr-img[hidden] { display: none; }
.contact__qr-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 208px;
  height: 208px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, .25);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: .12em;
  opacity: .62;
}
.contact__qr-fallback span {
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: .1em;
  opacity: .8;
}
.contact__qr-note {
  margin-top: 12px;
  font-size: 8px;
  letter-spacing: .16em;
  opacity: .42;
}
.contact__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.contact__foot .btn { padding: 11px 20px; }
.contact__foot-note {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: .12em;
  opacity: .4;
}

/* B 版：联系卡跟随深色主题 */
.theme-b .contact__panel {
  --ink: #ece3d6;
  --bg: #171310;
  --line: rgba(232, 220, 200, .14);
  --line-strong: rgba(232, 220, 200, .27);
  --accent: #c0915f;
  --accent-soft: rgba(192, 145, 95, .16);
  --on-accent: #171310;
  background:
    radial-gradient(circle at 82% 8%, rgba(192, 145, 95, .10), transparent 40%),
    linear-gradient(180deg, #1b1612 0%, #14100d 100%);
  border-color: var(--line-strong);
  box-shadow: 0 40px 100px -38px rgba(0, 0, 0, .82);
}
.theme-b .contact__person {
  background: rgba(255, 255, 255, .045);
  border-color: var(--line);
}
.theme-b .contact__person:hover {
  background: rgba(192, 145, 95, .11);
  border-color: var(--accent);
}
.theme-b .contact__qr {
  background: rgba(255, 255, 255, .035);
  border-color: var(--line);
}
.theme-b .contact__qr-fallback {
  background: rgba(255, 255, 255, .025);
  border-color: var(--line-strong);
}
.theme-b .contact__qr-img {
  background: transparent;
  border: 0;
}
.theme-b .contact__foot .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.theme-b .contact__foot .btn--primary:hover {
  background: #d2a16d;
  border-color: #d2a16d;
}

/* 二维码放大扫码 */
.qr-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 11, 8, .62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease-soft), visibility .35s;
}
body.qr-viewer-open .qr-viewer-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.qr-viewer {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease-soft), visibility .35s;
}
.qr-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.qr-viewer__panel {
  --ink: #2e261c;
  --line-strong: rgba(74, 55, 32, .28);
  --accent: #a67c48;
  --accent-soft: rgba(166, 124, 72, .12);
  position: relative;
  width: min(420px, 90vw);
  padding: 30px 28px 24px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55);
}
.qr-viewer__panel .drawer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  color: var(--ink);
  border-color: var(--line-strong);
}
.qr-viewer__eyebrow {
  font-size: 8px;
  letter-spacing: .26em;
  opacity: .42;
  margin-bottom: 10px;
}
.qr-viewer__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .12em;
}
.qr-viewer__code {
  width: min(300px, 70vw);
  aspect-ratio: 1;
  margin: 18px auto 0;
  display: grid;
  place-items: center;
}
.qr-viewer__code img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-viewer__hint {
  margin-top: 14px;
  font-size: 9px;
  letter-spacing: .12em;
  opacity: .48;
}
.qr-viewer__add {
  margin-top: 16px;
  min-width: 190px;
  padding: 11px 20px;
}

@media (max-width: 820px) {
  .contact { padding: 0; align-items: end; }
  .contact__panel {
    width: 100%;
    max-height: 92svh;
    padding: 30px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }
  .contact__panel .drawer__close { top: 14px; right: 14px; }
  .contact__title { font-size: 28px; }
  .contact__company { font-size: 10px; }
  .contact__grid { grid-template-columns: 1fr; gap: 22px; margin-top: 22px; padding-top: 18px; }
  .contact__person-phone { font-size: 19px; }
  .contact__qr-img,
  .contact__qr-fallback { width: 180px; height: 180px; }
  .contact__foot { margin-top: 22px; padding-top: 16px; }
  .contact__foot .btn { padding: 10px 16px; }
  .contact__foot-note { width: 100%; margin-left: 0; }
  .cover-foot__contact { font-size: 7px; }
  .catalog-contact { display: none; }
}

/* ============================================================
   本阶段响应式补充
   ============================================================ */
@media (max-height: 760px) and (orientation: landscape) {
  .book-page { padding: 50px 10px 66px; }
  .plate > picture img { width: min(94vw, calc((var(--app-h) - 112px) * var(--spread-ratio))); max-height: calc(var(--app-h) - 112px); }
  .catalog-foot { bottom: 8px; }
  .catalog-bar { padding: 8px 18px; }
}

@media (orientation: portrait) and (max-width: 1100px) {
  body.is-single .catalog-side,
  body.is-single .catalog-ghost,
  body.is-single .hotspot-hint { display: none; }

  body.is-single .page-rail {
    right: clamp(10px, 1.6vw, 18px);
    gap: 11px;
  }
  body.is-single .rail-num { font-size: 9px; }
  body.is-single .rail-tick { width: 12px; }
  body.is-single .rail-item.is-on .rail-tick { width: 26px; }

  body.is-single .catalog-foot {
    left: clamp(16px, 3vw, 30px);
    right: clamp(16px, 3vw, 30px);
    bottom: calc(14px + env(safe-area-inset-bottom));
    align-items: flex-end;
  }
  body.is-single .book-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  body.is-single .book-caption__page { font-size: clamp(19px, 2.4vw, 24px); }
  body.is-single .book-caption__meta { font-size: 8px; }
  body.is-single .catalog-foot__right { gap: 10px; }
  body.is-single .scroll-hint { display: none; }
}

@media (max-width: 820px) {
  .catalog-bar { padding: 10px 16px; }
  .catalog-bar__actions { gap: 12px; }
  .hotspot-hint { display: none; }

  body.is-single .book-page { padding: 62px 0 112px; }
  body.is-single .plate > picture img {
    width: min(96vw, calc((var(--app-h) - 238px) * var(--single-ratio)));
    max-height: calc(var(--app-h) - 238px);
  }
  body.is-single .catalog-foot { bottom: calc(12px + env(safe-area-inset-bottom)); }
  body.is-single .book-caption__page { font-size: 18px; }
  body.is-single .book-caption__meta { font-size: 7.5px; letter-spacing: .1em; }
  body.is-single .book-caption__meta .dot { display: none; }
  body.is-single .craft { display: none; }
  body.is-single .zoom-btn { width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; opacity: .7; }
  body.is-single .zoom-btn span { display: none; }
  body.is-single .catalog-foot__right { flex-direction: row; align-items: center; }

  body.is-single .mobile-page-hint { top: 62px; }
  body.is-single .mobile-dots { top: 44px; }

  .orders-fab {
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    padding: 10px 14px;
    font-size: 8.5px;
    gap: 7px;
  }
  .orders-fab svg { width: 14px; height: 14px; }

  .drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: min(88svh, 780px);
    transform: translate3d(0, 104%, 0);
  }
  .drawer.is-open { transform: translate3d(0, 0, 0); }
  .drawer__panel {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -30px 80px -30px rgba(20, 12, 6, .55);
  }
  .drawer__head { padding: 18px 18px 10px; }
  .drawer__eyebrow { margin-bottom: 7px; }
  .drawer__model { font-size: 25px; }
  .drawer__preview { height: 188px; margin: 0 14px; }
  .drawer__canvas { filter: drop-shadow(0 16px 20px rgba(30, 18, 8, .25)); }
  .drawer__body { padding: 0 18px; }
  .drawer__section { padding: 12px 0; }
  .drawer__section-head { margin-bottom: 10px; }
  .size-field input { padding: 9px 12px; font-size: 15px; }
  .size-swap { width: 40px; height: 40px; }
  .palette-scroll { grid-template-columns: repeat(5, minmax(0, 1fr)); max-height: 150px; gap: 7px; }
  .palette-switch button { padding: 4px 8px; font-size: 7px; }
  .palette-caption { margin-top: 7px; font-size: 7px; }
  .drawer__foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
  .drawer__add { padding: 13px 20px; }
  .drawer__note { margin-top: 7px; }

  .orders__panel { width: 100%; border-left: 0; }
  .orders__head { padding: 20px 18px 14px; }
  .orders__list { padding: 6px 18px 16px; }
  .orders__foot { flex-wrap: wrap; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
  .orders__note { order: 2; width: 100%; }
  .orders__actions { width: 100%; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .orders__actions .btn { padding: 11px 16px; }
  .order-item { gap: 14px; padding: 16px 0; }
  .order-item__thumb { width: 64px; height: 96px; }
  .order-item__model { font-size: 16px; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .catalog-bar { padding: 6px 16px; }
  .book-page { padding: 44px 54px 58px; }
  .plate > picture img {
    width: min(60vw, calc((var(--app-h) - 104px) * var(--spread-ratio)));
    max-height: calc(var(--app-h) - 104px);
  }
  .catalog-foot { bottom: 6px; }
  .book-caption { gap: 8px; }
  .book-caption__page { font-size: 16px; }
  .book-caption__meta { font-size: 7.5px; }
  .hotspot-hint, .catalog-side, .catalog-ghost { display: none; }
  .page-rail { gap: 9px; }
  .orders-fab { bottom: 62px; right: 16px; padding: 9px 13px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
  .scroll-hint__chevron { animation: none; }
}

/* ---------- 截图 / 静态模式（?static=1） ---------- */
.is-static .boot { display: none !important; }
.is-static *,
.is-static *::before,
.is-static *::after {
  animation: none !important;
  transition: none !important;
}
.is-static .veil { display: none !important; }
.is-static .book-page { filter: none !important; }

/* ---------- 无脚本 ---------- */
.noscript {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  margin: 0;
  background: #171310;
  color: #efe6d9;
  font-size: 13px;
  letter-spacing: .2em;
}

/* ============================================================
   搜索 / 分享 / 门店展示
   ============================================================ */
.catalog-foot__right > #searchBtn,
.catalog-foot__right > #catalogShareBtn { pointer-events: auto; }
.catalog-foot__right { gap: clamp(10px, 1.4vh, 16px); }

.search-backdrop,
.share-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(28, 22, 16, .38);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.search-backdrop.is-open,
.share-backdrop.is-open { opacity: 1; visibility: visible; }
.search-backdrop { z-index: 300; }
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 301;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s, visibility .3s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.search-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(860px, 94vw);
  max-height: min(780px, 88vh);
  padding: 30px 30px 22px;
  color: var(--ink);
  background: var(--panel-card);
  border: 1px solid rgba(135, 102, 64, .24);
  box-shadow: 0 30px 80px -30px rgba(35, 23, 12, .5);
  overscroll-behavior: contain;
}
body.search-open { overflow: hidden; }
.search-panel__close { position: absolute; top: 16px; right: 18px; }
.search-panel__eyebrow,
.share-panel__eyebrow {
  margin: 0 0 8px;
  font: 500 9px/1 var(--font-sans);
  letter-spacing: .24em;
  color: var(--accent);
}
.search-panel h2,
.share-panel h2 {
  margin: 0;
  font: 400 clamp(28px, 3vw, 40px)/1.1 var(--font-serif);
  letter-spacing: .04em;
  color: var(--ink);
}
.search-panel__sub,
.share-panel__sub {
  margin: 8px 0 18px;
  font: 400 11px/1.7 var(--font-sans);
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.search-panel__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: 400 15px/1 var(--font-sans);
  color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(135, 102, 64, .28);
  outline: none;
}
.search-panel__input:focus { border-color: var(--accent); }
.search-filters { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 15px 0 0; }
.search-filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.search-filter-label { font: 500 9px/1 var(--font-sans); letter-spacing: .16em; color: var(--ink-soft); white-space: nowrap; }
.search-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.search-chip {
  padding: 5px 9px;
  font: 400 10px/1 var(--font-sans);
  letter-spacing: .06em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid rgba(135, 102, 64, .18);
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}
.search-chip:hover { color: var(--accent); border-color: var(--accent); }
.search-chip.is-on { color: var(--panel-card); background: var(--accent); border-color: var(--accent); }
.search-chip b { margin-left: 4px; font-weight: 400; font-size: 8px; opacity: .55; }
.search-chip.is-on b { opacity: .8; }
.search-filter-note { flex-basis: 100%; font: 400 8px/1.4 var(--font-sans); letter-spacing: .06em; color: var(--ink-soft); opacity: .72; margin-left: 50px; }
.search-range { display: flex; align-items: center; gap: 5px; }
.search-range input {
  width: 62px;
  height: 26px;
  padding: 0 6px;
  font: 400 11px/1 var(--font-sans);
  color: var(--ink);
  text-align: center;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(135, 102, 64, .2);
  outline: none;
}
.search-range span { color: var(--ink-soft); font-size: 10px; }
.search-meta {
  min-height: 18px;
  margin: 14px 0 8px;
  font: 400 10px/1.4 var(--font-sans);
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.search-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding: 3px 4px 6px 2px;
  overscroll-behavior: contain;
}
.search-result {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 8px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(135, 102, 64, .14);
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}
.search-result:hover { border-color: var(--accent); background: rgba(255, 255, 255, .72); transform: translateY(-1px); }
.search-result__thumb {
  width: 46px;
  height: 60px;
  object-fit: contain;
  background: rgba(240, 234, 224, .65);
}
.search-result__body { min-width: 0; }
.search-result__model { display: block; font: 500 12px/1.3 var(--font-sans); letter-spacing: .04em; }
.search-result__meta { display: block; margin-top: 4px; font: 400 9px/1.5 var(--font-sans); letter-spacing: .04em; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result__page { display: inline-block; margin-top: 5px; padding: 2px 5px; font: 400 8px/1 var(--font-sans); color: var(--accent); border: 1px solid rgba(166, 124, 72, .28); }
.search-empty { grid-column: 1 / -1; padding: 42px 10px; text-align: center; font: 400 12px/1.7 var(--font-sans); color: var(--ink-soft); }
.search-result__thumb[data-src] { visibility: hidden; }

/* 分享 */
.share-backdrop { z-index: 320; }
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 321;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s, visibility .3s;
}
.share-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.share-panel {
  position: relative;
  width: min(560px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  color: var(--ink);
  background: var(--panel-card);
  border: 1px solid rgba(135, 102, 64, .24);
  box-shadow: 0 30px 80px -30px rgba(35, 23, 12, .5);
}
.share-panel .drawer__close { top: 14px; right: 16px; }
.share-link-row { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.share-link-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  font: 400 11px/1 var(--font-sans);
  color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(135, 102, 64, .24);
  outline: none;
}
.share-link-row .btn { flex: 0 0 auto; height: 42px; }
.share-actions { display: flex; gap: 16px; margin-top: 10px; }
.share-actions .text-btn { padding: 0; font-size: 10px; }
.share-qr { display: flex; flex-direction: column; align-items: center; margin-top: 18px; }
.share-qr canvas { width: 190px; height: 190px; image-rendering: pixelated; background: #fff; }
.share-qr p { margin: 8px 0 0; font: 400 10px/1 var(--font-sans); letter-spacing: .12em; color: var(--ink-soft); }
.share-panel__hint { margin: 18px 0 0; font: 400 10px/1.7 var(--font-sans); letter-spacing: .04em; color: var(--ink-soft); }
.share-panel__hint.is-warn { color: #9b4e35; }

/* 门店展示 */
.showroom-badge,
.showroom-exit { display: none; }
body.is-showroom { cursor: none; }
body.is-showroom .showroom-badge {
  display: flex;
  position: fixed;
  top: 24px;
  right: 30px;
  z-index: 330;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, .6);
  background: rgba(20, 16, 12, .3);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  font: 400 9px/1 var(--font-sans);
  letter-spacing: .16em;
  pointer-events: none;
}
.showroom-badge img { width: 16px; height: 16px; object-fit: contain; }
body.is-showroom .showroom-exit {
  display: block;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 331;
  width: 80px;
  height: 80px;
  cursor: none;
}
.showroom-exit span { display: none; }
body.is-showroom .site {
  width: 100vw;
  height: 100vh;
}
body.is-showroom .site-head,
body.is-showroom .cover-head,
body.is-showroom .catalog-bar,
body.is-showroom .catalog-brand,
body.is-showroom .catalog-motto,
body.is-showroom .catalog-foot__right,
body.is-showroom .hotspot-hint,
body.is-showroom .scroll-hint,
body.is-showroom .mobile-dots,
body.is-showroom .mobile-page-hint,
body.is-showroom .page-rail,
body.is-showroom .end-head__label,
body.is-showroom .end-foot { display: none !important; }
body.is-showroom .catalog-foot { left: 4vw; right: 4vw; bottom: 3vh; }
body.is-showroom .book-caption { opacity: .8; }
body.is-showroom .drawer__actions { display: none !important; }
body.is-showroom .drawer__sum { opacity: .8; }
body.is-showroom .orders-fab { display: none !important; }

/* 手机 */
@media (max-width: 820px) {
  .search-overlay { padding: 0; place-items: stretch; }
  .search-panel {
    width: 100%;
    height: 100dvh;
    max-height: none;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    border: 0;
  }
  .search-results { grid-template-columns: 1fr 1fr; }
  .search-filters { gap: 10px 14px; }
  .search-filter-group--page { width: 100%; }
  .share-modal { padding: 0; place-items: end center; }
  .share-panel {
    width: 100%;
    max-height: 92dvh;
    padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }
  .share-link-row { flex-direction: column; }
  .share-link-row .btn { width: 100%; }
  .catalog-foot__right { gap: 8px; }
  .catalog-foot__right .text-btn { font-size: 10px; }
  .catalog-contact { display: inline-flex !important; }
  .catalog-foot__right {
    max-width: 58%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px 12px !important;
  }
  .contact__showroom { margin-top: 8px; font-size: 9px; }
  .drawer__actions { flex-wrap: wrap; }
  .drawer__share { margin-right: auto; }
}

/* ============================================================
   定制弹窗重做：大弹窗 + 门扇明细
   ============================================================ */
.drawer {
  top: 0;
  right: auto;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition: opacity .35s var(--ease-soft), visibility .35s;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform: none;
}
.drawer__panel {
  width: min(1040px, 94vw);
  height: min(760px, 88vh);
  max-height: 88vh;
  border: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  box-shadow: 0 40px 110px -40px rgba(20, 12, 6, .6);
  transform: translateY(18px);
  pointer-events: none;
  transition: transform .45s var(--ease-lux);
}
.drawer.is-open .drawer__panel { transform: translateY(0); pointer-events: auto; }
.theme-b .drawer__panel { box-shadow: 0 40px 120px -35px rgba(0, 0, 0, .85); }

.drawer__head {
  position: relative;
  flex: 0 0 auto;
  align-items: center;
  padding: 21px 28px 16px;
  border-bottom: 1px solid var(--line);
}
.drawer__head .drawer__close {
  position: absolute;
  top: 17px;
  right: 22px;
}
.drawer__model { font-size: clamp(25px, 2.2vw, 31px); }
.drawer__sub { margin-top: 7px; }

.drawer__main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}
.drawer__visual {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 20px 12px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .12);
}
.theme-b .drawer__visual { background: rgba(255, 255, 255, .015); }
.drawer__preview {
  flex: 1;
  height: auto;
  min-height: 280px;
  margin: 0;
}
.drawer__preview .drawer__canvas {
  height: 100%;
  max-height: 100%;
  max-width: 88%;
}
.drawer__visual-hint {
  flex: 0 0 auto;
  margin-top: 9px;
  text-align: center;
  font-size: 8px;
  letter-spacing: .08em;
  opacity: .36;
}

.drawer__form {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 28px 20px;
}
.drawer__form .drawer__section { padding: 17px 0; border-top: 1px solid var(--line); }
.drawer__form .drawer__section:first-child { border-top: 0; }
.drawer__section-note { font-size: 8px; letter-spacing: .06em; opacity: .4; }
.drawer__section--color .palette-scroll { max-height: 142px; }
.drawer__section--color .palette-caption { margin-top: 9px; }

.door-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 3px;
}
.door-row {
  min-width: 0;
  max-width: 100%;
  padding: 10px 11px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .2);
  transition: border-color .3s, background .3s;
}
.theme-b .door-row { background: rgba(255, 255, 255, .03); }
.door-row.is-invalid { border-color: #b0503c; background: rgba(176, 80, 60, .06); }
.door-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 8px;
  letter-spacing: .14em;
  opacity: .55;
}
.door-row__remove {
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--ink);
  opacity: .42;
  border-bottom: 1px solid transparent;
  transition: .25s;
}
.door-row__remove:hover { opacity: 1; color: #a8533f; border-color: currentColor; }
.door-row__fields {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr .7fr 1.5fr;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
}
.door-row__fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 7.5px;
  letter-spacing: .1em;
  opacity: .6;
}
.door-row__fields input {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .03em;
  outline: none;
}
.door-row__fields input:focus { border-color: var(--accent); background: var(--accent-soft); }
.door-row__note { grid-column: auto; }
.door-row-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 9px;
  padding: 9px 12px;
  border: 1px dashed var(--line-strong);
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.door-row-add:hover { border-color: var(--accent); background: var(--accent-soft); }

.drawer__foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 28px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.drawer__sum {
  font-size: 9px;
  letter-spacing: .14em;
  opacity: .48;
}
.drawer__actions { display: flex; align-items: center; gap: 10px; }
.drawer__actions .btn { padding: 10px 20px; }

.orders__panel { width: min(720px, 100vw); }

@media (max-width: 900px) {
  .drawer { padding: 0; height: 100dvh; max-height: 100dvh; }
  .drawer__panel {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    transform: none;
    overflow-x: hidden;
  }
  .drawer__main {
    grid-template-columns: 1fr;
    flex: 1 1 auto;
    min-height: 0;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }
  .drawer__visual {
    min-height: 0;
    max-width: 100%;
    padding: 14px 18px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .drawer__preview { flex: none; height: 32vh; min-height: 230px; }
  .drawer__form { overflow-x: hidden; overflow-y: visible; padding: 0 18px 18px; max-width: 100%; }
  .drawer__head { flex: 0 0 auto; padding: 18px 20px 14px; }
  .drawer__head .drawer__close { top: 12px; right: 14px; }
  .drawer__foot { flex: 0 0 auto; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); gap: 10px; }
  .drawer__sum { display: none; }
  .drawer__actions { width: 100%; justify-content: flex-end; }
  .door-row { min-width: 0; max-width: 100%; }
  .door-row__fields {
    grid-template-columns: 56px 56px 56px 42px 92px;
    gap: 4px;
    max-width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }
  .door-row__fields label { font-size: 7px; letter-spacing: .04em; }
  .door-row__fields input { padding: 7px 5px; font-size: 11px; }
}



/* ---------- 新组件兜底 ---------- */
[hidden] { display: none !important; }
.catalog-foot__right {
  flex-direction: row !important;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px) !important;
}
.catalog-foot__right .scroll-hint { display: none !important; }
.catalog-foot__right > .page-jump-btn,
.catalog-foot__right > .catalog-contact { transform: none !important; }
