/* ============================================================
   丞火酒馆 · 书系统（书目录浮层 + 图书详情浮层）
   全站唯一「摊开」处：摊开的双页书，中缝/页堆/内弧影/光斑
   ============================================================ */

/* ---------- 浮层内的舞台 ---------- */
.book-stage {
  position: relative;
  width: 900px; max-width: min(92vw, 900px);
  margin: 0 auto;
  zoom: 1.2;
}
.mobile-reader, .book.mobile-book { display: none; }
@media (min-width: 1700px) and (min-height: 1100px) { .book-stage { zoom: 1.35; } }
@media (max-height: 900px) { .book-stage { zoom: 1.05; } }

/* ---------- 关闭 × ---------- */
.book-close {
  position: absolute; top: -18px; right: -18px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: var(--paper);
  font-size: 22px; line-height: 38px; text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.5), 0 0 0 4px rgba(192,40,31,.25);
  transition: transform .15s;
}
.book-close:hover { transform: rotate(90deg); }

/* ---------- 摊开的书 ---------- */
.book {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 640px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.55), transparent 40%),
    linear-gradient(180deg, #F7F1E3, var(--paper) 30%, #EFE6D0);
  border-radius: 3px;
  box-shadow:
    0 40px 90px rgba(0,0,0,.65),
    0 8px 24px rgba(0,0,0,.45),
    0 0 0 1px rgba(120, 95, 60, .25);
  overflow: hidden;
}
/* 中缝 */
.book::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 76px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,
    rgba(90, 66, 40, 0) 0%,
    rgba(90, 66, 40, .12) 28%,
    rgba(60, 42, 24, .28) 49%,
    rgba(60, 42, 24, .2) 51%,
    rgba(90, 66, 40, .12) 72%,
    rgba(90, 66, 40, 0) 100%);
  pointer-events: none; z-index: 3;
}
.book > .page {
  position: relative; width: auto; min-width: 0; max-width: none;
  margin: 0; padding: 58px 76px 54px; overflow: hidden; z-index: 2;
}
.book > .page.left  { padding-right: 56px; }
.book > .page.right { padding-left: 56px; }
/* 内弧影（贴书脊侧） */
.book > .page.left::after, .book > .page.right::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 110px;
  pointer-events: none; z-index: 1;
}
.book > .page.left::after { right: 0; background: linear-gradient(270deg, rgba(70, 48, 28, .22), transparent 72%); }
.book > .page.right::after { left: 0; background: linear-gradient(90deg, rgba(70, 48, 28, .22), transparent 72%); }

/* ---------- 书页文字 ---------- */
.p-eyebrow {
  font-size: 12px; letter-spacing: 3px; color: var(--ink-soft);
  font-family: var(--mono); margin-bottom: 14px;
}
.p-title {
  font-family: var(--serif); font-weight: 900;
  font-size: 40px; letter-spacing: 2px; color: var(--ink);
  line-height: 1.25; margin-bottom: 12px;
}
.p-intro { font-size: 14.5px; color: var(--ink); line-height: 1.9; text-align: justify; }
.p-rule { height: 1px; background: var(--line); margin: 22px 0; }
.p-note { font-size: 13px; color: var(--ink-soft); }
.p-count { font-size: 13px; letter-spacing: 2px; color: var(--ink-soft); margin-top: 26px; }
.cat-cta {
  display: inline-block; align-self: flex-start; margin-top: 22px; padding: 10px 26px;
  border-radius: 999px; letter-spacing: 3px; font-size: 14px; color: #FFF4DC;
  background: linear-gradient(180deg, #D2392E, #A82A20); border: 1px solid rgba(255,226,170,.55);
  box-shadow: 0 4px 12px rgba(80,20,10,.35), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s, filter .15s;
}
.cat-cta:hover { transform: translateY(-2px); filter: brightness(1.1); }
.p-foot {
  position: absolute; left: 76px; right: 96px; bottom: 26px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-soft); font-family: var(--mono);
}

/* ---------- 右页条目 ---------- */
.entry {
  display: flex; align-items: baseline; gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.entry:last-child { border-bottom: none; }
.dense .entry { padding: 9px 4px; }
.dense .entry .e-name { font-size: 18px; }
.entry .e-name {
  flex: 0 1 auto; min-width: 0;
  font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.35;
  color: var(--ink); letter-spacing: 1px; white-space: normal; word-break: break-all;
}
.entry .e-dots { flex: 1 1 12px; min-width: 12px; border-bottom: 1px dotted rgba(42,32,25,.35); transform: translateY(-4px); }
.entry .e-note { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; flex: none; }
.entry .e-go {
  font-size: 13px; color: var(--red); letter-spacing: 1px; white-space: nowrap;
  font-weight: 700;
}
.entry.long { flex-wrap: wrap; row-gap: 3px; }
.entry.long .e-name { flex: 1 1 100%; }
.entry.long .e-dots { display: none; }
.entry:hover .e-name { color: var(--red-deep); }
.entry:hover .e-go { letter-spacing: 2px; }
.entry.disabled { cursor: default; opacity: .55; }
.entry.disabled:hover .e-name { color: var(--ink); }

/* ---------- 详情页专用 ---------- */
.d-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.d-cover {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #3A2A1C, #241812);
  border-radius: 2px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.3), 0 0 0 1px rgba(120,95,60,.3);
  display: grid; place-items: center;
}
.d-cover img { width: 100%; height: 100%; object-fit: cover; }
.d-cover .ph { color: rgba(244,237,222,.5); font-size: 13px; letter-spacing: 2px; }
.d-caption {
  position: absolute; left: 12px; bottom: 10px;
  font-size: 12px; color: rgba(244,237,222,.85); letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.d-sections { margin-top: 18px; }
.d-fields { margin-top: 8px; }
.d-fields .f-row {
  display: flex; gap: 14px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dotted rgba(42,32,25,.3);
}
.d-fields.mod .f-row .f-k { width: 76px; }
.d-fields .f-k { flex: none; width: 52px; font-size: 12.5px; letter-spacing: 2px; color: var(--ink-soft); }
.d-fields .f-v { font-size: 15px; color: var(--ink); line-height: 1.6; }
.d-figure {
  max-height: 480px; display: grid; place-items: center;
  background: rgba(120,95,60,.08); border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(120,95,60,.25) inset;
}
.d-figure img { max-width: 100%; max-height: 480px; object-fit: contain; }
.zoom-hint { margin-top: 8px; font-size: 11.5px; letter-spacing: 1px; color: var(--ink-soft); text-align: center; }
.d-figure.empty { height: 480px; }
.d-figure img.zoomable { cursor: zoom-in; }
.d-figure.empty span { font-size: 13px; letter-spacing: 3px; color: var(--ink-soft); }
.d-scroll {
  max-height: 480px; overflow-y: auto; padding-right: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(120,95,60,.5) transparent;
}
.d-text .t-h {
  font-family: var(--serif); font-size: 17px; letter-spacing: 1px; color: var(--red-deep);
  margin: 22px 0 8px; padding-left: 10px; border-left: 3px solid var(--red);
}
.d-text .t-h:first-child { margin-top: 0; }
.d-text .t-p { font-size: 14px; line-height: 1.95; text-align: justify; margin-bottom: 8px; color: var(--ink); }
.d-text .t-q {
  font-size: 13.5px; line-height: 1.85; color: var(--ink-soft);
  margin: 6px 0 8px; padding: 2px 0 2px 12px; border-left: 2px solid rgba(120,95,60,.45);
}
.d-text .t-img { display: block; width: 100%; margin: 10px 0; border-radius: 2px; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.d-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.d-grid .g-item { margin: 0; }
.d-grid .g-item img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; cursor: zoom-in;
  border-radius: 2px; box-shadow: 0 3px 10px rgba(0,0,0,.25); background: #EDE3CC;
  transition: transform .2s;
}
.d-grid .g-item img:hover { transform: scale(1.02); }
.d-grid figcaption { margin-top: 5px; font-size: 12px; line-height: 1.5; color: var(--ink); }
.d-grid figcaption b { display: block; font-weight: 500; }
.d-grid figcaption span { color: var(--red-deep); font-size: 11.5px; }
.lightbox {
  position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; gap: 28px;
  background: radial-gradient(ellipse at 50% 40%, rgba(70,48,30,.96), rgba(14,9,6,.97) 75%); cursor: zoom-out;
  animation: lbIn .25s ease;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-wall { position: relative; display: flex; flex-direction: column; align-items: center; cursor: default; padding-top: 40px; }
.lb-wall.sn { animation: lbSwN .35s ease; }
.lb-wall.sp { animation: lbSwP .35s ease; }
@keyframes lbSwN { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes lbSwP { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.lb-wall::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 240px; height: 42px; margin-left: -120px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='42'><path d='M20 42 L120 6 L220 42' fill='none' stroke='%23C9A55A' stroke-width='1.6'/><circle cx='120' cy='6' r='5' fill='%23D9B96A' stroke='%238A6A2A'/></svg>") no-repeat center;
}
.lb-frame {
  margin: 0; padding: 20px; border-radius: 3px;
  background: linear-gradient(135deg, #9A6B3F, #5C3A20 45%, #7E5230 70%, #4A2E18);
  box-shadow: 0 34px 80px rgba(0,0,0,.7), inset 0 0 0 2px rgba(255,220,160,.28), inset 0 0 14px rgba(0,0,0,.65);
}
.lb-mat {
  padding: 30px; background: linear-gradient(180deg, #F6F0E0, #EBE2CB);
  box-shadow: inset 0 0 16px rgba(60,40,20,.4), 0 0 0 1px rgba(40,26,14,.55);
}
.lb-mat img {
  display: block; max-width: min(58vw, 880px); max-height: 58vh; border-radius: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 3px 10px rgba(0,0,0,.35);
}
.lb-plate {
  margin-top: 16px; padding: 7px 22px; text-align: center; border-radius: 2px;
  background: linear-gradient(180deg, #E8CF8E, #B8924A); color: #3A2812;
  box-shadow: 0 3px 8px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.45);
  font-size: 13px; letter-spacing: 2px;
}
.lb-plate b { font-weight: 700; }
.lb-plate span { margin-left: 14px; font-size: 12px; opacity: .8; }
.lb-arrow {
  flex: none; width: 54px; height: 54px; border-radius: 50%; font-size: 34px; line-height: 50px; text-align: center;
  color: #F4E7C8; background: rgba(40,28,18,.7); border: 1px solid rgba(232,207,142,.45);
  transition: background .15s, transform .15s;
}
.lb-arrow:hover { background: rgba(192,40,31,.8); transform: scale(1.08); }
.lb-count { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font: 12px var(--mono); letter-spacing: 3px; color: rgba(244,237,222,.6); pointer-events: none; }
.d-sections .s-row {
  display: flex; gap: 14px; font-size: 13.5px; color: var(--ink);
  padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.d-sections .s-row:last-child { border-bottom: none; }
.d-sections .s-no { font-family: var(--mono); color: var(--red); font-size: 12px; padding-top: 2px; }
.d-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.d-ver { font-size: 12px; color: var(--ink-soft); margin-top: 14px; font-family: var(--mono); }
.d-reviews { display: flex; flex-direction: column; gap: 16px; }
.d-reviews .rv { font-size: 13.5px; color: var(--ink); line-height: 1.8; }
.d-reviews .rv .who { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-soft); }
.d-score {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--mono); color: var(--red); font-size: 20px; font-weight: 600;
  margin: 4px 0 18px;
}
.d-score small { font-size: 12px; color: var(--ink-soft); font-family: var(--sans); }
.d-download {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: var(--paper);
  font-size: 14px; letter-spacing: 2px; padding: 12px 26px; border-radius: 3px;
  box-shadow: 0 3px 0 var(--red-ink);
  margin-top: 18px;
}
.d-download:hover { background: #D2332A; }
.d-download .fname { font-size: 11px; opacity: .75; font-family: var(--mono); }
.bili-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 8px 20px 8px 14px; border-radius: 999px;
  font-size: 13.5px; letter-spacing: 2px; color: #fff;
  background: linear-gradient(180deg, #FF86AE, #FB5A8F);
  box-shadow: 0 3px 10px rgba(251,114,153,.45), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .15s, box-shadow .15s;
}
.bili-btn i { width: 8px; height: 8px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.bili-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(251,114,153,.55), inset 0 1px 0 rgba(255,255,255,.4); }
.d-note { font-size: 12px; color: var(--ink-soft); margin-top: 12px; }

/* ---------- 底部按钮对 ---------- */
.book-actions {
  display: flex; justify-content: center; gap: 0;
  margin-top: 26px;
}
.book-actions .ba {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 200px; height: 46px;
  font-size: 14px; letter-spacing: 3px; border-radius: 3px;
  padding: 0 28px;
}
.book-actions .ba.close-book { background: var(--red); color: var(--paper); box-shadow: 0 3px 0 var(--red-ink); }
.book-actions .ba.close-book:hover { background: #D2332A; }
.book-actions .ba.new-page {
  background: rgba(28, 22, 19, .82); color: var(--paper);
  border: 1px solid rgba(244,237,222,.25); margin-left: 16px;
}
.book-actions .ba.new-page:hover { background: rgba(28,22,19,.95); border-color: rgba(244,237,222,.5); }
.book-actions .ba.back-cat {
  background: rgba(244,237,222,.92); color: var(--ink);
  border: 1px solid rgba(120,95,60,.5); margin-right: 16px;
}
.book-actions .ba[hidden] { display: none; }

/* ---------- 翻页书 ---------- */
.book.paged { height: 640px; perspective: 2600px; }
.pg-body { height: 456px; overflow: hidden; }
.pg-foot {
  position: absolute; bottom: 22px; z-index: 4;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-soft); font-family: var(--mono);
}
.book > .page.left .pg-foot, .leaf .page.left .pg-foot { left: 76px; right: 56px; }
.book > .page.right .pg-foot, .leaf .page.right .pg-foot { left: 56px; right: 76px; }
.pg-btn {
  font-size: 12.5px; letter-spacing: 1px; color: var(--red-deep);
  padding: 4px 12px; border: 1px solid rgba(120,95,60,.4); border-radius: 999px;
  background: rgba(255,255,255,.35); transition: background .15s, transform .15s;
}
.pg-btn:hover:not(:disabled) { background: rgba(192,40,31,.12); transform: translateY(-1px); }
.pg-btn:disabled { opacity: .3; cursor: default; }
.pg-body .t-img { width: auto; max-width: 100%; max-height: 300px; margin: 10px auto; object-fit: contain; }
.pg-body.d-grid { align-content: start; }
.pg-body.d-grid .g-item img { object-fit: contain; background: #E9DFC6; }
.pg-body.d-grid.stack { grid-template-columns: 1fr; gap: 10px; }
.pg-body.d-grid.stack .g-item img { aspect-ratio: auto; height: 192px; }

.leaf {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 5;
  transform-style: preserve-3d;
}
.leaf { will-change: transform; }
.leaf .face { will-change: transform; }
.leaf .face::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(40,26,14,.3), rgba(255,246,225,.22) 50%, rgba(40,26,14,.26));
}
.leaf.fwd { left: 50%; transform-origin: left center; }
.leaf.back { left: 0; transform-origin: right center; }
.leaf .face {
  position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden;
  background: linear-gradient(180deg, #F7F1E3, var(--paper) 30%, #EFE6D0);
  box-shadow: 0 0 30px rgba(40,26,14,.35);
}
.leaf .face.rear { transform: rotateY(180deg); }
.leaf .page { position: absolute; inset: 0; padding: 58px 56px 54px 76px; overflow: hidden; }
.leaf .page.right { padding: 58px 76px 54px 56px; }
.leaf .page::after { content: ""; position: absolute; top: 0; bottom: 0; width: 110px; pointer-events: none; }

/* ---------- 通用：总览页提示 / 图片说明 ---------- */
.ix-hint { margin-top: 8px; text-align: center; font-size: 12px; letter-spacing: 3px; color: var(--ink-soft); }
[data-goto] { cursor: pointer; }
.pg-foot { gap: 10px; }

/* ---------- 衣柜 ---------- */
.wd-cab {
  height: 420px; position: relative; padding: 18px 10px 10px;
  border: 10px solid #5C3A20; border-radius: 6px 6px 3px 3px;
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(0,0,0,.45) 49.4%, rgba(0,0,0,.45) 50.6%, transparent 50.6%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 3px, transparent 3px 9px),
    linear-gradient(180deg, #7A5232, #5E3C22);
  box-shadow: inset 0 0 26px rgba(0,0,0,.6), 0 6px 14px rgba(40,26,14,.3);
  display: flex; flex-direction: column; justify-content: space-around;
}
.wd-cab::before { content: ""; position: absolute; left: -14px; right: -14px; top: -20px; height: 12px; border-radius: 3px; background: linear-gradient(180deg, #8A5E38, #5C3A20); box-shadow: 0 3px 5px rgba(0,0,0,.3); }
.wd-rail { position: relative; display: flex; justify-content: center; gap: 12px; padding-top: 10px; }
.wd-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 5px; border-radius: 3px; background: linear-gradient(180deg, #E7C77B, #9C7A33); box-shadow: 0 2px 3px rgba(0,0,0,.45); }
.wd-it { position: relative; width: 82px; text-align: center; transform-origin: top center; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.wd-it:hover { transform: rotate(-3deg) translateY(2px); }
.wd-hook { position: absolute; left: 50%; top: -9px; width: 14px; height: 14px; margin-left: -7px; border: 2px solid #D9B96A; border-radius: 50%; border-bottom-color: transparent; z-index: 2; }
.wd-card { box-sizing: border-box; margin-top: 6px; height: 84px; padding: 14px 4px 4px; border-radius: 3px 3px 8px 8px; background: #F1E6CB; box-shadow: 0 4px 8px rgba(0,0,0,.45); display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); clip-path: polygon(0 12%, 50% 0, 100% 12%, 100% 100%, 0 100%); overflow: hidden; }
.wd-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wd-nm { display: block; margin-top: 5px; font-size: 11px; line-height: 1.25; color: #F1E3C2; letter-spacing: 1px; }
.wd-look { display: flex; flex-direction: column; }
.wd-door {
  position: relative; height: 386px; margin: 0; padding: 26px 8px 8px; overflow: hidden;
  border: 9px solid #5C3A20; border-radius: 4px;
  background: radial-gradient(ellipse at 50% 40%, #FBF5E4, #E8DCBC 80%);
  box-shadow: inset 0 0 22px rgba(90,58,30,.45), 0 6px 14px rgba(40,26,14,.3);
  display: grid; place-items: center;
}
.wd-door img { max-width: 100%; max-height: 336px; object-fit: contain; cursor: zoom-in; }
.wd-knob { position: absolute; top: 8px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F4DC9A, #9C7A33); box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.wd-plate { margin-top: 10px; display: flex; align-items: baseline; justify-content: center; gap: 10px; font-size: 13px; }
.wd-plate em { font: normal 11px var(--mono); color: var(--red-deep); letter-spacing: 1px; }
.wd-plate b { font-size: 16px; font-weight: 700; color: var(--ink); }
.wd-plate span { color: var(--red-deep); font-size: 12px; }

/* ---------- 表情包 ---------- */
.em-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.em-th { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: #E9DFC6; box-shadow: 0 2px 5px rgba(40,26,14,.25); transition: transform .2s; }
.em-th:hover { transform: translateY(-3px) rotate(-1.5deg); }
.em-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-th span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 4px 3px; font-size: 11px; text-align: center; color: #fff; background: linear-gradient(transparent, rgba(30,20,10,.72)); }
.em-one { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.em-card { margin: 0; padding: 9px 9px 9px; background: #FFFCF3; border-radius: 4px; box-shadow: 0 8px 20px rgba(40,26,14,.3); transform: rotate(-1.4deg); width: 330px; }
.em-card.alt { transform: rotate(1.4deg); }
.em-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; cursor: zoom-in; }
.em-cap { margin-top: 16px; text-align: center; font-size: 13px; color: var(--ink); }
.em-cap em { display: block; font: normal 11px var(--mono); color: var(--ink-soft); letter-spacing: 2px; }
.em-cap b { display: block; font-size: 18px; font-weight: 700; margin: 3px 0; }
.em-cap span { color: var(--red-deep); font-size: 12px; }

/* ---------- 摄影：杂志跨页 ---------- */
.ix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ix-th { position: relative; height: 76px; overflow: hidden; border-radius: 2px; background: #E9DFC6; box-shadow: 0 2px 5px rgba(40,26,14,.25); }
.ix-th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ix-th:hover img { transform: scale(1.08); }
.ix-th span { position: absolute; left: 5px; top: 3px; font: 11px var(--mono); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.ix-over.tr .ix-th { background: radial-gradient(ellipse at 50% 40%, #FBF5E4, #E8DCBC 90%); }
.ix-over.tr .ix-th img { object-fit: contain; }
/* 画廊墙：木框 + 卡纸 + 挂绳，高低错落 */
.ix-over.gal .ix-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 12px; padding: 20px 0 0; }
.ix-over.gal .ix-th { height: auto; overflow: visible; border-radius: 1px; padding: 5px; background: #FBF7EC; border: 4px solid #6B4426; box-shadow: 0 6px 10px rgba(40,26,14,.4), inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 6px rgba(0,0,0,.18); transition: transform .3s; }
.ix-over.gal .ix-th:nth-child(odd) { transform: rotate(-1.2deg) translateY(4px); }
.ix-over.gal .ix-th:nth-child(even) { transform: rotate(1deg) translateY(-4px); }
.ix-over.gal .ix-th:hover { transform: rotate(0) scale(1.06); z-index: 2; }
.ix-over.gal .ix-th::before { content: ""; position: absolute; left: 50%; top: -22px; width: 36px; height: 20px; margin-left: -18px; border: 1px solid rgba(60,40,20,.55); border-bottom: none; clip-path: polygon(0 100%, 50% 0, 100% 100%, 96% 100%, 50% 8%, 4% 100%); background: rgba(60,40,20,.7); }
.ix-over.gal .ix-th img { width: 78px; height: auto; max-height: 74px; object-fit: contain; background: #fff; }
.ix-over.gal .ix-th.pt img { width: auto; height: 96px; max-width: 64px; max-height: none; }
.ix-over.gal .ix-th span { position: static; display: block; margin-top: 4px; text-align: center; color: var(--ink-soft); text-shadow: none; }
.ph-one img[src*="/wardrobe/"], .ph-stack img[src*="/wardrobe/"] { box-shadow: none; }
.ph-span { position: relative; display: flex; flex-direction: column; }
.ph-span.right { margin-left: -56px; }
.ph-span.left { margin-right: -56px; }
.ph-half { background-repeat: no-repeat; cursor: zoom-in; }
.ph-span.left .ph-half { margin-left: auto; box-shadow: 0 10px 12px -8px rgba(40,26,14,.45); }
.ph-span.right .ph-half { box-shadow: 0 10px 12px -8px rgba(40,26,14,.45); }
.book.flat::before { opacity: 0; }
.book > .page:has(.ph-span)::after, .leaf .page:has(.ph-span)::after { display: none; }
.ph-cap { font-size: 12px; line-height: 1.5; color: var(--ink); }
.ph-cap b { display: block; font-weight: 700; font-size: 14px; }
.ph-cap span { color: var(--red-deep); }
.ph-cap.abs { position: absolute; right: 0; }
.ph-one { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ph-one img { max-width: 100%; max-height: 392px; object-fit: contain; box-shadow: 0 6px 18px rgba(40,26,14,.35); cursor: zoom-in; }
.ph-one .ph-cap { margin-top: 12px; text-align: center; }
.ph-stack { display: flex; flex-direction: column; justify-content: center; gap: 14px; margin: 0 -14px; }
.ph-stack figure { margin: 0; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.ph-stack img { display: block; width: 100%; flex: 1 1 0; min-height: 0; object-fit: contain; object-position: left center; box-shadow: none; filter: drop-shadow(0 4px 8px rgba(40,26,14,.3)); cursor: zoom-in; }
.ph-stack figcaption { margin-top: 6px; flex: none; font-size: 12px; line-height: 1.4; color: var(--ink); }
.ph-stack figcaption b { display: block; font-size: 14px; }
.ph-stack figcaption span { color: var(--red-deep); }
.leaf .page.left::after { right: 0; background: linear-gradient(270deg, rgba(70,48,28,.22), transparent 72%); }
.leaf .page.right::after { left: 0; background: linear-gradient(90deg, rgba(70,48,28,.22), transparent 72%); }

/* ---------- 窄屏：书改为单页滚动 ---------- */
@media (max-width: 767px) {
  .book { aspect-ratio: auto; grid-template-columns: 1fr; }
  .book::before { display: none; }
  .book > .page.left::after, .book > .page.right::after { display: none; }
  .book > .page.left { border-bottom: 1px solid var(--line); }
  .p-foot { position: static; margin-top: 26px; }
}

@media (max-width: 900px) {
  .book-stage { width: calc(100vw - 20px); max-width: none; zoom: 1 !important; margin: 0 auto; }
  .book { min-height: 0; }
  .book > .page { padding: 30px 24px 36px; }
  .book > .page.left, .book > .page.right { padding-left: 24px; padding-right: 24px; }
  .p-title { font-size: clamp(26px, 6vw, 34px); }
  .p-foot { left: 24px; right: 24px; }
  .book.paged { height: 640px; min-height: 640px; max-height: none; overflow: hidden; }
  .pg-body { height: 456px; max-height: none; overflow: hidden; }
  .book-close { top: 8px; right: 8px; }
  .pager-stage .sheet-img {
    max-height: calc(100dvh - var(--nav-h) - 250px);
    min-height: 0; height: auto;
  }
  .pg-arrow.prev { left: 2px; }
  .pg-arrow.next { right: 2px; }
  .d-figure, .d-figure.empty { max-height: 56vh; height: auto; min-height: 200px; }
  .d-figure img { max-height: 56vh; }
}

@media (max-width: 767px) {
  .book.paged { height: auto; min-height: 0; max-height: calc(100dvh - var(--nav-h) - 24px); overflow-y: auto; }
  .pg-body { height: auto; max-height: 46vh; overflow-y: auto; }
}

@media (max-width: 600px) {
  .book > .page { padding: 24px 18px 30px; }
  .book > .page.left, .book > .page.right { padding-left: 18px; padding-right: 18px; }
  .book-actions { flex-wrap: wrap; gap: 10px; padding: 0 12px; }
  .book-actions .ba { flex: 1 1 140px; min-width: 0; margin: 0 !important; padding: 0 12px; }
  .em-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ix-grid { grid-template-columns: minmax(0, 1fr); }

  .book-stage:has(.mobile-reader),
  .book-stage:has(.mobile-book) { width: calc(100vw - 20px); }
  .book-stage:has(.mobile-reader) > .book.paged,
  .book-stage:has(.mobile-book) > .book.catalog-book { display: none; }
  .mobile-reader, .book.mobile-book { display: block; }
  .mobile-sheet, .book.mobile-book {
    color: var(--ink);
    background: linear-gradient(180deg, #FBF7EC, #F0E7D2);
    border: 1px solid rgba(120,95,60,.28);
    border-radius: 3px;
    box-shadow: 0 12px 28px rgba(0,0,0,.35), inset 0 0 18px rgba(90,65,35,.08);
  }
  .mobile-sheet { padding: 24px 18px; }
  .mobile-reader .p-title { font-size: clamp(25px, 7vw, 32px); line-height: 1.3; overflow-wrap: anywhere; }
  .mobile-reader .p-intro, .mobile-text .t-p, .mobile-text .t-q {
    font-size: 14px; line-height: 1.9; text-align: left; overflow-wrap: anywhere;
  }
  .mobile-reader .d-download { flex-wrap: wrap; max-width: 100%; overflow-wrap: anywhere; }
  .mobile-text { margin-top: 20px; }
  .mobile-text .t-h { margin-top: 24px; }
  .mobile-reader .t-img {
    display: block; width: 100%; max-width: 100%; height: auto; max-height: none;
    margin: 14px auto; object-fit: contain;
  }
  .mobile-gallery { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
  .mobile-photo { margin: 0; min-width: 0; padding: 5px; background: #FBF7EC; box-shadow: 0 5px 14px rgba(40,26,14,.22); }
  .mobile-photo img {
    display: block; width: 100%; max-width: 100%; height: auto; max-height: none;
    object-fit: contain; background: rgba(120,95,60,.08);
  }
  .mobile-photo figcaption { padding: 8px 2px 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
  .mobile-photo figcaption b, .mobile-photo figcaption span { display: block; }
  .mobile-photo figcaption span { color: var(--red-deep); }
  .book.mobile-book { height: auto; min-height: 0; overflow: visible; }
  .book.mobile-book::before { display: none; }
  .book.mobile-book > .mobile-page { padding: 24px 18px; overflow: visible; }
  .book.mobile-book > .mobile-page::after { display: none; }
  .book.mobile-book .entry { gap: 8px; padding: 13px 0; align-items: flex-start; }
  .book.mobile-book .entry .e-name { flex: 1 1 100%; font-size: 18px; line-height: 1.45; overflow-wrap: anywhere; }
  .book.mobile-book .entry .e-dots { display: none; }
  .book.mobile-book .entry .e-note { white-space: normal; font-size: 12px; line-height: 1.5; }
  .book.mobile-book .entry .e-go { margin-left: auto; }
  .book:not(.paged):not(.mobile-book) { height: auto; min-height: 0; grid-template-columns: 1fr; overflow: visible; }
  .book:not(.paged):not(.mobile-book) > .page { width: auto; overflow: visible; }
  .book:not(.paged):not(.mobile-book) > .page.left { border-bottom: 1px solid var(--line); }
}
