/* 错题本 —— 只做视觉层，DOM 契约与 JS 逻辑不变 */

.field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    text-align: left;
}

.bank-selector {
    margin-bottom: 16px;
    text-align: left;
}

#bank-select { width: 100%; }

/* ---------- 错题列表 ---------- */
.wrong-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 15px;
    margin: 10px 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    cursor: pointer;
    text-align: left;
    transition: all .18s var(--ease);
}

.wrong-item:hover {
    background: var(--brand-soft);
    border-color: var(--brand-border-strong);
    transform: translateY(-1px);
}

.wrong-item:active { transform: scale(.99); }

.wrong-word {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    word-break: break-word;
}

.wrong-pron {
    font-size: 13px;
    color: var(--text-3);
}

.empty-tip {
    margin: 22px 0;
    padding: 26px 16px;
    border-radius: var(--r);
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
    color: var(--text-3);
    font-size: 14px;
}

#clear-wrong-btn {
    margin-top: 14px;
    padding: 11px 18px;
    min-height: 42px;
    font-size: 14px;
}

/* ---------- 复习 ---------- */
#review-word {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 6px 0 10px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    word-break: break-word;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 14px;
}

.option {
    padding: 14px 15px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: all .18s var(--ease);
}

.option:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    transform: translateY(-1px);
}

.option.correct {
    border-color: var(--success);
    background: var(--success-soft);
    color: var(--success-text);
    font-weight: 600;
}

.option.wrong {
    border-color: var(--danger);
    background: var(--danger-soft);
    color: var(--danger-text);
}

.result {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    min-height: 24px;
    color: var(--text-2);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}

.btn-row button { flex: 1 1 140px; }

.word-line {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2px;
    word-break: break-word;
}

.pron-line {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 12px;
}

.meanings-line {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 6px;
}

.meanings-line.extra {
    color: var(--brand);
    border-top: 1px dashed var(--border-strong);
    padding-top: 10px;
    margin-top: 10px;
}

.detail-example {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-3);
    font-style: italic;
    line-height: 1.6;
}

.deeper-btn {
    margin-top: 12px;
    padding: 9px 16px;
    min-height: 38px;
    font-size: 13px;
    background: var(--brand-soft);
    color: var(--brand);
    border: 1px solid var(--brand-border);
    box-shadow: none;
}

.deeper-btn:hover { background: var(--brand-hover); box-shadow: none; }

/* ---------- 造句 ---------- */
.sentence-task {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 14px;
    line-height: 1.6;
}

#sentence-input {
    display: block;
    width: 100%;
    min-height: 90px;
    margin-bottom: 14px;
    resize: vertical;
    line-height: 1.6;
}

#submit-sentence { width: 100%; max-width: 240px; }

.sentence-result {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.8;
    text-align: left;
    min-height: 40px;
}

.sentence-result .pass { color: var(--success); font-weight: 600; }
.sentence-result .fail { color: var(--danger); font-weight: 600; }

/* ---------- 弹窗 ---------- */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(20, 20, 43, .45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 50;
}

.modal-content {
    width: 100%;
    max-width: 320px;
    padding: 24px 22px;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    text-align: center;
    animation: talkie-rise .28s var(--ease) both;
}

.modal-content p {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions button { flex: 1; }

.modal-actions button:first-child {
    background: var(--success);
    box-shadow: 0 10px 22px -12px rgba(16, 185, 129, .6);
}

.modal-actions button:last-child {
    background: var(--warn);
    box-shadow: 0 10px 22px -12px rgba(245, 158, 11, .6);
}

/* ---------- 移动端 ---------- */
@media (max-width: 600px) {
    #review-word { font-size: 27px; }
    .word-line { font-size: 23px; }
    .wrong-item { padding: 12px 13px; }
    .option { padding: 13px 14px; font-size: 15px; }
    .btn-row button { flex: 1 1 100%; }
}
