/* ═══════════════════════════════════════════════════════════════════
   英语听写 Dictation (E3) — /chs/English/Dictation
   主色：赭褐 #7c2d12 → #9a3412。英语学习中心的卡片配色里这一色系还空着，
   和 Minimal Pairs 的橄榄绿、Stress Beat 的靛蓝、单词雨的天蓝分得开。
   ═══════════════════════════════════════════════════════════════════ */

/* ── 等级选择 ─────────────────────────────────────────────────────── */
.ed-level-btn {
    border: 2px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-radius: 0.5rem;
    padding: 0.4rem 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.ed-level-btn:hover {
    border-color: #9a3412;
}

.ed-level-btn.active {
    background: #7c2d12;
    border-color: #7c2d12;
    color: #fff;
}

/* ── 播放区 ───────────────────────────────────────────────────────── */
.ed-speaker {
    font-size: clamp(2.2rem, 8vw, 3rem);
    color: #7c2d12;
    line-height: 1;
}

/* ── 输入 ─────────────────────────────────────────────────────────── */
.ed-input {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
    line-height: 1.5;
    min-height: 4.5rem;
    resize: vertical;
}

/* ── 逐词比对 ─────────────────────────────────────────────────────── */
.ed-diff {
    font-size: clamp(1.05rem, 4vw, 1.3rem);
    line-height: 2.1;
    word-spacing: 0.1em;
}

.ed-ok {
    color: #146c43;
    font-weight: 600;
}

/* 漏掉的词：原句里有，但没打出来。 */
.ed-miss {
    color: #b02a37;
    font-weight: 700;
    text-decoration: underline dotted;
    text-underline-offset: 0.25em;
}

/* 打错的词：正确的写法在上，打成什么在下面画掉。 */
.ed-sub {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    vertical-align: bottom;
    color: #b02a37;
    font-weight: 700;
}

.ed-sub .ed-yours {
    font-size: 0.75em;
    font-weight: 500;
    opacity: 0.8;
    text-decoration: line-through;
}

/* 多打的词：原句里根本没有。 */
.ed-extra {
    color: #9a6700;
    font-weight: 500;
    text-decoration: line-through;
}

.ed-note {
    color: #7c2d12;
}

.ed-review-diff {
    line-height: 2;
}

/* ── 深色模式 ─────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .ed-speaker { color: #fdba74; }
[data-bs-theme="dark"] .ed-note { color: #fdba74; }
[data-bs-theme="dark"] .ed-ok { color: #75b798; }
[data-bs-theme="dark"] .ed-miss,
[data-bs-theme="dark"] .ed-sub { color: #ea868f; }
[data-bs-theme="dark"] .ed-extra { color: #ffda6a; }
[data-bs-theme="dark"] .ed-level-btn.active { background: #9a3412; border-color: #9a3412; }
