/* ===========================================================
   背单词 (vocab) —— 独立样式
   站点底色 #0d0d0d / 主色 #c9a96e，与学习区同风格
   =========================================================== */
.vocab-wrap { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 18px 40px; }

/* ---------- Hero ---------- */
.vocab-hero {
  padding: 32px 0 20px;
  background:
    radial-gradient(900px 380px at 12% -40%, rgba(201,169,110,.16), transparent 60%),
    linear-gradient(180deg, #171717 0%, #101010 100%);
  border-bottom: 1px solid rgba(201,169,110,.16);
  margin-top: var(--nav-height, 72px);
}
.vh-brand { display: flex; align-items: center; gap: 14px; }
.vh-icon {
  font-size: 28px; line-height: 1; width: 56px; height: 56px; flex: none;
  display: grid; place-items: center; border-radius: 16px;
  background: rgba(201,169,110,.12); border: 1px solid rgba(201,169,110,.3);
}
.vh-brand h1 { margin: 0; font-size: 25px; letter-spacing: 2px; color: #f5f5f5; font-weight: 700; }
.vh-brand p { margin: 5px 0 0; font-size: 12.5px; color: #909090; line-height: 1.6; }
.vh-stats { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.vh-stats .stat {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 13px; font-size: 12px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); border-radius: 20px; color: #909090;
}
.vh-stats .stat b { font-size: 15px; color: #c9a96e; font-weight: 700; }
.vh-stats .stat i { font-style: normal; }

/* ---------- 工具条 ---------- */
.vb-toolbar { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; flex-wrap: wrap; }
.vb-toolbar-label { font-size: 13px; color: #909090; }
.vb-daily { display: inline-flex; gap: 6px; }
.vb-daily button {
  padding: 5px 14px; font-size: 13px; cursor: pointer; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #b0b0b0;
  transition: all .15s;
}
.vb-daily button.on { background: rgba(201,169,110,.18); border-color: rgba(201,169,110,.55); color: #e8d5ae; }
.vb-daily button:hover { border-color: rgba(201,169,110,.4); }

/* ---------- 书架 ---------- */
.vb-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.vb-book {
  position: relative; padding: 18px 18px 16px; cursor: pointer; text-align: left;
  background: linear-gradient(160deg, #1a1a1a 0%, #141414 100%);
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  transition: transform .15s, border-color .15s;
}
.vb-book:hover { transform: translateY(-2px); border-color: rgba(201,169,110,.45); }
.vb-book.on { border-color: rgba(201,169,110,.6); background: linear-gradient(160deg, #221d12 0%, #141210 100%); }
.vb-book, .vb-mode, .va, .vb-back, .vb-daily button { font-family: inherit; }
.vb-book .bb-name { font-size: 17px; font-weight: 700; color: #f0f0f0; display: flex; align-items: center; gap: 8px; }
.vb-book .bb-desc { font-size: 12px; color: #808080; margin-top: 4px; }
.vb-book .bb-count { font-size: 12px; color: #a8a8a8; margin-top: 10px; }
.vb-book .bb-count b { color: #c9a96e; font-weight: 700; }
.vb-book .bb-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); margin-top: 8px; overflow: hidden; }
.vb-book .bb-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c9a96e, #e0c390); border-radius: 3px; transition: width .3s; }
.vb-book .bb-meta { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11px; color: #707070; }
.vb-book .bb-due {
  position: absolute; top: 14px; right: 14px; font-size: 11px; padding: 3px 9px; border-radius: 12px;
  background: rgba(220,90,90,.15); border: 1px solid rgba(220,90,90,.4); color: #e8a0a0;
}
.vb-book .bb-due:empty { display: none; }

/* ---------- 练习模式 ---------- */
.vb-modes { margin-top: 26px; }
.vb-modes-title { font-size: 15px; font-weight: 700; color: #d8d8d8; margin-bottom: 12px; }
.vb-modes-title span { font-size: 12px; font-weight: 400; color: #808080; }
.vb-mode-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.vb-mode {
  padding: 15px 16px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); border-radius: 14px;
  transition: border-color .15s, background .15s;
}
.vb-mode:hover { border-color: rgba(201,169,110,.5); background: rgba(201,169,110,.06); }
.vb-mode b { display: block; font-size: 14.5px; color: #e8e8e8; }
.vb-mode i { display: block; font-style: normal; font-size: 12px; color: #808080; margin-top: 4px; }

/* ---------- 学习卡片 ---------- */
.vl-top { display: flex; align-items: center; gap: 14px; margin: 20px 0 16px; }
.vb-back {
  padding: 7px 15px; font-size: 13px; cursor: pointer; border-radius: 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #b0b0b0;
}
.vb-back:hover { border-color: rgba(201,169,110,.5); color: #e8d5ae; }
.vl-progress { font-size: 15px; font-weight: 700; color: #c9a96e; }
.vl-tag {
  margin-left: auto; font-size: 11.5px; padding: 4px 12px; border-radius: 14px;
  background: rgba(201,169,110,.13); border: 1px solid rgba(201,169,110,.35); color: #e0c390;
}
.vl-card {
  position: relative; min-height: 300px; padding: 30px 26px; cursor: pointer; user-select: none;
  background: linear-gradient(165deg, #1c1c1c 0%, #131313 100%);
  border: 1px solid rgba(255,255,255,.1); border-radius: 20px;
  display: flex; flex-direction: column; justify-content: center;
}
.vl-word-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.vl-word { font-size: 40px; font-weight: 700; color: #f5f0e5; text-align: center; letter-spacing: 1px; word-break: break-all; }
.vl-speak { display: flex; gap: 8px; }
.vl-speak button {
  width: 44px; height: 44px; border-radius: 50%; font-size: 19px; cursor: pointer;
  background: rgba(201,169,110,.12); border: 1px solid rgba(201,169,110,.35);
  transition: background .15s, transform .1s;
}
.vl-speak button:active { transform: scale(.92); }
.vl-speak button:hover { background: rgba(201,169,110,.25); }
.vl-phon { text-align: center; font-size: 16px; color: #a89468; margin-top: 10px; min-height: 22px; }
.vl-meaning {
  margin-top: 22px; padding-top: 20px; border-top: 1px dashed rgba(255,255,255,.12);
  font-size: 16px; line-height: 1.9; color: #cfcfcf; text-align: center; white-space: pre-line;
}
.vl-meaning .vl-tap { color: #606060; font-size: 13.5px; }
.vl-actions { display: flex; gap: 10px; margin-top: 20px; }
.va {
  flex: 1; padding: 15px 0; font-size: 15.5px; font-weight: 700; cursor: pointer; border-radius: 14px;
  border: 1px solid transparent; transition: transform .1s, filter .15s;
}
.va:active { transform: scale(.97); }
.va-good { background: rgba(90,160,90,.16); border-color: rgba(90,160,90,.45); color: #a5d6a5; }
.va-mid { background: rgba(220,170,70,.14); border-color: rgba(220,170,70,.45); color: #e6c98a; }
.va-bad { background: rgba(220,90,90,.13); border-color: rgba(220,90,90,.45); color: #e8a0a0; }
.va:hover { filter: brightness(1.25); }
.vl-hint { text-align: center; font-size: 12px; color: #606060; margin-top: 14px; }

/* 学习完成 */
.vl-done { text-align: center; padding: 50px 0; }
.vl-done .vd-icon { font-size: 54px; }
.vl-done h3 { font-size: 22px; color: #f0f0f0; margin: 16px 0 8px; }
.vl-done p { color: #909090; font-size: 14px; line-height: 1.9; }
.vl-done p b { color: #c9a96e; }

/* ---------- 练习 ---------- */
.vq-question { padding: 26px 20px; text-align: center;
  background: linear-gradient(165deg, #1c1c1c 0%, #131313 100%);
  border: 1px solid rgba(255,255,255,.1); border-radius: 20px; }
.vq-qword { font-size: 34px; font-weight: 700; color: #f5f0e5; word-break: break-all; }
.vq-qmeaning { font-size: 15px; color: #cfcfcf; line-height: 1.8; margin-top: 6px; }
.vq-phon { font-size: 15px; color: #a89468; margin-top: 8px; }
.vq-big-speak {
  margin-top: 16px; width: 64px; height: 64px; border-radius: 50%; font-size: 28px; cursor: pointer;
  background: rgba(201,169,110,.12); border: 1px solid rgba(201,169,110,.4);
}
.vq-big-speak:hover { background: rgba(201,169,110,.25); }
.vq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.vq-opt {
  padding: 15px 14px; font-size: 14.5px; cursor: pointer; text-align: left; line-height: 1.55;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; color: #d8d8d8;
  transition: border-color .15s, background .15s;
}
.vq-opt:hover { border-color: rgba(201,169,110,.5); }
.vq-opt.word-opt { font-size: 17px; font-weight: 600; text-align: center; color: #e8e8e8; }
.vq-opt.right { background: rgba(90,160,90,.2); border-color: rgba(90,160,90,.6); color: #b8e0b8; }
.vq-opt.wrong { background: rgba(220,90,90,.18); border-color: rgba(220,90,90,.55); color: #e8a0a0; }
.vq-spell-row { display: flex; gap: 10px; margin-top: 18px; }
.vq-spell-row input {
  flex: 1; height: 52px; padding: 0 18px; font-size: 18px; color: #f5f0e5;
  background: #1b1b1b; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; outline: none;
  letter-spacing: 1px;
}
.vq-spell-row input:focus { border-color: rgba(201,169,110,.55); }
.vq-spell-row button {
  padding: 0 26px; font-size: 15px; font-weight: 700; cursor: pointer; border-radius: 13px;
  background: rgba(201,169,110,.18); border: 1px solid rgba(201,169,110,.5); color: #e8d5ae;
}
.vq-feedback { margin-top: 14px; padding: 13px 16px; border-radius: 12px; font-size: 14px; line-height: 1.8; white-space: pre-line; }
.vq-feedback.ok { background: rgba(90,160,90,.12); border: 1px solid rgba(90,160,90,.35); color: #b8d8b8; }
.vq-feedback.no { background: rgba(220,90,90,.1); border: 1px solid rgba(220,90,90,.35); color: #e0b0b0; }
.vq-next { display: block; margin: 16px auto 0; padding: 12px 44px; font-size: 15px; font-weight: 700; cursor: pointer;
  border-radius: 24px; background: linear-gradient(135deg, #c9a96e, #b09055); border: none; color: #1a1a1a; }

/* ---------- 词表 ---------- */
.vl-search { margin: 4px 0 14px; }
.vl-search input {
  width: 100%; height: 46px; padding: 0 16px; font-size: 14px; color: #f5f5f5;
  background: #1b1b1b; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; outline: none;
}
.vl-search input:focus { border-color: rgba(201,169,110,.5); }
.vl-list { display: flex; flex-direction: column; gap: 8px; }
.vl-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
}
.vl-item .li-w { min-width: 130px; font-size: 15.5px; font-weight: 600; color: #e8d5ae; }
.vl-item .li-p { min-width: 110px; font-size: 12px; color: #8a7a55; }
.vl-item .li-t { flex: 1; font-size: 12.5px; color: #a8a8a8; line-height: 1.6; }
.vl-item .li-speak { width: 34px; height: 34px; flex: none; border-radius: 50%; font-size: 15px; cursor: pointer;
  background: rgba(201,169,110,.1); border: 1px solid rgba(201,169,110,.3); }
.vl-empty { text-align: center; color: #606060; padding: 30px 0; font-size: 13.5px; }

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .vl-word { font-size: 30px; }
  .vl-card { min-height: 260px; padding: 24px 18px; }
  .vl-actions { flex-direction: column; }
  .va { padding: 13px 0; }
  .vq-options { grid-template-columns: 1fr; }
  .vl-item { flex-wrap: wrap; }
  .vl-item .li-p { min-width: 0; }
}
