/* ============================================================
   外语速记 · 设计系统（克制统一：单一品牌主色 + 中性色阶）
   ============================================================ */
.word-bank-app {
  --wb-bg: #f4f6fb;
  --wb-surface: #ffffff;
  --wb-surface-2: #f8fafc;
  --wb-ink: #0f172a;
  --wb-ink-2: #334155;
  --wb-muted: #64748b;
  --wb-faint: #94a3b8;
  --wb-line: #e8ebf2;
  --wb-line-strong: #d7dce7;
  --wb-brand: #4f46e5;
  --wb-brand-strong: #4338ca;
  --wb-brand-soft: #eef2ff;
  --wb-brand-soft-2: #e0e7ff;
  --wb-brand-ink: #3730a3;
  --wb-success: #059669;
  --wb-danger: #e11d48;
  --wb-radius: 16px;
  --wb-radius-sm: 12px;
  --wb-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -14px rgba(15, 23, 42, .14);
  --wb-shadow-hover: 0 2px 6px rgba(15, 23, 42, .05), 0 18px 44px -18px rgba(15, 23, 42, .22);
  --wb-topbar-h: 64px;

  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background:
    radial-gradient(1100px 520px at 50% -12%, var(--wb-brand-soft) 0%, rgba(238, 242, 255, 0) 55%),
    var(--wb-bg);
  color: var(--wb-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 浏览器表面细节：选区、聚焦环、滚动条 */
.word-bank-app ::selection { background: var(--wb-brand-soft-2); color: var(--wb-brand-ink); }
.word-bank-app :where(button):focus-visible {
  outline: 2px solid var(--wb-brand);
  outline-offset: 2px;
}
.word-bank-app .wb-scroll { scrollbar-width: thin; scrollbar-color: var(--wb-line-strong) transparent; }
.word-bank-app .wb-scroll::-webkit-scrollbar { width: 9px; height: 9px; }
.word-bank-app .wb-scroll::-webkit-scrollbar-thumb {
  background: var(--wb-line-strong); border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box;
}
.word-bank-app .wb-scroll::-webkit-scrollbar-thumb:hover { background: var(--wb-faint); background-clip: padding-box; }
.word-bank-app .wb-scroll::-webkit-scrollbar-track { background: transparent; }

/* 按钮重置（零特异性，便于覆盖） */
.word-bank-app :where(button) {
  font: inherit; color: inherit; background: none; border: none;
  padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}

/* ---------------- 外壳与顶栏 ---------------- */
.word-bank-app .wb-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.word-bank-app .wb-topbar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  /* 顶部留白，避开固定的全局导航浮层 */
  padding: calc(var(--wb-topbar-h) - 36px) 32px 14px;
}
.word-bank-app .wb-topbar h1 {
  margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.02em; color: var(--wb-ink);
}
.word-bank-app .wb-total {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--wb-muted);
  background: var(--wb-surface); border: 1px solid var(--wb-line);
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
}
.word-bank-app .wb-total::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wb-brand);
}
.word-bank-app .wb-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  color: var(--wb-ink-2); background: var(--wb-surface);
  border: 1px solid var(--wb-line);
  transition: background .18s, border-color .18s, color .18s, transform .12s;
}
.word-bank-app .wb-icon-btn:hover { background: var(--wb-brand-soft); border-color: var(--wb-brand-soft-2); color: var(--wb-brand); }
.word-bank-app .wb-icon-btn:active { transform: scale(.94); }
.word-bank-app .wb-icon-btn svg { width: 18px; height: 18px; }
.word-bank-app .wb-topbar-spacer { width: 38px; flex: none; }

.word-bank-app .wb-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.word-bank-app .wb-content { padding: 6px 32px 48px; max-width: 1180px; margin: 0 auto; }

/* ---------------- 分类导航芯片（sticky） ---------------- */
.word-bank-app .wb-nav {
  position: sticky; top: 0; z-index: 20;
  margin: 0 0 24px; padding: 11px 32px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  background: rgba(244, 246, 251, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(232, 235, 242, .7);
}
.word-bank-app .wb-nav::-webkit-scrollbar { display: none; }
.word-bank-app .wb-nav-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  color: var(--wb-muted); background: var(--wb-surface);
  border: 1px solid var(--wb-line);
  transition: background .18s, color .18s, border-color .18s, transform .12s;
}
.word-bank-app .wb-nav-chip:hover { color: var(--wb-brand); border-color: var(--wb-brand-soft-2); }
.word-bank-app .wb-nav-chip:active { transform: scale(.95); }
.word-bank-app .wb-nav-chip.is-active {
  color: #fff; background: var(--wb-brand); border-color: var(--wb-brand);
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .55);
}
.word-bank-app .wb-nav-chip .wb-nav-count {
  font-size: 12px; font-weight: 700; opacity: .75;
  font-variant-numeric: tabular-nums;
}

/* ---------------- 继续学习面板 ---------------- */
.word-bank-app .wb-resume {
  display: flex; align-items: center; gap: 16px;
  background: var(--wb-surface); border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius); padding: 18px 20px; margin-bottom: 30px;
  box-shadow: var(--wb-shadow);
}
.word-bank-app .wb-resume .ico {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--wb-brand-soft); color: var(--wb-brand);
}
.word-bank-app .wb-resume .ico svg { width: 22px; height: 22px; }
.word-bank-app .wb-resume .text { flex: 1; min-width: 0; }
.word-bank-app .wb-resume .text .t { font-size: 15px; font-weight: 700; color: var(--wb-ink); }
.word-bank-app .wb-resume .text .s { font-size: 13px; color: var(--wb-muted); margin-top: 3px; }
.word-bank-app .wb-resume .go {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 650; white-space: nowrap;
  color: #fff; background: var(--wb-brand);
  transition: background .18s, transform .12s;
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .6);
}
.word-bank-app .wb-resume .go:hover { background: var(--wb-brand-strong); }
.word-bank-app .wb-resume .go:active { transform: scale(.96); }

/* ---------------- 分类板块 ---------------- */
.word-bank-app .wb-cat-block { margin-bottom: 34px; scroll-margin-top: 72px; }
.word-bank-app .wb-cat-title {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px;
}
.word-bank-app .wb-cat-title h2 {
  margin: 0; font-size: 16.5px; font-weight: 720; letter-spacing: -.01em; color: var(--wb-ink);
}
.word-bank-app .wb-cat-title span { font-size: 13px; color: var(--wb-faint); }

.word-bank-app .wb-dict-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px;
}
.word-bank-app .wb-dict {
  text-align: left; width: 100%;
  background: var(--wb-surface); border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius); padding: 16px 17px 15px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.word-bank-app .wb-dict:hover {
  transform: translateY(-3px); border-color: var(--wb-brand-soft-2); box-shadow: var(--wb-shadow-hover);
}
.word-bank-app .wb-dict:active { transform: translateY(-1px); }
.word-bank-app .wb-dict-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.word-bank-app .wb-dict-head .nm { font-size: 15px; font-weight: 700; color: var(--wb-ink); line-height: 1.35; }
.word-bank-app .wb-dict-head .pct {
  flex: none; font-size: 12.5px; font-weight: 700; color: var(--wb-brand);
  font-variant-numeric: tabular-nums;
}
.word-bank-app .wb-dict .ds { font-size: 12.5px; color: var(--wb-muted); margin: 5px 0 13px; line-height: 1.45; }
.word-bank-app .wb-dict .count { font-size: 12px; color: var(--wb-faint); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.word-bank-app .wb-dict .bar { height: 6px; border-radius: 999px; background: var(--wb-line); overflow: hidden; }
.word-bank-app .wb-dict .fill {
  height: 100%; border-radius: 999px; background: var(--wb-brand);
  transition: width .5s cubic-bezier(.22, 1, .36, 1);
}
.word-bank-app .wb-dict .fill.is-complete { background: var(--wb-success); }

/* ---------------- 词典详情（章节页） ---------------- */
.word-bank-app .wb-dict-hero {
  background: var(--wb-surface); border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius); padding: 24px 26px; margin-bottom: 26px;
  box-shadow: var(--wb-shadow);
}
.word-bank-app .wb-dict-hero h2 { margin: 0; font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.word-bank-app .wb-dict-hero .row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.word-bank-app .wb-dict-hero .bar { flex: 1; height: 8px; border-radius: 999px; background: var(--wb-line); overflow: hidden; }
.word-bank-app .wb-dict-hero .fill { height: 100%; border-radius: 999px; background: var(--wb-brand); transition: width .5s cubic-bezier(.22,1,.36,1); }
.word-bank-app .wb-dict-hero .pct { font-size: 13.5px; font-weight: 700; color: var(--wb-brand); min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.word-bank-app .wb-dict-hero .meta { font-size: 13px; color: var(--wb-muted); margin-top: 12px; }
.word-bank-app .wb-dict-hero .hero-desc { margin: 8px 0 0; font-size: 13.5px; color: var(--wb-muted); line-height: 1.5; }
.word-bank-app .wb-dict-hero .hero-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 20px; flex-wrap: wrap;
}
.word-bank-app .wb-dict-hero .hero-actions .wb-primary { flex: none; }

.word-bank-app .wb-section-label {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px;
}
.word-bank-app .wb-section-label .lb { font-size: 14.5px; font-weight: 700; color: var(--wb-ink-2); }
.word-bank-app .wb-mode-switch { display: inline-flex; gap: 4px; background: var(--wb-surface); border: 1px solid var(--wb-line); border-radius: 999px; padding: 4px; }
.word-bank-app .wb-mode {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--wb-muted);
  transition: background .18s, color .18s;
}
.word-bank-app .wb-mode:hover { color: var(--wb-brand); }
.word-bank-app .wb-mode.is-active { background: var(--wb-brand); color: #fff; box-shadow: 0 4px 12px -5px rgba(79,70,229,.6); }

.word-bank-app .wb-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 12px;
  font-size: 14.5px; font-weight: 700; color: #fff; background: var(--wb-brand);
  transition: background .18s, transform .12s, box-shadow .18s;
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .65);
}
.word-bank-app .wb-primary:hover { background: var(--wb-brand-strong); }
.word-bank-app .wb-primary:active { transform: scale(.97); }
.word-bank-app .wb-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-size: 14.5px; font-weight: 650; color: var(--wb-ink-2);
  background: var(--wb-surface); border: 1px solid var(--wb-line);
  transition: border-color .18s, color .18s, background .18s;
}
.word-bank-app .wb-ghost:hover { border-color: var(--wb-brand-soft-2); color: var(--wb-brand); background: var(--wb-brand-soft); }

.word-bank-app .wb-chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.word-bank-app .wb-chapter {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 20px 12px; border-radius: var(--wb-radius-sm);
  background: var(--wb-surface); border: 1px solid var(--wb-line);
  transition: transform .16s, border-color .18s, box-shadow .2s, background .18s;
}
.word-bank-app .wb-chapter:hover { transform: translateY(-2px); border-color: var(--wb-brand-soft-2); box-shadow: var(--wb-shadow-hover); }
.word-bank-app .wb-chapter .chapter-no { font-size: 14px; font-weight: 700; color: var(--wb-ink-2); font-variant-numeric: tabular-nums; }
.word-bank-app .wb-chapter .chapter-ico { color: var(--wb-faint); display: inline-flex; }
.word-bank-app .wb-chapter .chapter-ico svg { width: 17px; height: 17px; }
.word-bank-app .wb-chapter.is-done { background: var(--wb-brand-soft); border-color: var(--wb-brand-soft-2); }
.word-bank-app .wb-chapter.is-done .chapter-no { color: var(--wb-brand-ink); }
.word-bank-app .wb-chapter.is-done .chapter-ico { color: var(--wb-success); }

/* ---------------- 练习页 ---------------- */
.word-bank-app .wb-practice { padding: 56px 24px 30px; max-width: 860px; margin: 0 auto; }
.word-bank-app .wb-practice .top { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.word-bank-app .wb-practice-progress {
  flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0;
}
.word-bank-app .wb-practice-progress .count {
  font-size: 13px; font-weight: 700; color: var(--wb-muted); font-variant-numeric: tabular-nums;
}
.word-bank-app .wb-practice-progress .bar { height: 8px; border-radius: 999px; background: var(--wb-line); overflow: hidden; }
.word-bank-app .wb-practice-progress .fill { height: 100%; border-radius: 999px; background: var(--wb-brand); transition: width .4s ease; }

.word-bank-app .wb-stage-wrap { display: flex; flex-direction: column; align-items: center; }
.word-bank-app .wb-stage {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 3px;
  padding: 10px 4px; border-radius: 14px;
}
.word-bank-app .wb-stage.is-shake { animation: wb-shake .4s cubic-bezier(.36, .07, .19, .97); }
@keyframes wb-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.word-bank-app .wb-word { display: inline-flex; align-items: center; gap: 3px; }
.word-bank-app .wb-letter {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 88px; padding: 0 6px;
  font-size: 58px; font-weight: 700; line-height: 1;
  color: var(--wb-faint); border-bottom: 4px solid var(--wb-line-strong);
  transition: color .15s, border-color .15s;
}
.word-bank-app .wb-letter-gap { min-width: 28px; border-bottom: none; }
.word-bank-app .wb-letter-blank { color: var(--wb-faint); }
.word-bank-app .wb-letter.is-pending { color: var(--wb-ink-2); border-bottom-color: var(--wb-line-strong); }
.word-bank-app .wb-letter.is-current { color: var(--wb-brand); border-bottom-color: var(--wb-brand); }
.word-bank-app .wb-letter.is-correct { color: var(--wb-ink); border-bottom-color: var(--wb-success); }
.word-bank-app .wb-letter.is-wrong { color: var(--wb-danger); border-bottom-color: var(--wb-danger); }

.word-bank-app .wb-speak-big {
  margin-top: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; border-radius: 50%;
  color: #fff; background: var(--wb-brand);
  box-shadow: 0 12px 26px -10px rgba(79, 70, 229, .75);
  transition: transform .14s, background .18s, box-shadow .18s;
}
.word-bank-app .wb-speak-big:hover { background: var(--wb-brand-strong); box-shadow: 0 16px 30px -10px rgba(79, 70, 229, .85); }
.word-bank-app .wb-speak-big:active { transform: scale(.92); }
.word-bank-app .wb-speak-big svg { width: 30px; height: 30px; }

.word-bank-app .wb-phonetic { margin-top: 22px; font-size: 25px; font-weight: 600; color: var(--wb-ink-2); font-variant-numeric: tabular-nums; }
.word-bank-app .wb-phonetic span { font-size: 14px; font-weight: 700; color: var(--wb-faint); margin-right: 8px; letter-spacing: .04em; }

/* 口音切换：美式 / 英式 */
.word-bank-app .wb-accent { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 22px; }
.word-bank-app .wb-accent-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--wb-surface); border: 1px solid var(--wb-line); border-radius: 999px; box-shadow: 0 8px 20px -14px rgba(15, 23, 42, .35); }
.word-bank-app .wb-accent-btn { border: 0; background: transparent; color: var(--wb-faint); font-size: 14px; font-weight: 700; padding: 7px 20px; border-radius: 999px; cursor: pointer; letter-spacing: .02em; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.word-bank-app .wb-accent-btn:hover { color: var(--wb-brand); }
.word-bank-app .wb-accent-btn.is-active { color: #fff; background: var(--wb-brand); box-shadow: 0 8px 16px -8px rgba(79, 70, 229, .75); }
.word-bank-app .wb-accent .wb-phonetic { margin-top: 0; }
.word-bank-app .wb-notation { margin-top: 10px; font-size: 28px; font-weight: 700; color: var(--wb-ink); }
.word-bank-app .wb-trans { margin-top: 14px; font-size: 20px; font-weight: 650; color: var(--wb-ink-2); text-align: center; max-width: 820px; line-height: 1.5; }
.word-bank-app .wb-trans .hint-tag { font-size: 13px; font-weight: 600; color: var(--wb-faint); margin-right: 8px; }

.word-bank-app .wb-actions-row { display: flex; gap: 10px; margin-top: 22px; }
.word-bank-app .wb-speak, .word-bank-app .wb-peek {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 650;
  background: var(--wb-surface); border: 1px solid var(--wb-line); color: var(--wb-ink-2);
  transition: border-color .18s, color .18s, background .18s;
}
.word-bank-app .wb-speak:hover, .word-bank-app .wb-peek:hover { border-color: var(--wb-brand-soft-2); color: var(--wb-brand); background: var(--wb-brand-soft); }
.word-bank-app .wb-speak svg, .word-bank-app .wb-peek svg { width: 16px; height: 16px; }

/* 虚拟键盘 */
.word-bank-app .wb-keyboard { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; width: 100%; max-width: 880px; }
.word-bank-app .wb-key-row { display: flex; justify-content: center; gap: 8px; }
.word-bank-app .wb-key {
  flex: 1; max-width: 60px; height: 56px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 650; color: var(--wb-ink-2);
  background: var(--wb-surface); border: 1px solid var(--wb-line);
  box-shadow: 0 2px 0 var(--wb-line);
  transition: transform .1s, background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.word-bank-app .wb-key:hover { border-color: var(--wb-brand-soft-2); color: var(--wb-brand); }
.word-bank-app .wb-key:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--wb-line); }
.word-bank-app .wb-key.is-next {
  background: var(--wb-brand); border-color: var(--wb-brand); color: #fff;
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .7), 0 2px 0 var(--wb-brand-strong);
}
.word-bank-app .wb-key.wb-key-wide { max-width: 84px; flex: 1.6; }

/* ---------------- 结算页 ---------------- */
.word-bank-app .wb-result { max-width: 640px; margin: 0 auto; padding: 52px 24px 30px; text-align: center; }
.word-bank-app .wb-result .badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 18px;
  background: var(--wb-brand-soft); color: var(--wb-brand);
}
.word-bank-app .wb-result .badge svg { width: 34px; height: 34px; }
.word-bank-app .wb-result h2 { margin: 0 0 6px; font-size: 23px; font-weight: 750; letter-spacing: -.02em; }
.word-bank-app .wb-result .sub { font-size: 14px; color: var(--wb-muted); margin-bottom: 26px; }
.word-bank-app .result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
.word-bank-app .result-grid .cell {
  background: var(--wb-surface); border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-sm); padding: 16px 14px;
}
.word-bank-app .result-grid .cell .v { font-size: 24px; font-weight: 750; color: var(--wb-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.word-bank-app .result-grid .cell .l { font-size: 12.5px; color: var(--wb-muted); margin-top: 4px; }
.word-bank-app .result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------- 错误状态 ---------------- */
.word-bank-app .wb-error {
  max-width: 460px; margin: 60px auto 0; padding: 32px 24px; text-align: center;
  background: var(--wb-surface); border: 1px solid var(--wb-line); border-radius: var(--wb-radius);
  box-shadow: var(--wb-shadow);
}
.word-bank-app .wb-error .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 14px;
  background: var(--wb-brand-soft); color: var(--wb-brand);
}
.word-bank-app .wb-error .ico svg { width: 26px; height: 26px; }
.word-bank-app .wb-error p { margin: 0 0 20px; font-size: 14.5px; color: var(--wb-muted); }

/* ---------------- 首页筛选栏（语言/分类/版本/搜索） ---------------- */
.word-bank-app .wb-filter-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-direction: column; gap: 11px;
  padding: 14px 32px 13px;
  background: rgba(244, 246, 251, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(13px); backdrop-filter: saturate(1.4) blur(13px);
  border-bottom: 1px solid rgba(232, 235, 242, .75);
}
.word-bank-app .wb-tabs,
.word-bank-app .wb-chips,
.word-bank-app .wb-edition-row {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.word-bank-app .wb-tabs::-webkit-scrollbar,
.word-bank-app .wb-chips::-webkit-scrollbar,
.word-bank-app .wb-edition-row::-webkit-scrollbar { display: none; }

.word-bank-app .wb-tab {
  flex: none; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  color: var(--wb-muted); background: var(--wb-surface); border: 1px solid var(--wb-line);
  transition: background .18s, color .18s, border-color .18s, transform .12s;
}
.word-bank-app .wb-tab:hover { color: var(--wb-brand); border-color: var(--wb-brand-soft-2); }
.word-bank-app .wb-tab:active { transform: scale(.96); }
.word-bank-app .wb-tab.is-active {
  color: #fff; background: var(--wb-brand); border-color: var(--wb-brand);
  box-shadow: 0 7px 17px -7px rgba(79, 70, 229, .6);
}

.word-bank-app .wb-chip {
  flex: none; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 650; white-space: nowrap;
  color: var(--wb-muted); background: var(--wb-surface); border: 1px solid var(--wb-line);
  transition: background .16s, color .16s, border-color .16s;
}
.word-bank-app .wb-chip:hover { color: var(--wb-brand); border-color: var(--wb-brand-soft-2); }
.word-bank-app .wb-chip.is-active {
  color: var(--wb-brand-ink); background: var(--wb-brand-soft); border-color: var(--wb-brand-soft-2);
}

.word-bank-app .wb-edition-row { gap: 7px; }
.word-bank-app .wb-ed {
  flex: none; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650; white-space: nowrap;
  color: var(--wb-faint); background: transparent;
  transition: color .16s, background .16s;
}
.word-bank-app .wb-ed:hover { color: var(--wb-brand); }
.word-bank-app .wb-ed.is-active { color: var(--wb-brand); background: var(--wb-brand-soft); }

.word-bank-app .wb-search {
  display: flex; align-items: center; gap: 9px;
  background: var(--wb-surface); border: 1px solid var(--wb-line);
  border-radius: 12px; padding: 9px 13px;
}
.word-bank-app .wb-search:focus-within { border-color: var(--wb-brand-soft-2); box-shadow: 0 0 0 3px var(--wb-brand-soft); }
.word-bank-app .wb-search svg { width: 16px; height: 16px; color: var(--wb-faint); flex: none; }
.word-bank-app .wb-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font: inherit; font-size: 13.5px; color: var(--wb-ink);
}
.word-bank-app .wb-search input::placeholder { color: var(--wb-faint); }

.word-bank-app .wb-dict-grid.is-empty { display: block; }
.word-bank-app .wb-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 70px 20px; color: var(--wb-muted);
}
.word-bank-app .wb-empty svg { width: 38px; height: 38px; color: var(--wb-faint); }
.word-bank-app .wb-empty p { margin: 0; font-size: 14px; }

/* ---------------- 练习页（工具栏 + 舞台 + 统计） ---------------- */
.word-bank-app .wb-practice-wrap {
  display: flex; flex-direction: column; height: 100%; min-height: 0;
}
.word-bank-app .wb-practice-toolbar {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: calc(var(--wb-topbar-h) - 40px) 24px 12px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(13px); backdrop-filter: saturate(1.4) blur(13px);
  border-bottom: 1px solid var(--wb-line);
}
.word-bank-app .wb-tool {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  color: var(--wb-ink-2); background: var(--wb-surface); border: 1px solid var(--wb-line);
  transition: background .16s, border-color .16s, color .16s, transform .12s;
}
.word-bank-app .wb-tool:hover { background: var(--wb-brand-soft); border-color: var(--wb-brand-soft-2); color: var(--wb-brand); }
.word-bank-app .wb-tool:active { transform: scale(.94); }
.word-bank-app .wb-tool.is-on { color: var(--wb-brand); background: var(--wb-brand-soft); border-color: var(--wb-brand-soft-2); }
.word-bank-app .wb-tool svg { width: 18px; height: 18px; }
.word-bank-app .wb-ctx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.word-bank-app .wb-ctx .ctx-name {
  font-size: 14.5px; font-weight: 720; color: var(--wb-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.word-bank-app .wb-ctx .ctx-ch { font-size: 12.5px; color: var(--wb-muted); font-variant-numeric: tabular-nums; }
.word-bank-app .wb-tool-group { flex: none; display: flex; gap: 8px; }

.word-bank-app .wb-practice-body {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 24px 24px 28px;
  display: flex; flex-direction: column; align-items: center;
  max-width: 1080px; width: 100%; margin: 0 auto;
}
.word-bank-app .wb-stage-wrap {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; padding: 26px 0 10px;
}
.word-bank-app .wb-next-word {
  position: absolute; top: 0; right: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  color: var(--wb-brand); background: var(--wb-surface); border: 1px solid var(--wb-brand-soft-2);
  transition: background .16s, transform .12s, box-shadow .18s;
}
.word-bank-app .wb-next-word:hover { background: var(--wb-brand-soft); box-shadow: var(--wb-shadow); }
.word-bank-app .wb-next-word:active { transform: scale(.96); }
.word-bank-app .wb-next-word svg { width: 15px; height: 15px; }

/* 实时统计五列 */
.word-bank-app .wb-stat-bar {
  width: 100%; margin: 22px 0 4px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.word-bank-app .wb-stat {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--wb-surface); border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius-sm); padding: 11px 8px;
}
.word-bank-app .wb-stat .v {
  font-size: 19px; font-weight: 750; color: var(--wb-ink); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.word-bank-app .wb-stat .l { font-size: 12px; color: var(--wb-muted); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 760px) {
  .word-bank-app { --wb-topbar-h: 58px; }
  .word-bank-app .wb-topbar { padding: calc(var(--wb-topbar-h) - 34px) 18px 12px; }
  .word-bank-app .wb-topbar h1 { font-size: 19px; }
  .word-bank-app .wb-practice { padding-top: 54px; padding-left: 18px; padding-right: 18px; }
  .word-bank-app .wb-result { padding-top: 48px; }
  .word-bank-app .wb-content { padding: 4px 18px 40px; }
  .word-bank-app .wb-nav { margin: 0 0 18px; padding: 9px 18px; }
  .word-bank-app .wb-dict-grid { grid-template-columns: 1fr; gap: 12px; }
  .word-bank-app .wb-chapter-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .word-bank-app .wb-letter { min-width: 30px; height: 58px; padding: 0 3px; font-size: 38px; border-bottom-width: 3px; }
  .word-bank-app .wb-letter-gap { min-width: 18px; }
  .word-bank-app .wb-speak-big { width: 54px; height: 54px; margin-top: 20px; }
  .word-bank-app .wb-speak-big svg { width: 24px; height: 24px; }
  .word-bank-app .wb-phonetic { font-size: 19px; margin-top: 18px; }
  .word-bank-app .wb-phonetic span { font-size: 12px; }
  .word-bank-app .wb-accent { gap: 10px; margin-top: 18px; }
  .word-bank-app .wb-accent-btn { font-size: 13px; padding: 6px 16px; }
  .word-bank-app .wb-notation { font-size: 22px; }
  .word-bank-app .wb-trans { font-size: 17px; margin-top: 12px; }
  .word-bank-app .wb-keyboard { gap: 7px; margin-top: 14px; }
  .word-bank-app .wb-key { height: 48px; max-width: 44px; border-radius: 9px; font-size: 14px; }
  .word-bank-app .wb-resume { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .word-bank-app .wb-resume .go { width: 100%; justify-content: center; }
  .word-bank-app .result-grid { grid-template-columns: 1fr 1fr; }
  .word-bank-app .wb-filter-bar { padding: 11px 18px 12px; gap: 9px; }
  .word-bank-app .wb-practice-toolbar { padding: calc(var(--wb-topbar-h) - 38px) 16px 10px; gap: 9px; }
  .word-bank-app .wb-tool-group { gap: 6px; }
  .word-bank-app .wb-practice-body { padding: 20px 14px 26px; }
  .word-bank-app .wb-stage-wrap { padding: 18px 0 6px; }
  .word-bank-app .wb-next-word { padding: 7px 12px; font-size: 12px; }
  .word-bank-app .wb-stat-bar { gap: 6px; margin: 16px 0 2px; }
  .word-bank-app .wb-stat { padding: 8px 3px; border-radius: 10px; gap: 2px; }
  .word-bank-app .wb-stat .v { font-size: 15px; }
  .word-bank-app .wb-stat .l { font-size: 10.5px; }

  /* 触屏：芯片/标签最小高度，降低误触 */
  .word-bank-app .wb-chip,
  .word-bank-app .wb-tab,
  .word-bank-app .wb-nav-chip { min-height: 40px; }
  .word-bank-app .wb-ed { min-height: 38px; }
  /* 横滑筛选区右侧渐隐，提示仍有内容可滑动 */
  .word-bank-app .wb-tabs,
  .word-bank-app .wb-chips,
  .word-bank-app .wb-edition-row {
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
}

/* 速记词卡：加入单词本 */
.wb-bookmark{display:inline-flex;align-items:center;gap:6px;border:1px solid #cfe6ea;background:#fff;border-radius:12px;padding:8px 14px;font:inherit;cursor:pointer;color:#3f6170}
.wb-bookmark.is-on{background:#e2f6f8;border-color:#9fdfe6;color:#0b8fa0}
.wb-bookmark svg{width:18px;height:18px}

/* ===================================================================
   外语速记 · 手机端黏土版（≤640px）
   语言/分类改为完整铺开的胶囊宫格（不再横滑），版本收进底部抽屉
   =================================================================== */
#word-bank-view.word-bank-app .wb-back,
#word-bank-view.word-bank-app .wb-ed-open,
#word-bank-view.word-bank-app .wb-sheet { display: none; }

@media (max-width: 640px) {
  #word-bank-view.word-bank-app {
    background:
      radial-gradient(120% 55% at 90% -8%, rgba(255, 226, 192, .5), transparent 60%),
      radial-gradient(90% 40% at -10% 0%, rgba(255, 224, 233, .45), transparent 55%),
      #F7F2E9;
    color: #2B2620;
    --wb-ink: #2B2620;
    --wb-ink-2: #55483A;
    --wb-muted: #8C7B65;
    --wb-faint: #B0A08A;
    --wb-line: #F0E6D6;
    --wb-line-strong: #E6D8C2;
    --wb-brand: #F4913A;
    --wb-brand-strong: #D97A22;
    --wb-brand-soft: #FFF1E0;
    --wb-brand-soft-2: #FFE0BE;
    --wb-brand-ink: #B4620F;
    --wb-radius: 20px;
    --wb-radius-sm: 14px;
  }
  #word-bank-view .wb-shell { background: transparent; }

  /* 顶栏 */
  #word-bank-view .wb-topbar {
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 10px;
    gap: 10px; justify-content: flex-start;
  }
  #word-bank-view.word-bank-app .wb-back {
    display: inline-flex; align-items: center; justify-content: center;
    flex: none; width: 40px; height: 40px; border-radius: 14px;
    background: #fff; color: #6B5A45;
    box-shadow: 0 6px 16px -10px rgba(120, 88, 46, .8), inset 0 -2px 0 rgba(237, 222, 200, .9);
  }
  #word-bank-view .wb-back svg { width: 18px; height: 18px; }
  #word-bank-view .wb-topbar h1 { font-size: 22px; font-weight: 800; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #word-bank-view .wb-total {
    flex: none; font-size: 11.5px; padding: 6px 10px; background: #FFFFFFCC; border-color: #F0E6D6; color: #8C7B65;
  }
  #word-bank-view .wb-total::before { background: #F4913A; width: 6px; height: 6px; }

  /* 筛选区：全部铺开，无横滑 */
  #word-bank-view .wb-filter-bar {
    position: static; padding: 0 16px 12px; gap: 10px;
    background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  #word-bank-view .wb-tabs {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    overflow: visible; -webkit-mask-image: none; mask-image: none;
  }
  #word-bank-view .wb-chips {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    overflow: visible; -webkit-mask-image: none; mask-image: none;
  }
  #word-bank-view .wb-tab, #word-bank-view .wb-chip {
    min-height: 38px; padding: 0 6px; border-radius: 13px; font-size: 13.5px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1.5px solid #F1E5D3; color: #6B5A45; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #word-bank-view .wb-tab.is-active {
    background: linear-gradient(180deg, #FFB25C, #F4913A); border-color: #F4913A; color: #fff;
    box-shadow: 0 8px 18px -10px rgba(244, 145, 58, .95);
  }
  #word-bank-view .wb-chip.is-active {
    background: #FFF3E4; border-color: #F8CF9C; color: #B4620F;
  }
  #word-bank-view .wb-edition-row { display: none; }
  #word-bank-view .wb-search {
    background: #fff; border: 1.5px solid #F1E5D3; border-radius: 14px; padding: 10px 13px;
    box-shadow: 0 8px 18px -18px rgba(120, 88, 46, .9);
  }
  #word-bank-view .wb-search input { font-size: 14px; }
  #word-bank-view.word-bank-app .wb-ed-open {
    display: flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 14px; border-radius: 14px;
    background: #fff; border: 1.5px solid #F1E5D3; color: #6B5A45; font-size: 13.5px; font-weight: 700;
  }
  #word-bank-view .wb-ed-open span { flex: 1 1 auto; text-align: left; }
  #word-bank-view .wb-ed-open svg { width: 15px; height: 15px; color: #B0A08A; }
  #word-bank-view .wb-ed-open svg:first-child { color: #F4913A; }

  /* 列表 */
  #word-bank-view .wb-content { padding: 0 16px 28px; }
  #word-bank-view .wb-resume {
    display: grid; width: 100%; box-sizing: border-box;
    grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center;
    padding: 14px; border-radius: 20px; border: 1.5px solid #F3E7D5; background: #fff;
    box-shadow: 0 14px 30px -26px rgba(140, 100, 50, .95); margin-bottom: 12px;
  }
  #word-bank-view .wb-resume .ico {
    width: 40px; height: 40px; border-radius: 13px; background: #FFF1E0; color: #F4913A;
    display: grid; place-items: center; grid-row: span 2;
  }
  #word-bank-view .wb-resume .ico svg { width: 19px; height: 19px; }
  #word-bank-view .wb-resume .t { font-size: 14.5px; font-weight: 800; color: #3A3026; }
  #word-bank-view .wb-resume .s { font-size: 11.5px; color: #8C7B65; }
  #word-bank-view .wb-resume .go {
    grid-column: 1 / -1; margin-top: 8px; min-height: 42px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: linear-gradient(180deg, #FFB25C, #F4913A); color: #fff; font-size: 15px; font-weight: 800;
    box-shadow: 0 10px 20px -12px rgba(244, 145, 58, .95);
  }
  #word-bank-view .wb-dict-grid { grid-template-columns: 1fr; gap: 10px; }
  #word-bank-view .wb-dict {
    padding: 14px; border-radius: 20px; border: 1.5px solid #F3E7D5; background: #fff;
    box-shadow: 0 14px 30px -26px rgba(140, 100, 50, .95); gap: 5px;
  }
  #word-bank-view .wb-dict .nm { font-size: 15.5px; font-weight: 800; color: #3A3026; }
  #word-bank-view .wb-dict .pct { font-size: 12.5px; color: #F4913A; font-weight: 800; }
  #word-bank-view .wb-dict .ds { font-size: 12px; color: #8C7B65; line-height: 1.45; }
  #word-bank-view .wb-dict .count { font-size: 11.5px; color: #B0A08A; }
  #word-bank-view .wb-dict .bar { height: 7px; border-radius: 999px; background: #F4EADA; margin-top: 4px; }
  #word-bank-view .wb-dict .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FFC178, #F4913A); }
  #word-bank-view .wb-empty { padding: 50px 16px; }
  #word-bank-view .wb-empty p { font-size: 13px; }

  /* 词库详情 */
  #word-bank-view .wb-dict-hero {
    padding: 16px; border-radius: 20px; border: 1.5px solid #F3E7D5; background: #fff;
    box-shadow: 0 14px 30px -26px rgba(140, 100, 50, .95);
  }
  #word-bank-view .wb-dict-hero h2 { font-size: 18px; }
  #word-bank-view .wb-dict-hero .hero-desc { font-size: 12.5px; }
  #word-bank-view .wb-dict-hero .bar { background: #F4EADA; }
  #word-bank-view .wb-dict-hero .fill { background: linear-gradient(90deg, #FFC178, #F4913A); }
  #word-bank-view .wb-dict-hero .pct { color: #F4913A; }
  #word-bank-view .wb-dict-hero .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 14px; }
  #word-bank-view .wb-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #FBF4E9; padding: 4px; border-radius: 14px; }
  #word-bank-view .wb-mode {
    min-height: 38px; border-radius: 11px; font-size: 13.5px; font-weight: 700; color: #8C7B65;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  }
  #word-bank-view .wb-mode.is-active { background: #fff; color: #B4620F; box-shadow: 0 6px 14px -12px rgba(120, 88, 46, .9); }
  #word-bank-view .wb-primary {
    min-height: 46px; border-radius: 15px; font-size: 15.5px; font-weight: 800;
    background: linear-gradient(180deg, #FFB25C, #F4913A); color: #fff;
    box-shadow: 0 10px 20px -12px rgba(244, 145, 58, .95);
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  }
  #word-bank-view .wb-section-label { margin: 16px 2px 10px; }
  #word-bank-view .wb-section-label .lb { font-size: 14.5px; font-weight: 800; color: #3A3026; }
  #word-bank-view .wb-chapter-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 9px; }
  #word-bank-view .wb-chapter {
    min-height: 58px; border-radius: 16px; border: 1.5px solid #F1E5D3; background: #fff;
    box-shadow: 0 8px 18px -20px rgba(120, 88, 46, .9);
  }
  #word-bank-view .wb-chapter.is-done { border-color: #F8CF9C; background: #FFF6EA; }
  #word-bank-view .wb-chapter .chapter-no { color: #3A3026; font-weight: 800; }

  /* 练习 */
  #word-bank-view .wb-practice-wrap { background: transparent; }
  #word-bank-view .wb-practice-toolbar {
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 10px; gap: 8px;
    background: rgba(247, 242, 233, .94); border-bottom: 1px solid #F0E4D2;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  #word-bank-view .wb-tool {
    width: 36px; height: 36px; border-radius: 12px; background: #fff; border: 1.5px solid #F1E5D3; color: #6B5A45;
  }
  #word-bank-view .wb-tool.is-on { background: #FFF1E0; border-color: #F8CF9C; color: #B4620F; }
  #word-bank-view .wb-ctx .ctx-name { font-size: 14px; color: #3A3026; }
  #word-bank-view .wb-ctx .ctx-ch { font-size: 11.5px; color: #8C7B65; }
  #word-bank-view .wb-practice-body { padding: 16px 14px 24px; }
  #word-bank-view .wb-stage-wrap { padding: 12px 0 4px; }
  #word-bank-view .wb-next-word {
    padding: 7px 13px; border-radius: 12px; font-size: 12px; color: #B4620F;
    background: #fff; border: 1.5px solid #F8CF9C; box-shadow: 0 8px 18px -20px rgba(120, 88, 46, .9);
  }
  #word-bank-view .wb-speak-big {
    width: 52px; height: 52px; border-radius: 17px; margin-top: 16px;
    background: #fff; border: 1.5px solid #F3E7D5; color: #F4913A;
    box-shadow: 0 10px 20px -16px rgba(140, 100, 50, .9);
  }
  #word-bank-view .wb-phonetic { font-size: 17px; color: #8C7B65; margin-top: 14px; }
  #word-bank-view .wb-trans { font-size: 15.5px; color: #3A3026; }
  #word-bank-view .wb-notation { font-size: 20px; color: #3A3026; }
  #word-bank-view .wb-accent-tabs { background: #FBF4E9; border: 1.5px solid #F1E5D3; box-shadow: none; }
  #word-bank-view .wb-accent-btn { border-radius: 10px; background: transparent; border: 0; color: #8C7B65; }
  #word-bank-view .wb-accent-btn.is-active { background: linear-gradient(180deg, #FFB25C, #F4913A); color: #fff; box-shadow: 0 8px 16px -12px rgba(244, 145, 58, .9); }
  #word-bank-view .wb-bookmark { background: #fff; border: 1.5px solid #F1E5D3; border-radius: 12px; color: #8C7B65; padding: 8px 14px; }
  #word-bank-view .wb-bookmark.is-on { background: #FFF1E0; border-color: #F8CF9C; color: #B4620F; }
  #word-bank-view .wb-keyboard { gap: 6px; margin-top: 12px; }
  #word-bank-view .wb-key {
    height: 46px; border-radius: 12px; background: #fff; border: 1.5px solid #F1E5D3;
    color: #463A2E; box-shadow: inset 0 -2px 0 #F3E7D5;
  }
  #word-bank-view .wb-stat-bar { gap: 6px; margin: 14px 0 2px; }
  #word-bank-view .wb-stat { padding: 9px 3px; border-radius: 12px; background: #fff; border: 1.5px solid #F3E7D5; }
  #word-bank-view .wb-stat .v { font-size: 15px; color: #3A3026; }
  #word-bank-view .wb-stat .l { font-size: 10px; color: #8C7B65; }

  /* 结果 */
  #word-bank-view .wb-result { padding: 24px 16px 28px; }
  #word-bank-view .wb-result h2 { font-size: 22px; color: #3A3026; }
  #word-bank-view .wb-result .sub { color: #8C7B65; font-size: 12.5px; }
  #word-bank-view .result-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  #word-bank-view .result-grid .cell {
    padding: 14px 8px; border-radius: 18px; border: 1.5px solid #F3E7D5; background: #fff;
    box-shadow: 0 12px 26px -24px rgba(140, 100, 50, .95);
  }
  #word-bank-view .result-grid .v { font-size: 22px; color: #3A3026; }
  #word-bank-view .result-grid .l { font-size: 11.5px; color: #8C7B65; }
  #word-bank-view .result-actions { flex-direction: column; gap: 9px; }
  #word-bank-view .result-actions .wb-ghost { width: 100%; min-height: 44px; border-radius: 14px; border: 1.5px solid #EEE1CD; background: #fff; color: #8A7255; font-weight: 700; }

  /* 版本抽屉 */
  #word-bank-view.word-bank-app .wb-sheet {
    display: block; position: fixed; inset: 0; z-index: 95;
    background: rgba(43, 32, 20, .42);
    animation: wb-fade .18s ease;
  }
  #word-bank-view .wb-sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-height: 72vh; display: flex; flex-direction: column;
    background: #FCF8F1; border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 40px -24px rgba(60, 40, 20, .6);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    animation: wb-up .22s cubic-bezier(.22, 1, .36, 1);
  }
  #word-bank-view .wb-sheet-panel header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px 10px;
  }
  #word-bank-view .wb-sheet-panel header strong { font-size: 16.5px; font-weight: 800; color: #3A3026; }
  #word-bank-view .wb-sheet-close {
    width: 32px; height: 32px; border-radius: 11px; background: #fff; border: 1.5px solid #F1E5D3;
    display: grid; place-items: center; color: #8C7B65;
  }
  #word-bank-view .wb-sheet-body { overflow-y: auto; padding: 4px 14px 8px; display: grid; gap: 8px; }
  #word-bank-view .wb-sheet-opt {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 46px; padding: 0 14px; border-radius: 14px;
    background: #fff; border: 1.5px solid #F1E5D3; color: #55483A; font-size: 14.5px; font-weight: 650;
  }
  #word-bank-view .wb-sheet-opt svg { width: 16px; height: 16px; opacity: 0; color: #F4913A; }
  #word-bank-view .wb-sheet-opt.is-active { border-color: #F8CF9C; background: #FFF3E4; color: #B4620F; font-weight: 800; }
  #word-bank-view .wb-sheet-opt.is-active svg { opacity: 1; }
  @keyframes wb-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
  @keyframes wb-fade { from { opacity: 0; } to { opacity: 1; } }
}
