/* ============================================================
   StellarU AI快读 · app.css — 应用骨架
   ============================================================ */

/* ---------- 启动屏 ---------- */
.boot-splash {
  position: fixed; inset: 0; z-index: 999;
  background: var(--grad-brand);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; transition: opacity .5s var(--ease), visibility .5s;
}
.boot-splash.hide { opacity: 0; visibility: hidden; }
.boot-logo svg { width: 76px; height: 76px; filter: drop-shadow(0 12px 32px rgba(0,0,0,.35)); animation: boot-pop .7s var(--ease-spring) both; }
@keyframes boot-pop { from { opacity: 0; transform: scale(.7) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.boot-title { color: #fff; font-size: var(--fs-18); font-weight: 800; letter-spacing: .08em; animation: fade-in .6s .2s var(--ease) both; }
.boot-bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; animation: fade-in .6s .35s var(--ease) both; }
.boot-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, #fbbf24, #fff); border-radius: 3px; animation: boot-slide 1.1s var(--ease) infinite; }
@keyframes boot-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }

/* ---------- 视图容器 ---------- */
.view {
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
}
/* 无 TabBar 页面（阅读器/播放器/登录等） */
.view.no-tabbar { padding-bottom: 0; }

.page {
  animation: page-in var(--dur) var(--ease) both;
  min-height: 100%;
}
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.page.slide-left { animation-name: page-in-left; }
@keyframes page-in-left { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

/* ---------- TabBar ---------- */
.tabbar[hidden] { display: none; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  box-shadow: 0 -6px 24px rgba(20,83,45,.05);
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; position: relative; color: var(--ink-400);
  transition: color var(--dur-fast) var(--ease);
  -webkit-user-select: none; user-select: none;
}
.tab-item .tab-ico { display: flex; transition: transform var(--dur-fast) var(--ease-spring); }
.tab-item .tab-txt { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.tab-item.active { color: var(--green-800); }
.tab-item.active .tab-ico { transform: translateY(-1px) scale(1.05); }
.tab-item:active .tab-ico { transform: scale(.9); }

.tab-badge {
  position: absolute; top: 8px; right: calc(50% - 34px); min-width: 20px; height: 15px;
  border-radius: var(--r-full); background: var(--grad-gold); color: #5b3a00;
  font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; letter-spacing: 0;
}
.tab-playdot {
  position: absolute; top: 9px; left: calc(50% + 16px); width: 8px; height: 8px;
  border-radius: 50%; background: var(--green-600);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 50% { box-shadow: 0 0 0 5px rgba(22,163,74,0); } }

/* AI 快读 Tab 的星环 */
.tab-ico-ai {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: #fff; align-items: center; justify-content: center;
  display: flex; margin-top: -10px;
  box-shadow: 0 6px 14px rgba(22,101,52,.4);
  border: 2px solid #fff;
  transition: transform var(--dur) var(--ease-spring);
}
.tab-item.active .tab-ico-ai { transform: scale(1.08) rotate(-6deg); }
.tab-item:active .tab-ico-ai { transform: scale(.94); }

/* ---------- 悬浮返回 ---------- */
.float-back {
  position: fixed; left: var(--sp-4); bottom: calc(var(--tabbar-h) + var(--safe-b) + var(--sp-5));
  z-index: 90; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--line-soft);
  box-shadow: var(--sh-md); display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity var(--dur), transform var(--dur);
}
.float-back[hidden] { display: none; }
.float-back.hide { opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none; }
.float-back svg { width: 18px; height: 18px; color: var(--ink-700); }

/* ---------- 阅读器全屏 ---------- */
.reader-screen {
  position: fixed; inset: 0; z-index: 150;
  background: var(--reader-bg); color: var(--reader-ink);
  overflow-y: auto; overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}
.reader-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 95;
  display: flex; align-items: center; gap: 10px;
  height: calc(48px + var(--safe-t));
  padding: var(--safe-t) var(--sp-4) 0;
  background: var(--reader-bg);
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: opacity .25s, transform .25s;
}
.reader-topbar.hide { opacity: 0; transform: translateY(-100%); }
.reader-topbar .rt-title { flex: 1; text-align: center; font-size: var(--fs-15); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-topbar button { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.reader-topbar button:active { background: rgba(0,0,0,.06); }
.reader-topbar svg { width: 20px; height: 20px; }

.reader-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: flex; align-items: center; justify-content: space-around;
  padding: 8px var(--sp-4) calc(8px + var(--safe-b));
  background: var(--reader-bg);
  border-top: 1px solid rgba(0,0,0,.05);
  transition: opacity .25s, transform .25s;
}
.reader-bottom.hide { opacity: 0; transform: translateY(100%); }
.reader-bottom .rb-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; color: var(--ink-500); min-width: 52px; padding: 4px 6px;
  border-radius: var(--r-sm);
}
.reader-bottom .rb-btn.on { color: var(--green-700); }
.reader-bottom .rb-btn:active { background: rgba(0,0,0,.05); }
.reader-bottom .rb-btn svg { width: 21px; height: 21px; }

/* 阅读器进度条（顶部细线） */
.reader-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 96; height: 3px;
  background: rgba(0,0,0,.05);
}
.reader-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green-600), var(--gold-500));
  transition: width .3s var(--ease-out); border-radius: 0 3px 3px 0;
}

/* C1-1 修复：点击翻页热区（透明覆盖层，左右 28% 可点，中间放行划词与滚动；原定义无定位导致高度 0 不可点） */
.rd-page-turn {
  position: fixed; top: calc(48px + var(--safe-t)); bottom: calc(76px + var(--safe-b)); left: 0; right: 0;
  z-index: 5; pointer-events: none;
}
.rd-page-turn::before,
.rd-page-turn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 28%;
  pointer-events: auto;
}
.rd-page-turn::before { left: 0; }
.rd-page-turn::after { right: 0; }

/* C2-2 沉浸阅读：
   - .reader-topbar.hide / .reader-bottom.hide 由 reader.js 触发（不再是无消费者死样式）
   - 沉浸态增加顶部"退出热区"，翻页热区扩展至全屏（顶部 56px 由退出热区优先拦截） */
.rd-immersive-hit {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  height: calc(56px + var(--safe-t));
  z-index: 94;
}
.reader-screen.immersive .rd-immersive-hit { display: block; }
.reader-screen.immersive .rd-page-turn { top: 0; bottom: 0; }

/* 章节切换翻页动画（.rd-page-wrap 首屏入场用；翻章动画见 components.css .rd-turn-in） */
@keyframes turn-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }

/* 阅读器划词记笔记浮层（P1-3） */
.rd-note-float {
  position: absolute; z-index: 96; left: 12px; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 12px; border-radius: 14px;
  background: rgba(20, 83, 45, .96); color: #fff;
  box-shadow: 0 6px 20px rgba(20, 43, 29, .28);
  font-size: 13px; line-height: 1; box-sizing: border-box;
  animation: note-float-in .18s var(--ease) both;
}
.rd-note-float[hidden] { display: none; }
.rd-note-float-txt { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: rgba(255,255,255,.85); }
.rd-note-float-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: none; cursor: pointer; flex: none;
  padding: 6px 12px; border-radius: 999px;
  background: #f59e0b; color: #fff; font-weight: 600; font-size: 13px;
}
.rd-note-float-btn:active { transform: scale(.96); }
@keyframes note-float-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- 播放器全屏（听书） ---------- */
.player-screen {
  position: fixed; inset: 0; z-index: 160; overflow-y: auto;
  background: linear-gradient(175deg, #0f3d22 0%, #0b2a19 55%, #081f12 100%);
  color: #fff; display: flex; flex-direction: column;
  -webkit-overflow-scrolling: touch;
}
.player-screen::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(22,163,74,.18) 0%, rgba(22,163,74,0) 60%),
    radial-gradient(70% 50% at 100% 100%, rgba(245,158,11,.10) 0%, rgba(245,158,11,0) 55%);
}
.player-head { display: flex; align-items: center; padding: calc(var(--safe-t) + 10px) var(--sp-5) 0; position: relative; z-index: 2; }
.player-head .ph-title { flex: 1; text-align: center; font-size: var(--fs-15); font-weight: 700; }
.player-head button { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.player-head button:active { background: rgba(255,255,255,.16); }
.player-head svg { width: 20px; height: 20px; }

.player-vinyl-wrap { display: flex; justify-content: center; padding: 34px 0 30px; position: relative; z-index: 2; }

.player-meta { text-align: center; position: relative; z-index: 2; padding: 0 var(--sp-6); }
.player-meta h1 { font-size: var(--fs-22); font-weight: 800; }
.player-meta p { font-size: var(--fs-13); opacity: .6; margin-top: 6px; }

.player-mode-tabs { display: flex; justify-content: center; gap: 8px; margin: 22px 0 8px; position: relative; z-index: 2; }
.mode-chip {
  padding: 6px 16px; border-radius: var(--r-full); font-size: var(--fs-12);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.65); transition: all var(--dur-fast);
}
.mode-chip.on { background: var(--grad-gold); color: #5b3a00; font-weight: 700; border-color: transparent; box-shadow: var(--sh-gold); }

.player-progress { padding: 10px var(--sp-6) 0; position: relative; z-index: 2; }
.pp-line { height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); position: relative; }
.pp-line i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #22c55e, #fbbf24); width: 0; }
.pp-line .pp-knob {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,.4); opacity: 0; transition: opacity var(--dur-fast);
}
.pp-line.dragging .pp-knob { opacity: 1; }
.pp-times { display: flex; justify-content: space-between; font-size: var(--fs-12); color: rgba(255,255,255,.55); margin-top: 8px; font-variant-numeric: tabular-nums; }

.player-controls { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 22px 0 10px; position: relative; z-index: 2; }
.pc-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  transition: all var(--dur-fast) var(--ease);
}
.pc-btn:active { transform: scale(.9); background: rgba(255,255,255,.16); }
.pc-btn svg { width: 22px; height: 22px; }
.pc-main {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--grad-gold); color: #5b3a00;
  box-shadow: 0 0 0 6px rgba(245,158,11,.14), var(--sh-gold);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.pc-main:active { transform: scale(.92); }
.pc-main svg { width: 30px; height: 30px; margin-left: 3px; }
.pc-main.playing svg { margin-left: 0; }
.pc-speed-badge {
  font-size: var(--fs-12); font-weight: 700; color: var(--gold-400);
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3);
  padding: 5px 12px; border-radius: var(--r-full);
  position: absolute; right: calc(50% - 108px); top: 50%; transform: translateY(-50%);
}
.player-subs { flex: 1; min-height: 90px; position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: center; }

/* ---------- 结果/合集列表 ---------- */
.book-row {
  display: flex; gap: 14px; padding: var(--sp-4) var(--sp-5);
  background: var(--surface); transition: background var(--dur-fast);
}
.book-row:active { background: var(--bg-soft); }
.book-row + .book-row { border-top: 1px solid var(--line-soft); }
.book-row .book-cover { width: 74px; }
.book-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.book-row-title { font-size: var(--fs-16); font-weight: 700; line-height: 1.35; }
.book-row-info { font-size: var(--fs-12); color: var(--ink-500); margin-top: 3px; }
.book-row-desc { font-size: var(--fs-12); color: var(--ink-400); margin-top: 5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-row-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rating {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: var(--fs-12); font-weight: 700; color: var(--gold-600);
}
.rating svg { width: 13px; height: 13px; color: var(--gold-500); fill: var(--gold-500); }

/* 书籍详情页 */
.detail-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--safe-t) + 12px) var(--sp-5) 26px;
  background: var(--grad-brand);
}
.detail-hero::before {
  content: ""; position: absolute; right: -60px; top: -70px; width: 230px; height: 230px;
  border-radius: 50%; border: 30px solid rgba(255,255,255,.05);
}
.detail-hero::after {
  content: ""; position: absolute; left: 20%; bottom: -110px; width: 260px; height: 170px;
  border-radius: 50%; background: rgba(245,158,11,.10);
}
.detail-hero .dh-back {
  position: relative; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  margin-bottom: 20px;
}
.detail-hero .dh-back svg { width: 19px; height: 19px; }
.detail-main { display: flex; gap: 18px; position: relative; z-index: 2; }
.detail-main .book-cover { width: 118px; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.detail-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.detail-info h1 { font-size: var(--fs-22); font-weight: 800; line-height: 1.35; }
.detail-info .di-author { font-size: var(--fs-13); opacity: .8; margin-top: 4px; }
.detail-info .di-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.di-tag {
  font-size: var(--fs-11); padding: 3px 10px; border-radius: var(--r-full);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16);
}
.di-rate { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.di-rate b { font-size: var(--fs-20); color: var(--gold-400); font-variant-numeric: tabular-nums; }
.di-rate span { font-size: var(--fs-12); opacity: .7; }
.di-actionbar .btn { flex: 1; height: 44px; font-size: var(--fs-14); }
.di-actionbar .btn.ghost-on-dark {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* 详情正文区块 */
.detail-body { padding: 0 var(--sp-5) var(--sp-6); }
.d-body-card h3 { font-size: var(--fs-16); font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.d-body-card h3::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: var(--grad-green); }
.d-body-card p.desc { font-size: var(--fs-14); color: var(--ink-700); line-height: 1.85; text-align: justify; }
.d-body-card p.desc.more { display: none; }
.d-body-card .toggle-more { display: block; margin: 10px auto 0; font-size: var(--fs-13); color: var(--green-700); font-weight: 600; padding: 6px 14px; }

/* 详情统计条 */
.d-stats { display: flex; margin-top: var(--sp-4); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 14px 0; border: 1px solid rgba(231,226,214,.6); }
.d-stats .ds-item { flex: 1; text-align: center; }
.d-stats .ds-item + .ds-item { border-left: 1px solid var(--line-soft); }
.d-stats b { display: block; font-size: var(--fs-18); font-weight: 800; color: var(--green-800); font-variant-numeric: tabular-nums; }
.d-stats span { font-size: var(--fs-11); color: var(--ink-500); margin-top: 2px; display: block; }

/* 详情浮动操作栏 */
.detail-floatbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: flex; gap: 10px; align-items: center;
  padding: 10px var(--sp-5) calc(10px + var(--safe-b));
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -8px 30px rgba(20,83,45,.08);
  animation: floatbar-in .35s var(--ease) both;
}
@keyframes floatbar-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
.detail-floatbar .btn { flex: 1; height: 48px; }

/* 书架 */
.shelf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); padding: 0 var(--sp-5); }
.shelf-cell .book-cover { width: 100%; }
.shelf-cell-title { font-size: var(--fs-13); font-weight: 600; margin-top: 8px; line-height: 1.4; }
.shelf-cell-sub { font-size: var(--fs-11); color: var(--ink-500); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.shelf-progress { margin-top: 6px; height: 4px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.shelf-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-600), var(--gold-500)); border-radius: 4px; transition: width .5s var(--ease-out); }

/* 续读卡片 */
.resume-card {
  display: flex; align-items: center; gap: 14px; padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(120deg, #fef9e7 0%, #fdf1d4 100%);
  border: 1px solid rgba(245,158,11,.25); border-radius: var(--r-lg);
  margin: var(--sp-4) var(--sp-5) 0;
}
.resume-card .rc-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--grad-gold); display: flex; align-items: center; justify-content: center;
  color: #5b3a00; box-shadow: var(--sh-gold);
}
.resume-card .rc-ico svg { width: 22px; height: 22px; }
.resume-card h4 { font-size: var(--fs-15); font-weight: 800; color: #6b4a0a; }
.resume-card p { font-size: var(--fs-12); color: #8a6930; margin-top: 2px; }
.resume-card .btn { margin-left: auto; flex: none; }

/* 收藏夹（专项阅读） */
.collect-card {
  --c-accent: var(--green-600);
  padding: 18px var(--sp-5); background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); border: 1px solid rgba(231,226,214,.6);
  display: flex; align-items: center; gap: 14px;
}
.collect-ico {
  width: 50px; height: 50px; border-radius: 15px; flex: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c-accent) 18%, #fff), color-mix(in srgb, var(--c-accent) 8%, #fff));
  color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--c-accent) 22%, transparent);
}
.collect-ico svg { width: 26px; height: 26px; }
.collect-main { flex: 1; min-width: 0; }
.collect-main h4 { font-size: var(--fs-16); font-weight: 800; }
.collect-main p { font-size: var(--fs-12); color: var(--ink-500); margin-top: 3px; line-height: 1.5; }

/* AI 快读 · 主题营销墙 */
.ai-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--safe-t) + 18px) var(--sp-5) 26px;
  background: linear-gradient(160deg, #0f3d22 0%, #123f25 42%, #83500f 150%);
  color: #fff;
}
.ai-hero::before {
  content: ""; position: absolute; right: -80px; top: -90px; width: 260px; height: 260px;
  border-radius: 50%; border: 36px solid rgba(255,255,255,.05);
}
.ai-hero::after {
  content: ""; position: absolute; left: -50px; bottom: -70px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(245,158,11,.13);
}
.ai-hero * { position: relative; z-index: 2; }
.ai-hero .ai-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-11); letter-spacing: .16em; color: var(--gold-300);
  background: rgba(245,158,11,.13); border: 1px solid rgba(245,158,11,.3);
  padding: 5px 12px; border-radius: var(--r-full); margin-bottom: 14px;
}
.ai-hero .ai-kicker svg { width: 13px; height: 13px; }
.ai-hero h1 { font-size: var(--fs-26); font-weight: 800; line-height: 1.35; }
.ai-hero h1 em { font-style: normal; background: linear-gradient(90deg, #fbbf24, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-hero p { font-size: var(--fs-13); opacity: .78; margin-top: 8px; line-height: 1.7; }
.ai-hero .ai-points { display: flex; gap: 16px; margin-top: 18px; }
.ai-hero .ai-points span { font-size: var(--fs-12); display: flex; align-items: center; gap: 5px; opacity: .9; }
.ai-hero .ai-points svg { width: 14px; height: 14px; color: var(--gold-400); }

/* AI 问答输入条 */
.ai-chat-input input { flex: 1; height: 36px; font-size: var(--fs-15); }
.ai-chat-input .btn { height: 40px; width: 40px; border-radius: 50%; padding: 0; flex: none; }
.ai-chat-input .btn svg { width: 19px; height: 19px; }

/* 分享弹层（赚佣金） */
.share-card .sc-ico svg { width: 26px; height: 26px; }
.share-card h4 { font-size: var(--fs-16); font-weight: 800; color: #6b4a0a; }
.share-card p { font-size: var(--fs-12); color: #8a6930; margin-top: 3px; line-height: 1.5; }
.share-card .btn { margin-left: auto; flex: none; }

/* 我的页 */
.profile-head {
  position: relative; overflow: hidden;
  padding: calc(var(--safe-t) + 20px) var(--sp-5) 34px;
  background: var(--grad-brand); color: #fff;
}
.profile-head::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  border-radius: 50%; border: 26px solid rgba(255,255,255,.05);
}
.profile-head::after {
  content: ""; position: absolute; left: -40px; bottom: -80px; width: 170px; height: 170px;
  border-radius: 50%; background: rgba(245,158,11,.12);
}
.profile-row { display: flex; align-items: center; gap: 16px; position: relative; z-index: 2; }
.avatar {
  width: 66px; height: 66px; border-radius: 22px; flex: none;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  display: flex; align-items: center; justify-content: center;
  color: #5b3a00; font-size: var(--fs-26); font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  border: 2px solid rgba(255,255,255,.35);
}
.profile-info { flex: 1; min-width: 0; }
.profile-info h1 { font-size: var(--fs-20); font-weight: 800; }
.profile-info .pi-sub { font-size: var(--fs-12); opacity: .75; margin-top: 3px; }
.profile-stats { display: flex; margin-top: 22px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13); border-radius: var(--r-lg); padding: 13px 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); position: relative; z-index: 2; }
.profile-stats .ps-item { flex: 1; text-align: center; }
.profile-stats .ps-item + .ps-item { border-left: 1px solid rgba(255,255,255,.12); }
.profile-stats b { display: block; font-size: var(--fs-18); font-weight: 800; font-variant-numeric: tabular-nums; }
.profile-stats span { font-size: var(--fs-11); opacity: .7; margin-top: 1px; display: block; }

/* 我的页功能宫格 */
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: var(--sp-5); background: var(--surface); margin: var(--sp-4) var(--sp-5) 0; border-radius: var(--r-lg); box-shadow: var(--sh-sm); border: 1px solid rgba(231,226,214,.6); }
.pgrid-item { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 0; }
.pgrid-item:active .pi-ico { transform: scale(.88); }
.pgrid-item .pi-ico svg { width: 22px; height: 22px; }
.pgrid-item span { font-size: var(--fs-11); font-weight: 600; color: var(--ink-700); }

/* 邀请横幅 */
.invite-banner {
  position: relative; overflow: hidden;
  margin: var(--sp-4) var(--sp-5) 0; padding: 18px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, #231a05 0%, #57500f 55%, #92400e 130%);
  color: #ffe9b8; display: flex; align-items: center; gap: 12px;
}
.invite-banner::before {
  content: ""; position: absolute; right: -30px; top: -50px; width: 130px; height: 130px;
  border-radius: 50%; border: 18px solid rgba(251,191,36,.1);
}
.invite-banner .ib-ico { width: 42px; height: 42px; border-radius: 13px; flex: none; background: rgba(245,158,11,.18); border: 1px solid rgba(245,158,11,.32); display: flex; align-items: center; justify-content: center; }
.invite-banner .ib-ico svg { width: 22px; height: 22px; color: var(--gold-400); }
.invite-banner h4 { font-size: var(--fs-15); font-weight: 800; }
.invite-banner p { font-size: var(--fs-12); opacity: .8; margin-top: 2px; }
.invite-banner .ib-code {
  margin-left: auto; flex: none; font-size: var(--fs-16); font-weight: 800; letter-spacing: .14em;
  background: rgba(255,255,255,.1); border: 1px dashed rgba(245,158,11,.5);
  padding: 6px 12px; border-radius: var(--r-sm); color: var(--gold-300);
}

/* 关于 / 文章 */
.article-body { padding: 0 var(--sp-6) var(--sp-8); }
.article-body h1 { font-size: var(--fs-22); font-weight: 800; padding: 8px 0 6px; }
.article-body h2 { font-size: var(--fs-18); font-weight: 700; margin: 22px 0 10px; }
.article-body h3 { font-size: var(--fs-16); font-weight: 700; margin: 18px 0 8px; }
.article-body p { font-size: var(--fs-15); color: var(--ink-700); line-height: 1.9; margin-bottom: 12px; text-align: justify; }
.article-body ul { padding-left: 4px; }
.article-body li { font-size: var(--fs-15); color: var(--ink-700); line-height: 1.85; padding-left: 22px; position: relative; margin-bottom: 8px; }
.article-body li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 2px; background: var(--grad-green); }
.article-date { font-size: var(--fs-12); color: var(--ink-400); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }

/* 富文本放行（协议等） */
.rich-text { font-size: var(--fs-14); color: var(--ink-700); line-height: 1.9; }
.rich-text h1 { font-size: 20px; margin: 18px 0 10px; }
.rich-text h2 { font-size: 17px; margin: 16px 0 8px; }
.rich-text p { margin-bottom: 10px; text-align: justify; }
.rich-text b { color: var(--ink-900); }

/* 页面进入条（带横滑 item 卡片） */
.split-list { display: flex; flex-direction: column; gap: 0; }
.split-list .list-cell { background: var(--surface); }

/* 底部留白（确保内容不被 TabBar 遮挡） */
.page-bottom-space { height: calc(var(--tabbar-h) + var(--safe-b) + 20px); }

/* 粘性分组标题 */

/* 分隔标题 */
.list-heading::before { content: ""; width: 4px; height: 14px; border-radius: 4px; background: var(--grad-gold); }

/* ============================================================
   ★ 第三阶段补齐 —— 全局骨架 / 页头 / 首页组件
   ============================================================ */

/* ---------- 页面过渡（router view-enter） ---------- */
.view-enter { animation: page-in .3s var(--ease) both; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 启动屏完成态（splash-done） ---------- */
.boot-splash.splash-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- body 锁定（QA 浮层） ---------- */
body.no-scroll { overflow: hidden; }

/* ---------- Toast 变体 ---------- */
.toast.info { background: rgba(37,99,235,.94); }

/* ---------- span 版开关（阅读器/设置页） ---------- */
.switch { position: relative; width: 42px; height: 24px; border-radius: 24px; background: var(--ink-200, #d6d3cd); display: inline-block; flex: none; transition: background .25s var(--ease); cursor: pointer; }
.switch i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.22); transition: transform .25s var(--ease); }
.switch.on { background: var(--green-600, #14532d); }
.switch.on i { transform: translateX(18px); }

/* ---------- app-header 通用页头 ---------- */
.app-header {
  display: flex; align-items: center; gap: 10px;
  height: calc(var(--header-h) + var(--safe-t));
  padding: var(--safe-t) var(--sp-5) 0;
  position: sticky; top: 0; z-index: 40;
  background: rgba(248,246,241,.88);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231,226,214,.7);
}
.app-header.scrolled { box-shadow: 0 6px 24px rgba(20,30,20,.06); }

/* 首页品牌页头（渐变底） */
.app-header.home-header {
  background: var(--grad-brand);
  border-bottom: none;
  box-shadow: 0 8px 28px rgba(11,46,24,.35);
}
.home-header .brand-lockup { flex: 1; min-width: 0; }
.home-header .head-actions { flex: none; display: flex; gap: 8px; }
.home-header .head-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  color: #fff; display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.home-header .head-btn:active { transform: scale(.92); background: rgba(255,255,255,.26); }

/* 品牌区（新版 brand-orb + brand-texts） */
.brand-orb {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.brand-texts { line-height: 1.15; }
.brand-name { display: block; font-size: 16px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.brand-slogan { display: block; font-size: 9.5px; letter-spacing: .18em; color: rgba(255,255,255,.78); margin-top: 2px; }

/* ---------- sub-header 二级页头 ---------- */
.sub-header { position: sticky; top: 0; z-index: 40; }
.header-titles { flex: 1; min-width: 0; text-align: center; }
.sub-header .header-titles { flex: 1; min-width: 0; text-align: center; }
.page-title { font-size: var(--fs-17, 17px); font-weight: 800; letter-spacing: .02em; color: var(--ink-900); }
.page-sub { font-size: var(--fs-11, 11px); color: var(--ink-400); margin-top: 2px; letter-spacing: .04em; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.sub-header .head-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface, #fff); border: 1px solid var(--line-soft, rgba(231,226,214,.8));
  color: var(--ink-700); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(20,30,20,.05);
  transition: transform .18s var(--ease), background .18s var(--ease);
}
.sub-header .head-btn:active { transform: scale(.9); background: var(--bg-soft, #f1eee7); }
.sub-header .back-btn { margin-left: -4px; }

/* ---------- sec-titles（首页章节标题组） ---------- */
.sec-titles { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sec-titles .sec-sub { font-size: var(--fs-12, 12px); color: var(--ink-400); margin-top: 0; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-17, 17px); font-weight: 800; color: var(--ink-900); }
.sec-title::before { content: ""; width: 4px; height: 15px; border-radius: 4px; background: var(--grad-gold); }

/* ---------- book-card-author ---------- */
.book-card-author { font-size: var(--fs-11, 11px); color: var(--ink-400); margin-top: 3px; }

/* ---------- Home 轮播（新版：banner-inner + slide active 切换） ---------- */
.banner-slide { position: absolute; left: 0; top: 0; height: 100%; width: 100%; display: none; }
.banner-slide.active { display: block; animation: banner-in .5s var(--ease-out) both; }
@keyframes banner-in {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}
.banner-inner {
  position: relative; height: 100%; border-radius: var(--r-xl, 20px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; color: #fff; overflow: hidden;
  box-shadow: 0 14px 34px rgba(15,50,28,.28);
}
.banner-inner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 30%, rgba(0,0,0,.46) 100%);
}
.banner-glow {
  position: absolute; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.26), transparent);
  filter: blur(4px); right: -40px; top: -50px; pointer-events: none;
  animation: glow-breathe 5s ease-in-out infinite;
}
@keyframes glow-breathe { 0%,100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.banner-grad-1 { background: linear-gradient(148deg, #0b3d22 0%, #14532d 55%, #1e7a4b 100%); }
.banner-grad-2 { background: linear-gradient(148deg, #10243f 0%, #1d3a63 55%, #2f5d96 100%); }
.banner-grad-3 { background: linear-gradient(148deg, #3d2506 0%, #6b3d0f 55%, #a1620f 100%); }
.banner-grad-4 { background: linear-gradient(148deg, #31104d 0%, #55208a 55%, #7c3aed 100%); }
.banner-grad-5 { background: linear-gradient(148deg, #0c2b3a 0%, #14532d 55%, #0f766e 100%); }
.banner-kicker {
  position: relative; z-index: 2; align-self: flex-start;
  font-size: 10px; font-weight: 700; letter-spacing: .22em;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.banner-title { position: relative; z-index: 2; font-size: 22px; font-weight: 800; line-height: 1.32; margin-top: 10px; font-family: var(--font-serif, serif); }
.banner-desc { position: relative; z-index: 2; font-size: 12.5px; line-height: 1.55; opacity: .85; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.banner-chip {
  position: relative; z-index: 2; margin-top: 14px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: #fff;
  padding: 7px 16px; border-radius: 999px;
  background: var(--grad-gold); box-shadow: 0 6px 16px rgba(180,120,20,.35);
}
.banner-dots i.on { background: var(--gold-500, #d97706); width: 18px; }

/* ---------- 今日一读 daily-card（帖子风格） ---------- */
.daily-card {
  display: flex; align-items: center; gap: 14px;
  padding: 20px; background: var(--surface, #fff);
  border-radius: var(--r-xl, 20px);
  border: 1px solid rgba(231,226,214,.6);
  box-shadow: var(--sh-md, 0 10px 30px rgba(20,40,20,.08));
  position: relative; overflow: hidden;
}
.daily-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad-gold); border-radius: 4px;
}
.daily-stamp {
  flex: none; width: 58px; text-align: center; line-height: 1;
  color: #b45309; font-weight: 800;
  display: flex; flex-direction: column; align-items: center;
  padding-right: 14px; border-right: 1px dashed var(--line-soft, rgba(231,226,214,.9));
}
.daily-stamp span { font-size: 22px; }
.daily-stamp b { font-size: 9px; letter-spacing: .3em; opacity: .6; margin: 4px 0 2px; }
.daily-stamp i { font-size: 11px; font-style: normal; opacity: .55; }
.daily-main { flex: 1; min-width: 0; }
.daily-label {
  font-size: 9.5px; font-weight: 800; letter-spacing: .24em;
  color: transparent; background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
}
.daily-title { font-size: 16.5px; font-weight: 800; line-height: 1.4; margin-top: 7px; }
.daily-quote {
  font-size: 12px; color: var(--ink-500, #78716c); line-height: 1.5;
  margin: 6px 0 12px; font-family: var(--font-serif, serif);
  border-left: 2px solid var(--gold-300, #fcd34d); padding-left: 8px;
}
.daily-card .book-cover { flex: none; }

/* ---------- 专题卡 topic-card ---------- */
.topic-card {
  width: 158px; flex: none;
  background: var(--surface, #fff); border: 1px solid rgba(231,226,214,.6);
  border-radius: var(--r-lg, 16px); overflow: hidden;
  box-shadow: var(--sh-sm, 0 4px 14px rgba(20,40,20,.06));
  transition: transform .22s var(--ease);
}
.topic-card:active { transform: scale(.97); }
.topic-cover-row {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 12px 12px; gap: 0;
  background: linear-gradient(160deg, #f4f1e8, #e9e4d6);
}
.topic-cover-row .book-cover { width: 62px; margin: 0 -8px; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 6px 16px rgba(20,40,20,.18); position: relative; }
.topic-cover-row .book-cover:nth-child(1) { z-index: 3; transform: rotate(-4deg); }
.topic-cover-row .book-cover:nth-child(2) { z-index: 2; transform: translateY(5px); }
.topic-cover-row .book-cover:nth-child(3) { z-index: 1; transform: rotate(4deg); }
.topic-info { padding: 12px 14px 14px; }
.topic-title { font-size: 13.5px; font-weight: 800; line-height: 1.35; }
.topic-desc { font-size: 11px; color: var(--ink-400); margin-top: 4px; line-height: 1.4; }
.topic-info .btn { margin-top: 10px; }

/* ---------- 首页分类卡（新版 ai-cat-ico + ai-cat-meta 结构） ---------- */
.ai-cat-grid .ai-cat-card {
  display: flex; align-items: center; gap: 10px;
  min-height: 64px; padding: 12px; border-radius: var(--r-lg, 14px);
  background: var(--surface, #fff);
  border: 1px solid rgba(231,226,214,.6);
  box-shadow: var(--sh-xs, 0 2px 8px rgba(20,40,20,.04));
  transition: transform .18s var(--ease), border-color .18s;
}
.ai-cat-grid .ai-cat-card:active { transform: scale(.96); border-color: var(--gold-400, #d97706); }
.ai-cat-ico {
  flex: none; width: 40px; height: 40px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(20,83,45,.12), rgba(20,83,45,.2));
  color: var(--green-700, #14532d);
}
.ai-cat-grid .ai-cat-card:nth-child(3n+2) .ai-cat-ico { background: linear-gradient(145deg, rgba(180,83,9,.1), rgba(180,83,9,.2)); color: #b45309; }
.ai-cat-grid .ai-cat-card:nth-child(3n) .ai-cat-ico { background: linear-gradient(145deg, rgba(85,32,138,.1), rgba(85,32,138,.2)); color: #55208a; }
.ai-cat-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-cat-meta b { font-size: 13px; font-weight: 800; color: var(--ink-900); }
.ai-cat-meta span { font-size: 10.5px; color: var(--ink-400); }

/* ---------- 热读榜排名 ---------- */
.rank-list { background: var(--surface, #fff); border: 1px solid rgba(231,226,214,.6); border-radius: var(--r-lg, 16px); overflow: hidden; box-shadow: var(--sh-sm, 0 4px 14px rgba(20,40,20,.05)); }
.book-row-rank {
  flex: none; width: 24px; text-align: center;
  font-size: 17px; font-weight: 800; font-style: italic;
  font-variant-numeric: tabular-nums; color: var(--ink-300, #c5c0b6);
}
.rank-1 { color: #d97706; }
.rank-2 { color: #64748b; }
.rank-3 { color: #b45309; }
.book-row-tag {
  font-size: 9.5px; font-weight: 700; color: var(--green-700, #14532d);
  background: rgba(20,83,45,.1); border-radius: 999px; padding: 2px 7px;
  border: 1px solid rgba(20,83,45,.16); margin-left: 6px;
}

/* ---------- 会员横幅 vip-banner ---------- */
.vip-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-radius: var(--r-lg, 16px);
  background: linear-gradient(120deg, #1c1917 0%, #3f2c10 62%, #6b3d0f 100%);
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 12px 30px rgba(40,25,5,.25);
}
.vip-banner::before {
  content: ""; position: absolute; right: -38px; top: -52px; width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245,158,11,.34), transparent); 
}
.vip-banner-left { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.vip-crown {
  flex: none; width: 42px; height: 42px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #f59e0b, #d97706); color: #fff;
  box-shadow: 0 8px 18px rgba(217,119,6,.4);
}
.vip-banner-left b { font-size: 15px; font-weight: 800; display: block; }
.vip-banner-left p { font-size: 11px; opacity: .72; margin-top: 3px; }
.vip-banner-btn {
  position: relative; z-index: 2; flex: none;
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 12px; font-weight: 700; color: #3b1d00;
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
  padding: 9px 14px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(217,119,6,.4);
}

/* ---------- 合伙人横幅适配（新版 partner-main） ---------- */
.partner-main b { display: block; font-size: 15px; font-weight: 800; }
.partner-main p { font-size: 11.5px; opacity: .72; margin-top: 3px; }

/* ---------- cover-big（UI.cover size=big 的通用放大） ---------- */
.book-cover.cover-big { width: 96px; }

/* ============================================================
   ★ 书籍详情页
   ============================================================ */

/* Hero 背景色板（cover-*-bg 深色变体） */
.cover-forest-bg { background: linear-gradient(150deg, #0b2f19 0%, #14532d 60%, #1f7a45 100%); }
.cover-ocean-bg  { background: linear-gradient(150deg, #0c2540 0%, #1e3a8a 60%, #2563eb 100%); }
.cover-sunset-bg { background: linear-gradient(150deg, #3b1a0a 0%, #9a3412 60%, #ea580c 100%); }
.cover-violet-bg { background: linear-gradient(150deg, #2e1065 0%, #6b21a8 60%, #9333ea 100%); }
.cover-slate-bg  { background: linear-gradient(150deg, #111827 0%, #1f2937 60%, #4b5563 100%); }
.cover-rose-bg   { background: linear-gradient(150deg, #4c0519 0%, #be123c 60%, #e11d48 100%); }
.cover-teal-bg   { background: linear-gradient(150deg, #042f2e 0%, #0f766e 60%, #14b8a6 100%); }
.cover-indigo-bg { background: linear-gradient(150deg, #1e1b4b 0%, #4338ca 60%, #6366f1 100%); }
.cover-amber-bg  { background: linear-gradient(150deg, #451a03 0%, #92400e 60%, #d97706 100%); }
.cover-cyber-bg  { background: linear-gradient(150deg, #022c22 0%, #047857 60%, #059669 100%); }
.cover-gold-bg   { background: linear-gradient(150deg, #422006 0%, #a16207 60%, #ca8a04 100%); }
.cover-jade-bg   { background: linear-gradient(150deg, #052e16 0%, #166534 60%, #22c55e 100%); }
.cover-gem-bg    { background: linear-gradient(150deg, #2e1065 0%, #7c3aed 60%, #a855f7 100%); }
.cover-coral-bg  { background: linear-gradient(150deg, #3c0a18 0%, #c2410c 60%, #f97316 100%); }
.cover-navy-bg   { background: linear-gradient(150deg, #0f172a 0%, #1d4ed8 60%, #3b82f6 100%); }
.cover-ink-bg    { background: linear-gradient(150deg, #1c1917 0%, #44403c 60%, #78716c 100%); }

.detail-page .detail-hero { position: relative; overflow: hidden; }
.detail-hero-bg-orb {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -70px; top: -80px;
  background: radial-gradient(closest-side, rgba(255,255,255,.2), transparent);
  pointer-events: none;
}
.detail-hero-inner {
  position: relative; z-index: 2;
  display: flex; gap: 16px; align-items: flex-end;
  padding: 44px var(--sp-5) 26px;
}
.detail-hero .book-cover { flex: none; box-shadow: 0 18px 40px rgba(0,0,0,.38); }
.di-cat {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: .16em;
  color: #fff; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  padding: 4px 10px; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.detail-info .di-title { font-size: 21px; font-weight: 800; line-height: 1.32; color: #fff; margin-top: 10px; font-family: var(--font-serif, serif); }
.di-rate-txt { opacity: .78; }
.di-actionbar-btn {
  flex: 1; min-width: 0; height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: var(--r-lg, 14px);
  font-size: 10px; font-weight: 600; line-height: 1;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s var(--ease), transform .18s var(--ease);
}
.di-actionbar-btn:active { transform: scale(.95); background: rgba(255,255,255,.2); }
.di-actionbar-btn svg { width: 20px; height: 20px; }
.di-shelf-ico { display: flex; }
.di-shelf-txt { display: block; }
.detail-floatbar .btn-start { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* 简介 */
.d-intro .d-body-text { font-size: 14px; line-height: 1.85; color: var(--ink-600, #55524c); margin-bottom: 12px; text-align: justify; }

/* 金句卡 */
.d-quote {
  background: linear-gradient(150deg, rgba(245,158,11,.08), rgba(245,158,11,.02));
  border: 1px solid rgba(245,158,11,.22);
  border-radius: var(--r-lg, 16px); padding: 18px;
  position: relative; overflow: hidden;
}
.quote-mark {
  color: var(--gold-400, #d97706); opacity: .9;
  display: flex; margin-bottom: 8px;
}
.quote-mark svg { width: 26px; height: 26px; }
.quote-text { font-size: 15px; font-family: var(--font-serif, serif); line-height: 1.8; color: var(--ink-800, #2d2a26); }
.quote-from { font-size: 12px; color: var(--gold-600, #92400e); margin-top: 10px; text-align: right; }

/* AI 精讲目录 */
.chapter-list { background: var(--surface, #fff); border: 1px solid rgba(231,226,214,.6); border-radius: var(--r-lg, 16px); overflow: hidden; box-shadow: var(--sh-sm, 0 4px 14px rgba(20,40,20,.05)); }
.chapter-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px var(--sp-5, 16px);
  background: none; border: 0; border-bottom: 1px solid var(--line-soft, rgba(231,226,214,.7));
  color: var(--ink-900); text-align: left; cursor: pointer;
  transition: background .18s var(--ease);
}
.chapter-row:last-child { border-bottom: none; }
.chapter-row:active { background: rgba(20,83,45,.06); }
.chapter-idx {
  flex: none; width: 30px; height: 30px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: rgba(20,83,45,.1); color: var(--green-700, #14532d);
}
.chapter-row:nth-child(n+6) .chapter-idx { background: rgba(217,119,6,.12); color: #b45309; }
.chapter-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; }
.chapter-words { flex: none; font-size: 11px; color: var(--ink-400); font-variant-numeric: tabular-nums; }

/* AI 问答入口卡 */
.ai-qa-card {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; border-radius: var(--r-lg, 16px);
  background: linear-gradient(120deg, #f0fdf4, #fefce8);
  border: 1px solid rgba(20,83,45,.16); cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ai-qa-card:active { transform: scale(.98); box-shadow: var(--sh-md, 0 10px 24px rgba(20,60,30,.12)); }
.ai-qa-ico {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 8px 18px rgba(15,70,36,.28);
}
.ai-qa-main { flex: 1; min-width: 0; }
.ai-qa-main b { display: block; font-size: 14px; font-weight: 800; }
.ai-qa-main p { font-size: 11.5px; color: var(--ink-500, #78716c); margin-top: 3px; }
.ai-qa-btn {
  flex: none; display: inline-flex; align-items: center; gap: 2px;
  font-size: 12px; font-weight: 700; color: var(--green-700, #14532d);
}

/* ============================================================
   ★ 书架页
   ============================================================ */

/* 状态分栏（seg + button.seg-item 结构） */
.seg-item {
  flex: 1; height: 40px; border: 0; background: none;
  font-size: 13px; font-weight: 600; color: var(--ink-400);
  border-radius: 12px; cursor: pointer; position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.seg-item i {
  font-style: normal; font-size: 10px; font-weight: 700;
  background: rgba(20,83,45,.1); color: var(--green-700, #14532d);
  border-radius: 999px; padding: 1px 6px; margin-left: 4px;
}
.seg-item.active { color: var(--green-700, #14532d); background: rgba(20,83,45,.09); font-weight: 800; }
.seg-item.active i { background: var(--green-600, #14532d); color: #fff; }

/* 续读卡片（新版 resume-* 结构） */
.resume-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; background: var(--surface, #fff);
  border-radius: var(--r-lg, 16px);
  border: 1px solid rgba(231,226,214,.6);
  box-shadow: var(--sh-md, 0 10px 26px rgba(20,40,20,.08));
  position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.resume-card:active { transform: scale(.985); box-shadow: var(--sh-lg, 0 16px 34px rgba(20,40,20,.12)); }
.resume-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad-brand); border-radius: 4px;
}
.resume-cover { flex: none; }
.resume-cover .book-cover { width: 84px; box-shadow: 0 10px 22px rgba(20,40,20,.22); }
.resume-main { flex: 1; min-width: 0; }
.resume-tag {
  display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .14em;
  color: var(--gold-600, #92400e); background: rgba(245,158,11,.14);
  padding: 3px 8px; border-radius: 999px;
}
.resume-title { font-size: 16px; font-weight: 800; margin-top: 7px; line-height: 1.35; }
.resume-sub { font-size: 11.5px; color: var(--ink-400); margin-top: 4px; }
.resume-progress { margin-top: 9px; height: 5px; border-radius: 6px; background: var(--line-soft, rgba(231,226,214,.9)); overflow: hidden; }
.resume-progress i { display: block; height: 100%; border-radius: 6px; background: var(--grad-brand); }
.resume-play {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-gold); color: #fff;
  box-shadow: 0 10px 22px rgba(180,120,20,.4);
}

/* 书架网格细节 */
.shelf-cell { position: relative; }
.shelf-cover-link { display: block; position: relative; border-radius: 10px; }
.shelf-del {
  position: absolute; top: -7px; right: -7px; z-index: 5;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #dc2626; color: #fff; border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.3);
}
.shelf-del svg { width: 12px; height: 12px; }

/* ============================================================
   ★ 个人中心
   ============================================================ */

.profile-glow {
  position: absolute; right: -70px; top: -90px; width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245,158,11,.35), transparent);
  pointer-events: none;
}
.profile-top-row { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; padding-top: 12px; }
.profile-avatar {
  flex: none; width: 66px; height: 66px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #f59e0b, #d97706); color: #fff;
  border: 2.5px solid rgba(255,255,255,.4);
  box-shadow: 0 10px 26px rgba(0,0,0,.3);
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar.guest { background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.08)); border-style: dashed; }
.avatar-char { font-size: 28px; font-weight: 800; font-family: var(--font-serif, serif); }
.profile-head .profile-info { padding-top: 2px; }
.profile-name {
  display: block; font-size: 18px; font-weight: 800; color: #fff;
  font-family: var(--font-serif, serif);
}
.profile-name em { display: block; font-style: normal; font-size: 11px; font-weight: 400; opacity: .7; margin-top: 3px; }
.profile-member {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: #fde68a;
  background: rgba(245,158,11,.16); border: 1px solid rgba(245,158,11,.4);
  padding: 4px 10px; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform .18s var(--ease);
}
.profile-member:active { transform: scale(.96); }
.pm-crown, .pm-arrow { display: flex; }
.profile-head .head-btn.light {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  color: #fff; display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.profile-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.profile-head .profile-stats { margin-top: 26px; }
.profile-stats .pstat { flex: 1; text-align: center; }

/* 功能宫格（新版 profile-cell 纵向列表） */
.profile-grid { display: flex; flex-direction: column; padding: 6px var(--sp-5, 16px); background: var(--surface, #fff); margin: var(--sp-4, 12px) var(--sp-5, 16px) 0; border-radius: var(--r-lg, 16px); box-shadow: var(--sh-sm, 0 4px 14px rgba(20,40,20,.05)); border: 1px solid rgba(231,226,214,.6); overflow: hidden; }
.profile-cell {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft, rgba(231,226,214,.7));
  transition: background .16s var(--ease);
}
.profile-cell:last-child { border-bottom: none; }
.profile-cell:active { background: rgba(20,83,45,.04); }
.profile-cell-ico {
  flex: none; width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,83,45,.09); color: var(--green-700, #14532d);
}
.profile-cell:nth-child(3n+2) .profile-cell-ico { background: rgba(245,158,11,.12); color: #b45309; }
.profile-cell:nth-child(3n) .profile-cell-ico { background: rgba(85,32,138,.09); color: #55208a; }
.profile-cell-txt { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink-900); }
.profile-cell-badge {
  flex: none; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--grad-gold); color: #fff;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(180,120,20,.35);
  font-variant-numeric: tabular-nums;
}

/* 邀请横幅（新版 invite-main + invite-cta） */
.invite-main b { display: block; font-size: 15px; font-weight: 800; }
.invite-main p { font-size: 11.5px; opacity: .72; margin-top: 3px; }
.invite-cta {
  flex: none; display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 800; color: #fff;
  background: var(--grad-gold); padding: 9px 15px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(180,120,20,.35);
}

/* ============================================================
   ★ 登录 / 注册（R4-P6 品牌门面：渐变 hero + 悬浮表单卡）
   ============================================================ */

.auth-page { min-height: 100%; background: var(--bg, #f8f5ef); display: flex; flex-direction: column; }
.auth-hero {
  position: relative; overflow: hidden;
  padding: 30px 24px 64px;
  background: var(--grad-brand, linear-gradient(135deg, #14532d 0%, #166534 52%, #f59e0b 130%));
  color: #fff;
}
/* 右上金色光晕 + 左下暗角，营造层次（纯装饰） */
.auth-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(245,158,11,.28) 0%, rgba(245,158,11,0) 46%),
    radial-gradient(90% 70% at 0% 100%, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 55%);
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-back {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12);
  color: #fff; cursor: pointer; backdrop-filter: blur(4px);
}
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-logo {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 4px 14px rgba(0,0,0,.18);
}
.auth-brand-txt { display: flex; flex-direction: column; gap: 2px; }
.auth-wm-en {
  font-size: 11px; font-weight: 800; letter-spacing: .34em;
  color: rgba(255,255,255,.72);
}
.auth-wm-cn { font-size: 19px; font-weight: 800; letter-spacing: .06em; }
.auth-slogan {
  margin-top: 14px; font-size: 12px; letter-spacing: .18em;
  color: rgba(255,255,255,.66);
}
.auth-title { margin-top: 20px; font-size: 26px; font-weight: 800; letter-spacing: .02em; }
.auth-sub { margin-top: 7px; font-size: 13.5px; color: rgba(255,255,255,.82); }
.auth-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.auth-feat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-full, 999px);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
}
.auth-feat svg { opacity: .9; }
/* 白卡上浮压住 hero 底部——经典品牌登录布局 */
.auth-card {
  position: relative; z-index: 2;
  margin: -38px 16px 0;
  padding: 24px 20px 22px;
  background: var(--surface, #fff);
  border-radius: var(--r-lg, 20px);
  box-shadow: var(--sh-lg, 0 16px 48px rgba(20,83,45,.14));
  animation: auth-card-in .45s var(--ease, ease) both;
}
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* 提交按钮加载态（data-busy 由 auth.js 设置） */
.btn[data-busy="1"] { opacity: .72; pointer-events: none; }
.auth-form { display: flex; flex-direction: column; gap: 2px; }
.field-label {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-700);
  margin-bottom: 8px; letter-spacing: .02em;
}
.field-input {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 14px;
  background: var(--surface, #fff);
  border: 1.5px solid var(--line, rgba(214,208,196,.9));
  border-radius: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field-input:focus-within { border-color: var(--green-600, #14532d); box-shadow: 0 0 0 4px rgba(20,83,45,.1); }
.fi-ico { display: flex; color: var(--ink-400); }
.field-input input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none;
  background: none; font-size: 16px; color: var(--ink-900);
}
.field-input input::placeholder { color: var(--ink-300, #c5c0b6); }
.fi-eye {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 0; background: none;
  color: var(--ink-400); cursor: pointer;
}
.auth-form .btn-block { margin-top: 20px; }
.auth-foot { text-align: center; margin-top: 26px; font-size: 13px; color: var(--ink-500, #78716c); }
.auth-foot a, .auth-agree a { color: var(--green-700, #14532d); font-weight: 700; }
.auth-agree { text-align: center; margin-top: 14px; font-size: 11px; color: var(--ink-400); line-height: 1.7; }
/* 登录页页脚：品牌 slogan + 版权。
   注意：.auth-page 背景是浅米色 var(--bg)（仅 hero 是深绿渐变），
   文字必须用主题墨色变量（暗色模式 dark.css 自动翻转为浅色），不能写死白色。 */
.auth-footer { text-align: center; padding: 34px 24px 6px; }
.auth-footer::before {
  content: ''; display: block; width: 28px; height: 2px;
  border-radius: 2px; margin: 0 auto 14px;
  background: var(--green-700, #15803d); opacity: .28;
}
.auth-footer-slogan {
  font-size: 12px; font-weight: 600; letter-spacing: .3px;
  color: var(--ink-500, #78716c); line-height: 1.7;
}
.auth-footer-copy { margin-top: 6px; font-size: 10.5px; letter-spacing: .3px; color: var(--ink-400, #a8a29e); }
.code-input { padding-right: 8px; }
.code-btn {
  flex: none; height: 36px; padding: 0 12px;
  border: 0; border-radius: 10px;
  background: rgba(20,83,45,.1); color: var(--green-700, #14532d);
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: opacity .2s;
}
.code-btn.disabled, .code-btn:disabled { opacity: .45; }
.agree-row {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 16px 2px 0; font-size: 12px; color: var(--ink-500, #78716c);
  line-height: 1.65; cursor: pointer;
}
.agree-row input { margin-top: 3px; accent-color: var(--green-600, #14532d); width: 15px; height: 15px; flex: none; }

/* ============================================================
   [第三批] 阅读器 · 听书唱机 · AI 页 · QA 浮层 · 杂项页面
   ============================================================ */

/* ---------- 阅读器：四套主题（重定义 CSS 变量，topbar/bottom 随之联动） ---------- */
.reader-screen.theme-bg-paper  { --reader-bg: #f6f1e6;  --reader-ink: #2d2a26; --reader-muted: #8a8478; --reader-line: rgba(45,42,38,.10); --reader-card: rgba(255,255,255,.62); }
.reader-screen.theme-bg-sepia  { --reader-bg: #f1e7d0;  --reader-ink: #4a3826; --reader-muted: #99876a; --reader-line: rgba(74,56,38,.12);  --reader-card: rgba(255,251,240,.72); }
.reader-screen.theme-bg-green  { --reader-bg: #e6efe3;  --reader-ink: #24382a; --reader-muted: #7a9180; --reader-line: rgba(36,56,42,.10);  --reader-card: rgba(255,255,255,.6); }
.reader-screen.theme-bg-night  { --reader-bg: #171b20;  --reader-ink: #b8bfc6; --reader-muted: #6d767d; --reader-line: rgba(184,191,198,.12); --reader-card: rgba(255,255,255,.05); }
.reader-screen { background: var(--reader-bg); color: var(--reader-ink); }
.reader-screen.theme-bg-night .reader-topbar,
.reader-screen.theme-bg-night .reader-bottom { border-color: var(--reader-line); }
.reader-screen.theme-bg-night .reader-topbar button:active,
.reader-screen.theme-bg-night .reader-bottom .rb-btn:active { background: rgba(255,255,255,.08); }

/* 阅读器顶栏（新版 rd-top-* 结构与旧 rt-title 并存） */
.rd-top-title { flex: 1; text-align: center; min-width: 0; }
.rd-top-title b { display: block; font-size: var(--fs-15); font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-top-title span { display: block; font-size: var(--fs-11); color: var(--reader-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-top-btn { color: var(--reader-ink); }

/* 阅读器正文 */
.rd-page-wrap { padding: calc(72px + var(--safe-t)) var(--sp-5) calc(96px + var(--safe-b)); min-height: 100%; box-sizing: border-box; animation: turn-in .34s var(--ease) both; }
.rd-paper { max-width: 560px; margin: 0 auto; }
.rd-reading-mode { font-size: var(--fs-content, 17px); line-height: var(--reader-line-h); color: var(--reader-ink); text-align: justify; }

/* 章首 */
.rd-chapter-head { margin-bottom: 26px; text-align: center; }
.rd-chapter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-11); font-weight: 800; letter-spacing: .22em;
  color: var(--gold-600, #b45309); text-transform: uppercase;
}
.rd-chapter-tag::before, .rd-chapter-tag::after { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-400, #fbbf24)); }
.rd-chapter-tag::after { background: linear-gradient(90deg, var(--gold-400, #fbbf24), transparent); }
.rd-chapter-head h2 {
  font-family: var(--font-serif, serif); font-size: 24px; font-weight: 800;
  letter-spacing: .04em; margin: 14px 0 0; line-height: 1.5;
}
.rd-jp-title { display: block; font-size: 12.5px; font-family: var(--font-serif, serif); color: var(--reader-muted); margin-top: 10px; letter-spacing: .32em; font-weight: 400; }
.rd-chapter-divider {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 26px 0 24px; color: var(--reader-muted);
}
.rd-chapter-divider::before, .rd-chapter-divider::after { content: ""; flex: 1; height: 1px; background: var(--reader-line); }
.rd-chapter-divider i { font-size: 8px; font-style: normal; letter-spacing: 8px; padding-right: 8px; }

/* 段落（现代文 / 古汉语） */
.rd-paragraph { margin: 0 0 1.1em; text-indent: 2em; }
.rd-paragraph.gu-text { font-family: var(--font-serif, serif); color: var(--reader-ink); opacity: .96; }
.rd-paragraph .rd-mark { background: linear-gradient(transparent 60%, rgba(245,158,11,.35) 60%); padding: 0 2px; }

/* 我的注解 / AI 深度解读卡片 */
.rd-annotation, .rd-analysis {
  position: relative; margin: 22px 0; padding: 16px 16px 14px 18px;
  border-radius: 14px; font-size: 13.5px; line-height: 1.85;
  overflow: hidden;
}
.reader-screen.theme-bg-night .rd-annotation, .reader-screen.theme-bg-night .rd-analysis { border: 1px solid var(--reader-line); }
.rd-annotation { background: var(--reader-card); border-left: 3px solid var(--green-500, #22c55e); color: var(--reader-ink); }
.rd-analysis { background: var(--reader-card); border-left: 3px solid var(--gold-500, #f59e0b); color: var(--reader-ink); }
.rd-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; margin-bottom: 8px;
}
.rd-annotation .rd-label { color: var(--green-700, #15803d); }
.rd-analysis .rd-label { color: var(--gold-600, #b45309); }
.rd-label svg { width: 13px; height: 13px; }
.rd-annotation p, .rd-analysis p { margin: 0; color: var(--reader-ink); opacity: .92; }

/* 翻章/操作 toast 提示 */
.rd-flash {
  position: fixed; left: 50%; top: 46%; z-index: 1200;
  transform: translate(-50%, -50%);
  max-width: 76vw; padding: 13px 22px; border-radius: 14px;
  background: rgba(17, 18, 20, .88); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  text-align: center; line-height: 1.5;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity .25s ease;
}
.rd-flash.on { animation: rd-toast-in .22s ease-out; }
.rd-flash.hide { opacity: 0; }
@keyframes rd-toast-in {
  0% { opacity: 0; transform: translate(-50%, -46%); }
  100% { opacity: 1; transform: translate(-50%, -50%); }
}

/* 空阅读（无内容抖包袱） */
.reader-empty {
  min-height: 55vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--reader-muted); font-size: 13.5px;
}
.reader-empty svg { width: 44px; height: 44px; opacity: .4; }

/* ---------- 阅读器底部抽屉（目录 / 设置） ---------- */
.reader-drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--reader-bg); color: var(--reader-ink);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 40px rgba(0,0,0,.16);
  transform: translateY(105%); transition: transform .32s var(--ease);
  max-height: 74vh; display: flex; flex-direction: column;
  visibility: hidden; transition: transform .32s var(--ease), visibility .32s;
}
.reader-drawer.open { transform: translateY(0); visibility: visible; }
.reader-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--sp-5) 12px; flex: none;
  border-bottom: 1px solid var(--reader-line);
}
.reader-drawer-head b, .reader-drawer-head h3 { font-size: var(--fs-15); font-weight: 800; margin: 0; }
.reader-drawer-close {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: none; color: var(--reader-muted); display: flex; align-items: center; justify-content: center;
}
.reader-drawer-close svg { width: 17px; height: 17px; }
.reader-drawer-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 calc(24px + var(--safe-b)); }

/* 目录列表 */
.rd-toc-list { list-style: none; margin: 0; padding: 0; }
.rd-toc-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px var(--sp-5); cursor: pointer; position: relative;
  transition: background var(--dur-fast);
}
.rd-toc-item:active { background: rgba(127,127,127,.08); }
.rd-toc-item.active::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--grad-gold, linear-gradient(180deg,#fbbf24,#f59e0b));
}
.rd-toc-idx {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  background: rgba(127,127,127,.1); color: var(--reader-muted);
}
.rd-toc-item.active .rd-toc-idx { background: rgba(245,158,11,.14); color: var(--gold-600, #b45309); }
.rd-toc-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-toc-cur { font-size: 10px; color: var(--gold-600, #b45309); background: rgba(245,158,11,.14); padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.rd-toc-time { flex: none; font-size: 11px; color: var(--reader-muted); font-variant-numeric: tabular-nums; }

/* 设置抽屉 */
.rd-set-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px var(--sp-5);
}
.rd-set-label { font-size: 14px; font-weight: 700; }
.rd-set-hint { display: block; font-size: 11px; color: var(--reader-muted); font-weight: 400; margin-top: 2px; }
.rd-set-controls { display: flex; align-items: center; gap: 8px; }
.rd-set-btn {
  min-width: 40px; height: 34px; padding: 0 12px;
  border: 1px solid var(--reader-line); border-radius: 10px;
  background: none; color: var(--reader-ink); font-size: 13px; font-weight: 700;
  transition: all var(--dur-fast);
}
.rd-set-btn.on { background: var(--grad-gold, linear-gradient(135deg,#fbbf24,#f59e0b)); color: #5b3a00; border-color: transparent; box-shadow: var(--sh-gold, 0 8px 24px rgba(245,158,11,.3)); }
.rd-set-val { min-width: 58px; text-align: center; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--reader-ink); }

/* 主题色点：JS 输出为 <span class="theme-dot theme-* active" data-theme>（无子元素） */
.theme-dots { display: flex; align-items: center; gap: 14px; }
.theme-dot {
  flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%;
  display: block; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast);
}
.theme-dot.theme-paper { background: linear-gradient(145deg, #f6f1e4, #ddd4bf); border: 2px solid #c9bfa6; }
.theme-dot.theme-sepia  { background: linear-gradient(145deg, #e6cf9f, #c9a96b); border: 2px solid #a8874e; }
.theme-dot.theme-green  { background: linear-gradient(145deg, #dcecd2, #a9c99c); border: 2px solid #7fa572; }
.theme-dot.theme-night  { background: linear-gradient(145deg, #3a4353, #1b2029); border: 2px solid #12161d; }
.theme-dot.active {
  transform: scale(1.14);
  box-shadow: 0 0 0 3px var(--reader-bg), 0 0 0 5px var(--gold-500, #f59e0b);
}
.theme-dot.active::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--gold-500, #f59e0b);
}

/* ============================================================
   听书：唱机（turntable）与列表
   ============================================================ */
.turntable {
  position: relative; width: 270px; aspect-ratio: 1; margin: 0 auto;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.06), transparent 42%),
    linear-gradient(160deg, #2b1e16, #171009 70%);
  box-shadow:
    inset 0 2px 14px rgba(255,255,255,.10), inset 0 -18px 34px rgba(0,0,0,.55),
    0 24px 48px rgba(0,0,0,.42);
}
.turntable::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07);
}
.vinyl-wrap { position: relative; width: 178px; }
.vinyl {
  width: 178px; height: 178px; border-radius: 50%;
  background: radial-gradient(circle at center, #37302b 0%, #1c1613 38%, #0b0807 70%, #050403 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.5);
  animation: vinyl-spin 2.4s linear infinite;
}
.vinyl-wrap.idle .vinyl, .vinyl-wrap.paused .vinyl { animation-play-state: paused; }
@keyframes vinyl-spin { to { transform: rotate(360deg); } }
.vinyl-grooves {
  position: absolute; inset: 10px; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, transparent 0 3px, rgba(255,255,255,.045) 3px 4px);
  pointer-events: none;
}
.vinyl-label {
  position: relative; width: 52%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #fbe9c0, #eac47c 58%, #cf9f45);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #5b3a00; padding: 8px; box-sizing: border-box;
  box-shadow: inset 0 4px 10px rgba(255,255,255,.55), inset 0 -6px 12px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.4);
}
.vinyl-label::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; border-radius: 50%; background: #3d2a10;
  transform: translate(-50%, -50%); box-shadow: 0 1px 2px rgba(255,255,255,.6);
}
.vinyl-label-cat { font-size: 6.5px; letter-spacing: .42em; font-weight: 800; margin-right: -.42em; opacity: .75; }
.vinyl-label-title { font-size: 11px; font-weight: 900; line-height: 1.25; margin-top: 4px; width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vinyl-label-author { font-size: 7px; letter-spacing: .12em; opacity: .6; margin-top: 3px; }
.vinyl-shadow { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 -16px 28px rgba(0,0,0,.5); pointer-events: none; }

/* 唱臂（纯伪元素，无子节点） */
.turntable-arm {
  position: absolute; right: -26px; top: -6px; z-index: 3;
  width: 96px; height: 66px; transform-origin: 10px 10px;
  transform: rotate(20deg); transition: transform .7s var(--ease-spring);
}
.turntable-arm.on { transform: rotate(-2deg); }
.turntable-arm::before {
  content: ""; position: absolute; left: 8px; top: 8px; width: 88px; height: 5px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 88% 50%, #e8e3d8 0 9px, #b0a284 9.5px 10px, transparent 10.5px),
    linear-gradient(90deg, #5d4c33, #b9a27a);
  background-size: 100% 100%, 100% 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,.45);
}
.turntable-arm::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6c093, #8d7a55);
  box-shadow: 0 3px 8px rgba(0,0,0,.55);
}

/* 听书列表页 */
.listen-page { padding-bottom: calc(30px + var(--safe-b)); }
.listen-hero .lh-title { font-size: 18px; font-weight: 900; letter-spacing: .02em; }
.listen-hero .lh-sub { font-size: 12px; opacity: .72; margin-top: 5px; line-height: 1.6; }
.listen-hero .lh-now { margin-top: 14px; font-size: 12px; color: #fde68a; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.listen-hero .lh-now svg { width: 13px; height: 13px; }
.listen-row {
  display: flex; align-items: center; gap: 13px;
  margin: 0 var(--sp-4) 12px; padding: 12px;
  background: var(--surface); border-radius: 16px;
  border: 1.5px solid transparent;
  transition: all var(--dur-fast) var(--ease);
}
.listen-row.playing {
  border-color: rgba(34,197,94,.55);
  box-shadow: 0 0 0 3px rgba(34,197,94,.10), var(--sh-md);
}
.listen-main { flex: 1; min-width: 0; }
.listen-main b { display: block; font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listen-main span { display: block; font-size: 11.5px; color: var(--ink-400); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listen-main em { font-style: normal; color: var(--gold-600, #b45309); font-weight: 700; }
.listen-play-btn {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--grad-gold, linear-gradient(135deg,#fbbf24,#f59e0b));
  color: #5b3a00; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-gold, 0 8px 24px rgba(245,158,11,.3));
  transition: transform var(--dur-fast) var(--ease-spring);
}
.listen-play-btn:active { transform: scale(.9); }
.listen-play-btn svg { width: 17px; height: 17px; }
.listen-row.playing .listen-play-btn {
  background: rgba(34,197,94,.14); color: var(--green-600, #16a34a);
  box-shadow: none; border: 1.5px solid rgba(34,197,94,.35);
}
.mode-chip-live { color: var(--gold-300, #fcd34d); background: rgba(245,158,11,.13); border-color: rgba(245,158,11,.3); }

/* ============================================================
   播放器补充（第二版结构）
   ============================================================ */
.pc-head-btn { position: relative; }
.pc-head-btn svg { width: 20px; height: 20px; }
.player-title { font-size: var(--fs-20); font-weight: 900; }
.player-sub { font-size: var(--fs-13); opacity: .62; margin-top: 5px; letter-spacing: .04em; }
.player-chapter { font-size: var(--fs-13); opacity: .58; margin-top: 6px; letter-spacing: .03em; }
/* 全屏播放器黑胶放大 + 播放暂停联动 */
.vinyl-big { width: 232px; height: 232px; }
.vinyl-big .vinyl-label { width: 46%; }
.vinyl-big:not(.spinning) { animation-play-state: paused; }
.player-mode-row, .player-speed-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 20px auto 4px; flex-wrap: wrap; position: relative; z-index: 2;
}
.player-mode-row { margin-top: 14px; }
.player-speed-row { margin-top: 6px; }
.player-speed-row .pc-speed-badge { position: static; transform: none; }
.pm-row-btn.on { background: var(--grad-gold); color: #5b3a00; font-weight: 800; border-color: transparent; }
.pm-row-btn:active { transform: scale(.95); }
.pm-row-badge { font-size: 11px; opacity: .75; background: rgba(255,255,255,.1); padding: 1px 7px; border-radius: 999px; }
.pm-row-label { font-size: 11px; opacity: .5; margin-right: 2px; }

/* 播放列表 */
.player-list { margin: 18px var(--sp-5) 0; position: relative; z-index: 2; }
.player-list-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 10px; }
.player-list-head b { color: #fff; font-size: 14px; }
.player-empty-tip { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.4); padding: 26px 0; }
.split-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07);
  transition: opacity var(--dur-fast);
}
.split-list-item:active { opacity: .6; }
.sli-idx {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.07);
}
.split-list-item.on .sli-idx { background: var(--grad-gold); color: #5b3a00; }
.sli-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split-list-item.on .sli-title { color: #fde68a; }
.sli-duration { flex: none; font-size: 11px; color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums; }
.sli-wave { display: flex; align-items: flex-end; gap: 2px; height: 16px; flex: none; width: 20px; }
.sli-wave i {
  width: 3px; border-radius: 2px; background: var(--grad-gold);
  animation: wave-bounce 1s ease-in-out infinite; transform-origin: bottom;
}
.sli-wave i:nth-child(1) { height: 40%; animation-delay: 0s; }
.sli-wave i:nth-child(2) { height: 90%; animation-delay: .18s; }
.sli-wave i:nth-child(3) { height: 60%; animation-delay: .36s; }
@keyframes wave-bounce { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1.05); } }

/* ============================================================
   AI 页（新 Hero 结构）
   ============================================================ */
.ai-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 34px var(--sp-5) 30px; margin: 14px var(--sp-4) 6px;
  border-radius: 22px;
  background: linear-gradient(155deg, #0f3d22 0%, #13603a 52%, #0b2e1c 100%);
}
.ai-hero-glow { position: absolute; pointer-events: none; }
.ai-hero-glow.g1 {
  width: 240px; height: 240px; border-radius: 50%;
  right: -70px; top: -80px;
  background: radial-gradient(circle, rgba(245,158,11,.32), transparent 68%);
  animation: glow-drift 7s var(--ease) infinite alternate;
}
.ai-hero-glow.g2 {
  width: 180px; height: 180px; border-radius: 50%;
  left: -60px; bottom: -70px;
  background: radial-gradient(circle, rgba(34,197,94,.30), transparent 66%);
  animation: glow-drift 9s var(--ease) infinite alternate-reverse;
}
@keyframes glow-drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-14px,10px) scale(1.12); } }
.ai-hero-kicker {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .28em; color: #fde68a;
}
.ai-hero-kicker::before, .ai-hero-kicker::after { content: ""; width: 18px; height: 1px; background: linear-gradient(90deg, transparent, #fbbf24); }
.ai-hero-kicker::after { background: linear-gradient(90deg, #fbbf24, transparent); }
.ai-hero-title { position: relative; font-size: 23px; font-weight: 900; line-height: 1.4; margin-top: 14px; letter-spacing: .02em; }
.ai-hero-title em {
  font-style: normal;
  background: linear-gradient(92deg, #fde68a, #f59e0b 60%, #fbbf24);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ai-hero-sub { position: relative; font-size: 12.5px; line-height: 1.8; opacity: .78; margin-top: 10px; }
.ai-hero-actions { position: relative; display: flex; gap: 10px; margin-top: 20px; }
.ai-hero-actions .btn-gold { flex: 1; height: 46px; }
.btn-ghost-light {
  flex: 1; height: 46px; border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.34); background: rgba(255,255,255,.08);
  color: #fff; font-size: 14px; font-weight: 800;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: all var(--dur-fast);
}
.btn-ghost-light:active { background: rgba(255,255,255,.2); transform: scale(.97); }
.ai-hero-stats {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stat { text-align: center; position: relative; }
.hero-stat + .hero-stat::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 1px; background: rgba(255,255,255,.14);
}
.hero-stat b { display: block; font-size: 19px; font-weight: 900; color: #fde68a; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 11px; opacity: .72; margin-top: 3px; display: block; }

/* AI 主题卡（复用 ai-cat-card 布局，新增图标与箭头） */
.ai-theme-card .collect-ico {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: linear-gradient(145deg, #0f3d22, #166534);
  color: #fde68a; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-sm);
}
.ai-theme-card .collect-ico svg { width: 22px; height: 22px; }
.ai-cat-arrow { flex: none; color: var(--ink-300); transition: transform var(--dur-fast), color var(--dur-fast); }
.ai-cat-card:active .ai-cat-arrow { transform: translateX(3px); color: var(--green-600, #16a34a); }

/* ============================================================
   QA 浮层（详情页 AI 问答）
   ============================================================ */
.qa-panel { position: fixed; inset: 0; z-index: 300; }
.qa-mask {
  position: absolute; inset: 0; background: rgba(10, 20, 14, .46);
  opacity: 0; transition: opacity .28s var(--ease);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.qa-panel.show .qa-mask { opacity: 1; }
.qa-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--surface); border-radius: 24px 24px 0 0;
  display: flex; flex-direction: column;
  height: min(74vh, 660px);
  box-shadow: 0 -16px 50px rgba(0,0,0,.22);
  transform: translateY(105%); transition: transform .34s var(--ease);
}
.qa-panel.show .qa-sheet { transform: translateY(0); }
.qa-head {
  display: flex; align-items: center; gap: 11px;
  padding: 17px var(--sp-5) 13px; flex: none;
  border-bottom: 1px solid var(--line-soft, rgba(231,226,214,.8));
}
.qa-head-info { flex: 1; min-width: 0; }
.qa-head-info b { display: block; font-size: 15.5px; font-weight: 800; }
.qa-head-info span { display: block; font-size: 11.5px; color: var(--ink-400); margin-top: 2px; }
.qa-head-ico {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(150deg, var(--green-600, #16a34a), var(--green-800, #166534));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-sm);
}
.qa-head-ico svg { width: 20px; height: 20px; }
.qa-close {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(127,127,127,.1); color: var(--ink-500);
  display: flex; align-items: center; justify-content: center;
}
.qa-close svg { width: 16px; height: 16px; }
.qa-msgs { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px var(--sp-4); }
.qa-msg { display: flex; gap: 9px; margin-bottom: 14px; align-items: flex-end; }
.qa-msg .qa-avatar {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(150deg, var(--green-600), var(--green-800));
}
.qa-msg .qa-bubble {
  max-width: 78%; padding: 11px 14px; border-radius: 16px;
  border-bottom-left-radius: 5px;
  font-size: 13.5px; line-height: 1.8; color: var(--ink-800);
  background: var(--bg-soft, #f4f7f4); word-break: break-word;
}
.qa-msg.me { flex-direction: row-reverse; }
.qa-msg.me .qa-bubble {
  background: linear-gradient(150deg, var(--green-600, #16a34a), var(--green-700, #15803d));
  color: #fff; border-radius: 16px; border-bottom-right-radius: 5px;
  box-shadow: var(--sh-sm);
}
.qa-msg.me .qa-avatar { background: linear-gradient(150deg, var(--gold-500, #f59e0b), var(--gold-600, #d97706)); }
.qa-msg.typing .qa-bubble { display: flex; align-items: center; gap: 5px; padding: 15px 16px; }
.qa-msg.typing .qa-bubble i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-400); animation: typing-dot 1.2s infinite; }
.qa-msg.typing .qa-bubble i:nth-child(2) { animation-delay: .18s; }
.qa-msg.typing .qa-bubble i:nth-child(3) { animation-delay: .36s; }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.qa-suggest {
  display: flex; gap: 8px; padding: 12px var(--sp-4) 2px;
  overflow-x: auto; flex: none; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.qa-suggest::-webkit-scrollbar { display: none; }
.qa-chip {
  flex: none; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line, rgba(20,83,45,.18));
  background: var(--surface); color: var(--ink-600);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all var(--dur-fast);
}
.qa-chip:active { background: rgba(20,83,45,.08); transform: scale(.96); }
.qa-ta { flex: none; }
.qa-input {
  margin: 10px var(--sp-4) calc(12px + var(--safe-b));
  display: flex; align-items: flex-end; gap: 9px;
  background: var(--bg-soft, #f4f7f4); border-radius: 20px;
  padding: 6px 6px 6px 16px; border: 1.5px solid transparent;
  transition: border-color var(--dur-fast);
}
.qa-input:focus-within { border-color: rgba(34,197,94,.5); background: #fff; }
.qa-input textarea {
  flex: 1; border: 0; background: none; resize: none;
  font-size: 14px; line-height: 1.5; max-height: 96px;
  font-family: inherit; color: var(--ink-800);
  padding: 7px 0; outline: none;
}
.qa-send {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--grad-gold, linear-gradient(135deg,#fbbf24,#f59e0b));
  color: #5b3a00; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-gold, 0 8px 24px rgba(245,158,11,.3));
  transition: transform var(--dur-fast) var(--ease-spring), opacity var(--dur-fast);
}
.qa-send:active { transform: scale(.88); }
.qa-send:disabled { opacity: .45; box-shadow: none; }
.qa-send svg { width: 18px; height: 18px; }

/* ============================================================
   杂项页：分类 · 专题 · 搜索 · 会员 · 邀请 · 关于 · 协议
   ============================================================ */
.cat-block { padding: 4px 0 10px; }
.cat-block + .cat-block { border-top: 8px solid var(--bg-soft, #f4f7f4); }
.cat-block-head { display: flex; align-items: center; gap: 10px; padding: 14px var(--sp-5) 10px; }
.cat-block-ico {
  flex: none; width: 36px; height: 36px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(150deg, var(--green-600), var(--green-800));
  box-shadow: var(--sh-sm);
}
.cat-block:nth-child(3n+2) .cat-block-ico { background: linear-gradient(150deg, var(--gold-500, #f59e0b), var(--gold-600, #d97706)); }
.cat-block:nth-child(3n) .cat-block-ico { background: linear-gradient(150deg, #0ea5e9, #0369a1); }
.cat-block-ico svg { width: 18px; height: 18px; }
.cat-block-head b { flex: 1; font-size: 15px; font-weight: 800; }
.cat-block-count { font-size: 11.5px; color: var(--ink-400); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 var(--sp-5); }
.sub-chip {
  padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--surface); color: var(--ink-600);
  border: 1px solid var(--line, rgba(20,83,45,.18));
  box-shadow: var(--sh-sm);
  transition: all var(--dur-fast);
}
.sub-chip:active { transform: scale(.95); background: rgba(20,83,45,.06); }
.sub-chip.on { background: var(--green-700, #15803d); color: #fff; border-color: transparent; box-shadow: var(--sh-brand); }
.sub-chip-row { display: flex; gap: 9px; padding: 12px var(--sp-4) 4px; overflow-x: auto; scrollbar-width: none; }
.sub-chip-row::-webkit-scrollbar { display: none; }

/* 专题页 Hero */
.topic-hero {
  margin: 14px var(--sp-4) 16px; border-radius: 22px; overflow: hidden;
  padding: 26px var(--sp-5) 22px; color: #fff; position: relative;
  background: linear-gradient(155deg, #7c2d12 0%, #b45309 55%, #92400e 100%);
}
.topic-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(160% 90% at 90% -20%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(120% 80% at -10% 110%, rgba(20,83,45,.35), transparent 60%);
}
.topic-hero-orb {
  position: absolute; right: -42px; top: -46px; width: 130px; height: 130px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 32%, rgba(255,255,255,.5), rgba(255,255,255,.06) 58%, transparent 72%);
}
.topic-hero > * { position: relative; }
.topic-hero .topic-hero-tag {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .2em;
  background: rgba(255,255,255,.16); padding: 4px 11px; border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.topic-hero h2 { font-size: 21px; font-weight: 900; line-height: 1.4; margin: 13px 0 0; font-family: var(--font-serif, serif); letter-spacing: .03em; }
.topic-hero > p { font-size: 12px; line-height: 1.8; opacity: .8; margin-top: 8px; }
.topic-hero-covers { display: flex; align-items: flex-end; margin-top: 18px; }
.topic-hero-covers .book-cover {
  width: 62px; box-shadow: 0 10px 22px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.24); border-radius: 8px;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.topic-hero-covers .book-cover + .book-cover { margin-left: -18px; }
.topic-hero-covers .book-cover:last-child { box-shadow: 0 12px 26px rgba(0,0,0,.42); }
.topic-hero-covers .book-cover:hover { transform: translateY(-4px); }
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 0 var(--sp-4) 6px; }
.topic-grid .book-card { margin: 0; }

/* 搜索页内嵌 */
.search-header {
  position: sticky; top: var(--header-h, 0px); z-index: 30;
  background: var(--app-bg, #f6f4ee); padding: 10px var(--sp-4) 10px;
}
.search-header .s-wrap {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface); border-radius: 14px;
  padding: 4px 6px 4px 14px; box-shadow: var(--sh-sm);
  border: 1.5px solid transparent; transition: border-color var(--dur-fast);
}
.search-header .s-wrap:focus-within { border-color: rgba(34,197,94,.5); }
.search-ico { flex: none; color: var(--ink-400); display: flex; }
.search-ico svg { width: 18px; height: 18px; }
.search-header input {
  flex: 1; min-width: 0; border: 0; background: none;
  font-size: 14.5px; height: 40px; outline: none; font-family: inherit; color: var(--ink-800);
}
.search-clear {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(127,127,127,.12); color: var(--ink-500);
  display: none; align-items: center; justify-content: center;
}
.search-clear.show { display: flex; }
.search-clear svg { width: 14px; height: 14px; }
.search-go {
  flex: none; height: 40px; padding: 0 18px; border-radius: 11px;
  border: 0; background: var(--green-700, #15803d); color: #fff;
  font-size: 14px; font-weight: 800; box-shadow: var(--sh-brand);
  transition: transform var(--dur-fast);
}
.search-go:active { transform: scale(.95); }

/* 设置白卡 */
.list-card {
  margin: 12px var(--sp-4) 0; border-radius: 16px; overflow: hidden;
  background: var(--surface); box-shadow: var(--sh-sm);
}
.list-card:last-child { margin-bottom: 22px; }
.list-card .lc-title { padding: 14px var(--sp-4) 8px; font-size: 12px; font-weight: 800; color: var(--ink-400); letter-spacing: .1em; }

/* 笔记补充结构 */
.note-book-title {
  display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; color: var(--ink-600, #57534e);
}
.note-book-title svg { width: 15px; height: 15px; color: var(--green-600, #16a34a); flex: none; }
.note-book-title span { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; color: var(--ink-400); font-size: 11.5px;
}
.note-del {
  border: 0; background: none; color: var(--red-500, #dc2626);
  font-size: 11.5px; font-weight: 700; display: flex; align-items: center; gap: 3px;
  padding: 4px 8px; border-radius: 8px;
}
.note-del:active { background: rgba(220,38,38,.08); }
.note-del svg { width: 13px; height: 13px; }

/* 会员页三档卡 */
.plan-list { padding: 6px var(--sp-4) 24px; display: flex; flex-direction: column; gap: 13px; }
.plan-card {
  position: relative; border-radius: 20px; padding: 19px 18px 17px;
  background: var(--surface); box-shadow: var(--sh-md);
  border: 1.5px solid transparent; overflow: hidden;
}
.plan-head { display: flex; align-items: center; justify-content: space-between; }
.plan-name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 900; }
.plan-name svg { width: 17px; height: 17px; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin-top: 12px; }
.plan-price em { font-style: normal; font-size: 14px; font-weight: 800; color: var(--ink-400); }
.plan-price span { font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--ink-800); }
.plan-price i { font-style: normal; font-size: 12px; color: var(--ink-400); font-weight: 700; }
.plan-desc { font-size: 12px; color: var(--ink-500); margin-top: 4px; }
.plan-features { margin-top: 13px; display: flex; flex-direction: column; gap: 7px; }
.plan-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-600);
  list-style: none;
}
.plan-features li svg { width: 14px; height: 14px; color: var(--green-600, #16a34a); flex: none; }
.plan-card.hot {
  background: linear-gradient(165deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(245,158,11,.45);
  box-shadow: 0 12px 30px rgba(245,158,11,.16);
}
.plan-card.hot .plan-name { color: var(--gold-700, #b45309); }
.plan-card.hot .plan-price span, .plan-card.hot .plan-price em { color: var(--gold-600, #d97706); }
.plan-hot-tag {
  position: absolute; top: 14px; right: -30px; transform: rotate(38deg);
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  background: linear-gradient(90deg, #f59e0b, #fbbf24); color: #5b3a00;
  padding: 4px 34px; box-shadow: 0 3px 8px rgba(245,158,11,.35);
}
.plan-cta:active { transform: scale(.97); }
.plan-card.hot .plan-cta { background: var(--grad-gold); color: #5b3a00; box-shadow: var(--sh-gold); }
.plan-cta.plain { background: none; border: 1.5px solid var(--green-300, #6ee7b7); color: var(--green-700, #15803d); box-shadow: none; }

/* 邀请页 */
.invite-hero {
  margin: 14px var(--sp-4) 14px; border-radius: 22px; overflow: hidden;
  padding: 26px var(--sp-5) 24px; color: #fff; text-align: center; position: relative;
  background: linear-gradient(160deg, #14532d 0%, #166534 55%, #0f3d22 100%);
}
.invite-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -30%, rgba(245,158,11,.30), transparent 60%),
    radial-gradient(100% 60% at 100% 110%, rgba(255,255,255,.12), transparent 55%);
}
.invite-hero > * { position: relative; }
.invite-hero .invite-hero-gift {
  width: 74px; height: 74px; margin: 0 auto; border-radius: 22px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; color: #fde68a;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.invite-hero .invite-hero-gift svg { width: 38px; height: 38px; }
.invite-hero h2 { font-size: 20px; font-weight: 900; margin: 15px 0 0; }
.invite-hero > p { font-size: 12.5px; line-height: 1.8; opacity: .78; margin-top: 8px; }
.invite-hero .invite-code-card {
  margin: 18px auto 0; width: fit-content; max-width: 92%;
  padding: 10px 14px; border-radius: 13px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
}
.invite-code-card > span { font-size: 11px; font-weight: 600; opacity: .82; white-space: nowrap; }
.invite-code-card > b { font-size: 17px; font-weight: 900; letter-spacing: .16em; color: #fff; font-variant-numeric: tabular-nums; }
.invite-code-card .btn { flex: none; height: 30px; padding: 0 14px; font-size: 12px; border-radius: 999px; }
.invite-hero > .btn { margin-top: 16px; width: 100%; height: 46px; border-radius: 14px; font-size: 14.5px; }
.invite-hero > .btn.btn-primary {
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #5b3a00;
  border: 0; box-shadow: 0 10px 24px rgba(245,158,11,.35);
}
.invite-steps { padding: 22px var(--sp-4) 30px; }
.invite-steps h2 { font-size: 15px; font-weight: 900; padding: 0 4px 12px; }
.i-step { display: flex; align-items: flex-start; gap: 13px; padding: 11px 4px; }
.i-step > span:first-child {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(150deg, var(--green-600), var(--green-800));
  color: #fff; font-size: 12.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.i-step .ist-main { flex: 1; min-width: 0; padding-top: 1px; }
.i-step b { display: block; font-size: 14px; font-weight: 800; }
.i-step p { font-size: 12px; color: var(--ink-500); margin-top: 3px; line-height: 1.6; }
/* R4-P6 合规补充说明（不含时效/提现承诺） */
.invite-note {
  margin: 4px var(--sp-5) 0;
  font-size: 11.5px; line-height: 1.75; color: var(--ink-400);
}

/* 关于页 */
.about-logo {
  width: 76px; height: 76px; margin: 0 auto; border-radius: 24px;
  background: linear-gradient(150deg, var(--green-600, #16a34a), var(--green-800, #166534));
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 14px 34px rgba(22,101,52,.35);
}
.about-logo svg { width: 38px; height: 38px; }
.about-name { font-size: 19px; font-weight: 900; margin-top: 14px; }
.about-ver { font-size: 12px; color: var(--ink-400); margin-top: 4px; }
.about-foot { text-align: center; font-size: 11px; color: var(--ink-300); padding: 26px 20px calc(30px + var(--safe-b)); line-height: 1.7; }

/* 协议/隐私文章 */
.article-sec { padding: 14px var(--sp-5) 30px; }
.article-sec h2 { font-size: 17px; font-weight: 900; margin-top: 26px; margin-bottom: 10px; }
.article-sec h2:first-child { margin-top: 6px; }
.article-sec h3 { font-size: 15.5px; font-weight: 800; margin-top: 22px; margin-bottom: 8px; color: var(--ink-800); }
.article-sec h3:first-child { margin-top: 2px; }
/* 协议页内锚点跳转高亮 */
/* 锚点定位高亮（R4-P5：改为通用规则，供协议页 .article-sec 与设置页 .sec-head/.list-card 共用） */
.anchor-flash {
  background: rgba(245, 158, 11, .12);
  border-radius: var(--r-md);
  transition: background .3s var(--ease);
}
.article-sec p, .article-sec li { font-size: 13.5px; line-height: 1.9; color: var(--ink-600); }
.article-sec ul, .article-sec ol { padding-left: 20px; margin: 10px 0; }

/* ============================================================
   兜底与细节
   ============================================================ */
/* 全局按钮字体继承 */
button, input, textarea, select { font-family: inherit; }
/* 页面底色统一（防止深色/浅色切换露白） */
.page { background: var(--app-bg, #f6f4ee); min-height: 100%; }
/* tabbar 贴角（全面屏安全区） */
.tabbar { padding-bottom: var(--safe-b); }
/* 小屏压字 */
@media (max-width: 360px) {
  .rd-chapter-head h2 { font-size: 21px; }
  .ai-hero-title { font-size: 20px; }
  .brand-name { font-size: 22px; }
  .page-title { font-size: 18px; }
  .banner-title { font-size: 20px; }
  .plan-price span { font-size: 23px; }
  .vinyl-label-title { font-size: 10px; }
}
/* 大屏居中限宽（手机网页版在平板/桌面上的观感兜底） */
@media (min-width: 640px) {
  .rd-page-wrap, .rd-paper { padding-left: var(--sp-6); padding-right: var(--sp-6); }
}

/* ============================================================
   对齐补丁区（JS 真实 DOM 兜底，勿删除）
   ============================================================ */
/* 页面根容器基础层 */
.sub-page, .home-page, .ai-page, .profile-page { min-height: 100%; }

/* 全局控件重置（UA 默认覆盖） */
button { border: 0; background: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus, a:focus { outline: none; }
a { -webkit-tap-highlight-color: transparent; }

/* 阅读器底部：中央金钮（听本章） */
.reader-bottom .rb-main {
  width: 54px; height: 54px; border-radius: 50%; padding: 0; flex: none;
  background: var(--grad-gold, linear-gradient(135deg, #fbbf24, #f59e0b));
  color: #5b3a00; box-shadow: 0 8px 22px rgba(245,158,11,.38);
}
.reader-bottom .rb-main svg { width: 25px; height: 25px; }
.reader-bottom .rb-main:active { transform: scale(.93); }

/* 目录项 button 重置 */
.rd-toc-item { width: 100%; text-align: left; font: inherit; color: inherit; box-sizing: border-box; }

/* reader 抽屉开关：<span class="switch on"><i></i></span> */
.switch.on i { background: var(--green-600); }
.switch.on i::after { transform: translateX(19px); }

/* 按钮描边变体 */
.btn-outline {
  background: none; border: 1.5px solid var(--green-300, #6ee7b7);
  color: var(--green-700, #15803d); box-shadow: none;
}
.btn-outline:active { background: var(--green-50, #f0fdf4); }

/* AI 快读：主题宫格改为 2 列横排卡片（覆盖 components 竖向） */
.ai-theme-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-theme-card {
  flex-direction: row; align-items: center; justify-content: flex-start; gap: 11px;
  min-height: 80px; padding: 14px 12px; text-align: left;
}
.ai-theme-card .ai-cat-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ai-theme-card .ai-cat-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-theme-card .ai-cat-arrow { flex: none; opacity: .75; }

/* QA 面板：快捷问题引导标签 */
.qa-suggest-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: var(--green-700, #15803d); margin: 0 0 8px 2px;
}

/* 会员中心 Hero */
.member-hero {
  margin: 14px var(--sp-4) 6px; border-radius: 22px; overflow: hidden;
  padding: 24px 20px 22px; color: #fff; text-align: center; position: relative;
  background: linear-gradient(160deg, #134e4a 0%, #166534 60%, #14532d 100%);
}
.member-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(255,255,255,.16), transparent 55%),
    radial-gradient(100% 60% at 100% 115%, rgba(245,158,11,.28), transparent 55%);
}
.member-hero > * { position: relative; }
.member-hero-ico {
  width: 60px; height: 60px; margin: 0 auto; border-radius: 19px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2);
  color: #fde68a; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.member-hero-ico svg { width: 30px; height: 30px; }
.member-hero h2 { font-size: 19px; font-weight: 900; margin: 14px 0 0; }
.member-hero p { font-size: 12px; opacity: .82; margin-top: 7px; }

/* 会员权益宫格 */
.member-benefit-card {
  margin: 0 var(--sp-4); padding: 4px 16px 4px;
  background: var(--surface); border-radius: 20px;
  box-shadow: var(--sh-md); border: 1px solid rgba(231,226,214,.6);
}
.m-benefit-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 14px 0 18px;
}
.m-b-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 14px 10px 12px; border-radius: 16px; background: var(--app-bg, #f6f4ee);
}
.m-b-item span {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(145deg, #ecfdf5, #d1fae5); color: var(--green-700, #15803d);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-xs);
}
.m-b-item span svg { width: 21px; height: 21px; }
.m-b-item b { font-size: 13px; font-weight: 800; margin-top: 8px; }
.m-b-item p { font-size: 10.5px; color: var(--ink-500); margin-top: 2px; }

/* 读书笔记列表 */
.notes-list { padding: 4px var(--sp-4) 8px; display: flex; flex-direction: column; gap: 12px; }
.note-card {
  background: var(--surface); border-radius: 18px; padding: 15px 16px 12px;
  box-shadow: var(--sh-sm); border: 1px solid rgba(231,226,214,.6);
}
.note-head { display: flex; align-items: center; justify-content: space-between; }
.note-type {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  color: var(--green-700, #15803d); background: var(--green-50, #f0fdf4);
  padding: 3px 10px; border-radius: 999px;
}
.note-time { font-size: 11px; color: var(--ink-400); }
.note-text { font-size: 13.5px; line-height: 1.75; color: var(--ink-700); margin-top: 10px; }
.note-quote {
  font-size: 12px; line-height: 1.7; color: var(--green-800, #166534);
  background: var(--green-50, #f0fdf4); border-left: 3px solid var(--green-500, #22c55e);
  padding: 8px 11px; border-radius: 0 10px 10px 0; margin-top: 9px;
}
.note-foot {
  display: flex; align-items: center; gap: 9px; margin-top: 12px;
  padding-top: 10px; border-top: 1px solid rgba(231,226,214,.6);
}
.note-book { flex: none; }
.note-book .book-cover { width: 34px; height: 46px; }
.note-book .book-cover span { font-size: 5.5px; padding: 0 1px; }
.note-book-title {
  flex: 1; min-width: 0; font-size: 12px; font-weight: 600; color: var(--ink-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.note-del {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  color: var(--ink-300); display: flex; align-items: center; justify-content: center;
}
.note-del svg { width: 15px; height: 15px; }
.note-del:active { background: rgba(239,68,68,.1); color: #ef4444; }

/* 设置页版本号 */
.settings-version { text-align: center; font-size: 11px; color: var(--ink-300); padding: 20px 0 6px; }

/* 分类页：cat-list 卡片化（覆盖旧列表式 cat-block） */
.cat-list { display: flex; flex-direction: column; gap: 12px; }
.cat-list .cat-block {
  padding: 14px; background: var(--surface); border-radius: 18px;
  box-shadow: var(--sh-sm); border: 1px solid rgba(231,226,214,.6);
}
.cat-list .cat-block + .cat-block { border-top: 1px solid rgba(231,226,214,.6); }
.cat-list .cat-block-head { padding: 0; }
.cat-list .sub-chip-row { padding: 12px 0 0; }

/* 分类子类空结果回退提示（S2-4） */
.cat-fallback-tip {
  display: flex; align-items: center; gap: 7px;
  margin: 2px var(--sp-5) 12px; padding: 10px 14px;
  border-radius: var(--r-md, 14px);
  background: var(--bg-soft, #f1ede3);
  font-size: 12px; color: var(--ink-500);
}
.cat-fallback-tip svg { flex: none; color: var(--gold-500); }

/* 路由渲染失败兜底页（S2-11） */
.page-error { background: var(--bg, #f8f5ef); }
.page-error-body { padding: 64px 26px 0; text-align: center; }
.page-error-body p { font-size: 13px; color: var(--ink-500); line-height: 1.8; }
.page-error-body .btn { margin-top: 24px; }

/* R4-P2：ActionSheet 危险项样式
   （ui.js 一直支持 opts.items[].danger，但原实现写的是恒等空串分支，
     参数形同虚设；此处补上真实样式并把类名接到 is-danger） */
.list-cell.is-danger .list-cell-title { color: var(--danger); }
.list-cell.is-danger .list-cell-main { color: var(--danger); }