/* 考研英语（一）：翻译精练工作台与熟词僻义词库样式 */

.en-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem 1.75rem 4rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
}

.en-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--track-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  max-height: calc(100vh - var(--nav-h) - var(--track-h) - 2rem);
}

.en-side-card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .95rem 1rem;
}

.en-side-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.en-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-bottom: .65rem;
}

.en-stat-box {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: .45rem .6rem;
}

.en-stat-box b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--track);
  line-height: 1.25;
}

.en-stat-box span {
  font-size: .7rem;
  color: var(--muted);
}

/* ---------- 薄弱考点诊断 ---------- */
.weak-list {
  display: flex;
  flex-direction: column;
  gap: .38rem;
}

.weak-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .34rem .48rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: .76rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}

.weak-item:hover {
  border-color: var(--track);
}

.weak-item.active {
  border-color: var(--track);
  background: var(--track-soft);
}

.weak-name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.weak-bar {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: var(--rule);
  overflow: hidden;
  flex: 0 0 auto;
}

.weak-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent2);
}

.weak-bar > span.good { background: var(--accent3); }
.weak-bar > span.mid { background: #d97706; }

.weak-val {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted);
  width: 2.8rem;
  text-align: right;
  flex: 0 0 auto;
}

/* ---------- 题目队列 ---------- */
.en-queue-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.en-queue {
  overflow-y: auto;
  max-height: 360px;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-right: .2rem;
}

.en-q-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  width: 100%;
  padding: .5rem .6rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}

.en-q-item:hover {
  border-color: var(--track);
}

.en-q-item.active {
  border-color: var(--track);
  background: var(--track-soft);
}

.en-q-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  font-size: .72rem;
}

.en-q-label {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--muted);
}

.en-q-item.active .en-q-label {
  color: var(--track);
}

.en-q-badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  padding: .05rem .35rem;
  border-radius: 4px;
  background: rgba(91, 100, 114, .12);
  color: var(--muted);
}

.en-q-badge.done {
  background: rgba(15, 118, 110, .12);
  color: var(--accent3);
}

.en-q-badge.warn {
  background: rgba(194, 65, 12, .12);
  color: var(--accent2);
}

.en-q-badge.draft {
  background: rgba(36, 80, 179, .1);
  color: var(--accent);
}

.en-q-topic {
  font-size: .78rem;
  line-height: 1.38;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 工作台主区与工具栏 ---------- */
.en-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.en-toolbar {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.en-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}

.mode-switch {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 9px;
  padding: .18rem;
  gap: .18rem;
}

.mode-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 700;
  padding: .36rem .75rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background .12s, color .12s;
}

.mode-btn.active {
  background: var(--track);
  color: var(--bg2);
}

.en-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

.ai-cfg-btn, .en-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .7rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
}

.ai-cfg-btn:hover, .en-mini-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.en-mini-btn.armed {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(194, 65, 12, .06);
}

.ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.ai-dot.ready {
  background: var(--accent3);
}

.en-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.en-select {
  font-family: var(--font);
  font-size: .78rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: .32rem .55rem;
}

.en-filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
}

/* ---------- 练习主卡 ---------- */
.en-card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.en-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--rule);
}

.en-meta-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}

.en-nav-btns {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.en-nav-btn {
  padding: .34rem .68rem;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.en-nav-btn:hover:not([disabled]) {
  border-color: var(--track);
  color: var(--track);
}

.en-nav-btn[disabled] {
  opacity: .42;
  cursor: default;
}

.en-context {
  background: rgba(36, 80, 179, .045);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: .65rem .9rem;
  font-size: .85rem;
  color: var(--ink);
  line-height: 1.68;
}

.en-context-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .18rem;
}

/* ---------- 原句展示区 ---------- */
.en-sentence-box {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.05rem 1.15rem;
}

.en-sentence-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
}

.en-sentence-tools .mini-label {
  margin: 0;
}

.en-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.en-chip-toggle {
  border: 1px solid var(--rule);
  background: var(--bg2);
  color: var(--muted);
  border-radius: 999px;
  padding: .2rem .58rem;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}

.en-chip-toggle.on {
  border-color: var(--track);
  color: var(--track);
  background: var(--track-soft);
}

.en-sentence-text {
  font-family: Georgia, "Times New Roman", "WorkSans", serif;
  font-size: 1.18rem;
  line-height: 1.78;
  color: var(--ink);
  letter-spacing: .005em;
}

.slash-sep {
  display: inline-block;
  margin: 0 .25rem;
  padding: 0 .25rem;
  border-radius: 4px;
  background: rgba(194, 65, 12, .12);
  color: var(--accent2);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .92rem;
}

.chunk-seg {
  padding: .05rem .18rem;
  border-radius: 4px;
}

.chunk-seg.c0 { background: rgba(36, 80, 179, .1); }
.chunk-seg.c1 { background: rgba(194, 65, 12, .1); }
.chunk-seg.c2 { background: rgba(15, 118, 110, .11); }
.chunk-seg.c3 { background: rgba(109, 40, 217, .1); }

/* ---------- 拆解闯关客观题 ---------- */
.drill-section {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.drill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.drill-head h3 {
  margin: 0;
  padding-left: .65rem;
  font-size: .98rem;
  border-left: 3px solid var(--track);
}

.drill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.drill-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: .85rem .95rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.drill-q {
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}

.drill-opts {
  display: flex;
  flex-direction: column;
  gap: .36rem;
}

.drill-opt {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  width: 100%;
  padding: .42rem .58rem;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--bg2);
  color: var(--ink);
  font-family: var(--font);
  font-size: .8rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.drill-opt:hover:not([disabled]) {
  border-color: var(--accent);
}

.drill-opt .k {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  flex: 0 0 1.1rem;
}

.drill-opt.correct {
  border-color: var(--accent3);
  background: rgba(15, 118, 110, .1);
}

.drill-opt.correct .k {
  color: var(--accent3);
}

.drill-opt.wrong {
  border-color: var(--accent2);
  background: rgba(194, 65, 12, .08);
}

.drill-opt.wrong .k {
  color: var(--accent2);
}

.drill-explain {
  font-size: .78rem;
  line-height: 1.62;
  color: var(--ink);
  padding: .5rem .65rem;
  border-radius: 7px;
  background: rgba(15, 118, 110, .06);
  border-left: 3px solid var(--accent3);
}

/* ---------- 译文输入区 ---------- */
.en-editor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .4rem;
}

.en-editor-head h3 {
  margin: 0;
  padding-left: .65rem;
  font-size: .98rem;
  border-left: 3px solid var(--track);
}

.en-draft-tip {
  font-size: .74rem;
  color: var(--muted);
}

.en-textarea {
  width: 100%;
  min-height: 108px;
  padding: .8rem .95rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: .95rem;
  line-height: 1.75;
  resize: vertical;
}

.en-textarea:focus {
  outline: none;
  border-color: var(--track);
  box-shadow: 0 0 0 3px var(--track-soft);
}

.en-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-top: .6rem;
}

.en-btn-primary, .en-btn-ai, .en-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .52rem .95rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
}

.en-btn-primary {
  border: 1px solid var(--track);
  background: var(--track);
  color: var(--bg2);
}

.en-btn-primary:hover {
  filter: brightness(1.06);
}

.en-btn-ai {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg2);
}

.en-btn-ai:hover:not([disabled]) {
  filter: brightness(1.06);
}

.en-btn-ai[disabled] {
  opacity: .6;
  cursor: wait;
}

.en-btn-ghost {
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
}

.en-btn-ghost:hover {
  border-color: var(--track);
  color: var(--track);
}

.en-kbd-hint {
  margin-left: auto;
  font-size: .74rem;
  color: var(--muted);
}

/* ---------- 判定结果、陷阱与 0.5 分踩分点 ---------- */
.en-eval-panel {
  display: flex;
  flex-direction: column;
  gap: .95rem;
  padding-top: .95rem;
  border-top: 1px dashed var(--rule);
}

.trap-banner {
  border: 1px solid rgba(194, 65, 12, .35);
  border-left: 4px solid var(--accent2);
  background: rgba(194, 65, 12, .06);
  border-radius: 0 9px 9px 0;
  padding: .7rem .95rem;
  font-size: .84rem;
}

.trap-banner strong {
  color: var(--accent2);
}

.trap-banner ul {
  margin: .3rem 0 0;
  padding-left: 1.15rem;
}

.score-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: .68rem .9rem;
}

.score-total {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .88rem;
}

.score-total b {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--track);
}

.score-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.rubric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.rubric-card {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
  padding: .8rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.rubric-card.st-hit {
  border-color: rgba(15, 118, 110, .38);
}

.rubric-card.st-trap {
  border-color: rgba(194, 65, 12, .45);
  background: rgba(194, 65, 12, .03);
}

.rubric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
}

.rubric-focus {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
}

.rubric-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 4px;
}

.rubric-badge.hit {
  background: rgba(15, 118, 110, .12);
  color: var(--accent3);
}

.rubric-badge.review {
  background: rgba(217, 119, 6, .12);
  color: #b45309;
}

.rubric-badge.trap {
  background: rgba(194, 65, 12, .14);
  color: var(--accent2);
}

.rubric-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .86rem;
  color: var(--ink);
  line-height: 1.48;
}

.rubric-ref {
  font-size: .82rem;
  color: var(--accent3);
  font-weight: 700;
}

.rubric-hits {
  font-size: .74rem;
  color: var(--muted);
}

.hit-kw {
  display: inline-block;
  padding: .02rem .3rem;
  margin: 0 .15rem .1rem 0;
  border-radius: 4px;
  background: rgba(15, 118, 110, .12);
  color: var(--accent3);
  font-weight: 700;
}

.rubric-pills {
  display: flex;
  gap: .35rem;
  margin-top: auto;
  padding-top: .25rem;
}

.score-pill {
  flex: 1;
  padding: .32rem .3rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
}

.score-pill:hover {
  border-color: var(--track);
  color: var(--ink);
}

.score-pill.active[data-score="0.5"] {
  border-color: var(--accent3);
  background: var(--accent3);
  color: var(--bg2);
}

.score-pill.active[data-score="0.25"] {
  border-color: #d97706;
  background: #d97706;
  color: var(--bg2);
}

.score-pill.active[data-score="0"] {
  border-color: var(--accent2);
  background: var(--accent2);
  color: var(--bg2);
}

/* ---------- AI 精批结果卡 ---------- */
.ai-result-card {
  border: 1px solid rgba(36, 80, 179, .32);
  border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, rgba(36, 80, 179, .05), var(--bg2) 40%);
  border-radius: 0 10px 10px 0;
  padding: .95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.ai-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.ai-result-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.ai-chunk-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}

.ai-chunk-item {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: .45rem .6rem;
  font-size: .78rem;
}

.ai-polished {
  background: var(--bg2);
  border: 1px solid rgba(15, 118, 110, .3);
  border-radius: 8px;
  padding: .65rem .8rem;
  font-size: .88rem;
  line-height: 1.72;
}

/* ---------- 参考译文与结构拆解对照 ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.ref-box {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
  padding: .8rem .95rem;
  font-size: .88rem;
  line-height: 1.75;
}

.ref-box .mini-label {
  margin-bottom: .25rem;
}

.struct-list {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}

.struct-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  border-bottom: 1px solid var(--rule);
  font-size: .82rem;
}

.struct-row:last-child {
  border-bottom: 0;
}

.struct-role {
  padding: .55rem .7rem;
  background: rgba(36, 80, 179, .05);
  font-weight: 700;
  color: var(--accent);
}

.struct-detail {
  padding: .55rem .75rem;
  line-height: 1.6;
}

.struct-detail code {
  display: block;
  margin-bottom: .2rem;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .86rem;
}

.vocab-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.vocab-pill {
  font-size: .78rem;
  padding: .25rem .6rem;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--bg);
}

.vocab-pill b {
  color: var(--track);
  margin-right: .35rem;
}

/* ---------- AI 设置弹窗 ---------- */
.en-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 26, 31, .45);
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.en-modal-overlay[hidden] {
  display: none;
}

.en-modal {
  width: 100%;
  max-width: 540px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 60px rgba(23, 26, 31, .22);
}

.en-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: .9rem;
}

.en-modal-head h2 {
  font-size: 1.15rem;
  margin: 0;
}

.en-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .85rem;
}

.en-preset-btn {
  padding: .28rem .58rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
}

.en-preset-btn.active {
  border-color: var(--accent);
  background: rgba(36, 80, 179, .1);
  color: var(--accent);
}

.en-field {
  margin-bottom: .75rem;
}

.en-field label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.en-field input {
  width: 100%;
  padding: .48rem .65rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .8rem;
}

.en-modal-status {
  font-size: .78rem;
  margin: .5rem 0;
  padding: .45rem .65rem;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--rule);
}

.en-modal-status[hidden] {
  display: none;
}

.en-modal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .9rem;
}

/* ---------- 熟词僻义词库页 ---------- */
.vocab-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin-bottom: 1.2rem;
}

.vocab-search {
  flex: 1 1 200px;
  min-width: 160px;
  padding: .42rem .7rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: .84rem;
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.vocab-card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.vocab-card.mastered {
  border-color: rgba(15, 118, 110, .38);
  background: linear-gradient(180deg, rgba(15, 118, 110, .04), var(--bg2) 45%);
}

.vocab-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}

.vocab-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.vocab-pos {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted);
  margin-left: .35rem;
}

.vocab-trap {
  font-size: .78rem;
  color: var(--muted);
}

.vocab-trap s {
  text-decoration-color: var(--accent2);
}

.vocab-sense {
  font-size: .9rem;
  font-weight: 700;
  color: var(--accent2);
  padding: .3rem .55rem;
  border-radius: 6px;
  background: rgba(194, 65, 12, .06);
}

.vocab-example {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--ink);
  border-top: 1px dashed var(--rule);
  padding-top: .45rem;
}

.vocab-example .zh {
  display: block;
  color: var(--muted);
  margin-top: .2rem;
}

.vocab-card.masked .vocab-sense,
.vocab-card.masked .vocab-example .zh {
  filter: blur(5px);
  user-select: none;
  cursor: pointer;
}

.vocab-master-btn {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 700;
  padding: .22rem .5rem;
  cursor: pointer;
}

.vocab-master-btn.on {
  border-color: var(--accent3);
  background: rgba(15, 118, 110, .12);
  color: var(--accent3);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .en-shell {
    grid-template-columns: 1fr;
    padding: 1.2rem 1.1rem 3rem;
  }
  .en-sidebar {
    position: static;
    max-height: none;
  }
  .en-queue {
    max-height: 220px;
  }
}

@media (max-width: 720px) {
  .drill-grid,
  .rubric-grid,
  .ai-chunk-list,
  .compare-grid,
  .vocab-grid {
    grid-template-columns: 1fr;
  }
  .struct-row {
    grid-template-columns: 1fr;
  }
  .en-card {
    padding: 1rem;
  }
  .en-sentence-text {
    font-size: 1.05rem;
  }
  .en-kbd-hint {
    margin-left: 0;
  }
}
