/* 有声书工坊 — 移动端优先设计系统 */
:root {
  --brand: #1677ff;
  --brand-dark: #0958d9;
  --ink: #1f2329;
  --muted: #86909c;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e5e6eb;
  --ok: #389e0d;
  --danger: #d4380d;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(31,35,41,.06);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
}
main { max-width: 1080px; margin: 0 auto; padding: 0 16px 60px; }
h2 { font-size: 22px; margin-bottom: 6px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 12px; }
.err { color: var(--danger); font-size: 13px; }
.mono { font-family: Consolas, monospace; font-size: 12px; }

/* ---------- 头部 / 页脚 ---------- */
.site-header {
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.brand { font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 16px; margin-left: auto; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: 14px; }
.site-header nav a:hover { color: var(--brand); }
.balance { background: #e8f3ff; color: var(--brand); border-radius: 12px; padding: 2px 10px; font-size: 12px; }

.site-footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 28px 16px 40px; text-align: center; font-size: 13px;
}
.site-footer p { margin: 3px 0; }

/* ---------- 按钮 ---------- */
.btn, .btn-a, button {
  display: inline-block; padding: 9px 18px; font-size: 14px; border: 0;
  border-radius: 10px; background: #eef1f5; color: var(--ink); cursor: pointer;
  text-decoration: none; text-align: center; transition: filter .15s;
}
.btn:hover, button:hover { filter: brightness(.96); }
.btn.primary, button.primary { background: var(--brand); color: #fff; font-weight: 600; }
button:disabled, .btn:disabled { background: #eef1f5; color: #9aa3af; cursor: not-allowed; }
button.primary:disabled, .btn.primary:disabled { background: #d6e4f7; color: #6d87ab; }
.btn.primary:hover, button.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: #fff; border: 1px solid var(--line); }
.btn.big, button.big { width: 100%; padding: 13px; font-size: 16px; }
.btn.small, button.small { padding: 5px 12px; font-size: 13px; }
button.danger { background: #fff1f0; color: var(--danger); }
.btn { margin-top: 8px; }

/* ---------- 首页营销页 ---------- */
.hero { text-align: center; padding: 64px 8px 44px; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.25; font-weight: 800; }
.hero h1 b { color: var(--brand); }
.hero .sub { margin: 16px auto 26px; max-width: 560px; font-size: 15px; color: #4e5969; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn.big, .hero-cta button.big { width: auto; padding: 12px 34px; }
.hero-stats { display: flex; justify-content: center; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats b { display: block; font-size: 26px; color: var(--brand); }
.hero-stats span { font-size: 12px; color: var(--muted); }

.section { padding: 46px 4px; }
.section.alt { background: #fff; margin: 0 -16px; padding: 46px 20px; }
.steps { display: grid; gap: 14px; margin-top: 18px; grid-template-columns: 1fr; }
.step { background: var(--bg); border-radius: var(--radius); padding: 20px; }
.step-no {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .section.alt { border-radius: 20px; }
}

.voice-demo { display: grid; gap: 10px; margin-top: 16px; grid-template-columns: 1fr; }
.vcard { background: var(--card); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.vcard audio { width: 100%; height: 34px; margin-top: 6px; }
@media (min-width: 640px) { .voice-demo { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .voice-demo { grid-template-columns: repeat(4, 1fr); } }

.pricing { display: grid; gap: 14px; margin-top: 18px; grid-template-columns: 1fr; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px; text-align: center; box-shadow: var(--shadow);
}
.plan.featured { border: 2px solid var(--brand); }
.plan .price { font-size: 34px; font-weight: 800; color: var(--brand); margin: 8px 0; }
.plan .ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 12px;
}
@media (min-width: 760px) { .pricing { grid-template-columns: repeat(3, 1fr); } }

details {
  background: var(--card); border-radius: 12px; padding: 14px 18px; margin: 10px 0;
  box-shadow: var(--shadow);
}
details summary { font-weight: 600; cursor: pointer; font-size: 15px; }
details p { margin-top: 10px; color: #4e5969; font-size: 14px; }

.cta-band { text-align: center; padding: 56px 0 20px; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .btn.big { width: auto; padding: 13px 40px; }

/* ---------- 功能页通用 ---------- */
.card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  margin: 12px 0; box-shadow: var(--shadow);
}
.card.auth { max-width: 400px; margin: 8vh auto 0; text-align: center; }
.card.auth h2 { margin-bottom: 2px; }
.card.auth .muted { margin-bottom: 14px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tab { flex: 1; padding: 10px; background: none; border: 0; font-size: 15px; color: var(--muted); border-radius: 0; }
.tab.active { color: var(--brand); border-bottom: 2px solid var(--brand); font-weight: 600; }

input, select, textarea {
  width: 100%; padding: 10px 12px; margin: 6px 0; font-size: 14px;
  border: 1px solid #d9dce1; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid #bcd9ff; border-color: var(--brand); }
textarea { font-family: Consolas, monospace; }
.row { display: flex; gap: 8px; align-items: center; }
.row label { font-size: 13px; color: #555; white-space: nowrap; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #555; margin: 8px 0; }
.check input { width: auto; margin: 3px 0 0; }

.sec { margin: 22px 0 8px; }
.badge { font-size: 12px; padding: 2px 10px; border-radius: 10px; }
.s-pending, .s-queued { background: #fff7e6; color: #d48806; }
.s-ready { background: #e6fffb; color: #08979c; }
.s-running { background: #e8f3ff; color: var(--brand); }
.s-done { background: #f0ffe6; color: var(--ok); }
.s-failed { background: #fff1f0; color: var(--danger); }

.book-head, .role-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.book-head .badge { margin-left: auto; }
.job-link { display: block; text-decoration: none; color: inherit; }
.tag { font-size: 11px; background: #f0f2f5; border-radius: 8px; padding: 1px 8px; color: #666; }
.role .line { color: #666; font-size: 13px; margin: 6px 0; }

.lib-bar { margin-bottom: 8px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; }
.chip { flex: none; padding: 5px 12px; font-size: 13px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.voices { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .voices { grid-template-columns: 1fr 1fr; } }

.progress { height: 10px; background: #eceef2; border-radius: 6px; overflow: hidden; margin: 12px 0 6px; }
.bar { height: 100%; background: var(--brand); transition: width .5s; }

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 1080px; margin: 0 auto; z-index: 45;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
}

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; font-size: 12px; width: 100%; }
th, td { padding: 6px 8px; text-align: left; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }

.toast { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 99;
  background: #333; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; max-width: 86vw; }
.toast.ok { background: var(--ok); }

/* ---------- 功能页组件 ---------- */
.page-head { padding: 26px 0 6px; display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.page-head h2 { font-size: 22px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.page-head .spacer { margin-left: auto; }

.auth-logo { font-size: 42px; line-height: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.stat { background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat b { font-size: 22px; display: block; }
.stat span { font-size: 12px; color: var(--muted); }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

.empty { text-align: center; padding: 44px 0; color: var(--muted); }
.empty .ico { font-size: 44px; display: block; margin-bottom: 8px; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #e8f3ff; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none;
}
.avatar.f { background: #fff0f6; color: #d4380d; }
.role-row { display: flex; gap: 12px; align-items: flex-start; }
.role-row .grow { flex: 1; min-width: 0; }
.tune-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tune-row input[type="range"] { width: 170px; margin: 0; padding: 0; flex: none; }
.tune-row .pv { min-width: 3ch; text-align: center; color: var(--brand); }
/* 角色卡内试听打标条件行（情绪·节奏·语气 chips + 试听按钮） */
.aud-cond { display: flex; align-items: center; gap: 6px 10px; margin-top: 8px; flex-wrap: wrap; }
.aud-cond .flabel { flex: none; font-size: 12px; color: #999; }
.aud-cond .chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.aud-cond .chip { padding: 3px 10px; font-size: 12px; }
.lib-box { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 16px 14px; }
.lib-box summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0 10px; }
.lib-box[open] summary { border-bottom: 1px solid #f0f0f0; margin-bottom: 12px; }
.clips { margin-top: 8px; }
.clip { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.clip-text { color: #666; flex: 1; min-width: 120px; }
.clip audio { height: 32px; flex: none; }

.spin { display: inline-block; animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.steps-bar { display: flex; gap: 6px; align-items: center; margin: 4px 0 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.steps-bar .dot { padding: 3px 10px; border-radius: 10px; background: #eef1f5; }
.steps-bar .dot.on { background: var(--brand); color: #fff; }
.steps-bar .dot.done { background: #f0ffe6; color: var(--ok); }
.steps-bar .arr { color: #c9cdd4; }

.book-actions { display: flex; gap: 8px; margin-top: 10px; }
.book-actions .btn, .book-actions button { margin-top: 0; }
.sticky .cost-note { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* ---- 管理台：子导航 / 工具条 / 分页 / 趋势图 ---- */
.tabs a.tab { text-decoration: none; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.toolbar input[type=text], .toolbar input[type=number], .toolbar select { width: auto; margin: 0; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 14px 0; }
.pager a, .pager span, .pager button { padding: 5px 11px; border-radius: 8px; background: var(--card); border: 1px solid var(--line);
  font-size: 13px; text-decoration: none; color: var(--ink); }
.pager button { cursor: pointer; }
.pager .cur { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .dis { opacity: .4; }
.grid-row { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) {
  .grid-row { grid-template-columns: repeat(3, 1fr); }
  .grid-row.two { grid-template-columns: repeat(2, 1fr); }
}
.bar-chart { display: flex; gap: 4px; height: 120px; margin-top: 10px; }
.bar-chart .col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center; gap: 2px; }
.bar-chart .bar { width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-chart .d { font-size: 10px; color: var(--muted); white-space: nowrap; }

/* ---- 作品案例（原文 + 成品橱窗） ---- */
.hero.slim { padding: 46px 8px 10px; }
.case-list { display: grid; gap: 14px; margin-top: 18px; }
.case-card { background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.case-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.case-tag { background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; white-space: nowrap; }
.case-head h3 { margin: 0; font-size: 17px; }
.case-head h3 small { font-weight: normal; font-size: 13px; }
.case-card p { margin: 8px 0 0; }
.case-card audio { width: 100%; height: 36px; margin-top: 10px; }
.case-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.more-link { text-align: center; margin-top: 22px; }
@media (min-width: 760px) { .case-list { grid-template-columns: 1fr 1fr; } }

/* 案例详情：原文 + 选角对照 */
.case-player audio { width: 100%; height: 44px; }
.case-grid { display: grid; gap: 18px; margin-top: 18px; }
.case-text, .case-cast { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.case-text h2, .case-cast h2 { margin: 0 0 12px; font-size: 18px; }
.case-text p { margin: 0 0 12px; line-height: 2; }
.case-cast table { border-collapse: collapse; width: 100%; }
.case-cast td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.case-cast tr:last-child td { border-bottom: 0; }
.case-cast .btn { margin-top: 14px; width: 100%; }
.backlink { margin-top: 18px; }
@media (min-width: 900px) { .case-grid { grid-template-columns: 1.6fr 1fr; } }

/* ---- 全局播放条 + 案例播放按钮 ---- */
.case-play { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px;
  width: 100%; cursor: pointer; text-align: left; }
.case-play .cp-ico { flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; display: inline-flex; align-items: center;
  justify-content: center; font-size: 11px; }
.case-play.big { padding: 14px 16px; font-size: 15px; }
.case-play.big .cp-ico { width: 34px; height: 34px; font-size: 14px; }
.case-play.playing { border-color: var(--brand); color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, #fff); }
.case-player p { margin: 8px 2px 0; }
#ab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex;
  align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff; box-shadow: 0 -2px 14px rgba(31,35,41,.14); }
#ab-bar[hidden] { display: none; }  /* 作者 display:flex 会压过 UA 的 [hidden]，必须显式补回，否则播放器常驻盖住底部 */
body.ab-on { padding-bottom: 86px; }
body.ab-on .sticky { bottom: 86px; }  /* 播放时把粘底操作条抬到播放器上方，别掖在底下 */
#ab-bar button { border: 0; background: var(--brand); color: #fff; border-radius: 50%;
  width: 40px; height: 40px; font-size: 15px; flex: none; cursor: pointer; }
#ab-close { background: #f2f3f5 !important; color: var(--muted) !important;
  width: 30px !important; height: 30px !important; font-size: 13px; }
.ab-mid { flex: 1; min-width: 0; }
#ab-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-row { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
#ab-seek { flex: 1; accent-color: var(--brand); height: 4px; }
#ab-time { font-size: 11px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.hl-badge { background: color-mix(in srgb, var(--ok) 12%, #fff); color: var(--ok);
  border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 6px; }
.vl-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; align-items: center; }
.vl-filters select, .vl-filters input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; }
.vl-pick { margin-top: 18px; }
.vl-pick textarea { width: 100%; box-sizing: border-box; height: 110px; margin-top: 10px; font-size: 13px; }
.vl-pickrow { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.case-play { touch-action: manipulation; }

/* ---------- 选角音色挑选 dropdown（筛选+特点+逐项试听） ---------- */
.vp { position: relative; }
.vp-btn { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
  background: #fff; border: 1px solid var(--line); padding: 8px 12px; }
.vp-btn b { flex: none; }
.vp-sub { flex: 1; color: #999; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-arrow { flex: none; color: #999; font-size: 12px; }
.vp-badge { flex: none; font-size: 11px; color: var(--brand); background: #e8f3ff; border-radius: 6px; padding: 1px 6px; }
.vp-panel { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-width: 560px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px;
  box-shadow: 0 10px 28px rgba(20, 40, 80, .14); }
.vp-panel[hidden] { display: none; }
.vp-q { width: 100%; box-sizing: border-box; }
.vp-chips { margin-top: 8px; }
.vp-list { max-height: 300px; overflow-y: auto; margin-top: 8px; }
.vp-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.vp-item:hover { background: #f2f7ff; }
.vp-item.is-cur { background: #eef6ff; }
.vp-item.is-cur b::after { content: " ✓"; color: var(--brand); }
.vp-item.vp-auto { border-bottom: 1px dashed var(--line); border-radius: 8px 8px 0 0; margin-bottom: 2px; }
.vp-item .vp-g { flex: none; font-size: 11px; color: #888; }
.vp-item .vp-desc { flex: 1; font-size: 12px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-play { flex: none; padding: 2px 8px; font-size: 13px; background: #f4f6f9; }

/* ---------- 音色库专页：精细筛选 + 分页 ---------- */
.vp-facets .facet { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.vp-facets .flabel { flex: none; font-size: 13px; color: #666; width: 34px; }
.vp-facets .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.vp-facets select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; }
.vcard .vdesc { display: block; color: #999; font-size: 12px; margin: 2px 0 4px; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 18px 0 30px; flex-wrap: wrap; }
.pbtn { padding: 6px 12px; font-size: 13px; background: #fff; border: 1px solid var(--line); }
.pbtn.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.pbtn:disabled { opacity: .4; }
.pdots { color: #aaa; align-self: center; }
.vp-facets .row input, .vp-facets .row select { width: auto; margin: 0; }  /* 全局 width:100% 在 flex 行里会互挤 */
.vp-facets .row input { flex: 1; }
.vgroup { font-size: 17px; margin: 22px 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.vsub { font-size: 14px; color: #555; margin: 14px 0 8px; }
.pbtn.more { margin: 4px 0 8px; }

/* 案例详情·标注视图（对照原文核查引擎标注：说话人/情绪/音量/复述嫌疑） */
.annot-seg { margin: 7px 0; padding: 7px 10px; border-left: 3px solid hsl(var(--h, 210), 50%, 70%); background: #fafaf8; border-radius: 0 6px 6px 0; line-height: 1.7; }
.annot-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; margin-right: 6px; white-space: nowrap; }
.annot-tag { display: inline-block; padding: 1px 7px; margin-right: 6px; border-radius: 10px; font-size: 11px; background: #eee; color: #555; white-space: nowrap; }
.annot-tag.warn { background: #fde8e8; color: #a02020; }
.annot-tag.sfx { background: #e8f1e4; color: #2f5a1e; }
.annot-text { font-size: 15px; }
#annot-toggle { margin-left: 10px; vertical-align: middle; }
.ab-annot-toggle { margin-left: 10px; vertical-align: middle; }
/* 任务页多章作用域（2026-10-20）：每章一个 .ab-chapter，自带播放键+原文/标注切换 */
.ab-chapter { margin: 18px 0 26px; padding-top: 6px; border-top: 1px dashed #ddd; }
.ab-chapter h3 { margin: 6px 0 10px; font-size: 16px; }
.ab-chapter .case-play { margin: 0 0 12px; }
/* 章节折叠（2026-10-21）：默认只留标题行，点标题展开/收起；data-open 由 abBodyOpen 维护 */
.ab-chapter .ab-head { cursor: pointer; user-select: none; }
.ab-chapter .ab-head:hover { color: var(--brand); }
.ab-head .ab-caret { display: inline-block; width: 1em; color: #a09a8c; font-size: .8em; transition: transform .15s; }
.ab-chapter[data-open="1"] .ab-caret { transform: rotate(90deg); }
.ab-chapter[data-open="0"] .ab-annot-toggle { display: none; }  /* 折叠时藏「看标注版」：免得点了视图状态翻面却看不见 */
/* 时间轴现算中（data-tl-wait 由 abNeedTl/abLoadTimeline 维护）：成品换版后首访要现算 NCC 几十秒，给个等待反馈 */
.ab-chapter[data-tl-wait="1"] .ab-body::before {
  content: "⏳ 播放追踪时间轴计算中，就绪后自动高亮当前句";
  display: block; margin: 0 0 8px; color: var(--muted); font-size: 12px;
}
/* 播放追踪：成品音频覆盖的段可点（选句重读），正在读的高亮跟随 */
.annot-seg[data-ci="1"] { cursor: pointer; }
.annot-seg[data-ci="1"]:hover { background: #f2f0e9; }
.ab-chapter .annot-seg { cursor: pointer; }
.ab-chapter .annot-seg:hover { background: #f2f0e9; }
.annot-seg.ab-now { background: #eef4e6 !important; border-left-color: #5a8a3a; }
.annot-seg.ab-now .annot-text { color: #2f5218; }
/* 句子级重审重录（2026-10-21）：标注版勾选可疑句，浮动条提交（作用域限任务/选角页，案例页 .annot-seg 无此结构） */
.rr-bar { position: sticky; top: 8px; z-index: 46; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin: 0 0 10px; background: #fdf9ee; border: 1px solid #e5d9b8;
  border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.rr-count { font-size: 13px; color: #6b5d2e; }
.rr-status { margin-left: auto; }
.rr-pick { display: inline-flex; align-items: center; margin-right: 6px; cursor: pointer; }
.rr-pick input { width: auto; margin: 0; accent-color: #5a8a3a; cursor: pointer; }
.ab-chapter .annot-seg { display: flex; align-items: baseline; }
.ab-chapter .annot-seg .annot-text { flex: 1; }
.ab-chapter .annot-seg:has(.rr-pick input:checked) { background: #fdf3d1; }
/* 任务页生成过程时间线（2026-10-21）：解析/标注/选角/逐段合成可见 */
.proc-steps { max-height: 300px; overflow-y: auto; }
.proc-row { display: flex; gap: 8px; align-items: baseline; padding: 3px 4px; font-size: 13px; color: #555; }
.proc-row .proc-t { color: #a09a8c; font-size: 12px; font-variant-numeric: tabular-nums; flex: none; }
.proc-row.now { background: #eef4e6; color: #2f5218; border-radius: 6px; }
.proc-log { max-height: 260px; overflow: auto; font-size: 12px; background: #faf8f2;
  padding: 10px; border-radius: 6px; white-space: pre-wrap; }
