/* 背单词 · 页面样式
 * 复用 /public/site/css/style.css 的设计令牌（--bg-card / --accent-gradient 等），
 * 本文件只写背单词自己的组件；page-shell.css 在其后引入放宽容器宽度。
 */

/* ── 页面骨架 ── */
.vocab-main { max-width: 760px; margin: 0 auto; padding-bottom: 60px; }
.v-loading { text-align: center; color: var(--text-muted); padding: 32px 0; }

.v-page-head { margin: 18px 0 14px; }
.v-page-head h2 { margin: 0; font-size: 22px; }
.v-page-head p { margin: 4px 0 0; color: var(--text-secondary); font-size: 13px; }
.v-back {
  display: inline-block; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px;
  background: var(--bg-card); color: var(--text-secondary); font-size: 13px; text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.v-back:hover { color: var(--text-primary); }

/* ── 会话头（练习页顶部：退出 + 标题 + 进度条）── */
.v-session-head { margin: 14px 0 16px; }
.v-session-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.v-session-title { font-weight: 700; font-size: 16px; }
.v-session-progress-text { margin-left: auto; color: var(--text-secondary); font-size: 13px; }
.v-progress { height: 8px; border-radius: 999px; background: var(--bg-input); overflow: hidden; }
.v-progress-fill { height: 100%; border-radius: 999px; background: var(--accent-gradient); transition: width .3s; }

/* ── 面板卡片 ── */
.v-panel {
  background: var(--bg-card); border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px; padding: 18px; margin-bottom: 14px;
}
.v-panel-title { margin: 0 0 12px; font-size: 15px; }
.v-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.v-panel-head .v-panel-title { margin-bottom: 0; }
.v-panel-tip { color: var(--text-muted); font-size: 12px; margin: 10px 0; }

/* ── Dashboard：词书头 ── */
.v-book-head {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; padding: 16px 18px;
  background: var(--accent-gradient); border-radius: 18px; color: #fff; text-decoration: none;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.v-book-head-icon { font-size: 30px; }
.v-book-head-info b { display: block; font-size: 17px; }
.v-book-head-info small { opacity: .85; font-size: 12px; }

/* 学习总览 */
.v-overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; margin-bottom: 14px; }
.v-overview-grid a { text-decoration: none; color: inherit; padding: 10px 4px; border-radius: 12px; transition: background .15s; }
.v-overview-grid a:hover { background: var(--bg-card-hover); }
.v-overview-grid b { display: block; font-size: 22px; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.v-overview-grid span { color: var(--text-secondary); font-size: 12px; }
.v-master-bar { height: 8px; border-radius: 999px; background: var(--bg-input); overflow: hidden; }
.v-master-bar > div { height: 100%; background: linear-gradient(90deg, #34d399, #10b981); border-radius: 999px; transition: width .4s; }
.v-master-text { color: var(--text-muted); font-size: 12px; display: block; margin-top: 6px; text-align: right; }
.v-streak-badge {
  font-size: 12px; color: #f59e0b; background: rgba(245, 158, 11, 0.12);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}

/* 今日任务 */
.v-task-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.v-task-row:first-of-type { border-top: none; }
.v-task-info { flex: 1; min-width: 0; }
.v-task-info b { font-size: 15px; }
.v-task-info small { display: block; color: var(--text-secondary); font-size: 12px; margin-top: 3px; }
.v-task-info .v-progress { margin: 6px 0 3px; }
.v-task-btn {
  padding: 9px 16px; border-radius: 999px; background: var(--accent-gradient); color: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; border: none; cursor: pointer;
}
.v-task-btn:hover { filter: brightness(1.1); }
.v-task-btn.done { background: var(--bg-input); color: var(--text-muted); cursor: default; }

/* 快捷练习 */
.v-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.v-action-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 8px 12px; border-radius: 14px; text-align: center; text-decoration: none;
  background: var(--bg-input); color: var(--text-primary); transition: transform .15s, background .15s;
  border: 1px solid transparent;
}
.v-action-card:hover { transform: translateY(-2px); background: var(--bg-card-hover); border-color: rgba(99, 102, 241, 0.35); }
.v-action-icon { font-size: 26px; }
.v-action-card b { font-size: 13px; }
.v-action-card small { color: var(--text-muted); font-size: 11px; }
.v-rec-badge {
  position: absolute; top: -7px; right: 8px; font-size: 10px; color: #fff;
  background: linear-gradient(135deg, #f43f5e, #f97316); padding: 2px 8px; border-radius: 999px;
}
.v-stats-strip {
  display: block; margin-top: 12px; padding: 11px 14px; border-radius: 12px; text-decoration: none;
  background: rgba(99, 102, 241, 0.1); color: var(--text-secondary); font-size: 13px; text-align: center;
}
.v-stats-strip:hover { color: var(--text-primary); }

/* 设置行 / 开关 / 步进器 */
.v-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; }
.v-switch {
  width: 46px; height: 26px; border-radius: 999px; background: var(--bg-input);
  border: none; position: relative; cursor: pointer; transition: background .2s; padding: 0;
}
.v-switch i {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #94a3b8; transition: transform .2s, background .2s;
}
.v-switch.on { background: var(--accent-gradient); }
.v-switch.on i { transform: translateX(20px); background: #fff; }
.v-stepper { display: flex; align-items: center; gap: 10px; }
.v-stepper button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--bg-input); color: var(--text-primary); font-size: 16px; cursor: pointer; line-height: 1;
}
.v-stepper button:hover { border-color: var(--accent-primary); }
.v-stepper b { min-width: 26px; text-align: center; font-size: 15px; }
.v-slider-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; color: var(--text-secondary); }
.v-slider-row b { color: var(--text-primary); }
.v-slider-row input[type=range] { flex: 1; accent-color: var(--accent-primary); }

/* 周进度图 */
.v-week-sum { color: var(--text-secondary); font-size: 13px; margin: 10px 0 12px; }
.v-week-sum b { color: var(--text-primary); }
.v-week-chart { display: flex; align-items: flex-end; gap: 4px; }
.v-week-col { flex: 1; text-align: center; min-width: 0; }
.v-week-col small { color: var(--text-muted); font-size: 10px; display: block; margin-top: 6px; white-space: nowrap; }
.v-week-bar-wrap { height: 76px; display: flex; align-items: flex-end; justify-content: center; }
.v-week-bar { width: 70%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: rgba(99, 102, 241, 0.45); transition: height .3s; }
.v-week-col.today .v-week-bar { background: var(--accent-gradient); }

/* ── 翻卡 ── */
.v-flip-wrap { perspective: 1200px; margin-bottom: 14px; }
.v-flip { position: relative; width: 100%; min-height: 320px; transform-style: preserve-3d; transition: transform .45s; cursor: pointer; }
.v-flip.flipped { transform: rotateY(180deg); }
.v-card-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--bg-card); border: 1px solid rgba(148, 163, 184, 0.15); border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; gap: 10px; text-align: center; overflow: hidden;
}
.v-card-back { transform: rotateY(180deg); align-items: flex-start; text-align: left; justify-content: flex-start; overflow-y: auto; }
.v-card-word { font-size: 40px; font-weight: 800; letter-spacing: .5px; word-break: break-all; }
.v-card-word-sm { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.v-card-img { max-height: 110px; max-width: 60%; border-radius: 14px; object-fit: contain; }
.v-card-img-sm { max-height: 90px; }
.v-phonetic { color: var(--text-secondary); font-size: 15px; }
.v-meaning { font-size: 19px; line-height: 1.55; }
.v-example { background: var(--bg-input); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.6; width: 100%; margin-top: 6px; }
.v-example p { margin: 0; }
.v-example-cn { color: var(--text-secondary); margin-top: 4px !important; }
.v-sound-btn {
  border: none; background: rgba(99, 102, 241, 0.14); border-radius: 50%;
  width: 38px; height: 38px; font-size: 17px; cursor: pointer; line-height: 1; flex-shrink: 0;
}
.v-sound-btn:hover { background: rgba(99, 102, 241, 0.3); }
.v-sound-lg { width: 48px; height: 48px; font-size: 22px; }
.v-flip-hint { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
.v-card-actions { display: flex; justify-content: center; }

/* 卡片会话的自动发音控制条 */
.v-autoplay-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 16px; font-size: 13px; color: var(--text-secondary);
}
.v-count-input {
  width: 58px; padding: 6px 8px; border-radius: 10px; text-align: center;
  background: var(--bg-input); border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-primary); font-size: 14px; outline: none;
  -moz-appearance: textfield; appearance: textfield;
}
.v-count-input:focus { border-color: var(--accent-primary); }
.v-count-input::-webkit-outer-spin-button, .v-count-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 评分按钮 */
.v-rating { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.v-rate-btn {
  padding: 12px 4px; border-radius: 14px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; color: #fff; display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.v-rate-btn small { font-size: 10px; font-weight: 400; opacity: .85; }
.v-rate-btn:active { transform: scale(.96); }
.rate-again { background: linear-gradient(135deg, #ef4444, #dc2626); }
.rate-hard { background: linear-gradient(135deg, #f59e0b, #d97706); }
.rate-good { background: linear-gradient(135deg, #10b981, #059669); }
.rate-easy { background: linear-gradient(135deg, #3b82f6, #2563eb); }

/* 完成卡 */
.v-finish-card {
  background: var(--bg-card); border: 1px solid rgba(148, 163, 184, 0.12); border-radius: 22px;
  padding: 36px 24px; text-align: center; margin-bottom: 14px;
}
.v-finish-icon { font-size: 52px; margin-bottom: 10px; }
.v-finish-card h2 { margin: 0 0 8px; }
.v-finish-sub { color: var(--text-secondary); font-size: 14px; margin: 0 0 18px; }
.v-finish-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.v-finish-actions .btn-primary-lg, .v-finish-actions .btn-ghost-lg { margin: 0; }

/* ── 选择题 ── */
.v-quiz-body { max-width: 560px; margin: 0 auto; }
.v-quiz-stem {
  background: var(--bg-card); border: 1px solid rgba(148, 163, 184, 0.15); border-radius: 20px;
  padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; text-align: center;
}
.v-quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.v-quiz-opt {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--bg-card); border: 1.5px solid rgba(148, 163, 184, 0.18); color: var(--text-primary);
  font-size: 15px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s;
}
.v-quiz-opt:hover { border-color: var(--accent-primary); }
.v-opt-key {
  width: 26px; height: 26px; border-radius: 8px; background: var(--bg-input); color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.v-opt-word { font-weight: 700; }
.v-quiz-opt.correct { border-color: #10b981; background: rgba(16, 185, 129, 0.12); }
.v-quiz-opt.picked-right { border-color: #10b981; background: rgba(16, 185, 129, 0.2); }
.v-quiz-opt.picked-wrong { border-color: #ef4444; background: rgba(239, 68, 68, 0.15); }
.v-quiz-next { margin-top: 16px; display: flex; justify-content: center; }
.v-quiz-next:empty { display: none; }

/* 复习列表（选择题/听写/打单词结算） */
.v-review-list { background: var(--bg-card); border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.12); padding: 6px 14px; margin: 14px 0; }
.v-review-head { padding: 10px 0 4px; color: var(--text-secondary); font-size: 13px; }
.v-review-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 2px; cursor: pointer;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.v-review-row:first-of-type { border-top: none; }
.v-review-row.wrong .v-review-word { color: #f87171; }
.v-review-word { font-weight: 700; min-width: 90px; }
.v-review-meaning { color: var(--text-secondary); font-size: 13px; flex: 1; text-align: right; }

/* ── 拼写 / 填空 ── */
.v-spell-body { max-width: 560px; margin: 0 auto; position: relative; }
.v-spell-hint { text-align: center; font-size: 17px; margin: 8px 0 20px; line-height: 1.5; }
.v-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 22px; }
.v-slot {
  width: 38px; height: 46px; border-radius: 10px; background: var(--bg-card);
  border: 1.5px solid rgba(148, 163, 184, 0.25); display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; text-transform: lowercase;
}
.v-slot.fixed { background: var(--bg-input); border-color: transparent; color: var(--text-muted); }
.v-slot.blank { border-style: dashed; }
.v-slot.blank.filled { border-style: solid; border-color: var(--accent-primary); }
.v-slot.good { border-color: #10b981; background: rgba(16, 185, 129, 0.15); }
.v-spell-tip { text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 18px; }
.v-spell-tip a, .v-typing-tip a, .v-extra-skip a { color: var(--accent-primary); }

/* 自定义键盘 */
.v-kb { max-width: 480px; margin: 0 auto; }
.v-kb-row { display: flex; justify-content: center; gap: 5px; margin-bottom: 6px; }
.v-kb-key {
  flex: 1; max-width: 42px; height: 44px; border-radius: 9px; border: none; cursor: pointer;
  background: var(--bg-card-hover); color: var(--text-primary); font-size: 16px; font-weight: 600;
  text-transform: lowercase; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.v-kb-key:active { transform: translateY(1px); box-shadow: none; background: rgba(99, 102, 241, 0.3); }
.v-kb-wide { max-width: 120px; flex: 2; font-size: 13px; }

/* 隐藏输入框（聚合物理键盘；16px 防 iOS 聚焦缩放） */
.v-ghost-input {
  position: absolute; opacity: 0; width: 10px; height: 10px; left: 50%; bottom: 0;
  font-size: 16px; border: none; background: transparent; color: transparent; caret-color: transparent;
}

/* ── 打字（打单词 / 打字强化共用）── */
.v-typing-body { max-width: 560px; margin: 0 auto; position: relative; text-align: center; }
.v-typing-lead { color: var(--text-secondary); font-size: 14px; margin: 10px 0 16px; }
.v-typing-lead b { color: var(--text-primary); }
.v-rt-phon { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 6px; }
.v-rt-hint { color: var(--text-secondary); font-size: 16px; margin: 4px 0 20px; line-height: 1.5; }
.v-type-word-lg { margin-bottom: 6px; }
.v-type-word-lg .v-type-ch {
  min-width: 46px; height: 60px; border-radius: 12px; font-size: 32px;
}
.v-type-word-lg .v-type-ch.done { background: rgba(16, 185, 129, 0.22); }
.v-typing-hint { color: var(--text-secondary); font-size: 15px; margin: 6px 0 18px; }
.v-type-word { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 18px; }
.v-type-ch {
  min-width: 34px; height: 44px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-input); color: var(--text-muted); font-size: 24px; font-weight: 800;
}
.v-type-ch.done { background: rgba(16, 185, 129, 0.18); color: var(--text-primary); }
.v-typing-stats { display: flex; justify-content: center; gap: 22px; color: var(--text-secondary); font-size: 13px; margin-bottom: 12px; }
.v-typing-stats b { color: var(--text-primary); }
.v-typing-tip { color: var(--text-muted); font-size: 12px; }

/* ── 听写 / 听单词 ── */
.v-dict-body, .v-listen-body {
  max-width: 480px; margin: 0 auto; text-align: center;
  background: var(--bg-card); border: 1px solid rgba(148, 163, 184, 0.12); border-radius: 22px; padding: 30px 22px;
}
.v-dict-tip { color: var(--text-muted); font-size: 12px; margin: 14px 0 0; }
.v-dict-play {
  width: 86px; height: 86px; border-radius: 50%; border: none; cursor: pointer; font-size: 34px;
  background: var(--accent-gradient); color: #fff; margin: 14px auto 6px; display: block;
  box-shadow: 0 10px 26px var(--accent-glow);
}
.v-dict-play:active { transform: scale(.95); }
.v-dict-controls { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.v-listen-img { width: 120px; height: 120px; object-fit: contain; border-radius: 16px; margin: 0 auto; }
.v-listen-word { font-size: 34px; font-weight: 800; margin-top: 10px; }
.v-feedback-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.v-fb-btn {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(148, 163, 184, 0.25);
  background: var(--bg-input); color: var(--text-primary); cursor: pointer; font-size: 14px;
}
.v-fb-btn.picked { border-color: var(--accent-primary); background: rgba(99, 102, 241, 0.2); }

/* ── 额外训练 ── */
.v-extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v-extra-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 12px;
  background: var(--bg-card); border: 1px solid rgba(148, 163, 184, 0.15); border-radius: 18px;
  color: var(--text-primary); cursor: pointer; transition: transform .15s, border-color .15s;
}
.v-extra-card:hover { transform: translateY(-2px); border-color: var(--accent-primary); }
.v-extra-icon { font-size: 34px; }
.v-extra-card small { color: var(--text-muted); font-size: 12px; }
.v-extra-skip { text-align: center; margin-top: 18px; font-size: 14px; }

/* ── 词书选择 / 预览 ── */
.v-search {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--bg-input); color: var(--text-primary); font-size: 14px; outline: none; box-sizing: border-box;
}
.v-search:focus { border-color: var(--accent-primary); }
.v-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v-stage-chips { margin: 12px 0; }
.v-book-list { display: flex; flex-direction: column; gap: 8px; }
.v-book-group { color: var(--text-muted); font-size: 12px; margin: 10px 4px 4px; }
.v-book-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid rgba(148, 163, 184, 0.12); color: var(--text-primary);
  cursor: pointer; text-align: left; transition: border-color .15s;
}
.v-book-row:hover { border-color: var(--accent-primary); }
.v-book-row.current { border-color: #10b981; }
.v-book-info { flex: 1; min-width: 0; }
.v-book-info b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-book-info small { color: var(--text-muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-book-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.v-book-count { color: var(--text-secondary); font-size: 12px; white-space: nowrap; }
.v-imported-note { color: #34d399; font-size: 13px; margin: 0 0 12px; }
.v-range-row { display: flex; gap: 16px; padding: 10px 0; }
.v-range-row label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.v-range-row input {
  width: 90px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--bg-input); color: var(--text-primary); font-size: 14px;
}
.v-preview-words { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.v-preview-tag {
  font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg-input); color: var(--text-secondary);
}
.v-preview-tag.more { color: var(--text-muted); }

/* 已导入词书的「开始学习」入口：居中 + 上下留白 */
.v-start-row { display: flex; justify-content: center; margin: 24px 0 8px; }
.v-start-row .btn-ghost-lg { min-width: 220px; }

/* ── 词库列表 ── */
.v-lib-count { color: var(--text-muted); font-size: 12px; margin: 10px 4px; }
.v-lib-list { display: flex; flex-direction: column; gap: 6px; }
.v-lib-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid rgba(148, 163, 184, 0.1); cursor: pointer;
}
.v-lib-row:hover { border-color: var(--accent-primary); }
.v-lib-main { flex: 1; min-width: 0; }
.v-lib-main b { font-size: 15px; }
.v-lib-main small { display: block; color: var(--text-secondary); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-lib-more { width: 100%; margin-top: 8px; }
.v-chip { font-size: 11px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.chip-new { background: rgba(99, 102, 241, 0.16); color: #a5b4fc; }
.chip-learning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.chip-mastered { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.chip-relearning { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* ── 统计页 ── */
.v-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.v-stat-card {
  background: var(--bg-card); border: 1px solid rgba(148, 163, 184, 0.12); border-radius: 16px;
  padding: 16px 8px; text-align: center;
}
.v-stat-card b { display: block; font-size: 22px; margin-bottom: 4px; }
.v-stat-card span { color: var(--text-secondary); font-size: 12px; }
.v-stat-inline { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-secondary); font-size: 14px; }
.v-stat-inline b { color: var(--text-primary); }
.v-err-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.v-err-label { width: 42px; color: var(--text-secondary); flex-shrink: 0; }
.v-err-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--bg-input); overflow: hidden; }
.v-err-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f43f5e, #f97316); }
.v-err-row b { width: 26px; text-align: right; }

/* ── 单词详情弹层 ── */
.v-sheet-backdrop { align-items: flex-end; }
.v-sheet {
  width: 100%; max-width: 640px; margin: 0 auto; background: var(--bg-secondary);
  border-radius: 22px 22px 0 0; padding: 24px 22px calc(24px + env(safe-area-inset-bottom));
  max-height: 78vh; overflow-y: auto;
}
.v-sheet-title { margin: 0 0 14px; }
.v-detail-head { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.v-detail-head b { font-size: 30px; font-weight: 800; }
.v-detail-state { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.v-detail-due { color: var(--text-muted); font-size: 12px; }
.v-pick-list { max-height: 46vh; overflow-y: auto; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.v-pick-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg-card); font-size: 14px; cursor: pointer;
}
.v-pick-word { font-weight: 700; min-width: 100px; }
.v-pick-meaning { color: var(--text-secondary); font-size: 12px; flex: 1; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-pick-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── 空态引导 ── */
.v-empty-guide { text-align: center; padding: 80px 20px 40px; }
.v-empty-icon { font-size: 60px; margin-bottom: 14px; }
.v-empty-guide h2 { margin: 0 0 10px; }
.v-empty-guide p { color: var(--text-secondary); line-height: 1.7; margin: 0 0 24px; }
.v-home-foot { text-align: center; margin-top: 6px; }
.v-home-foot a { color: var(--text-muted); font-size: 13px; }

/* 通用动画 */
.shake { animation: v-shake .4s; }
@keyframes v-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* ── 通用小控件（chip 按钮 / 次要按钮，与站点风格一致）── */
.opt-btn {
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid rgba(148, 163, 184, 0.22);
  background: var(--bg-input); color: var(--text-secondary); font-size: 13px; cursor: pointer;
  text-decoration: none; display: inline-block; line-height: 1.3; white-space: nowrap;
}
.opt-btn:hover { color: var(--text-primary); border-color: var(--accent-primary); }
.opt-btn.active {
  background: var(--accent-gradient); color: #fff; border-color: transparent; font-weight: 600;
}
.btn-minor {
  padding: 9px 16px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--bg-input); color: var(--text-secondary); font-size: 13px; cursor: pointer;
}
.btn-minor:hover { color: var(--text-primary); border-color: var(--accent-primary); }
.btn-check {
  padding: 9px 20px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--accent-gradient); color: #fff; font-size: 13px; font-weight: 600;
}
.btn-check:hover { filter: brightness(1.1); }

/* ── 移动端 ── */
@media (max-width: 640px) {
  .v-overview-grid, .v-stat-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .v-overview-grid b { font-size: 18px; }
  .v-action-grid { grid-template-columns: repeat(2, 1fr); }
  .v-card-word { font-size: 30px; }
  .v-flip { min-height: 260px; }
  .v-slot { width: 30px; height: 40px; font-size: 18px; }
  .v-kb-key { height: 40px; max-width: none; }
  .v-rate-btn { font-size: 12px; padding: 10px 2px; }
  .v-rating { gap: 6px; }
  .v-week-chart { gap: 2px; }
  .v-stat-card b { font-size: 18px; }
  .v-extra-grid { grid-template-columns: 1fr; }
  .v-review-word { min-width: 70px; }
}
