/* ==========================================================================
   三册成人实用英语 · 网站设计系统（2026-12 改版）
   白底、深绿品牌色；三册各用封面上的识别色（B1 深青绿 #14554b、B2 砖红 #853d2d、B3 藏青 #324669，
   取自各册封面册号的实际像素）。只用系统字体，不加载网页字体。
   一个签名元素：「翻开看看」——真实内页组成的横向滑动条（.strip），点开进灯箱。其余都保持安静。
   手机优先：先写 360px，再用 min-width 往大屏加；手机、平板、桌面各自成版，不是把手机拉宽。
   字号只有六档（--fs-*），间距按 4/8 的倍数（--s*），颜色和尺寸都是 :root 上的变量。
   只做浅色，不跟系统深色模式切换。
   ========================================================================== */

:root {
  /* 颜色 */
  --bg: #ffffff;
  --bg-soft: #f5f6f4;
  --ink: #17211b;
  --muted: #56615a;
  --line: #e3e7e3;
  --line-strong: #c6cdc7;

  --brand: #1e5b34;
  --brand-hover: #134025;
  --brand-soft: #e8f1ea;
  --on-brand: #ffffff;

  --b1: #14554b;  --b1-soft: #e3efec;
  --b2: #853d2d;  --b2-soft: #f6e9e5;
  --b3: #324669;  --b3-soft: #e7ebf4;

  --link: var(--brand);
  --ring: 0 0 0 3px rgb(30 91 52 / 0.28);

  --success-bg: #e8f3ec; --success-text: #1e5a37; --success-line: #b5d8c1;
  --error-bg: #fbeceb;   --error-text: #8c2a20;   --error-line: #efc4be;
  --info-bg: #eaf1f5;    --info-text: #1f4f66;    --info-line: #bcd3df;
  --warn-bg: #fdf3d9;    --warn-text: #6d4a06;    --warn-line: #ecd292;
  --danger: #a3332a;     --danger-hover: #82261f;

  /* 字号：六档。≥900px 时 base / lg / xl 各升一档 */
  --fs-xs: 0.8125rem;   /* 13 说明、徽章、标签栏 */
  --fs-sm: 0.9375rem;   /* 15 次要文字、小按钮 */
  --fs-base: 1rem;      /* 16 正文（桌面 17） */
  --fs-md: 1.1875rem;   /* 19 小标题、重点句 */
  --fs-lg: 1.5rem;      /* 24 二级标题、价格（桌面 28） */
  --fs-xl: 2rem;        /* 32 页面大标题（桌面 40） */

  /* 间距（4/8 的倍数） */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 40px; --s8: 48px; --s9: 64px;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-page: 0 1px 2px rgb(23 33 27 / 0.10), 0 6px 16px rgb(23 33 27 / 0.10);
  --shadow-book: 0 1px 2px rgb(23 33 27 / 0.12), 0 10px 24px rgb(23 33 27 / 0.18);

  --container: 1120px;
  --gutter: 16px;
  --header-h: 56px;
  --tab-bar-h: 56px;
  --buy-bar-h: 64px;

  /* 系统字体，不加载网页字体 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Noto Sans SC", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --leading: 1.75;

  /* 脚手架后台（admin.css）用的旧变量名，指到本站颜色 */
  --text: var(--ink);
  --surface: #ffffff;
  --surface-2: var(--bg-soft);
  --brand-50: var(--brand-soft);
  --brand-500: var(--brand);
  --brand-700: var(--brand);
  --brand-800: var(--brand-hover);

  color-scheme: light;
}
@media (min-width: 900px) {
  :root { --fs-base: 1.0625rem; --fs-lg: 1.75rem; --fs-xl: 2.5rem; --gutter: 24px; }
}
@media (min-width: 1024px) { :root { --header-h: 64px; } }

/* 缅文（语言包留着，站点目前不开）：叠加元音符号要行高 ≥ 2，不加字距 */
html[lang="my"] { --leading: 2; }
html[lang="my"] :is(h1, h2, h3, h4, .btn, .badge, .eyebrow) { line-height: 1.8; letter-spacing: normal; text-transform: none; }

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s3)); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--leading);
  letter-spacing: 0;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; margin: 0 0 var(--s3); color: var(--ink); text-wrap: balance; letter-spacing: 0; }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); font-weight: 600; }
h4 { font-size: var(--fs-base); }
p { margin: 0 0 var(--s4); }
p, li, dd, figcaption { text-wrap: pretty; }
ul, ol { padding-left: 1.25em; margin: 0 0 var(--s4); }
li + li { margin-top: var(--s1); }
code, pre { font-family: var(--font-mono); font-size: var(--fs-sm); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-sm); }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: -999px; top: var(--s2); background: var(--bg); padding: var(--s2) var(--s4); z-index: 100; }
.skip-link:focus { left: var(--s2); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.inline { display: inline; margin: 0; }
.mono { font-family: var(--font-mono); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.mt { margin-top: var(--s5); }
.mt-sm { margin-top: var(--s3); }

/* ---------- 布局 ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.main { flex: 1; }
.section { padding-block: var(--s6); }
.section-tight { padding-block: var(--s5) var(--s7); }
.section-soft { background: var(--bg-soft); }
@media (min-width: 900px) { .section { padding-block: var(--s9); } }
.section-head { max-width: 44rem; margin-bottom: var(--s5); }
.section-head h2 { margin-bottom: var(--s2); }
.section-head p { color: var(--muted); margin: 0; }
.narrow { max-width: 30rem; margin-inline: auto; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: var(--s7); font-size: var(--fs-md); }
.prose h3 { margin-top: var(--s5); }
.stack { display: grid; gap: var(--s4); }
.grid-2, .grid-3 { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; color: var(--brand); margin-bottom: var(--s2); }
.vol { font-size: var(--fs-xs); font-weight: 700; color: var(--accent, var(--brand)); margin: 0 0 var(--s1); line-height: 1.5; }

.acc-b1 { --accent: var(--b1); --accent-soft: var(--b1-soft); }
.acc-b2 { --accent: var(--b2); --accent-soft: var(--b2-soft); }
.acc-b3 { --accent: var(--b3); --accent-soft: var(--b3-soft); }
.acc-bundle { --accent: var(--brand); --accent-soft: var(--brand-soft); }

/* ---------- 测试/模拟提示条 ---------- */
.mode-bar { background: var(--warn-bg); color: var(--warn-text); border-bottom: 1px solid var(--warn-line); font-size: var(--fs-xs); line-height: 1.6; }
.mode-bar .container { padding-block: var(--s2); }
.mode-bar.is-sim { background: #3b2a5a; color: #f3eefe; border-color: #2a1d42; }

/* ---------- 头部导航 ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: var(--s2); min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: var(--s2); color: var(--ink); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--brand); color: #fff; font-size: var(--fs-base); font-weight: 700; flex: none; line-height: 1; }
.brand-name { font-weight: 700; font-size: var(--fs-base); line-height: 1.3; }
.site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: var(--s3); order: 5; }
.site-nav.is-open { display: flex; }
.site-nav a { color: var(--ink); text-decoration: none; padding: var(--s2) var(--s1); min-height: 44px; display: flex; align-items: center; white-space: nowrap; font-size: var(--fs-base); }
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.site-nav a.btn { color: var(--on-brand); justify-content: center; margin-top: var(--s2); }
.nav-spacer { display: none; }
.lang-link { font-size: var(--fs-sm); }
.site-nav .lang-link { display: none; }
.lang-quick { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: var(--s2); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); text-decoration: none; border-radius: var(--radius-sm); }
.lang-quick:hover { background: var(--bg-soft); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
@media (min-width: 1000px) {
  .nav-toggle, .lang-quick { display: none; }
  .site-nav { display: flex; flex-direction: row; align-items: center; width: auto; flex: 1; padding: 0; gap: var(--s1); order: 0; }
  .site-nav a { padding: var(--s1) var(--s3); font-size: var(--fs-sm); min-height: 44px; border-radius: var(--radius-sm); }
  .site-nav a:hover { background: var(--bg-soft); }
  .site-nav a.btn { margin: 0 0 0 var(--s2); min-height: 44px; padding: var(--s1) var(--s4); }
  .site-nav a.btn:hover { background: var(--brand-hover); }
  .site-nav .lang-link { display: flex; }
  .nav-spacer { display: block; flex: 1; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s2) var(--s5);
  font: inherit; font-weight: 600; line-height: 1.3; text-align: center;
  color: var(--on-brand); background: var(--brand);
  border: 1px solid transparent; border-radius: 10px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-small { min-height: 44px; padding: var(--s1) var(--s4); font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.link-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.link-more::after { content: "→"; margin-left: var(--s1); }
.link-more:hover { text-decoration: underline; }
.link-plain { display: inline-flex; align-items: center; min-height: 44px; }
.actions { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }

/* ---------- 价格 ---------- */
.price { font-size: var(--fs-lg); font-weight: 700; color: var(--ink); line-height: 1.25; }
.price-sm { font-size: var(--fs-md); }
.per-book { font-size: var(--fs-sm); color: var(--muted); }
.price-note { display: inline-block; font-size: var(--fs-xs); font-weight: 600; color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 999px; padding: 0 var(--s2); margin-left: var(--s2); vertical-align: middle; line-height: 1.7; white-space: nowrap; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s1) var(--s1); margin-bottom: var(--s3); }
.saving { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s1) var(--s3); margin: 0 0 var(--s3); font-size: var(--fs-sm); color: var(--muted); }
.saving s { color: var(--muted); }
.saving b { color: var(--brand); font-weight: 700; background: var(--brand-soft); border-radius: 999px; padding: 0 var(--s3); }

/* ---------- 首页：开场 ---------- */
.hero { padding-block: var(--s5) var(--s7); }
.hero-grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "covers" "cta"; }
.hero-copy { grid-area: copy; }
.hero-cta { grid-area: cta; }
.hero .cover-fan { grid-area: covers; align-self: center; }
.hero h1 { margin-bottom: var(--s3); }
.hero-lead { color: var(--muted); margin: 0; max-width: 34rem; }
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s4); margin: 0 0 var(--s4); font-size: var(--fs-sm); color: var(--muted); }
.hero-price b { font-size: var(--fs-md); color: var(--ink); font-weight: 700; }
.hero-price .price-note { margin-left: 0; }
.cover-fan { display: flex; align-items: flex-start; justify-content: center; width: 100%; max-width: 520px; margin-inline: auto; padding-block: var(--s2); }
.cover-fan a { flex: 0 0 44%; display: block; border-radius: 4px; box-shadow: var(--shadow-book); position: relative; transition: transform 0.2s ease; }
.cover-fan a + a { margin-left: -16%; }
.cover-fan a:hover { transform: translateY(-4px); }
.cover-fan img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 1243; border-radius: 4px; outline: 1px solid rgb(23 33 27 / 0.08); outline-offset: -1px; }
@media (prefers-reduced-motion: reduce) { .cover-fan a { transition: none; } }
@media (min-width: 720px) {
  .hero { padding-block: var(--s8); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy covers" "cta covers"; column-gap: var(--s6); row-gap: var(--s5); align-content: center; }
  .hero-copy { align-self: end; }
  .hero-cta { align-self: start; }
  .cover-fan { max-width: 560px; margin-inline: 0 auto; }
}
@media (min-width: 900px) {
  .hero { padding-block: var(--s9); }
  .hero-grid { column-gap: var(--s9); }
}

/* ---------- 首页：你卡在哪里 ---------- */
.stuck-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.stuck-list li { margin: 0; }
.stuck-link { display: block; text-decoration: none; color: var(--ink); padding: var(--s2) 0 var(--s2) var(--s4); border-left: 3px solid var(--accent); }
.stuck-list li + li .stuck-link { margin-top: var(--s3); }
.stuck-q { display: block; margin: 0; }
.stuck-go { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; font-size: var(--fs-sm); }
.stuck-go::after { content: "→"; margin-left: var(--s1); }
.stuck-link:hover .stuck-go { text-decoration: underline; }
@media (min-width: 720px) {
  .stuck-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
  .stuck-list li + li .stuck-link { margin-top: 0; }
  .stuck-link { border-left: 0; border-top: 3px solid var(--accent); padding: var(--s4) 0 0; height: 100%; }
  .stuck-q { margin-bottom: var(--s2); }
}

/* ---------- 签名：翻开看看（真实内页的横向滑动条）---------- */
.strip { position: relative; margin-inline: calc(-1 * var(--gutter)); }
.strip-track { display: flex; gap: var(--s3); list-style: none; margin: 0; padding: var(--s1) var(--gutter) var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.strip-track::-webkit-scrollbar { display: none; }
.strip-track:focus-visible { outline-offset: -2px; }
.strip-item { flex: 0 0 min(62vw, 232px); scroll-snap-align: start; margin: 0; min-width: 0; }
.strip-item a { display: block; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-page); border-top: 3px solid var(--accent, var(--line-strong)); background: #fff; }
.strip-item a:hover { box-shadow: var(--shadow-book); }
.strip-item img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 622; background: #fff; }
.strip-cap { margin: var(--s2) 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.strip-cap b { color: var(--accent, var(--ink)); font-weight: 700; margin-right: var(--s1); }
.strip-hint { font-size: var(--fs-xs); color: var(--muted); margin: var(--s1) 0 0; }
.strip-btn { display: none; position: absolute; top: 38%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-page); place-items: center; padding: 0; }
.strip-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.strip-btn:hover { background: var(--bg-soft); }
.strip-btn[disabled] { opacity: 0.35; cursor: default; }
.strip-btn.prev { left: var(--s2); }
.strip-btn.next { right: var(--s2); }
@media (min-width: 720px) {
  .strip { margin-inline: 0; }
  .strip-track { padding-inline: 0; scroll-padding-inline: 0; }
  .strip-item { flex-basis: 232px; }
  .strip-btn { display: grid; }
  .strip-hint { display: none; }
}
@media (min-width: 900px) { .strip-item { flex-basis: 248px; } }
@media (prefers-reduced-motion: no-preference) { .strip-track { scroll-behavior: smooth; } }

/* ---------- 首页：每一课怎么练 ---------- */
.lesson-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 0; max-width: 720px; }
.lesson-steps li { counter-increment: s; position: relative; margin: 0; padding: var(--s3) 0 var(--s3) var(--s8); border-top: 1px solid var(--line); }
.lesson-steps li:last-child { border-bottom: 1px solid var(--line); }
.lesson-steps li::before { content: counter(s); position: absolute; left: 0; top: var(--s3); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: var(--fs-sm); line-height: 1; }
.lesson-steps h3 { font-size: var(--fs-base); font-weight: 700; margin: 0; }
.lesson-steps p { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.65; }
/* 首页手机上只列五步的名字（每步的说明在书页里有），平板起再显示说明 */
@media (max-width: 719px) { .section .lesson-steps p { display: none; } .section .lesson-steps li { padding-block: var(--s2); } .section .lesson-steps li::before { top: var(--s2); } }
/* 首页整行宽度才排成五列；书页里它在主栏内，保持竖排 */
@media (min-width: 900px) {
  .section .lesson-steps { max-width: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5); }
  .section .lesson-steps li, .section .lesson-steps li:last-child { padding: var(--s8) 0 0; border: 0; border-top: 1px solid var(--line-strong); }
  .section .lesson-steps li::before { top: var(--s3); }
}

/* ---------- 选书：书行 + 套装 ---------- */
.shop-grid { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
.book-rows { display: grid; gap: 0; }
.book-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s4); padding-block: var(--s4); border-top: 1px solid var(--line); }
.book-row:last-child { border-bottom: 1px solid var(--line); }
.book-row .cover-link { display: block; align-self: start; border-radius: 3px; box-shadow: var(--shadow-page); }
.book-row img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 1243; border-radius: 3px; }
.book-row h3 { font-size: var(--fs-md); margin: 0 0 var(--s1); }
.book-row h3 a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.book-row h3 a:hover { color: var(--accent); text-decoration: underline; }
.book-row .vol-en { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.book-row .line { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 var(--s2); line-height: 1.65; }
.book-row .price-line { margin: 0 0 var(--s2); }
.book-row .actions { gap: var(--s2); }
.book-row-compact .book-row-buy { display: flex; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); flex-wrap: wrap; }
.book-row-compact .price-line { margin: 0; }
.book-row .btn { background: var(--accent); }
.book-row .btn:hover { filter: brightness(0.88); }
.book-row .btn-ghost { background: transparent; color: var(--ink); }
.book-row .btn-ghost:hover { background: var(--bg-soft); filter: none; }
.set-block { background: var(--brand-soft); border-radius: var(--radius); padding: var(--s4); align-self: start; }
.set-block h3 { font-size: var(--fs-md); margin-bottom: var(--s1); }
.set-block p { margin-bottom: var(--s3); }
.set-block .price-line { margin-bottom: var(--s2); }
@media (min-width: 720px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s6); }
  .set-block { position: sticky; top: calc(var(--header-h) + var(--s5)); }
}
@media (min-width: 900px) { .shop-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s9); } }

/* ---------- 常见问题（手风琴）---------- */
.faq { display: grid; gap: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--s3) 0; font-weight: 600; list-style: none; display: flex; gap: var(--s3); min-height: 56px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 400; font-size: var(--fs-lg); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 var(--s4); color: var(--ink); }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: var(--s7); }
.faq-split { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .faq-split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s9); } }

/* ---------- 书页 / 套装页：版式 ---------- */
.book-layout { display: grid; gap: var(--s7); grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "inside" "buy" "details"; padding-block: var(--s5) var(--s8); }
.book-hero { grid-area: hero; display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); }
.look-inside { grid-area: inside; min-width: 0; }
.buy-box { grid-area: buy; }
.book-details { grid-area: details; display: grid; gap: var(--s8); min-width: 0; }
.book-hero .cover { width: min(62%, 240px); margin-inline: auto; }
.book-hero .cover a { display: block; border-radius: 4px; box-shadow: var(--shadow-book); }
.book-hero .cover img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 1243; border-radius: 4px; outline: 1px solid rgb(23 33 27 / 0.08); outline-offset: -1px; }
.cover-hint { font-size: var(--fs-xs); color: var(--muted); text-align: center; margin: var(--s2) 0 0; }
.book-head h1 { margin-bottom: var(--s1); }
.book-head .en, .book-head .title-zh { color: var(--muted); font-size: var(--fs-md); margin: 0 0 var(--s3); font-weight: 400; }
.book-head .line { font-size: var(--fs-md); font-weight: 600; margin-bottom: var(--s3); }
.cn-book-title { text-indent: -0.5em; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin: var(--s5) 0 0; padding: var(--s3) 0 0; border-top: 1px solid var(--line); list-style: none; }
.facts li { margin: 0; }
.facts b { display: block; font-size: var(--fs-md); font-weight: 700; color: var(--accent, var(--ink)); line-height: 1.3; }
.facts span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; display: block; }
@media (min-width: 720px) {
  .book-hero { grid-template-columns: 200px minmax(0, 1fr); gap: var(--s6); align-items: start; }
  .book-hero-set { grid-template-columns: 300px minmax(0, 1fr); }
  .book-hero-set .cover-fan { margin: 0; }
  .book-hero .cover { width: 100%; margin: 0; }
  .cover-hint { text-align: left; }
}

.buy-box { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--s4); scroll-margin-top: calc(var(--header-h) + var(--s4)); }
.buy-box h2 { font-size: var(--fs-md); margin-bottom: var(--s3); }
.buy-box form { margin: 0; }
.buy-box .fine { font-size: var(--fs-xs); color: var(--muted); margin: var(--s3) 0 0; line-height: 1.6; }
.buy-box .fine a { display: inline-block; padding-block: var(--s3); }
.buy-box .btn + .btn { margin-top: var(--s2); }
.buy-box .ticks { font-size: var(--fs-sm); color: var(--muted); margin: var(--s4) 0; }
.buy-more { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--muted); }
.buy-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--ink); }
.buy-more summary::after { content: "+"; margin-left: var(--s2); color: var(--muted); font-weight: 400; font-size: var(--fs-md); }
.buy-more[open] summary::after { content: "−"; }
.buy-more summary::-webkit-details-marker { display: none; }
.buy-more summary { list-style: none; }
.buy-more ul { margin: 0 0 var(--s3); }
.consent { display: flex; gap: var(--s3); font-weight: 400; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); padding-block: var(--s2); margin: 0; min-height: 44px; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: var(--s1); accent-color: var(--brand); }
.consent a { color: inherit; text-decoration: underline; }
.buy-box form .btn-block { margin-top: var(--s3); }
.unavailable { font-size: var(--fs-sm); color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); margin: 0; }
@media (min-width: 720px) { .buy-box, .set-block { padding: var(--s5); } }
@media (min-width: 720px) and (max-width: 1023px) {
  .buy-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--s6); align-items: start; }
  .buy-box > h2 { grid-column: 1 / -1; }
  .buy-box > .buy-main { grid-column: 1; }
  .buy-box > .buy-side { grid-column: 2; }
  .buy-box .buy-side .ticks { margin-top: 0; }
}
@media (min-width: 1024px) {
  .book-layout { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "hero buy" "inside buy" "details buy"; column-gap: var(--s9); align-items: start; padding-block: var(--s7) var(--s9); }
  .buy-box { position: sticky; top: calc(var(--header-h) + var(--s5)); box-shadow: var(--shadow-page); border-color: var(--line); }
}

/* 手机吸底购买栏（≥1024px 用右侧吸顶购买框，不显示）。书页和套装页用它替掉底部标签栏。 */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: var(--s3); padding: var(--s2) max(var(--gutter), env(safe-area-inset-right)) calc(var(--s2) + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); min-height: calc(var(--buy-bar-h) + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line-strong); transition: transform 0.2s ease; }
.buy-bar.is-away { transform: translateY(100%); }
.buy-bar-price { flex: 1; min-width: 0; line-height: 1.3; display: flex; flex-direction: column; }
.buy-bar-price b { font-size: var(--fs-md); font-weight: 700; }
.buy-bar-price span { font-size: var(--fs-xs); color: var(--warn-text); }
.buy-bar .btn { min-height: 48px; padding-inline: var(--s4); }
@media (min-width: 1024px) { .buy-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .buy-bar { transition: none; } }

/* 书页正文 */
.book-section h2 { margin-bottom: var(--s4); }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: var(--s6); }
.ticks li::before { content: ""; position: absolute; left: var(--s1); top: 0.62em; width: 12px; height: 6px; border-left: 2px solid var(--accent, var(--brand)); border-bottom: 2px solid var(--accent, var(--brand)); transform: rotate(-45deg); }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding-left: var(--s4); position: relative; }
.plain-list a { display: inline-block; padding-block: var(--s2); }
.plain-list li:has(> a)::before { top: var(--s2); }
.plain-list li::before { content: "•"; position: absolute; left: 0; color: var(--brand); }

.toc { display: grid; gap: 0; }
.toc details { border-top: 1px solid var(--line); }
.toc details:last-child { border-bottom: 1px solid var(--line); }
.toc summary { cursor: pointer; padding: var(--s2) 0; display: flex; gap: var(--s3); align-items: baseline; list-style: none; min-height: 52px; align-content: center; flex-wrap: wrap; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: var(--fs-lg); line-height: 1; }
.toc details[open] summary::after { content: "−"; }
.toc .u-label { font-size: var(--fs-sm); color: var(--accent, var(--brand)); font-weight: 700; white-space: nowrap; }
.toc .u-name { font-weight: 600; }
.toc ol { margin: 0; padding: 0 0 var(--s3) 2.4em; }
.toc .is-sample { font-size: var(--fs-xs); font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 0 var(--s2); margin-left: var(--s2); white-space: nowrap; }
.toc-extra { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--muted); }

.phrases { display: grid; gap: var(--s3); padding: 0; list-style: none; }
.phrases li { border-left: 3px solid var(--accent, var(--brand)); padding: var(--s1) 0 var(--s1) var(--s4); margin: 0; }
.phrases .en { display: block; font-size: var(--fs-md); line-height: 1.4; }
.phrases .zh { display: block; font-size: var(--fs-sm); color: var(--muted); }
@media (min-width: 720px) { .phrases { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); } }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s1) var(--s4); margin: 0; font-size: var(--fs-sm); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }

/* ---------- 套装页：对照表 ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: var(--s4) var(--s3); border-bottom: 1px solid var(--line); }
.compare th { font-weight: 600; color: var(--muted); font-size: var(--fs-xs); border-bottom-color: var(--line-strong); }
.compare td:first-child { font-weight: 700; }
.compare td:first-child a { color: var(--ink); display: inline-block; padding-block: var(--s3); }
.compare .vol { display: block; }
@media (max-width: 719px) {
  .compare, .compare tbody, .compare tr, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tr { border-top: 1px solid var(--line); padding: var(--s3) 0; }
  .compare tr:last-child { border-bottom: 1px solid var(--line); }
  .compare td { border: 0; padding: var(--s1) 0; }
  .compare td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
}

/* ---------- 试读页 ---------- */
.sample-list { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.sample-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s4); padding-top: var(--s4); border-top: 3px solid var(--accent); }
.sample-card .cover-link { display: block; align-self: start; border-radius: 3px; box-shadow: var(--shadow-page); }
.sample-card img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 1243; border-radius: 3px; }
.sample-card h2 { font-size: var(--fs-md); margin: 0 0 var(--s2); }
.sample-card p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s3); }
.sample-card .vol { margin: 0; }
.sample-card .actions { gap: var(--s2); }
.sample-card .btn { background: var(--accent); }
.sample-card .btn:hover { filter: brightness(0.88); }
.sample-card .btn-ghost { background: transparent; color: var(--ink); }
.sample-card .btn-ghost:hover { background: var(--bg-soft); filter: none; }
@media (min-width: 1000px) { .sample-list { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: var(--s7); } .sample-card { grid-template-columns: 1fr; } .sample-card .cover-link { width: 140px; } }

/* ---------- 信息块、页头、长文 ---------- */
.note { background: var(--bg-soft); border-radius: var(--radius); padding: var(--s4); font-size: var(--fs-sm); }
.note h2, .note h3 { font-size: var(--fs-base); margin-bottom: var(--s2); }
.note > :first-child { margin-top: 0; }
.note-narrow { max-width: 44rem; }
@media (min-width: 720px) { .note { padding: var(--s4) var(--s5); } }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note-quiet { font-size: var(--fs-xs); color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s3); margin-top: var(--s3); }
.note-warn { background: var(--warn-bg); color: var(--warn-text); }
.note-draft { background: var(--warn-bg); border: 1px dashed var(--warn-line); color: var(--warn-text); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); margin-bottom: var(--s5); font-size: var(--fs-sm); }
.page-head { padding-block: var(--s6) var(--s3); }
.page-head h1 { margin-bottom: var(--s3); }
.page-head p { color: var(--muted); max-width: 44rem; margin-bottom: 0; }
.page-head + .section, .page-head + .section-tight { padding-top: var(--s4); }
.title-zh { color: var(--muted); }

/* ---------- 状态页（付款结果、下载页）---------- */
.state-wrap { padding-block: var(--s6) var(--s8); }
.state-card { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--s5); max-width: 40rem; margin-inline: auto; }
.state-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-md); margin-bottom: var(--s3); font-weight: 700; }
.state-ok .state-icon { background: var(--success-bg); color: var(--success-text); }
.state-wait .state-icon { background: var(--info-bg); color: var(--info-text); }
.state-bad .state-icon { background: var(--error-bg); color: var(--error-text); }
.state-card h1 { font-size: var(--fs-lg); }
.order-no { font-family: var(--font-mono); overflow-wrap: anywhere; }
.state-wrap > .prose { margin-inline: auto; }

.lib-order { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--s5); margin-bottom: var(--s5); }
.lib-order h2 { font-size: var(--fs-md); margin-bottom: var(--s1); }
.lib-items { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s3); }
.lib-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s4); align-items: start; border-top: 1px solid var(--line); padding-top: var(--s4); margin: 0; }
.lib-item img { width: 64px; height: auto; aspect-ratio: 960 / 1243; border-radius: 3px; box-shadow: var(--shadow-page); }
.lib-item h3 { font-size: var(--fs-base); margin-bottom: var(--s1); }
.lib-item .meta { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s3); }
.lib-item .sha { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); overflow-wrap: anywhere; }

/* ---------- 表单 ---------- */
label { display: grid; gap: var(--s2); font-weight: 600; font-size: var(--fs-sm); }
label.check { display: flex; align-items: center; gap: var(--s2); font-weight: 500; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); width: 100%; min-height: 48px; padding: var(--s2) var(--s3); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
input[type="checkbox"], input[type="radio"] { width: 20px; min-height: 0; height: 20px; accent-color: var(--brand); }
textarea { resize: vertical; line-height: var(--leading); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.hint { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--s5); }
.form-card h1 { font-size: var(--fs-lg); }
.form-links { margin: var(--s4) 0 0; text-align: center; font-size: var(--fs-sm); }
.row-form { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; margin-bottom: var(--s4); }
.row-form input { flex: 1 1 10rem; }
.code-input { font-family: var(--font-mono); letter-spacing: 0.15em; max-width: 14rem; }
.divider { display: flex; align-items: center; gap: var(--s3); color: var(--muted); margin: var(--s4) 0; font-size: var(--fs-sm); }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-wrap { padding-block: var(--s6) var(--s8); }

/* ---------- 提示、徽章、表格（脚手架组件，后台也用）---------- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.alert { display: flex; align-items: flex-start; gap: var(--s3); justify-content: space-between; padding: var(--s3) var(--s4); margin-bottom: var(--s4); border-radius: var(--radius-sm); border: 1px solid; }
.alert-success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-line); }
.alert-error { background: var(--error-bg); color: var(--error-text); border-color: var(--error-line); }
.alert-info { background: var(--info-bg); color: var(--info-text); border-color: var(--info-line); }
.alert-close { background: none; border: 0; font-size: var(--fs-lg); line-height: 1; color: inherit; cursor: pointer; padding: 0 var(--s1); min-width: 44px; min-height: 44px; }
.flash-wrap:not(:empty) { padding-top: var(--s4); }
.badge { display: inline-block; white-space: nowrap; padding: 0 var(--s2); border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.badge-success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-line); }
.badge-danger { background: var(--error-bg); color: var(--error-text); border-color: var(--error-line); }
.badge-warn { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-line); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.pagination { display: flex; gap: var(--s4); align-items: center; justify-content: center; margin: var(--s5) 0; }
.error-page { padding-block: var(--s8); }
.error-code { font-size: var(--fs-xl); font-weight: 800; color: var(--line-strong); margin: 0; }
.debug { text-align: left; font-size: var(--fs-xs); max-height: 50vh; overflow: auto; }
.steps { display: grid; gap: var(--s4); padding-left: var(--s5); margin: 0; }
.qr { background: #fff; display: inline-block; padding: var(--s2); border-radius: var(--radius-sm); margin: var(--s3) 0; }
.qr svg { display: block; width: 200px; height: 200px; }
.secret { font-size: var(--fs-base); letter-spacing: 0.08em; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); padding: 0; list-style: none; }
.codes code { display: block; padding: var(--s2) var(--s3); background: var(--bg-soft); border-radius: var(--radius-sm); text-align: center; font-size: var(--fs-base); }

/* 后台小修：表头和短词不要一字一行 */
.page-admin .table th { white-space: nowrap; }
.page-admin a.stat { color: inherit; text-decoration: none; }
.page-admin a.stat:hover { border-color: var(--brand); }
.page-admin .table td:nth-child(2) { min-width: 6em; }
.page-admin .stack > .btn { justify-self: start; }
.page-admin code { white-space: nowrap; }
.page-admin .table td { overflow-wrap: normal; }
.page-admin .table td.mono, .page-admin .table .mono { overflow-wrap: anywhere; }
.page-admin .stack > .btn, .page-admin .stack > button { align-self: start; min-height: 44px; height: auto; }

/* ---------- 页脚（短）---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--muted); padding-block: var(--s6) var(--s5); font-size: var(--fs-sm); }
.site-footer a { color: var(--ink); }
.footer-top { display: grid; gap: var(--s3); }
.footer-brand .brand-name { color: var(--ink); display: block; }
.footer-brand p { margin: 0; color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-meta { border-top: 1px solid var(--line); margin-top: var(--s3); padding-top: var(--s4); font-size: var(--fs-xs); line-height: 1.7; }
.footer-meta p { margin: 0 0 var(--s1); }
@media (min-width: 900px) { .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s7); align-items: start; } }

/* ---------- 手机底部导航栏（窄屏显示，≥1000px 隐藏；书页、套装页由吸底购买栏代替）---------- */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
body.has-tab-bar { padding-bottom: calc(var(--tab-bar-h) + env(safe-area-inset-bottom)); }
body.has-buy-bar { padding-bottom: calc(var(--buy-bar-h) + env(safe-area-inset-bottom)); }
.tab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; min-height: calc(var(--tab-bar-h) + env(safe-area-inset-bottom)); padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: var(--bg); border-top: 1px solid var(--line); }
.tab-bar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1); min-height: var(--tab-bar-h); padding: var(--s1); color: var(--muted); text-decoration: none; font-size: var(--fs-xs); line-height: 1.3; }
.tab-bar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-bar svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-bar a[aria-current] { color: var(--brand); font-weight: 700; }
.tab-bar a[aria-current="page"] svg { stroke-width: 2.2; }
body.has-buy-bar .tab-bar { display: none; }
@media (min-width: 1000px) { .tab-bar { display: none; } body.has-tab-bar { padding-bottom: 0; } }
@media (min-width: 1024px) { body.has-buy-bar { padding-bottom: 0; } }

/* ---------- 灯箱 ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgb(12 20 16 / 0.92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px var(--s2) var(--s4); }
.lightbox-scroll { overflow: auto; max-width: 100%; max-height: calc(100vh - 112px); -webkit-overflow-scrolling: touch; border-radius: 4px; }
.lightbox img { display: block; max-width: min(94vw, 880px); max-height: calc(100vh - 120px); width: auto; height: auto; background: #fff; }
.lightbox.is-zoomed img { max-width: none; max-height: none; width: 1400px; }
.lightbox-caption { color: #eef2ee; font-size: var(--fs-sm); margin: var(--s3) 0 0; text-align: center; }
.lightbox-bar { position: absolute; top: var(--s3); left: var(--s3); right: var(--s3); display: flex; gap: var(--s2); justify-content: flex-end; }
.lightbox-bar button { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.4); background: rgb(0 0 0 / 0.4); color: #fff; font: inherit; font-size: var(--fs-sm); padding: 0 var(--s4); cursor: pointer; }
.lightbox-bar .lb-prev { margin-right: auto; }
html.lb-open { overflow: hidden; }

/* 语言切换下拉（脚手架组件，保留） */
.lang-switch summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }

@media print {
  .site-header, .tab-bar, .buy-bar, .site-footer, .mode-bar, .btn { display: none !important; }
  body { background: #fff; padding: 0; }
}
