/* ===== 分批学习进度 ===== */
.vb-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.vb-progress-dots {
    display: flex;
    gap: 4px;
}
.vb-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    background: #e5e7eb;
    color: #9ca3af;
    transition: all 0.2s;
}
.vb-dot-active {
    background: var(--color-primary, #4abc99);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(74,188,153,0.2);
}
.vb-dot-done {
    background: #86efac;
    color: #166534;
}
.vb-phase-text {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

/* 批次过渡/完成遮罩 */
.vb-transition {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
}
.vb-transition-card {
    text-align: center;
    padding: 40px;
}
.vb-transition-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.vb-transition-title {
    font-size: 22px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}
.vb-transition-info {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
}
.vb-transition-btn {
    padding: 12px 36px;
    border: none;
    border-radius: 12px;
    background: var(--color-primary, #4abc99);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}
.vb-transition-btn:hover {
    opacity: 0.85;
}
.is-invisible {
    visibility: hidden !important;
}
.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}
.is-correct {
    color: #16a34a;
}
.progress-width-0 { width: 0%; }
.progress-width-5 { width: 5%; }
.progress-width-10 { width: 10%; }
.progress-width-15 { width: 15%; }
.progress-width-20 { width: 20%; }
.progress-width-25 { width: 25%; }
.progress-width-30 { width: 30%; }
.progress-width-35 { width: 35%; }
.progress-width-40 { width: 40%; }
.progress-width-45 { width: 45%; }
.progress-width-50 { width: 50%; }
.progress-width-55 { width: 55%; }
.progress-width-60 { width: 60%; }
.progress-width-65 { width: 65%; }
.progress-width-70 { width: 70%; }
.progress-width-75 { width: 75%; }
.progress-width-80 { width: 80%; }
.progress-width-85 { width: 85%; }
.progress-width-90 { width: 90%; }
.progress-width-95 { width: 95%; }
.progress-width-100 { width: 100%; }
.vb-match-start-action,
.vb-transition-btn-spaced {
    margin-top: 20px;
}
.vb-final-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 20px 0 28px;
}
.vb-stat {
    text-align: center;
}
.vb-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary, #4abc99);
}
.vb-stat-label {
    font-size: 12px;
    color: #94a3b8;
}

/* ===== 词汇测试报告 ===== */
.vqr { max-width: 520px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); overflow: hidden; }
.vqr-banner { padding: 28px 24px 20px; text-align: center; position: relative; overflow: hidden; }
.vqr-banner-perfect { background: linear-gradient(135deg, #4ade80, #22c55e); color: #fff; }
.vqr-banner-great { background: linear-gradient(135deg, #6366f1, #818cf8); color: #fff; }
.vqr-banner-good { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; }
.vqr-banner-keep { background: linear-gradient(135deg, #f97316, #fb923c); color: #fff; }
.vqr-icon { font-size: 42px; margin-bottom: 8px; }
.vqr-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.vqr-subtitle { font-size: 14px; opacity: 0.9; }
.vqr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.vqr-stats-compact { grid-template-columns: repeat(2, 1fr); }
.vqr-stat { background: #fff; padding: 16px 8px; text-align: center; }
.vqr-stat-num { font-size: 24px; font-weight: 800; color: #6366f1; line-height: 1.2; }
.vqr-stat-num.green { color: #22c55e; }
.vqr-stat-num.red { color: #ef4444; }
.vqr-stat-num.amber { color: #f59e0b; }
.vqr-stat-label { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.vqr-encourage { padding: 14px 20px; text-align: center; font-size: 14px; font-weight: 600; border-bottom: 1px solid #f1f5f9; }
.vqr-encourage-success { color: #22c55e; }
.vqr-encourage-primary { color: #6366f1; }
.vqr-encourage-warning { color: #f59e0b; }
.vqr-encourage-strong { color: #f97316; }
.vqr-notebook-status {
    margin: 0 20px 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #047857;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}
.vqr-notebook-status.is-error {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}
.vqr-section { padding: 16px 20px; }
.vqr-section-title { font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 10px; }
.vqr-words { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.vqr-word-item { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; font-size: 13px; font-family: inherit; text-align: left; cursor: pointer; transition: background 0.15s; }
.vqr-word-item:hover { background: #f8fafc; }
.vqr-word-err { background: #fef2f2; border-left: 3px solid #f87171; }
.vqr-word-err:hover { background: #fee2e2; }
.vqr-word-en { font-weight: 700; color: #1e40af; min-width: 90px; }
.vqr-word-ipa { font-size: 11px; color: #94a3b8; min-width: 80px; }
.vqr-word-cn { color: #475569; flex: 1; }
.vqr-word-count { font-size: 11px; color: #ef4444; font-weight: 600; flex-shrink: 0; }
.vqr-stars { display: flex; justify-content: center; gap: 4px; margin: 8px 0; }
.vqr-star { font-size: 24px; }
.vqr-star-on { color: #fbbf24; }
.vqr-star-half { opacity: 0.5; }
.vqr-star-off { color: rgba(255,255,255,0.3); }
.vqr-ring { width: 80px; height: 80px; margin: 0 auto 8px; position: relative; }
.vqr-ring svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.vqr-ring-bg { fill: none; stroke: rgba(255,255,255,0.2); stroke-width: 6; }
.vqr-ring-fill { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; }
.vqr-ring-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; font-weight: 800; }
.vqr-actions { padding: 16px 20px; display: flex; gap: 10px; justify-content: center; border-top: 1px solid #f1f5f9; }
.vqr-btn { padding: 10px 24px; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity 0.2s; }
.vqr-btn:hover { opacity: 0.85; }
.vqr-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vqr-btn-primary { background: #6366f1; color: #fff; }
.vqr-btn-outline { background: #fff; color: #6366f1; border: 1.5px solid #6366f1; }
.vqr-btn-secondary { background: #f1f5f9; color: #64748b; }

/* ===== 复习拼写界面 ===== */
.vb-review {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vb-review-inner {
    width: 100%;
    max-width: 600px;
    padding: 24px 20px;
    text-align: center;
}
.vb-review-title {
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 20px;
}
/* 卡片轮播 */
.vb-review-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}
.vb-carousel-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
    line-height: 1;
}
.vb-carousel-btn:hover { background: #e2e8f0; }
.vb-review-card-frame {
    width: 360px;
    flex-shrink: 0;
}
.vb-review-card {
    padding: 24px 20px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    position: relative;
    cursor: pointer;
    transition: all 0.25s;
}
.vb-review-card-center {
    border-color: var(--color-primary, #4abc99);
    background: #f0fdf4;
    box-shadow: 0 4px 16px rgba(74,188,153,0.12);
}
/* 指示点 */
.vb-review-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}
.vb-review-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.2s;
}
.vb-dot-active {
    background: var(--color-primary, #4abc99);
    transform: scale(1.3);
}
.vb-dot-done {
    background: #86efac;
}
.vb-review-word {
    font-size: 24px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 6px;
}
.vb-review-ipa {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}
.vb-review-meaning {
    font-size: 15px;
    color: #475569;
    line-height: 1.5;
}
.vb-review-meaning p { margin: 0; }
.vb-review-check {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 14px;
}
.vb-review-progress {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}
.vb-review-done-action {
    margin-top: 20px;
}
.vb-review-spell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.vb-review-spell-hint {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}
/* 快捷键提示 */
.vb-review-keys {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.vb-review-key {
    font-size: 11px;
    color: #94a3b8;
}
.vb-review-key kbd {
    display: inline-block;
    padding: 1px 5px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #f8fafc;
    font-size: 11px;
    font-family: inherit;
    box-shadow: 0 1px 0 #ccc;
    margin: 0 1px;
}
@media (max-width: 640px) {
    .vb-review-card-frame { width: 260px; }
    .vb-review-card { padding: 16px 14px; }
    .vb-review-word { font-size: 20px; }
    .vb-review-ipa { font-size: 13px; }
    .vb-review-meaning { font-size: 13px; }
    .vb-carousel-btn { width: 30px; height: 30px; font-size: 18px; }
}

/* ===== 统计结果页 ===== */
.vb-result-page {
    overflow-y: auto;
}
.vb-result-inner {
    max-width: 520px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}
.vb-result-encourage {
    font-size: 15px;
    color: var(--color-primary, #4abc99);
    font-weight: 600;
    margin-bottom: 20px;
}
.vb-result-section {
    text-align: left;
    margin-top: 20px;
}
.vb-result-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}
.vb-result-words {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
}
.vb-result-word-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
}
.vb-result-word-item:hover {
    background: #f1f5f9;
}
.vb-result-word-error {
    background: #fef2f2;
    border-left: 3px solid #f87171;
}
.vb-result-word-error:hover { background: #fee2e2; }
.vb-result-word-pass {
    background: #f0fdf4;
    border-left: 3px solid #4ade80;
}
.vb-result-word-pass:hover { background: #dcfce7; }
.vb-rw-word {
    font-weight: 700;
    color: #1e40af;
    min-width: 80px;
}
.vb-rw-ipa {
    font-size: 11px;
    color: #94a3b8;
    min-width: 80px;
}
.vb-rw-meaning {
    color: #475569;
    flex: 1;
}

/* ===== 词汇面板样式 ===== */

.vocab-panel {
    padding: 24px;
}

.vocab-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary, #4abc99);
}

.vocab-panel-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.vocab-notebook-link {
    color: var(--color-primary, #4abc99);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid var(--color-primary, #4abc99);
    border-radius: 6px;
    transition: all 0.2s;
}

.vocab-notebook-link:hover {
    background: var(--color-primary, #4abc99);
    color: #fff;
}

/* 单元选择 */
.vocab-units-section {
    margin-bottom: 20px;
}

.vocab-units-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vocab-units-label {
    font-size: 15px;
    font-weight: 500;
    color: #555;
}

.vocab-units-actions {
    display: flex;
    gap: 8px;
}

.vocab-btn-sm {
    padding: 4px 12px;
    font-size: 13px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.vocab-btn-sm:hover {
    border-color: var(--color-primary, #4abc99);
    color: var(--color-primary, #4abc99);
}

.vocab-units-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    background: #fafafa;
}

.vocab-unit-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
    gap: 8px;
}

.vocab-unit-item:hover {
    background: #f0f0f0;
}

.vocab-unit-cb {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary, #4abc99);
    flex-shrink: 0;
}

.vocab-unit-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.vocab-unit-count {
    font-size: 13px;
    color: #999;
    flex-shrink: 0;
}

/* ===== 选择工具栏 ===== */
.vu-toolbar {
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.vu-toolbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    flex-wrap: wrap;
}
.vu-toolbar-row:first-child {
    background: #f0fdf4;
    border-bottom: 1px solid #e2e8f0;
}
.vu-toolbar-row:last-child {
    background: #f8fafc;
}
.vu-toolbar-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    min-width: 56px;
    flex-shrink: 0;
}
.vu-toolbar-label-smart {
    color: #166534;
}
.vu-toolbar-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}
.vu-toolbar-sep {
    width: 1px;
    height: 18px;
    background: #d1d5db;
    flex-shrink: 0;
}
.vu-toolbar-hint {
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
}
.vu-btn {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    color: #475569;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.vu-btn:hover {
    border-color: var(--color-primary, #4abc99);
    color: var(--color-primary, #4abc99);
    background: #f0fdf4;
}
.vu-btn-smart {
    border-color: #86efac;
    color: #166534;
    background: #fff;
}
.vu-btn-smart:hover {
    background: #dcfce7;
    border-color: #4ade80;
}
.vu-btn-primary {
    background: var(--color-primary, #4abc99);
    color: #fff;
    border-color: var(--color-primary, #4abc99);
}
.vu-btn-primary:hover {
    opacity: 0.85;
}
.vu-input {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    min-width: 100px;
}
.vu-input:focus {
    border-color: var(--color-primary, #4abc99);
}
.vu-input-num {
    width: 48px;
    min-width: 48px;
    text-align: center;
}

/* ===== 单元卡片网格 ===== */
.vocab-units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
    margin-bottom: 16px;
}
.vocab-unit-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
}
.vocab-unit-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.vocab-unit-card:has(.vocab-unit-cb:checked) {
    border-color: var(--color-primary, #4abc99);
    background: #f0fdf4;
    box-shadow: 0 0 0 1px var(--color-primary, #4abc99);
}
.vocab-unit-card .vocab-unit-cb {
    margin-top: 2px;
}
.vu-card-body {
    flex: 1;
    min-width: 0;
}
.vu-card-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
}
.vu-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vu-card-count {
    font-size: 11px;
    color: #94a3b8;
    flex-shrink: 0;
}
.vu-card-progress {
    margin-top: 6px;
}
.vu-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 3px;
}
.vu-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}
.vu-status-text {
    font-size: 11px;
    color: #94a3b8;
}
.vu-status-text.vu-new {
    color: #cbd5e1;
}
/* 状态着色 */
.vu-mastered {
    border-left: 3px solid #4ade80;
}
.vu-learning {
    border-left: 3px solid #facc15;
}
.vu-new-card {
    border-left: 3px solid #e5e7eb;
}

/* ===== 练习模块选择 ===== */
.vu-modules {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.vu-module {
    border-bottom: 1px solid #e2e8f0;
}
.vu-module:last-of-type {
    border-bottom: none;
}
.vu-module-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.vu-module-header:hover {
    background: #f8fafc;
}
.vu-module-cb {
    width: 16px; height: 16px;
    accent-color: var(--color-primary, #4abc99);
    flex-shrink: 0;
}
.vu-module-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.vu-module-name {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}
.vu-module-desc {
    font-size: 11px;
    color: #94a3b8;
    flex: 1;
}
.vu-module-toggle {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.2s;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.vu-module.expanded .vu-module-toggle {
    transform: rotate(180deg);
}
.vu-module-settings {
    display: none;
    padding: 0 14px 12px 42px;
}
.vu-module.expanded .vu-module-settings {
    display: block;
}
.vu-setting-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    flex-wrap: wrap;
}
.vu-setting-row > label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    min-width: 56px;
    flex-shrink: 0;
}

/* 统计信息 */
.vocab-stats {
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    text-align: center;
    border-top: 1px solid #eee;
    margin-bottom: 12px;
}

/* 练习设置 */
.vu-settings {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}
.vu-settings-title {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    padding: 8px 14px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}
.vu-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.vu-setting-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
}
.vu-setting-item:nth-child(2n) {
    border-right: none;
}
.vu-setting-item:nth-last-child(-n+2) {
    border-bottom: none;
}
.vu-setting-item > label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    min-width: 56px;
    flex-shrink: 0;
}
.vu-setting-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}
.vu-setting-hint {
    font-size: 11px;
    color: #94a3b8;
}
.vu-check {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
}
.vu-check input {
    width: 14px;
    height: 14px;
    accent-color: var(--color-primary, #4abc99);
}
@media (max-width: 640px) {
    .vu-settings-grid {
        grid-template-columns: 1fr;
    }
    .vu-setting-item {
        border-right: none;
    }
}

/* 练习类型区域 */
.vocab-practice-section {
    margin-top: 8px;
}

.vocab-practice-label {
    font-size: 15px;
    font-weight: 500;
    color: #555;
    margin-bottom: 12px;
}

.vocab-practice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.vocab-practice-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    background: #fff;
    transition: all 0.2s;
    cursor: default;
}

.vocab-practice-card:hover {
    border-color: var(--color-primary, #4abc99);
    box-shadow: 0 4px 12px rgba(74, 188, 153, 0.15);
    transform: translateY(-2px);
}

.vocab-card-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.vocab-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.vocab-card-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.vocab-learn-first-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}
.vocab-learn-first-label:hover {
    color: #333;
}
.vocab-learn-first-cb {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-primary, #4abc99);
}

.vocab-card-btn {
    display: inline-block;
    padding: 8px 24px;
    background: var(--color-primary, #4abc99);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.vocab-card-btn:hover {
    background: #3da888;
    transform: scale(1.02);
}

/* 测试配置区域 */
.vocab-exam-config {
    margin-top: 16px;
    padding: 20px 24px;
    background: #f8faf8;
    border: 1px solid #e0e8e0;
    border-radius: 12px;
}

.vocab-exam-config-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #d0d8d0;
}

.vocab-config-section {
    margin-bottom: 14px;
}

.vocab-config-label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.vocab-mode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vocab-mode-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    transition: all 0.15s;
}

.vocab-mode-item:hover {
    border-color: var(--color-primary, #4abc99);
}

.vocab-mode-item input[type="checkbox"] {
    accent-color: var(--color-primary, #4abc99);
}

.vocab-config-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vocab-config-input {
    width: 120px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.vocab-config-hint {
    font-size: 13px;
    color: #888;
}

.vocab-exam-start-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: var(--color-primary, #4abc99);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.vocab-exam-start-btn:hover:not(:disabled) {
    background: #3da888;
    transform: scale(1.01);
}

.vocab-exam-start-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 768px) {
    .vocab-panel {
        padding: 16px;
    }

    .vocab-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .vocab-practice-cards {
        grid-template-columns: 1fr;
    }

    .vocab-units-list {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .vocab-panel {
        padding: 12px;
    }

    .vocab-unit-item {
        padding: 6px 8px;
    }

    .vocab-practice-card {
        padding: 16px;
    }
}


/* ============================================================
   连连看 (Lianliankan) 专属样式
   ============================================================ */

:root {
    --llk-accent: var(--color-primary, #4abc99);
    --llk-accent-light: var(--color-bg-sidebar, #eef8f4);
    --llk-word-bg: #e8f5f0;
    --llk-word-border: var(--color-primary, #4abc99);
    --llk-meaning-bg: #fff4ee;
    --llk-meaning-border: var(--color-accent, #ff8f60);
    --llk-meaning-color: var(--color-accent, #ff8f60);
    --llk-selected-bg: var(--color-accent, #ff8f60);
    --llk-selected-border: var(--color-accent-dark, #e67a4d);
    --llk-radius: 35px;
}

/* === 视图切换 === */
.llk-view {
    display: none;
    width: 100%;
    min-height: calc(100vh - 120px - var(--ps-bar-height, 0px));
}

/* ========== 词汇学习视图（逐步揭示）========== */
.llk-learn-container {
    width: 94%;
    max-width: 540px;
    margin: 20px auto;
    font-family: var(--font-sans);
}

.llk-csp-hidden {
    display: none;
}

.llk-learn-container [hidden],
.llk-overlay [hidden] {
    display: none !important;
}

.llk-start-screen {
    text-align: center;
    padding: 48px 20px;
}
.llk-start-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.llk-start-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-primary, #434959);
    margin-bottom: 24px;
}
.llk-start-info {
    text-align: left;
    max-width: 360px;
    margin: 0 auto 28px;
    padding: 18px 22px;
    background: var(--color-bg-sidebar, #eef8f4);
    border-radius: 12px;
    font-size: .88rem;
    color: var(--color-text-secondary, #6b7280);
    line-height: 2;
}
.llk-start-info-compact { line-height: 1.9; }
.llk-start-info-title {
    font-weight: 600;
    color: var(--color-text-primary, #434959);
    margin-bottom: 8px;
}
.llk-start-info-compact .llk-start-info-title { margin-bottom: 6px; }
.llk-start-keys-card {
    max-width: 360px;
    margin: 0 auto 24px;
    padding: 14px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}
.llk-start-keys-title {
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-text-primary, #434959);
    margin-bottom: 10px;
}
.llk-start-keys-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.llk-start-key-item { text-align: center; }
.llk-start-key-row {
    display: inline-flex;
    gap: 4px;
}
.llk-start-key {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #ddd;
    font-size: .9rem;
    font-weight: 700;
    color: #333;
    box-shadow: 0 2px 0 #ccc;
    text-align: center;
}
.llk-start-key-wide {
    width: 64px;
    font-size: .75rem;
}
.llk-start-key-small {
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 6px;
    font-size: .75rem;
}
.llk-start-key-label {
    font-size: .7rem;
    color: #999;
    margin-top: 4px;
}
.llk-start-btn {
    padding: 14px 48px;
    border: none;
    border-radius: 12px;
    background: var(--color-primary, #4abc99);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
    box-shadow: 0 2px 8px rgba(74,188,153,.3);
}
.llk-start-btn:hover {
    background: var(--color-primary-dark, #3aa985);
}

.llk-no-animation {
    animation: none !important;
}

.llk-option-dimmed {
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0.15;
    transform: scale(0.95);
    pointer-events: none;
}

.llk-progress-pct-0 { width: 0%; }
.llk-progress-pct-5 { width: 5%; }
.llk-progress-pct-10 { width: 10%; }
.llk-progress-pct-15 { width: 15%; }
.llk-progress-pct-20 { width: 20%; }
.llk-progress-pct-25 { width: 25%; }
.llk-progress-pct-30 { width: 30%; }
.llk-progress-pct-35 { width: 35%; }
.llk-progress-pct-40 { width: 40%; }
.llk-progress-pct-45 { width: 45%; }
.llk-progress-pct-50 { width: 50%; }
.llk-progress-pct-55 { width: 55%; }
.llk-progress-pct-60 { width: 60%; }
.llk-progress-pct-65 { width: 65%; }
.llk-progress-pct-70 { width: 70%; }
.llk-progress-pct-75 { width: 75%; }
.llk-progress-pct-80 { width: 80%; }
.llk-progress-pct-85 { width: 85%; }
.llk-progress-pct-90 { width: 90%; }
.llk-progress-pct-95 { width: 95%; }
.llk-progress-pct-100 { width: 100%; }

/* 顶部状态栏 */
/* 退出按钮 */
.llk-exit-btn {
    width: 32px; height: 32px; border: none; border-radius: 8px;
    background: #f1f5f9; color: #64748b; font-size: 1.2rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all .15s; line-height: 1;
}
.llk-exit-btn:hover { background: #fee2e2; color: #ef4444; }

.llk-learn-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.llk-learn-progress {
    flex: 1;
}
.llk-learn-progress > span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary, #6b7280);
}
.llk-learn-bar {
    height: 5px;
    background: var(--color-border-light, #e5e7eb);
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
}
.llk-learn-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--color-primary, #4abc99);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.llk-learn-streak {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent, #ff8f60);
    animation: llk-streak-pop 0.3s ease;
}
@keyframes llk-streak-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.llk-streak-fire { font-size: 1.1rem; }
.llk-learn-timer {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted, #9ca3af);
    min-width: 40px;
    text-align: right;
}

/* 单词卡片 */
.llk-learn-card {
    background: var(--color-bg-card, #fff);
    border-radius: var(--radius-lg, 14px);
    box-shadow: var(--shadow-md);
    padding: 32px 28px 24px;
    min-height: 320px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    user-select: none;
    transition: box-shadow 0.2s;
}
.llk-learn-card:hover {
    box-shadow: var(--shadow-hover);
}

/* 逐步揭示的各步骤 */
.llk-learn-step {
    animation: llk-fade-in 0.35s ease;
}
@keyframes llk-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.llk-learn-word {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary, #4abc99);
    text-align: center;
    margin-bottom: 4px;
    word-break: break-word;
}
.llk-learn-ipa {
    font-size: 1rem;
    color: var(--color-text-secondary, #6b7280);
    text-align: center;
    font-family: 'Lucida Sans Unicode', 'Arial Unicode MS', sans-serif;
    margin-bottom: 12px;
}

.llk-step-meaning {
    border-top: 1px solid var(--color-border-light, #e5e7eb);
    padding-top: 14px;
    margin-top: 4px;
}
.llk-learn-meaning {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-primary, #434959);
    text-align: center;
    line-height: 1.6;
}
.llk-learn-meaning p { margin: 2px 0; }

.llk-step-sentences {
    border-top: 1px solid var(--color-border-light, #e5e7eb);
    padding-top: 14px;
    margin-top: 12px;
}
.llk-learn-sentences {
    text-align: left;
}
.llk-learn-sent-en {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary, #434959);
    line-height: 1.7;
    margin-bottom: 2px;
}
.llk-learn-sent-en strong u {
    color: var(--color-accent-dark, #e67a4d);
    background: rgba(255, 143, 96, 0.1);
    border-radius: 3px;
    padding: 0 2px;
}
.llk-learn-sent-cn {
    font-size: 0.85rem;
    color: var(--color-text-muted, #9ca3af);
    line-height: 1.5;
    margin-bottom: 14px;
}
.llk-learn-sent-cn:last-child { margin-bottom: 0; }

/* 学科词汇科普解释 */
.llk-learn-explanation {
    font-size: 0.9rem;
    color: var(--color-text-secondary, #6b7280);
    line-height: 1.7;
    padding: 10px 14px;
    background: var(--color-info-bg, #EFF6FF);
    border-radius: var(--radius-sm, 6px);
    border-left: 3px solid var(--color-info, #3B82F6);
}

/* 点击提示 */
.llk-learn-tap {
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-muted, #9ca3af);
    margin-top: auto;
    padding-top: 16px;
    opacity: 0.7;
}

/* 自评按钮 */
.llk-learn-rating {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.llk-rate-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: var(--radius-md, 10px);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}
.llk-rate-btn:hover { transform: translateY(-2px); }
.llk-rate-fail {
    background: var(--color-error-bg, #FEF2F2);
    color: var(--color-error, #EF4444);
    border: 1px solid #fecaca;
}
.llk-rate-fail:hover { background: #fee2e2; }
.llk-rate-fuzzy {
    background: var(--color-warning-bg, #FFFBEB);
    color: var(--color-warning, #F59E0B);
    border: 1px solid #fde68a;
}
.llk-rate-fuzzy:hover { background: #fef3c7; }
.llk-rate-pass {
    background: var(--color-success-bg, #F0FDF4);
    color: var(--color-success, #22C55E);
    border: 1px solid #bbf7d0;
}
.llk-rate-pass:hover { background: #dcfce7; }

.llk-learn-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.llk-learn-action-btn {
    min-width: 112px;
    padding: 10px 16px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm, 6px);
    background: #fff;
    color: var(--color-text-primary, #374151);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
}

.llk-add-notebook,
.llk-done-add-notebook {
    background: var(--color-info-bg, #EFF6FF);
    color: var(--color-info, #3B82F6);
    border-color: #bfdbfe;
}

.llk-add-notebook.is-added,
.llk-done-add-notebook.is-added {
    background: var(--color-success-bg, #F0FDF4);
    color: var(--color-success, #22C55E);
    border-color: #bbf7d0;
}

.llk-learn-action-btn:disabled {
    cursor: default;
    opacity: 0.75;
}

/* 快捷键提示 */
.llk-learn-keys {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}
.llk-key-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.25;
    transition: opacity 0.2s;
}
.llk-key-item.key-active {
    opacity: 1;
}
.llk-kbd {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    padding: 0 6px;
    border-radius: 7px;
    background: #fff;
    border: 1.5px solid #ddd;
    box-shadow: 0 2px 0 #ccc;
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.key-active .llk-kbd {
    border-color: var(--color-primary, #4abc99);
    box-shadow: 0 2px 0 var(--color-primary, #4abc99);
    color: var(--color-primary, #4abc99);
}
.llk-kbd-group {
    letter-spacing: 2px;
    padding: 0 8px;
}
.llk-kbd-wide {
    min-width: 52px;
    font-size: 0.72rem;
}
.llk-key-label {
    font-size: 0.65rem;
    color: #999;
    transition: color 0.2s;
}
.key-active .llk-key-label {
    color: var(--color-text-secondary, #6b7280);
}

/* 阶段标签 */
.llk-learn-phase {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full, 9999px);
    background: var(--color-primary, #4abc99);
    color: #fff;
}
.llk-learn-phase.quiz-phase {
    background: var(--color-accent, #ff8f60);
}

/* ===== 测试卡片 ===== */
.llk-quiz-card {
    background: var(--color-bg-card, #fff);
    border-radius: var(--radius-lg, 14px);
    box-shadow: var(--shadow-md);
    padding: 28px 24px 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-sans);
}
.llk-quiz-prompt {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-primary, #434959);
    text-align: center;
    margin-bottom: 6px;
    word-break: break-word;
    min-height: 2.5rem;
}
.llk-quiz-prompt.quiz-prompt-cn {
    font-size: 1.2rem;
    color: var(--color-text-secondary, #6b7280);
}
.llk-quiz-prompt.quiz-prompt-listen {
    font-size: 1.1rem;
    color: var(--color-text-muted, #9ca3af);
    font-style: italic;
}
.llk-quiz-audio {
    margin-bottom: 12px;
}
.llk-quiz-play-btn {
    background: none;
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: var(--radius-md, 10px);
    padding: 6px 16px;
    font-size: 0.85rem;
    color: var(--color-text-secondary, #6b7280);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.2s;
}
.llk-quiz-play-btn:hover {
    border-color: var(--color-primary, #4abc99);
    color: var(--color-primary, #4abc99);
}
.llk-quiz-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.llk-quiz-opt {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border-light, #e5e7eb);
    border-radius: var(--radius-md, 10px);
    background: var(--color-bg-card, #fff);
    font-size: 0.95rem;
    color: var(--color-text-primary, #434959);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 10px;
}
.llk-quiz-opt:hover:not(.disabled) {
    border-color: var(--color-primary, #4abc99);
    background: var(--color-success-bg, #F0FDF4);
}
.llk-quiz-opt .opt-key {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-border-light, #e5e7eb);
    color: var(--color-text-secondary, #6b7280);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.llk-quiz-opt.correct {
    border-color: var(--color-success, #22C55E);
    background: var(--color-success-bg, #F0FDF4);
}
.llk-quiz-opt.correct .opt-key {
    background: var(--color-success, #22C55E);
    color: #fff;
}
.llk-quiz-opt.wrong {
    border-color: var(--color-error, #EF4444);
    background: var(--color-error-bg, #FEF2F2);
}
.llk-quiz-opt.wrong .opt-key {
    background: var(--color-error, #EF4444);
    color: #fff;
}
.llk-quiz-opt.disabled {
    cursor: default;
    opacity: 0.6;
}
/* 答错后显示的释义 */
.llk-quiz-feedback {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm, 6px);
    background: var(--color-warning-bg, #FFFBEB);
    border: 1px solid #fde68a;
    font-size: 0.88rem;
    color: var(--color-text-primary, #434959);
    text-align: center;
    animation: llk-fade-in 0.3s ease;
}
/* 答错反馈中的科普 */
.llk-quiz-feedback-explain {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--color-text-secondary, #6b7280);
    line-height: 1.5;
}

/* ===== 拼写模式 ===== */
.llk-spell-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 8px;
}
.llk-spell-cells {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    cursor: text;
    padding: 8px;
}
.llk-spell-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 44px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Monaco', 'Menlo', monospace;
    color: #334155;
    background: #fff;
    text-transform: lowercase;
    transition: border-color 0.15s, background 0.15s;
}
.llk-spell-cell-filled {
    border-color: var(--color-primary, #4abc99);
    background: #f0fdf4;
}
.llk-spell-cell-cursor {
    border-color: var(--color-primary, #4abc99);
    box-shadow: 0 0 0 2px rgba(74, 188, 153, 0.2);
    animation: llk-cursor-blink 1s step-end infinite;
}
@keyframes llk-cursor-blink {
    0%, 100% { border-color: var(--color-primary, #4abc99); }
    50% { border-color: #d1d5db; }
}
.llk-spell-cell-correct {
    border-color: #4ade80 !important;
    background: #dcfce7 !important;
    color: #166534 !important;
}
.llk-spell-cell-wrong {
    border-color: #f87171 !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
}
.llk-spell-cell-right {
    border-color: #4ade80 !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
}
.llk-spell-space {
    display: inline-block;
    width: 20px;
}
.llk-spell-shake {
    animation: llk-cardShake 0.4s ease-out;
}
.llk-spell-ime-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
}
.llk-spell-play {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
    margin-top: 4px;
}
.llk-spell-play:hover {
    background: #e2e8f0;
}
.llk-spell-play:active {
    background: #cbd5e1;
}
.llk-spell-hidden-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.llk-spell-enter-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}
.llk-spell-hint {
    margin-top: 10px;
    font-size: 1rem;
    color: #f59e0b;
    font-weight: 700;
    font-family: 'Monaco', 'Menlo', monospace;
    letter-spacing: 3px;
    text-align: center;
}
@media (max-width: 640px) {
    .llk-spell-cell {
        width: 28px;
        height: 36px;
        font-size: 1rem;
    }
    .llk-spell-cells { gap: 4px; }
    .llk-spell-space { width: 14px; }
}

/* 正确反馈 combo 动画 */
.llk-correct-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.95);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 10;
    pointer-events: none;
    animation: llk-combo-pop 0.5s ease-out;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}
.llk-correct-feedback .cf-icon {
    font-size: 1.4rem;
}
.llk-correct-feedback .cf-text {
    font-family: var(--font-sans);
}
@keyframes llk-combo-pop {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* 选项选错抖动 */
.llk-quiz-opt.wrong {
    animation: llk-opt-shake 0.5s ease-out;
    border-color: var(--color-error, #EF4444) !important;
    background: var(--color-error-bg, #FEF2F2) !important;
}
@keyframes llk-opt-shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-6px); }
    30% { transform: translateX(5px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(3px); }
}

/* 倒计时条 */
.llk-quiz-timer-bar {
    width: 100%;
    height: 3px;
    background: var(--color-border-light, #e5e7eb);
    border-radius: 2px;
    margin-top: auto;
    padding-top: 16px;
}
.llk-quiz-timer-fill {
    height: 3px;
    background: var(--color-primary, #4abc99);
    border-radius: 2px;
    transition: width 0.1s linear;
}
.llk-quiz-timer-fill.urgent {
    background: var(--color-error, #EF4444);
}

/* ===== 过关页面 ===== */
.llk-done-page {
    text-align: center;
    padding: 32px 20px;
    animation: llk-fade-in 0.5s ease;
}
.llk-done-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
}
.llk-done-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary, #4abc99);
    margin: 0 0 6px;
}
.llk-done-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-secondary, #6b7280);
    margin: 0 0 24px;
}
.llk-done-stats {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 28px;
}
.llk-done-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.llk-done-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary, #434959);
}
.llk-done-stat-label {
    font-size: 0.78rem;
    color: var(--color-text-muted, #9ca3af);
}
.llk-done-stat-highlight .llk-done-stat-num {
    color: var(--color-primary, #4abc99);
    font-size: 1.8rem;
}
.llk-done-stat-highlight .llk-done-stat-label {
    color: var(--color-primary, #4abc99);
    font-weight: 600;
}
/* 新掌握单词列表 */
.llk-done-words-section {
    margin-bottom: 24px;
    text-align: left;
}
.llk-done-words-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary, #4abc99);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-border-light, #e5e7eb);
}
.llk-done-words-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}
.llk-done-word-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 10px;
    background: var(--color-success-bg, #F0FDF4);
    border-radius: var(--radius-sm, 6px);
    border-left: 3px solid var(--color-primary, #4abc99);
}
.llk-done-word-en {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-primary, #434959);
    flex-shrink: 0;
}
.llk-done-word-cn {
    font-size: 0.8rem;
    color: var(--color-text-secondary, #6b7280);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.llk-done-btn {
    display: inline-block;
    padding: 12px 36px;
    background: var(--color-primary, #4abc99);
    color: #fff;
    border: none;
    border-radius: var(--radius-md, 10px);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background 0.2s;
}
.llk-done-btn:hover {
    background: var(--color-primary-dark, #3aa383);
}

/* 学习+测试视图响应式 */
@media (max-width: 768px) {
    .llk-learn-container { width: 100%; max-width: none; margin: 12px auto; padding: 0 12px; }
    .llk-learn-card, .llk-quiz-card { padding: 24px 20px 18px; min-height: 280px; }
    .llk-learn-word { font-size: 1.8rem; }
    .llk-learn-meaning { font-size: 1.05rem; }
    .llk-learn-sent-en { font-size: 0.88rem; }
    .llk-learn-sent-cn { font-size: 0.8rem; }
    .llk-quiz-prompt { font-size: 1.3rem; }
    .llk-quiz-opt { padding: 10px 14px; font-size: 0.88rem; }
    .llk-learn-keys { display: none; }
}
@media (max-width: 480px) {
    .llk-learn-card, .llk-quiz-card { padding: 20px 16px 14px; min-height: 250px; border-radius: var(--radius-md, 10px); }
    .llk-learn-word { font-size: 1.5rem; }
    .llk-learn-ipa { font-size: 0.88rem; }
    .llk-learn-meaning { font-size: 0.95rem; }
    .llk-learn-sent-en { font-size: 0.82rem; }
    .llk-learn-sent-cn { font-size: 0.75rem; }
    .llk-quiz-prompt { font-size: 1.1rem; }
    .llk-quiz-opt { padding: 10px 12px; font-size: 0.82rem; }
    .llk-quiz-opt .opt-key { width: 20px; height: 20px; font-size: 0.65rem; }
}
.llk-view.is-active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* === 加载遮罩 === */
.llk-loading {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}
.llk-loading-spinner {
    width: 40px; height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--llk-accent);
    border-radius: 50%;
    animation: llk-spin 0.8s linear infinite;
}
@keyframes llk-spin {
    to { transform: rotate(360deg); }
}
.llk-loading-text {
    margin-top: 16px;
    font-size: 15px;
    color: #666;
}

/* ========== 闪卡视图 ========== */
.llk-flashcard-container {
    display: flex;
    width: 96%;
    max-width: 1060px;
    margin: 16px auto;
    height: calc(100vh - var(--navbar-height, 56px) - 40px - var(--ps-bar-height, 0px));
    max-height: 680px;
    background: var(--color-bg-card, #fff);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    font-family: var(--font-sans);
}

/* 左侧：单词列表 */
.llk-word-list-column {
    flex: 0 0 230px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-border-light, #e5e7eb);
    background: var(--color-bg-sidebar, #eef8f4);
    padding: 16px 12px 16px 16px;
}

.llk-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--color-border-light, #e5e7eb);
}
.llk-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary, #4abc99);
}
.llk-list-progress {
    font-size: 0.8rem;
    color: var(--color-text-secondary, #6b7280);
    font-weight: 600;
}

/* 模式切换 */
.llk-mode-toggle {
    display: flex;
    padding: 8px 12px;
    gap: 6px;
}
.llk-mode-btn {
    flex: 1;
    padding: 5px 0;
    border: 1px solid var(--color-border, #d1d5db);
    background: var(--color-bg-card, #fff);
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--color-text-secondary, #6b7280);
    transition: all 0.2s;
    font-family: var(--font-sans);
}
.llk-mode-btn.active {
    background: var(--color-primary, #4abc99);
    border-color: var(--color-primary, #4abc99);
    color: #fff;
}

/* 单词列表 */
.llk-word-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}
.llk-word-list li {
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-primary, #434959);
    cursor: pointer;
    border-radius: var(--radius-md, 10px);
    margin-bottom: 6px;
    transition: all 0.2s;
    position: relative;
    background-color: var(--color-bg-card, #fff);
    border: 1px solid var(--color-border-light, #e5e7eb);
    box-shadow: var(--shadow-sm);
}
.llk-word-list li:not(.llk-mastered):hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-hover);
    background-color: #f0fdf4;
    color: var(--color-primary, #4abc99);
}
.llk-word-list li.llk-mastered:hover {
    filter: brightness(1.05);
}
.llk-word-list li.llk-active {
    background: var(--color-primary, #4abc99);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateX(2px);
    font-weight: 700;
}
.llk-word-list li.llk-mastered {
    background: var(--color-success, #22C55E);
    color: white;
    font-weight: 700;
    border-color: transparent;
    opacity: 0.85;
}
.llk-word-list li.llk-mastered::after {
    content: '\2713';
    position: absolute;
    right: 12px;
    color: #fff;
    font-weight: 800;
}
.llk-word-list li.llk-mastered.llk-active {
    background: #1da34e;
    color: #fff;
    opacity: 1;
    box-shadow: var(--shadow-hover);
}

/* 自定义滚动条 */
.llk-word-list::-webkit-scrollbar {
    width: 5px;
}
.llk-word-list::-webkit-scrollbar-track {
    background: transparent;
}
.llk-word-list::-webkit-scrollbar-thumb {
    background: var(--color-primary-light, #78d4b6);
    border-radius: 3px;
}
.llk-word-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary, #4abc99);
}

/* 右侧：闪卡 */
.llk-flashcard-column {
    flex: 1;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

/* 闪卡 3D 翻转 */
.llk-flashcard {
    width: 95%;
    max-width: 520px;
    height: 480px;
    max-height: 80vh;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
    cursor: default;
}

.llk-flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--color-bg-card, #fff);
    border-radius: var(--radius-lg, 14px);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light, #e5e7eb);
    border-top: 4px solid var(--color-primary, #4abc99);
    box-sizing: border-box;
    overflow-y: auto;
}

/* 正面：学习模式下隐藏 */
.llk-flashcard-front {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}
.llk-flashcard-back {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
    border-top-color: var(--color-accent, #ff8f60);
    justify-content: flex-start;
    font-family: var(--font-sans);
}

/* 背诵模式：正面显示，背面隐藏，点击翻转 */
body.llk-recitation-mode .llk-flashcard-front {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}
body.llk-recitation-mode .llk-flashcard-back {
    z-index: 1;
    transform: rotateY(180deg);
    opacity: 1;
    pointer-events: none;
}
body.llk-recitation-mode .llk-flashcard {
    cursor: pointer;
}
body.llk-recitation-mode .llk-flashcard.llk-is-flipped {
    transform: rotateY(180deg);
}
body.llk-recitation-mode .llk-flashcard.llk-is-flipped .llk-flashcard-front {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}
body.llk-recitation-mode .llk-flashcard.llk-is-flipped .llk-flashcard-back {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}

/* 闪卡内容 */
.llk-fc-word {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary, #4abc99);
    margin-bottom: 6px;
    margin-top: 16px;
    text-align: center;
    word-break: break-word;
    font-family: var(--font-sans);
}
.llk-flashcard-back .llk-fc-word {
    font-size: 1.8rem;
    color: var(--color-accent, #ff8f60);
}
.llk-fc-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted, #9ca3af);
    margin-top: 10px;
    font-style: italic;
}
.llk-fc-ipa {
    font-size: 1.1rem;
    color: var(--color-text-secondary, #6b7280);
    margin-bottom: 10px;
    font-family: 'Lucida Sans Unicode', 'Arial Unicode MS', sans-serif;
}
.llk-fc-meaning {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-primary, #434959);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 14px;
    max-width: 100%;
    word-break: break-word;
}
.llk-fc-meaning p {
    margin: 2px 0;
}
.llk-fc-sentence {
    width: 100%;
    text-align: left;
    border-top: 1px solid var(--color-border-light, #e5e7eb);
    padding-top: 14px;
    margin-top: 4px;
}
.llk-fc-sentence-en {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-primary, #434959);
    line-height: 1.7;
    margin-bottom: 6px;
}
.llk-fc-sentence-en strong u {
    color: var(--color-accent-dark, #e67a4d);
    background: rgba(255, 143, 96, 0.1);
    border-radius: 3px;
    padding: 0 2px;
}
.llk-fc-sentence-cn {
    font-size: 0.95rem;
    color: var(--color-text-muted, #9ca3af);
    line-height: 1.6;
}

/* 已掌握动画 */
.llk-fc-mastered-anim {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 48px;
    font-weight: 800;
    color: #4abc99;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease-out;
    text-shadow: 0 2px 10px rgba(74,188,153,0.3);
}
.llk-fc-mastered-anim.llk-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 操作栏 */
.llk-fc-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.llk-fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--color-primary, #4abc99);
    border-radius: var(--radius-full, 9999px);
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    padding: 0;
    touch-action: manipulation;
}
.llk-fc-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}
.llk-fc-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    transform: none;
}
.llk-fc-btn .llk-btn-text {
    display: none;
}
.llk-btn-mastered {
    background: var(--color-success, #22C55E);
}
.llk-btn-mastered:hover {
    background: #1da34e;
    color: #fff;
}
.llk-btn-mastered:disabled {
    background: var(--color-border, #d1d5db);
    color: #fff;
}

/* ========== 配对游戏视图 ========== */
.llk-game-wrapper {
    width: 96%;
    max-width: 880px;
    margin: 16px auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--navbar-height, 56px) - 60px - var(--ps-bar-height, 0px));
    font-family: var(--font-sans);
}

/* 游戏顶部状态栏 */
.llk-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--color-bg-card, #fff);
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    border-left: 3px solid var(--color-primary, #4abc99);
}
.llk-game-health {
    display: flex;
    align-items: center;
    gap: 3px;
}
.llk-health-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-secondary, #6b7280);
    margin-right: 4px;
}
.llk-heart {
    font-size: 18px;
    line-height: 1;
}
.llk-heart-full {
    color: var(--color-error, #EF4444);
}
.llk-heart-empty {
    color: var(--color-border-light, #e5e7eb);
}

.llk-game-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary, #434959);
}
.llk-game-timer svg {
    color: var(--color-text-muted, #9ca3af);
}
.llk-timer-warning {
    color: var(--color-error, #EF4444) !important;
    animation: llk-pulse 0.5s ease-in-out infinite alternate;
}
@keyframes llk-pulse {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

.llk-game-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary, #4abc99);
    background: var(--color-success-bg, #F0FDF4);
    padding: 4px 12px;
    border-radius: var(--radius-full, 9999px);
}

/* ===== 游戏网格面板 ===== */
.llk-game-board {
    --llk-cols: 4;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(var(--llk-cols), 1fr);
    gap: 10px;
    padding: 16px;
    background: var(--color-bg-card, #fff);
    border-radius: var(--radius-lg, 14px);
    box-shadow: var(--shadow-md);
    align-content: start;
}

/* === 钻石菱形布局 === */
.llk-board-diamond {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
}
.llk-diamond-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.llk-diamond-row .llk-card {
    width: 130px;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .llk-diamond-row .llk-card {
        width: 100px;
        min-height: 68px;
        padding: 16px 6px 8px;
    }
    .llk-diamond-row .llk-card .llk-card-content {
        font-size: 0.82rem;
    }
}
@media (max-width: 400px) {
    .llk-diamond-row .llk-card {
        width: 80px;
        min-height: 60px;
    }
    .llk-diamond-row .llk-card .llk-card-content {
        font-size: 0.72rem;
    }
    .llk-board-diamond {
        gap: 6px;
    }
    .llk-diamond-row {
        gap: 6px;
    }
}

/* ===== 卡片通用 ===== */
.llk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85px;
    padding: 24px 10px 12px;
    border-radius: var(--radius-md, 10px);
    border: 2px solid transparent;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    font-family: var(--font-sans);
}
.llk-card p { margin: 0; }

/* 类型角标 */
.llk-card-badge {
    position: absolute;
    top: 5px;
    left: 7px;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    border-radius: var(--radius-sm, 6px);
    letter-spacing: 0.04em;
}

/* 卡片内容 */
.llk-card-content {
    font-weight: 600;
    line-height: 1.45;
}

/* === 英文卡片 === */
.llk-card-word {
    background: var(--llk-word-bg, #e8f5f0);
    border-color: #c8e8dd;
}
.llk-card-word .llk-card-badge {
    background: var(--color-primary, #4abc99);
    color: #fff;
}
.llk-card-word .llk-card-content {
    color: #2a7d63;
    font-size: 1.1rem;
    font-weight: 700;
}
.llk-card-word:hover {
    border-color: var(--color-primary, #4abc99);
    box-shadow: 0 4px 14px rgba(74, 188, 153, 0.2);
}

/* === 中文卡片 === */
.llk-card-meaning {
    background: var(--llk-meaning-bg, #fff4ee);
    border-color: #f5ddd0;
}
.llk-card-meaning .llk-card-badge {
    background: var(--color-accent, #ff8f60);
    color: #fff;
}
.llk-card-meaning .llk-card-content {
    color: #8f4a28;
    font-size: 0.95rem;
    line-height: 1.55;
}
.llk-card-meaning:hover {
    border-color: var(--color-accent, #ff8f60);
    box-shadow: 0 4px 14px rgba(255, 143, 96, 0.2);
}

/* === 游戏主区域布局 === */
.llk-game-main {
    display: flex;
    gap: 16px;
    flex: 1;
    align-items: stretch;
}
.llk-game-main .llk-game-board {
    flex: 1;
    min-width: 0;
}

/* === 已配对词汇收集区（右侧） === */
.llk-matched-collection {
    width: 220px;
    flex-shrink: 0;
    padding: 12px 14px;
    background: var(--color-bg-card, #fff);
    border-radius: var(--radius-lg, 14px);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.llk-matched-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}
.llk-matched-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
}
.llk-matched-empty {
    font-size: 12px;
    color: #cbd5e1;
    text-align: center;
    padding: 20px 0;
}
@media (max-width: 768px) {
    .llk-game-main {
        flex-direction: column;
    }
    .llk-matched-collection {
        width: 100%;
        max-height: 120px;
    }
    .llk-matched-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .llk-matched-empty {
        padding: 8px 0;
    }
}
.llk-matched-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.llk-matched-item:hover {
    background: #dcfce7;
}
.llk-matched-word {
    font-weight: 700;
    color: #166534;
}
.llk-matched-sep {
    color: #94a3b8;
    font-size: 10px;
}
.llk-matched-meaning {
    color: #475569;
}
.llk-matched-meaning p { margin: 0; display: inline; }
@keyframes llk-matched-pop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.llk-matched-enter {
    animation: llk-matched-pop 0.3s ease-out;
}

/* === 选中状态：同色加深 === */
.llk-card-word.llk-card-selected {
    background: #3a9e7e !important;
    border-color: #2d8568 !important;
    transform: scale(1.05);
    box-shadow: 0 5px 18px rgba(58, 158, 126, 0.4) !important;
}
.llk-card-word.llk-card-selected .llk-card-content {
    color: #fff !important;
}
.llk-card-word.llk-card-selected .llk-card-badge {
    background: rgba(255,255,255,0.3) !important;
    color: #fff !important;
}

.llk-card-meaning.llk-card-selected {
    background: #e5743e !important;
    border-color: #cc6232 !important;
    transform: scale(1.05);
    box-shadow: 0 5px 18px rgba(229, 116, 62, 0.4) !important;
}
.llk-card-meaning.llk-card-selected .llk-card-content {
    color: #fff !important;
}
.llk-card-meaning.llk-card-selected .llk-card-badge {
    background: rgba(255,255,255,0.3) !important;
    color: #fff !important;
}

/* === 配对成功：消失但保留占位 === */
.llk-card-matched {
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-color: transparent !important;
    box-shadow: none !important;
}

/* === 粒子爆炸 === */
.llk-particle {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    width: 6px;
    height: 6px;
    animation: none;
}
.llk-particle-word { background: #4abc99; }
.llk-particle-meaning { background: #ff8f60; }
.llk-particle-size-0 { width: 4px; height: 4px; }
.llk-particle-size-1 { width: 6px; height: 6px; }
.llk-particle-size-2 { width: 8px; height: 8px; }
.llk-particle-size-3 { width: 10px; height: 10px; }
@keyframes llk-burst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(0.2);
    }
}

/* === 配对失败抖动 === */
@keyframes llk-cardShake {
    0%, 100% { transform: rotate(var(--scatter-rot, 0deg)) translate(var(--scatter-x, 0px), var(--scatter-y, 0px)); }
    15% { transform: rotate(var(--scatter-rot, 0deg)) translate(calc(var(--scatter-x, 0px) - 6px), var(--scatter-y, 0px)); }
    30% { transform: rotate(var(--scatter-rot, 0deg)) translate(calc(var(--scatter-x, 0px) + 5px), var(--scatter-y, 0px)); }
    45% { transform: rotate(var(--scatter-rot, 0deg)) translate(calc(var(--scatter-x, 0px) - 4px), var(--scatter-y, 0px)); }
    60% { transform: rotate(var(--scatter-rot, 0deg)) translate(calc(var(--scatter-x, 0px) + 3px), var(--scatter-y, 0px)); }
    75% { transform: rotate(var(--scatter-rot, 0deg)) translate(calc(var(--scatter-x, 0px) - 2px), var(--scatter-y, 0px)); }
}
.llk-card-wrong {
    animation: llk-cardShake 0.5s ease-out;
    border-color: #ff4d4d !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2) !important;
}

/* === 卡片入场 === */
@keyframes llk-cardEnter {
    from { opacity: 0; transform: scale(0.85) translateY(12px) rotate(0deg); }
    to { opacity: 1; transform: rotate(var(--scatter-rot, 0deg)) translate(var(--scatter-x, 0px), var(--scatter-y, 0px)); }
}
.llk-card-enter {
    animation: llk-cardEnter 0.3s ease-out both;
}
.llk-delay-0 { animation-delay: 0s; }
.llk-delay-1 { animation-delay: 0.04s; }
.llk-delay-2 { animation-delay: 0.08s; }
.llk-delay-3 { animation-delay: 0.12s; }
.llk-delay-4 { animation-delay: 0.16s; }
.llk-delay-5 { animation-delay: 0.2s; }
.llk-delay-6 { animation-delay: 0.24s; }
.llk-delay-7 { animation-delay: 0.28s; }
.llk-delay-8 { animation-delay: 0.32s; }
.llk-delay-9 { animation-delay: 0.36s; }
.llk-delay-10 { animation-delay: 0.4s; }
.llk-delay-11 { animation-delay: 0.44s; }
.llk-scatter-0 { --scatter-rot: -3deg; --scatter-x: -5px; --scatter-y: 2px; }
.llk-scatter-1 { --scatter-rot: 2deg; --scatter-x: 4px; --scatter-y: -3px; }
.llk-scatter-2 { --scatter-rot: -1deg; --scatter-x: 2px; --scatter-y: 4px; }
.llk-scatter-3 { --scatter-rot: 3deg; --scatter-x: -3px; --scatter-y: -2px; }
.llk-scatter-4 { --scatter-rot: -2deg; --scatter-x: 5px; --scatter-y: 1px; }
.llk-scatter-5 { --scatter-rot: 1deg; --scatter-x: -4px; --scatter-y: 3px; }
.llk-scatter-6 { --scatter-rot: 2deg; --scatter-x: 3px; --scatter-y: -4px; }
.llk-scatter-7 { --scatter-rot: -3deg; --scatter-x: -2px; --scatter-y: -1px; }
.llk-scatter-8 { --scatter-rot: 1deg; --scatter-x: 1px; --scatter-y: 5px; }
.llk-scatter-9 { --scatter-rot: -1deg; --scatter-x: -5px; --scatter-y: -3px; }
.llk-scatter-10 { --scatter-rot: 3deg; --scatter-x: 4px; --scatter-y: 2px; }
.llk-scatter-11 { --scatter-rot: -2deg; --scatter-x: 0px; --scatter-y: -5px; }

/* ========== 批次指示器 ========== */
.llk-batch-indicator {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}
.llk-batch-indicator.is-visible {
    display: flex;
}
.llk-batch-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s;
}
.llk-batch-dot.llk-batch-done {
    background: var(--color-primary, #4abc99);
}
.llk-batch-dot.llk-batch-current {
    background: var(--color-accent, #ff8f60);
    transform: scale(1.3);
    box-shadow: 0 0 6px rgba(255, 143, 96, 0.4);
}

/* 批次过渡动画 */
.llk-batch-transition {
    animation: llk-batchFadeIn 0.4s ease-out;
}
@keyframes llk-batchFadeIn {
    from { opacity: 0.3; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 结算遮罩 ========== */
.llk-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 150;
}
.llk-overlay.is-visible {
    display: flex;
}

.llk-end-card {
    background: var(--color-bg-card, #fff);
    border-radius: var(--radius-lg, 14px);
    padding: 32px 40px;
    max-width: 460px;
    width: 90%;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: llk-fadeInUp 0.4s ease-out;
    font-family: var(--font-sans);
}
@keyframes llk-fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.llk-end-icon {
    margin-bottom: 8px;
    font-size: 64px;
    line-height: 1;
}
.llk-end-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 16px;
}
.llk-end-title.llk-end-win {
    color: var(--color-primary, #4abc99);
}
.llk-end-title.llk-end-lose {
    color: var(--color-error, #EF4444);
}

/* 统计行 */
.llk-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border-light, #e5e7eb);
    color: var(--color-text-secondary, #6b7280);
}
.llk-stat-row span:last-child {
    font-weight: 600;
    color: var(--color-text-primary, #434959);
}

/* 错词区 */
.llk-end-errors {
    margin-top: 16px;
    text-align: left;
}
.llk-error-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}
.llk-error-title.llk-perfect {
    text-align: center;
    color: #4abc99;
    font-size: 16px;
}
.llk-error-words {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.llk-error-hint {
    margin: -2px 0 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #7a8496;
}
.llk-error-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: min(260px, 32vh);
    overflow-y: auto;
    padding-right: 4px;
}
.llk-error-word-card {
    padding: 10px 12px;
    background: #f7fffc;
    border: 1px solid #ccefe4;
    border-radius: 10px;
}
.llk-error-word-main {
    font-size: 15px;
    font-weight: 700;
    color: #2f806b;
}
.llk-error-meaning {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
    color: #5f6878;
}
.llk-error-word {
    display: inline-block;
    padding: 4px 10px;
    background: #fff3f3;
    border: 1px solid #ffcccc;
    border-radius: 10px;
    font-size: 13px;
    color: #cc4444;
}
.llk-add-error-notebook {
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    border: none;
    border-radius: 18px;
    background: #edf7f3;
    color: var(--color-primary-dark, #2f9b7a);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.llk-add-error-notebook:hover:not(:disabled) {
    background: #dff4ec;
    transform: translateY(-1px);
}
.llk-add-error-notebook:disabled {
    cursor: default;
    opacity: 0.8;
}
.llk-add-error-notebook.is-added {
    background: #e6f7ef;
    color: #29936f;
}
.llk-notebook-status {
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 18px;
    background: #edf7f3;
    color: var(--color-primary-dark, #2f9b7a);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
.llk-notebook-status.is-added {
    background: #e6f7ef;
    color: #29936f;
}
.llk-notebook-status.is-error {
    background: #fff7ed;
    color: #b45309;
}
.llk-notebook-retry {
    margin-left: 8px;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* 结算按钮 */
.llk-end-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.llk-end-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.llk-btn-primary {
    background: linear-gradient(135deg, var(--color-primary, #4abc99), var(--color-primary-light, #78d4b6));
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 188, 153, 0.3);
}
.llk-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.llk-btn-secondary {
    background: #f0f0f0;
    color: #555;
}
.llk-btn-secondary:hover {
    background: #e0e0e0;
}
.llk-btn-screenshot {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
}
.llk-btn-screenshot:hover {
    border-color: var(--llk-accent);
    color: var(--llk-accent);
}

/* ========== 响应式 ========== */
/* ===== 大屏 (>1200px) ===== */
@media (min-width: 1201px) {
    .llk-flashcard-container {
        max-width: 1100px;
    }
    .llk-word-list-column {
        flex: 0 0 260px;
    }
    .llk-game-wrapper {
        max-width: 940px;
    }
}

/* ===== 平板竖屏 (768px~1024px) ===== */
@media (max-width: 1024px) {
    .llk-flashcard-container {
        max-width: 95%;
    }
    .llk-word-list-column {
        flex: 0 0 200px;
        padding: 14px 10px 14px 14px;
    }
    .llk-word-list li {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    .llk-flashcard-column {
        padding: 20px 24px;
    }
    .llk-flashcard {
        max-width: 460px;
        height: 420px;
    }
    .llk-fc-word { font-size: 2rem; }
    .llk-flashcard-back .llk-fc-word { font-size: 1.5rem; }
    .llk-fc-meaning { font-size: 1.1rem; }
    .llk-fc-sentence-en { font-size: 0.95rem; }
    .llk-fc-sentence-cn { font-size: 0.85rem; }
}

/* ===== 手机横屏 / 小平板 (<=768px) ===== */
@media (max-width: 768px) {
    /* 闪卡：上下布局 */
    .llk-flashcard-container {
        flex-direction: column;
        max-height: none;
        height: auto;
        border-radius: var(--radius-md, 10px);
    }
    .llk-word-list-column {
        flex: 0 0 auto;
        max-height: 180px;
        border-right: none;
        border-bottom: 1px solid var(--color-border-light, #e5e7eb);
        padding: 12px;
    }
    .llk-list-header { padding: 6px 8px; }
    .llk-list-title { font-size: 0.95rem; }
    .llk-mode-toggle { padding: 6px 8px; }
    .llk-word-list li {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin-bottom: 4px;
        border-radius: var(--radius-sm, 6px);
    }
    .llk-flashcard-column {
        padding: 16px;
    }
    .llk-flashcard {
        width: 100%;
        height: auto;
        min-height: 320px;
        max-height: none;
    }
    .llk-flashcard-face {
        position: relative;
        min-height: 320px;
        padding: 20px;
        border-radius: var(--radius-md, 10px);
    }
    .llk-fc-word { font-size: 1.8rem; margin-top: 10px; }
    .llk-flashcard-back .llk-fc-word { font-size: 1.4rem; }
    .llk-fc-ipa { font-size: 0.95rem; }
    .llk-fc-meaning { font-size: 1.05rem; margin-bottom: 10px; }
    .llk-fc-sentence-en { font-size: 0.9rem; }
    .llk-fc-sentence-cn { font-size: 0.82rem; }
    .llk-fc-btn { width: 40px; height: 40px; }

    /* 游戏 */
    .llk-game-wrapper {
        width: 100%;
        margin: 8px auto;
        min-height: calc(100vh - var(--navbar-height, 56px) - 40px - var(--ps-bar-height, 0px));
    }
    .llk-game-header {
        padding: 10px 14px;
        border-radius: var(--radius-sm, 6px);
    }
    .llk-game-board {
        gap: 8px;
        padding: 12px;
        border-radius: var(--radius-md, 10px);
    }
    .llk-card {
        min-height: 72px;
        padding: 22px 8px 10px;
        border-radius: var(--radius-sm, 6px);
    }
    .llk-card-word .llk-card-content { font-size: 0.95rem; }
    .llk-card-meaning .llk-card-content { font-size: 0.82rem; }
    .llk-heart { font-size: 16px; }
    .llk-game-timer { font-size: 0.9rem; }
    .llk-game-score { font-size: 0.8rem; }

    /* 结算 */
    .llk-end-card {
        padding: 24px 20px;
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* ===== 手机竖屏 (<=480px) ===== */
@media (max-width: 480px) {
    .llk-flashcard-container {
        width: 100%;
        margin: 8px auto;
        border-radius: var(--radius-sm, 6px);
    }
    .llk-word-list-column {
        max-height: 150px;
        padding: 8px;
    }
    .llk-mode-toggle { padding: 4px 6px; gap: 4px; }
    .llk-mode-btn { font-size: 0.75rem; padding: 4px 0; }
    .llk-word-list li {
        padding: 7px 10px;
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    .llk-flashcard-column { padding: 12px; }
    .llk-flashcard-face { min-height: 280px; padding: 16px; }
    .llk-fc-word { font-size: 1.5rem; }
    .llk-flashcard-back .llk-fc-word { font-size: 1.2rem; }
    .llk-fc-ipa { font-size: 0.85rem; }
    .llk-fc-meaning { font-size: 0.95rem; }
    .llk-fc-sentence-en { font-size: 0.82rem; }
    .llk-fc-sentence-cn { font-size: 0.78rem; }
    .llk-fc-actions { gap: 8px; }
    .llk-fc-btn { width: 38px; height: 38px; }
    .llk-fc-btn svg { width: 16px; height: 16px; }

    /* 游戏 */
    .llk-game-wrapper {
        width: 100%;
        margin: 6px auto;
    }
    .llk-game-board {
        --llk-cols: 3 !important;
        gap: 6px;
        padding: 8px;
        border-radius: var(--radius-sm, 6px);
    }
    .llk-card {
        min-height: 60px;
        padding: 18px 6px 8px;
        border-radius: var(--radius-sm, 6px);
    }
    .llk-card-badge { font-size: 0.55rem; padding: 2px 4px; top: 3px; left: 4px; }
    .llk-card-word .llk-card-content { font-size: 0.82rem; }
    .llk-card-meaning .llk-card-content { font-size: 0.75rem; }
    .llk-game-header {
        padding: 8px 10px;
        margin-bottom: 6px;
    }
    .llk-health-label { display: none; }
    .llk-heart { font-size: 14px; }
    .llk-game-timer { font-size: 0.85rem; gap: 3px; }
    .llk-game-timer svg { width: 13px; height: 13px; }
    .llk-game-score { font-size: 0.75rem; padding: 3px 8px; }
    .llk-batch-indicator { gap: 3px; margin-left: 6px; }
    .llk-batch-dot { width: 6px; height: 6px; }

    /* 结算 */
    .llk-end-card {
        padding: 20px 16px;
        border-radius: var(--radius-md, 10px);
        max-height: 90vh;
    }
    .llk-end-title { font-size: 1.2rem; }
    .llk-stat-row { font-size: 0.82rem; }
    .llk-error-word { font-size: 0.78rem; padding: 3px 8px; }
    .llk-end-btn { min-height: 42px; font-size: 0.88rem; }
}


/* ===== 散落卡片随机偏移 ===== */
.llk-card {
    --scatter-rot: 0deg;
    --scatter-x: 0px;
    --scatter-y: 0px;
    transform: rotate(var(--scatter-rot)) translate(var(--scatter-x), var(--scatter-y));
}
.llk-card:hover {
    transform: rotate(var(--scatter-rot)) translate(var(--scatter-x), var(--scatter-y)) translateY(-2px);
}
.llk-card-word.llk-card-selected,
.llk-card-meaning.llk-card-selected {
    transform: rotate(0deg) translate(0, 0) scale(1.05) !important;
}

/* ===== 卡片飞行合并动画 ===== */
.llk-card-fly {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    transform: scale(0.5) rotate(180deg) !important;
    opacity: 0.4;
    z-index: 100;
    pointer-events: none;
}

/* ===== SVG 连线错误抖动 ===== */
.llk-svg-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}
.llk-line-draw {
    transition: stroke-dashoffset 0.3s ease-out, opacity 0.25s ease-out;
}
.llk-line-glow {
    filter: drop-shadow(0 0 6px rgba(74, 188, 153, 0.7));
}
.llk-line-fade {
    opacity: 0;
}
@keyframes llk-lineShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}
.llk-line-error {
    animation: llk-lineShake 0.35s ease-out;
}

/* ===== Combo 浮动文字 ===== */
.llk-combo-float {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none;
    font-weight: 800;
    font-size: 1.3rem;
    color: #ff8f60;
    text-shadow: 0 2px 8px rgba(255, 143, 96, 0.5), 0 0 2px #fff;
    transform: translate(-50%, -50%) scale(var(--combo-scale, 1));
    animation: llk-comboRise 0.8s ease-out forwards;
    font-family: var(--font-sans);
    white-space: nowrap;
}
.llk-combo-float.llk-combo-big {
    font-size: 1.5rem;
}
.llk-combo-float.llk-combo-amazing {
    color: #ff4d4d;
    font-size: 1.6rem;
    text-shadow: 0 2px 12px rgba(255, 77, 77, 0.6), 0 0 4px #fff;
}
@keyframes llk-comboRise {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(var(--combo-scale, 1));
    }
    50% {
        opacity: 1;
        transform: translate(-50%, calc(-50% - 20px)) scale(calc(var(--combo-scale, 1) * 1.15));
    }
    100% {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 50px)) scale(var(--combo-scale, 1));
    }
}

/* ===== Combo 计数器 (header) ===== */
.llk-combo-counter {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 2px 10px;
    margin-left: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ff8f60, #ff5e3a);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255, 94, 58, 0.35);
}
.llk-combo-counter.is-visible {
    display: inline-flex;
}
.llk-combo-pulse {
    animation: llk-comboPulse 0.3s ease-out;
}
@keyframes llk-comboPulse {
    0% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ===== 屏幕边缘闪光 (combo >= 5) ===== */
.llk-screen-flash {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9997;
    border: 4px solid rgba(255, 143, 96, 0);
    animation: llk-edgeFlash 0.5s ease-out forwards;
    border-radius: 0;
}
@keyframes llk-edgeFlash {
    0% {
        border-color: rgba(255, 143, 96, 0.7);
        box-shadow: inset 0 0 40px rgba(255, 143, 96, 0.3);
    }
    100% {
        border-color: rgba(255, 143, 96, 0);
        box-shadow: inset 0 0 0px rgba(255, 143, 96, 0);
    }
}

/* ===== 移动端响应式增强 ===== */
@media (max-width: 640px) {
    .llk-game-board {
        --llk-cols: 3 !important;
    }
    .llk-card {
        min-height: 70px;
    }
    .llk-combo-float {
        font-size: 1.1rem;
    }
    .llk-combo-float.llk-combo-amazing {
        font-size: 1.3rem;
    }
}
@media (max-width: 400px) {
    .llk-game-board {
        --llk-cols: 2 !important;
    }
    .llk-card {
        min-height: 70px;
    }
}

/* ============================================================
   词汇测试 (Vocab Exam) 专属样式
   ============================================================ */

:root {
    --vex-accent: #6366f1;
}

/* === 视图切换 === */
.vex-view {
    display: none;
    width: 100%;
    min-height: calc(100vh - 120px - var(--ps-bar-height, 0px));
}
.vex-view.is-active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

/* ========== 配置视图 ========== */
.vex-config-container {
    width: 100%;
    max-width: 680px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
    padding: 32px;
    margin: 10px auto;
}

.vex-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}
.vex-config-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.vex-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.vex-back-link:hover {
    color: var(--vex-accent);
}

.vex-section {
    margin-bottom: 20px;
}
.vex-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.vex-section-label {
    font-size: 15px;
    font-weight: 600;
    color: #555;
}
.vex-section-actions {
    display: flex;
    gap: 6px;
}
.vex-btn-sm {
    padding: 4px 12px;
    font-size: 13px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}
.vex-btn-sm:hover {
    border-color: var(--vex-accent);
    color: var(--vex-accent);
}

/* 单元选择列表 */
.vex-level-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 6px;
    background: #fafafa;
}
.vex-level-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}
.vex-level-item:hover {
    background: var(--color-bg-sidebar, #eef8f4);
}
.vex-level-cb {
    width: 16px;
    height: 16px;
    accent-color: var(--vex-accent);
    flex-shrink: 0;
}
.vex-level-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}
.vex-level-count {
    font-size: 13px;
    color: #999;
    flex-shrink: 0;
}
.vex-selected-info {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* 模式选择 */
.vex-mode-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vex-mode-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.vex-mode-item:hover {
    border-color: var(--vex-accent);
    background: var(--color-bg-sidebar, #eef8f4);
}
.vex-mode-cb {
    width: 16px;
    height: 16px;
    accent-color: var(--vex-accent);
    flex-shrink: 0;
}
.vex-mode-text {
    font-size: 14px;
    color: #444;
}

/* 选项行 */
.vex-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vex-input {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    width: 120px;
    outline: none;
    transition: border-color 0.2s;
}
.vex-input:focus {
    border-color: var(--vex-accent);
}
.vex-option-hint {
    font-size: 13px;
    color: #aaa;
}
.vex-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}
.vex-checkbox-row input {
    accent-color: var(--vex-accent);
}

/* 开始按钮 */
.vex-start-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 24px;
    background: var(--vex-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.vex-start-btn:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.vex-start-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ========== 考试视图（还原 B 站样式） ========== */
.vex-exam-container {
    position: relative;
    width: 94%;
    max-width: 540px;
    margin: 20px auto;
    font-family: var(--font-sans);
}

/* 返回按钮 */
.vex-back-btn {
    width: 32px; height: 32px; border: none; border-radius: 8px;
    background: #f1f5f9; color: #64748b; font-size: 1.2rem;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all .15s; line-height: 1;
    text-decoration: none;
}
.vex-back-btn:hover { background: #fee2e2; color: #ef4444; }

/* 加载状态 */
.vex-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: var(--color-text-muted, #9ca3af);
    font-size: 0.85rem;
}
.vex-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--color-primary, #4abc99);
    border-radius: 50%;
    animation: vex-spin 0.8s linear infinite;
}
@keyframes vex-spin {
    to { transform: rotate(360deg); }
}

.vex-exam-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.vex-progress-area {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.vex-progress-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6366f1;
    white-space: nowrap;
}
.vex-progress-bar {
    flex: 1;
    height: 5px;
    background: var(--color-border-light, #e5e7eb);
    border-radius: 3px;
    overflow: hidden;
}
.vex-progress-fill {
    width: 0;
    height: 100%;
    background: #6366f1;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.vex-mode-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full, 9999px);
    background: #6366f1;
    color: #fff;
    white-space: nowrap;
}
.vex-errors-left {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full, 9999px);
    background: #f1f5f9;
    color: #475569;
    white-space: nowrap;
    transition: color 0.2s;
}
.vex-errors-left.vex-errors-warning {
    color: #f59e0b;
}
.vex-errors-left.vex-errors-danger {
    color: #ef4444;
}
.vex-combo {
    font-size: 0.9rem;
    font-weight: 800;
    color: #f59e0b;
    white-space: nowrap;
    background: #fef3c7;
    padding: 2px 10px;
    border-radius: 12px;
}
@keyframes vex-combo-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}
.vex-combo-pulse {
    animation: vex-combo-pulse 0.35s ease-out;
}
/* 计时进度条 */
.vex-timer-bar {
    width: 100%;
    max-width: 500px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 8px auto 12px;
    overflow: hidden;
}
.vex-timer-bar-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 3px;
    transition: width 1s linear;
}
.vex-timer-bar-fill.vex-timer-urgent {
    background: #ef4444;
}

.vex-combo-float {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 2.5rem;
    font-weight: 900;
    color: #f59e0b;
    text-shadow: 0 2px 8px rgba(245,158,11,0.4), 0 0 20px rgba(245,158,11,0.2);
    pointer-events: none;
    animation: vex-combo-burst 0.9s ease-out forwards;
    z-index: 10000;
    letter-spacing: 2px;
}
@keyframes vex-combo-burst {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    60% { opacity: 1; transform: translate(-50%, -60%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -80%) scale(0.8); }
}
.vex-timer {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted, #9ca3af);
    white-space: nowrap;
    min-width: 40px;
    text-align: right;
}
.vex-global-timer {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted, #9ca3af);
    white-space: nowrap;
}
.vex-timer-warning {
    color: #ff4d4d !important;
    animation: vex-pulse 0.5s ease-in-out infinite alternate;
}
@keyframes vex-pulse {
    from { opacity: 1; }
    to { opacity: 0.4; }
}

/* 题目区域 */
.vex-question-area {
    background: #eef2ff;
    border-radius: var(--radius-lg, 14px);
    border: 1px solid #c7d2fe;
    padding: 24px 20px 16px;
    min-height: 140px;
    position: relative;
    text-align: center;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.vex-question {
    width: 100%;
}
.vex-q-word {
    font-size: 2rem;
    font-weight: 700;
    color: #4338ca;
    margin-bottom: 6px;
    word-break: break-word;
    display: inline-block;
}
.vex-q-ipa {
    font-size: 1.05rem;
    color: var(--color-text-secondary, #6b7280);
    font-family: 'Lucida Sans Unicode', 'Arial Unicode MS', sans-serif;
    margin-bottom: 10px;
}
.vex-q-prompt {
    font-size: 1.2rem;
    color: var(--color-text-muted, #9ca3af);
    font-weight: 500;
    margin-bottom: 10px;
}
.vex-q-meaning {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary, #434959);
    line-height: 1.6;
    display: inline-block;
}
.vex-q-meaning p {
    margin: 2px 0;
}
.vex-q-sentence {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-primary, #434959);
    line-height: 1.7;
    text-align: center;
    padding: 0 8px;
}

/* 音频按钮 */
.vex-audio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: var(--radius-md, 10px);
    padding: 6px 16px;
    font-size: 0.85rem;
    color: var(--color-text-secondary, #6b7280);
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
    font-family: var(--font-sans);
}
.vex-audio-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

/* 选项按钮 */
.vex-choices {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 auto 16px;
}
/* 句子模式选项 — 纵向堆叠 */
.vex-choices.vex-choices-sentence {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.vex-choice-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color-bg-card, #fff);
    border: 2px solid var(--color-border-light, #e5e7eb);
    border-radius: var(--radius-md, 10px);
    cursor: pointer;
    font-size: 0.95rem;
    text-align: left;
    transition: all 0.15s;
    line-height: 1.5;
    font-family: var(--font-sans);
    color: var(--color-text-primary, #434959);
}
.vex-choice-btn:hover {
    border-color: #818cf8;
    background: #eef2ff;
}
.vex-choice-btn p {
    margin: 0;
}
.vex-choice-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-border-light, #e5e7eb);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-secondary, #6b7280);
    flex-shrink: 0;
}
.vex-choice-text {
    flex: 1;
    color: var(--color-text-primary, #434959);
    word-break: break-word;
}
/* 选中状态（点击选中，确认前） */
.vex-choice-selected {
    background: #eef2ff !important;
    border-color: #6366f1 !important;
}
.vex-choice-selected .vex-choice-num {
    background: #6366f1;
    color: #fff;
}
/* 正确 */
.vex-choice-correct {
    border-color: var(--color-success, #22C55E) !important;
    background: var(--color-success-bg, #F0FDF4) !important;
}
.vex-choice-correct .vex-choice-num {
    background: var(--color-success, #22C55E);
    color: #fff;
}
/* 错误 */
.vex-choice-wrong {
    border-color: var(--color-error, #EF4444) !important;
    background: var(--color-error-bg, #FEF2F2) !important;
}
.vex-choice-wrong .vex-choice-num {
    background: var(--color-error, #EF4444);
    color: #fff;
}
.vex-choice-faded {
    opacity: 0.2;
}

/* 确认按钮 */
/* 统一操作行 */
.vex-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 12px auto 16px;
}
.vex-result-badge {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.vex-result-correct {
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.vex-result-wrong {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.vex-result-timeout {
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fde68a;
}
.vex-confirm-btn {
    display: block;
    padding: 12px 0;
    flex: 1;
    background: var(--color-primary, #4abc99);
    color: #fff;
    border: none;
    border-radius: var(--radius-md, 10px);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}
.vex-confirm-btn:hover {
    opacity: 0.85;
}
.vex-btn-next {
    background: var(--color-success-bg, #F0FDF4);
    color: var(--color-success, #22C55E);
    border: 1px solid var(--color-success, #22C55E);
}
.vex-btn-next:hover {
    background: var(--color-success, #22C55E);
    color: #fff;
}

/* 输入区域 */
.vex-input-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.vex-spell-input {
    width: 100%;
    max-width: 450px;
    padding: 10px 14px;
    border: 2px solid var(--color-border-light, #e5e7eb);
    border-radius: var(--radius-md, 10px);
    font-size: 0.95rem;
    background: var(--color-bg-card, #fff);
    text-align: center;
    outline: none;
    transition: all 0.2s;
    font-family: var(--font-sans);
}
.vex-spell-input:focus {
    border-color: var(--color-primary, #4abc99);
    box-shadow: 0 0 0 3px rgba(74, 188, 153, 0.15);
}
.vex-input-correct {
    border-color: var(--color-success, #22C55E) !important;
    background: var(--color-success-bg, #F0FDF4) !important;
}
.vex-input-wrong {
    border-color: var(--color-error, #EF4444) !important;
    background: var(--color-error-bg, #FEF2F2) !important;
}
/* (vex-submit-btn 已移除，统一使用 vex-confirm-btn) */

/* 反馈 */
.vex-feedback {
    border-radius: var(--radius-md, 10px);
    padding: 12px 16px;
    margin-bottom: 12px;
    min-height: 30px;
}
.vex-feedback-icon {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 8px;
}
.vex-feedback-correct {
    color: var(--color-success, #22C55E);
    background: var(--color-success-bg, #F0FDF4);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm, 6px);
    padding: 8px 12px;
    display: inline-block;
}
.vex-feedback-wrong {
    color: var(--color-error, #EF4444);
    background: var(--color-error-bg, #FEF2F2);
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm, 6px);
    padding: 8px 12px;
    display: inline-block;
}
.vex-feedback-timeout {
    color: var(--color-warning, #F59E0B);
    background: var(--color-warning-bg, #FFFBEB);
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm, 6px);
    padding: 8px 12px;
    display: inline-block;
}
.vex-feedback-answer {
    font-size: 0.9rem;
    color: var(--color-text-secondary, #6b7280);
    margin-top: 8px;
}
.vex-feedback-correct-word {
    color: #388e3c;
}
.vex-feedback-detail {
    font-size: 0.85rem;
    color: var(--color-text-muted, #9ca3af);
    margin-top: 6px;
}
.vex-feedback-word {
    font-weight: 600;
    color: var(--color-text-primary, #434959);
    margin-right: 6px;
}
.vex-feedback-ipa {
    color: var(--color-text-secondary, #6b7280);
    font-family: 'Lucida Sans Unicode', sans-serif;
}
.vex-feedback-meaning {
    font-size: 0.85rem;
    color: var(--color-text-secondary, #6b7280);
    margin-top: 6px;
    font-weight: 500;
}
.vex-feedback-sentence {
    font-size: 0.82rem;
    color: var(--color-text-muted, #9ca3af);
    margin-top: 4px;
    line-height: 1.5;
}

/* (vex-next-btn 已合并到 vex-btn-next) */

/* 键盘提示 */
.vex-keyboard-hint {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

/* ========== 过渡视图 ========== */
.vex-interstitial-card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    animation: llk-fadeInUp 0.4s ease-out;
}
.vex-interstitial-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
}
.vex-interstitial-msg {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.6;
}
.vex-interstitial-details {
    text-align: left;
    margin-bottom: 24px;
}
.vex-interstitial-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}
.vex-interstitial-words {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.vex-word-tag-container {
    position: relative;
    display: inline-block;
}
.vex-interstitial-word {
    display: inline-block;
    padding: 4px 12px;
    background: #fff3f3;
    border: 1px solid #ffcccc;
    border-radius: 10px;
    font-size: 13px;
    color: #cc4444;
    cursor: pointer;
    transition: all 0.2s;
}
.vex-interstitial-word:hover {
    background: #ffe0e0;
    border-color: #ff9999;
}
.vex-word-details {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 220px;
    max-width: 320px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 100;
    text-align: left;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}
.vex-word-details.is-visible {
    display: block;
}
.vex-word-details p {
    margin: 0 0 4px;
}
.vex-word-details p:last-child {
    margin-bottom: 0;
}
.vex-interstitial-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    color: var(--color-text-secondary, #6b7280);
    margin-bottom: 16px;
    padding: 8px 16px;
    background: var(--color-bg-sidebar, #eef8f4);
    border-radius: 10px;
}
.vex-interstitial-countdown span:last-child {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-primary, #4abc99);
    letter-spacing: 1px;
}
.vex-interstitial-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.vex-continue-btn {
    padding: 12px 36px;
    background: var(--vex-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s;
}
.vex-continue-btn:hover {
    filter: brightness(1.1);
}
.vex-exit-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}
.vex-exit-btn:hover {
    background: #e0e0e0;
}

/* ========== 报告视图 ========== */
.vex-report-container {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: llk-fadeInUp 0.4s ease-out;
}
.vex-report-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0 0 24px;
}

/* 统计网格 */
.vex-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.vex-stat-item {
    text-align: center;
    padding: 16px 8px;
    background: #f8f9fa;
    border-radius: 12px;
}
.vex-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--vex-accent);
}
.vex-stat-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 错词列表 */
.vex-wrong-title {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin: 0 0 12px;
}
.vex-report-error-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.vex-report-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: default;
    transition: all .15s;
}
.vex-report-tag:hover {
    border-color: var(--color-primary, #4abc99);
    box-shadow: 0 2px 8px rgba(74, 188, 153, 0.15);
}
.vex-report-tag .llk-error-tag-word {
    font-weight: 600;
    font-size: .95rem;
    color: #1f2937;
}
.vex-report-tag .llk-error-tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #fee2e2;
    color: #dc2626;
    font-size: .75rem;
    font-weight: 700;
    padding: 0 5px;
}
.vex-report-tag .llk-error-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 220px;
    max-width: 340px;
}
.vex-report-tag .llk-error-popup.is-visible {
    display: block;
}
.vex-report-tag .llk-popup-word {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}
.vex-report-tag .llk-popup-ipa {
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: 6px;
}
.vex-report-tag .llk-popup-meaning {
    font-size: .9rem;
    color: #374151;
    margin-bottom: 8px;
}
.vex-report-tag .llk-popup-sentence {
    font-size: .85rem;
    color: #4b5563;
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 6px;
}
.vex-report-tag .llk-popup-sentence-cn {
    color: #6b7280;
    margin-top: 4px;
}
.vex-report-tag .llk-popup-err-info {
    font-size: .8rem;
    color: #dc2626;
    font-weight: 600;
    margin-top: 6px;
}
.vex-wrong-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.vex-wrong-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 14px;
    background: #fff8f8;
    border: 1px solid #ffeeee;
    border-radius: 8px;
}
.vex-wrong-word {
    font-weight: 600;
    color: #cc4444;
    flex-shrink: 0;
}
.vex-wrong-meaning {
    font-size: 14px;
    color: #777;
    word-break: break-word;
}
.vex-perfect-msg {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #4abc99;
    padding: 24px;
}

/* 报告操作 */
.vex-report-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.vex-report-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}
.vex-btn-accent {
    background: var(--vex-accent);
    color: #fff;
}
.vex-btn-accent:hover {
    filter: brightness(1.1);
}
.vex-btn-outline {
    background: #fff;
    color: var(--vex-accent);
    border: 2px solid var(--vex-accent);
}
.vex-btn-outline:hover {
    background: var(--color-bg-sidebar, #eef8f4);
}
.vex-report-btn.vex-btn-secondary {
    background: #f0f0f0;
    color: #666;
}
.vex-report-btn.vex-btn-secondary:hover {
    background: #e0e0e0;
}

/* ========== 考试视图响应式 ========== */
@media (max-width: 768px) {
    .vex-view.is-active {
        padding: 12px;
    }
    .vex-exam-container {
        width: 100%;
        max-width: none;
        margin: 12px auto;
        padding: 0 12px;
    }
    .vex-exam-topbar {
        flex-wrap: wrap;
        gap: 8px;
    }
    .vex-progress-area {
        width: 100%;
    }
    .vex-q-word {
        font-size: 1.4rem;
    }
    .vex-q-sentence {
        font-size: 0.95rem;
    }
    .vex-choice-btn {
        padding: 10px 14px;
        font-size: 0.88rem;
    }
    .vex-question-area {
        padding: 24px 20px 18px;
        min-height: 250px;
    }
    .vex-keyboard-hint {
        display: none;
    }
    .vex-interstitial-card {
        padding: 28px 20px;
    }
    .vex-report-container {
        padding: 24px 16px;
    }
    .vex-stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .vex-question-area {
        padding: 20px 16px 14px;
        min-height: 220px;
        border-radius: var(--radius-md, 10px);
    }
    .vex-config-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .vex-option-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .vex-input {
        width: 100%;
    }
    .vex-input-area {
        flex-direction: column;
    }
    .vex-spell-input {
        font-size: 0.88rem;
    }
    .vex-choice-btn {
        padding: 10px 12px;
        font-size: 0.82rem;
    }
    .vex-choice-num {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
    .vex-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vex-report-actions {
        flex-direction: column;
    }
    .vex-report-btn {
        justify-content: center;
    }
}


/* ============================================================
   生词本 (Vocab Notebook) 专属样式
   ============================================================ */

.vnb-container {
    max-width: 980px;
    margin: 22px auto;
    padding: 0 20px;
    --vnb-primary: #34b78f;
    --vnb-primary-dark: #16866f;
    --vnb-primary-soft: #eaf8f3;
    --vnb-ink: #202a35;
    --vnb-muted: #718197;
    --vnb-line: #dfe8ee;
    --vnb-surface: #ffffff;
    --vnb-page: #f6faf9;
}

/* 头部 */
.vnb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5ecef;
}
.vnb-header-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.vnb-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--vnb-ink);
    margin: 0;
    letter-spacing: 0;
}
.vnb-count {
    font-size: 15px;
    font-weight: 700;
    color: #9aa6b2;
}
.vnb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #7d8a97;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.vnb-back-link:hover {
    color: var(--vnb-primary-dark);
}

.vnb-practice-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 24px 28px;
    border: 1px solid #cfece3;
    border-radius: 8px;
    background: linear-gradient(135deg, #f3fbf8 0%, #ffffff 78%);
    box-shadow: 0 12px 30px rgba(38, 96, 83, 0.05);
}

.vnb-practice-copy {
    min-width: 0;
}

.vnb-panel-kicker {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--vnb-primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.vnb-panel-title {
    margin: 0 0 6px;
    color: var(--vnb-ink);
    font-size: 22px;
    font-weight: 800;
}

.vnb-panel-desc {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
}

.vnb-practice-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.vnb-primary-action,
.vnb-secondary-action,
.vnb-selection-primary,
.vnb-selection-btn {
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.vnb-primary-action {
    height: 44px;
    padding: 0 20px;
    background: var(--vnb-primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(52, 183, 143, 0.2);
}

.vnb-secondary-action {
    height: 44px;
    padding: 0 16px;
    background: #fff;
    color: #475569;
    border: 1px solid #d7e3ee;
}

/* 搜索栏 */
.vnb-search-bar {
    position: relative;
    margin-bottom: 18px;
}
.vnb-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a7b3bf;
    pointer-events: none;
}
.vnb-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
}
.vnb-search-input:focus {
    border-color: var(--vnb-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 183, 143, 0.12);
}

.vnb-filter-shell {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 14px;
}

.vnb-task-tabs,
.vnb-time-tabs,
.vnb-alpha-index {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.vnb-task-tab,
.vnb-time-tab,
.vnb-alpha-btn {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #dbe5ee;
    border-radius: 999px;
    background: #fff;
    color: #66768a;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.vnb-task-tab.is-active,
.vnb-time-tab.is-active,
.vnb-alpha-btn.is-active {
    border-color: #bde9dd;
    background: var(--vnb-primary-soft);
    color: var(--vnb-primary-dark);
    box-shadow: inset 0 0 0 1px rgba(52, 183, 143, 0.08);
}

.vnb-alpha-index {
    gap: 4px;
}

.vnb-alpha-btn {
    min-width: 30px;
    padding: 0 8px;
    font-size: 12px;
}

.vnb-selection-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #dce8f1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.vnb-selection-count {
    color: #263241;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.vnb-selection-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.vnb-selection-btn,
.vnb-selection-primary {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

.vnb-selection-btn {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #dce5ee;
}

.vnb-selection-primary {
    background: var(--vnb-primary);
    color: #fff;
}

.vnb-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -6px 0 12px;
    color: #8090a3;
    font-size: 14px;
}

.vnb-list-summary {
    min-width: 0;
}

.vnb-page-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.vnb-page-btn {
    min-width: 58px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #dce5ee;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.vnb-page-btn:hover:not(:disabled) {
    border-color: var(--vnb-primary);
    color: var(--vnb-primary-dark);
}

.vnb-page-btn:disabled {
    color: #cbd5e1;
    cursor: default;
}

.vnb-page-status {
    min-width: 42px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.vnb-lookup-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: -8px 0 20px;
}

.vnb-lookup-header {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    padding: 0 2px 2px;
}

.vnb-lookup-state {
    padding: 12px 14px;
    border: 1px dashed #d7dee8;
    border-radius: 10px;
    color: #64748b;
    background: #f8fafc;
    font-size: 14px;
}

.vnb-lookup-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    border: 1px solid #dbe7f3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.vnb-lookup-main {
    flex: 1;
    min-width: 0;
}

.vnb-lookup-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}

.vnb-lookup-title-main {
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
}

.vnb-lookup-word {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.vnb-lookup-ipa {
    font-size: 13px;
    color: #64748b;
}

.vnb-lookup-body {
    padding-top: 10px;
}

.vnb-lookup-meaning {
    color: #334155;
    font-size: 14px;
    line-height: 1.65;
}

.vnb-lookup-meaning p {
    margin: 0 0 6px;
}

.vnb-lookup-meaning p:last-child {
    margin-bottom: 0;
}

.vnb-lookup-sentence {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 3px solid #bfdbfe;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    line-height: 1.65;
}

.vnb-lookup-sentence p {
    margin: 0 0 6px;
}

.vnb-lookup-sentence p:last-child {
    margin-bottom: 0;
}

.vnb-lookup-sentence strong,
.vnb-lookup-sentence u {
    color: #1d4ed8;
    text-decoration-color: #93c5fd;
    text-underline-offset: 2px;
}

.vnb-lookup-source {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef6ff;
    color: #477199;
    font-size: 12px;
    font-weight: 700;
}

.vnb-lookup-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding-left: 4px;
}

.vnb-lookup-add {
    padding: 9px 13px;
    border: none;
    border-radius: 8px;
    background: var(--color-primary, #4abc99);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.vnb-lookup-add.is-added,
.vnb-lookup-add:disabled {
    background: #94a3b8;
    cursor: default;
}

/* 加载状态 */
.vnb-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: #999;
    font-size: 14px;
    gap: 12px;
}
.vnb-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--color-primary, #4abc99);
    border-radius: 50%;
    animation: llk-spin 0.8s linear infinite;
}

/* 空状态 */
.vnb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}
.vnb-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.vnb-empty-text {
    font-size: 18px;
    color: #555;
    font-weight: 600;
    margin: 0 0 8px;
}
.vnb-empty-hint {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* 单词列表 */
.vnb-word-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vnb-word-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: 82px;
    padding: 14px 14px 14px 16px;
    background: #fff;
    border: 1px solid #dfe7ee;
    border-radius: 8px;
    transition: all 0.15s;
    cursor: pointer;
}
.vnb-word-card:hover {
    border-color: #cbd8e3;
    box-shadow: 0 8px 22px rgba(22, 38, 55, 0.06);
}
.vnb-word-card.is-selected {
    border-color: #8edfcc;
    background: #f4fffb;
    box-shadow: inset 3px 0 0 var(--vnb-primary), 0 8px 22px rgba(52, 183, 143, 0.08);
}
.is-hidden {
    display: none !important;
}

.sat-wnb-container {
    max-width: 1160px;
}

.sat-wnb-practice-panel {
    align-items: stretch;
}

.sat-wnb-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.sat-wnb-tree-shell,
.sat-wnb-list-shell {
    min-width: 0;
}

.sat-wnb-tree-shell {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 14px;
    border: 1px solid #dfe8ee;
    border-radius: 8px;
    background: #fff;
}

.sat-wnb-tree-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #202a35;
    font-size: 14px;
    font-weight: 800;
}

.sat-wnb-clear-btn {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #dbe5ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.sat-wnb-question-card {
    cursor: pointer;
}

.sat-wnb-question-card .vnb-word-main {
    grid-template-columns: minmax(260px, 0.4fr) minmax(0, 1fr);
}

.sat-wnb-question-card .vnb-word-text {
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 860px) {
    .sat-wnb-practice-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .sat-wnb-layout {
        grid-template-columns: 1fr;
    }

    .sat-wnb-tree-shell {
        position: static;
        max-height: 360px;
    }
}

.vnb-check-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    flex-shrink: 0;
    cursor: pointer;
}
.vnb-word-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.vnb-check-box {
    width: 18px;
    height: 18px;
    border: 2px solid #b8c5d2;
    border-radius: 6px;
    background: #fff;
}
.vnb-word-check:checked + .vnb-check-box {
    border-color: var(--vnb-primary);
    background: var(--vnb-primary);
    box-shadow: inset 0 0 0 4px #fff;
}
.vnb-word-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}
.vnb-word-main {
    display: grid;
    grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 16px;
    flex: 1;
    min-width: 0;
}
.vnb-word-text {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #202a35;
    word-break: break-word;
}
.vnb-word-translation {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    color: #55677d;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vnb-word-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.vnb-word-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.vnb-word-seen,
.vnb-word-date {
    font-size: 12px;
    white-space: nowrap;
}

.vnb-tag-repeat {
    background: #e9f7f2;
    color: #147863;
}

.vnb-tag-status {
    background: #fff7df;
    color: #9a6200;
}

.vnb-tag-mastered {
    background: #eef3ff;
    color: #365fad;
}

.vnb-tag-date {
    background: transparent;
    color: #a8b2bd;
    padding-left: 0;
    font-weight: 700;
}
.vnb-word-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}
.vnb-btn-audio,
.vnb-btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #dce4eb;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    color: #7f8b98;
    transition: all 0.2s;
}
.vnb-btn-audio:hover {
    border-color: var(--vnb-primary);
    color: var(--vnb-primary-dark);
    background: #f3fbf8;
}
.vnb-btn-delete:hover {
    border-color: #efb8b8;
    color: #d04444;
    background: #fff7f7;
}

.csp-confetti-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* 生词本响应式 */
@media (max-width: 768px) {
    .vnb-container {
        padding: 0 12px;
    }
    .vnb-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .vnb-practice-panel {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }
    .vnb-practice-actions {
        flex-wrap: wrap;
    }
    .vnb-primary-action,
    .vnb-secondary-action {
        flex: 1 1 110px;
    }
    .vnb-selection-bar {
        align-items: flex-start;
        flex-direction: column;
    }
    .vnb-list-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .vnb-word-list {
        grid-template-columns: 1fr;
    }
    .vnb-word-card {
        min-height: 92px;
        padding: 12px 14px;
    }
    .vnb-word-main {
        display: block;
    }
    .vnb-word-text {
        margin-bottom: 4px;
    }
    .vnb-word-actions {
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .vnb-word-meta {
        flex-direction: row;
        gap: 4px;
    }
    .vnb-word-date {
        display: none;
    }
    .vnb-lookup-card {
        flex-direction: column;
    }
    .vnb-lookup-actions {
        justify-content: flex-start;
        padding-left: 0;
    }
}
