/* ============================================================
   职场英语 · UI 原型样式
   零依赖、零构建。全部设计令牌集中在此，改一处即可全局换肤。
   ============================================================ */

/* 字体在 fonts.css 里以内嵌 base64 声明（族名 Literata）。
   这里不要再声明同名 @font-face —— 同名同权重的后声明会参与竞争，
   而 file:// 下外部 ttf 可能被 CORS 拦掉，结果是静默 fallback 到 Georgia。 */

:root {
  /* —— 纸张与墨色（沿用视频已定稿配色）—— */
  --paper: #f5f2e9;
  --paper-2: #fffdf8;
  --paper-3: #eee9dc;
  --ink: #2c2c2c;
  --ink-2: #4a4741;
  --ink-3: #6b665c;
  --ink-4: #9a9387;
  --rule: #e4ddcd;
  --rule-2: #d7cfbd;

  /* —— 强调色 —— */
  --amber: #9a5f2a;
  --amber-soft: #c8874a;
  --amber-wash: #f4e8da;
  --ok: #3f7d5a;
  --ok-wash: #e3efe7;
  --warn: #b4543a;
  --warn-wash: #f7e4dd;

  /* —— 字号（rem 基准，设置里三档整体缩放）—— */
  --fs-root: 16px;
  --f-en-lg: 1.55rem;
  --f-en: 1.06rem;
  --f-en-sm: 0.94rem;
  --f-zh: 0.875rem;
  --f-zh-sm: 0.78rem;
  --f-cap: 0.72rem;
  --f-h1: 1.42rem;
  --f-h2: 1.05rem;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  /* 英文：Literata 为主。末尾再挂一次中文字族，
     保证「职场英语」这类中英混排元素里的中文也统一到思源宋体。 */
  --en: "Literata", Georgia, "Times New Roman", "WESerif SC", serif;
  /* 中文：优先用内嵌的思源宋体子集（fonts.css），保证跨设备一致；
     子集不含的符号（→ ✓ ① 等）回落到系统字体——这是预期行为。 */
  --zh: "WESerif SC", -apple-system, BlinkMacSystemFont, "Hiragino Sans GB",
    "PingFang SC", "Microsoft YaHei", "Apple Symbols", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* IPA：Literata 与思源宋体都不含 IPA 扩展字符，
     必须挂一个覆盖完整的字体，否则会落到任意系统字体上，音标会花。 */
  --ipa: "Literata", "Charis SIL", "Doulos SIL", "Gentium Plus",
    "Lucida Grande", "Arial Unicode MS", "Menlo", serif;

  --shadow-1: 0 1px 2px rgba(60, 48, 30, 0.06), 0 4px 14px rgba(60, 48, 30, 0.05);
  --shadow-2: 0 8px 32px rgba(60, 48, 30, 0.1), 0 2px 6px rgba(60, 48, 30, 0.06);
}

/* 字号三档：改 --fs-root 即可整体缩放 */
[data-fs="sm"] { --fs-root: 14.5px; }
[data-fs="md"] { --fs-root: 16px; }
[data-fs="lg"] { --fs-root: 17.5px; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #23211d;
  color: #e8e3d8;
  font-family: var(--zh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   桌面外壳：左侧控制台 + 右侧手机
   ============================================================ */
.deck {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 296px 1fr;
  gap: 0;
}

.deck-panel {
  background: #1a1917;
  border-right: 1px solid #302d28;
  padding: 22px 20px 32px;
  overflow-y: auto;
  max-height: 100vh;
  position: sticky;
  top: 0;
}

.panel-brand {
  font-family: var(--en);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #f3efe6;
  margin: 0 0 2px;
}
.panel-sub {
  font-size: 11.5px;
  color: #8d8778;
  margin: 0 0 20px;
  line-height: 1.6;
}

.panel-label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f6a5e;
  margin: 18px 0 8px;
  font-weight: 600;
}

.pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pick button {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 13px;
  color: #b8b2a4;
  border: 1px solid transparent;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
  font-family: var(--zh);
}
.pick button:hover { background: #26241f; color: #eae5d9; }
.pick button[aria-current="true"] {
  background: #2e2a22;
  border-color: #453f33;
  color: #f7f2e7;
  font-weight: 600;
}
.pick button .idx {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #6f6a5e;
  min-width: 15px;
}
.pick button[aria-current="true"] .idx { color: var(--amber-soft); }

.seg {
  display: flex;
  gap: 3px;
  background: #26241f;
  border-radius: 8px;
  padding: 3px;
}
.seg button {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  flex: 1;
  text-align: center;
  cursor: pointer;
  font-size: 12.5px;
  /* 触摸目标不低于 32px */
  padding: 8px 4px;
  border-radius: 6px;
  color: #9a9487;
  font-family: var(--zh);
}
.seg button[aria-current="true"] { background: #3d382e; color: #f4efe4; font-weight: 600; }
.seg button:hover { color: #ddd7c9; }

.panel-note {
  margin-top: 22px;
  padding: 11px 12px;
  border-radius: 9px;
  background: #221f1a;
  border: 1px solid #33302a;
  font-size: 11px;
  line-height: 1.65;
  color: #8a8477;
}
.panel-note b { color: #b58a5c; font-weight: 600; }

/* 舞台 */
.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 26px 20px;
  background:
    radial-gradient(900px 600px at 50% 0%, rgba(122, 105, 78, 0.14), transparent 70%),
    #23211d;
  overflow: auto;
}

.stage-inner {
  transform-origin: center center;
}

/* 手机外壳 */
.phone {
  position: relative;
  width: 412px;
  height: 866px;
  border-radius: 56px;
  background: linear-gradient(160deg, #3a3630, #14130f 42%, #2a2722);
  padding: 11px;
  box-shadow:
    0 0 0 1.5px #4d4740,
    0 30px 70px rgba(0, 0, 0, 0.62),
    inset 0 0 1px 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 46px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-root);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* 灵动岛 */
.island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 27px;
  background: #0b0b0a;
  border-radius: 14px;
  z-index: 60;
  pointer-events: none;
}

/* 状态栏 */
.statusbar {
  flex: none;
  height: 46px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 25px 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  font-family: var(--zh);
  z-index: 55;
}
.statusbar .right { display: flex; align-items: center; gap: 5px; }
.statusbar .bars { display: flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.statusbar .bars i { display: block; width: 2.5px; background: var(--ink-2); border-radius: 1px; }
.statusbar .bars i:nth-child(1) { height: 3px; }
.statusbar .bars i:nth-child(2) { height: 5px; }
.statusbar .bars i:nth-child(3) { height: 7px; }
.statusbar .bars i:nth-child(4) { height: 9px; }
.statusbar .batt {
  width: 21px; height: 10.5px; border: 1.3px solid var(--ink-2);
  border-radius: 3px; position: relative; margin-left: 2px;
}
.statusbar .batt::after {
  content: ""; position: absolute; inset: 1.6px; right: 5px;
  background: var(--ink-2); border-radius: 1px;
}

/* ============================================================
   App 通用骨架
   ============================================================ */
.screen { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; }

.hdr {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 20px 12px;
  min-height: 46px;
}
.hdr h1 {
  font-family: var(--en);
  font-size: var(--f-h1);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.hdr .sub {
  font-size: var(--f-cap);
  color: var(--ink-4);
  margin: 3px 0 0;
  letter-spacing: 0.02em;
}
.hdr .grow { flex: 1; min-width: 0; }

.iconbtn {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--ink-3);
  flex: none;
  transition: background 0.14s, color 0.14s;
}
.iconbtn:hover { background: var(--paper-3); color: var(--ink); }
.iconbtn:active { background: var(--rule); }
.iconbtn svg { width: 19px; height: 19px; }

.body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 20px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-2) transparent;
}
.body::-webkit-scrollbar { width: 5px; }
.body::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 3px; }
.body::-webkit-scrollbar-track { background: transparent; }

/* 底部 Tab */
.tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 68px;
  border-top: 1px solid var(--rule);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
  padding-bottom: 6px;
  z-index: 30;
}
.tabbar button {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  /* 底部导航是最常看的文字，不能低于 11px */
  font-size: 11px;
  color: var(--ink-4);
  font-family: var(--zh);
  padding-top: 5px;
  transition: color 0.14s;
}
.tabbar button svg { width: 21px; height: 21px; }
.tabbar button[aria-current="true"] { color: var(--amber); font-weight: 600; }
.tabbar button:hover { color: var(--ink-2); }
.tabbar button[aria-current="true"]:hover { color: var(--amber); }

/* ============================================================
   屏 1 · 课程列表
   ============================================================ */
.hero {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 17px 18px 15px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -34px; top: -34px;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: var(--amber-wash);
  opacity: 0.55;
}
.hero-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.ring { width: 58px; height: 58px; flex: none; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .val {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--en);
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.hero-txt { min-width: 0; }
.hero-txt h2 { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }
.hero-txt p { margin: 4px 0 0; font-size: var(--f-zh-sm); color: var(--ink-3); line-height: 1.5; }
.hero-cta {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  background: var(--ink);
  color: #f8f4ea;
  font-size: var(--f-zh);
  font-weight: 600;
  font-family: var(--zh);
  position: relative; z-index: 1;
  transition: transform 0.12s, opacity 0.12s;
}
.hero-cta:hover { opacity: 0.92; }
.hero-cta:active { transform: scale(0.985); }
.hero-cta svg { width: 15px; height: 15px; }

.unit { margin-bottom: 20px; }
.unit-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 9px;
  padding: 0 2px;
}
.unit-head .u {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: var(--amber-wash);
  padding: 2.5px 6px;
  border-radius: 5px;
  font-weight: 600;
  position: relative; top: -1px;
}
.unit-head h3 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.unit-head .n { margin-left: auto; font-size: var(--f-cap); color: var(--ink-4); font-family: var(--mono); }

.lessons { display: flex; flex-direction: column; gap: 7px; }

.lesson-row {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  transition: border-color 0.14s, transform 0.12s, box-shadow 0.14s;
  position: relative;
}
.lesson-row:hover { border-color: var(--rule-2); box-shadow: var(--shadow-1); }
.lesson-row:active { transform: scale(0.99); }
.lesson-row[data-active="true"] { border-color: var(--amber-soft); background: #fffaf0; }
.lesson-row[data-todo="true"] { opacity: 0.72; }

.lr-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  width: 20px;
  flex: none;
  text-align: center;
}
.lesson-row[data-active="true"] .lr-num { color: var(--amber); font-weight: 700; }
.lr-main { flex: 1; min-width: 0; }
.lr-en {
  font-family: var(--en);
  font-size: var(--f-en-sm);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lr-zh {
  font-size: var(--f-zh-sm);
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lr-meta {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.pill {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--paper-3);
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pill[data-tone="a"] { background: var(--ok-wash); color: var(--ok); }
.pill[data-tone="b"] { background: var(--amber-wash); color: var(--amber); }
.pill[data-tone="c"] { background: var(--warn-wash); color: var(--warn); }
.pill[data-tone="todo"] { background: transparent; color: var(--ink-4); border: 1px dashed var(--rule-2); }

/* ============================================================
   屏 2 · 课程页
   ============================================================ */
.lines { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }

.line-row {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  display: block;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.line-row:hover { background: var(--paper-2); }
.line-row[data-active="true"] {
  background: #fffaf0;
  border-color: var(--rule-2);
}
.line-row[data-active="true"]::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 2.5px;
  border-radius: 2px;
  background: var(--amber);
}
.line-en {
  font-family: var(--en);
  font-size: var(--f-en);
  line-height: 1.52;
  color: var(--ink);
  letter-spacing: 0.002em;
}
.line-row[data-active="true"] .line-en { color: var(--ink); }
.line-row:not([data-active="true"]) .line-en { color: var(--ink-2); }
.line-en .hl { color: var(--amber); font-weight: 700; }
.line-row[data-active="true"] .line-en .hl { background: var(--amber-wash); border-radius: 3px; padding: 0 2px; }

.line-zh {
  font-size: var(--f-zh);
  color: var(--ink-3);
  line-height: 1.55;
  margin-top: 6px;
  display: none;
}
.line-row[data-active="true"] .line-zh,
[data-zh="always"] .line-zh { display: block; }
[data-zh="hidden"] .line-zh { display: none !important; }
[data-zh="tap"] .line-zh { display: none; }
[data-zh="tap"] .line-row[data-active="true"] .line-zh { display: block; }


.section-t {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 10px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.03em;
}
.section-t::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.section-t .cnt { font-family: var(--mono); font-size: 11px; color: var(--ink-4); font-weight: 400; }

/* —— 右下悬浮播放按钮（Willie 2026-10-24）——
     - 单个 56px 深色圆形按钮，播放 / 暂停
     - 默认停在右下（右 18px、距标签栏 16px），**可拖动**到屏内任意位置
     - 拖动时加 .dragging：放大一点 + 加深阴影，明确「抓住了」
     - .body 底部留白按「按钮高 56 + 距标签栏 16 + 余量」推算，防遮挡 */
.fab-dock {
  position: absolute;
  right: 18px;
  bottom: 84px;
  z-index: 25;
  touch-action: none;   /* 拖动时不触发页面滚动 */
}
.fab {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局 border-box */
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.12s ease, box-shadow 0.16s ease, opacity 0.15s;
  user-select: none;
  -webkit-user-select: none;
}
.fab-main {
  width: 56px;
  height: 56px;
  background: var(--ink);
  color: #f8f4ea;
  box-shadow: 0 6px 18px rgba(44, 44, 44, 0.26), 0 2px 5px rgba(44, 44, 44, 0.16);
}
.fab-main svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.fab:hover { opacity: 0.93; }
.fab:active { transform: scale(0.94); }
/* 拖动中：跟手、放大、阴影加深 */
.fab-dock[data-dragging="true"] .fab-main {
  cursor: grabbing;
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(44, 44, 44, 0.34), 0 3px 8px rgba(44, 44, 44, 0.2);
  opacity: 1;
}

/* 有悬浮按钮的页面，底部多留空间，防止最后一条内容被遮。
   按钮高 56 + 距标签栏 16 = 72px，留 88px 稳妥。 */
.body.has-fab { padding-bottom: 88px; }

/* ============================================================
   屏 3 · 短语卡
   ============================================================ */
.pcard {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 15px 16px;
  margin-bottom: 11px;
  box-shadow: var(--shadow-1);
}
/* 课程页内联的短语卡列表：末卡去掉尾部外边距，避免和页面底部留白叠加 */
.pcard-list > .pcard:last-child { margin-bottom: 0; }
.pcard-top { display: flex; align-items: flex-start; gap: 10px; }
.pcard-en {
  font-family: var(--en);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  flex: 1;
  letter-spacing: -0.005em;
}
.pcard-ipa {
  font-family: var(--ipa);
  font-size: 0.83rem;
  color: var(--ink-3);
  margin-top: 5px;
  letter-spacing: 0.01em;
}
.pcard-zh {
  font-size: var(--f-zh);
  color: var(--ink-2);
  margin-top: 7px;
  line-height: 1.5;
  font-weight: 500;
}
.pcard-ex {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px dashed var(--rule);
}
.pcard-ex .en {
  font-family: var(--en);
  font-size: var(--f-en-sm);
  color: var(--ink-2);
  line-height: 1.5;
}
.pcard-ex .zh { font-size: var(--f-zh-sm); color: var(--ink-4); margin-top: 4px; line-height: 1.5; }

.src-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.src-badge {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--ok-wash);
  color: var(--ok);
  font-family: var(--zh);
  font-weight: 600;
  border: 1px solid rgba(63, 125, 90, 0.18);
  transition: background 0.14s;
}
.src-badge:hover { background: #d6e8dd; }
.src-badge svg { width: 10px; height: 10px; }
.src-date { font-size: 11px; color: var(--ink-4); font-family: var(--mono); }
.src-note { font-size: 11px; color: var(--ink-4); }

/* 来源弹层 */
.sheet-mask {
  position: absolute; inset: 0;
  background: rgba(28, 26, 22, 0.4);
  backdrop-filter: blur(2px);
  z-index: 70;
  display: none;
  align-items: flex-end;
}
.sheet-mask[data-open="true"] { display: flex; animation: fade 0.16s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  width: 100%;
  background: var(--paper-2);
  border-radius: 20px 20px 0 0;
  padding: 18px 20px 22px;
  animation: slideUp 0.22s cubic-bezier(0.22, 0.8, 0.3, 1);
  max-height: 76%;
  overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(28px); } to { transform: translateY(0); } }
.sheet-grab {
  width: 34px; height: 4px; border-radius: 2px;
  background: var(--rule-2); margin: 0 auto 14px;
}
.sheet h3 {
  margin: 0 0 4px;
  font-family: var(--en);
  font-size: 1.12rem;
  color: var(--ink);
}
.sheet .s-ipa { font-family: var(--ipa); font-size: 0.82rem; color: var(--ink-3); margin-bottom: 13px; }
.sheet dl { margin: 0; display: grid; gap: 10px; }
.sheet dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 700;
  margin-bottom: 3px;
}
.sheet dd {
  margin: 0;
  font-size: var(--f-zh);
  color: var(--ink-2);
  line-height: 1.55;
  word-break: break-word;
}
.sheet dd.en { font-family: var(--en); font-size: var(--f-en-sm); }
.sheet .url {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  word-break: break-all;
  line-height: 1.5;
}
.sheet-close {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding: 11px;
  border-radius: 11px;
  background: var(--ink);
  color: #f8f4ea;
  font-size: var(--f-zh);
  font-weight: 600;
  font-family: var(--zh);
}

/* ============================================================
   屏 4 · 跟读
   ============================================================ */
.shadow-wrap { display: flex; flex-direction: column; height: 100%; }
.shadow-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4px;
}
.shadow-idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 16px;
}
.shadow-en {
  font-family: var(--en);
  font-size: var(--f-en-lg);
  line-height: 1.44;
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.004em;
}
.shadow-en .hl { color: var(--amber); font-weight: 700; }
.shadow-zh {
  font-size: var(--f-zh);
  color: var(--ink-4);
  text-align: center;
  margin-top: 15px;
  line-height: 1.6;
}
[data-zh="hidden"] .shadow-zh { display: none; }

.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  height: 44px;
  margin: 22px 0 6px;
}
.wave i {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: var(--rule-2);
  height: var(--h, 20%);
  transition: background 0.2s;
}
.wave[data-playing="true"] i { background: var(--amber-soft); }
.wave-caption {
  text-align: center;
  font-size: 11px;
  color: var(--ink-4);
  font-family: var(--zh);
  letter-spacing: 0.02em;
}

.rec-actions {
  flex: none;
  display: flex;
  gap: 9px;
  padding: 16px 0 4px;
}
.btn {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 6px;
  border-radius: 13px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--zh);
  transition: border-color 0.14s, transform 0.1s, background 0.14s;
}
/* svg 默认 fill 是黑色；在深色按钮上会"黑底黑图"看不见。
   统一跟随 currentColor，纯填充图标（play/pause/heart…）尤其需要。 */
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn:hover { border-color: var(--rule-2); background: #fff; }
.btn:active { transform: scale(0.98); }
.btn[data-primary="true"] { background: var(--ink); border-color: var(--ink); color: #f8f4ea; }
.btn[data-primary="true"]:hover { background: #3d3a34; }
.btn[data-rec="true"] { color: var(--warn); }
.btn[data-rec="true"][data-on="true"] { background: var(--warn-wash); border-color: rgba(180, 84, 58, 0.3); }

.shadow-nav {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px 0;
  border-top: 1px solid var(--rule);
  margin-top: 10px;
}

.demo-note {
  flex: none;
  margin-top: 10px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f2eee2;
  border: 1px solid var(--rule);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-4);
}
.demo-note svg { width: 12px; height: 12px; flex: none; margin-top: 1px; opacity: 0.7; }

/* ============================================================
   屏 5 · 成片预览 + 抖音叠加（安全区）
   ============================================================ */
.preview-hint {
  font-size: 11px;
  color: var(--ink-4);
  line-height: 1.6;
  margin: 0 0 10px;
}

.vframe-outer {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.vframe {
  position: relative;
  width: 258px;
  height: 459px; /* 9:16 */
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(60, 48, 30, 0.16);
  isolation: isolate;
  flex: none;
}

/* 视频画面内容（这就是成片里的一帧）
   内边距从安全区变量推导，保证文字永远不出绿框 */
/* 整个画面内容都收进安全区：内边距 = 安全区四条边 + 一点内衬 */
.vf-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--safe-t, 54px) var(--safe-r, 40px) var(--safe-b, 100px) var(--safe-l, 31px);
}
.vf-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}
.vf-kicker {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.16em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.vf-en {
  font-family: var(--en);
  font-size: 15.5px;
  line-height: 1.46;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.vf-en .hl { color: var(--amber); font-weight: 700; }
.vf-zh {
  font-size: 9.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-top: 11px;
}
.vf-foot {
  display: flex;
  gap: 3px;
  flex: none;
  margin-top: 12px;
}
.vf-foot i {
  display: block;
  height: 2px;
  flex: 1;
  border-radius: 1px;
  background: var(--rule-2);
}
.vf-foot i[data-on="true"] { background: var(--amber); }

/* 安全区遮罩 */
.safemask { position: absolute; inset: 0; z-index: 40; display: none; }
.safemask[data-on="true"] { display: block; }
.safemask .zone {
  position: absolute;
  background: repeating-linear-gradient(
    45deg,
    rgba(180, 84, 58, 0.2),
    rgba(180, 84, 58, 0.2) 4px,
    rgba(180, 84, 58, 0.09) 4px,
    rgba(180, 84, 58, 0.09) 8px
  );
}
.safemask .zone[data-edge="top"] { left: 0; right: 0; top: 0; }
.safemask .zone[data-edge="bottom"] { left: 0; right: 0; bottom: 0; }
.safemask .zone[data-edge="left"] { left: 0; top: 0; bottom: 0; }
.safemask .zone[data-edge="right"] { right: 0; top: 0; bottom: 0; }
.safemask .box {
  position: absolute;
  border: 1px dashed rgba(63, 125, 90, 0.85);
  box-shadow: 0 0 0 2000px transparent;
}
.safemask .box::after {
  content: "安全区";
  position: absolute;
  top: -1px; left: -1px;
  font-size: 6px;
  padding: 1px 3px;
  background: rgba(63, 125, 90, 0.9);
  color: #fff;
  border-radius: 0 0 2px 0;
  letter-spacing: 0.05em;
}

/* 抖音 UI 模拟层 */
.dy { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.dy[data-on="false"] { display: none; }
.dy-top {
  position: absolute; top: 0; left: 0; right: 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.dy-top .t { opacity: 0.6; }
.dy-top .t[data-on="true"] { opacity: 1; font-weight: 700; color: #fff; }
.dy-top .t[data-on="true"]::after {
  content: ""; display: block; width: 11px; height: 1.5px;
  background: #fff; margin: 2px auto 0; border-radius: 1px;
}
.dy-rail {
  position: absolute;
  right: 6px;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.dy-rail .it {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  font-size: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.dy-rail .it svg { width: 17px; height: 17px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); }
.dy-rail .avatar {
  width: 25px; height: 25px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  border: 1.2px solid #fff;
  margin-bottom: 3px;
  position: relative;
}
.dy-rail .avatar::after {
  content: "+";
  position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: #fe2c55; color: #fff;
  font-size: 8px; line-height: 11px; text-align: center;
  font-weight: 700;
}
.dy-bottom {
  position: absolute;
  left: 8px; right: 44px; bottom: 8px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.dy-bottom .who { font-size: 8px; font-weight: 700; margin-bottom: 3px; opacity: 0.95; }
.dy-bottom .cap {
  font-size: 7px;
  line-height: 1.5;
  opacity: 0.88;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dy-bottom .music {
  display: flex; align-items: center; gap: 3px;
  font-size: 6.5px; margin-top: 4px; opacity: 0.8;
}
.dy-bottom .music svg { width: 7px; height: 7px; }
.dy-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 16%, transparent 62%, rgba(0, 0, 0, 0.42) 100%);
  pointer-events: none;
}

.safe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}
.safe-cell {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 9px;
  padding: 8px 10px;
}
.safe-cell .k { font-size: 9.5px; color: var(--ink-4); margin-bottom: 2px; }
.safe-cell .v {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.safe-cell .px { font-size: 9px; color: var(--ink-4); font-family: var(--mono); margin-top: 1px; }

.seg-row { display: flex; gap: 6px; margin-bottom: 12px; }
.seg-row .seg { flex: 1; }

/* ============================================================
   屏 6 · 设置
   ============================================================ */
.set-group {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}
.set-group > h3 {
  margin: 0;
  padding: 11px 15px 9px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 700;
  border-bottom: 1px solid var(--rule);
}
.set-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--rule);
}
.set-row:last-child { border-bottom: 0; }
.set-row .label { flex: 1; min-width: 0; }
.set-row .label .t { font-size: var(--f-zh); color: var(--ink); font-weight: 500; }
.set-row .label .d { font-size: 11px; color: var(--ink-4); margin-top: 2px; line-height: 1.45; }
.set-row .ctl { flex: none; }
.set-row .ctl .seg { min-width: 132px; }
.set-row .ctl .seg button { padding: 5px 9px; white-space: nowrap; }

.opt-list { display: flex; flex-direction: column; gap: 6px; padding: 10px 15px 13px; }
.opt {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  transition: border-color 0.14s, background 0.14s;
}
.opt:hover { border-color: var(--rule-2); background: #fff; }
.opt[data-on="true"] { border-color: var(--amber-soft); background: #fffaf0; }
.opt .dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--rule-2);
  flex: none;
  position: relative;
}
.opt[data-on="true"] .dot { border-color: var(--amber); }
.opt[data-on="true"] .dot::after {
  content: ""; position: absolute; inset: 2.5px;
  border-radius: 50%; background: var(--amber);
}
.opt .nm { flex: 1; min-width: 0; }
.opt .nm .a { font-family: var(--mono); font-size: 11.5px; color: var(--ink); font-weight: 600; }
.opt .nm .b { font-size: 11px; color: var(--ink-4); margin-top: 1px; }
.opt .tag2 {
  font-size: 11px; padding: 2px 5px; border-radius: 4px;
  background: var(--paper-3); color: var(--ink-3);
}
.opt .tag2[data-tone="rec"] { background: var(--ok-wash); color: var(--ok); }
.opt[data-disabled="true"] { opacity: 0.45; }

.switch {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  width: 48px; height: 30px;
  border-radius: 15px;
  background: var(--rule-2);
  position: relative;
  transition: background 0.18s;
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s;
}
.switch[data-on="true"] { background: var(--ok); }
.switch[data-on="true"]::after { transform: translateX(18px); }

.about {
  font-size: 11px;
  color: var(--ink-4);
  line-height: 1.75;
  padding: 4px 2px 10px;
}
.about b { color: var(--ink-3); font-weight: 600; }
.about code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--paper-3);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  /* 贴在 tabbar 上方，不能盖住正文（之前 bottom:96px 会压住易错点列表） */
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translate(-50%, 8px);
  background: rgba(38, 36, 30, 0.94);
  color: #f6f1e6;
  font-size: 12px;
  padding: 9px 15px;
  border-radius: 10px;
  max-width: min(320px, calc(100% - 32px));
  text-align: center;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  max-width: 84%;
  text-align: center;
  line-height: 1.45;
  backdrop-filter: blur(8px);
}
.toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   移动端：整屏铺满，隐藏控制台
   ============================================================ */
@media (max-width: 860px) {
  .deck { grid-template-columns: 1fr; }
  .deck-panel { display: none; }
  .stage { padding: 0; min-height: 100dvh; }
  .phone {
    width: 100vw; height: 100dvh;
    border-radius: 0; padding: 0;
    box-shadow: none; background: var(--paper);
  }
  .phone-screen {
    width: 100vw; height: 100dvh;
    border-radius: 0;
    /* 真机刘海 / 手势条要留位置，否则标题会顶到状态栏底下 */
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .island { display: none; }
  .statusbar { display: none; }
  /* 没有 statusbar 时，头部自己承担顶部留白 */
  .hdr { padding-top: 18px; }
}

/* ============================================================
   对比页
   ============================================================ */
.compare-wrap {
  padding: 30px 26px 60px;
  min-height: 100vh;
  background: #23211d;
}
.compare-head { max-width: 1360px; margin: 0 auto 26px; }
.compare-head h1 {
  font-family: var(--en);
  font-size: 24px;
  margin: 0 0 5px;
  color: #f4efe4;
  font-weight: 700;
}
.compare-head p { margin: 0; font-size: 12.5px; color: #8d8778; line-height: 1.65; }
.compare-head .back {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: #b58a5c;
  border-bottom: 1px solid rgba(181, 138, 92, 0.4);
}
.compare-grid {
  display: flex;
  gap: 34px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}
.compare-cell { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.compare-cell .cap2 {
  font-size: 11.5px;
  color: #a8a293;
  letter-spacing: 0.04em;
  font-family: var(--zh);
}
.compare-cell .cap2 b { color: #e8e3d8; font-weight: 600; }

@media (max-width: 1340px) {
  .compare-grid { transform-origin: top center; }
}

/* ============================================================
   内容库 · 课程包卡片
   ============================================================ */
.member-strip {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-radius: var(--radius);
  background: linear-gradient(102deg, #2f2a22 0%, #3d352a 58%, #4a3d2b 100%);
  color: #f6f1e6;
  margin-bottom: 18px;
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.member-strip::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(200, 135, 74, 0.16);
}
.member-strip[data-member="true"] { background: linear-gradient(102deg, #2a3329 0%, #35473444 100%); }
.member-strip[data-member="true"]::after { background: rgba(63, 125, 90, 0.18); }
.member-strip .ms-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(244, 239, 228, 0.14);
  display: grid; place-items: center;
  flex: none;
}
.member-strip .ms-icon svg { width: 18px; height: 18px; stroke: #e8c9a0; }
.member-strip[data-member="true"] .ms-icon svg { stroke: #9cc9ac; }
.member-strip .ms-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; position: relative; z-index: 1; }
.member-strip .ms-txt b { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.01em; }
.member-strip .ms-txt em { font-size: 11px; font-style: normal; color: rgba(246, 241, 230, 0.62); }
.member-strip .ms-go { flex: none; opacity: 0.5; display: grid; place-items: center; }
.member-strip .ms-go svg { width: 15px; height: 15px; }

.pack-list { display: flex; flex-direction: column; gap: 8px; }

/* ============================================================
   合辑卡片 = 一本书
   ------------------------------------------------------------
   结构：左侧「书脊」（装订边，带书名与册数）＋ 右侧「封面」。
   书脊用色带区分不同学科；封面沿用米色纸感 + 细分隔线，像书封。
   规划中的书：书脊改虚线、封面压暗、右下角盖「规划中」印章。
   ============================================================ */
.book {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(60, 48, 30, .05);
  transition: box-shadow .16s, border-color .16s, transform .12s;
}
.book:hover {
  border-color: var(--rule-2);
  box-shadow: 0 6px 20px rgba(60, 48, 30, .10);
}
.book:active { transform: translateY(1px); }

/* —— 书脊 —— */
/* 书脊高度跟随卡片（stretch），不能写死。
   —— 之前写死 118px，封面 151px，底部就空出 34px 一块（ Willie 截图指出）。
   —— 竖排书名过长也不会撑高卡片：靠 max-height + overflow 截断。 */
.book-spine {
  /* 页签宽度：62 → 56px（Willie 2026-10-24「页签可以窄一点」）。
     收窄后正文区拿到更多空间，页面更透气。 */
  width: 56px;
  align-self: stretch;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 标题在页签内垂直居中，编号固定贴底（见 .sp-num）。
     原来用 space-between：标题顶格、编号贴底，中间空出 38px，
     四个字在页签里显得头重脚轻。 */
  justify-content: center;
  padding: 12px 0 34px;   /* 底部 34px 给编号留位 */
  background: var(--rule-2);
  color: #fffdf8;
  position: relative;
}
/* 装订线的明暗交替，模拟书脊的凸起感 */
.book-spine::after {
  content: "";
  position: absolute;
  inset: 0 5px 0 auto;
  width: 1px;
  background: rgba(255, 255, 255, .28);
}
.book-spine .sp-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--zh);
  /* 原先 13px / 字距 .1em，四个字挤成 57px，整块偏小且密。
     书脊高 151px，纵向还剩 60 多 px 空着，所以放大字并拉开字距。
     max-height 必须同步放开，否则 4 字 × 18px 会被 72px 上限裁掉。 */
  font-size: 16px;
  font-weight: 600;
  /* 竖排字距 .14em → .2em：四个字不再挤成一串，更像书脊上的烫印标题 */
  letter-spacing: .2em;
  line-height: 1;
  opacity: .96;
  max-height: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-spine .sp-num {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  opacity: .78;
}
/* 不同学科的色带 */
.book-spine[data-tone="amber"]  { background: #9a5f2a; }
.book-spine[data-tone="sage"]   { background: #5c7a63; }
.book-spine[data-tone="slate"]  { background: #55605f; }
.book-spine[data-tone="clay"]   { background: #a8623f; }
.book-spine[data-tone="rose"]   { background: #8d5560; }
.book-spine[data-tone="olive"]  { background: #6b7141; }
.book-spine[data-tone="navy"]   { background: #3f5670; }
.book-spine[data-tone="teal"]   { background: #3d7573; }
.book-spine[data-tone="wine"]   { background: #7a4550; }
.book-spine[data-tone="gold"]   { background: #96762c; }

/* —— 封面 —— */
.book-cover {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 11px 14px 11px;
  gap: 2px;
}
.bc-series {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.bc-title {
  font-family: var(--en);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -.005em;
}
.bc-sub {
  font-family: var(--zh);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
}
/* 封面上的细横线，像书封的分隔线 */
.bc-rule {
  height: 1px;
  background: var(--rule);
  margin: 7px 0 5px;
}
.bc-topic {
  font-family: var(--zh);
  font-size: 12.5px;
  color: var(--ink-4);
  line-height: 1.45;
}
.bc-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bc-spec {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: .02em;
}
.bc-stamp {
  font-family: var(--zh);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  flex: none;
}
.bc-stamp[data-tone="ok"]   { background: #e3efe7; color: #3f7d5a; }
.bc-stamp[data-tone="try"]  { background: var(--amber-wash); color: var(--amber); }
.bc-stamp[data-tone="todo"] { background: var(--paper-3); color: var(--ink-4); }

/* 规划中的书：像"还没出版的样书" —— 书脊虚线、封面压暗 */
.book[data-coming="true"] .book-spine {
  /* 未出版的样书：淡灰纸底 + 虚线装订边。
     之前是全透明底，竖排书名直接贴在虚线上，看起来很挤很乱。 */
  background: #efece3;
  border-right: 2px dashed var(--rule-2);
  color: var(--ink-3);
}
.book[data-coming="true"] .book-spine::after {
  background: rgba(255, 255, 255, .7);
}
.book[data-coming="true"] .book-cover { opacity: .72; }
.book[data-coming="true"] .bc-title { color: var(--ink-3); font-weight: 600; }
.pay-hero, .member-on {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #322c23, #46392a 65%, #55432d);
  color: #f7f2e7;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.member-on { background: linear-gradient(100deg, #2a3329, #344734); }
.pay-hero::after, .member-on::after {
  content: "";
  position: absolute; right: -26px; top: -26px;
  width: 104px; height: 104px; border-radius: 50%;
  background: rgba(220, 170, 105, 0.13);
}
.ph-crown, .mo-badge {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: rgba(246, 241, 230, 0.14);
  display: grid; place-items: center;
  flex: none;
  position: relative; z-index: 1;
}
.ph-crown svg { width: 23px; height: 23px; stroke: #f0cfa2; }
.mo-badge svg { width: 21px; height: 21px; stroke: #a9d3b8; }
.ph-t, .mo-t { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.ph-t b, .mo-t b { font-size: 0.94rem; font-weight: 700; }
.ph-t em, .mo-t em { font-size: 11px; font-style: normal; color: rgba(246, 241, 230, 0.66); }

.benefit-list {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 6px;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--rule);
}
.benefit:last-child { border-bottom: 0; }
.b-ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--amber-wash);
  display: grid; place-items: center;
  flex: none;
}
.b-ico svg { width: 15px; height: 15px; stroke: var(--amber); }
.b-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.b-main b { font-size: var(--f-zh); color: var(--ink); font-weight: 600; }
.b-main em { font-size: 11px; font-style: normal; color: var(--ink-4); }
.b-free {
  font-size: 11px;
  color: var(--ink-4);
  /* 96px 会让"免费版：每包仅前 3 课"折成两行且断在奇怪位置 */
  max-width: 132px;
  text-align: right;
  line-height: 1.4;
  flex: none;
}
/* 只有一条有免费版限制时，给它更宽松的宽度，尽量单行 */
.benefit:only-of-type .b-free { max-width: 160px; }

.plan-list { display: flex; gap: 7px; margin-bottom: 16px; }
.plan {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  flex: 1;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  padding: 13px 8px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--paper-2);
  position: relative;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.plan:hover { border-color: var(--rule-2); }
.plan:active { transform: scale(0.985); }
.plan[data-on="true"] {
  border-color: var(--amber);
  background: #fffaf0;
  box-shadow: 0 0 0 3px rgba(154, 95, 42, 0.09);
}
.plan-badge {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--amber);
  color: #fffaf0;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.plan-name { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.plan[data-on="true"] .plan-name { color: var(--amber); }
.plan-price {
  font-family: var(--en);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1.1;
}
.plan-price i { font-size: 0.62rem; font-style: normal; font-weight: 600; }
.plan-price em { font-size: 9px; font-style: normal; color: var(--ink-4); font-weight: 400; }
.plan-note { font-size: 11px; color: var(--ink-4); }

.pay-cta {
  all: unset;
  box-sizing: border-box;  /* all:unset 会重置全局的 border-box */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  /* 价格卡删掉后，CTA 直接跟在权益列表下面，需要留出呼吸空间 */
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #f8f4ea;
  font-size: var(--f-zh);
  font-weight: 700;
  font-family: var(--zh);
  letter-spacing: 0.01em;
  transition: opacity 0.14s, transform 0.1s;
  margin-bottom: 12px;
}
.pay-cta:hover { opacity: 0.92; }
.pay-cta:active { transform: scale(0.99); }

/* 课列表里的锁 */
.lesson-row[data-locked="true"] .lr-en,
.lesson-row[data-locked="true"] .lr-zh { opacity: 0.5; }
.lesson-row[data-locked="true"] .lr-num {
  color: var(--ink-4);
}
.lr-lock {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  vertical-align: -1px;
  opacity: 0.55;
}
.lr-lock svg { width: 11px; height: 11px; stroke: var(--ink-4); }

/* 课列表里的锁图标（pill 内的 svg 需要显式尺寸，否则会塌成 0 或撑成方块） */
.pill svg { width: 11px; height: 11px; display: block; }
.pill[data-tone="c"] {
  padding: 3px 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-3);
  border: 1px solid var(--rule-2);
}
.pill[data-tone="c"] svg { stroke: var(--ink-4); }

