/* 三册成人实用英语 · 网站样式（2026-12 改版：纸、墨、一点金）
   米色纸、深墨绿、衬线标题，和封面统一；只用系统字体，不加载网页字体。
   三册各用封面识别色（B1 #14554b、B2 #853d2d、B3 #324669）。--gold 只做细节，全页面积 ≤2%。
   手机优先，min-width 往大屏加。字号六档（--fs-*），间距按 4/8（--s*）。只做浅色。
   动效：只动 transform / opacity；「先隐藏再出现」只在 html.js-motion 下生效（没脚本时内容全可见）；减少动态时一律关掉。 */

:root {
  /* 颜色 */
  --bg: #fbf9f4;
  --bg-soft: #f3eee4;
  --card: #ffffff;
  --ink: #17211b;
  --muted: #55605a;
  --line: #e6e0d4;
  --line-strong: #cbc5b8;
  --gold: #a8864e;
  --gold-text: #7d5f2a;

  --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: 14px;
  --radius-sm: 8px;
  --card-shadow: 0 1px 2px rgb(40 30 10 / .04), 0 8px 24px rgb(40 30 10 / .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --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;
  --sec: 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-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, "Times New Roman", 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; --sec: 96px; }
}
@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; }

/* ---------- 基础 ---------- */
@keyframes fade-in { from { opacity: 0; } }
*, *::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) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  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, h2 { font-family: var(--font-serif); }
h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
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(--sec); }
.section-tight { padding-block: var(--s5) var(--s7); }
.section-soft { background: var(--bg-soft); }
.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: 680px; }
.prose p { margin-bottom: var(--s4); line-height: 1.85; }
.prose h2 { font-family: var(--font-serif); 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 { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-xs); font-weight: 600; color: var(--brand); margin: 0 0 var(--s3); }
.eyebrow::before { content: ""; flex: none; width: 24px; height: 1px; background: var(--gold); }
html[lang="en"] .eyebrow { letter-spacing: .08em; text-transform: uppercase; }
.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); }
.acc-sea { --accent: #1d5f73; --accent-soft: #e3eef2; }
.acc-plum { --accent: #6a3a5c; --accent-soft: #f3e8ef; }
.acc-amber { --accent: #8a5a12; --accent-soft: #f7eddc; }
.book-row img, .book-hero .cover img, .lib-item img, .strip-item img { object-fit: cover; }
/* 没有封面图的新商品：用商品色调画一个带书名的色块，比例和封面图一样 */
.cover-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 960 / 1243; padding: 10%; border-radius: 3px; background: var(--accent, var(--brand)); color: #fff; text-align: center; font-weight: 700; line-height: 1.4; font-size: var(--fs-sm); overflow: hidden; overflow-wrap: anywhere; }
.cover-ph span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.lib-item .cover-ph { width: 64px; padding: 6px; font-size: 10px; }

/* ---------- 测试/模拟提示条 ---------- */
.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; }
.site-header { transition: background-color .2s, border-color .2s; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.js-motion .site-header:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; }
.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: block; width: 6px; height: 24px; border-radius: 2px; background: var(--brand); flex: none; box-shadow: 3px 0 0 -1px var(--gold); }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; 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; }
/* 语言下拉：国旗 + 语言名 */
.flag { display: block; width: 20px; height: 14px; flex-shrink: 0; border-radius: 2px; box-shadow: 0 0 0 1px var(--line-strong); }
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding-inline: var(--s2); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); border-radius: var(--radius-sm); cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { background: var(--bg-soft); }
.lang-menu-caret { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.lang-menu[open] .lang-menu-caret { transform: rotate(180deg); }
.lang-menu .menu-panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 60; min-width: 160px; padding: var(--s1); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.lang-menu .menu-panel a { display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding-inline: var(--s3); color: var(--ink); text-decoration: none; border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.lang-menu .menu-panel a:hover { background: var(--bg-soft); }
.lang-menu .menu-panel a[aria-current="true"] { font-weight: 700; background: var(--bg-soft); }
.site-nav .lang-menu-nav { display: none; }
.lang-menu-quick { margin-left: auto; }
.lang-menu-quick .lang-menu-name { display: none; }
.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-menu-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:not(.btn) { position: relative; }
  .site-nav a:not(.btn)::after { content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .site-nav a:not(.btn):hover::after, .site-nav a:not(.btn):focus-visible::after { transform: scaleX(1); }
  .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-menu-nav { display: block; }
  .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; transition: transform .15s var(--ease), background-color .2s;
}
.btn:active { transform: scale(.98); }
.btn:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-outline, .btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover, .btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-outline { color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { color: var(--brand-hover); }
.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); transition: transform .2s var(--ease); }
.link-more:hover::after { transform: translateX(3px); }
.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-family: var(--font-serif); 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-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(--s4) var(--s6); }
.hero-grid { display: grid; gap: var(--s3); 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(--s2); }
.hero-lead { color: var(--muted); margin: 0; max-width: 34rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: var(--s4) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.hero-points li { margin: 0; }
.hero-points li + li::before { content: "·"; margin-inline: var(--s2); color: var(--gold); font-weight: 700; }
.hero-price { margin: var(--s2) 0 0; display: flex; flex-wrap: wrap; gap: 0 var(--s4); font-size: var(--fs-xs); color: var(--muted); }
.hero-price b { color: var(--ink); font-weight: 700; }
.cover-fan { display: flex; align-items: flex-start; justify-content: center; width: 100%; max-width: 300px; margin-inline: auto; padding-block: var(--s2); }
.cover-fan a { flex: 0 0 42%; display: block; border-radius: 4px; box-shadow: var(--shadow-book); position: relative; }
.cover-fan a + a { margin-left: -14%; }
.cover-fan a:nth-child(1) { transform: rotate(-5deg) translateY(8px); }
.cover-fan a:nth-child(2) { z-index: 2; transform: translateY(-4px); }
.cover-fan a:nth-child(3) { transform: rotate(5deg) translateY(8px); }
.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 (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: 520px; margin-inline: 0 auto; }
}
@media (min-width: 900px) {
  .hero { padding-block: var(--sec) calc(var(--sec) - var(--s5)); }
  .hero-grid { column-gap: var(--s9); }
}

/* ---------- 卡片（首页「卡在哪里」「试一句」共用）---------- */
.stuck-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.stuck-list li { margin: 0; }
.stuck-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); padding: var(--s5); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.stuck-q { display: block; margin: 0 0 var(--s3); }
.stuck-go { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: var(--accent); font-weight: 600; font-size: var(--fs-sm); }
.stuck-go::after { content: "→"; margin-left: var(--s1); transition: transform .2s var(--ease); }
.stuck-link:hover .stuck-go::after { transform: translateX(3px); }
.quiz { margin-top: var(--s6); padding: var(--s5); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.quiz h3 { margin-bottom: var(--s1); }
.quiz p { margin: 0; }
.quiz-opts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3); padding: 0; margin: var(--s4) 0 0; }
.quiz-opts li { margin: 0; }
.quiz-opts a { display: inline-flex; align-items: center; min-height: 48px; padding: var(--s1) var(--s5); border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-weight: 600; text-decoration: none; transition: background-color .2s; }
.quiz-opts a:hover { background: var(--accent-soft); }
@media (min-width: 720px) { .stuck-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); } }

/* ---------- 签名：翻开看看（真实内页的横向滑动条）---------- */
.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-track { --mL: 0px; --mR: 0px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--mL), #000 calc(100% - var(--mR)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--mL), #000 calc(100% - var(--mR)), transparent); }
.strip.can-prev .strip-track { --mL: 32px; }
.strip.can-next .strip-track { --mR: 32px; }
.strip-btn { transition: opacity .2s; 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.3; cursor: default; }
@media (hover: hover) { .strip-btn { opacity: 0; } .strip:hover .strip-btn, .strip-btn:focus-visible { opacity: 1; } .strip:hover .strip-btn[disabled] { opacity: 0.3; } }
.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; } }

/* ---------- 试一句（<details>：没有脚本时默认展开）---------- */
.try-grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
.try { display: flex; flex-direction: column; padding: var(--s5); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.try-scene { margin: 0 0 var(--s3); font-size: var(--fs-sm); color: var(--muted); }
.try-heard { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); background: var(--accent-soft); border-radius: var(--radius-sm); }
.try-heard p { margin: 0; font-family: var(--font-serif); font-size: var(--fs-md); line-height: 1.45; }
.try-heard .try-who { font-family: var(--font); font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s1); }
.try-ans:not([open]) { margin-top: auto; }
.try-ans summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: var(--s1) var(--s4); border: 1px solid var(--accent); border-radius: 10px; color: var(--accent); font-weight: 600; cursor: pointer; transition: background-color .2s, transform .15s var(--ease); }
.try-ans summary::-webkit-details-marker { display: none; }
.try-ans summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
.try-ans[open] summary::after { transform: rotate(-135deg); }
.try-ans summary:hover { background: var(--accent-soft); }
.try-ans summary:active { transform: scale(.98); }
.try-body { padding-top: var(--s4); }
.try-ans[open] .try-body { animation: fade-in .3s var(--ease); }
.try-replies { list-style: none; display: grid; gap: var(--s3); padding: 0; margin: 0 0 var(--s4); }
.try-replies li { margin: 0; padding-left: var(--s3); border-left: 2px solid var(--accent); }
.try-replies .en { display: block; font-size: var(--fs-md); font-weight: 600; line-height: 1.4; }
.try-replies .zh { display: block; font-size: var(--fs-sm); color: var(--muted); }
.try-tip { margin: 0 0 var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.try-link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
.tryline .try-grid.is-single { max-width: 40rem; }
@media (min-width: 720px) { .try-grid:not(.is-single) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); } }

/* ---------- 首页：每一课怎么练（大序号步骤条）---------- */
.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(--s4) 56px; }
.lesson-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: var(--s3); width: 40px; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--gold-text); }
.lesson-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 3.4rem; bottom: .3rem; width: 1px; background: var(--gold); opacity: .45; }
.lesson-steps h3 { font-size: var(--fs-base); font-weight: 700; margin: 0 0 var(--s1); }
.lesson-steps p { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.65; }
@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 { padding: var(--s7) 0 0; border-top: 1px solid var(--line-strong); }
  .section .lesson-steps li::before { top: var(--s3); font-size: 2rem; }
  .section .lesson-steps li::after { display: none; }
}

/* ---------- 选书：三列封面卡片 + 套装横幅 ---------- */
.tiles { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
.tile { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s4); align-items: start; padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.tile-cover { display: block; border-radius: 3px; box-shadow: var(--shadow-book); }
.tile-cover img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 1243; border-radius: 3px; }
.tile h3 { font-family: var(--font-serif); font-size: var(--fs-md); margin: 0 0 var(--s1); }
.tile h3 a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.tile h3 a:hover { color: var(--accent); text-decoration: underline; }
.tile-en { margin: 0 0 var(--s2); font-size: var(--fs-xs); color: var(--muted); }
.tile-line { margin: 0 0 var(--s3); font-size: var(--fs-sm); color: var(--muted); line-height: 1.65; }
.tile-meta { margin: 0 0 var(--s3); font-size: var(--fs-xs); color: var(--muted); }
.tile-price { margin: 0 0 var(--s3); font-size: var(--fs-md); }
.tile .actions { gap: var(--s2); }
.tile .btn:not(.btn-ghost) { background: var(--accent); }
.tile .btn:not(.btn-ghost):hover { filter: brightness(0.88); }
.tile .btn-ghost { color: var(--ink); }
@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
  .tile { grid-template-columns: minmax(0, 1fr); padding: var(--s4); }
  .tile-cover { width: min(220px, 100%); margin: var(--s2) auto var(--s2); }
}
@media (min-width: 900px) { .tile { padding: var(--s5); } }
.set-banner { display: grid; gap: var(--s4); align-items: center; margin-top: var(--s5); padding: var(--s5); background: var(--bg-soft); border: 1px solid var(--gold); border-radius: var(--radius); }
.set-covers { display: flex; justify-content: center; max-width: 240px; padding-left: 12px; }
.set-covers img, .set-covers .cover-ph { width: 84px; height: auto; flex: none; aspect-ratio: 960 / 1243; border-radius: 3px; box-shadow: var(--shadow-book); }
.set-covers > * + * { margin-left: -22px; }
.set-copy h3 { font-family: var(--font-serif); font-size: var(--fs-md); margin: 0 0 var(--s1); }
.set-copy p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.set-price { font-family: var(--font-serif); color: var(--ink); font-size: var(--fs-md); margin-left: var(--s2); }
@media (min-width: 720px) { .set-banner { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s6); } }

/* ---------- 买得放心（窄条）· 收尾行动条 ---------- */
.trust { background: var(--card); border-block: 1px solid var(--line); padding-block: var(--s5); }
.trust-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: 0; margin: 0; }
.trust-list li { display: flex; align-items: flex-start; gap: var(--s3); margin: 0; font-size: var(--fs-sm); line-height: 1.5; }
.trust-list svg { flex: none; margin-top: 2px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-list a, .trust-list span { display: flex; align-items: center; min-height: 44px; color: var(--ink); }
.trust-list a { text-decoration-color: var(--line-strong); }
@media (min-width: 720px) { .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); } }
.final-cta { background: var(--brand); color: #fff; padding-block: var(--s7); }
.final-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); }
.final-cta h2 { color: #fff; margin: 0; }
.final-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-hover); }
.final-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; text-underline-offset: 4px; }

/* ---------- 全部书籍 / 其他书籍：书行（卡片）---------- */
.book-rows { display: grid; gap: var(--s4); }
.book-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s4); padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.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-family: var(--font-serif); 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 .btn:not(.btn-ghost) { background: var(--accent); }
.book-row .btn:not(.btn-ghost):hover { filter: brightness(0.88); }
.book-row .btn-ghost { color: var(--ink); }
.set-block { background: var(--bg-soft); border: 1px solid var(--gold); border-radius: var(--radius); padding: var(--s4); align-self: start; }
.set-block h3 { font-family: var(--font-serif); font-size: var(--fs-md); margin-bottom: var(--s1); }
.set-block p { margin-bottom: var(--s3); }
.set-block .price-line { margin-bottom: var(--s2); }

/* ---------- 常见问题（手风琴）---------- */
.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; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] .answer { animation: fade-in .3s var(--ease); }
.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" "try" "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; }
.tryline { grid-area: try; min-width: 0; }
.tryline .section-head { margin-bottom: var(--s4); }
.buy-box { grid-area: buy; }
.book-details { grid-area: details; display: grid; gap: var(--s8); min-width: 0; }
.book-hero .cover { width: min(66%, 260px); margin-inline: auto; }
.book-hero .cover a { display: block; border-radius: 4px; box-shadow: 0 2px 4px rgb(40 30 10 / .14), 0 18px 40px rgb(40 30 10 / .22); }
.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); font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.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: 240px 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(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); 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(--s2) 0 0; line-height: 1.6; }
.buy-box .fine a { display: inline-block; padding-block: var(--s3); }
.buy-box .btn + .btn, .buy-box form + .btn, .buy-box .btn + .not-on-sale { margin-top: var(--s2); }
.buy-box .ticks { font-size: var(--fs-sm); color: var(--muted); margin: var(--s4) 0; }
.buy-box .btn-mm { margin-top: var(--s3); }
.not-on-sale { margin: var(--s2) 0 0; text-align: center; font-size: var(--fs-sm); color: var(--muted); }
.set-hint { margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.set-hint a { font-weight: 600; }
.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); transition: transform .25s var(--ease); }
.buy-more[open] summary::after { transform: rotate(45deg); }
.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" "try 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)); }
}

/* 手机吸底购买栏（≥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 { transition: transform .3s var(--ease); }
.js-io .buy-bar:not(.is-in) { 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-family: var(--font-serif); font-size: var(--fs-md); font-weight: 700; }
.buy-bar .btn { min-height: 48px; padding-inline: var(--s5); }
@media (min-width: 1024px) { .buy-bar { display: 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; transition: transform .25s var(--ease); }
.toc details[open] summary::after { transform: rotate(45deg); }
.toc .u-label { font-family: var(--font-serif); font-size: var(--fs-base); color: var(--gold-text); font-weight: 700; white-space: nowrap; }
.toc .u-name { font-family: var(--font-serif); font-weight: 700; }
.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; }
}

/* ---------- 试读页 ---------- */

/* ---------- 信息块、页头、长文 ---------- */
.note { background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); 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: 680px; 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(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); 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 { background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); 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(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: var(--s5); }
.form-card h1 { font-family: var(--font-serif); font-size: var(--fs-lg); }
.login-card { max-width: 420px; }
.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(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); 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-family: var(--font-serif); font-size: var(--fs-xl); font-weight: 700; color: var(--gold); margin: 0; }
.error-page h1 { font-size: var(--fs-lg); }
.error-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }
.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); }
.footer-meta a { display: inline-flex; align-items: center; min-height: 44px; }
@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; }
  .rv { opacity: 1 !important; transform: none !important; }
}

/* ---------- 动态首屏（partials/hero-video.php；类名前缀 .vh）----------
   没配视频时首页还是上面那个 .hero，这一块完全不参与。
   文字一侧永远压一层用 --bg 调出来的渐变遮罩：浅色、深色主题各用自己的 --bg，对比度由遮罩而不是由视频内容保证。
   遮罩长度按 rem 写（跟着文字栏宽走，不跟着屏宽走），所以文字一直落在不透明的那一段里。 */
.vh { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius);
  --vh-veil: color-mix(in srgb, var(--bg) 93%, transparent); }
@supports not (background: color-mix(in srgb, red, blue)) { .vh { --vh-veil: var(--bg); } }

.vh--media { display: grid; align-items: center; min-height: clamp(26rem, 68svh, 38rem); background: var(--surface-2); }
.vh__media { position: absolute; inset: 0; }
.vh__media img, .vh__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; display: block; }
.vh__media video { opacity: 0; transition: opacity 0.6s ease; }
.vh__media video.is-playing { opacity: 1; }
.vh__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--vh-veil) 0, var(--vh-veil) 40rem, transparent 62rem); }

.vh__content { position: relative; padding: clamp(1.75rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem); }
.vh__content > * { max-width: 32rem; }
.vh__content h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); line-height: 1.12; letter-spacing: -0.01em; }
.vh__content .lead { color: var(--text); font-size: 1.15rem; }
html[lang="my"] .vh__content h1 { letter-spacing: normal; line-height: 1.8; }
/* 没有 poster 时 partial 只剩内容：当普通区块，不要固定高度和遮罩 */
.vh:not(.vh--media) .vh__content { padding: 2rem 0 2.5rem; }

@media (max-width: 700px) {
  .vh--media { align-items: end; min-height: 30rem; }
  .vh__media img, .vh__media video { object-position: 60% 30%; }
  .vh__media::after { background: linear-gradient(0deg, var(--vh-veil) 0, var(--vh-veil) 70%, transparent 100%); }
  .vh__content { padding-top: 11rem; }
}
/* 减少动态：不显示视频层（JS 也不会加载它），只留 poster */
@media (prefers-reduced-motion: reduce) {
  .vh__media video { display: none; }
}

/* ---------- 顾客账号（2026-12）：账号菜单、登录页、账号页 ----------
   导航里账号菜单有两份：手机在汉堡菜单里平铺（.account-flat），桌面是下拉（.account-menu）。 */
.account-menu { display: none; position: relative; }
.account-flat { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: var(--s2); padding-top: var(--s2); }
.account-email { margin: 0; padding: var(--s2) var(--s1); font-size: var(--fs-xs); color: var(--muted); overflow-wrap: anywhere; }
.account-flat form { margin: 0; }
.site-nav .account-logout, .menu-panel button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: var(--s2) var(--s1); font: inherit; font-size: var(--fs-base); color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.account-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: var(--fs-xs); font-weight: 700; flex: none; }
.account-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding-inline: var(--s2); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); border-radius: var(--radius-sm); cursor: pointer; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover { background: var(--bg-soft); }
.account-name { max-width: 6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu[open] .lang-menu-caret { transform: rotate(180deg); }
.site-nav .lang-menu-nav > summary { white-space: nowrap; }
.account-menu .menu-panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 60; width: 14rem; padding: var(--s1); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.account-menu .menu-panel .account-email { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); margin-bottom: var(--s1); }
.account-menu .menu-panel a, .account-menu .menu-panel button { display: flex; align-items: center; width: 100%; min-height: 44px; padding-inline: var(--s3); color: var(--ink); text-decoration: none; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 400; }
.account-menu .menu-panel a:hover, .account-menu .menu-panel button:hover { background: var(--bg-soft); }
.account-menu .menu-panel form { margin: 0; }
@media (min-width: 1000px) {
  .account-menu { display: block; }
  .account-flat { display: none; }
}
.staff-login > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.staff-login[open] > summary { color: var(--ink); }
.login-card .hint a, .danger-zone a { text-decoration: underline; text-underline-offset: 3px; }
.account-wrap { padding-block: var(--s2) var(--s4); }
.account-wrap .card h2 { font-size: var(--fs-md); }
.danger-zone { border-color: var(--error-line); }
.danger-zone .btn-danger { justify-self: start; }

/* ==== say pages ==== 场景句子（/say、/say/<slug>、partials/say-links）。自成一块：只用这里的 .say-* 类，颜色变量带兜底值。 */
.say-acc-b1 { --say-accent: var(--b1, #14554b); --say-soft: var(--b1-soft, #e3efec); }
.say-acc-b2 { --say-accent: var(--b2, #853d2d); --say-soft: var(--b2-soft, #f6e9e5); }
.say-acc-b3 { --say-accent: var(--b3, #324669); --say-soft: var(--b3-soft, #e7ebf4); }
.say-acc-bundle, .say-acc-sea, .say-acc-plum, .say-acc-amber { --say-accent: var(--brand, #1e5b34); --say-soft: var(--brand-soft, #e8f1ea); }
.say-page, .say-index { max-width: 44rem; padding-block: var(--s6) var(--s8); }
.say-index { max-width: var(--container, 1120px); padding-top: var(--s4); }
.say-head { margin-bottom: var(--s5); }
.say-crumb { margin: 0 0 var(--s2); font-size: var(--fs-sm); }
.say-crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.say-head .vol, .say-group .vol { color: var(--say-accent); }
.say-head h1 { margin-bottom: 0; }
.say-block { margin-bottom: var(--s6); }
.say-block h2, .say-links h2 { font-size: var(--fs-md); }
.say-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.say-lines li { margin: 0; padding: var(--s1) 0 var(--s1) var(--s4); border-left: 3px solid var(--say-accent); }
.say-lines p { margin: 0; }
.say-lines .say-en { font-size: var(--fs-md); line-height: 1.45; font-weight: 600; }
.say-zh { color: var(--muted); font-size: var(--fs-sm); }
.say-tip { margin-top: var(--s1); font-size: var(--fs-sm); }
.say-dialogue { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.say-dialogue li { margin: 0; display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: var(--s3); align-items: baseline; }
.say-who { font-size: var(--fs-xs); font-weight: 700; color: var(--say-accent); overflow-wrap: anywhere; }
.say-say { display: grid; gap: 2px; min-width: 0; }
.say-cta { background: var(--say-soft); border-radius: var(--radius); padding: var(--s5); margin-bottom: var(--s6); }
.say-cta h2 { font-size: var(--fs-md); margin-bottom: var(--s2); }
.say-cta p { font-size: var(--fs-sm); }
.say-group { margin-bottom: var(--s7); }
.say-group h2 { font-size: var(--fs-lg); padding-top: var(--s3); border-top: 3px solid var(--say-accent); }
.say-group h2 .vol { font-size: var(--fs-sm); }
.say-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.say-list li { margin: 0; border-bottom: 1px solid var(--line, #e3e7e3); }
.say-item { display: grid; gap: 2px; min-height: 44px; padding: var(--s3) 0; text-decoration: none; color: var(--ink); }
.say-item:hover .say-q { color: var(--say-accent); text-decoration: underline; }
.say-q { font-weight: 600; line-height: 1.45; }
.say-meta { font-size: var(--fs-xs); color: var(--muted); }
.say-links { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line, #e3e7e3); }
.say-links-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.say-links-list li { margin: 0; }
.say-links-list a { display: flex; align-items: center; min-height: 44px; padding-block: var(--s1); }
@media (min-width: 720px) {
  .say-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s7); }
  .say-dialogue li { grid-template-columns: 5rem minmax(0, 1fr); }
/* ---------- 动效（克制；只动 transform / opacity；减少动态时全部关闭）---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fan-l { from { transform: translateX(40px) rotate(0); } }
  @keyframes fan-m { from { transform: scale(.96); } }
  @keyframes fan-r { from { transform: translateX(-40px) rotate(0); } }
  .hero .cover-fan a:nth-child(1) { animation: fan-l .6s var(--ease) backwards; }
  .hero .cover-fan a:nth-child(2) { animation: fan-m .6s var(--ease) 80ms backwards; }
  .hero .cover-fan a:nth-child(3) { animation: fan-r .6s var(--ease) 160ms backwards; }
  .strip-track { scroll-behavior: smooth; }
  /* 页面之间的过渡：封面从首页「飞」到商品页（名字见下面 .vt-*，同一页里每个名字只出现一次） */
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }
  /* 「试一句」答案区高度展开（不支持的浏览器直接显示） */
  @supports selector(::details-content) {
    :root { interpolate-size: allow-keywords; }
    .try-ans::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
    .try-ans[open]::details-content { block-size: auto; }
  }
  /* 滚动出现：只在 html.js-motion 下先隐藏 */
  .js-motion .rv { opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .js-motion .rv.is-in { opacity: 1; transform: none; }
  .js-motion .rv:nth-child(2) { transition-delay: 60ms; }
  .js-motion .rv:nth-child(3) { transition-delay: 120ms; }
  .js-motion .rv:nth-child(4) { transition-delay: 180ms; }
  .js-motion .rv:nth-child(5) { transition-delay: 240ms; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cover-fan a { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
  .cover-fan a:hover { z-index: 3; transform: translateY(-8px) rotate(0); box-shadow: 0 2px 4px rgb(23 33 27 / .14), 0 22px 40px rgb(23 33 27 / .28); }
  .cover-fan:has(a:nth-child(2):hover) a:nth-child(1) { transform: rotate(-5deg) translate(-12px, 8px); }
  .cover-fan:has(a:nth-child(2):hover) a:nth-child(3) { transform: rotate(5deg) translate(12px, 8px); }
  .cover-fan:has(a:nth-child(1):hover) a:nth-child(2) { transform: translate(12px, -4px); }
  .cover-fan:has(a:nth-child(3):hover) a:nth-child(2) { transform: translate(-12px, -4px); }
}
.vt-b1 { view-transition-name: cover-b1; }
.vt-b2 { view-transition-name: cover-b2; }
.vt-b3 { view-transition-name: cover-b3; }
.vt-bundle { view-transition-name: cover-bundle; }
.vt-thumb, .lightbox img { view-transition-name: lb-img; }
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
