/* 问渠 WenQu 背单词页样式（vocab.html / js/vocab.js）
 * 设计约束：无 icon、无 CSS 自绘图形、无「框内单字」标识、素材真实、字体非默认。
 */
/* 原生 button 外观重置 */
button,
input[type="button"],
[role="button"] {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font: inherit;
  font-family: inherit;
  color: inherit;
  line-height: inherit;
  cursor: pointer;
  text-align: inherit;
}

.vc-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.vc-lib {
  background: rgba(247, 242, 232, .6);
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vc-lib:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .08); border-color: var(--gold, #b8860b); }
.vc-lib-name { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--ink, #0F172A); }
.vc-lib-desc { display: block; margin-top: 6px; font-size: .84rem; color: var(--text-soft, #4b5563); }

.vc-modes { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 20px; }
.vc-mode {
  border: 1px solid rgba(15, 23, 42, .16);
  background: transparent;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .9rem;
  color: var(--ink, #0F172A);
  cursor: pointer;
}
.vc-mode.active { background: var(--ink, #0F172A); color: #F8FAFC; border-color: var(--ink, #0F172A); }
.vc-mode-quiet { margin-left: auto; color: var(--text-soft, #4b5563); }

/* —— 词卡翻转 —— */
.vc-card-wrap { perspective: 1200px; margin: 6px 0 20px; }
.vc-card {
  position: relative;
  width: 100%;
  min-height: 250px;
  transform-style: preserve-3d;
  transition: transform .5s ease;
  cursor: pointer;
}
.vc-card.flipped { transform: rotateY(180deg); }
.vc-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .1);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}
.vc-back { transform: rotateY(180deg); background: linear-gradient(180deg, #fffdf7, #F8FAFC); }
.vc-word { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--ink, #0F172A); margin: 0; text-align: center; }
.vc-phonetic { font-size: 1rem; color: var(--text-soft, #4b5563); margin: 0; }
.vc-meaning { font-size: 1.2rem; color: var(--ink, #0F172A); margin: 0; text-align: center; line-height: 1.6; }
.vc-example { font-family: var(--display); font-size: 1rem; color: var(--ink-soft, #333); margin: 4px 0 0; text-align: center; line-height: 1.6; }
.vc-example-cn { font-size: .9rem; color: var(--text-soft, #4b5563); margin: 0; text-align: center; line-height: 1.6; }
.vc-hint { font-size: .8rem; color: var(--muted, #9ca3af); margin: 0; }
.vc-listen {
  background: none;
  border: 1px solid var(--gold, #b8860b);
  color: var(--gold-deep, #3B5BDB);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .85rem;
  cursor: pointer;
}
.vc-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 12px; }
.vc-count { text-align: center; color: var(--text-soft, #4b5563); font-size: .86rem; margin: 0; }

/* —— 小测 —— */
.vc-quiz-word { text-align: center; margin: 8px 0 20px; }
.vc-quiz-word .vc-word { font-size: 1.8rem; }

/* —— 进度 —— */
.vc-progress-top { display: flex; align-items: center; gap: 26px; margin-bottom: 20px; }
.vc-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vc-ring-inner {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.vc-ring-inner b { font-family: var(--display); font-size: 1.5rem; color: var(--ink, #0F172A); }
.vc-ring-inner span { font-size: .78rem; color: var(--text-soft, #4b5563); }
.vc-progress-stats p { margin: 8px 0; font-size: .94rem; color: var(--ink-soft, #333); }
.vc-progress-stats b { font-family: var(--display); color: var(--gold-deep, #3B5BDB); font-size: 1.1rem; }

@media (max-width: 640px) {
  .vc-library { grid-template-columns: repeat(2, 1fr); }
  .vc-lib { padding: 18px 14px; }
  .vc-lib-name { font-size: 1.08rem; }
  .vc-lib-desc { font-size: .84rem; }
  .vc-progress-top { flex-direction: column; align-items: center; }
}

/* —— 2026-08-17 学习档案（onboarding）：桌面图文并排，窄屏堆叠 —— */
.ob-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 26px; align-items: start; }
.ob-media { position: sticky; top: 24px; }
.ob-media img { width: 100%; height: auto; border-radius: 18px; display: block; box-shadow: 0 12px 30px rgba(15, 23, 42, .12); }
.ob-main { min-width: 0; }
@media (max-width: 860px) {
  .ob-layout { grid-template-columns: 1fr; }
  .ob-media { position: static; }
  .ob-media img { max-height: 180px; object-fit: cover; }
}

/* —— 2026-08-17 学习档案（onboarding） —— */
.ob-block {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.ob-block-title { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 14px; color: var(--ink, #0F172A); }
.ob-score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ob-score-label { font-size: .9rem; color: var(--text-soft, #4b5563); width: 60px; }
.ob-range { flex: 1; accent-color: var(--gold, #b8860b); }
.ob-score-num { font-family: var(--display); font-weight: 700; color: var(--gold-deep, #3B5BDB); min-width: 34px; text-align: right; }
.ob-weak-hint { font-size: .84rem; color: var(--muted, #9ca3af); margin: 10px 0 8px; }
.ob-none { font-size: .86rem; color: var(--muted, #9ca3af); }
.ob-actions { text-align: center; margin: 22px 0; }

/* ==========================================================================
 * 2026-08-17 背单词 / 学习档案 桌面深化（v16）
 *  - 词库卡更讲究：金色上饰线 + 更大气内边距
 *  - 模式切换沿用站内金色选中态（与 wq-chip.selected 同源）
 *  - 桌面宽度下词卡 / 进度区留白更足
 * 素材一律站内真实摄影；字体分层不变。
 * ========================================================================== */

/* —— 词库卡 —— */
.vc-library { gap: 16px; }
.vc-lib {
  position: relative;
  background: linear-gradient(180deg, #fffdf7, var(--paper));
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  padding: 24px 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, border-top-color .18s ease;
}
.vc-lib:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .1);
  border-color: rgba(79, 110, 247, .4);
  border-top-color: var(--gold);
}
.vc-lib-name { font-size: 1.22rem; }
.vc-lib-desc { font-size: .88rem; line-height: 1.7; }

/* —— 模式切换 —— */
.vc-modes { gap: 10px; margin: 6px 0 24px; }
.vc-mode {
  padding: 9px 20px;
  font-size: .92rem;
  letter-spacing: .08em;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.vc-mode:hover { border-color: var(--gold); transform: translateY(-1px); }
.vc-mode.active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(79, 110, 247, .3);
}
.vc-mode-quiet { margin-left: auto; color: var(--muted); }

/* —— 词卡 —— */
.vc-card-face { border-radius: 20px; padding: 30px; }
.vc-word { font-size: 2.2rem; }
.vc-phonetic { font-size: 1.05rem; }

/* —— 进度 —— */
.vc-progress-stats p { font-size: 1rem; }
.vc-progress-stats b { font-size: 1.18rem; }
