/* ================= 小橘学外语 · 全局设计规范 v1 ================= */
/* 色板 A 方案：主色暖橘（呼应「小橘」），绿色降级为完成/成功语义色 */
:root {
  /* 品牌 */
  --brand: #F97316;
  --brand-dark: #EA580C;
  --brand-soft: #FFF3E8;
  --accent: #00B578;          /* 完成/成功强调（原品牌绿） */
  --accent-soft: #E6F7F0;
  /* 语义 */
  --ok: #16A34A;
  --warn: #F59E0B;
  --err: #DC2626;
  /* 中性 */
  --bg: #F6F7F9;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.93);
  --ink: #1F2329;
  --ink-2: #5C6470;
  --ink-3: #9AA0A6;
  --line: #E5E7EB;
  /* 字号（7 档，禁止 0.5px 碎片值） */
  --fs-display: 28px;
  --fs-title: 20px;
  --fs-subtitle: 17px;
  --fs-body: 15px;
  --fs-caption: 13px;
  --fs-micro: 12px;           /* 最低档 */
  /* 间距（4px 基线网格） */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
  /* 圆角（4 档） */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-full: 999px;
  --radius: var(--r-lg);      /* 旧引用兼容 */
  /* 阴影（2 档） */
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-1: 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-2: 0 8px 24px rgba(16, 24, 40, 0.14);
  /* 层级（5 档） */
  --z-nav: 10; --z-sticky: 20; --z-drawer: 50; --z-modal: 70; --z-toast: 90;
  --topbar-h: 60px;
  --bottomnav-h: 58px;
}

/* 夜间模式 */
html[data-theme="dark"] {
  --brand: #FB8C3C;
  --brand-dark: #FF9D57;
  --brand-soft: #3A2717;
  --accent: #2BD98B;
  --accent-soft: #12362A;
  --bg: #10151A;
  --card: #1A222B;
  --glass: rgba(16, 21, 26, 0.93);
  --ink: #E6EDF3;
  --ink-2: #9FB0BD;
  --ink-3: #64757F;
  --line: #273240;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-1: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 10px 28px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] img.video-cover,
html[data-theme="dark"] .cover img { filter: brightness(0.88); }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;   /* 移动端防横向微移（横滑容器负边距等超宽元素兜底） */
  overflow-x: clip;     /* clip 不创建滚动容器，sticky 不受影响；旧内核回退上一行 hidden */
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------------- 抽屉 Logo（顶栏已废弃，样式保留给筛选抽屉） ---------------- */
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; }
.logo-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--line); }
.drawer-logo { display: flex; align-items: center; gap: 8px; }
.drawer-logo .logo-img { width: 28px; height: 28px; }
.logo-text em { color: var(--brand); font-style: normal; }

/* ---------------- 底部导航（H5 · SVG 图标） ---------------- */
.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav);
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: var(--fs-micro); color: var(--ink-3); font-weight: 500;
  transition: color 0.15s;
}
.bottom-nav .bn-icon { display: flex; align-items: center; line-height: 1; }
.bottom-nav .bn-icon svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--brand-dark); font-weight: 600; }
.bottom-nav a:active { opacity: 0.6; }

/* ---------------- 桌面顶部导航（≥901px；移动端隐藏、走底部导航） ---------------- */
.topbar { display: none; }
@media (min-width: 901px) {
  .topbar {
    display: flex; align-items: center; gap: 28px;
    position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
    height: var(--topbar-h); padding: 0 32px;
    background: var(--glass); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  body { padding-top: var(--topbar-h); }
  .top-nav { display: flex; gap: 2px; }
  .top-nav a {
    font-size: 14px; font-weight: 600; color: var(--ink-2);
    padding: 8px 14px; border-radius: 10px; text-decoration: none;
    transition: background .15s, color .15s;
  }
  .top-nav a:hover, .top-nav a.active { background: var(--brand-soft); color: var(--brand-dark); }
  .top-vip {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--brand), #EA580C); color: #fff;
    font-size: 13.5px; font-weight: 700; padding: 8px 18px; border-radius: 999px;
    text-decoration: none; box-shadow: 0 2px 8px rgba(234, 88, 12, .3);
  }
  .top-vip:hover { filter: brightness(1.06); }
}
/* 阅读器全屏层 / 播放态隐藏顶栏 */
body.bk-layer-open .topbar { display: none; }

/* ---------------- 通用 ---------------- */
main { max-width: 1180px; margin: 0 auto; padding: 24px 24px 40px; }

.page-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.page-title svg { color: var(--brand); flex: none; }
.page-sub { color: var(--ink-3); font-size: 14px; margin-bottom: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-md);
  font-size: var(--fs-body); font-weight: 600;
  transition: all 0.15s; -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(0.97); opacity: 0.85; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--brand-soft); color: var(--brand-dark); }
.btn-ghost { background: var(--card); color: var(--ink-2); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.btn-danger { background: #FEE2E2; color: #B91C1C; }
html[data-theme="dark"] .btn-danger { background: rgba(220, 38, 38, 0.16); color: #FCA5A5; }
.btn svg { flex: none; }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); font-size: var(--fs-caption); }
.empty .emoji { font-size: 46px; display: block; margin-bottom: 10px; }
.empty .e-ic { display: flex; justify-content: center; margin-bottom: 12px; color: var(--ink-3); opacity: 0.55; }

/* ---------------- 骨架屏 ---------------- */
.skeleton { position: relative; overflow: hidden; background: var(--line); border-radius: var(--r-sm); }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: skel-shimmer 1.4s infinite;
}
@keyframes skel-shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

/* ---------------- 首页 ---------------- */
.home-hero {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5) 0 var(--sp-5);
  margin-bottom: var(--sp-3);
}
.home-hero h1 { font-size: var(--fs-title); font-weight: 800; letter-spacing: -0.2px; }
.home-hero p { font-size: var(--fs-caption); color: var(--ink-3); margin-top: 2px; }
.home-hero p b { color: var(--brand-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.home-hero .hh-avatar {
  margin-left: auto; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: var(--shadow-1); object-fit: cover; background: var(--line);
}
html[data-theme="dark"] .home-hero .hh-avatar { border-color: var(--card); }

.home-sec { margin-bottom: var(--sp-6); }
.hs-head {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-subtitle); font-weight: 700; margin-bottom: var(--sp-3);
}
.hs-head svg { color: var(--brand); }
.hs-head .hs-more { margin-left: auto; font-size: var(--fs-caption); font-weight: 500; color: var(--ink-3); }

/* 继续看：横滑卡 */
.cont-row {
  display: flex; gap: var(--sp-3); overflow-x: auto;
  padding-bottom: 4px; margin: 0 calc(-1 * var(--sp-1));
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cont-row::-webkit-scrollbar { display: none; }
.cont-card {
  flex: none; width: 172px;
  display: flex; flex-direction: column; gap: 5px;
  border-radius: var(--r-md); transition: transform 0.15s;
}
.cont-card:active { transform: scale(0.97); }
.cont-card .cc-cover {
  position: relative; height: 0; padding-top: 56.25%;
  border-radius: var(--r-md); overflow: hidden; background: var(--line); box-shadow: var(--shadow-1);
}
.cont-card .cc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cont-card .cc-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #F97316, #C2410C);
  display: flex; align-items: center; justify-content: center;
  color: #FFE8D6; font-size: 30px; font-weight: 700;
}
.cont-card .cc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.3); }
.cont-card .cc-bar i { display: block; height: 100%; background: var(--brand); }
.cont-card .cc-play {
  position: absolute; right: 7px; bottom: 9px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cont-card .cc-play svg { width: 13px; height: 13px; fill: currentColor; }
.cont-card b {
  font-size: var(--fs-caption); font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cont-card span { font-size: var(--fs-micro); color: var(--ink-3); font-variant-numeric: tabular-nums; }

.filter-bar {
  display: flex; gap: var(--sp-2); align-items: center;
  margin-bottom: var(--sp-5);
}
.filter-bar .menu-btn { margin-left: -4px; flex: none; }

/* ---------------- 阅读模块顶部双 Tab（推荐 / 书单） ---------------- */
.read-tabs {
  display: flex; gap: 6px; margin-bottom: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 4px;
}
.rt-tab {
  flex: 1; padding: 9px 0; border-radius: 10px;
  font-size: var(--fs-body); font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .15s;
}
.rt-tab .rt-ic { display: flex; align-items: center; }
.rt-tab.on {
  background: var(--brand); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}
.rt-tab:active { opacity: 0.7; }
.feed-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 16px;
}
.search-box {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: var(--sp-2);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 10px 14px;
  transition: border-color 0.15s;
}
.search-box:focus-within { border-color: var(--brand); }
.search-box input { flex: 1; border: none; outline: none; font-size: var(--fs-body); background: transparent; color: var(--ink); }
.search-box .s-icon { color: var(--ink-3); display: flex; }

.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
/* 首页分类行：单行横滑 */
.filter-bar .chips {
  flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 2px 0;
}
.filter-bar .chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 16px; border-radius: var(--r-full);
  background: var(--card); border: 1px solid var(--line);
  font-size: var(--fs-caption); color: var(--ink-2); font-weight: 500;
  transition: all 0.15s; cursor: pointer; -webkit-user-select: none; user-select: none;
}
.chip:active { transform: scale(0.94); opacity: 0.8; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.video-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(28,35,33,.12); }
.video-card .cover { position: relative; height: 0; padding-top: 56.25%; background: #dfe6e2; overflow: hidden; }
.video-card .cover img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s ease; }
.video-card .cover img.loaded { opacity: 1; }
.video-card .cover img.hide { display: none; }
/* 无封面/加载慢：标题首字渐变占位（默认隐藏，400ms 未加载才淡入，避免闪现） */
.video-card .cover-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #F97316, #C2410C);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
}
.video-card .cover.loading .cover-ph { opacity: 1; }
.video-card .cover-ph::after {
  content: attr(data-initial); color: #FFE8D6; font-size: 44px; font-weight: 700;
}
.video-card .duration {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0, 0, 0, 0.6); color: #fff;
  font-size: var(--fs-micro); padding: 2px 8px; border-radius: var(--r-full);
  font-variant-numeric: tabular-nums; backdrop-filter: blur(2px);
}
.video-card .level {
  position: absolute; left: 8px; top: 8px;
  font-size: var(--fs-micro); padding: 2px 10px; border-radius: var(--r-full);
  color: #fff; font-weight: 600; backdrop-filter: blur(2px);
}
.video-card .level.lvl-a { background: rgba(22, 163, 74, 0.92); }   /* 初级 */
.video-card .level.lvl-b { background: rgba(249, 115, 22, 0.92); }  /* 中级 */
.video-card .level.lvl-c { background: rgba(220, 38, 38, 0.92); }   /* 高级 */
.video-card .progress-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25);
}
.video-card .progress-line i { display: block; height: 100%; background: var(--accent); }
.video-card .info { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.video-card h3 { font-size: var(--fs-body); font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-card .intro { font-size: var(--fs-caption); color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.video-card .meta { display: flex; justify-content: space-between; margin-top: var(--sp-2); font-size: var(--fs-micro); color: var(--ink-3); }

/* ---------------- 播放页（沉浸式深色学习界面 · 品牌橘强调） ---------------- */
body.playing .topbar, body.playing .bottom-nav { display: none; }
body.playing #app { padding: 0; max-width: none; margin: 0; }

.player-page {
  /* 播放页局部令牌：暗底上的高亮橘 */
  --p-acc: #FB8C3C;
  --p-acc-dim: rgba(251, 140, 60, 0.16);
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh; background: #10151b; color: #dfe7ee;
  overflow: hidden; position: relative;
}

/* 手机端：把 pp-left「拆开」，各区块直接参与整页排序，防止压缩重叠 */
.pp-left { display: contents; }
.pp-video    { order: 1; flex: none; }
.pp-titlebar { order: 2; flex: none; }
.pp-tools    { order: 3; flex: none; }
.pp-transcript {
  order: 4; flex: 1 1 0; min-height: 0;
  display: flex; flex-direction: column;
}
.pp-controls { order: 5; flex: none; }
/* 手机端面板头：小程序同款小字提示行 */
.pp-thead {
  display: flex; align-items: baseline; gap: 6px;
  padding: 8px 14px 6px; flex: none;
}
.pp-thead h3 { font-size: var(--fs-micro); color: #7c8b99; font-weight: 600; letter-spacing: .5px; }
.pp-thead span { font-size: var(--fs-micro); color: #5d6d7c; }

/* 视频区 */
.pp-video { position: relative; background: #000; }
.pp-video video { width: 100%; display: block; max-height: 36vh; background: #000; }

/* 视频内字幕浮层 */
.sub-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 14px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  text-align: center; pointer-events: none;
  line-height: 1.35;
}
.sub-overlay .en { color: #fff; font-size: clamp(15px, 2.2vw, 20px); font-weight: 600; margin-bottom: 2px; }
.sub-overlay .zh { color: rgba(255,255,255,0.88); font-size: clamp(12px, 1.8vw, 15px); margin-top: 0; }
.sub-overlay .w { pointer-events: auto; color: #FDBA8C; }

/* 标题栏 */
.pp-titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; flex: none;
}
.pp-titlebar .back {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-left: -6px;
  color: #cdd8e4; border-radius: var(--r-full);
  transition: background 0.15s;
}
.pp-titlebar .back:active { background: rgba(255, 255, 255, 0.12); }
.pp-titlebar h2 {
  flex: 1; font-size: var(--fs-body); font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp-titlebar .meta { font-size: var(--fs-micro); color: #7c8b99; white-space: nowrap; }

/* 功能工具栏：药丸按钮（SVG 图标） */
.pp-tools {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 12px; flex: none;
  background: #10151c;
}
.pp-tool {
  flex: none; display: flex; flex-direction: row; align-items: center; gap: 5px;
  padding: 6px 10px; color: #c3cfdc; font-size: var(--fs-micro); font-weight: 500;
  background: #1e2732; border: 1px solid #2e3a49; border-radius: var(--r-full);
  min-width: 0; -webkit-user-select: none; user-select: none;
  transition: all 0.15s;
}
.pp-tool .ic { display: flex; align-items: center; }
.pp-tool.on { color: #fff; background: var(--p-acc); border-color: var(--p-acc); box-shadow: 0 2px 10px rgba(251, 140, 60, 0.35); }
.pp-tool:active { transform: scale(0.94); }

/* 逐句字幕列表：小程序同款圆角卡片 */
.sub-list {
  position: relative;   /* 作为 sub-item 的 offsetParent，保证居中滚动计算正确 */
  flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 16px;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
/* 字幕模式联动：英文/中文/隐藏 时列表对应行隐藏 */
.sub-list.mode-en .sub-item .zh { display: none; }
.sub-list.mode-zh .sub-item .en { display: none; }
.sub-list.mode-off .sub-item .en,
.sub-list.mode-off .sub-item .zh { display: none; }
.sub-item {
  padding: 9px 10px; margin-bottom: 7px; cursor: pointer;
  background: #1a222c; border-radius: var(--r-sm); border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.sub-item .t {
  font-size: var(--fs-micro); color: #5d6d7c; margin-bottom: 4px;
  display: flex; align-items: center; gap: 7px;
  font-variant-numeric: tabular-nums;
}
.sub-item .t .picon { visibility: hidden; color: var(--p-acc); display: flex; align-items: center; }
.sub-item .t .favmark { margin-left: auto; color: #f5b942; visibility: hidden; display: flex; align-items: center; }
.sub-item .en { font-size: 16px; line-height: 1.45; color: #c3cfdc; }
.sub-item .zh { font-size: var(--fs-caption); color: #7c8b99; margin-top: 3px; }
.sub-item.active { background: var(--p-acc-dim); border-color: rgba(251, 140, 60, 0.45); }
.sub-item.active .t .picon { visibility: visible; }
.sub-item.active .en { color: var(--p-acc); font-weight: 600; }
.sub-item.active .zh { color: #a9bac9; }

/* 单词可点击 */
.w { cursor: pointer; border-radius: 4px; padding: 0 1px; transition: background 0.12s; }
.w:hover { background: rgba(251, 140, 60, 0.22); }
.sub-item .w { border-bottom: 1px dashed rgba(251, 140, 60, 0.4); }

/* 底部控制条 */
.pp-controls {
  flex: none; background: #141a21; border-top: 1px solid #1e2630;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom));
}
.pp-progress {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-micro); color: #7c8b99; font-variant-numeric: tabular-nums;
}
.pp-progress input[type=range] {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 2px; background: #2a3542; outline: none;
}
.pp-progress input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--p-acc); cursor: pointer; box-shadow: 0 0 8px rgba(251, 140, 60, 0.6);
}
.pp-progress input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px; border: none; border-radius: 50%;
  background: var(--p-acc); cursor: pointer;
}
.pp-btns {
  display: flex; align-items: center; justify-content: center; gap: 72px; padding-top: 6px;
}
.pp-btns .side {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #aebdc9; font-size: var(--fs-micro); padding: 4px 10px;
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.pp-btns .side:active { background: rgba(255, 255, 255, 0.08); }
.pp-btns .side .ic { display: flex; align-items: center; }
.pp-play {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--p-acc); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(251, 140, 60, 0.4);
  transition: transform 0.12s;
}
.pp-play:active { transform: scale(0.92); }

/* 弹层：倍速 / 字幕模式 */
.pp-pop {
  position: fixed; bottom: 150px; left: 50%; transform: translateX(-50%);
  background: #1c242e; border: 1px solid #2a3542; border-radius: 12px;
  padding: 6px; display: none; z-index: 60;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55); gap: 4px;
}
.pp-pop.open { display: flex; }
.pp-pop button {
  color: #c3cfdc; font-size: var(--fs-caption); padding: 7px 14px; border-radius: var(--r-sm); white-space: nowrap;
  transition: background 0.15s;
}
.pp-pop button:hover { background: #242f3c; }
.pp-pop button.on { background: var(--p-acc); color: #fff; }
/* 字幕模式弹窗：允许换行，画面字幕开关独占一行 */
.pp-pop.mode-pop { flex-wrap: wrap; justify-content: center; max-width: 300px; }
.pp-pop-sep { flex-basis: 100%; height: 1px; background: #2a3542; margin: 2px 4px; }
#ovToggle.off { background: #3a2a2a; color: #9c8f8f; }

.empty.dark { color: #5d6d7c; }

/* ==================== 跟读 / 听写 面板 ==================== */
.drill-panel {
  display: none; position: fixed; inset: auto 0 0 0; z-index: var(--z-modal);
  background: #161d26; border-top: 1px solid #2a3542; border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.55);
  max-height: 70vh; overflow-y: auto;
}
.drill-panel.show { display: block; }
.drill-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.drill-head h3 { font-size: var(--fs-body); font-weight: 600; color: #e8eef5; flex: 1; display: flex; align-items: center; gap: 7px; }
.drill-head .dh-ic { display: flex; align-items: center; color: var(--p-acc); }
.drill-stat { font-size: var(--fs-micro); color: #7c8b99; background: #1e2732; border-radius: var(--r-full); padding: 3px 10px; font-variant-numeric: tabular-nums; }
.drill-close { display: flex; align-items: center; gap: 4px; color: #c3907f; font-size: var(--fs-caption); padding: 6px 12px; border-radius: var(--r-full); background: #2a2226; transition: background 0.15s; }
.drill-close:active { background: #3a2a2e; }
.drill-sent {
  font-size: 16px; line-height: 1.5; color: #dce6f2; background: #1c242e;
  border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 8px;
}
.drill-hint { font-size: var(--fs-micro); color: #5d6d7c; margin-bottom: 10px; }
.drill-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.drill-btn {
  display: inline-flex; align-items: center; gap: 5px;
  color: #c3cfdc; font-size: var(--fs-caption); padding: 9px 14px; border-radius: var(--r-full);
  background: #232d3a; border: 1px solid #2e3a49; min-height: 38px;
  transition: transform 0.12s, background 0.15s;
}
.drill-btn .db-ic { display: flex; align-items: center; }
.drill-btn:active { transform: scale(0.96); }
.drill-btn:disabled { opacity: 0.45; }
.drill-btn.primary { background: var(--p-acc); color: #fff; border-color: var(--p-acc); box-shadow: 0 2px 10px rgba(251, 140, 60, 0.3); }
.drill-btn.small { font-size: var(--fs-micro); padding: 6px 12px; min-height: 30px; }
.drill-btn.rec { background: #e5484d; color: #fff; border-color: #e5484d; animation: recPulse 1s infinite; }
@keyframes recPulse { 50% { opacity: 0.7; } }
.drill-btn:disabled { opacity: 0.4; }
.drill-panel audio { width: 100%; margin-top: 8px; }

/* 听写输入与结果 */
.dict-input {
  width: 100%; box-sizing: border-box; font-size: 15px; line-height: 1.5; color: #e8eef5;
  background: #10151c; border: 1px solid #2a3542; border-radius: 10px; padding: 10px 12px;
  resize: vertical; font-family: inherit;
}
.dict-input:focus { outline: none; border-color: var(--p-acc); }
.dict-result { margin-top: 10px; }
.dict-result .dim { color: #5d6d7c; font-size: 12.5px; }
.dict-score { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: #e8eef5; margin-bottom: 8px; }
.dict-score svg { color: #f9b572; flex: none; }
.dict-words { font-size: 15.5px; line-height: 2; color: #c3cfdc; margin-bottom: 6px; }
.dict-words .dw-ok { color: #4cd97b; }
.dict-words .dw-bad { color: #ff7a85; border-bottom: 1px dashed #ff7a85; }
.dict-words .dw-miss { color: #5d6d7c; }
.dict-words .dw-bad i, .dict-words .dw-miss i {
  font-style: normal; font-size: 11px; color: #8b7a7a; background: #241d20;
  border-radius: 6px; padding: 1px 5px; margin-left: 3px; vertical-align: middle;
}
.dict-zh { font-size: 13px; color: #7c8b99; margin-bottom: 8px; }

/* 听写模式：字幕列表打码防偷看 */
body.dictating .sub-list .en,
body.dictating .sub-list .zh { filter: blur(7px); user-select: none; pointer-events: none; }

/* ---------------- 平板 ≥600px ---------------- */
@media (min-width: 600px) {
  .pp-video video { max-height: 46vh; }
  .sub-item .en { font-size: 17.5px; }
  .sub-item { padding-left: 12px; padding-right: 14px; }
}

/* ---------------- 桌面端 ≥960px：左视频右字幕双栏 ---------------- */
@media (min-width: 960px) {
  .player-page { flex-direction: row; }
  .pp-left {
    display: flex; flex-direction: column; flex: 1;
    min-height: 0; min-width: 0; overflow: hidden;
  }
  /* 取消手机端的 display:contents 与 order 排序，恢复文档流 */
  .pp-video, .pp-titlebar, .pp-tools, .pp-transcript, .pp-controls { order: 0; }
  .pp-video { flex: none; }
  .pp-video video { max-height: 54vh; width: 100%; }
  .pp-titlebar { padding: 14px 22px; }
  .pp-titlebar h2 { font-size: 18px; }
  .pp-tools { max-width: 760px; margin: 0 22px; background: transparent; padding-left: 0; padding-right: 0; }
  .pp-tool { border-radius: 12px; }
  .pp-controls {
    max-width: 760px; margin: 14px 22px 0; border: 1px solid #1e2630; border-radius: 14px;
  }
  .pp-transcript {
    width: 430px; flex: none; display: flex; flex-direction: column;
    border-left: 1px solid #1e2630; background: #12181f;
  }
  .pp-thead {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 16px 20px 10px; border-bottom: 1px solid #1e2630; flex: none;
  }
  .pp-thead h3 { font-size: 15px; color: #fff; }
  .pp-thead span { font-size: 12px; color: #5d6d7c; }
  .pp-pop { bottom: auto; top: 50%; transform: translate(-50%, -50%); }
}

/* ---------------- 词典弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 21, 18, 0.5);
  display: none; align-items: flex-end; justify-content: center;
}
.modal-mask.show { display: flex; }
.modal-card {
  background: var(--card); width: 100%; max-width: 440px;
  border-radius: 20px 20px 0 0; padding: 24px 22px calc(20px + env(safe-area-inset-bottom));
  position: relative; animation: slideUp 0.22s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; right: 14px; top: 10px;
  font-size: 24px; color: var(--ink-3); line-height: 1;
}
.dict-body .dw { font-size: 26px; font-weight: 700; }
.dict-body .dp { color: var(--ink-3); font-size: 14px; margin-left: 8px; }
.dict-body .dpos {
  display: inline-block; font-size: 12px; color: var(--brand-dark);
  background: var(--brand-soft); border-radius: 6px; padding: 1px 8px; margin: 10px 0 4px;
}
.dict-body .dzh { font-size: 16px; }
.dict-body .dsrc { font-size: 12px; color: var(--ink-3); margin-top: 12px; line-height: 1.7; }
.dict-body .dloading { color: var(--ink-3); font-size: 14px; padding: 10px 0; }
#dictAddBtn { width: 100%; margin-top: 18px; }
#dictAddBtn.added { background: var(--ink-3); }

/* ---------------- 生词本 / 收藏页 ---------------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 14px 6px; text-align: center; box-shadow: var(--shadow); }
.stat-card b i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.stat-card b { font-size: 26px; color: var(--brand-dark); display: block; }
.stat-card span { font-size: 12.5px; color: var(--ink-3); }

.list-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; margin-bottom: 12px;
  display: flex; align-items: flex-start; gap: 14px;
}
.list-card .grow { flex: 1; min-width: 0; }
.list-card .w-main { font-size: 18px; font-weight: 700; }
.list-card .w-sub { font-size: 12.5px; color: var(--ink-3); margin-left: 8px; font-weight: 400; }
.list-card .w-zh { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.list-card .s-en { font-size: 14.5px; }
.list-card .s-zh { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.list-card .s-src { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.list-card .ops { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.list-card .del { color: var(--ink-3); font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.list-card .del:hover { color: #e5484d; background: #fdecec; }
.note-input {
  width: 100%; margin-top: 8px; font-family: inherit;
  border: 1px dashed var(--line); border-radius: 8px;
  padding: 6px 10px; font-size: 13px; color: var(--ink-2); outline: none;
}
.note-input:focus { border-color: var(--brand); }

/* ---------------- Toast（分级：中性/成功/错误） ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  display: flex; align-items: center; gap: 8px;
  background: rgba(31, 35, 41, 0.94); color: #fff;
  font-size: var(--fs-body); padding: 10px 20px; border-radius: var(--r-full);
  opacity: 0; pointer-events: none; transition: all 0.25s; z-index: var(--z-toast);
  max-width: 86vw; box-shadow: var(--shadow-2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { flex: none; width: 16px; height: 16px; }
.toast.t-ok { background: rgba(22, 163, 74, 0.96); }
.toast.t-err { background: rgba(220, 38, 38, 0.96); }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 响应式：移动端 H5 ---------------- */
@media (max-width: 900px) {
  .topbar { padding: 0 16px; height: var(--topbar-h); }
  .top-nav, .top-stats { display: none; }
  .bottom-nav { display: flex; }

  main { padding: 14px 14px calc(var(--bottomnav-h) + env(safe-area-inset-bottom) + 24px); }

  .home-hero { padding: var(--sp-4) 0 var(--sp-4); }
  .home-hero h1 { font-size: var(--fs-subtitle); }
  .cont-card { width: 152px; }

  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .video-card .intro { display: none; }
  .video-card .info { padding: 9px 10px 11px; }
  .video-card h3 { font-size: var(--fs-caption); }
  .sub-panel { min-height: auto; }
  .video-meta { padding: 12px 14px 16px; }

  .stat-row { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .stat-card { padding: 11px 4px; }
  .stat-card b { font-size: 19px; }
  .stat-card span { font-size: 11px; }

  .filter-bar { gap: 8px; flex-wrap: wrap; }
  .search-box { min-width: 100%; order: 2; }

  .toast { bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom) + 20px); }
}

@media (min-width: 901px) {
  .modal-mask { align-items: center; }
  .modal-card { border-radius: 20px; padding: 26px; }
}

/* ---------------- 长标题跑马灯（仅超宽时滚动） ---------------- */
.mq { overflow: hidden; white-space: nowrap; text-overflow: clip; }
.mq > span { display: inline-block; max-width: none; will-change: transform; }
.mq.mq-on:hover > span { animation-play-state: paused; }   /* 悬停暂停，方便阅读 */
.mq.mq-on > span {
  animation: mq-scroll var(--mq-dur, 8s) linear infinite alternate;
}
@keyframes mq-scroll {
  0%, 12%   { transform: translateX(0); }
  88%, 100% { transform: translateX(var(--mq-dist, -40px)); }
}
@media (prefers-reduced-motion: reduce) {
  .mq.mq-on > span { animation: none; }
}

/* ---------------- 复习模式（艾宾浩斯卡片） ---------------- */
.review-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #fff, var(--brand-soft));
  border: 1px solid var(--brand); border-radius: 14px;
  padding: 14px 16px; margin: 14px 0;
}
.review-banner.done { border-color: var(--line); background: var(--bg-2, #f7f8fa); }
.rb-info { flex: 1; min-width: 0; }
.rb-t { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink-1); }
.rb-t svg { color: var(--brand); flex: none; }
.review-banner.done .rb-t svg { color: var(--ok); }
.rb-s { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 44px 20px 36px; text-align: center; margin: 16px 0;
  cursor: pointer; user-select: none;
}
.rc-word { font-size: 34px; font-weight: 700; color: var(--ink-1); word-break: break-all; }
.rc-phon { color: var(--ink-3); margin-top: 6px; font-size: 15px; }
.rc-zh { margin-top: 18px; font-size: 15px; color: var(--ink-2); min-height: 22px; line-height: 1.7; }
.rc-zh:empty::after { content: "点击卡片查看释义"; font-size: 12px; color: var(--ink-3); }
.rc-src { margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.review-btns { display: flex; gap: 12px; }
.review-btns .btn { flex: 1; padding: 14px 0; font-size: 15px; }

/* 词条弹窗：考纲标签与原形提示 */
.dtags { display: flex; gap: 6px; margin: 8px 0 2px; flex-wrap: wrap; }
.dtags span {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark, #2563eb);
}
.dlemma { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

/* ---------------- 阅读模块：文章流 + 阅读器 ---------------- */
.art-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
  transition: box-shadow .15s, transform .15s;
}
.art-card:active { transform: scale(.985); }
.art-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.art-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.art-topic { color: var(--brand-dark, #2563eb); background: var(--brand-soft); padding: 1px 8px; border-radius: 999px; }
.art-title { font-size: 16.5px; font-weight: 700; color: var(--ink-1); line-height: 1.45; }
.art-title-en { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.art-teaser { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-meta { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

.art-reader { max-width: 720px; }
.ar-back { font-size: var(--fs-caption); margin-bottom: 10px; }
.ar-back a { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-3); text-decoration: none; padding: 4px 8px 4px 4px; margin-left: -4px; border-radius: var(--r-full); transition: background .15s; }
.ar-back a:active { background: var(--line); }
.ar-title { font-size: 22px; font-weight: 800; color: var(--ink-1); line-height: 1.4; margin-top: 4px; }
.ar-title-en { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.ar-info { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ink-3); margin: 12px 0; }
.ar-info span { background: var(--bg-2, #f4f5f7); padding: 3px 10px; border-radius: 999px; }
.ar-cover-img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; margin: 4px 0 6px; }
.ar-cc { font-size: var(--fs-micro); color: var(--ink-3); line-height: 1.7; background: var(--bg-2, #f4f5f7); border-radius: 10px; padding: 10px 12px; margin: -6px 0 16px; }
.ar-cc a { color: var(--brand); text-decoration: none; word-break: break-all; }
.ar-cc-lic { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-weight: 700; margin-right: 6px; color: var(--ink-2); }
.ar-mode { margin-bottom: 16px; }
.ar-para { margin-bottom: 18px; }
.ar-en { font-size: 16.5px; line-height: 1.9; color: var(--ink-1); }
.ar-en .w { cursor: pointer; border-radius: 3px; padding: 0 1px; }
.ar-en .w:hover { background: var(--brand-soft); }
.ar-zh { font-size: 14.5px; line-height: 1.8; color: var(--ink-3); margin-top: 6px; }
.ar-vocab { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 22px 0; }
.ar-vocab-t { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.ar-vocab-t .avt-ic { display: flex; align-items: center; color: var(--brand); }
.vocab-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.vocab-row:last-child { border-bottom: none; }
.vocab-add { flex: none; border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand-dark, #2563eb);
  border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.ar-foot { text-align: center; font-size: 13px; color: var(--ink-3); padding: 18px 0 8px; }
.ar-foot a { color: var(--brand-dark, #2563eb); }

/* ---------------- 阅读模块：AI 讲解 + 问答 ---------------- */
.ar-hint { font-size: var(--fs-micro); color: var(--ink-3); text-align: center; margin: -6px 0 14px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.ar-hint svg { color: var(--warn); flex: none; }
.ar-en .sent { border-bottom: 1px dashed rgba(0,0,0,.14); padding-bottom: 1px; }

/* 视频转阅读的文章跳转条 */
.ar-from-video { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brand-dark); background: var(--brand-soft);
  border-radius: 10px; padding: 8px 12px; margin: 8px 0 10px; text-decoration: none; line-height: 1.6; }
.ar-from-video:active { opacity: .8; }
.art-from-video { color: var(--brand-dark); font-weight: 700; font-size: 12px; margin-right: 6px; }
.art-exam { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); font-size: 12px; font-weight: 700; margin-right: 6px; }
.art-exam svg { color: var(--accent); }
.art-read-flag { font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 6px; margin-left: 6px; font-weight: 400; vertical-align: 2px; }

/* ---------------- 文章卡片 v2（来源标签 + 双标题 + 渐变封面 + 日期分组） ---------------- */
.feed-bar { margin-bottom: var(--sp-2); }
.feed-stat {
  display: flex; align-items: center; gap: 5px;
  font-size: var(--fs-micro); color: var(--ink-3);
  margin: 0 2px var(--sp-3);
}
.feed-stat svg { color: var(--brand); flex: none; }
.feed-stat b { color: var(--brand-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.feed-stat a { color: var(--brand-dark); }
.search-box .s-clear { display: flex; align-items: center; color: var(--ink-3); padding: 2px; border-radius: 50%; }
.search-box .s-clear:active { background: var(--line); }

.read-skeleton { padding: var(--sp-2) 0; }
.read-skeleton .rs-row { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.read-skeleton .rs-cov { flex: none; width: 60px; height: 60px; border-radius: var(--r-md); }
.read-skeleton .rs-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.read-skeleton .rs-l1 { height: 14px; width: 92%; }
.read-skeleton .rs-l2 { height: 12px; width: 70%; }
.read-skeleton .rs-l3 { height: 12px; width: 45%; }
.read-skeleton .rs-title { height: 24px; width: 60%; margin-bottom: var(--sp-3); }
.read-skeleton .sk-para { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--sp-4); }

.art-group { margin-bottom: 6px; }
.art-group-h { font-size: var(--fs-micro); font-weight: 700; color: var(--ink-2); margin: var(--sp-3) 2px 6px; letter-spacing: .3px; }
.art-group-h b { color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.art-card2 {
  display: flex; align-items: stretch; gap: 10px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-3); margin-bottom: var(--sp-2); box-shadow: var(--shadow-1);
  transition: transform 0.15s;
}
.art-card2:active { transform: scale(0.985); opacity: .9; }
.ac2-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ac2-src { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-dark); background: var(--brand-soft); border-radius: var(--r-full); padding: 1.5px 8px; font-weight: 600; font-size: var(--fs-micro); }
.ac2-src svg { flex: none; }
.ac2-src i { font-style: normal; }
.ac2-topic { color: var(--ink-3); background: var(--bg); border-radius: var(--r-full); padding: 1.5px 7px; }
.ac2-title-en { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac2-title-zh { font-size: var(--fs-micro); color: var(--ink-3); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac2-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-micro); color: var(--ink-3); margin-top: auto; }
.ac2-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.ac2-level { color: #fff; border-radius: 6px; padding: 1px 7px; font-weight: 600; font-size: var(--fs-micro); }
.ac2-level.lvl-a { background: var(--ok); }
.ac2-level.lvl-b { background: var(--brand); }
.ac2-level.lvl-c { background: var(--err); }
.ac2-time svg { opacity: .7; }
.ac2-read { color: var(--ok); font-weight: 600; }
.ac2-read svg { color: var(--ok); }
.ac2-cover { flex: none; width: 60px; height: 60px; align-self: center; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.ac2-tic { color: rgba(255, 255, 255, 0.92); filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); display: flex; }
.ac2-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.ac2-cover img.ok { opacity: 1; }
/* ---------------- 列表模式（紧凑单行） ---------------- */
.art-row {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 8px var(--sp-3); margin-bottom: 6px;
}
.art-row:active { opacity: .85; }
.ar-cover { flex: none; width: 36px; height: 36px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.ar-cover .ac2-tic svg { width: 16px; height: 16px; }
.ar-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.ar-cover img.ok { opacity: 1; }
.ar-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-title { font-size: var(--fs-caption); font-weight: 600; color: var(--ink); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-row.is-read .ar-title { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.ar-meta { display: flex; align-items: center; gap: 5px; font-size: var(--fs-micro); color: var(--ink-3); }
/* 已读：整卡置灰 */
.art-card2.is-read { opacity: .55; }
.art-card2.is-read .ac2-title-en { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); text-decoration-thickness: 1px; }
html[data-theme="dark"] .art-card2.is-read .ac2-title-en { text-decoration-color: rgba(255,255,255,.3); }
html[data-theme="dark"] .ac2-topic { background: #232a31; }

/* ---------------- 首页「今日阅读」推荐卡 ---------------- */
.home-read { margin: 14px 0 4px; }
.hr-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; padding: 0 2px; }
.hr-head b { font-size: 16px; color: var(--ink); }
.hr-head a { font-size: 13px; color: var(--ink-3); text-decoration: none; }
.hr-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.hr-scroll::-webkit-scrollbar { display: none; }
.hr-card {
  flex: 0 0 168px; scroll-snap-align: start; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
}
.hr-topic { font-size: 11px; color: var(--brand-dark); font-weight: 700; }
.hr-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.hr-meta { font-size: 11px; color: var(--ink-3); margin-top: auto; }

/* ---------------- 英文书城 ---------------- */
.bk-bar { display: flex; justify-content: space-between; align-items: center; }
.bk-shelf { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 14px 0; }
.bk-shelf-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; text-decoration: none; border-bottom: 1px dashed var(--line); }
.bk-shelf-row:last-child { border-bottom: none; }
.bk-shelf-row b { color: var(--ink); font-size: 14.5px; }
.bk-shelf-row .mr-arrow { color: var(--brand-dark); font-size: 13px; white-space: nowrap; }
.bk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bk-card { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-decoration: none; box-shadow: var(--shadow); }
.bk-cover { flex: none; width: 52px; height: 72px; border-radius: 8px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex; align-items: center; justify-content: center; }
.bk-cover span { color: #fff; font-size: 22px; font-weight: 700; }
.bk-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bk-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.bk-author { font-size: 12px; color: var(--ink-2); }
.bk-meta { font-size: 11px; color: var(--ink-3); }
.bk-intro { font-size: 14px; line-height: 1.8; color: var(--ink-2); margin: 14px 0; }
.bk-toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; margin: 18px 0; }
.bk-toc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; text-decoration: none; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
.bk-toc-row.cur { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.bk-toc-row .toc-n { flex: none; width: 26px; text-align: right; color: var(--ink-3); font-size: 12px; }
.bk-toc-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-body { margin-top: 8px; }
.bk-nav { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }
.bk-done { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-caption); color: var(--accent); font-weight: 700; }

/* ---------------- 书城首页 v2（轮播+宫格+筛选列表） ---------------- */
.bs-page { max-width: 720px; }
/* 封面堆叠轮播（仿扇贝） */
.bs-carousel { position: relative; margin-bottom: 14px; padding: 16px 0 12px;
  background: var(--card, #F7F7F5); border-radius: 22px; overflow: hidden; }
.bs-carousel-badge { position: absolute; top: 12px; left: 12px; z-index: 30;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 2px;
  color: #fff; background: linear-gradient(135deg, #FF8A3D, #F5642D);
  box-shadow: 0 3px 8px rgba(245, 100, 45, .35); }
.bs-stage { position: relative; height: 240px; }
.bs-slide { position: absolute; left: 50%; top: 0; width: 168px; height: 240px; margin-left: -84px;
  border-radius: 12px; overflow: hidden; text-decoration: none; display: block;
  background: linear-gradient(150deg, #F97316, #C2410C);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: transform .45s cubic-bezier(.25,.8,.35,1), opacity .45s ease, filter .45s ease; }
.bs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.bs-slide img.ok { opacity: 1; }
.bs-slide .bs-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 44px; font-weight: 800; z-index: -1; }
.bs-slide[data-pos="0"] { transform: translateX(0) scale(1); opacity: 1; filter: none; }
.bs-slide[data-pos="1"] { transform: translateX(66%) scale(.8); opacity: .95; filter: brightness(.82); }
.bs-slide[data-pos="-1"] { transform: translateX(-66%) scale(.8); opacity: .95; filter: brightness(.82); }
.bs-slide[data-pos="2"] { transform: translateX(104%) scale(.64); opacity: .75; filter: brightness(.68); }
.bs-slide[data-pos="-2"] { transform: translateX(-104%) scale(.64); opacity: .75; filter: brightness(.68); }
.bs-slide[data-pos="3"], .bs-slide[data-pos="-3"] { transform: translateX(0) scale(.5); opacity: 0; pointer-events: none; }
.bs-slide-info { text-align: center; padding: 8px 20px 2px; }
.bs-slide-en { font-family: Georgia, serif; font-style: italic; font-size: 15px; color: var(--ink-2); margin-bottom: 2px; }
.bs-slide-t { font-size: 19px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.bs-slide-meta { font-size: 13px; color: var(--ink-3); }
.bs-slide-meta i { font-style: normal; margin: 0 8px; color: var(--line); }
.bs-slide-arrow { position: absolute; top: 105px; z-index: 20; width: 34px; height: 34px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-3); font-size: 17px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bs-slide-arrow.l { left: 12px; } .bs-slide-arrow.r { right: 12px; }
/* 分类宫格（彩色圆角块） */
.bs-grid { display: flex; gap: 10px; margin-bottom: 16px; overflow-x: auto; padding: 2px; }
.bs-grid::-webkit-scrollbar { display: none; }
.bs-cat { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 74px; height: 74px; border-radius: 16px; text-decoration: none;
  font-size: var(--fs-micro); color: var(--ink-2); border: 1px solid transparent;
  transition: transform 0.12s; }
.bs-cat:active { transform: scale(0.93); }
.bs-cat span { font-size: 24px; }
.bs-cat .bc-ic { display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.bs-cat.on .bc-ic { color: var(--brand-dark); }
.bs-cat.c0 { background: #E4F0E4; } .bs-cat.c1 { background: #E4F0E4; }
.bs-cat.c2 { background: #DFE9F5; } .bs-cat.c3 { background: #F7EFD8; }
.bs-cat.c4 { background: #EAE4F5; } .bs-cat.c5 { background: #F5E4D8; }
.bs-cat.on { border-color: var(--brand); color: var(--brand-dark); font-weight: 700; }
.bs-shelf { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 14px 0; }
.bs-shelf-stat { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.bs-shelf-empty { display: block; text-align: center; padding: 18px 0 12px; text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.7; }
.bs-shelf-empty .emoji { font-size: 26px; }
.bs-shelf-empty .bk-meta { font-weight: 400; font-size: 12.5px; }

/* 首页书架入口卡 */
.bs-shelf-entry { display: block; text-decoration: none; color: var(--ink); }
.bs-shelf-head { display: flex; align-items: center; justify-content: space-between; }
.bs-shelf-entry .mr-arrow { color: var(--brand-dark); font-size: 13px; }
.bs-shelf-covers { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; }
.bse-cover { flex: none; width: 52px; height: 72px; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #f6e3c5, #e8c497); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #b8860b; box-shadow: 0 2px 6px rgba(0,0,0,.14); position: relative; }
.bse-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.bse-cover img.ok { opacity: 1; }
.bse-cover img.ok + span { opacity: 0; }
.bse-ring { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.35); }
.bse-ring::after { content: ""; display: block; height: 100%; width: var(--p, 0)%; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); }
.bse-more { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.bs-shelf-last { font-size: 12.5px; color: var(--brand-dark); font-weight: 600; }

/* 独立书架页 */
.shf-page { padding-bottom: 20px; }
.shf-sorts { display: flex; gap: 6px; }
.shf-sorts .dchip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; font-size: var(--fs-micro); border-radius: var(--r-full); }
.shf-sorts .dchip .sc-ic { display: flex; align-items: center; }
.shf-title { margin: 12px 2px 2px; font-size: 21px; font-weight: 800; color: var(--ink); }
.shf-stat { font-size: 13px; color: var(--ink-3); margin: 4px 2px 14px; }
.shf-stat b { color: var(--ink); font-weight: 700; }
.shf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; }
.shf-item { position: relative; display: flex; flex-direction: column; }
.shf-cover { position: relative; display: block; height: 0; padding-top: 150%; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #f6e3c5, #e8c497); box-shadow: 0 3px 10px rgba(0,0,0,.15); text-decoration: none; }
.shf-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s, transform .3s; }
.shf-cover img.ok { opacity: 1; }
.shf-cover img.ok + .shf-fb { opacity: 0; }
.shf-cover:hover img.ok { transform: scale(1.04); }
.shf-fb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: #b8860b; transition: opacity .3s; }
.shf-done { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-micro); color: #fff; background: rgba(22,163,74,.9); border-radius: var(--r-full); padding: 2px 8px; font-weight: 700; letter-spacing: .5px; }
.shf-play { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.shf-play svg { fill: currentColor; }
@media (hover: none) { .shf-play { opacity: 1; } }
.shf-cover:hover .shf-play { opacity: 1; }
.shf-t { text-decoration: none; margin-top: 7px; }
.shf-t b { display: block; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shf-meta { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.shf-bar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 5px; overflow: hidden; }
.shf-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); }
.shf-pct { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.shf-item.is-done .shf-pct { color: #2e7d32; font-weight: 600; }
.shf-item.is-done .shf-bar i { background: #43a047; }
.shf-del { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: none; border-radius: 50%; background: rgba(0,0,0,.4); color: rgba(255,255,255,.9); cursor: pointer; opacity: 0; transition: opacity .2s, background .2s, transform .12s; z-index: 2; display: flex; align-items: center; justify-content: center; }
.shf-del:active { transform: scale(0.88); }
.shf-item:hover .shf-del { opacity: 1; }
.shf-del:hover { background: rgba(198,40,40,.9); color: #fff; }
@media (hover: none) { .shf-del { opacity: .6; } .shf-del:active { opacity: 1; } }   /* 触屏设备半透明常显 */
.bs-sec-t { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.bs-flt { margin: 14px 0 10px; }
.bs-flt-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.bs-flt-lab { flex: none; font-size: 12px; color: var(--ink-3); width: 34px; }
.bs-chip { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-full);
  padding: 4px 12px; font-size: var(--fs-micro); color: var(--ink-2); cursor: pointer;
  transition: transform 0.12s; -webkit-user-select: none; user-select: none; }
.bs-chip:active { transform: scale(0.94); }
.bs-chip.on { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand); font-weight: 700; }
.bs-list { display: flex; flex-direction: column; gap: 12px; }
.bs-item { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; text-decoration: none; box-shadow: var(--shadow); }
.bs-cover { flex: none; width: 86px; height: 120px; border-radius: 8px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #F97316, #C2410C); display: flex; align-items: center; justify-content: center; }
.bs-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.bs-cover img.ok { opacity: 1; }
.bs-cover img.ok + span { opacity: 0; }
.bs-cover span { transition: opacity .3s; }
.bs-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bs-title { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.bs-title-en { font-size: 11.5px; color: var(--ink-3); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-author { font-size: 12px; color: var(--ink-3); }
.bs-meta { display: flex; align-items: center; gap: 3px; font-size: var(--fs-micro); color: var(--ink-3); }
.bs-meta svg { color: var(--brand); flex: none; }
.bs-intro { font-size: 11.5px; color: var(--ink-2); line-height: 1.6; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bs-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.bs-cat2 { font-size: 10.5px; color: var(--ink-3); background: var(--bg, #f2f4f3); border-radius: 999px; padding: 2px 8px; }
.bs-add { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand-dark);
  border-radius: var(--r-full); font-size: var(--fs-micro); font-weight: 700; padding: 5px 12px; min-height: 26px; cursor: pointer;
  transition: transform 0.12s; }
.bs-add:active { transform: scale(0.94); }
.bs-shelved { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-micro); color: var(--ok); font-weight: 700; }
.bs-shelved svg { color: var(--ok); }
.bs-vip { display: flex; align-items: center; gap: 12px; margin: 20px 0 10px; padding: 14px 16px;
  background: linear-gradient(135deg, #2C2E38, #3A3D4A); border-radius: 14px; }
.bs-vip-t { flex: 1; display: flex; align-items: center; gap: 6px; font-size: var(--fs-caption); font-weight: 700; color: #F3D9A4; }
.bs-vip-t svg { flex: none; color: #F3D9A4; }
.bs-vip-btn { flex: none; border: none; background: linear-gradient(135deg, #F3D9A4, #E8C37E); color: #7A5A2E;
  font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
/* 详情页深色蓝灰皮肤（高亮暖橘，与全站统一） */
.bk-detail {
  --d-bg: #2A2C35; --d-card: #32353F; --d-line: #3F434F; --d-ink: #E8EAF0; --d-ink2: #B8BAC2; --d-ink3: #8A8D99;
  --d-acc: #FB8C3C; --d-acc-dim: rgba(251, 140, 60, 0.14);
  max-width: 720px; padding-bottom: 84px;
  background: var(--d-bg); color: var(--d-ink);
  margin: -14px -14px 0; padding: 14px 14px 84px; min-height: 100vh; }
.bk-detail .bk-dbar .ar-back a { color: var(--d-ink2); text-decoration: none; font-size: 13.5px; }
.bk-detail .bd-share { background: var(--d-card); border-color: var(--d-line); color: var(--d-ink2); }
.bk-detail .bd-title-en { color: var(--d-ink); }
.bk-detail .bd-title-zh { color: var(--d-ink2); }
.bk-detail .bd-author { color: var(--d-ink3); }
.bd-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.bd-price-num { font-size: 20px; font-weight: 800; color: #F3D9A4; }
.bd-price-old { font-size: 11.5px; color: var(--d-ink3, var(--ink-3)); text-decoration: line-through; }
.bk-detail .bd-stats { background: var(--d-card); border-color: var(--d-line); }
.bk-detail .bd-stat + .bd-stat { border-left-color: var(--d-line); }
.bk-detail .bd-stat b { color: var(--d-ink); }
.bk-detail .bd-stat span { color: var(--d-ink3); }
.bk-detail .bd-tabs { background: var(--d-bg); border-bottom-color: var(--d-line); }
.bk-detail .bd-tab { color: var(--d-ink3); }
.bk-detail .bd-tab.on { color: var(--d-acc); border-bottom-color: var(--d-acc); }
.bk-detail .bd-sec-t { color: var(--d-ink); }
.bk-detail .ac2-topic { background: #3A3D4A; color: var(--d-ink2); }
.bk-detail .bd-intro { color: var(--d-ink2); }
.bk-detail .bd-intro-toggle { color: var(--d-acc); }
.bk-detail .bd-services { border-top-color: var(--d-line); }
.bk-detail .bd-svc { color: var(--d-ink2); }
.bk-detail .bd-pub { color: var(--d-ink3); border-top-color: var(--d-line); }
.bk-detail .bk-toc { background: var(--d-card); border-color: var(--d-line); }
.bk-detail .bk-toc-row { color: var(--d-ink2); }
.bk-detail .bk-toc-row.cur { background: var(--d-acc-dim); color: var(--d-acc); }
.bk-detail .bk-toc-row .toc-n, .bk-detail .bk-toc-row .bk-meta { color: var(--d-ink3); }
.bk-detail .bd-footer { background: var(--d-card); border-top-color: var(--d-line); }
.bk-detail .bd-footer .btn-ghost { background: var(--d-card); border-color: var(--d-line); color: var(--d-ink2); }
.bk-detail .bd-mkt-card { background: var(--d-acc-dim); border-color: rgba(251, 140, 60, 0.3); }
.bk-detail .bd-mkt-big { color: var(--d-ink); }
.bk-detail .bd-mkt-big b { color: var(--d-acc); }
.bk-detail .bd-mkt-sub { color: var(--d-ink3); }
.bk-detail { max-width: 720px; padding-bottom: 84px; }
.bd-hero { display: flex; gap: 16px; align-items: flex-start; margin: 10px 0 4px; }
.bd-cover { flex: none; width: 96px; height: 136px; border-radius: 10px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #F97316, #C2410C); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(249, 115, 22, .35); }
.bd-cover.sm { width: 44px; height: 62px; border-radius: 6px; box-shadow: none; }
.bd-cover span { color: #fff; font-size: 34px; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.bd-cover img, .bk-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.bd-cover img.ok, .bk-cover img.ok { opacity: 1; }
.bd-cover.sm span { font-size: 18px; }
.bd-head { flex: 1; min-width: 0; padding-top: 4px; }
.bd-title-en { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.3; margin: 0 0 4px; }
.bd-title-zh { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.bd-author { display: flex; align-items: center; gap: 4px; font-size: var(--fs-micro); color: var(--ink-3); }
.bd-stats { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 14px 0; overflow: hidden; }
.bd-stat { flex: 1; text-align: center; padding: 12px 4px; }
.bd-stat + .bd-stat { border-left: 1px solid var(--line); }
.bd-stat b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 3px; }
.bd-stat span { font-size: 11px; color: var(--ink-3); }
.bd-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 20px; background: var(--bg, #f6f7f6); padding: 10px 2px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.bd-tab { border: none; background: none; font-size: 15px; color: var(--ink-3); padding: 2px 0; cursor: pointer; font-weight: 600; }
.bd-tab.on { color: var(--brand-dark); border-bottom: 2px solid var(--brand); border-radius: 0; }
.bd-sec { padding: 12px 2px; }
.bd-sec-t { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bd-intro-wrap { position: relative; margin-bottom: 14px; }
.bd-intro { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bd-intro.open { display: block; -webkit-line-clamp: unset; }
.bd-intro-toggle { border: none; background: none; color: var(--brand-dark); font-size: 12.5px; font-weight: 600; padding: 6px 0 0; cursor: pointer; }
.bd-mkt { display: flex; gap: 10px; margin-bottom: 14px; }
.bd-mkt-card { flex: 1; background: linear-gradient(150deg, rgba(62,189,125,.10), rgba(62,189,125,.04));
  border: 1px solid rgba(62,189,125,.25); border-radius: 12px; padding: 12px 14px; }
.bd-mkt-big { font-size: 14.5px; color: var(--ink); font-weight: 600; line-height: 1.6; margin-bottom: 6px; }
.bd-mkt-big b { color: var(--brand-dark); font-weight: 800; }
.bd-mkt-sub { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.bk-dbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.bd-share { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: var(--r-full); font-size: var(--fs-micro); padding: 6px 14px; min-height: 32px; cursor: pointer; }
.bd-share:active { transform: scale(0.95); }
.toc-lock { display: flex; align-items: center; }
.bd-services { border-top: 1px dashed var(--line); padding-top: 12px; }
.bd-svc { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--fs-micro); color: var(--ink-2); }
.bd-svc span { display: inline-flex; align-items: center; gap: 4px; }
.bd-svc svg { color: var(--d-acc, var(--brand)); }
.bd-pub { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.bk-toc-row.locked { opacity: .5; }
.bd-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.bd-footer .btn { flex: none; }
.bd-footer .bd-gold { flex: 1; background: linear-gradient(135deg, #F3D9A4, #E8C37E); color: #7A5A2E; border: none; font-weight: 800; }

/* ---------------- 书城阅读器（仿扇贝 P2） ---------------- */
.bk-reader { position: relative; padding-bottom: 70px; }
.bk-top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px); background: var(--card); border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform .25s ease; }
.bk-top.show { transform: translateY(0); }
.bk-top-back { display: flex; align-items: center; color: var(--ink); text-decoration: none; padding: 4px; }
.bk-top-title { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.bk-trial-pill { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: #7A5A2E; background: #F3D9A4; border-radius: var(--r-full); padding: 4px 10px; min-height: 24px; text-decoration: none; font-weight: 700; }
.bk-bot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex;
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%); transition: transform .25s ease; }
.bk-bot.show { transform: translateY(0); }
.bk-bot button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; border: none; background: none; font-size: var(--fs-micro); color: var(--ink-2); padding: 12px 2px; cursor: pointer; }
.bk-bot button svg { flex: none; opacity: .75; }
.bk-bot button:active { color: var(--brand-dark); }
.bk-trans-fab { position: fixed; right: 14px; bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom) + 16px); z-index: 40; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow); cursor: pointer; }
.bk-trans-fab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ar-para { position: relative; }
.ar-trans-btn { position: absolute; right: -2px; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg, #f2f4f3); color: var(--ink-3); font-size: 11px; cursor: pointer; }
.ar-trans { font-size: .92em; color: var(--ink-3); line-height: 1.7; background: var(--bg, #f6f7f6);
  border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.bk-drawer-mask, .bk-aa-mask { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .25s; }
/* 抽屉/弹层打开时隐藏底部 tab 栏，避免毛玻璃透出重叠 */
body.bk-layer-open .bottom-nav { display: none; }
.bk-drawer-mask.show, .bk-aa-mask.show { opacity: 1; pointer-events: auto; }
.bk-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 61; width: 78%; max-width: 340px;
  background: var(--card); transform: translateX(-100%); transition: transform .25s ease;
  display: flex; flex-direction: column; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); overflow-y: auto; }
.bk-drawer.show { transform: translateX(0); }
.bkd-head { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bkd-head b { font-size: 15px; color: var(--ink); display: block; }
.bkd-stat { font-size: 12px; color: var(--ink-3); padding: 10px 2px; }
.bkd-row { display: flex; align-items: center; gap: 8px; padding: 10px 6px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; border-radius: 8px; }
.bkd-row.cur { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.bkd-row.locked { opacity: .45; }
.bk-aa { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--card);
  border-radius: 16px 16px 0 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .25s ease; }
.bk-aa.show { transform: translateY(0); }
.bk-aa-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 8px; }
.bk-aa-head b { font-size: 15px; color: var(--ink); }
.bk-aa-close { font-size: 12.5px; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft);
  border-radius: 999px; padding: 5px 16px; }
.bk-aa-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.bk-aa-cell { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); }
.bk-aa-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.bk-aa-row.sub { border-bottom: 1px dashed var(--line); padding-left: 8px; }
.bk-aa-lab { flex: 1; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.bk-aa-tip-inline { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.bk-aa-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.bk-lv-chip { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: #7A5A2E; background: #F3D9A4;
  border-radius: 999px; padding: 4px 10px; }
.bk-lv-chip b { color: #7A5A2E; }
.bk-aa-btn { width: 44px; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 1px; border: 1px solid var(--line); background: var(--bg, #f2f4f3); border-radius: 8px; color: var(--ink); font-size: 12.5px; cursor: pointer; transition: transform .12s; }
.bk-aa-btn:active { transform: scale(0.92); }
.bk-aa-btn .bk-aa-fsA { font-size: 11px; font-weight: 800; line-height: 1; }
.bk-aa-btn svg { opacity: .8; }
.bk-aa input[type=range] { flex: 1; accent-color: var(--brand); }
.bk-aa-seg { min-width: 0; height: 30px; padding: 0 11px; border: 1px solid var(--line); background: var(--bg, #f2f4f3); border-radius: 8px; color: var(--ink-3); font-size: 12.5px; cursor: pointer; }
.bk-aa-seg.on { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand); font-weight: 700; }
.bk-aa-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.bk-aa-tip { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.bk-lv { display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px; margin-bottom: 8px; border: 1px solid var(--line); background: var(--bg, #f2f4f3); border-radius: 10px; color: var(--ink); font-size: 14.5px; text-align: left; cursor: pointer; }
.bk-lv.cur { border-color: var(--brand); color: var(--brand-dark); font-weight: 700; }
.bk-lv.cur svg { color: var(--brand); }
.bk-lv.cur { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand); font-weight: 700; }
.bk-lv:disabled { opacity: .4; cursor: not-allowed; }
/* 本书资料卡 */
.bk-info-card { display: flex; flex-direction: column; gap: 0; }
.bki-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.bki-row span { color: var(--ink-3); flex: none; }
.bki-row b { color: var(--ink); text-align: right; word-break: break-word; }
.bki-tip { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); padding-top: 10px; }
.bki-tip svg { color: #D9A441; flex: none; }
/* 边缘翻章热区（阅读器页面） */
#bkEdgeTap { position: fixed; inset: 0; z-index: 15; pointer-events: none; }
.bk-edge { position: absolute; top: 12%; bottom: 32%; width: 16%; pointer-events: auto; }
.bk-edge.l { left: 0; }
.bk-edge.r { right: 0; }
/* 开关 */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #ccc; border-radius: 26px; transition: .2s; cursor: pointer; }
.switch i::before { content: ""; position: absolute; width: 22px; height: 22px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::before { transform: translateX(20px); }
/* 短语加粗 */
b.phr { font-weight: 800; color: var(--brand-dark); }
/* Aa 面板完成按钮 */
.bk-aa-done { width: 100%; margin-top: 14px; padding: 12px 0; border-radius: 12px; font-size: 15px; }
/* 页内词汇弹层 */
.bk-aa-title { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; padding: 4px 0 8px; }
.bk-aa-title svg { color: var(--brand); flex: none; }
.bk-words-list { max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.bkw-sec { font-size: 12px; color: var(--ink-3); padding: 10px 2px 4px; font-weight: 700; }
.bkw-row { display: flex; align-items: center; gap: 8px; padding: 10px 4px; border-bottom: 1px dashed var(--line); cursor: pointer; }
.bkw-row:active { background: var(--brand-soft); }
.bkw-row b { font-size: 15px; color: var(--ink); }
.bkw-tag { font-style: normal; font-size: 10.5px; color: #7A5A2E; background: #F3D9A4; border-radius: 999px; padding: 1px 8px; }
.bkw-saved { font-style: normal; font-size: 11px; color: var(--brand-dark); margin-left: auto; }
.bkw-empty { padding: 26px 0; text-align: center; font-size: 13px; color: var(--ink-3); }
.bk-words-all { display: block; text-align: center; margin-top: 10px; }
/* 微信分享引导层 */
#wxShareGuide { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.65); cursor: pointer; }
#wxShareGuide .wsg-arrow { position: absolute; top: 12px; right: 22px; font-size: 44px; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4); animation: wsgBounce 1.2s ease infinite; }
#wxShareGuide .wsg-card { position: absolute; top: 76px; right: 20px; background: #fff; color: #333;
  border-radius: 14px; padding: 16px 20px; font-size: 14.5px; line-height: 1.7; text-align: left;
  box-shadow: 0 8px 30px rgba(0,0,0,.3); }
#wxShareGuide .wsg-card b { color: #07C160; }
@keyframes wsgBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
/* 句尾 ▷ 发音标记 */
.sent-play { display: inline-block; font-style: normal; font-size: .72em; color: var(--brand);
  margin: 0 3px 0 5px; cursor: pointer; vertical-align: 1px; opacity: .65; }
.sent-play:active { opacity: 1; transform: scale(1.2); }

/* ---------------- P4 阅读手帐（书城第二期） ---------------- */
.bk-top-note { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--ink-2); text-decoration: none; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.bk-top-note:active { background: var(--bg, #f2f4f3); }
.jl-page { max-width: 720px; }
.jl-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.jl-bar .jl-title { flex: 1; font-size: 17px; font-weight: 800; color: var(--ink); margin: 0; }
.jl-words { font-size: 12.5px; color: var(--ink-3); }
.jl-words b { color: var(--brand-dark); font-size: 15px; }
.jl-tabs { display: flex; gap: 8px; margin: 10px 0 14px; }
.jl-tab { flex: 1; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 4px; font-size: 12.5px; color: var(--ink-3); cursor: pointer; }
.jl-tab.on { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand); font-weight: 700; }
.jl-poster { position: relative; border-radius: 16px; overflow: hidden; padding: 20px 18px 16px;
  background: linear-gradient(160deg, #EAF6EF, #D3EDDD); border: 1px solid rgba(62, 189, 125, .25); }
.jl-brand { font-size: 12px; font-weight: 700; color: #2E9E63; text-align: center; margin-bottom: 14px; }
.jl-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.jl-cover { flex: none; width: 82px; height: 116px; border-radius: 10px;
  background: linear-gradient(150deg, #3EBD7D, #1f8f5a); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(62, 189, 125, .35); }
.jl-cover span { color: #fff; font-size: 40px; font-weight: 800; }
.jl-badges { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.jl-badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-micro); font-weight: 700; color: #B45309; background: #fff; border-radius: var(--r-full); padding: 4px 12px; width: fit-content; }
.jl-badge svg { color: #B45309; }
.jl-badge.gold { color: #7A5A2E; background: #F3D9A4; }
.jl-title-en { font-size: 21px; font-weight: 800; color: #20321F; font-family: Georgia, serif; line-height: 1.25; margin-bottom: 4px; }
.jl-title-zh { font-size: 14px; color: #4A6B52; margin-bottom: 12px; }
.jl-excerpt { font-size: 13px; line-height: 1.9; color: #33443A; background: rgba(255,255,255,.75); border-radius: 12px; padding: 12px 14px; font-family: Georgia, serif; }
.jl-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: #4A6B52; margin-top: 12px; }
.jl-share { display: flex; gap: 10px; margin: 16px 0 6px; }
.jl-share .btn { flex: 1; }
.jl-tip { font-size: 11.5px; color: var(--ink-3); text-align: center; }
.jl-imgbox { margin-top: 14px; text-align: center; }
.jl-imgbox img { max-width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.jl-ph { text-align: center; padding: 60px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: 16px; color: var(--ink-2); font-size: 15px; line-height: 2; }
.jl-ph .e-ic { margin-bottom: 12px; }
.jl-ph span:last-child { font-size: 12px; color: var(--ink-3); }

/* ---------------- 划线与笔记（M8） ---------------- */
.ar-en .sent.marked { background: rgba(255, 213, 79, .38); border-bottom-color: var(--accent); border-radius: 3px; }
.ar-en .sent.marked.has-note::after { content: "📝"; font-size: 11px; margin-left: 3px; }
.sent-sheet { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: flex-end; }
.sent-sheet .ss-mask { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.sent-sheet .ss-body { position: relative; background: var(--card); border-radius: 18px 18px 0 0; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 4px; }
.sent-sheet .ss-sent { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-bottom: 8px; }
.sent-sheet .ss-body > button { border: none; background: none; text-align: left; font-size: 15.5px; color: var(--ink); padding: 13px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.sent-sheet .ss-body > .ss-cancel { border-bottom: none; color: var(--ink-3); text-align: center; margin-top: 6px; }
.note-ta { width: 100%; box-sizing: border-box; min-height: 110px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.7; background: var(--bg); color: var(--ink); outline: none; resize: vertical; font-family: inherit; }
.note-ta:focus { border-color: var(--brand); }
.note-group { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin-bottom: 12px; }
.ng-title { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--brand-dark); font-weight: 700; padding: 10px 0 6px; text-decoration: none; border-bottom: 1px solid var(--line); }
.ng-title svg { flex: none; }
.note-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.note-item:last-child { border-bottom: none; }
.ni-label { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.ni-sent { font-size: 13.5px; color: var(--ink); line-height: 1.6; background: rgba(255, 213, 79, .25); border-radius: 6px; padding: 6px 8px; }
.ni-note { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin-top: 6px; white-space: pre-wrap; }
.ni-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.ni-del { border: none; background: none; color: #e11d48; font-size: 12px; cursor: pointer; padding: 4px 8px; }

/* ---------------- 学习计划 ---------------- */
.plan-card { background: linear-gradient(135deg, var(--brand-soft), var(--card) 60%); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 14px 0; }
.plan-head { display: flex; justify-content: space-between; align-items: center; }
.plan-head b { font-size: 17px; color: var(--ink); }
.plan-head .tag { font-size: 12px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 10px; padding: 2px 10px; }
.plan-day { font-size: 14px; color: var(--ink-2); margin: 12px 0 6px; }
.plan-day b { color: var(--brand-dark); font-size: 20px; }
.progress-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); transition: width .4s; }
.plan-stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-3); margin: 10px 0; flex-wrap: wrap; }
.plan-stats span { display: inline-flex; align-items: center; gap: 4px; }
.plan-stats svg { color: var(--brand); }
.plan-stats span:nth-child(2) svg { color: var(--danger, #E15A5A); }
.plan-today { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); background: rgba(255,255,255,.7); border-radius: 10px; padding: 10px 12px; }
.plan-today > svg, .plan-today > .dzh { flex: none; }
.plan-today svg { color: var(--brand); }
.plan-today.ok svg { color: var(--ok); }
.plan-today .btn { margin-left: auto; }
.plan-today.ok { color: var(--brand-dark); }
.plan-done { display: flex; align-items: center; gap: 6px; font-size: 16px; color: var(--brand-dark); font-weight: 700; margin: 12px 0; }
.plan-done svg { color: var(--brand); }
.plan-card .btn-ghost { margin-top: 12px; }
.plan-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.plan-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.plan-row b { color: var(--ink); font-size: 14.5px; }
.plan-desc { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.plan-custom { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.plan-custom label { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.plan-custom input, .plan-custom select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; background: var(--bg); color: var(--ink); }
.plan-custom input { width: 110px; }

/* 底部工具栏（阅读器单手操作） */
.ar-toolbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom) + 12px); z-index: 40;
  display: flex; gap: 4px; padding: 6px;
  background: var(--glass); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.ar-toolbar button {
  min-width: 52px; padding: 8px 12px; border: none; border-radius: 16px;
  background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.ar-toolbar button.at-ic { min-width: 44px; }
.ar-toolbar button:active { background: var(--brand-soft); color: var(--brand-dark); }
.ar-streak { display: flex; align-items: center; gap: 4px; }
.ar-streak .fl-ic { display: flex; align-items: center; color: var(--brand); }
.ar-from-video { display: flex; align-items: center; gap: 6px; }
.ar-from-video .afv-ic { display: flex; align-items: center; flex: none; }

/* 设置面板（Aa 弹出） */
.ar-sheet {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom) + 64px); z-index: 41;
  width: min(92vw, 420px); padding: 14px 16px;
  background: var(--glass); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.as-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.as-row:last-child { margin-bottom: 0; }
.as-row > span { font-size: 13px; color: var(--ink-3); width: 44px; flex: none; }

/* 已学词下划线 */
.ar-en .w.learned { border-bottom: 2px dotted var(--brand); }

/* 词典发音按钮 */
.dict-say {
  border: none; background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 50%; width: 30px; height: 30px; font-size: 14px;
  cursor: pointer; margin-left: 8px; vertical-align: middle;
}

/* 工具条（听读/语速/字号/主题，挂在模式 chips 后面） */
.ar-mode .tool-gap { flex: 1 1 auto; }
.ar-mode #ttsBtn.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* TTS 朗读中的句子 */
.ar-en .sent.tts-on, .ar-en.tts-on {
  background: var(--brand-soft); border-bottom-color: var(--brand); border-radius: 4px;
}

/* 考纲词角标（ECDICT：中考/高考/四六级/考研…） */
.ar-en .w.exam { color: var(--brand-dark); font-weight: 600; }
.ex-tag { font-size: 9px; font-weight: 700; color: #fff; background: var(--accent);
  border-radius: 4px; padding: 0 3px; margin-left: 2px; transform: translateY(-6px); display: inline-block; }

/* 阅读器主题 */
.art-reader { --ar-bg: transparent; }
.art-reader.th-sepia {
  background: #f7efdd; border-radius: var(--radius); padding: 4px 14px 14px; margin: 0 -8px;
  --line: #e5d9bd;
}
.art-reader.th-sepia .ar-en { color: #43371f; }
.art-reader.th-sepia .ar-zh, .art-reader.th-sepia .dzh { color: #6b5c3a; }
.art-reader.th-dark {
  background: #14181d; border-radius: var(--radius); padding: 4px 14px 14px; margin: 0 -8px;
  --line: #2a313a;
}
.art-reader.th-dark .ar-en { color: #dfe6ee; }
.art-reader.th-dark .ar-zh, .art-reader.th-dark .dzh, .art-reader.th-dark .ar-hint { color: #9fb0bd; }
.art-reader.th-dark .ar-info span { color: #7d8f9c; border-color: #2a313a; }
.art-reader.th-dark .ar-title, .art-reader.th-dark .dw, .art-reader.th-dark .ai-h { color: #e6edf3; }
.art-reader.th-dark .ar-title-en { color: #7d8f9c; }
.art-reader.th-dark .sent { border-bottom-color: rgba(255,255,255,.18); }
.art-reader.th-dark .qa-box { background: #1a222b; }
.art-reader.th-dark .qa-a, .art-reader.th-dark .ai-sent { background: #1f2833; color: #cfd9e3; }
.art-reader.th-dark .qa-input-row input { background: #1a222b; color: #e6edf3; }

/* 字号档位 */
.ar-en { font-size: var(--ar-fs, 16.5px); }

/* 打卡区 */
.ar-foot { text-align: center; margin: 26px 0 8px; }
.ar-streak { font-size: var(--fs-caption); color: var(--ink-3); margin-top: 12px; }
.ar-streak b { color: var(--accent); font-size: 15px; }

.ai-card { max-height: 82vh; overflow-y: auto; }
.ai-loading { text-align: center; padding: 30px 0 20px; }
.ai-spin { width: 26px; height: 26px; margin: 0 auto; border-radius: 50%;
  border: 3px solid var(--brand-soft); border-top-color: var(--brand-dark, #2563eb);
  animation: ai-rot .8s linear infinite; }
.ai-spin.sm { display: inline-block; width: 14px; height: 14px; border-width: 2px; margin: 0 4px 0 0; vertical-align: -2px; }
@keyframes ai-rot { to { transform: rotate(360deg); } }
.ai-sent { font-size: 14.5px; line-height: 1.7; color: var(--ink-2);
  background: var(--bg-2, #f4f5f7); border-radius: 10px; padding: 10px 12px; margin: 10px 0 4px; }
.ai-block { margin-top: 14px; }
.ai-h { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink-1); margin-bottom: 6px; }
.ai-h svg { color: var(--brand); flex: none; }
.ai-loading .dw, .modal-card .dw { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ai-loading .dw svg { color: var(--brand); }
.ai-b { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.ai-struct { background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; }
.ai-vocab-row { display: flex; align-items: center; gap: 8px; font-size: 14px;
  padding: 7px 0; border-bottom: 1px dashed var(--line); line-height: 1.6; }
.ai-vocab-row:last-child { border-bottom: none; }
.ai-vocab-row b { flex: none; color: var(--ink-1); }
.ai-vocab-row .vocab-add { flex: none; margin-left: auto; }

.qa-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; margin: 22px 0; }
.qa-log { max-height: 260px; overflow-y: auto; }
.qa-log:empty::after { content: "还没有提问，有问题尽管问 AI"; font-size: 12.5px; color: var(--ink-3); }
.qa-q { font-size: 14px; margin-bottom: 6px; }
.qa-a { font-size: 14px; line-height: 1.8; color: var(--ink-2);
  background: var(--bg-2, #f4f5f7); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.qa-input-row { display: flex; gap: 8px; margin-top: 10px; }
.qa-input-row input { flex: 1; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none; background: #fff; color: var(--ink-1); }
.qa-input-row input:focus { border-color: var(--brand-dark, #2563eb); }

/* ---------------- 左上角筛选菜单按钮 ---------------- */
.menu-btn {
  position: relative; flex: none;
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 0 9px; transition: background .15s;
}
.menu-btn span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink-2); transition: width .2s; }
.menu-btn span:nth-child(1) { width: 100%; }
.menu-btn span:nth-child(2) { width: 68%; }
.menu-btn span:nth-child(3) { width: 42%; }
.menu-btn:hover { background: var(--brand-soft); }
.menu-btn.has-filter::after {
  content: ""; position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); border: 2px solid #fff;
}

/* ---------------- 筛选抽屉 ---------------- */
.drawer-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.drawer-mask.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: min(320px, 86vw);
  background: var(--card); display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .26s cubic-bezier(.32,.72,.33,1);
  box-shadow: 8px 0 32px rgba(0,0,0,.12);
}
.drawer-mask.show .drawer { transform: none; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 14px; border-bottom: 1px solid var(--line);
}
.drawer-logo { font-size: 18px; font-weight: 700; }
.drawer-logo em { color: var(--brand); font-style: normal; }
.drawer-close { font-size: 26px; line-height: 1; color: var(--ink-3); padding: 0 4px; }
.drawer-close:hover { color: var(--ink-2); }

.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px; overscroll-behavior: contain; }
.dsec { margin-bottom: 20px; }
.dsec-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }

.dchips { display: flex; flex-wrap: wrap; gap: 8px; }
.dchip {
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 13px; color: var(--ink-2); transition: all .15s;
}
.dchip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
a.dchip { display: inline-flex; align-items: center; gap: 4px; }
a.dchip svg { flex: none; opacity: .85; }
a.dchip { text-decoration: none; cursor: pointer; }
a.dchip:active { opacity: .85; }
.dsec-tip { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

.tag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tchip {
  padding: 9px 2px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 12.5px; color: var(--ink-2); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all .15s;
}
.tchip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }

.drawer-foot {
  display: flex; gap: 10px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.drawer-foot .btn-primary { flex: 1; }

/* ---------------- 我的 页面 ---------------- */
.me-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 20px; margin-bottom: 16px;
}
.me-avatar {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; background: var(--brand-soft);
}
.me-info { flex: 1; min-width: 0; }
.me-nick { font-size: 19px; font-weight: 700; }
.me-sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.btn-sm { padding: 6px 13px; font-size: 13px; }

.me-rows {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-top: 16px;
}
.me-row {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink); text-align: left;
  transition: background .15s; text-decoration: none;
}
.me-row:last-child { border-bottom: none; }
.me-row:hover { background: var(--brand-soft); }
.mr-ic { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; color: var(--ink-2); }
.me-vip-row .mr-ic { color: #D9A441; }
.mr-t { flex: 1; display: flex; align-items: center; gap: 5px; font-weight: 500; min-width: 0; }
.mr-t svg { flex: none; color: #D9A441; }
.mr-arrow { display: flex; align-items: center; color: var(--ink-3); }
.me-sub { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.me-streak { display: inline-flex; align-items: center; gap: 3px; color: var(--danger, #E15A5A); font-weight: 600; }
.me-streak svg { color: var(--danger, #E15A5A); }
.vip-notes b.rec-ok { color: var(--ok); font-weight: 700; }
.vip-notes b.rec-no { color: var(--danger, #E15A5A); font-weight: 700; }

/* 「我的考试目标」行：标签一行 + chips 独占下一行，避免互相挤压 */
.me-goal-row { flex-wrap: wrap; row-gap: 12px; padding-block: 14px; }
.me-goal-row .mr-t { flex: 1; white-space: nowrap; }
.me-goal-row .dchips { flex-basis: 100%; }
.me-goal-row .dchip { padding: 6px 13px; font-size: 12.5px; }

/* 通用弹窗扩展（账号设置 / 社群） */
.m-title { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.m-title svg { color: var(--brand); flex: none; }
.m-field { margin-bottom: 14px; }
.m-field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 600; }
.m-field input {
  width: 100%; padding: 10px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 15px; color: var(--ink); outline: none;
}
.m-field input:focus { border-color: var(--brand); }
/* 手机号登录弹窗（M0） */
.login-code-row { display: flex; gap: 8px; }
.login-code-row input { flex: 1; min-width: 0; }
.login-code-row .btn-sm { white-space: nowrap; flex-shrink: 0; }
.login-code-row .btn-sm:disabled { opacity: .55; }

/* ---------- 会员购买页 / 兑换中心（M1） ---------- */
.vip-now {
  background: linear-gradient(135deg, #2b2b35, #454055);
  color: #f5e6c4; border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
}
.vip-now-t { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; }
.vip-now-t svg { color: #D9A441; flex: none; }
.vip-now-d { font-size: 13px; margin-top: 5px; opacity: .85; }
.vip-link { color: var(--brand); text-decoration: none; }
.vip-skus { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 4px; }
.vip-sku {
  position: relative; border: 2px solid var(--line); background: var(--card);
  border-radius: 14px; padding: 14px 12px; text-align: center; cursor: pointer; transition: .15s;
}
.vip-sku.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--card)); }
.vip-badge {
  position: absolute; top: -9px; right: 10px; background: var(--brand); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700;
}
.vs-name { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.vs-price { margin-top: 6px; }
.vs-price b { font-size: 22px; color: var(--ink); }
.vs-price s { font-size: 12px; color: var(--ink-3); margin-left: 6px; }
.vs-month { font-size: 12px; color: var(--brand); margin-top: 3px; font-weight: 600; }
.vip-sec-t { font-size: 15px; font-weight: 700; margin: 22px 0 12px; }
.vip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.vip-b { text-align: center; }
.vip-b span { font-size: 22px; display: block; }
.vip-b b { font-size: 12px; display: block; margin-top: 4px; }
.vip-b i { font-size: 10px; color: var(--ink-3); display: block; font-style: normal; margin-top: 2px; }
.vip-notes { background: var(--card); border-radius: var(--radius); padding: 14px 16px; }
.vip-notes p { font-size: 12px; color: var(--ink-3); line-height: 1.9; }
.vip-bar {
  position: fixed; left: 0; right: 0; bottom: var(--bottomnav-h, 58px);
  background: var(--card); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; z-index: 40;
}
.vip-bar-info { flex: 1; min-width: 0; }
.vip-bar-info b { font-size: 14px; display: block; }
.vip-bar-info span { font-size: 17px; color: #e05024; font-weight: 800; }
.vip-redeem-link { font-size: 12px; color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.vip-redeem-card { background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; gap: 10px; }
.vip-redeem-card input {
  flex: 1; min-width: 0; padding: 10px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); font-size: 15px;
  color: var(--ink); outline: none; text-transform: uppercase;
}
.vip-redeem-card input:focus { border-color: var(--brand); }
.me-vip-row { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 12%, var(--card)), var(--card)) !important; }

/* ---------- 邀请有礼（M3） ---------- */
.inv-hero {
  background: linear-gradient(135deg, #2b2b35, #454055);
  border-radius: var(--radius); padding: 20px; text-align: center; color: #fff;
}
.inv-code-t { font-size: 12px; opacity: .7; }
.inv-code {
  font-size: 34px; font-weight: 800; letter-spacing: 8px;
  color: #f5e6c4; margin: 8px 0 10px; font-family: monospace;
}
.inv-link {
  font-size: 11px; opacity: .6; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; margin-bottom: 12px;
}
.inv-ops { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.inv-ops .btn { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.inv-progress { background: var(--card); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.inv-p-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.inv-p-head b { color: var(--brand); font-size: 16px; }
.inv-p-bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; margin: 10px 0 8px; }
.inv-p-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.inv-p-sub { font-size: 12px; color: var(--ink-3); }
.avatar-row { display: flex; gap: 10px; flex-wrap: wrap; }
.av {
  width: 42px; height: 42px; border-radius: 50%; font-size: 22px;
  border: 2px solid var(--line); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.av.on { border-color: var(--brand); background: var(--brand-soft); }
.m-tip { font-size: 12px; color: var(--ink-3); line-height: 1.6; margin-top: 4px; }

.community-qr { width: 100%; max-width: 260px; border-radius: 12px; display: block; margin: 0 auto; }
.qr-fallback { text-align: center; padding: 10px 0; font-size: 14px; color: var(--ink-2); line-height: 2; }
.qr-fallback .qr-wx b { color: var(--brand-dark); font-size: 17px; }

/* 夜间下统计卡 & 弹窗底色 */
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .drawer { background: var(--card); }

/* ---------------- 详情页底部操作栏修复：置于底部 Tab 栏之上 ---------------- */
@media (max-width: 900px) {
  .bd-footer { bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)) !important; }
  .bk-detail { padding-bottom: calc(96px + var(--bottomnav-h) + env(safe-area-inset-bottom)) !important; }
}
/* 分享按钮重做：暗色玻璃质感 */
.bk-detail .bd-share {
  border: 1px solid rgba(232, 234, 240, .18);
  background: rgba(232, 234, 240, .08);
  color: var(--d-ink, #E8EAF0);
  border-radius: 999px; font-size: 12.5px; font-weight: 600;
  padding: 7px 16px; cursor: pointer; backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 5px;
  transition: background .2s;
}
.bk-detail .bd-share:active { background: rgba(232, 234, 240, .18); }

/* ---------------- 阅读器工具栏层级（topbar 已删除，bk-top 直接贴顶） ---------------- */
.bk-top { top: 0; z-index: 55; }
.bk-bot { z-index: 55; }
@media (max-width: 900px) {
  .bk-bot { bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); }
}
/* 工具栏显示时，译色浮标上移避开底部工具栏 */
body.bk-bars-on .bk-trans-fab { bottom: calc(var(--bottomnav-h, 58px) + env(safe-area-inset-bottom) + 112px); }

/* ---------------- 阅读器护眼主题（sepia） ---------------- */
html[data-theme="sepia"] {
  --bg: #F4EDD8; --card: #F8F2E0; --glass: rgba(248, 242, 224, .85);
  --ink: #4A3F2A; --ink-2: #6B5D40; --ink-3: #94856A;
  --line: #E4D9BC; --brand-soft: rgba(140, 110, 50, .12);
}
html[data-theme="sepia"] .art-reader .ar-en { color: #4A3F2A; }
html[data-theme="sepia"] .ar-trans { background: rgba(140, 110, 50, .07); }

/* ---------------- 书城今日阅读目标卡 ---------------- */
.bs-goal { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px 10px; margin-bottom: 12px; }
.bs-goal-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bs-goal-fire { display: flex; align-items: center; gap: 4px; font-size: var(--fs-caption); font-weight: 700; color: var(--ink); }
.bs-goal-fire svg { color: var(--brand); flex: none; }
.bs-goal-fire b { color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.bs-goal-num { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-micro); color: var(--ink-3); }
.bs-goal-num b { color: var(--brand-dark); font-size: 14px; }
.bs-goal-num #bsGoalNum { color: var(--brand-dark); font-weight: 700; cursor: pointer; }
.bs-goal-bar { height: 8px; border-radius: 999px; background: var(--bg, #f2f4f3); margin: 10px 0 6px; overflow: hidden; }
.bs-goal-bar i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #F97316, #F3B03D); transition: width .4s; }
.bs-goal-sub { font-size: 11.5px; color: var(--ink-3); }

/* ---------------- Aa 设置面板补充（字号按钮组 / 三段选择器） ---------------- */
.bk-aa-fsgrp { display: flex; align-items: center; gap: 6px; }
.bk-aa-fscur { min-width: 36px; border: 1px solid var(--line); background: var(--bg, #f2f4f3);
  border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--ink); padding: 5px 8px; cursor: pointer; }
.bk-aa-segs { display: flex; gap: 6px; }

/* ---------------- 段落问 AI 弹层 ---------------- */
.para-ask .pa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.para-ask .pa-chip { border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; font-size: 12px; font-weight: 600; padding: 5px 12px; cursor: pointer; }

/* ---------------- 章末生词小测 ---------------- */
.bk-quiz-row { text-align: center; margin: -4px 0 18px; }
.bk-quiz-row button { border: 1px dashed var(--brand); background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; font-size: 12.5px; font-weight: 700; padding: 8px 18px; cursor: pointer; }
.bk-quiz .modal-card { max-width: 420px; }
.bk-quiz-head span { display: inline-flex; align-items: center; gap: 6px; }
.bk-quiz-head span svg { color: var(--brand); }
.bk-quiz-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px;
  font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.bk-quiz-head b { color: var(--brand-dark); }
.bk-quiz-word { text-align: center; font-size: 26px; font-weight: 800; color: var(--ink); margin: 6px 0 16px;
  font-family: Georgia, serif; }
.bk-quiz-word i { font-style: normal; font-size: 13px; color: var(--ink-3); margin-left: 6px; }
.bk-quiz-say { border: none; background: var(--brand-soft); color: var(--brand-dark); border-radius: 50%;
  width: 30px; height: 30px; margin-left: 8px; cursor: pointer; vertical-align: middle; }
.bk-quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.bk-quiz-opts button { border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  border-radius: 10px; font-size: 13.5px; padding: 11px 12px; text-align: left; cursor: pointer; }
.bk-quiz-opts button.ok { border-color: var(--ok); background: rgba(22, 163, 74, .12); color: #15803D; font-weight: 700; }
.bk-quiz-opts button.no { border-color: #E15A5A; background: rgba(225, 90, 90, .1); color: #C03434; }
.bk-quiz-score { text-align: center; font-size: 14px; font-weight: 700; color: var(--ink); margin: 4px 0 12px; }
.bk-quiz-wrong { border: 1px dashed var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 12px; }
.bk-quiz-wt { display: flex; align-items: center; gap: 5px; font-size: var(--fs-micro); color: var(--ink-3); margin-bottom: 4px; }
.bk-quiz-wt svg { color: var(--danger, #E15A5A); }
.bk-quiz-wrow { display: flex; justify-content: space-between; gap: 10px; padding: 7px 4px; font-size: 13px;
  cursor: pointer; border-radius: 8px; }
.bk-quiz-wrow:active { background: var(--brand-soft); }
.bk-quiz-wrow b { color: var(--ink); }
.bk-quiz-wrow span { color: var(--ink-3); font-size: 12px; }
.bk-quiz-wrow.done { opacity: .5; }
.bk-quiz-btns { display: flex; gap: 10px; }
.bk-quiz-btns .btn { flex: 1; }

/* ================= 临时分享 · 看完即走 ================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hide { display: none !important; }
.share-lead { font-size: var(--fs-caption); color: var(--ink-2); line-height: 1.7; margin: 8px 0 14px; }
.share-lead b { color: var(--brand-dark); }
.share-card { background: var(--card); border-radius: var(--r-lg); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-1); }
.sh-sec-t { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.sh-sec-t svg { color: var(--brand); }

/* 输码观看 */
.sh-code-row { display: flex; gap: 10px; }
.sh-code-input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 11px 14px; font-size: 17px; letter-spacing: 2px; font-weight: 700;
  font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; background: var(--bg); color: var(--ink);
}
.sh-code-input:focus { outline: none; border-color: var(--brand); background: var(--card); }

/* 上传区 */
.sh-up-zone {
  border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 26px 16px;
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.sh-up-zone:hover, .sh-up-zone:active { border-color: var(--brand); background: var(--brand-soft); }
.sh-up-ic { color: var(--ink-3); margin-bottom: 8px; }
.sh-up-t { font-size: var(--fs-body); font-weight: 600; color: var(--ink); }
.sh-up-sub { font-size: var(--fs-micro); color: var(--ink-3); margin-top: 6px; }
.sh-up-sub b { color: var(--brand-dark); }
.sh-login-tip { text-align: center; padding: 14px 0 6px; }
.sh-login-tip p { font-size: var(--fs-caption); color: var(--ink-2); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* 上传进度 */
.sh-progress { margin-top: 14px; }
.sh-progress-bar { height: 8px; border-radius: var(--r-full); background: var(--bg); overflow: hidden; }
.sh-progress-bar i { display: block; height: 100%; width: 0; border-radius: var(--r-full); background: linear-gradient(90deg, var(--brand), #FB923C); transition: width .25s; }
.sh-progress-txt { font-size: var(--fs-micro); color: var(--ink-2); margin-top: 8px; text-align: center; }

/* 分享码结果 */
.sh-result { margin-top: 14px; text-align: center; animation: fadeUp .3s; }
.sh-code-big {
  font-family: ui-monospace, Menlo, monospace; font-size: 30px; font-weight: 800; letter-spacing: 3px;
  color: var(--brand-dark); background: var(--brand-soft); border-radius: var(--r-md); padding: 14px 0;
}
.sh-code-meta { font-size: var(--fs-micro); color: var(--ink-3); margin: 8px 0 12px; }

/* 我的分享列表 */
.sh-loading, .sh-empty { text-align: center; color: var(--ink-3); font-size: var(--fs-caption); padding: 26px 0; }
.sh-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sh-row:last-child { border-bottom: none; }
.sh-row.dead { opacity: .55; }
.sh-row-main { flex: 1; min-width: 0; }
.sh-row-code { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.sh-row-title { font-size: var(--fs-caption); color: var(--ink-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-row-sub { display: flex; align-items: center; gap: 4px; font-size: var(--fs-micro); color: var(--ink-3); margin-top: 3px; }
.sh-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-full); background: var(--bg); color: var(--ink-3); }
.sh-tag.ok { background: var(--accent-soft); color: var(--ok); }
.sh-row-ops { display: flex; gap: 6px; }
.sh-op {
  width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.sh-op:active { background: var(--bg); }
.sh-op.danger { color: var(--err); }

/* 免责声明 */
.sh-disclaimer { display: flex; align-items: flex-start; gap: 5px; font-size: var(--fs-micro); color: var(--ink-3); line-height: 1.6; padding: 0 4px 20px; }
.sh-disclaimer svg { flex: none; margin-top: 2px; }

/* 观看页 */
.sh-watch-loading { text-align: center; padding: 120px 20px; color: var(--ink-3); font-size: var(--fs-body); }
.sh-watch-loading svg { display: block; margin: 0 auto 12px; animation: spin 1.2s linear infinite; }
.sh-watch-err { text-align: center; padding: 100px 30px; }
.sh-err-ic { color: var(--warn); margin-bottom: 14px; }
.sh-watch-err h3 { font-size: var(--fs-subtitle); color: var(--ink); margin-bottom: 8px; }
.sh-watch-err p { font-size: var(--fs-caption); color: var(--ink-3); margin-bottom: 22px; }
.sh-watch-meta {
  display: flex; align-items: center; gap: 6px; font-size: var(--fs-caption); color: var(--ink-2);
  background: var(--brand-soft); border-radius: var(--r-md); padding: 10px 14px; margin-top: 10px;
}
.sh-watch-meta svg { color: var(--brand-dark); flex: none; }

/* ================= 会员礼卡 H5 落地页（微信分享） ================= */
.gift-loading { text-align: center; padding: 120px 20px; color: var(--ink-3); font-size: var(--fs-body); }
.gift-page { max-width: 420px; margin: 0 auto; padding: 28px 18px 40px; text-align: center; }
.gift-greet { font-size: var(--fs-subtitle); font-weight: 700; color: var(--ink); margin-bottom: 22px; }
.gift-scene { perspective: 1200px; }
.gift-card {
  position: relative; width: 100%; aspect-ratio: 8 / 5; transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1); cursor: pointer;
}
.gift-card.flip { transform: rotateY(180deg); }
.gift-card.dead { cursor: default; }
.gift-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gift-front {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.22) 0 70px, transparent 71px),
    radial-gradient(circle at 12% 88%, rgba(255,255,255,.14) 0 46px, transparent 47px),
    linear-gradient(135deg, #F97316 0%, #EA580C 55%, #C2410C 100%);
  color: #fff; box-shadow: 0 12px 32px rgba(234, 88, 12, .35);
}
.gift-front::after { content: ""; position: absolute; inset: 9px; border: 1.5px dashed rgba(255,255,255,.5); border-radius: 9px; pointer-events: none; }
.gift-ribbon { position: absolute; top: -7px; right: 26px; width: 20px; height: 44px; background: linear-gradient(#FFD9A8, #F5B25E); border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.gift-ribbon::before { content: ""; position: absolute; left: 50%; top: 0; width: 8px; height: 100%; transform: translateX(-50%); background: rgba(255,255,255,.35); }
.gf-brand { font-size: 11px; letter-spacing: 3px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.gf-days { font-size: 52px; font-weight: 800; line-height: 1.1; margin: 6px 0 2px; text-shadow: 0 2px 10px rgba(0,0,0,.15); }
.gf-days i { font-style: normal; font-size: 20px; font-weight: 700; margin-left: 4px; }
.gf-label { font-size: 15px; font-weight: 700; letter-spacing: 6px; opacity: .95; }
.gf-tap { margin-top: 16px; font-size: 12px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 6px 18px; animation: giftPulse 1.6s infinite; }
.gift-card.dead .gf-tap { display: none; }
@keyframes giftPulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
.gift-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 60%, #FED7AA 100%);
  color: #7C2D12; border: 1.5px solid #FDBA74;
}
.gb-t { font-size: 11px; letter-spacing: 3px; color: #C2410C; display: flex; align-items: center; gap: 6px; }
.gb-code {
  font-family: ui-monospace, Menlo, monospace; font-size: 24px; font-weight: 800; letter-spacing: 2px;
  background: #fff; border: 1.5px solid #FDBA74; border-radius: 10px; padding: 12px 18px; margin: 12px 0 8px;
  user-select: all; word-break: break-all;
}
.gb-valid { font-size: 12px; color: #9A3412; display: flex; align-items: center; gap: 5px; }
.gift-ops { margin-top: 26px; display: flex; justify-content: center; }
.gift-go { min-width: 220px; }
.gift-st { margin-top: 18px; font-size: var(--fs-caption); color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.gift-tip { margin-top: 14px; font-size: var(--fs-micro); color: var(--ink-3); }
.gift-err { padding: 60px 0; }
.gift-err .ge-ic { color: var(--warn); margin-bottom: 14px; }
.gift-err h3 { font-size: var(--fs-subtitle); color: var(--ink); margin-bottom: 8px; }
.gift-err p { font-size: var(--fs-caption); color: var(--ink-3); margin-bottom: 22px; }

/* ---------- ICP 备案页脚 ---------- */
.icp-footer {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 20px 16px 90px;
  font-size: 11px; color: #a3a7a5; text-align: center;
}
.icp-footer a { color: #a3a7a5; text-decoration: none; }
.icp-footer a:active { opacity: .6; }
