:root{
  --bg:#F8F6F2;            /* 页面底(暖纸色) */
  --card:#FDFCF8;          /* 卡片/顶栏/弹层底(暖白) */
  --ink:#23262b;           /* 正文主色 */
  --ink-soft:#3a3f47;      /* 阅读区文字 */
  --h1:#1b1e23;            /* 书名 */
  --muted:#5f6670;         /* 次要信息(WCAG AA:白底 5.8:1) */
  --muted-2:#6a717b;       /* 更次要(白底 4.9:1) */
  --line:#ebedf0;          /* 分隔/边框 */
  --input-line:#c9ced6;    /* 输入框边框(比 line 更明显) */
  --input-bg:#FDFCF8;      /* 输入框底(暖白,同 --card) */
  --surface:#F3F1ED;       /* 浅面层(暖同温) */
  --surface-2:#E8E5DF;     /* 胶囊底(暖灰,与 bg 同温) */
  --accent:#3a72d4;        /* 克制的强调蓝(白底 WCAG AA) */
  --accent-hover:#3366c6;
  --accent-soft:#eaf0fb;
  --gold:#c99022;
  --gold-hover:#b57f17;
  --gold-soft:#fff4dc;
  --gold-line:#e6c27c;
  --donut-track:#e0e3e8;   /* 进度环未完成轨道 */
  --banner-bg:#fff4e0; --banner-ink:#9a5b00; --banner-line:#f0c473;  /* 临时音横幅 */
  --bm-bg:#fff4dc; --bm-ink:#8a5a08; --bm-line:#e6c27c;              /* 书签胶囊 */
  --shadow:0 1px 2px rgba(20,24,33,.04),0 8px 24px rgba(20,24,33,.06);
}
/* ── 夜间模式:深灰底护眼,柔和强调蓝;首屏前由 <head> 内联脚本设 data-theme 避免闪烁 ── */
[data-theme="dark"]{
  --bg:#1a1a1e;
  --card:#202127;
  --ink:#e6e8eb;
  --ink-soft:#cdd1d6;
  --h1:#f0f2f5;
  --muted:#a6acb5;         /* WCAG AA:深底 7.6:1 */
  --muted-2:#8a9099;       /* 深底 5.4:1 */
  --line:#2e2f36;
  --input-line:#3d4049;
  --input-bg:#26272e;
  --surface:#222329;
  --surface-2:#2c2e36;
  --accent:#5b8def;
  --accent-hover:#6f9bf2;
  --accent-soft:#23304a;
  --gold:#f0c46f;
  --gold-hover:#ffd889;
  --gold-soft:#3a2d16;
  --gold-line:#7a5b24;
  --donut-track:#3a3c44;
  --banner-bg:#3a2e16; --banner-ink:#f0c473; --banner-line:#6b5320;
  --bm-bg:#3a2d16; --bm-ink:#f0c46f; --bm-line:#7a5b24;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 28px rgba(0,0,0,.45);
}
:root[data-accent="gold"]{
  --accent:#c99022; --accent-hover:#b57f17; --accent-soft:#fff4dc;
}
:root[data-accent="blue"]{
  --accent:#3a72d4; --accent-hover:#3366c6; --accent-soft:#eaf0fb;
}
:root[data-accent="graphite"]{
  --accent:#555b65; --accent-hover:#3f4650; --accent-soft:#E8E5DF;
}
[data-theme="dark"][data-accent="gold"]{
  --accent:#f0c46f; --accent-hover:#ffd889; --accent-soft:#3a2d16;
}
[data-theme="dark"][data-accent="blue"]{
  --accent:#5b8def; --accent-hover:#6f9bf2; --accent-soft:#23304a;
}
[data-theme="dark"][data-accent="graphite"]{
  --accent:#b8bec8; --accent-hover:#d3d7de; --accent-soft:#2c2e36;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{height:100%}
/* ── 布局模型:整页文档滚动(非 flex 吸附)── 顶/底条 position:sticky 常驻,中部阅读区随页滚动 */
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,system-ui,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  min-height:100vh}

/* ════ 顶部固定区:书名 + 当前位置 + 段号导航条 ════ */
.topbar{position:sticky;top:0;z-index:20;background:var(--card);
  padding-top:env(safe-area-inset-top,0px);
  border-bottom:1px solid var(--line);box-shadow:0 1px 8px rgba(20,24,33,.04)}
header{padding:12px 16px 8px;text-align:center}
/* 顶部一行:左=书目下拉,右=中/EN 语言切换 */
.headrow{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:7px}
/* id52/U11:服务状态(F/B/AI);用带字母的小 pill,避免误读成 macOS 窗口红绿灯。灰=未知、绿=ok、红=down */
.healthlights{flex:0 0 auto;display:inline-flex;align-items:center;gap:3px;padding:0 2px 0 0}
.hl-dot{min-width:17px;height:17px;border-radius:6px;padding:0 4px;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:9px;font-weight:800;line-height:1;color:var(--muted);
  background:var(--surface-2);border:1px solid var(--line);
  transition:background .3s ease,color .3s ease,border-color .3s ease;cursor:default}
.hl-dot.ok{background:var(--gold-soft);color:var(--gold);border-color:var(--gold-line)}
.hl-dot.degraded{background:#fff8e1;color:#b06f00;border-color:#f5cc6a}
.hl-dot.down{background:#fde8e3;color:#ad321f;border-color:#f3b5a8}
[data-theme="dark"] .hl-dot{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.10)}
[data-theme="dark"] .hl-dot.ok{background:var(--gold-soft);color:var(--gold);border-color:var(--gold-line)}
[data-theme="dark"] .hl-dot.degraded{background:rgba(200,150,0,.18);color:#f5cc6a;border-color:rgba(200,150,0,.4)}
[data-theme="dark"] .hl-dot.down{background:rgba(224,83,58,.18);color:#ff9b8a;border-color:rgba(224,83,58,.42)}
/* 左侧:书目下拉 + ＋新书 按钮(成组,占据剩余宽度,select 可省略号收缩) */
.bookpick{display:flex;align-items:center;gap:7px;min-width:0;max-width:220px;flex:1 1 220px}
.addbookbtn{flex:0 0 auto;width:auto;height:auto;min-height:36px;padding:4px 12px;border-radius:999px;
  font-size:17px;font-weight:700;line-height:1;color:#fff;background:var(--accent);border:none;
  box-shadow:0 2px 8px rgba(58,114,212,.30);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease}
.addbookbtn:hover{background:var(--accent-hover)}
/* 右侧:语言切换 + 🆕 更新角标(成组靠右) */
.headright{display:flex;align-items:center;gap:8px;flex:0 0 auto}
body.top-folded header{padding-bottom:6px}
body.top-folded .headrow{margin-bottom:0}
body.top-folded .tierrow,
body.top-folded header h1,
body.top-folded header #sub,
body.top-folded #chapwrap,
body.top-folded #segstrip{display:none!important}
.fold-btn{font-size:12px;font-weight:800;color:var(--gold);background:var(--gold-soft);
  box-shadow:inset 0 0 0 1px var(--gold-line)}
.fold-btn[aria-expanded="false"]{color:var(--muted);background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line)}
/* id22:书目封面缩略图(当前所选书),无封面/404 时 hidden 隐藏 */
.bookcover{flex:0 0 auto;width:26px;height:34px;object-fit:cover;border-radius:4px;
  border:1px solid var(--line);background:var(--surface-2);display:block}
.bookcover[hidden]{display:none}
.booksel{flex:1 1 0;max-width:none;min-width:0;font-size:14px;font-weight:600;color:var(--ink);
  background:var(--surface-2);border:1px solid transparent;border-radius:999px;
  min-height:40px;padding:6px 12px;cursor:pointer;outline:none;
  text-overflow:ellipsis;white-space:nowrap;overflow:hidden;
  -webkit-appearance:none;appearance:none}
.booksel:focus{border-color:var(--accent)}
@media(max-width:480px){
  header{padding:10px 14px 7px 10px}
  .headrow{gap:4px}
  .healthlights{display:none}
  .hl-dot{min-width:17px;height:18px;border-radius:5px;padding:0 3px;font-size:8.5px}
  .bookpick{flex:0 0 auto;gap:6px;max-width:none}
  .addbookbtn{min-width:44px;min-height:44px;padding:0 10px}
  .booksel{flex:0 0 44px;width:44px;min-width:44px;max-width:44px;height:40px;
    color:transparent;text-shadow:none;padding:0;background:var(--surface-2) center/18px 18px no-repeat;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4f57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M4 4.5A2.5 2.5 0 0 1 6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5z'/%3E%3C/svg%3E")}
  [data-theme="dark"] .booksel{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d7d9df' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M4 4.5A2.5 2.5 0 0 1 6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5z'/%3E%3C/svg%3E")}
  .headright{gap:3px;min-width:0}
  .langtoggle span{font-size:11.5px;padding:3px 6px;min-height:44px;display:inline-flex;align-items:center}
  .tiertoggle span{min-height:44px;display:inline-flex;align-items:center}
  .theme-btn{width:44px;height:44px;min-width:44px;min-height:44px;padding:0}
  .me-btn,.cl-badge{width:44px;height:44px;min-width:44px;min-height:44px;padding:0}
  /* 手机上隐藏低频按钮:颜色切换 + 顶部折叠 + 服务状态灯,省出空间避免截断 */
  #colorbtn,#topfold{display:none}
  .healthlights{display:none!important}
  /* 手机控制行:引擎 label 占位多余,隐藏 */
  .engsel-player .engsel-lab{display:none}
  .cl-badge{position:relative;justify-content:center;font-size:0;gap:0}
  .cl-badge::after{content:'更';font-size:13px;font-weight:800;line-height:1;color:var(--muted)}
  .cl-badge:hover::after{color:var(--ink)}
  .cl-badge .cl-dot{position:absolute;right:8px;top:8px;width:6px;height:6px}
}
.langtoggle{flex:0 0 auto;display:inline-flex;align-items:center;gap:0;padding:2px;
  background:var(--surface-2);border-radius:999px;border:1px solid transparent;user-select:none}
.langtoggle span{font-size:12px;font-weight:700;padding:3px 8px;border-radius:999px;
  color:var(--muted);line-height:1.5;cursor:pointer;
  transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}
.langtoggle span.on{background:var(--accent);color:#fff;box-shadow:0 1px 4px color-mix(in srgb,var(--accent) 40%,transparent)}
.langtoggle span:focus-visible,.tiertoggle span:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
h1{font-size:16px;margin:0;font-weight:650;letter-spacing:.01em;color:var(--h1);line-height:1.35;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ── 翻译档位:内联在顶栏 headright 里,不另起一行 ── */
.tierrow-inline{display:inline-flex!important;margin:0;padding:2px;user-select:none}
.tierrow-inline[hidden]{display:none!important}
.tierrow-lab{font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.02em;flex-shrink:0}
.tiertoggle{display:inline-flex;align-items:center;gap:0;padding:2px;
  background:var(--surface-2);border-radius:999px;border:1px solid transparent}
.tiertoggle span{font-size:11.5px;font-weight:700;padding:9px 14px;border-radius:999px;
  color:var(--muted);line-height:1.2;cursor:pointer;white-space:nowrap;
  transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}
.tiertoggle span.on{background:var(--accent);color:#fff;box-shadow:0 1px 4px color-mix(in srgb,var(--accent) 40%,transparent)}
/* ── 翻译注脚:正文区下方右对齐,小灰字,不挡正文 ── */
.transfootnote{width:100%;max-width:38em;margin:0 auto;
  padding:2px 22px 14px;text-align:right;
  font-size:11.5px;color:var(--muted);line-height:1.4}
.transfootnote:empty{display:none}
@media(max-width:480px){
  .transfootnote{padding:2px 20px 12px;font-size:11.5px}
}
.sub{color:var(--muted);font-size:13px;margin-top:4px;min-height:18px;line-height:18px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ── 段号横向滑条:横向可滑,当前段高亮居中,chip 带状态色点 ── */
#segstrip{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;
  padding:7px 12px 9px 16px;background:var(--card);
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
  -webkit-mask-image:linear-gradient(to right,black calc(100% - 44px),transparent 100%);
  mask-image:linear-gradient(to right,black calc(100% - 44px),transparent 100%)}
#segstrip::-webkit-scrollbar{display:none}
.segchip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;
  min-width:auto;width:auto;height:auto;min-height:44px;padding:4px 11px;border-radius:999px;
  font-size:13px;font-weight:550;line-height:1;color:var(--ink);background:var(--surface-2);
  border:1px solid transparent;cursor:pointer;font-variant-numeric:tabular-nums}
.segchip .clab{font-size:13px}
.segchip.cur{background:var(--accent);color:#fff;font-weight:700;
  /* Proactive: 当前段加双层光晕,三态(当前/已生成/未生成)视觉清晰 */
  box-shadow:0 2px 8px rgba(58,114,212,.30),0 0 0 2px var(--accent),0 0 0 4px rgba(58,114,212,.18)}
.cdot{width:8px;height:8px;border-radius:50%;background:var(--muted-2);flex:0 0 auto}
.segchip.done .cdot{background:var(--gold)}
/* 生成中:进度环取代圆点 */
.segchip.busy .cdot{width:13px;height:13px;position:relative;
  background:conic-gradient(#f39c12 var(--seg-pct,5%),var(--donut-track) var(--seg-pct,5%));
  animation:ringPulse 2s ease-in-out infinite}
.segchip.busy .cdot::after{content:'';position:absolute;inset:3px;border-radius:50%;background:var(--card)}
@keyframes ringPulse{0%,100%{opacity:1}50%{opacity:.72}}
/* 段号条:章节起始段加左侧分隔提示(轻量分组线,不破坏懒构建/状态点) */
.segchip.chapstart{border-left:3px solid var(--accent);padding-left:8px;margin-left:5px}

/* 段号条/章节条容器:右侧渐变遮罩暗示可横向滑动 */
.strip-wrap{display:flex;align-items:center;gap:6px;min-width:0;position:relative}
.strip-wrap::after{content:'';position:absolute;right:0;top:0;bottom:0;width:32px;
  background:linear-gradient(90deg,transparent,var(--card));pointer-events:none;z-index:1}
.strip-wrap.collapsed::after{display:none}
.strip-toggle{flex:0 0 auto;width:44px;height:44px;min-width:44px;min-height:44px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;padding:0;
  font-size:12px;font-weight:800;color:var(--muted);background:var(--surface-2);border:1px solid transparent}
.strip-toggle[aria-expanded="true"]{color:var(--accent);background:var(--gold-soft);border-color:var(--accent);box-shadow:none}
.chap-wrap{padding:7px 12px 2px;background:var(--card)}
.strip-wrap.collapsed .strip-toggle{width:44px;height:44px;min-width:44px;min-height:44px}
.chap-wrap.collapsed{padding:2px 12px}
/* ── 章节快捷导航:横向可滑,点章名跳到该章起始段;空/失败时整条隐藏 ── */
#chapstrip{display:flex;gap:6px;min-width:0;flex:1 1 auto;overflow-x:auto;overflow-y:hidden;white-space:nowrap;
  padding:0;background:var(--card);
  -webkit-overflow-scrolling:touch;scrollbar-width:thin}
.chap-wrap.collapsed #chapstrip,#chapstrip:empty{display:none}
.chap-wrap.collapsed + #segstrip{display:none}
#chapstrip::-webkit-scrollbar{height:5px}
#chapstrip::-webkit-scrollbar-thumb{background:var(--surface-2);border-radius:999px}
.chapchip{flex:0 0 auto;display:inline-block;width:auto;max-width:none;
  min-height:32px;height:auto;padding:4px 10px;border-radius:999px;
  font-size:12px;font-weight:600;line-height:1.45;color:var(--muted);
  background:transparent;border:1px solid var(--line);cursor:pointer;white-space:nowrap}
.chapchip:hover{color:var(--ink);border-color:var(--muted-2)}
.chapchip.cur{background:var(--accent-soft);color:var(--accent);
  border-color:var(--accent);font-weight:700}

/* ════ 核心阅读区:中文长文排版 — 限宽 ~38em、字号 19、行高 1.85 ════ */
#reader{width:100%}
#text{scrollbar-gutter:stable;
  width:100%;max-width:34em;margin:0 auto;min-height:16vh;
  padding:18px 24px calc(var(--player-h, 160px) + env(safe-area-inset-bottom, 0px) + 24px);
  font-size:19px;line-height:1.9;letter-spacing:.02em;
  color:var(--ink-soft);text-align:left;word-break:break-word;position:relative}
/* 英文/日文翻译模式:字号缩小提升每屏信息量(html[lang=en/ja] 由 syncLangUI 实时更新) */
:root[lang="en"] #text,:root[lang="ja"] #text{font-size:15px;line-height:1.75;letter-spacing:.01em}
:root[lang="bi"] #text{font-size:14px;line-height:1.8;letter-spacing:.01em}  /* 双语内容约2倍长,缩小字号 */
/* 正文底部渐变 fade:用 #reader 的 ::after 伪元素覆盖(mask-image 在 Safari 滚动容器内不稳定) */
#reader{width:100%;position:relative}
#reader::after{content:'';position:absolute;left:0;right:0;bottom:0;height:56px;
  background:linear-gradient(to bottom,color-mix(in srgb,var(--bg) 0%,transparent),var(--bg));
  pointer-events:none;z-index:2}
.kara-sent{display:inline;border-radius:6px;padding:1px 2px;margin:0 -2px;
  transition:background-color .18s ease,color .18s ease,box-shadow .18s ease}
.kara-on{background:var(--accent-soft);color:var(--ink);
  box-shadow:0 0 0 2px var(--accent-soft)}
[data-theme="dark"] .kara-on{color:#f5f1e8}

/* id86:沉浸播放模式。覆盖整屏,只保留图片 + 字幕 + 退出。 */
body.immersive-open{overflow:hidden}
.immersive[hidden]{display:none!important}
.immersive{position:fixed;inset:0;z-index:120;background:#06070a;color:#fff;
  display:flex;align-items:stretch;justify-content:center;
  padding:calc(env(safe-area-inset-top,0px)) 0 0;
  box-sizing:border-box}
.im-stage{width:100%;height:100%;display:flex;flex-direction:column;
  align-items:stretch;justify-content:flex-start;gap:0}
.im-img-wrap{position:relative;flex:1 1 auto;width:100%;min-height:0;overflow:hidden}
.im-img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0;background:#111}
.im-img-wrap::after{content:'';position:absolute;bottom:0;left:0;right:0;height:185px;
  background:linear-gradient(to bottom,transparent 0%,rgba(10,11,16,.5) 35%,rgba(10,11,16,.92) 70%,rgba(10,11,16,.99) 100%);
  pointer-events:none;z-index:1}
.im-caption{position:absolute;left:0;right:0;
  bottom:calc(62px + env(safe-area-inset-bottom,0px));
  padding:0 28px 8px;max-height:22dvh;overflow:hidden;
  font-size:18px;line-height:1.6;font-weight:700;text-align:center;color:#fff;
  pointer-events:none;z-index:2}
.im-caption:empty{display:none}
.im-ctrls{display:none}
/* 导航行:上一段 ‹  播放键  下一段 › */
.im-navctrls{position:absolute;
  bottom:calc(14px + env(safe-area-inset-bottom,0px));
  left:50%;transform:translateX(-50%);
  display:flex;align-items:center;gap:16px;z-index:3}
.im-navbtn{width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.22);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.38);
  cursor:pointer;color:#fff;font-size:26px;font-weight:500;
  display:flex;align-items:center;justify-content:center;
  -webkit-tap-highlight-color:transparent}
.im-navbtn:active{background:rgba(255,255,255,.35);transform:scale(.9)}
.im-playbtn{width:52px;height:52px;border-radius:50%;
  background:rgba(255,255,255,.18);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1.5px solid rgba(255,255,255,.5);
  cursor:pointer;color:#fff;
  display:flex;align-items:center;justify-content:center;
  -webkit-tap-highlight-color:transparent}
.im-playbtn:active{transform:scale(.88)}
.im-playbtn:disabled{opacity:.4;cursor:wait;pointer-events:none;animation:im-spin .8s linear infinite}
@keyframes im-spin{to{transform:rotate(360deg)}}
/* 配图沉浸入口提示:右下角半透明全屏图标 */
.segimg-imhint{position:absolute;right:8px;bottom:8px;
  width:28px;height:28px;border-radius:6px;
  background:rgba(0,0,0,.45);color:rgba(255,255,255,.7);
  font-size:16px;display:flex;align-items:center;justify-content:center;
  pointer-events:none;z-index:5;letter-spacing:0}
.im-close{position:fixed;right:calc(13px + env(safe-area-inset-right,0px));
  top:calc(13px + env(safe-area-inset-top,0px));z-index:121;
  width:44px;height:44px;min-height:44px;border-radius:50%;font-size:24px;line-height:1;
  display:flex;align-items:center;justify-content:center;color:#fff;
  background:rgba(0,0,0,.65);border:1.5px solid rgba(255,255,255,.35);
  box-shadow:0 2px 12px rgba(0,0,0,.5)}

/* ── 每段自动配图(增强、非必需)──
   默认收起(无空洞):未加载/204/onerror 时 .show 不加,figure 高度为 0 不占位;
   200 命中 → 加 .show 平滑淡入。固定 1:1 比例框 + object-fit:cover → 段间高度一致,
   翻段不抖(源图均为 1024² 方图,进 1:1 方框=零裁切零留白;配合 preload 下一段,翻页时图已就绪、近乎秒显)。 */
.segfig{width:100%;max-width:38em;margin:0 auto;padding:0 22px;box-sizing:border-box;
  max-height:0;opacity:0;overflow:hidden;transition:opacity .35s ease}
.segfig.show{max-height:none;opacity:1;padding-top:8px}
/* 配图高度上限(用户 0628 反馈 69/72:让图+文不滚动就都能看到)。
   方图按 --segimg-max 封顶并居中:wrap 收缩贴合图→右下角按钮仍落在图角上;
   max-width:100% 保证窄屏不溢出。值偏小=图更克制、给正文留白更多,可在此调。 */
.segimg-wrap{position:relative;width:100%;max-width:100%;margin:0 auto;
  border-radius:14px;background:var(--surface)}
/* P0-C: 加载/生成中确保容器有足够高度,防止 segimg-stage 的状态文字被裁切 */
.segfig.imgloading .segimg-wrap,.segfig.imgempty .segimg-wrap{min-height:90px}
.segfig img{display:block;width:100%;max-width:100%;max-height:var(--segimg-max,36vh);
  aspect-ratio:1/1;object-fit:cover;
  border-radius:14px;background:var(--surface);
  box-shadow:0 4px 18px rgba(20,24,33,.12)}
[data-theme="dark"] .segfig img{box-shadow:0 4px 18px rgba(0,0,0,.45)}
.segfig.imgempty img{opacity:0}
.segfig.imgloading .segimg-wrap::before,
.segfig.imgfailed .segimg-wrap::before{content:'';position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.88));
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
[data-theme="dark"] .segfig.imgloading .segimg-wrap::before,
[data-theme="dark"] .segfig.imgfailed .segimg-wrap::before{background:linear-gradient(180deg,rgba(32,33,39,.70),rgba(32,33,39,.88))}
.segfig.imgloading .segimg-wrap::after,
.segfig.imgfailed .segimg-wrap::after{content:attr(data-img-label) ' · ' attr(data-img-pct);
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;
  width:min(260px,78%);padding-top:32px;text-align:center;
  font-size:13px;font-weight:800;line-height:1.4;color:var(--accent);
  background:linear-gradient(var(--accent),var(--accent)) left bottom/var(--img-pct,8%) 7px no-repeat,
             linear-gradient(var(--surface-2),var(--surface-2)) left bottom/100% 7px no-repeat;
  border-radius:999px}
.segfig.imgfailed .segimg-wrap::after{content:attr(data-img-label);color:var(--muted);
  background:linear-gradient(#e0533a,#e0533a) left bottom/100% 7px no-repeat,
             linear-gradient(var(--surface-2),var(--surface-2)) left bottom/100% 7px no-repeat}
/* z-index 5:生成中进度面板(.segimg-stage z-index:3)铺满底部时,换模型/重生成按钮仍浮其上可点 */
.segimg-acts{position:absolute;right:10px;bottom:10px;display:flex;align-items:center;gap:7px;z-index:5}
.segact{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;
  font-size:17px;line-height:1;background:rgba(255,255,255,.92);color:var(--ink);
  border:1px solid rgba(0,0,0,.08);box-shadow:0 2px 8px rgba(20,24,33,.18);
  display:flex;align-items:center;justify-content:center}
#segact_cover{font-size:12px;font-weight:900;letter-spacing:0}
[data-theme="dark"] .segact{background:rgba(32,33,39,.92);border-color:rgba(255,255,255,.10)}
.segact:disabled{opacity:.4;cursor:not-allowed}
/* ── 生成全过程信息面板(生成中显示真实阶段/提示词/模型)── */
.segimg-stage[hidden]{display:none!important}  /* 隐藏时不得渲染,否则永久遮住 .segimg-acts 三按钮 */
.segimg-stage{position:absolute;left:0;right:0;bottom:0;z-index:3;
  display:flex;flex-direction:column;gap:7px;
  padding:14px 14px 58px;box-sizing:border-box;
  max-height:74%;overflow-y:auto;-webkit-overflow-scrolling:touch;
  background:linear-gradient(180deg,rgba(255,255,255,.30),rgba(255,255,255,.92) 38%);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  border-bottom-left-radius:14px;border-bottom-right-radius:14px;
  color:var(--ink)}
[data-theme="dark"] .segimg-stage{
  background:linear-gradient(180deg,rgba(20,21,26,.20),rgba(20,21,26,.92) 38%);color:var(--ink)}
.segstage-head{font-size:13px;font-weight:800;line-height:1.35;color:var(--accent);text-shadow:0 1px 3px rgba(0,0,0,.45)}
.segstage-head.fail{color:#c0392b;text-shadow:0 1px 3px rgba(0,0,0,.3)}
.segstage-bar{height:6px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.segstage-bar>i{display:block;height:100%;width:8%;border-radius:999px;
  background:var(--accent);transition:width .5s ease}
.segstage-prompt{font-size:11.5px;line-height:1.45;color:var(--ink-soft)}
.segstage-label{display:inline-block;font-weight:800;color:var(--muted);margin-right:5px}
.segstage-text{display:block;margin-top:2px;max-height:3.2em;overflow-y:auto;
  word-break:break-word;-webkit-overflow-scrolling:touch}
.segstage-models{font-size:11px;font-weight:700;color:var(--muted);line-height:1.4}

.segstyle{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.segstyle-fold{align-self:stretch;width:100%;height:auto;min-height:44px;padding:0 12px;
  border-radius:10px;border:none;cursor:pointer;font-size:13px;font-weight:700;
  color:var(--gold);background:var(--gold-soft);box-shadow:inset 0 0 0 1px var(--gold-line);
  display:flex;align-items:center;gap:6px;text-align:left}
.segstyle-fold::after{content:'▾';margin-left:auto;font-size:11px;opacity:.7;transition:transform .15s ease}
.segstyle-fold[aria-expanded="false"]{color:var(--muted);background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line)}
.segstyle-fold[aria-expanded="false"]::after{transform:rotate(-90deg)}
.segstyle-body{display:flex;flex-direction:column;gap:8px;
  padding-bottom:calc(var(--player-h, 160px) + env(safe-area-inset-bottom, 0px) + 16px)}
.segstyle.style-folded .segstyle-body{display:none!important}
.segstyle-row{display:flex;align-items:center;gap:7px;overflow-x:auto;overflow-y:hidden;
  padding:1px 0 3px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.segstyle-row::-webkit-scrollbar{display:none}
.stbtn{flex:0 0 auto;width:auto;height:44px;min-height:44px;padding:0 14px;border-radius:999px;
  font-size:12.5px;font-weight:700;line-height:1;white-space:nowrap;
  color:var(--muted);background:var(--surface-2);border:1px solid transparent;
  display:inline-flex;align-items:center;justify-content:center;gap:4px}
.stbtn.on{background:var(--accent);color:#fff;box-shadow:0 2px 8px color-mix(in srgb,var(--accent) 40%,transparent)}
.stbtn-custom{padding-right:6px}
.stbtn-custom[hidden]{display:none!important}
.stbtn-custom .stlab{min-width:0;max-width:74px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stdel{width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  margin-left:2px;font-size:12px;font-weight:800;line-height:1;color:var(--muted);
  background:rgba(255,255,255,.58)}
.stbtn.on .stdel{color:#fff;background:rgba(255,255,255,.22)}
/* 「⚙ 画风高级」折叠:power-user 选项默认收起,常驻只露画风预设行(减杂乱) */
.segadv{margin-top:2px;border-top:1px solid var(--line);padding-top:2px}
[data-theme="dark"] .segadv{border-top-color:var(--input-line)}
.segadv-sum{display:flex;align-items:center;gap:5px;list-style:none;cursor:pointer;
  font-size:11.5px;font-weight:700;color:var(--muted);padding:12px 2px;min-height:44px;
  user-select:none;-webkit-tap-highlight-color:transparent}
.segadv-sum::-webkit-details-marker{display:none}
.segadv-sum::after{content:'▾';font-size:10px;opacity:.6;transition:transform .15s ease}
.segadv[open] .segadv-sum::after{transform:rotate(180deg)}
.segadv[open] .segadv-sum{color:var(--accent)}
/* 画风「应用方式」切换:注入 / 拼接(段控件,风格同 .tiertoggle) */
.segstyle-mode{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding-top:6px}
.smode-label{font-size:12px;font-weight:700;color:var(--muted);flex:0 0 auto}
.smode-seg{display:inline-flex;align-items:center;gap:0;padding:2px;
  background:var(--surface-2);border-radius:999px}
.smode-opt{flex:0 0 auto;height:40px;min-height:40px;padding:0 14px;border-radius:999px;
  font-size:12px;font-weight:700;line-height:1;white-space:nowrap;
  color:var(--muted);background:transparent;border:none;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center}
.smode-opt.on{background:var(--accent);color:#fff;box-shadow:0 1px 4px rgba(58,114,212,.30)}
.segstyle-kw{display:flex;align-items:center;gap:7px}
.segstyle-kw[hidden]{display:none!important}
.segstyle-kw input{flex:1 1 auto;min-width:0;height:36px;padding:0 10px;
  border:1px solid var(--input-line);border-radius:9px;background:var(--input-bg);
  color:var(--ink);font-size:13px;outline:none}
.segstyle-kw input:focus{border-color:var(--accent)}
#imgkw_paste,#imgkw_go{flex:0 0 auto;width:auto;height:36px;min-height:36px;
  padding:0 12px;border-radius:9px;font-size:13px;font-weight:700;white-space:nowrap}
#imgkw_paste{background:var(--surface-2);color:var(--ink)}
#imgkw_go{background:var(--accent);color:#fff}
/* 自定义风格「查看/重新生成」面板 */
.stsuffix{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:11px;
  background:var(--surface-2);border:1px solid var(--line)}
.stsuffix[hidden]{display:none!important}
.stsuffix-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.stsuffix-title{font-size:12.5px;font-weight:800;color:var(--ink)}
.stsuffix-x{flex:0 0 auto;width:26px;height:26px;min-height:26px;border-radius:50%;border:none;
  background:var(--card);color:var(--ink-soft,#888);font-size:17px;line-height:1;cursor:pointer}
/* id78:后缀框可手动编辑(textarea)。可写时高亮边框提示可改;只读=载入/生成中 */
.stsuffix-body{font-size:12.5px;line-height:1.5;color:var(--ink);word-break:break-word;
  width:100%;box-sizing:border-box;resize:vertical;min-height:46px;max-height:160px;font-family:inherit;
  background:var(--card);border:1px solid var(--input-line);border-radius:8px;padding:8px 10px;
  overflow-y:auto;-webkit-overflow-scrolling:touch}
.stsuffix-body:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.stsuffix-body[readonly]{opacity:.7;cursor:default}
.stsuffix-body::placeholder{color:var(--muted-2)}
.stsuffix-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.stsuffix-hint{font-size:11px;color:var(--ink-soft,#999);flex:1 1 100%}
[data-theme="dark"] .stsuffix-hint{color:#c4c9d0}  /* 夜间提亮 hint,与 textarea 正文同档(QA r3) */
.stsuffix-regen,.stsuffix-save{flex:0 0 auto;width:auto;height:36px;min-height:36px;padding:0 14px;border:none;border-radius:9px;
  font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.stsuffix-regen{background:var(--accent);color:#fff}
.stsuffix-save{background:var(--accent);color:#fff}
.stsuffix-save[hidden]{display:none!important}
.stsuffix-regen:disabled,.stsuffix-save:disabled{opacity:.55;cursor:default}
/* z-index 6:生成中点开「换模型」列表须盖过进度面板(.segimg-stage z-index:3)与按钮(z-index:5) */
/* 菜单从图片顶部向下生长(不再 bottom 锚定向上、否则长表顶部滚出屏外只剩 2 行);
   按内容自适应、最高 60vh,长模型表顶部行始终可见,溢出部分向下盖到正文区再内部滚动 */
.segimg-menu{position:absolute;right:10px;top:10px;z-index:6;width:min(260px,calc(100% - 20px));
  background:var(--card);border:1px solid var(--line);border-radius:12px;
  box-shadow:0 8px 26px rgba(20,24,33,.18);padding:8px;display:flex;flex-direction:column;gap:5px;
  max-height:min(60vh,380px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.segimg-menu[hidden]{display:none!important}
/* 标题吸顶,滚动时不被列表盖住;模型多时列表内部滚动,不再向上溢出裁掉顶部项 */
.segmenu-title{position:sticky;top:0;background:var(--card);font-size:12px;font-weight:800;color:var(--muted);padding:3px 5px;z-index:1}
.segmenu-empty{font-size:12px;color:var(--muted);padding:8px 5px}
.segmenu-item{width:100%;height:auto;min-height:44px;padding:8px 9px;border-radius:9px;
  display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;
  background:transparent;color:var(--ink);font-size:12.5px}
.segmenu-item:hover,.segmenu-item.on{background:var(--accent-soft)}
.segmenu-lab{font-weight:700;min-width:0}
.segmenu-desc{flex:1;min-width:0;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.segmenu-rec{margin-left:5px;color:var(--accent);font-size:10.5px}
.segmenu-tick{color:var(--accent);font-weight:800}

/* ── ⓘ 配图诊断:左下角小按钮 + 半透明诊断浮窗 ── */
.segiinfo{position:absolute;left:10px;bottom:10px;z-index:5;width:44px;height:44px;min-height:44px;
  padding:0;border-radius:50%;font-family:Georgia,'Times New Roman',serif;font-style:italic;
  font-weight:800;font-size:18px;line-height:1;background:rgba(255,255,255,.92);color:var(--ink);
  border:1px solid rgba(0,0,0,.08);box-shadow:0 2px 8px rgba(20,24,33,.18);
  display:flex;align-items:center;justify-content:center}
[data-theme="dark"] .segiinfo{background:rgba(32,33,39,.92);border-color:rgba(255,255,255,.10)}
.segimg-diag[hidden]{display:none!important}
.segimg-diag{position:absolute;left:10px;top:10px;z-index:6;
  width:min(300px,calc(100% - 20px));max-height:min(64vh,440px);overflow-y:auto;
  -webkit-overflow-scrolling:touch;padding:11px 12px;box-sizing:border-box;border-radius:12px;
  background:rgba(20,24,33,.82);color:#fff;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);
  box-shadow:0 8px 26px rgba(20,24,33,.32);font-size:12px;line-height:1.5;
  display:flex;flex-direction:column;gap:7px}
.segdiag-title{font-size:12.5px;font-weight:800;color:#fff;
  display:flex;align-items:center;justify-content:space-between;gap:8px}
.segdiag-x{width:26px;height:26px;min-height:26px;border-radius:50%;border:none;flex:0 0 auto;
  background:rgba(255,255,255,.16);color:#fff;font-size:14px;line-height:1;
  display:flex;align-items:center;justify-content:center}
.segdiag-row{display:flex;flex-direction:column;gap:1px}
.segdiag-k{font-size:10.5px;font-weight:800;color:rgba(255,255,255,.62);letter-spacing:.02em}
.segdiag-v{font-size:11.5px;color:#fff;word-break:break-word;white-space:pre-wrap}
.segdiag-v.ok{color:var(--gold)}
.segdiag-v.bad{color:#ff9b8a}
.segdiag-empty{font-size:11.5px;color:rgba(255,255,255,.72)}

/* ── backup 兜底横幅:流内元素(position:relative),彻底不遮挡段号/章节导航 ── */
/* P0-2/Proactive: overflow:hidden + transition 防止 show/hide 时高度跳变造成布局抖动 */
#bkbanner{display:block;overflow:hidden;max-height:0;transition:max-height 0.2s ease;
  width:100%;max-width:42em;margin:0 auto}
#bkbanner.show{max-height:60px;display:flex;align-items:center;gap:8px;position:relative;
  padding:8px 14px;font-size:13px;font-weight:600;line-height:1.4;text-align:center;
  background:var(--banner-bg);color:var(--banner-ink);border-bottom:1px solid var(--banner-line);
  box-shadow:0 2px 8px rgba(154,91,0,.12)}
#bkbanner span{flex:1}
/* P0-2: ✕ 关闭按钮 */
.bkbanner-x{flex-shrink:0;background:none;border:none;cursor:pointer;color:var(--banner-ink);
  font-size:15px;line-height:1;min-width:44px;min-height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  padding:0;opacity:.72;transition:opacity .1s}
.bkbanner-x:hover{opacity:1}
[data-theme="dark"] .bkbanner-x{color:#fff}
/* ── 错误提示条:播放失败人话提示,与 #sub 分离 ── */
#errbar{display:none;font-size:12.5px;font-weight:600;color:#c0392b;
  background:#fff5f5;border:1px solid #f5c6cb;border-radius:8px;
  padding:5px 12px;margin:3px auto 0;max-width:38em;text-align:center;line-height:1.4}
#errbar.show{display:block}
[data-theme="dark"] #errbar{background:#3d1515;border-color:#7a2e2e;color:#f5a0a0}

/* ════ 次要工具区:常驻可见,随页面滚动 ════ */
/* R7防御:工具区底部留出播放器高度,防止书签/反馈展开时被底部播放器遮挡 */
.tools{width:100%;max-width:42em;margin:0 auto;border-top:1px solid var(--line);background:var(--card);
  padding-bottom:calc(var(--player-h, 140px) + env(safe-area-inset-bottom, 0px))}
.tool-block{padding:14px 16px;border-bottom:1px solid var(--line)}
#exp_video_player{width:100%;max-width:100%;border-radius:12px;background:#000;margin-top:10px;display:block}
.tool-block:last-child{border-bottom:none}
.tool-label{font-size:13px;font-weight:600;color:var(--muted);margin-bottom:10px;letter-spacing:.02em}
.tool-foldable>.tool-label,.tool-foldable .fb-head,.tool-foldable .av-summary,.tool-foldable .ab-title{
  display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;margin-bottom:0;
  min-height:44px;padding-top:2px;padding-bottom:2px}
.tool-foldable>.tool-label::after,.tool-foldable .fb-head::after,.tool-foldable .av-summary::after,.tool-foldable .ab-title::after{
  content:'▾';font-size:12px;color:var(--muted-2);transition:transform .15s ease}
.tool-foldable.tool-collapsed>.tool-label::after,
.tool-foldable.tool-collapsed .fb-head::after,
.tool-foldable.tool-collapsed .av-summary::after,
.tool-foldable.tool-collapsed .ab-title::after{transform:rotate(-90deg)}
#podcastbox.tool-collapsed>:not(.tool-label){display:none!important}
#bookmarkbox.tool-collapsed>:not(.tool-label){display:none!important}
#feedbackzone.tool-collapsed>:not(.fb-head){display:none!important}
#addvoicebox.tool-collapsed .av-body{display:none!important}
#addbookbox.tool-collapsed .ab-row>:not(.ab-title){display:none!important}
#addbookbox.tool-collapsed .ab-row:not(:first-of-type),
#addbookbox.tool-collapsed .ab-sub,
#addbookbox.tool-collapsed #ab_status{display:none!important}

/* 生成引擎 + 全部生成 */
#settings{display:block}
.settings-row1{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;
  overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;
  padding:2px 14px 4px 6px;border-top:1px solid var(--line);margin-top:4px;padding-top:6px}
.player-settings{padding:0 6px 4px}
.settings-fold{width:auto;height:auto;min-width:44px;min-height:44px;padding:0 12px;border-radius:999px;
  font-size:14px;font-weight:800;color:var(--gold);background:var(--gold-soft);
  box-shadow:inset 0 0 0 1px var(--gold-line);transition:transform .2s ease}
.settings-fold[aria-expanded="false"]{color:var(--muted);background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line)}
[data-theme="dark"] .settings-fold[aria-expanded="false"]{box-shadow:inset 0 0 0 1.5px var(--gold-line);color:var(--gold)}
#bottomfold{font-size:16px}
#bottomfold[aria-expanded="false"]{transform:rotate(180deg)}
.player-settings.gen-folded #genall{display:none}
/* P1-4: 播放时自动折叠声音/引擎行,只保留核心播放控制(暂停时恢复) */
.player.audio-playing>#voicewrap,
.player.audio-playing .player-settings .engsel-player,
.player.audio-playing .player-settings #genall,
.player.audio-playing .player-settings #karafollow,
.player.audio-playing .player-settings #loopmode{display:none!important}
/* 以上元素均有 transition:none,折叠/展开即时,无高度闪烁 */
body.bottom-folded .player>#voicewrap,
body.bottom-folded .player>#genprog,
body.bottom-folded .player>.seekwrap{display:none!important}
body.bottom-folded .player-settings .engsel-player,
body.bottom-folded .player-settings #genall,
body.bottom-folded .player-settings #karafollow,
body.bottom-folded .player-settings #loopmode{display:none!important}
body.bottom-folded .player{padding-top:6px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
/* 折叠态 settings-row1 只剩 #bottomfold，让它居中 */
body.bottom-folded .settings-row1{justify-content:center}
@media(max-width:480px){
  #genfold{display:none}
}
.engsel{display:flex;align-items:center;gap:8px}
.engsel-lab{font-size:13px;color:var(--muted);margin-right:2px}
/* id19:播放区内的引擎选择器(固定常驻、紧凑;颜色用主题变量,亮暗自适配) */
.engsel-player{margin:0;gap:6px;flex-wrap:nowrap}
.player-settings.voice-folded .engsel-player{display:none}
.engsel-player .engsel-lab{font-size:12px;margin-right:0}
.engsel-player .engbtn{font-size:12px;min-height:44px;padding:7px 10px;white-space:nowrap}
.engbtn{font-size:13px;font-weight:600;min-height:36px;height:auto;width:auto;padding:6px 14px;
  border-radius:999px;background:var(--surface-2);color:var(--ink);border:1px solid transparent;cursor:pointer;
  white-space:nowrap}
.engbtn.on{background:var(--accent);color:#fff;box-shadow:0 2px 8px rgba(58,114,212,.30)}
.engbtn:disabled{opacity:.4;cursor:not-allowed}
/* 云端→本地 过渡中:本地按钮内嵌橙色进度环(甜甜圈,比例=本段本地生成进度) */
.engbtn.swapring{position:relative;padding-left:30px}
.engbtn.swapring::before{content:'';position:absolute;left:9px;top:50%;transform:translateY(-50%);
  width:14px;height:14px;border-radius:50%;
  background:conic-gradient(#f39c12 var(--eng-pct,5%),var(--donut-track) var(--eng-pct,5%));
  animation:ringPulse 2s ease-in-out infinite}
.engbtn.swapring::after{content:'';position:absolute;left:12px;top:50%;transform:translateY(-50%);
  width:8px;height:8px;border-radius:50%;background:var(--surface-2)}
#genall{margin-left:auto;height:auto;min-height:40px;width:auto;padding:7px 12px;
  border-radius:999px;font-size:12px;font-weight:500;cursor:pointer;white-space:nowrap;
  background:transparent;color:var(--muted);border:1px solid var(--line);box-shadow:none}
#genall:hover{background:var(--surface-2)}
/* 生成中:实心强调 */
#genall.on{background:var(--surface-2);color:var(--muted);border-color:var(--line);box-shadow:none}
/* id71 字幕跟读开关:默认关=低调中性;开=蓝色实心。与引擎/全部生成同排 */
.kfbtn{min-height:40px;height:auto;width:auto;padding:7px 11px;border-radius:999px;
  font-size:12px;font-weight:600;cursor:pointer;border:none;white-space:nowrap;
  background:var(--surface-2);color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}
.kfbtn.on{background:var(--gold-soft);color:var(--gold);box-shadow:inset 0 0 0 1.5px var(--gold-line)}
/* 连播按钮(已移到设置行,与跟读同组);data-mode 控制态:连播/循环=高亮,不连播=暗 */
#loopmode.loopbtn[data-mode="next"],#loopmode.loopbtn[data-mode="loop"]{background:var(--gold-soft);color:var(--gold);box-shadow:inset 0 0 0 1.5px var(--gold-line)}
#loopmode.loopbtn[data-mode="off"]{background:var(--surface-2);color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}

/* 书签栏 */
#bmbar{display:flex;flex-wrap:wrap;gap:8px;min-height:0;padding-bottom:calc(env(safe-area-inset-bottom,0px))}
#bmbar:empty::after{content:'还没有书签 — 听到喜欢的段落点 🔖 收藏';color:var(--muted-2);font-size:12.5px}
.bm-chip{display:inline-flex;align-items:center;gap:2px;min-height:44px;border:1px solid var(--bm-line);
  border-radius:999px;background:var(--bm-bg);color:var(--bm-ink);overflow:hidden}
.bm-jump,.bm-del{height:44px;min-height:44px;border:0;background:transparent;color:inherit;display:inline-flex;
  align-items:center;justify-content:center}
.bm-jump{padding:0 10px 0 13px;font-size:13px;font-weight:650}
.bm-del{width:44px;color:var(--muted);font-size:13px;border-left:1px solid var(--bm-line);cursor:pointer;position:relative;z-index:1}
.bm-del:hover{background:var(--gold-soft);color:var(--gold)}
.bm-jump:active,.bm-del:active{transform:none;opacity:.72}

/* 添加声源(链接克隆)表单:默认平铺展开(id12 用户要求不折叠),保持横向紧凑一行布局 */
.av-summary{display:flex;align-items:center;gap:6px;margin-bottom:11px;
  font-size:13px;font-weight:600;color:var(--muted);letter-spacing:.02em;line-height:1.4}
.av-body{display:flex;flex-direction:column;gap:7px}
.av-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.av-title{margin-bottom:0;flex:0 0 auto;white-space:nowrap}
[data-theme="dark"] .av-row input[type=text]{border-color:rgba(255,255,255,.22)}
.av-row input[type=text]{height:38px;padding:7px 11px;border:1px solid var(--input-line);
  border-radius:9px;font-size:13.5px;background:var(--input-bg);color:var(--ink);outline:none;min-width:0}
.av-row input[type=text]:focus{border-color:var(--accent)}
.av-row input[type=text]::placeholder,.av-search-row input::placeholder{color:var(--muted);opacity:1}
#av_url{flex:4 1 180px}
#av_name{flex:1 1 120px;min-width:120px}
#av_start{flex:1 1 100px;min-width:100px}
.av-consent{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--ink-soft);
  line-height:1.35;cursor:pointer;flex:1 1 auto;min-height:44px}
.av-consent input{width:16px;height:16px;flex:0 0 auto;accent-color:var(--accent);margin:0}
#av_paste,#av_submit{flex:0 0 auto;height:44px;min-height:44px;width:auto;padding:0 14px;border-radius:9px;font-size:13px;
  font-weight:600;border:none;cursor:pointer;white-space:nowrap}
#av_paste{background:var(--surface-2);color:var(--ink);border:1px solid var(--input-line)}
#av_paste:hover{background:var(--surface-3,#e8eaf0)}
#av_submit{padding:0 18px;font-size:14px;
  font-weight:600;background:var(--accent);color:#fff;border:none;cursor:pointer;white-space:nowrap;
  box-shadow:0 2px 8px rgba(58,114,212,.30)}
#av_submit:disabled{opacity:.6;cursor:wait}
.av-status{font-size:12.5px;line-height:1.45;color:var(--muted);min-height:0;word-break:break-word}
.av-status:empty{display:none}
.av-status.ok{color:var(--gold);font-weight:600}
.av-status.err{color:#c0392b;font-weight:600}
/* 搜索模式 */
.av-mode-row{display:flex;gap:6px;margin-bottom:4px}
.av-mode-btn{height:32px;width:auto;padding:0 14px;border-radius:8px;font-size:12.5px;font-weight:600;white-space:nowrap;flex:0 0 auto;
  background:var(--surface);color:var(--muted);border:1px solid var(--input-line);cursor:pointer}
.av-mode-btn.av-mode-active{background:var(--accent);color:#fff;border-color:var(--accent)}
.av-search-row{display:flex;gap:8px;width:100%}
.av-search-row input{flex:1 1 0;height:38px;padding:7px 11px;border:1px solid var(--input-line);
  border-radius:9px;font-size:13.5px;background:var(--input-bg);color:var(--ink);outline:none;min-width:0}
.av-search-row input:focus{border-color:var(--accent)}
#av_search_btn{height:38px;padding:0 18px;border-radius:9px;font-size:14px;font-weight:600;
  background:var(--accent);color:#fff;border:none;cursor:pointer;white-space:nowrap;
  box-shadow:0 2px 8px rgba(58,114,212,.30);flex:0 0 auto}
#av_search_btn:disabled{opacity:.6;cursor:wait}
.av-search-results{display:flex;flex-direction:column;gap:8px;margin-top:6px;width:100%}
.av-sr-item{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"badge title action" "meta meta action";
  align-items:center;column-gap:8px;row-gap:5px;
  padding:10px 12px;border-radius:10px;background:var(--surface);border:1px solid var(--input-line)}
.av-sr-item.av-sr-rec{border-color:var(--accent);background:rgba(58,114,212,.06)}
.av-sr-badge{font-size:11px;font-weight:700;color:var(--accent);background:rgba(58,114,212,.12);
  padding:2px 7px;border-radius:5px;white-space:nowrap;grid-area:badge}
.av-sr-title{grid-area:title;min-width:0;font-size:13px;line-height:1.45;color:var(--ink);font-weight:600;
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}
.av-sr-item:not(.av-sr-rec) .av-sr-title{grid-column:1 / 3}
.av-sr-meta{grid-area:meta;min-width:0;font-size:11.5px;line-height:1.35;color:var(--muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.av-sr-pick{grid-area:action;align-self:center;justify-self:end;height:34px;min-height:34px;width:auto;
  padding:0 13px;border-radius:8px;font-size:12.5px;line-height:1;font-weight:700;
  background:var(--accent);color:#fff;border:none;cursor:pointer;white-space:nowrap}
.av-sr-pick:disabled{opacity:.6;cursor:wait}

/* id51:订阅播客区 —— 只读链接框 + 复制按钮 + 小字提示 */
.pod-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.pod-url{flex:3 1 200px;min-width:0;height:38px;padding:0 11px;font-size:12.5px;
  color:var(--ink-soft);background:var(--surface);border:1px solid var(--input-line);
  border-radius:9px;outline:none;font-variant-numeric:tabular-nums;
  text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.pod-url:focus{border-color:var(--accent)}
.pod-copy{flex:0 0 auto;height:38px;min-height:38px;width:auto;padding:0 16px;border-radius:9px;
  font-size:13.5px;font-weight:600;background:var(--accent);color:#fff;border:none;cursor:pointer;
  white-space:nowrap;box-shadow:0 2px 8px rgba(58,114,212,.30)}
.pod-copy:hover{background:var(--accent-hover)}
.pod-copy.ok{background:var(--gold);box-shadow:0 2px 8px rgba(201,144,34,.30)}
/* id57:消歧提示 —— 订阅播客=分享本书 / 导入新书=抓外部文章(两者方向相反) */
.pod-sub{font-size:12px;line-height:1.5;color:var(--muted);margin:-2px 0 9px}
.ab-sub{font-size:12px;line-height:1.5;color:var(--muted);margin:6px 0 2px;flex-basis:100%}
.pod-tip{font-size:12px;line-height:1.5;color:var(--muted);margin-top:8px}
.pod-tip code{font-size:11.5px;background:var(--surface-2);color:var(--ink-soft);
  padding:1px 5px;border-radius:5px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

/* 添加书(EPUB/PDF/网页):横向紧凑一行,窄屏 wrap,风格与添加声源一致 */
.ab-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ab-title{margin-bottom:0;flex:0 0 auto;white-space:nowrap}
.ab-file-native{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.ab-file-btn{flex:0 0 auto;height:38px;min-height:38px;width:auto;padding:0 15px;border-radius:9px;
  display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;
  background:var(--surface-2);color:var(--ink);border:1px solid var(--input-line);cursor:pointer;
  white-space:nowrap}
.ab-file-btn:hover{background:var(--surface-3,#e8eaf0)}
.ab-file-name{flex:1 1 120px;min-width:0;font-size:12.5px;line-height:1.35;color:var(--muted);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ab-segmode{flex:0 0 auto;height:38px;min-height:38px;max-width:112px;border-radius:9px;
  padding:0 9px;border:1px solid var(--input-line);background:var(--surface);
  color:var(--ink);font-size:13px;font-weight:600;white-space:nowrap}
#ab_submit{flex:0 0 auto;height:38px;min-height:38px;width:auto;padding:0 18px;border-radius:9px;
  font-size:14px;font-weight:600;background:var(--accent);color:#fff;border:none;cursor:pointer;
  white-space:nowrap;box-shadow:0 2px 8px rgba(58,114,212,.30)}
#ab_submit:disabled{opacity:.6;cursor:wait}
/* 链接导入行 */
#ab_url{flex:2 1 200px;min-width:0;height:38px;padding:0 10px;font-size:13.5px;
  border:1.5px solid var(--border);border-radius:9px;background:var(--surface-2);color:var(--ink);
  outline:none}
#ab_url:focus{border-color:var(--accent)}
#ab_paste{flex:0 0 auto;height:38px;min-height:38px;width:auto;padding:0 14px;border-radius:9px;
  font-size:13px;font-weight:600;background:var(--surface-2);color:var(--ink);
  border:1.5px solid var(--border);cursor:pointer;white-space:nowrap}
#ab_paste:hover{background:var(--surface-3,#e8eaf0)}
#ab_url_submit{flex:0 0 auto;height:38px;min-height:38px;width:auto;padding:0 16px;border-radius:9px;
  font-size:14px;font-weight:600;background:var(--accent);color:#fff;border:none;cursor:pointer;
  white-space:nowrap;box-shadow:0 2px 8px rgba(58,114,212,.30)}
#ab_url_submit:disabled{opacity:.6;cursor:wait}

/* 反馈面板预留位 */
/* id20:反馈面板顶部「＋ 添加反馈」按钮(与标题同行) */
.fb-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.fb-head .tool-label{margin-bottom:0}
.fb-add{flex:0 0 auto;font-size:12.5px;font-weight:600;min-height:30px;width:auto;height:auto;
  padding:5px 14px;border-radius:999px;background:var(--accent);color:#fff;border:none;cursor:pointer;
  box-shadow:0 2px 8px rgba(58,114,212,.30)}
.fb-add:hover{background:var(--accent-hover)}
.fb-add:disabled{opacity:.58;cursor:not-allowed;background:var(--surface-2);color:var(--muted)}
.fb-list{min-height:0}
.fb-empty{font-size:12.5px;line-height:1.55;color:var(--muted-2);
  background:var(--surface);border:1px dashed var(--line);border-radius:10px;padding:11px 13px}

/* ── 反馈列表项(带 checkbox,勾选打勾后划掉移除)── */
.fb-item{display:flex;align-items:flex-start;gap:10px;padding:10px 11px;margin-bottom:7px;
  background:var(--surface);border:1px solid var(--line);border-radius:10px;cursor:pointer;
  transition:opacity .3s ease,transform .3s ease}
.fb-item:last-child{margin-bottom:0}
.fb-item input[type=checkbox]{margin-top:2px;width:18px;height:18px;flex:0 0 auto;accent-color:var(--gold);cursor:pointer}
.fb-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.fb-area{align-self:flex-start;font-size:11px;font-weight:600;color:var(--accent);
  background:var(--accent-soft);padding:1px 8px;border-radius:999px}
.fb-text{font-size:13.5px;line-height:1.5;color:var(--ink-soft);word-break:break-word}
/* 语音识别炫酷浮层(用户 153):固定左下角,避开底部 home 条;声波脉冲动画 */
#fbvoicehud{position:fixed;left:12px;bottom:calc(88px + env(safe-area-inset-bottom,0px));z-index:9000;
  background:linear-gradient(135deg,rgba(38,24,60,.96),rgba(72,34,104,.96));color:#fff;
  border-radius:18px;padding:14px 16px;max-width:min(80vw,340px);
  box-shadow:0 10px 36px rgba(60,20,90,.45);backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.16);animation:fbvhIn .22s ease}
#fbvoicehud[hidden]{display:none}
@keyframes fbvhIn{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
.fbvh-waves{display:flex;align-items:center;gap:4px;height:26px;margin-bottom:9px}
.fbvh-waves i{width:4px;height:8px;border-radius:2px;
  background:linear-gradient(180deg,#ffd86b,#ff7eb3);animation:fbvhWave 1s ease-in-out infinite}
.fbvh-waves i:nth-child(1){animation-delay:0s}
.fbvh-waves i:nth-child(2){animation-delay:.14s}
.fbvh-waves i:nth-child(3){animation-delay:.28s}
.fbvh-waves i:nth-child(4){animation-delay:.42s}
.fbvh-waves i:nth-child(5){animation-delay:.56s}
@keyframes fbvhWave{0%,100%{height:8px;opacity:.6}50%{height:26px;opacity:1}}
/* 转写中:声波转成流动光带 */
#fbvoicehud.fbvh-busy .fbvh-waves i{animation:fbvhBusy 1.1s ease-in-out infinite}
@keyframes fbvhBusy{0%,100%{height:14px;opacity:.4}50%{height:20px;opacity:.9}}
.fbvh-text{font-size:14px;line-height:1.5;min-height:21px;word-break:break-word;margin-bottom:11px;font-weight:500}
.fbvh-stop{background:rgba(255,255,255,.22);color:#fff;border:none;border-radius:999px;
  padding:8px 20px;font-size:13.5px;font-weight:700;cursor:pointer;min-height:38px;width:100%}
.fbvh-stop:active{background:rgba(255,255,255,.38)}
.fb-reply{margin:8px 0 2px;padding:8px 11px;background:var(--accent-soft,rgba(180,140,40,.1));border-left:3px solid var(--accent,#b48c28);border-radius:8px}
.fb-reply-who{font-size:11.5px;font-weight:700;color:var(--accent,#b48c28)}
.fb-reply-text{font-size:13.5px;line-height:1.55;color:var(--ink);word-break:break-word;white-space:pre-wrap;margin-top:3px}
.fb-time{font-size:11px;color:var(--muted-2)}
.fb-del{width:24px;height:24px;flex:0 0 auto;font-size:13px;color:var(--muted-2);border-radius:50%}
.fb-del:hover{background:var(--surface-2);color:var(--ink)}
.fb-item.done{opacity:0;transform:translateX(14px)}
.fb-item.done .fb-text{text-decoration:line-through}
.fb-item.removing{opacity:0;transform:scale(.96)}
/* 功能6:QA(空提交)反馈项标识 */
.fb-qa{align-self:flex-start;font-size:11px;font-weight:600;color:#b06f00;
  background:var(--banner-bg);border:1px solid var(--banner-line);padding:1px 8px;border-radius:999px}
/* 功能3:反馈「处理中」进度条 */
.fb-prog{margin-top:5px}
.fb-prog-bar{height:5px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.fb-prog-fill{height:100%;border-radius:999px;background:var(--accent);transition:width .5s ease}
.fb-prog-lab{font-size:11px;color:var(--accent);font-weight:600;margin-top:3px}
/* 已处理反馈区:小标题分隔 + 每条带 ✅、文字置灰删除线(亮/暗均走 CSS 变量) */
/* id44:可折叠标题行 —— 整行可点,左侧箭头指示展开/收起 */
.fb-done-head{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;color:var(--muted);
  margin:10px 2px 6px;padding-top:9px;border-top:1px dashed var(--line);cursor:pointer;user-select:none}
.fb-done-head:hover{color:var(--accent)}
/* id54:未处理反馈折叠头 —— 它是列表首元素,去掉顶部虚线分隔,贴着上方输入框更紧凑 */
.fb-undone-head{border-top:none;padding-top:2px;margin-top:0}
.fb-done-arrow{display:inline-block;width:12px;text-align:center;font-size:10px;color:var(--muted-2);transition:color .15s ease}
.fb-done-head:hover .fb-done-arrow{color:var(--accent)}
.fb-done-wrap{}
.fb-item.fb-done{opacity:.72}
.fb-item.fb-done .fb-text{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--muted-2)}
.fb-item.fb-done .fb-area{color:var(--muted-2)}
.fb-check{margin-top:1px;width:18px;height:18px;flex:0 0 auto;font-size:14px;line-height:18px;
  text-align:center;color:var(--gold)}
/* id14:已处理项「打回」按钮 —— 克制小药丸,亮/暗均走 CSS 变量 */
.fb-reopen{flex:0 0 auto;align-self:flex-start;margin-top:1px;font-size:11px;font-weight:600;
  color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:999px;
  padding:3px 10px;cursor:pointer;white-space:nowrap;transition:background .15s ease,color .15s ease,border-color .15s ease}
.fb-reopen:hover{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}
/* id42:反馈面板常驻输入框(紧凑,移动端不挤占太多高度) */
.fb-quickadd{margin-bottom:12px}
.fb-quick-ta{width:100%;min-height:46px;resize:vertical;padding:8px 11px;font-size:16px;line-height:1.5;
  color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:9px;box-sizing:border-box}
.fb-quick-ta::placeholder{color:var(--muted-2)}
/* 夜间模式占位文字默认偏暗、几乎看不清 → 统一用 --muted-2(暗底 5.4:1 可读) */
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder{color:var(--muted-2);opacity:1}
.fb-quick-ta:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.fb-quick-ta:disabled{opacity:.72;cursor:not-allowed;background:var(--surface-2);color:var(--muted)}
.fb-quick-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:6px}
.fb-mic-hint{flex:0 0 auto;font-size:12px;color:var(--muted-2);user-select:none;margin-right:-4px}  /* MQ-11:麦克风「语音填入」标签,操作链视觉明确;负 margin 拉近🎤成组 */
/* id79/80:反馈语音识别键。idle=🎤,录音中=红底脉冲方块,识别中=半透明等待 */
.fb-mic{flex:0 0 auto;width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;
  font-size:18px;line-height:1;border:1px solid var(--input-line);background:var(--surface);
  color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center}
[data-theme="dark"] .fb-mic{background:var(--surface-2);border-color:var(--muted-2)}  /* 夜间提对比:亮描边+亮底,与提交键存在感拉齐(QA r3) */
.fb-mic.rec{background:#e0533a;color:#fff;border-color:#e0533a;animation:fbmicpulse 1.1s ease-in-out infinite}
.fb-mic.busy{opacity:.6;cursor:wait}
.fb-mic:disabled{opacity:.45;cursor:not-allowed}
@keyframes fbmicpulse{0%,100%{box-shadow:0 0 0 0 rgba(224,83,58,.45)}50%{box-shadow:0 0 0 6px rgba(224,83,58,0)}}
@media (prefers-reduced-motion:reduce){.fb-mic.rec{animation:none}}
.fb-quick-tip{flex:1;min-width:0;font-size:12px;color:var(--muted);line-height:1.4}
.fb-quick-send{flex:0 0 auto;width:auto;height:auto;min-height:40px;padding:7px 18px;border-radius:8px;
  font-size:13px;font-weight:600;color:#fff;background:var(--accent);cursor:pointer}
.fb-quick-send:hover{background:var(--accent-hover)}
.fb-quick-send:disabled{opacity:.6;cursor:not-allowed}

/* B站视频入口:列出 videos/*.mp4,可直接预览或打开 */
.video-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.video-head .tool-label{flex:1;min-width:0}
.video-fold{flex:0 0 auto;width:34px;height:34px;min-height:34px;padding:0;border-radius:8px;
  font-size:15px;font-weight:700;background:var(--surface-2);color:var(--ink);cursor:pointer}
.video-refresh{width:auto;height:auto;min-height:34px;padding:5px 14px;border-radius:8px;
  font-size:13px;font-weight:600;background:var(--surface-2);color:var(--ink);cursor:pointer}
.video-collapsed .video-head{margin-bottom:0}
.video-list{display:flex;flex-direction:column;gap:8px}
.video-empty{font-size:13px;color:var(--muted);line-height:1.5}
.video-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);
  border-radius:8px;background:var(--surface)}
.video-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.video-name{font-size:13.5px;font-weight:650;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.video-sub{font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.video-play,.video-open{flex:0 0 auto;width:auto;height:auto;min-height:34px;padding:5px 12px;
  border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}
.video-play{background:var(--accent);color:#fff}
.video-open{background:var(--surface-2);color:var(--ink);text-decoration:none;display:inline-flex;align-items:center}
.video-preview{width:100%;margin-top:12px;border-radius:8px;background:#000;display:block}
.video-preview[hidden]{display:none}
@media(max-width:560px){
  .video-item{align-items:stretch;flex-wrap:wrap}
  .video-meta{flex-basis:100%}
}

/* 功能5:前端版本号(页面底部居中 footer) */
.ver-tag{font-size:11px;color:var(--muted-2);font-variant-numeric:tabular-nums;letter-spacing:.02em}
.page-footer-ver{text-align:center;padding:16px 0 calc(8px + env(safe-area-inset-bottom,0px));
  pointer-events:none}

/* ════ Toast 全局提示 ════ */
#app-toast{
  position:fixed;left:50%;transform:translateX(-50%);
  top:auto;bottom:200px;
  background:rgba(58,40,0,.90);color:#fff8e8;padding:8px 18px;border-radius:999px;
  font-size:13.5px;font-weight:600;white-space:nowrap;
  pointer-events:none;z-index:9999;
  transition:opacity .25s ease;opacity:0;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
[data-theme="dark"] #app-toast{background:rgba(40,36,28,.92);color:#fff}

/* ════ 右键/长按语音反馈浮层 ════ */
#fbpop{position:fixed;z-index:60;width:280px;max-width:calc(100vw - 16px);
  background:var(--card);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 8px 30px rgba(20,24,33,.18);padding:12px;
  display:flex;flex-direction:column;gap:9px}
.fbpop-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.fbpop-area{font-size:12.5px;font-weight:600;color:var(--accent);background:var(--accent-soft);
  padding:3px 10px;border-radius:999px;line-height:1.4}
.fbpop-x{width:26px;height:26px;font-size:15px;color:var(--muted);border-radius:50%}
.fbpop-x:hover{background:var(--surface-2)}
/* 文本域:明显边框 + 浅底,一眼是可输入区(用户反馈「看不出书框」)*/
.fbpop-ta{width:100%;min-height:64px;resize:vertical;padding:9px 11px;font-size:16px;line-height:1.5;
  border:1.5px solid var(--input-line);border-radius:10px;background:var(--input-bg);color:var(--ink);
  outline:none;font-family:inherit;transition:border-color .15s ease,box-shadow .15s ease}
.fbpop-ta::placeholder{color:var(--muted-2)}
.fbpop-ta:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
/* 空提交说明小字 */
.fbpop-note{font-size:11.5px;line-height:1.4;color:var(--muted);margin-top:-2px}
.fbpop-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fbpop-mic{width:auto;height:auto;min-height:34px;padding:5px 13px;border-radius:999px;font-size:13px;
  font-weight:600;background:var(--surface-2);color:var(--ink);cursor:pointer}
.fbpop-mic.rec{background:#e0533a;color:#fff;animation:fbRec 1.1s ease-in-out infinite}
@keyframes fbRec{0%,100%{box-shadow:0 0 0 0 rgba(224,83,58,.5)}50%{box-shadow:0 0 0 7px rgba(224,83,58,0)}}
.fbpop-tip{font-size:12px;color:var(--muted);line-height:1.4;flex:1;min-width:0}
.fbpop-btns{display:flex;justify-content:flex-end;gap:8px}
.fbpop-cancel,.fbpop-submit{width:auto;height:auto;min-height:36px;padding:6px 18px;border-radius:9px;
  font-size:14px;font-weight:600;cursor:pointer}
.fbpop-cancel{background:var(--surface-2);color:var(--ink)}
.fbpop-submit{background:var(--accent);color:#fff;box-shadow:0 2px 8px rgba(58,114,212,.3)}
.fbpop-submit:disabled{opacity:.6;cursor:wait}

/* ════ 底部固定播放器:音色 + 状态 + 进度条 + 传输键 ════ */
.player{position:sticky;bottom:0;z-index:30;
  background:var(--surface);border-top:1px solid rgba(201,144,34,.33);
  box-shadow:0 -2px 16px rgba(20,24,33,.07);
  padding:3px 14px calc(20px + env(safe-area-inset-bottom,0px));
  transition:border-top-color .3s ease}
/* 播放中:顶部加 3px 金色指示线,彻底解决「是否在播」歧义 */
.player.audio-playing{border-top:3px solid var(--gold)}
[data-theme="dark"] .player{border-top-color:var(--gold-line);}
[data-theme="dark"] .player.audio-playing{border-top-color:var(--gold)}

/* 声音切换胶囊行:单行横向可滑(MRU,最近选中的排最左),不换行 */
.voice-wrap{padding:3px 6px 0 14px;margin-bottom:1px;position:relative;overflow:visible}
.voice-wrap.collapsed{padding:1px 6px}
.voice-wrap.collapsed .vbtns{display:none}
/* 右侧渐变 fade:改用 ::after pointer-events:none 遮罩,不再对滚动容器用 mask-image(mask 会隐藏可操作的 × 按钮) */
.voice-wrap::after{content:'';position:absolute;right:0;top:0;bottom:0;width:48px;
  background:linear-gradient(to right,transparent,var(--surface));pointer-events:none;z-index:2}
.voice-wrap.collapsed::after{display:none}
.vbtns{display:flex;gap:6px;align-items:center;justify-content:flex-start;flex-wrap:nowrap;min-width:0;flex:1 1 auto;
  overflow-x:auto;overflow-y:visible;white-space:nowrap;margin-bottom:0;padding:0 52px 0 0;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-x;
  box-shadow:inset -48px 0 20px -16px var(--surface)}
.vbtns::-webkit-scrollbar{display:none}
.vbtns .vbtn{flex:0 0 auto}
/* 声音按钮折叠收缩:被折叠的钮仍在DOM(供全量遍历函数生效),只是不可见 */
.vbtn.vbtn-hidden{display:none}
.vbtn-more{flex:0 0 auto;min-height:44px;padding:8px 12px;border-radius:999px;font-size:12.5px;font-weight:550;
  white-space:nowrap;cursor:pointer;background:var(--surface-2);color:var(--muted);border:1px dashed rgba(120,120,120,.4);}
.vbtn-more:active{opacity:.7}
.vbtn{position:relative;font-size:12.5px;font-weight:550;min-height:44px;padding:8px 8px;border-radius:999px;
  width:auto;height:auto;white-space:nowrap;gap:5px;cursor:pointer;
  background:var(--surface-2);color:var(--ink);border:1px solid transparent;
  transition:background-color .15s ease,color .15s ease,box-shadow .15s ease,opacity .15s ease;
  display:inline-grid;grid-auto-flow:column;align-items:center;justify-content:center}
.vbtn.on{background:var(--accent);color:#fff;box-shadow:0 2px 8px rgba(58,114,212,.30)}
.vbtn:disabled{opacity:.5;cursor:wait}
/* 功能C:当前段就绪状态点(绿=已生成 / 橙=未生成 / 原版恒绿) */
.vstat{width:7px;height:7px;border-radius:50%;flex:0 0 auto;background:#f5b942}
.vstat.ready{background:#22c55e}
[data-theme="dark"] .vstat.ready{background:#4ade80}
.vstat.pending{background:#f5b942}
/* 切音色「平滑骑过去」中:目标音色钮内嵌橙色进度环(甜甜圈,比例=该段生成进度) */
.vbtn.swapring{padding-left:30px}
.vbtn.swapring .vstat{display:none}            /* 骑过去时用进度环取代状态点 */
.vbtn.swapring::before{content:'';position:absolute;left:11px;top:50%;transform:translateY(-50%);
  width:14px;height:14px;border-radius:50%;
  background:conic-gradient(#f39c12 var(--eng-pct,5%),var(--donut-track) var(--eng-pct,5%));
  animation:ringPulse 2s ease-in-out infinite}
.vbtn.swapring::after{content:'';position:absolute;left:14px;top:50%;transform:translateY(-50%);
  width:8px;height:8px;border-radius:50%;background:var(--surface-2)}
/* 功能A:后加声音的删除角标(内建/原版不渲染)
   放在胶囊「内部」右侧(竖直居中),不再用负偏移悬在外边——因为 .vbtns 横向滚动
   会把 overflow-y 解析成 auto,负偏移的角标会被裁掉顶部 / 在半滚出的钮上甩出一坨红块。 */
.vbtn:has(.vdel){padding-left:0;padding-right:24px}
/* 删除角标降噪(用户 2026-06-28 减杂乱):默认低调灰色小 ×,按下/hover 才转红警示,不再常驻一坨红 */
.vdel{position:static;transform:none;flex:0 0 auto;margin-left:2px;
  width:20px;height:20px;border-radius:50%;
  background:rgba(0,0,0,.10);color:var(--muted);font-size:11px;line-height:1;font-weight:700;
  display:flex;align-items:center;justify-content:center;padding:0;
  border:none;box-shadow:none;cursor:pointer;
  transition:background-color .15s ease,color .15s ease,opacity .15s ease}
[data-theme="dark"] .vdel{background:rgba(255,255,255,.14)}
.vdel:hover,.vdel:active{background:#e0533a;color:#fff}

/* 生成进度状态行(固定高度防跳) */
#genprog{color:var(--accent);font-weight:550;font-size:12.5px;text-align:center;
  min-height:16px;line-height:16px}
#genprog:empty{display:none}
/* 克隆模式「等待当前段生成」进度条 */
.genbar{height:6px;border-radius:999px;background:var(--surface-2);overflow:hidden;max-width:24em;margin:4px auto 3px}
.genbarfill{height:100%;border-radius:999px;background:var(--accent);transition:width .6s ease}
.genbarlab{font-size:12.5px;color:var(--accent);font-weight:600;line-height:16px;text-align:center}

/* 进度条 + 时间 */
.seekwrap{width:100%;max-width:38em;margin:4px auto 0;border-top:1px solid var(--line);padding-top:4px}
[data-theme="dark"] .seekwrap{border-top-color:rgba(255,255,255,.09)}
#seek{-webkit-appearance:none;appearance:none;width:100%;height:44px;border-radius:999px;
  background:transparent;accent-color:var(--accent);cursor:pointer;outline:none}
#seek::-webkit-slider-runnable-track{height:7px;border-radius:999px;background:var(--surface-2)}
#seek::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;margin-top:-10px;border-radius:50%;
  background:var(--gold);border:3.5px solid #fff;box-shadow:0 2px 8px rgba(180,130,20,.45);cursor:pointer}
#seek::-moz-range-track{height:7px;border-radius:999px;background:var(--surface-2)}
#seek::-moz-range-thumb{width:26px;height:26px;border-radius:50%;background:var(--gold);border:3.5px solid #fff}
.prog{display:flex;justify-content:space-between;color:var(--ink-soft);font-size:13px;font-weight:600;
  font-variant-numeric:tabular-nums;margin-top:0;max-width:38em;margin-left:auto;margin-right:auto}

/* 控制区:大触控区(≥44px)、主按钮悬浮感 */
/* 🔖 绝对定位到右侧,剩余 ⏮ ▶ ⏭ 三键因左右对称而让 #play 精确居中 */
.ctrls{display:flex;align-items:center;justify-content:center;gap:18px;padding:0 0 0 40px;
  position:relative}
.ctrls button:last-child{position:absolute;right:6px}
/* 速度控件:绝对定位到左侧(与右侧🔖对称),不挤占居中的 ⏮▶⏭。−/+ 两键每次 ±0.1,钳 0.5~2.0 */
#speedwrap{position:absolute;left:2px;top:50%;transform:translateY(-50%);
  display:flex;flex-direction:row;align-items:center;gap:2px;z-index:1;width:126px}
/* 覆盖 .ctrls button 的 48px 大触控规则,做成紧凑小圆键 */
.ctrls #speedwrap .spdbtn{width:44px;height:44px;min-height:44px;font-size:18px;font-weight:700;line-height:1;
  border-radius:50%;color:var(--accent);background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;padding:0}
.ctrls #speedwrap .spdbtn:hover{background:#dfe3ea}
.ctrls #speedwrap .spdbtn:disabled{opacity:.35;cursor:not-allowed;background:var(--surface-2)}
#speedlab{font-size:12px;font-weight:600;color:var(--accent);font-variant-numeric:tabular-nums;
  line-height:1;min-width:34px;text-align:center}
/* ⚠️ 全局兜底:所有 button 默认 48px 圆形图标键。任何【带文字】的按钮(模式键/应用键/重生键…)
   必须显式覆盖 width:auto;white-space:nowrap,否则文字会被压成 48px 宽竖排逐字折行。本会话已踩 3 次。 */
button{background:none;border:none;color:var(--ink);font-size:26px;cursor:pointer;
  padding:0;width:48px;height:48px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;transition:background .15s ease,transform .1s ease}
.ctrls button:not(#play){color:#4a4f57}
[data-theme="dark"] .ctrls button:not(#play){color:var(--ink-soft)}
.ctrls button:not(#play):hover{background:var(--surface-2)}
/* 上一段/下一段:统一的简洁几何箭头(与 #play 主按钮、速度 −/＋ 同一视觉语言,非彩色 emoji) */
.ctrls .navbtn{font-size:34px;font-weight:300;line-height:1;padding-bottom:3px;
  width:44px;height:44px;min-width:44px;min-height:44px}
/* 连播模式三态按键:文字键,覆盖 48px 圆键规则做成紧凑胶囊;loop 态高亮、off 态淡化 */
.ctrls .loopbtn{width:auto;height:auto;min-height:40px;padding:0 11px;border-radius:14px;
    font-size:13px;font-weight:600;white-space:nowrap;gap:3px;color:#4a4f57}
.ctrls .loopbtn[data-mode="loop"]{color:#2563eb}
.ctrls .loopbtn[data-mode="off"]{opacity:.55}
#play{background:var(--accent);color:#fff;width:60px;height:60px;border-radius:50%;font-size:28px;
  box-shadow:0 4px 14px rgba(58,114,212,.38);transition:transform 0.1s ease,opacity 0.1s ease,background 0.2s ease,box-shadow 0.2s ease}
#play:hover{background:var(--accent-hover)}
#play:active{transform:scale(0.92)!important;opacity:.88!important}
#play:disabled{opacity:.45;cursor:wait;pointer-events:none;box-shadow:none}
/* 播放中:金色实心+双层光晕+描边环,与「待播放」蓝色明确区分(R7防御:外环+更亮内晕) */
.audio-playing #play{background:var(--gold);
  box-shadow:0 0 0 3px rgba(201,144,34,.90),0 0 0 8px rgba(201,144,34,.20),0 4px 22px rgba(201,144,34,.55);
  animation:playingPulse 2s ease-in-out infinite}
@keyframes playingPulse{
  0%,100%{box-shadow:0 0 0 3px rgba(201,144,34,.90),0 0 0 8px rgba(201,144,34,.20),0 4px 22px rgba(201,144,34,.55)}
  50%{box-shadow:0 0 0 3px rgba(201,144,34,.90),0 0 0 12px rgba(201,144,34,.28),0 4px 28px rgba(201,144,34,.72)}}
[data-theme="dark"] .audio-playing #play{
  box-shadow:0 0 0 3px rgba(240,196,111,.85),0 0 0 8px rgba(240,196,111,.22),0 4px 22px rgba(240,196,111,.50);
  animation:playingPulseDark 2s ease-in-out infinite}
@keyframes playingPulseDark{
  0%,100%{box-shadow:0 0 0 3px rgba(240,196,111,.85),0 0 0 8px rgba(240,196,111,.22),0 4px 22px rgba(240,196,111,.50)}
  50%{box-shadow:0 0 0 3px rgba(240,196,111,.85),0 0 0 13px rgba(240,196,111,.30),0 4px 30px rgba(240,196,111,.68)}}
#play.ready{background:var(--gold);box-shadow:0 0 0 0 rgba(201,144,34,.55);animation:readyPulse 1.3s ease-out infinite}
#play.buffering{opacity:.55;cursor:wait;animation:playSpinPulse 1s linear infinite}
@keyframes playSpinPulse{0%{box-shadow:0 4px 14px rgba(58,114,212,.38)}50%{box-shadow:0 4px 20px rgba(58,114,212,.65)}100%{box-shadow:0 4px 14px rgba(58,114,212,.38)}}
/* 「签」书签按钮:足够大触控目标 + 描边让它像个按钮 */
.bmbtn{font-size:14px;font-weight:700;width:44px;height:44px;min-width:44px;min-height:44px;
  border-radius:10px;border:1.5px solid var(--line)!important;background:var(--surface-2)!important;
  /* Proactive: flex-shrink:0 防止外层 flex 压缩触控目标 */
  color:var(--ink)!important;white-space:nowrap;width:auto;padding:0 10px;flex-shrink:0}
.bmbtn:hover{background:var(--surface-3,var(--surface-2))!important;border-color:var(--accent)!important}
/* 配图切段过渡:opacity 短暂降低暗示内容已切换 */
#segfig{transition:opacity .2s ease}
#segfig.switching{opacity:0.35}
@keyframes readyPulse{0%{box-shadow:0 0 0 0 rgba(201,144,34,.55)}70%{box-shadow:0 0 0 16px rgba(201,144,34,0)}100%{box-shadow:0 0 0 0 rgba(201,144,34,0)}}
button:active{transform:scale(.94);opacity:.85}

/* ════ 新版更新日志:右上角扁平「· 更新」标签(与语言切换/书目下拉统一)+ 弹窗卡片 ════ */
.cl-badge{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;
  font-size:11.5px;font-weight:700;line-height:1.5;color:var(--muted);
  background:var(--surface-2);border:1px solid transparent;border-radius:999px;
  padding:3px 9px;cursor:pointer;white-space:nowrap;
  transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.cl-badge:hover{color:var(--ink);background:var(--surface-2)}
/* 夜间模式切换按钮:与语言切换/更新标签同一视觉语言的小圆钮 */
.theme-btn{flex:0 0 auto;width:auto;height:auto;min-height:36px;padding:4px 10px;border-radius:999px;
  font-size:14px;line-height:1;background:var(--surface-2);border:1px solid transparent;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease}
.theme-btn:hover{background:var(--accent-soft)}
.color-btn{color:var(--accent);font-size:18px;font-weight:900}
.color-btn[data-accent="gold"]{color:var(--gold)}
.color-btn[data-accent="blue"]{color:#3a72d4}
.color-btn[data-accent="graphite"]{color:#555b65}
/* 标签内小圆点:无更新=中性灰,有未读=强调蓝并脉冲(取代之前突兀的 emoji + 角标红点) */
.cl-dot{width:6px;height:6px;border-radius:50%;background:var(--muted-2);flex:0 0 auto;transition:background .15s ease}
.cl-badge.has-new .cl-dot{background:var(--accent);animation:clDot 1.4s ease-in-out infinite}
@keyframes clDot{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.35);opacity:.6}}
@media(max-width:480px){
  .cl-badge{position:relative;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;
    padding:0;font-size:0!important;line-height:0;gap:0;overflow:hidden}
  .cl-badge::after{content:'更';font-size:13px;font-weight:800;line-height:1;color:var(--muted)}
  .cl-badge:hover::after{color:var(--ink)}
  .cl-badge .cl-dot{position:absolute;right:6px;top:6px;width:6px;height:6px}
  .healthlights{display:inline-flex;gap:1px;padding-right:0}
  .hl-dot{min-width:17px;height:17px;border-radius:5px;padding:0 3px;font-size:8px}
  .headrow{gap:3px}
  .bookpick{gap:4px}
  .headright{gap:3px}
  .langtoggle span{font-size:10px;padding:3px 3px}
}
/* 遮罩 + 卡片 */
#cl_overlay{display:none;position:fixed;inset:0;z-index:80;background:rgba(20,24,33,.34);
  align-items:center;justify-content:center;overscroll-behavior:contain;
  padding:max(22px,env(safe-area-inset-top,0px)) 14px max(22px,env(safe-area-inset-bottom,0px));
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
#cl_overlay.show{display:flex}
#cl_card{width:100%;max-width:440px;max-height:min(78vh,720px);display:flex;flex-direction:column;
  background:var(--card);border-radius:18px;border:1px solid var(--line);
  box-shadow:0 18px 52px rgba(20,24,33,.28);overflow:hidden;animation:clPop .22s ease}
@keyframes clPop{from{opacity:0;transform:translateY(-10px) scale(.97)}to{opacity:1;transform:none}}
.cl-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto;
  padding:18px 18px;border-bottom:1px solid var(--line)}
.cl-title{font-size:17px;font-weight:800;color:var(--ink)}
/* id23:更新日志弹窗顶部显眼版本号徽标 */
.cl-vertag{font-size:12px;font-weight:700;color:#fff;background:var(--accent);
  padding:2px 9px;border-radius:999px;letter-spacing:.02em;white-space:nowrap}
.cl-head .cl-x{margin-left:auto}
.cl-x{width:28px;height:28px;font-size:15px;color:var(--muted);border-radius:50%}
.cl-x:hover{background:var(--surface-2)}
.cl-body{overflow-y:auto;padding:8px 18px 18px;-webkit-overflow-scrolling:touch}
.cl-sec{padding:15px 0;border-bottom:1px dashed var(--line)}
.cl-sec:last-child{border-bottom:none}
.cl-ver{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.cl-date{font-size:12px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
/* id50:每批次版本号徽标(语义号 v1.1 / 历史字母号) */
.cl-vernum{font-size:11.5px;font-weight:800;color:var(--accent);background:var(--accent-soft);
  padding:1px 8px;border-radius:999px;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.cl-new{font-size:11px;font-weight:700;color:#fff;background:var(--accent);padding:1px 8px;border-radius:999px}
.cl-items{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}
.cl-items li{font-size:13.5px;line-height:1.5;color:var(--ink-soft)}
/* id59:「🚧 开发中 · 即将上线」roadmap 区 —— 与已发布版本视觉区分(虚线描边卡片 + 强调色背景) */
.cl-roadmap{margin:10px 0 4px;padding:12px 14px;border:1.5px dashed var(--accent);border-radius:12px;
  background:var(--accent-soft)}
.cl-roadmap-head{display:flex;align-items:center;gap:8px;margin-bottom:9px}
.cl-roadmap-title{font-size:13.5px;font-weight:800;color:var(--accent)}
.cl-roadmap-tag{font-size:10.5px;font-weight:700;color:var(--accent);background:var(--card);
  border:1px solid var(--accent);padding:1px 8px;border-radius:999px;white-space:nowrap}
.cl-roadmap-items{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;list-style:none}
.cl-roadmap-items li{position:relative;font-size:13px;line-height:1.5;color:var(--ink-soft)}
.cl-roadmap-items li::before{content:'🚧';position:absolute;left:-18px;font-size:11px;opacity:.85}
.cl-taskboard{margin-top:10px;padding-top:9px;border-top:1px solid var(--line);
  display:flex;flex-direction:column;gap:8px}
.cl-taskboard-title{font-size:12px;font-weight:800;color:var(--muted);letter-spacing:0}
.cl-taskrow{display:flex;gap:8px;align-items:flex-start}
.cl-taskrank{flex:0 0 auto;min-width:30px;height:22px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:800;color:#fff;background:var(--accent)}
.cl-tasktext{min-width:0;display:flex;flex-direction:column;gap:2px}
.cl-tasktext strong{font-size:13px;line-height:1.35;color:var(--ink)}
.cl-tasktext small{font-size:12px;line-height:1.4;color:var(--muted)}
.cl-taskboard + .cl-roadmap-items{margin-top:12px}
/* 已处理反馈区块:与 .cl-sec 协调,亮/暗模式均走 CSS 变量 */
.cl-fb-sec{border-bottom:2px solid var(--line)}
.cl-fb-title{font-size:12px;font-weight:700;color:var(--ink)}
.cl-fb-item{display:flex;justify-content:space-between;align-items:baseline;gap:6px;flex-wrap:wrap}
.cl-fb-text{font-size:13.5px;line-height:1.5;color:var(--ink-soft);flex:1 1 0;min-width:0}
.cl-fb-dt{font-size:11px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;flex:0 0 auto}

/* id43:更新日志弹窗底部「提反馈」入口(只提交,不显示已处理列表) */
.cl-feedback{flex:0 0 auto;padding:12px 16px 16px;border-top:1px solid var(--line);background:var(--surface)}
.cl-fb-lab{font-size:12.5px;font-weight:700;color:var(--ink);margin-bottom:8px}
.cl-fb-ta{width:100%;min-height:48px;resize:vertical;padding:8px 11px;font-size:16px;line-height:1.5;
  color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:9px;box-sizing:border-box}
.cl-fb-ta::placeholder{color:var(--muted-2)}
.cl-fb-ta:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.cl-fb-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:7px}
.cl-fb-tip{flex:1;min-width:0;font-size:12px;color:var(--muted);line-height:1.4}
.cl-fb-send{flex:0 0 auto;width:auto;height:auto;min-height:34px;padding:6px 18px;border-radius:8px;
  font-size:13px;font-weight:600;color:#fff;background:var(--accent);cursor:pointer}
.cl-fb-send:hover{background:var(--accent-hover)}
.cl-fb-send:disabled{opacity:.6;cursor:wait}

/* id41:新版本检测提示(非阻塞,屏幕中间;不打断播放,用户点「刷新」才刷) */
#uv_banner{position:fixed;left:50%;top:50%;transform:translate(-50%,-44%) scale(.96);z-index:120;
  display:flex;align-items:flex-start;gap:14px;width:min(560px,calc(100vw - 28px));max-width:calc(100vw - 28px);
  padding:20px 18px;border-radius:16px;background:var(--ink);color:#fff;
  box-shadow:0 10px 32px rgba(0,0,0,.30);font-size:15px;line-height:1.42;
  opacity:0;pointer-events:none;transition:transform .22s ease,opacity .22s ease}
#uv_banner.show{transform:translate(-50%,-50%) scale(1);opacity:1;pointer-events:auto}
.uv-copy{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:6px}
.uv-msg{font-weight:800;font-size:16px}
.uv-detail{font-size:13px;line-height:1.5;color:rgba(255,255,255,.86);max-height:4.5em;overflow:auto;-webkit-overflow-scrolling:touch}
#uv_banner button{flex:0 0 auto;width:auto;height:auto;min-height:42px;padding:8px 16px;border-radius:999px;
  font-size:13px;font-weight:700;cursor:pointer;border:none}
.uv-later{background:rgba(255,255,255,.16);color:#fff}
.uv-later:hover{background:rgba(255,255,255,.26)}
.uv-go{background:var(--accent);color:#fff}
.uv-go:hover{background:var(--accent-hover)}

/* ＋新书:点击后滚到加书表单并短暂高亮 */
.tool-block.flash{animation:tbFlash 1.7s ease}
@keyframes tbFlash{0%,100%{background:var(--card)}22%,58%{background:var(--accent-soft)}}

/* ── 移动端覆写(放最后,确保以同等特异性覆盖上面的桌面规则)── */
@media(max-width:480px){
  header{padding:10px 14px 6px}
  h1{font-size:15px}
  #segstrip{padding:6px 10px 8px}
  #text{padding:10px 20px 18px;font-size:18px;min-height:12vh}
  /* bkbanner 改流内(position:relative),移动端无需覆写 top */
  .tool-block{padding:13px 14px}
  .player{padding:4px 12px calc(20px + env(safe-area-inset-bottom,0px))}
  /* 添加声源移动端紧凑:consent+submit 并排同行,三输入框仍在上行
     consent flex-basis 200px → 三输入(~372px)放完已没空间给它,强制换到下一行;
     下一行 consent(grow 1)+submit(auto ~90px)= 二者并排 */
  .av-consent{flex:1 1 200px;min-width:0;font-size:11px}
  #av_submit{padding:0 12px}
  .av-search-row{gap:6px}
  #av_search_btn{padding:0 14px}
  .av-sr-item{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"badge title" "meta meta" "action action";
    align-items:start;padding:10px 10px}
  .av-sr-title{font-size:13px}
  .av-sr-pick{justify-self:stretch;width:100%;height:36px;min-height:36px}
}

/* ── 桌面:工具区与播放器同样限宽居中,版心一致 ── */
@media(min-width:760px){
  .player>.voice-wrap,.player>#genprog,.player>#settings{max-width:38em;margin-left:auto;margin-right:auto}
  .player>.ctrls{max-width:38em;margin-left:auto;margin-right:auto}
}

/* ── 服务器重启预告横幅:全屏遮罩 + 大号倒计时(z-index 盖一切) ── */
#restartbanner{position:fixed;inset:0;z-index:9999;display:flex;
  align-items:center;justify-content:center;
  background:rgba(15,18,26,.72);backdrop-filter:blur(3px);
  animation:rbFade .2s ease}
#restartbanner[hidden]{display:none}
#restartbanner .rb-box{text-align:center;color:#fff;padding:24px 28px;max-width:90%}
#restartbanner .rb-msg{font-size:20px;font-weight:700;margin-bottom:8px;
  text-shadow:0 1px 4px rgba(0,0,0,.4)}
#restartbanner .rb-num{font-size:120px;line-height:1.05;font-weight:800;
  color:#ffd54a;text-shadow:0 2px 16px rgba(0,0,0,.5);
  font-variant-numeric:tabular-nums}
#restartbanner.rb-restarting .rb-num{font-size:64px;color:#7fd6ff}
#restartbanner.rb-done .rb-num{font-size:72px;color:#7be29a}
#restartbanner .rb-hint{font-size:13px;opacity:.85;margin-top:10px}
@keyframes rbFade{from{opacity:0}to{opacity:1}}
@media(max-width:480px){
  #restartbanner .rb-num{font-size:96px}
  #restartbanner .rb-msg{font-size:17px}
}

/* ── 触达热区补偿(WCAG/HIG ≥44pt):视觉大小不变,用透明伪元素把可点区域撑到 ≥44px ── */
/* 语言切换 中/EN/日(视觉 ~24px 高) */
.langtoggle span{position:relative}
.langtoggle span::after{content:'';position:absolute;left:0;right:0;top:50%;
  transform:translateY(-50%);height:44px}
/* 引擎按钮 本地/云端(视觉 ~28px 高) */
.engbtn{position:relative}
.engbtn::after{content:'';position:absolute;left:-2px;right:-2px;top:50%;
  transform:translateY(-50%);height:44px}
/* 删除声源红叉(视觉 18px):撑高到 44、左右只覆盖胶囊右侧预留区,不压到声音名 */
.vdel::before{content:'';position:absolute;left:-8px;right:-8px;top:50%;
  transform:translateY(-50%);height:44px}

/* 📡 发布到播客 —— 公网隧道链接 + 一键复制 + Apple Podcasts 直跳 */
.pub-pod-wrap{margin-top:13px;padding-top:12px;border-top:1px solid var(--input-line)}
.pub-pod-btn{width:100%;height:46px;border-radius:11px;font-size:14.5px;font-weight:700;
  background:var(--accent);color:#fff;border:none;cursor:pointer;
  letter-spacing:.03em;box-shadow:0 2px 10px rgba(58,114,212,.25);transition:opacity .15s}
.pub-pod-btn:hover{opacity:.88}
.pub-pod-btn:disabled{opacity:.55;cursor:wait}
.pub-pod-result{margin-top:11px;background:var(--surface-2);border-radius:12px;
  padding:12px 13px;display:flex;flex-direction:column;gap:9px}
.pub-pod-url{display:block;font-size:11px;color:var(--ink-soft);word-break:break-all;
  line-height:1.6;background:var(--surface);border:1px solid var(--input-line);
  border-radius:8px;padding:8px 10px;user-select:all;-webkit-user-select:all}
.pub-pod-actions{display:flex;flex-wrap:wrap;gap:8px}
.pub-pod-copybtn{flex:1 1 120px;width:auto;height:44px;min-height:44px;border-radius:10px;
  font-size:13.5px;font-weight:600;background:var(--accent);color:#fff;border:none;
  cursor:pointer;padding:0 14px;transition:background .15s}
.pub-pod-copybtn:hover{background:var(--accent-hover)}
.pub-pod-copybtn.ok{background:var(--gold);box-shadow:0 2px 8px rgba(201,144,34,.30)}
.pub-pod-applybtn{flex:1 1 120px;width:auto;height:44px;min-height:44px;border-radius:10px;
  font-size:13.5px;font-weight:600;background:var(--surface);color:var(--accent);
  border:1.5px solid var(--accent);padding:0 14px;text-decoration:none;
  display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;
  cursor:pointer;transition:background .15s;-webkit-tap-highlight-color:transparent}
.pub-pod-applybtn:hover{background:color-mix(in srgb,var(--accent) 8%,transparent)}
.pub-pod-note{font-size:12px;line-height:1.55;color:var(--muted)}
.pub-pod-warn{font-size:13.5px;line-height:1.5;color:var(--muted);
  text-align:center;padding:8px 10px;margin-top:10px;background:var(--surface-2);border-radius:10px}

/* [hidden] 在被 author display 规则覆盖时会失效 → 对订阅区元素显式兜底 */
#pod_cta[hidden],#pod_card[hidden],#pod_warn[hidden]{display:none!important}
/* 统一订阅卡片(已发布态) */
.pod-card{margin-top:12px;background:var(--surface-2);border:1px solid var(--input-line);
  border-radius:13px;padding:13px;display:flex;flex-direction:column;gap:10px}
.pod-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between}
.pod-card-ok{font-size:14px;font-weight:700;color:var(--gold)}
.pod-voice-tag{font-size:12px;font-weight:600;color:var(--ink-soft);
  background:var(--surface);border:1px solid var(--input-line);border-radius:999px;padding:3px 10px}
.pod-card .pub-pod-url{cursor:pointer}
.pod-cover-tools{margin-top:10px;padding:10px;border:1px solid var(--input-line);border-radius:10px;
  background:var(--surface);display:flex;flex-direction:column;gap:8px}
.pod-cover-title{font-size:12.5px;font-weight:800;color:var(--muted)}
.pod-cover-actions,.pod-cover-gen{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.pod-cover-btn{height:36px;min-height:36px;width:auto;padding:0 12px;border-radius:8px;
  display:inline-flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:800;
  background:var(--surface-2);color:var(--ink);border:1px solid var(--input-line);cursor:pointer;white-space:nowrap}
.pod-cover-btn.primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.pod-cover-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.pod-cover-gen input{flex:1 1 180px;min-width:0;height:38px;padding:7px 10px;border-radius:9px;
  border:1px solid var(--input-line);background:var(--input-bg);color:var(--ink);font-size:16px;outline:none}
.pod-cover-candidate{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:center}
.pod-cover-candidate[hidden]{display:none!important}
.pod-cover-candidate img{width:72px;height:72px;object-fit:cover;border-radius:10px;border:1px solid var(--input-line);background:var(--surface-2)}
.pod-cover-status{font-size:12px;line-height:1.45;color:var(--muted);min-height:0}
.pod-cover-status.ok{color:var(--gold);font-weight:700}
.pod-cover-status.err{color:#c0392b;font-weight:700}
.pod-refresh{align-self:flex-start;height:34px;width:auto;white-space:nowrap;padding:0 13px;border-radius:9px;
  font-size:12.5px;font-weight:600;background:transparent;color:var(--muted);border:1px solid var(--input-line);
  cursor:pointer;transition:background .15s}
.pod-refresh:hover{background:var(--surface)}
/* 同 WiFi 本地链接:折叠次选 */
.pod-local{margin-top:12px;border-top:1px solid var(--input-line);padding-top:10px}
.pod-local>summary{font-size:12.5px;color:var(--muted);cursor:pointer;list-style:none;
  padding:4px 0;-webkit-tap-highlight-color:transparent}
.pod-local>summary::-webkit-details-marker{display:none}
.pod-local>summary::before{content:'▸ ';color:var(--muted)}
.pod-local[open]>summary::before{content:'▾ '}
.pod-local .pod-row{margin-top:9px}

/* ════════════════════════════════════════════════════════════
   会员 / freemium(Inc1):👤 个人中心按钮 + 广告位 + 个人中心/付费墙模态。
   手机优先(iPhone 16 Pro Max);亮暗自适应(走 --card/--ink/--line/--accent)。
   签名元素 = 金色付费徽标 + ¥ 方案卡。
   ════════════════════════════════════════════════════════════ */
/* 👤 头像按钮:免费态=与 theme-btn 同权重(描边);付费态=金色实心 */
.me-btn{flex:0 0 auto;width:auto;height:auto;min-height:36px;min-width:36px;padding:4px 10px;border-radius:999px;
  font-size:14px;line-height:1;color:var(--ink);background:var(--surface-2);
  border:1px solid var(--line);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;transition:filter .15s ease,background .15s ease}
.me-btn:hover{background:var(--accent-soft)}
.me-btn.paid{background:linear-gradient(135deg,#f3dca0,#cda14a);color:#2a2008;
  border-color:rgba(201,144,34,.72);box-shadow:0 0 0 1.5px #caa14a}
@media(max-width:480px){
  .me-btn{width:44px;height:44px;min-width:44px;min-height:44px;padding:0}
}

/* 广告位:免费版专享自推广 banner;可点 → 付费墙 */
/* P1-B: margin-top 40px 与正文明确隔开;::before 假分隔线,避免与 border 规则冲突 */
.adslot{display:flex;align-items:center;gap:10px;margin:40px 0 10px;padding:11px 13px;position:relative;
  background:var(--gold-soft);border:1.5px dashed var(--gold-line);border-radius:13px;cursor:pointer;
  transition:background .15s ease,transform .1s ease}
.adslot::before{content:'';position:absolute;left:0;right:0;top:-22px;height:1px;background:var(--line)}
.adslot:hover{background:color-mix(in srgb,var(--gold-soft) 78%,#fff)}
.adslot:active{transform:scale(.99)}
.adslot[hidden]{display:none}
.adslot-tag{flex:0 0 auto;font-size:9.5px;font-weight:800;letter-spacing:.06em;color:var(--muted);
  border:1px solid var(--line);border-radius:5px;padding:2px 5px;line-height:1;align-self:flex-start}
.adslot-body{flex:1 1 auto;display:flex;flex-direction:column;gap:2px;min-width:0}
.adslot-body strong{font-size:13.5px;font-weight:800;color:var(--ink)}
.adslot-body small{font-size:12px;color:var(--ink-soft);line-height:1.35}
.adslot-cta{flex:0 0 auto;font-size:13px;font-weight:800;color:var(--gold);white-space:nowrap}

/* ── 模态外壳(个人中心 + 付费墙共用):照搬 changelog overlay 视觉 ── */
.mm-overlay{display:none;position:fixed;inset:0;z-index:84;background:rgba(20,24,33,.40);
  align-items:flex-start;justify-content:center;
  padding:max(54px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.mm-overlay.show{display:flex}
.mm-card{position:relative;width:100%;max-width:420px;max-height:84vh;display:flex;flex-direction:column;
  background:var(--card);border-radius:18px;border:1px solid var(--line);
  box-shadow:0 14px 44px rgba(20,24,33,.30);overflow:hidden;animation:mmPop .22s ease}
/* 付费墙底部渐隐:暗示「永久买断」下还可滚,最高客单价档不显得被裁 */
.mm-card.pay::after{content:'';position:absolute;left:0;right:0;bottom:0;height:30px;pointer-events:none;z-index:1;
  border-radius:0 0 18px 18px;background:linear-gradient(to top,var(--card),transparent)}
@keyframes mmPop{from{opacity:0;transform:translateY(-10px) scale(.97)}to{opacity:1;transform:none}}
.mm-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:0 0 auto;
  padding:14px 16px;border-bottom:1px solid var(--line)}
.mm-title{font-size:16px;font-weight:800;color:var(--ink)}
.mm-x{width:44px;height:44px;margin:-7px -7px -7px 0;font-size:15px;color:var(--muted);border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;background:transparent;border:none}
.mm-x:hover{background:var(--surface-2);color:var(--ink)}
.mm-body{overflow-y:auto;padding:16px;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:12px}

/* ── 会员卡 hero(签名:全息箔会员卡,自带深底→亮暗主题皆贴)── */
/* 付费卡 base:把极光直接烤进底色(多层 radial),不依赖 mix-blend-mode——
   保证静态帧/截图/旧浏览器都看得见全息箔的彩色,白字仍可读(radial 半透明叠深底)。 */
.mm-hero{position:relative;overflow:hidden;border-radius:16px;padding:15px 15px 14px;isolation:isolate;
  background:
    radial-gradient(120% 130% at 4% 0%, rgba(255,231,178,.72), transparent 56%),
    radial-gradient(120% 130% at 98% 6%, rgba(228,165,54,.58), transparent 54%),
    radial-gradient(150% 150% at 80% 120%, rgba(134,82,19,.42), transparent 56%),
    linear-gradient(150deg,#3a2507,#7a4f12 52%,#1d1810);
  box-shadow:0 10px 30px rgba(91,61,14,.34),inset 0 1px 0 rgba(255,255,255,.16)}
.mm-hero-sheen{position:absolute;inset:0;z-index:0;pointer-events:none;mix-blend-mode:screen;opacity:.55;
  background:linear-gradient(115deg,#fff5cc,#f7d78c 28%,#e7b961 52%,#b8791a 76%,#fff0bd);
  background-size:230% 230%;animation:foil 7s linear infinite}
@keyframes foil{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.mm-hero>*{position:relative;z-index:1}
.mm-hero-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mm-hero-eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.74)}
.mm-hero-seal{font-size:10px;font-weight:900;letter-spacing:.12em;color:#2a2008;white-space:nowrap;
  background:rgba(255,255,255,.94);border-radius:999px;padding:3px 10px}
.mm-hero-name{margin-top:13px;font-size:21px;font-weight:900;letter-spacing:-.01em;color:#fff;text-shadow:0 1px 12px rgba(0,0,0,.40)}
.mm-hero-tag{margin-top:5px;font-size:12.5px;line-height:1.5;color:rgba(255,255,255,.85);text-shadow:0 1px 6px rgba(0,0,0,.30)}
.mm-hero.free{background:linear-gradient(150deg,#3b3b45,#23232b)}
.mm-hero.free .mm-hero-sheen{filter:grayscale(1) brightness(.62);opacity:.5;animation-duration:12s}
.mm-hero.free .mm-hero-seal{color:#4a4a4a}
.mm-hero.celebrate{animation:heroPop .55s ease}
.mm-hero.celebrate::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(105deg,transparent 32%,rgba(255,255,255,.90) 50%,transparent 68%);
  transform:translateX(-130%);animation:heroSweep 1.1s ease .05s 1}
@keyframes heroSweep{to{transform:translateX(130%)}}
@keyframes heroPop{0%{transform:scale(1)}38%{transform:scale(1.03)}100%{transform:scale(1)}}
/* 权益清单 */
.mm-feats{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.mm-feats li{display:flex;align-items:center;gap:9px;font-size:13.5px;line-height:1.4}
.mm-feat-ic{flex:0 0 auto;width:21px;height:21px;border-radius:50%;display:inline-flex;
  align-items:center;justify-content:center;font-size:12px;font-weight:800}
.mm-feats li.on .mm-feat-ic{color:#7a4d08;background:var(--gold-soft);box-shadow:inset 0 0 0 1px var(--gold-line)}
.mm-feats li.on .mm-feat-tx{color:var(--ink)}
.mm-feats li.off .mm-feat-ic{color:var(--muted);background:var(--surface-2)}
.mm-feats li.off .mm-feat-tx{color:var(--muted)}
.mm-quota{padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);
  display:flex;flex-direction:column;gap:8px}
.mm-quota-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12.5px;font-weight:800;color:var(--ink)}
.mm-quota-top span:last-child{white-space:nowrap;color:var(--gold)}
.mm-quota-bar{height:7px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.mm-quota-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#f7d78c,#c99022)}
.mm-quota-note{font-size:11.5px;line-height:1.45;color:var(--muted)}
/* 升级 CTA */
.mm-upgrade{width:100%;height:auto;min-height:46px;padding:0 16px;white-space:nowrap;border:none;border-radius:12px;cursor:pointer;font-size:15px;font-weight:800;
  color:#fff;background:var(--accent);transition:background .15s ease}
.mm-upgrade{background:linear-gradient(135deg,#f7d78c,#c99022);color:#241a05}
.mm-upgrade:hover{background:linear-gradient(135deg,#ffe4a3,#b57f17)}
/* 解锁区 */
.mm-unlock{margin-top:2px;padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--surface);
  display:flex;flex-direction:column;gap:9px}
.mm-unlock-lab{font-size:12.5px;font-weight:700;color:var(--ink)}
.mm-unlock-row{display:flex;gap:8px}
.mm-code{flex:1 1 auto;min-width:0;min-height:44px;padding:0 12px;font-size:14px;
  border:1px solid var(--input-line);border-radius:10px;background:var(--input-bg);color:var(--ink)}
.mm-code:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.mm-unlock-btn{flex:0 0 auto;width:auto;height:auto;min-height:44px;padding:0 18px;white-space:nowrap;border:none;border-radius:10px;cursor:pointer;
  font-size:14px;font-weight:800;color:#fff;background:var(--accent)}
.mm-unlock-btn:hover{background:var(--accent-hover)}
.mm-msg{font-size:12.5px;line-height:1.5;min-height:1em}
.mm-msg.err{color:#d14b3a}
.mm-msg.ok{color:var(--gold)}
.mm-clear{align-self:flex-start;display:inline-flex;align-items:center;width:auto;min-height:44px;white-space:nowrap;background:none;border:none;cursor:pointer;
  font-size:12px;color:var(--muted);text-decoration:underline;padding:0 4px}
.mm-clear:hover{color:var(--ink)}

/* ── 付费墙:¥ 方案卡 ── */
.mm-card.pay .mm-body{gap:8px}
.pay-intro{font-size:12.5px;color:var(--ink-soft);line-height:1.45}
.pay-scrollhint{position:sticky;top:-1px;z-index:2;align-self:center;margin:-2px 0 1px;
  min-height:30px;padding:0 12px;border-radius:999px;display:inline-flex;align-items:center;
  justify-content:center;font-size:12px;font-weight:800;color:var(--gold);
  background:var(--gold-soft);border:1px solid var(--gold-line);
  box-shadow:0 2px 8px rgba(20,24,33,.08)}
.pay-grid{display:flex;flex-direction:column;gap:7px;padding-bottom:38px}
.pay-loading{font-size:13px;color:var(--muted);padding:10px 0}
.pay-plan{position:relative;padding:10px 12px 9px;border:1.5px solid var(--line);border-radius:14px;
  background:var(--surface);display:flex;flex-direction:column;gap:4px}
.pay-best{position:absolute;top:-9px;right:13px;font-size:10.5px;font-weight:800;color:#241a05;
  background:linear-gradient(135deg,#fff0bd,#c99022);padding:2px 9px;border-radius:999px;letter-spacing:.03em}
.pay-plan-name{font-size:14px;font-weight:800;color:var(--ink)}
.pay-plan-price{display:flex;align-items:baseline;gap:1px;color:var(--ink);font-variant-numeric:tabular-nums}
.pay-cny{font-size:16px;font-weight:800}
.pay-num{font-size:24px;font-weight:900;line-height:1;letter-spacing:0}
.pay-per{font-size:13px;font-weight:700;color:var(--muted);margin-left:3px}
.pay-plan-tag{font-size:12px;font-weight:700;color:var(--gold)}
.pay-plan-feats{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1px}
.pay-plan-feats li{position:relative;padding-left:17px;font-size:12px;color:var(--ink-soft);line-height:1.25}
.pay-plan-feats li::before{content:'✓';position:absolute;left:0;color:var(--gold);font-weight:800}
.pay-plan-cta{margin-top:4px;width:100%;height:auto;min-height:44px;padding:0 16px;white-space:nowrap;border:none;border-radius:11px;cursor:pointer;
  font-size:14px;font-weight:800;color:#241a05;background:linear-gradient(135deg,#f7d78c,#c99022);transition:filter .15s ease}
.pay-plan-cta:hover{filter:brightness(1.04)}
.pay-foot{margin-top:4px;padding-top:12px;border-top:1px dashed var(--line);display:flex;flex-direction:column;gap:9px}
.pay-note{font-size:12px;color:var(--muted);line-height:1.5}
.pay-go-unlock{align-self:flex-start;display:inline-flex;align-items:center;width:auto;height:auto;min-height:44px;padding:0 16px;white-space:nowrap;border:1px solid var(--gold-line);border-radius:10px;
  cursor:pointer;font-size:13px;font-weight:800;color:var(--gold);background:var(--card)}
.pay-go-unlock:hover{background:var(--gold-soft)}

/* 「全部生成」锁态(免费) */
#genall.locked{opacity:.72}

/* 夜间:✓/✗ 与金徽标对比度微调 */
[data-theme="dark"] .mm-feats li.on .mm-feat-ic{color:#f0c46f;background:rgba(240,196,111,.16)}
[data-theme="dark"] .pay-plan-feats li::before{color:#f0c46f}
[data-theme="dark"] .mm-msg.ok{color:#f0c46f}
[data-theme="dark"] .mm-msg.err{color:#ff9b8a}
/* ── 👤 付费按钮:金底 + 一道缓流光(签名延伸)── */
.me-btn.paid{position:relative;overflow:hidden;background:linear-gradient(135deg,#f7e7b4,#e7b961 55%,#cba24c);
  box-shadow:0 0 0 1.5px #c9a04a,0 2px 10px rgba(180,140,60,.42)}
.me-btn.paid::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.75) 50%,transparent 62%);
  transform:translateX(-140%);animation:meSweep 5s ease-in-out 1.4s infinite}
@keyframes meSweep{0%,72%{transform:translateX(-140%)}100%{transform:translateX(140%)}}

/* ── 免费版升级 CTA:缓流光诱导点击 ── */
.mm-upgrade{position:relative;overflow:hidden}
.mm-upgrade::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.45) 50%,transparent 60%);
  transform:translateX(-130%);animation:meSweep 4.2s ease-in-out 1s infinite}

/* ── 付费墙「最划算」=全息箔边框 + 箔光 CTA(静态,克制)── */
.pay-plan.best{border:1.5px solid transparent;
  background:linear-gradient(var(--surface),var(--surface)) padding-box,
    linear-gradient(115deg,#fff0bd,#f7d78c 30%,#c99022 68%,#7a4d08) border-box;
  box-shadow:0 8px 24px rgba(201,144,34,.20)}
.pay-best{background:linear-gradient(115deg,#fff0bd,#f7d78c 45%,#c99022);color:#241a05;box-shadow:0 2px 8px rgba(201,144,34,.35)}
.pay-plan.best .pay-plan-cta{color:#241a05;text-shadow:0 1px 0 rgba(255,255,255,.35);box-shadow:0 4px 14px rgba(201,144,34,.28);
  background:linear-gradient(115deg,#fff0bd,#f7d78c 38%,#c99022 78%,#7a4d08)}

/* 尊重减少动效:冻结所有流光/庆祝 */
@media (prefers-reduced-motion: reduce){
  .mm-hero-sheen,.mm-hero.celebrate,.mm-hero.celebrate::after,.me-btn.paid::after,.mm-upgrade::after{animation:none}
  .mm-hero-sheen{opacity:.8}
}
