/* ===== 分批学习进度 ===== */
.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: 16px;
    color: var(--color-text-secondary, #6b7280);
    line-height: 1.7;
    text-align: left;
    padding: 10px 14px;
    background: var(--color-info-bg, #EFF6FF);
    border-radius: var(--radius-sm, 6px);
}

/* 点击提示 */
.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;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 15px;
    border: none;
    border-radius: 8px;
    background: var(--vnb-primary);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(52, 183, 143, 0.18);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.vnb-back-link:hover {
    background: var(--vnb-primary-dark);
    color: #fff;
    box-shadow: 0 12px 24px rgba(52, 183, 143, 0.22);
}
.vnb-back-link svg {
    flex: 0 0 auto;
}

.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);
}

/* 生词本新版工作台 */
body.vocab-notebook-page {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    min-height: 100%;
    background: linear-gradient(180deg, #f4f8f6 0%, #f4f8f6 100%);
}

body.vocab-notebook-page::before {
    content: "";
    position: absolute;
    inset: 62px 0 auto;
    height: 520px;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(222, 252, 240, 0.95) 0%, rgba(225, 250, 240, 0.88) 47%, rgba(244, 248, 246, 0.98) 100%),
        radial-gradient(circle at 82% 4%, rgba(67, 214, 181, 0.28), rgba(67, 214, 181, 0) 34%),
        radial-gradient(circle at 16% 35%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 42%);
}

body.vocab-notebook-page .main-content,
body.vocab-notebook-page .footer {
    position: relative;
    z-index: 1;
    background: transparent;
}

body.vocab-notebook-page .main-content {
    padding-top: 62px;
}

body.vocab-notebook-page .main-content::before {
    content: "";
    position: absolute;
    right: max(92px, calc((100vw - 1400px) / 2 + 78px));
    top: 82px;
    width: 287px;
    height: 241px;
    z-index: 2;
    pointer-events: none;
    background: var(--active-mascot-image,none) center / contain no-repeat;
    opacity: 1;
    filter: drop-shadow(0 26px 32px rgba(4, 120, 87, 0.16));
}

body.vnb-modal-open {
    overflow: hidden;
}

.vnb-hero-copy {
    position: absolute;
    left: max(28px, calc((100vw - 1400px) / 2 + 40px));
    top: 120px;
    z-index: 2;
    pointer-events: none;
}

.vnb-hero-copy::before {
    content: "BilingGo";
    position: absolute;
    left: -6px;
    top: -72px;
    z-index: -1;
    color: rgba(18, 132, 111, 0.1);
    font-size: clamp(80px, 13vw, 176px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.vnb-hero-title {
    margin: 0;
    color: #2d3034;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: 0;
}

.vnb-hero-subtitle {
    display: block;
    margin-top: 12px;
    color: #4f6f80;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.45;
}

.vnb-hero-count-number {
    color: #08bfa2;
    font-weight: 700;
}

body.vocab-notebook-page .vnb-container {
    --vnb-primary: #08bfa2;
    --vnb-primary-dark: #079d88;
    --vnb-primary-soft: rgba(232, 250, 247, 0.78);
    --vnb-ink: #303746;
    --vnb-muted: #64748b;
    width: 100%;
    max-width: 1400px;
    margin: 218px auto 72px;
    padding: 0 40px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(260px, 305px) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

.vnb-side-column,
.vnb-main-column {
    min-width: 0;
}

.vnb-side-column {
    display: flex;
    flex-direction: column;
}

.vnb-main-column {
    display: flex;
    flex-direction: column;
}

body.vocab-notebook-page .vnb-practice-panel,
.vnb-panel-search-card,
body.vocab-notebook-page .vnb-word-card,
body.vocab-notebook-page .vnb-empty,
body.vocab-notebook-page .vnb-loading {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(225, 231, 235, 0.92);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.045);
    backdrop-filter: blur(6px);
}

body.vocab-notebook-page .vnb-practice-panel {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 18px;
    padding: 24px 22px;
}

body.vocab-notebook-page .vnb-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

body.vocab-notebook-page .vnb-hero-copy .vnb-back-link {
    position: static;
    flex: 0 0 auto;
    margin-top: 6px;
    pointer-events: auto;
    height: 36px;
    border-radius: 8px;
    background: var(--vnb-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(52, 183, 143, 0.18);
}

body.vocab-notebook-page .vnb-practice-actions,
.vnb-panel-search-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
}

body.vocab-notebook-page .vnb-panel-kicker,
.vnb-panel-search-title {
    display: flex;
    position: relative;
    align-items: center;
    min-height: 34px;
    margin: 0;
    padding-left: 16px;
    color: #303746;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

body.vocab-notebook-page .vnb-panel-kicker::before,
.vnb-panel-search-title::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 18%;
    width: 28px;
    height: 41px;
    flex: 0 0 auto;
    transform: translateY(-52%);
    background: url("/static/home/gologo.svg") center / contain no-repeat;
    -webkit-mask-image: linear-gradient(135deg, #000 0%, #000 24%, rgba(0, 0, 0, 0.72) 44%, rgba(0, 0, 0, 0.24) 68%, transparent 100%);
    mask-image: linear-gradient(135deg, #000 0%, #000 24%, rgba(0, 0, 0, 0.72) 44%, rgba(0, 0, 0, 0.24) 68%, transparent 100%);
}

body.vocab-notebook-page .vnb-panel-title {
    margin: 6px 0;
    color: var(--vnb-primary);
    font-size: 16px;
    font-weight: 700;
}

body.vocab-notebook-page .vnb-panel-desc {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
}

.vnb-panel-search-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
    padding: 24px 22px;
    box-sizing: border-box;
}

.vnb-panel-search-card .vnb-search-bar {
    display: block;
    margin: 10px 0;
}

body.vocab-notebook-page .vnb-search-bar {
    position: relative;
}

body.vocab-notebook-page .vnb-search-input {
    height: 44px;
    border-radius: 10px;
}

body.vocab-notebook-page .vnb-filter-shell {
    gap: 10px;
    margin-bottom: 14px;
}

body.vocab-notebook-page .vnb-task-tabs,
body.vocab-notebook-page .vnb-time-tabs,
body.vocab-notebook-page .vnb-alpha-index {
    gap: 7px;
}

.vnb-filter-label {
    flex: 0 0 auto;
    margin-right: 10px;
    color: #536b77;
    font-size: 13px;
    font-weight: 600;
    line-height: 32px;
    white-space: nowrap;
}

body.vocab-notebook-page .vnb-task-tab,
body.vocab-notebook-page .vnb-time-tab,
body.vocab-notebook-page .vnb-alpha-btn {
    min-height: 32px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: none;
}

body.vocab-notebook-page .vnb-alpha-btn {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    font-size: 12px;
}

body.vocab-notebook-page .vnb-task-tab.is-active,
body.vocab-notebook-page .vnb-time-tab.is-active,
body.vocab-notebook-page .vnb-alpha-btn.is-active {
    background: var(--vnb-primary-soft);
    border-color: rgba(8, 191, 162, 0.16);
    color: var(--vnb-primary);
    box-shadow: none;
}

body.vocab-notebook-page .vnb-selection-bar {
    top: 10px;
    z-index: 10;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055);
}

.vnb-selection-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-wrap: wrap;
}

.vnb-selection-info .vnb-list-summary {
    min-width: 0;
    color: #8090a3;
    font-size: 14px;
    font-weight: 400;
}

body.vocab-notebook-page .vnb-word-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: stretch;
}

body.vocab-notebook-page .vnb-word-card {
    min-height: 92px;
}

.qb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.qb-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dce5ee;
    border-radius: 8px;
    background: #fff;
    color: #66768a;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.qb-page-btn.active {
    border-color: rgba(8, 191, 162, 0.28);
    background: var(--vnb-primary-soft);
    color: var(--vnb-primary-dark);
}

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

.qb-page-ellipsis,
.qb-page-jump {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.qb-page-input {
    width: 42px;
    height: 32px;
    margin: 0 4px;
    border: 1px solid #dce5ee;
    border-radius: 8px;
    text-align: center;
    font: inherit;
    font-size: 13px;
}

.vnb-lookup-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.vnb-lookup-dialog {
    width: min(1040px, calc(100vw - 48px));
    max-height: calc(100dvh - 64px);
    overflow: auto;
    border: 1px solid rgba(225, 231, 235, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    box-sizing: border-box;
}

.vnb-lookup-dialog-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(225, 231, 235, 0.9);
    background: rgba(255, 255, 255, 0.96);
}

.vnb-lookup-dialog-title {
    margin: 0;
    color: #303746;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.vnb-lookup-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #dbe5ee;
    border-radius: 999px;
    background: #fff;
    color: #66768a;
    cursor: pointer;
}

.vnb-lookup-dialog-body {
    padding: 20px;
}

.vnb-lookup-dialog-body .vnb-search-bar {
    display: block;
    margin: 0 0 14px;
}

body.vocab-notebook-page .vnb-lookup-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    margin: 0;
}

body.vocab-notebook-page .vnb-lookup-results.is-hidden {
    display: none !important;
}

body.vocab-notebook-page .vnb-lookup-header,
body.vocab-notebook-page .vnb-lookup-state {
    grid-column: 1 / -1;
}

body.vocab-notebook-page .vnb-lookup-card {
    border-radius: 14px;
}

@media (max-width: 900px) {
    .vnb-hero-copy {
        position: relative;
        left: auto;
        top: auto;
        margin: 92px 20px 18px;
    }

    .vnb-hero-copy::before {
        top: -44px;
        font-size: 76px;
    }

    .vnb-hero-title {
        font-size: 30px;
    }

    body.vocab-notebook-page::before {
        top: 56px;
        height: 430px;
    }

    body.vocab-notebook-page .main-content {
        padding-top: 210px;
    }

    body.vocab-notebook-page .main-content::before {
        right: 8px;
        top: 86px;
        width: 160px;
        height: 122px;
        opacity: 0.72;
    }

    body.vocab-notebook-page .vnb-container {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0 auto 48px;
        padding: 0 16px;
    }

    body.vocab-notebook-page .vnb-practice-panel,
    .vnb-panel-search-card {
        padding: 18px;
    }

    body.vocab-notebook-page .vnb-word-list,
    body.vocab-notebook-page .vnb-lookup-results {
        grid-template-columns: 1fr;
    }

    body.vocab-notebook-page .vnb-selection-bar {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .vnb-selection-actions {
        justify-content: flex-start;
    }

    .vnb-lookup-modal {
        align-items: stretch;
        padding: 14px;
    }

    .vnb-lookup-dialog {
        width: 100%;
        max-height: calc(100dvh - 28px);
    }
}
.is-hidden {
    display: none !important;
}

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

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

.sat-wnb-prefilters {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    margin: -4px 0 18px;
    padding: 12px 14px;
    border: 1px solid #dfe8ee;
    border-radius: 8px;
    background: #fff;
}

.sat-wnb-filter-field {
    display: grid;
    gap: 6px;
    min-width: 160px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.sat-wnb-filter-field-compact {
    min-width: 150px;
}

.sat-wnb-filter-field input {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dbe5ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #202a35;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.sat-wnb-source-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sat-wnb-source-chip {
    height: 36px;
    padding: 0 11px;
    border: 1px solid #dbe5ee;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.sat-wnb-source-chip.is-active {
    border-color: #32a987;
    background: #e9f7f2;
    color: #147863;
}

.sat-wnb-filter-separator {
    height: 36px;
    display: inline-flex;
    align-items: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.sat-wnb-filter-reset {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dbe5ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.sat-wnb-quick-filters {
    display: grid;
    gap: 10px;
    margin: -4px 0 14px;
    padding: 12px 16px;
    border: 1px solid #dfe8ee;
    border-radius: 12px;
    background: #fff;
}

.sat-wnb-filter-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.sat-wnb-filter-row-label {
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}

.sat-wnb-chip-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.sat-wnb-type-chip-group {
    align-items: flex-start;
}

.sat-wnb-filter-chip {
    --sat-choice-accent: #0f766e;
    --sat-choice-bg: #f8fafc;
    --sat-choice-border: #dce6e2;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 22px 0 16px;
    border: 1px solid var(--sat-choice-border);
    border-radius: 12px;
    background: var(--sat-choice-bg);
    color: #475569;
    font-size: 14px;
    font-weight: 850;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.sat-wnb-filter-chip.is-active {
    border-color: var(--sat-choice-accent);
    background: var(--sat-choice-bg);
    color: var(--sat-choice-accent);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .14);
}

.sat-wnb-filter-chip.is-empty:not(.is-active) {
    opacity: .48;
}

.sat-wnb-filter-chip.is-sat-subject-reading {
    --sat-choice-accent: #0ea77b;
    --sat-choice-bg: #e8fbf3;
    --sat-choice-border: #9bd8c7;
}

.sat-wnb-filter-chip.is-sat-subject-writing {
    --sat-choice-accent: #d28a21;
    --sat-choice-bg: #fff3da;
    --sat-choice-border: #e8c182;
}

.sat-wnb-filter-chip.is-sat-subject-math {
    --sat-choice-accent: #0d9488;
    --sat-choice-bg: #e6fbf7;
    --sat-choice-border: #9bd8d0;
}

.sat-wnb-type-chip {
    --sat-choice-accent: #08bfa2;
    --sat-choice-bg: #ecfbf7;
    --sat-choice-border: #a8ded3;
}

.sat-wnb-type-chip.is-ability-expression {
    --sat-choice-accent: #0ea77b;
    --sat-choice-bg: #e8fbf3;
    --sat-choice-border: #9bd8c7;
}

.sat-wnb-type-chip.is-ability-craft {
    --sat-choice-accent: #4f73d9;
    --sat-choice-bg: #edf3ff;
    --sat-choice-border: #b9c8f5;
}

.sat-wnb-type-chip.is-ability-information {
    --sat-choice-accent: #a567d8;
    --sat-choice-bg: #f7edff;
    --sat-choice-border: #d6b8ef;
}

.sat-wnb-type-chip.is-ability-conventions {
    --sat-choice-accent: #d28a21;
    --sat-choice-bg: #fff3da;
    --sat-choice-border: #e8c182;
}

.sat-wnb-type-chip.is-ability-math-a {
    --sat-choice-accent: #2785d6;
    --sat-choice-bg: #eaf5ff;
    --sat-choice-border: #aed1f2;
}

.sat-wnb-type-chip.is-ability-math-b {
    --sat-choice-accent: #0d9488;
    --sat-choice-bg: #e6fbf7;
    --sat-choice-border: #9bd8d0;
}

.sat-wnb-type-chip.is-ability-math-c {
    --sat-choice-accent: #c45a94;
    --sat-choice-bg: #fff0f8;
    --sat-choice-border: #ebb4d1;
}

.sat-wnb-chip-count {
    position: absolute;
    top: -9px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    line-height: 16px;
    text-align: center;
}

.sat-wnb-filter-chip[data-sat-wnb-difficulty] {
    justify-content: flex-start;
    min-width: 118px;
    min-height: 40px;
    padding: 6px 12px;
    background: #fff;
}

.sat-wnb-filter-chip.is-active .sat-wnb-chip-count {
    background: var(--sat-choice-accent);
    color: #fff;
}

.sat-wnb-review-chip {
    min-height: 36px;
    padding-right: 24px;
}

.sat-wnb-review-chip.is-active {
    border-color: #2ecaa5;
    background: #e8fbf5;
    color: #0f766e;
}

.sat-wnb-filter-chip .qb-sat-practice-difficulty-bars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 20px;
    gap: 2px;
    padding: 0 2px;
    border-radius: 999px;
}

.sat-wnb-filter-chip .qb-sat-practice-difficulty-bars i {
    display: block;
    width: 5px;
    border-radius: 999px;
    background: #d8e2e7;
}

.sat-wnb-filter-chip .qb-sat-practice-difficulty-bars i:nth-child(1) { height: 7px; }
.sat-wnb-filter-chip .qb-sat-practice-difficulty-bars i:nth-child(2) { height: 11px; }
.sat-wnb-filter-chip .qb-sat-practice-difficulty-bars i:nth-child(3) { height: 15px; }
.sat-wnb-filter-chip .qb-sat-practice-difficulty-bars.is-easy i:nth-child(1) { background: #16a77d; }
.sat-wnb-filter-chip .qb-sat-practice-difficulty-bars.is-medium i:nth-child(-n+2) { background: #d18b16; }
.sat-wnb-filter-chip .qb-sat-practice-difficulty-bars.is-hard i { background: #d04d40; }

.sat-wnb-difficulty-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.sat-wnb-difficulty-text strong {
    color: #243145;
    font-size: 13px;
    font-weight: 850;
}

.sat-wnb-difficulty-text small {
    color: #7a8a9a;
    font-size: 10px;
    font-weight: 800;
}

.sat-wnb-filter-empty {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.sat-wnb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

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

.sat-wnb-list-shell .vnb-selection-bar {
    position: static;
    min-height: 48px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    box-shadow: none;
}

.sat-wnb-list-shell .vnb-selection-count {
    font-size: 14px;
}

.sat-wnb-list-shell .vnb-selection-btn,
.sat-wnb-list-shell .vnb-selection-primary {
    min-height: 34px;
    padding: 0 11px;
}

.sat-wnb-list-shell .vnb-list-toolbar {
    margin: 0 0 8px;
}

.sat-wnb-list-shell .vnb-word-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    align-items: stretch;
}

body.vocab-notebook-page .sat-wnb-list-shell .vnb-word-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sat-wnb-question-card {
    cursor: pointer;
    min-height: 116px;
    padding: 12px;
}

body.vocab-notebook-page .sat-wnb-question-card {
    min-height: 116px;
}

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

.sat-wnb-question-card .vnb-word-content {
    min-width: 0;
    width: 100%;
}

.sat-wnb-question-card .vnb-word-text {
    font-size: 17px;
}

.sat-wnb-preview-trigger {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: #1f2937;
    font-family: inherit;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}

.sat-wnb-preview-trigger:hover,
.sat-wnb-preview-trigger:focus-visible {
    color: #0f766e;
    text-decoration: underline;
    outline: none;
}

.sat-wnb-question-card .vnb-word-translation {
    font-size: 14px;
    font-weight: 800;
    color: #64748b;
}

.sat-wnb-inline-difficulty {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    vertical-align: middle;
}

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

.sat-wnb-question-card .sat-wnb-preview-trigger {
    display: inline-flex;
}

.sat-wnb-history-btn {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.sat-wnb-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sat-wnb-preview-modal.is-open {
    display: flex;
}

.sat-wnb-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .42);
}

.sat-wnb-preview-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(880px, 100%);
    max-height: min(86vh, 860px);
    border: 1px solid #dbe7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
    overflow: hidden;
}

.sat-wnb-preview-head,
.sat-wnb-preview-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.sat-wnb-preview-head h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 900;
}

.sat-wnb-preview-close {
    width: 34px;
    height: 34px;
    border: 1px solid #dbe7ef;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.sat-wnb-preview-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
}

.sat-wnb-preview-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.sat-wnb-preview-title-row strong {
    color: #1f2937;
    font-size: 20px;
    font-weight: 900;
}

.sat-wnb-preview-title-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 13px;
    font-weight: 900;
}

.sat-wnb-preview-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
}

.sat-wnb-preview-section h4 {
    margin: 0 0 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}

.sat-wnb-preview-rich {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.7;
}

.sat-wnb-preview-rich p {
    margin: 0 0 10px;
}

.sat-wnb-preview-rich img {
    max-width: 100%;
    height: auto;
}

.sat-wnb-preview-options {
    display: grid;
    gap: 10px;
}

.sat-wnb-preview-option {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.sat-wnb-preview-option > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #dff7ee;
    color: #047857;
    font-size: 13px;
    font-weight: 900;
}

.sat-wnb-preview-answer-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.sat-wnb-preview-answer-row div {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
}

.sat-wnb-preview-answer-row span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.sat-wnb-preview-answer-row strong {
    color: #1f2937;
    font-size: 15px;
    font-weight: 900;
}

.sat-wnb-preview-actions {
    justify-content: flex-end;
    border-top: 1px solid #e2e8f0;
    border-bottom: 0;
}

.sat-wnb-preview-practice,
.sat-wnb-preview-secondary {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.sat-wnb-preview-practice {
    border: 0;
    background: #10b981;
    color: #fff;
}

.sat-wnb-preview-secondary {
    border: 1px solid #dbe7ef;
    background: #fff;
    color: #475569;
}

.sat-wnb-preview-loading,
.sat-wnb-preview-error {
    padding: 28px;
    color: #64748b;
    text-align: center;
    font-weight: 850;
}

.sat-wnb-history-popover {
    position: fixed;
    z-index: 1200;
    width: 190px;
    max-width: calc(100vw - 20px);
    padding: 10px;
    border: 1px solid #dbe5ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.sat-wnb-history-title {
    margin-bottom: 6px;
    color: #202a35;
    font-size: 12px;
    font-weight: 900;
}

.sat-wnb-history-list {
    max-height: 138px;
    overflow-y: auto;
    display: grid;
    gap: 4px;
}

.sat-wnb-history-row,
.sat-wnb-history-empty {
    padding: 5px 6px;
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

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

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

    .sat-wnb-filter-field,
    .sat-wnb-filter-field-compact {
        min-width: min(100%, 220px);
    }

    .sat-wnb-filter-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

}

.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;
    }
}

/* 生词本新版最终覆盖：放在文件末尾，避免旧通用词汇样式反向覆盖 */
body.vocab-notebook-page .account-wordmark-watermark,
body.vocab-notebook-page .vnb-wordmark-watermark {
    position: absolute;
    left: max(57px, calc((100vw - 1400px) / 2 + 47px));
    top: 87px;
    width: 639px;
    min-width: 0;
    max-width: 840px;
    height: auto;
    z-index: 0;
    pointer-events: none;
    transform: none;
}

body.vocab-notebook-page .account-wordmark-watermark g,
body.vocab-notebook-page .vnb-wordmark-watermark g {
    opacity: 0.42;
}

body.vocab-notebook-page .vnb-hero-copy::before {
    content: none;
}

body.vocab-notebook-page .account-hero-copy {
    position: absolute;
    left: max(80px, calc((100vw - 1400px) / 2 + 65px));
    top: 124px;
    z-index: 2;
    pointer-events: none;
}

body.vocab-notebook-page .account-hero-copy-title {
    margin: 0;
    color: #2d3034;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
}

body.vocab-notebook-page .account-hero-copy-subtitle {
    display: block;
    margin: 12px 0 0;
    color: #4f6f80;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: 1.1px;
}

body.vocab-notebook-page .account-hero-copy-count-number {
    color: #10bfa0;
    font-weight: 500;
}

body.vocab-notebook-page .account-hero-copy .vnb-back-link {
    display: grid;
    grid-template-columns: 16px 1fr 16px;
    align-items: center;
    justify-content: stretch;
    pointer-events: auto;
    width: 82px;
    height: 32px;
    padding: 0 8px;
    border: none;
    border-radius: 8px;
    background: #08bfa2;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(52, 183, 143, 0.18);
}

body.vocab-notebook-page .account-hero-copy .vnb-back-link svg {
    justify-self: start;
}

body.vocab-notebook-page .account-hero-copy .vnb-back-link span {
    grid-column: 2;
    justify-self: center;
}

body.vocab-notebook-page .account-hero-copy .vnb-back-link:hover {
    background: #079d88;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(52, 183, 143, 0.22);
}

body.vocab-notebook-page .vnb-task-tabs,
body.vocab-notebook-page .vnb-time-tabs,
body.vocab-notebook-page .vnb-alpha-index {
    overflow-x: auto;
    padding-bottom: 2px;
}

body.vocab-notebook-page .vnb-check-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    margin-right: 14px;
    flex-shrink: 0;
    cursor: pointer;
    align-self: center;
}

body.vocab-notebook-page .vnb-check-box {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #b8c5d2;
    border-radius: 6px;
    background: #fff;
}

body.vocab-notebook-page .vnb-check-box::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M13.25 5.25 7.5 13 4.75 9.25' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
    opacity: 0;
    transform: none;
}

body.vocab-notebook-page .vnb-word-check:checked + .vnb-check-box {
    border-color: var(--vnb-primary);
    background: var(--vnb-primary);
    box-shadow: none;
}

body.vocab-notebook-page .vnb-word-check:checked + .vnb-check-box::after {
    opacity: 1;
}

body.vocab-notebook-page .vnb-word-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: 82px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(225, 231, 235, 0.9);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.045);
    backdrop-filter: blur(6px);
    transition: all 0.15s;
    cursor: pointer;
}

body.vocab-notebook-page .vnb-word-card.is-selected {
    border-color: rgba(8, 191, 162, 0.24);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.045);
}

body.vocab-notebook-page .vnb-word-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

body.vocab-notebook-page .vnb-word-main {
    display: block;
    flex: 0 0 auto;
    min-width: 0;
}

body.vocab-notebook-page .vnb-word-text {
    display: block;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid #e4edf4;
    color: #202a35;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    word-break: break-word;
}

body.vocab-notebook-page .vnb-word-translation {
    display: -webkit-box;
    max-width: 100%;
    color: #55677d;
    font-size: 15px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

body.vocab-notebook-page .vnb-word-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

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

body.vocab-notebook-page .vnb-tag-repeat {
    background: #e9f7f2;
    color: #147863;
}

body.vocab-notebook-page .vnb-tag-status {
    background: #fff7df;
    color: #9a6200;
}

body.vocab-notebook-page .vnb-tag-mastered {
    background: #eef3ff;
    color: #365fad;
}

body.vocab-notebook-page .vnb-tag-date {
    background: transparent;
    color: #a8b2bd;
    padding-left: 0;
    font-weight: 700;
}

body.vocab-notebook-page .vnb-word-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    align-self: stretch;
    margin-left: 16px;
}

@media (max-width: 900px) {
    body.vocab-notebook-page .account-wordmark-watermark,
    body.vocab-notebook-page .vnb-wordmark-watermark {
        left: 18px;
        top: 82px;
        width: min(210px, calc(100vw - 36px));
        min-width: 0;
        max-width: none;
    }

    body.vocab-notebook-page .account-wordmark-watermark g,
    body.vocab-notebook-page .vnb-wordmark-watermark g {
        opacity: 0.38;
    }

    body.vocab-notebook-page .account-hero-copy {
        left: 20px;
        top: 106px;
    }

    body.vocab-notebook-page .account-hero-copy-title {
        font-size: 30px;
        line-height: 1.08;
    }

    body.vocab-notebook-page .account-hero-copy-subtitle {
        max-width: 220px;
        margin-top: 9px;
        font-size: 13px;
        line-height: 1.45;
        letter-spacing: 0.4px;
    }
}

/* ==========================================================================
   Vocab learn page migration from design_preview/training/vocab_learn
   Scoped overrides keep the existing runtime DOM and JS behavior intact.
   ========================================================================== */
body.vocab-learn-page {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    min-height: 100%;
    background: linear-gradient(180deg, #f4f8f6 0%, #f4f8f6 100%);
}

body.vocab-learn-page::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 62px;
    height: 560px;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(222, 252, 240, .95) 0%, rgba(225, 250, 240, .88) 47%, rgba(244, 248, 246, .98) 100%),
        radial-gradient(circle at 82% 4%, rgba(67, 214, 181, .32) 0%, rgba(67, 214, 181, 0) 36%),
        radial-gradient(circle at 16% 35%, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 40%);
}

body.vocab-learn-page .main-content {
    position: relative;
    z-index: 1;
    background: transparent;
    padding-top: 76px !important;
    overflow-x: hidden;
}

body.vocab-learn-page .account-wordmark-watermark,
body.vocab-learn-page .vocab-learn-wordmark-watermark {
    position: absolute;
    left: max(57px, calc((100vw - 1400px) / 2 + 47px));
    top: 87px;
    width: 480px;
    min-width: 0;
    max-width: 840px;
    height: auto;
    z-index: 0;
    pointer-events: none;
}

body.vocab-learn-page .account-wordmark-watermark g,
body.vocab-learn-page .vocab-learn-wordmark-watermark g {
    opacity: .42;
}

body.vocab-learn-page .main-content::before {
    content: "";
    position: absolute;
    right: max(92px, calc((100vw - 1400px) / 2 + 78px));
    top: 62px;
    width: 167px;
    height: 210px;
    z-index: 2;
    pointer-events: none;
    background: var(--active-mascot-image,none) center / contain no-repeat;
    opacity: 1;
    filter: drop-shadow(0 26px 32px rgba(4, 120, 87, .16));
}

body.vocab-learn-page .home-top-nav {
    z-index: 20;
    box-sizing: border-box;
}

body.vocab-learn-page .footer {
    display: none !important;
}

body.vocab-learn-page #batchProgressBar,
body.vocab-learn-page .vb-progress {
    display: none !important;
}

body.vocab-learn-page .vocab-learn-hero-copy {
    position: absolute;
    left: max(80px, calc((100vw - 1400px) / 2 + 65px));
    top: 103px;
    z-index: 2;
    pointer-events: none;
}

body.vocab-learn-page .account-hero-copy-title {
    margin: 0;
    color: #2d3034;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
}

body.vocab-learn-page .account-hero-copy-subtitle {
    margin: 12px 0 0;
    color: #4f6f80;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: 1.1px;
}

body.vocab-learn-page .llk-view.is-active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

body.vocab-learn-page .llk-learn-container.llk-start-mode {
    width: 100%;
    max-width: 1400px;
    margin: 158px auto 72px;
    padding: 0 40px;
    box-sizing: border-box;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

body.vocab-learn-page #vocabStartScreen {
    position: relative;
    z-index: 1;
}

body.vocab-learn-page .vocab-start-panel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(500px, 1fr) minmax(500px, 640px);
    grid-template-rows: 1fr auto;
    column-gap: 56px;
    padding: 28px 27px 32px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(225, 231, 235, .9);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
}

body.vocab-learn-page .vocab-start-instructions {
    min-width: 0;
}

body.vocab-learn-page .vocab-start-section-title {
    display: flex;
    position: relative;
    align-items: center;
    min-height: 40px;
    padding-left: 23px;
    margin: 0 0 14px;
    color: #303746;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
}

body.vocab-learn-page .vocab-start-logo-mark {
    position: absolute;
    left: -2px;
    top: 18%;
    display: block;
    width: 28px;
    height: 41px;
    color: #28b998;
    font-size: 0;
    flex: 0 0 auto;
    transform: translateY(-52%);
    background: url("../home/gologo.svg") center / contain no-repeat;
    -webkit-mask-image: linear-gradient(135deg, #000 0%, #000 24%, rgba(0, 0, 0, .72) 44%, rgba(0, 0, 0, .24) 68%, transparent 100%);
    mask-image: linear-gradient(135deg, #000 0%, #000 24%, rgba(0, 0, 0, .72) 44%, rgba(0, 0, 0, .24) 68%, transparent 100%);
}

body.vocab-learn-page .vocab-start-steps {
    position: relative;
    display: grid;
    gap: 31px;
    margin: 0;
    padding: 0 0 0 70px;
    list-style: none;
}

body.vocab-learn-page .vocab-start-steps::before {
    content: "";
    position: absolute;
    left: 29px;
    top: 24px;
    bottom: 54px;
    width: 2px;
    border-left: 2px dashed #d5dde1;
}

body.vocab-learn-page .vocab-start-step {
    position: relative;
    min-height: 82px;
}

body.vocab-learn-page .vocab-step-index {
    position: absolute;
    left: -60px;
    top: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #10bfa0;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    z-index: 1;
}

body.vocab-learn-page .vocab-step-card {
    height: 82px;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: center;
    padding: 0 32px 0 16px;
    border: 1px solid #deecea;
    border-radius: 10px;
    background: rgba(237, 249, 247, .78);
}

body.vocab-learn-page .vocab-step-card strong {
    display: block;
    color: #2c3442;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
}

body.vocab-learn-page .vocab-step-card small {
    display: block;
    margin-top: 8px;
    color: #60727d;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

body.vocab-learn-page .vocab-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
}

body.vocab-learn-page .vocab-step-icon svg {
    width: 25px;
    height: 25px;
}

body.vocab-learn-page .vocab-step-icon-eye { background: #dcecff; color: #2f8fff; }
body.vocab-learn-page .vocab-step-icon-book { background: #d6f8ef; color: #0bb99a; }
body.vocab-learn-page .vocab-step-icon-test { background: #efdafa; color: #9747ff; }
body.vocab-learn-page .vocab-step-icon-trophy { background: #fff0c7; color: #f6a600; }

body.vocab-learn-page .vocab-start-progress {
    margin: -18px 0 22px 70px;
    color: #60727d;
    font-size: 15px;
    line-height: 1.5;
}

body.vocab-learn-page .vocab-start-progress strong {
    color: #10bfa0;
    font-size: 18px;
}

body.vocab-learn-page .vocab-start-shortcuts {
    align-self: start;
    min-height: 374px;
    margin-top: 2px;
    padding: 33px 32px 35px;
    border-radius: 12px;
    background: rgba(236, 250, 248, .78);
    border: 1px solid #d9efec;
}

body.vocab-learn-page .vocab-shortcuts-title {
    margin: 0 0 34px;
    color: #17b99b;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

body.vocab-learn-page .vocab-shortcut-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 17px;
}

body.vocab-learn-page .vocab-shortcut-grid-main {
    margin-bottom: 27px;
}

body.vocab-learn-page .vocab-shortcut {
    display: grid;
    justify-items: center;
    gap: 11px;
    color: #61717d;
    font-size: 15px;
}

body.vocab-learn-page .vocab-shortcut kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 70px;
    padding: 0 14px;
    border: 1px solid #dce4e4;
    border-radius: 8px;
    background: #fff;
    color: #111225;
    font-family: inherit;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 0 rgba(15, 23, 42, .18), 0 8px 14px rgba(15, 23, 42, .08);
}

body.vocab-learn-page .vocab-shortcut-space kbd {
    min-width: 150px;
    font-size: 22px;
}

body.vocab-learn-page .vocab-shortcut-grid-answers {
    gap: 18px;
    flex-wrap: wrap;
}

body.vocab-learn-page .vocab-shortcut-grid-answers .vocab-shortcut kbd {
    min-width: 92px;
    width: 92px;
    height: 70px;
    font-size: 24px;
}

body.vocab-learn-page .vocab-shortcut-grid-answers > small {
    flex: 0 0 100%;
    text-align: center;
    color: #61717d;
    font-size: 15px;
    margin-top: -1px;
}

body.vocab-learn-page .vocab-start-actions {
    position: absolute;
    inset: auto 27px 32px auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    margin: 0;
}

body.vocab-learn-page .vocab-start-count {
    margin: 0;
    color: #5b6772;
    font-size: 15px;
    white-space: nowrap;
}

body.vocab-learn-page .vocab-start-count strong {
    color: #34bd9d;
    font-size: 28px;
    font-weight: 900;
    padding: 0 4px;
}

body.vocab-learn-page .vocab-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 192px;
    height: 50px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body.vocab-learn-page .vocab-start-actions .vocab-start-btn:hover {
    transform: none;
}

body.vocab-learn-page .vocab-start-btn-primary {
    border: 1px solid #42bd9e;
    background: #42bd9e;
    color: #fff;
    box-shadow: none;
}

body.vocab-learn-page .vocab-start-btn-primary:hover {
    background: #35ad90;
    box-shadow: none;
}

body.vocab-learn-page .vocab-start-btn-secondary {
    border: 2px solid #48c2a4;
    background: #fff;
    color: #36ac90;
    box-shadow: none;
}

body.vocab-learn-page .vocab-start-btn-secondary:hover {
    background: #effbf8;
}

body.vocab-learn-page .llk-learn-container:not(.llk-start-mode) {
    width: 100%;
    max-width: 1400px;
    height: calc(100vh - 256px);
    margin: 152px auto 0;
    padding: 0 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

body.vocab-learn-page .llk-learn-header {
    height: 58px;
    margin: 0 0 15px;
    padding: 0 44px 0 26px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(225, 231, 235, .9);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 27px;
    flex: 0 0 58px;
    min-height: 58px;
}

body.vocab-learn-page .llk-exit-btn {
    width: 88px;
    height: 32px;
    border: 2px solid #48c2a4;
    border-radius: 8px;
    background: rgba(255, 255, 255, .76);
    color: #39b99c;
    font-size: 0;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
}

body.vocab-learn-page .llk-exit-btn::before {
    content: "Quit";
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

body.vocab-learn-page .llk-exit-btn:hover {
    background: #effbf8;
    color: #35ad90;
}

body.vocab-learn-page .llk-learn-progress {
    order: 3;
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

body.vocab-learn-page .llk-learn-progress > span {
    color: #444;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

body.vocab-learn-page .llk-learn-bar {
    flex: 1;
    height: 8px;
    margin: 0;
    border-radius: 999px;
    background: #ececf2;
    overflow: hidden;
}

body.vocab-learn-page .llk-learn-bar-fill {
    background: #42bd9e;
    border-radius: 999px;
}

body.vocab-learn-page .llk-learn-phase {
    order: 2;
    color: white;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    padding: 7px 21px;
}

body.vocab-learn-page .llk-learn-streak {
    order: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    background: transparent;
    color: #303746;
    font-size: 0;
    font-weight: 500;
    line-height: 1;
    animation: none;
}

body.vocab-learn-page .llk-learn-streak::before {
    content: "连击";
    font-size: 17px;
    font-weight: 400;
    color: #444;
}

body.vocab-learn-page .llk-streak-fire {
    display: none;
}

body.vocab-learn-page #learnStreakCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 32px;
    padding: 0 19px;
    border-radius: 16px;
    background: #ff7040;
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
}

body.vocab-learn-page #learnStreakCount::before {
    content: "x";
    margin-right: 2px;
    font-size: 17px;
    font-weight: 600;
}

body.vocab-learn-page .llk-learn-timer {
    order: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    color: #555;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-align: right;
}

body.vocab-learn-page .llk-learn-timer::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23555555' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' stroke='%23555555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.vocab-learn-page .llk-learn-card {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    padding: 48px 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(225, 231, 235, .9);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
    cursor: pointer;
    align-items: center;
    justify-content: flex-start;
    transition: none;
}

body.vocab-learn-page .llk-learn-card:hover {
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
}

body.vocab-learn-page .llk-quiz-card {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    padding: 48px 70px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(225, 231, 235, .9);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(500px, 1fr);
    grid-template-rows: 1fr;
    column-gap: 48px;
    align-items: center;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

body.vocab-learn-page .llk-quiz-prompt {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 28px 78px;
    box-sizing: border-box;
    border-radius: 14px;
    background: rgba(236, 250, 248, .72);
    color: #434959;
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

body.vocab-learn-page .llk-quiz-prompt.quiz-prompt-cn,
body.vocab-learn-page .llk-quiz-prompt.quiz-prompt-listen {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.45;
    color: #434959;
}

body.vocab-learn-page .llk-quiz-audio {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    margin: 118px 0 0;
    z-index: 1;
    display: block !important;
}

body.vocab-learn-page .llk-quiz-audio[hidden],
body.vocab-learn-page .llk-quiz-audio.llk-csp-hidden,
body.vocab-learn-page .llk-quiz-audio.is-hidden {
    display: none !important;
}

body.vocab-learn-page .llk-quiz-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 112px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #08bfa2;
    color: #fff;
    font-size: 0;
    font-weight: 600;
    box-shadow: none;
    transition: background .16s ease, transform .12s ease;
}

body.vocab-learn-page .llk-quiz-play-btn:hover {
    background: #06aa91;
}

body.vocab-learn-page .llk-quiz-play-btn::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='white'/%3E%3Cpath d='M8.8 7.2v9.6l7.4-4.8z' fill='%2308bfa2'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.vocab-learn-page .llk-quiz-play-btn::after {
    content: "";
    display: inline-block;
    width: 52px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='20' viewBox='0 0 52 20' fill='none'%3E%3Crect x='1' y='8' width='3' height='4' rx='1.5' fill='white'/%3E%3Crect x='7' y='6' width='3' height='8' rx='1.5' fill='white'/%3E%3Crect x='13' y='4' width='3' height='12' rx='1.5' fill='white'/%3E%3Crect x='19' y='2' width='3' height='16' rx='1.5' fill='white'/%3E%3Crect x='25' y='5' width='3' height='10' rx='1.5' fill='white'/%3E%3Crect x='31' y='3' width='3' height='14' rx='1.5' fill='white'/%3E%3Crect x='37' y='6' width='3' height='8' rx='1.5' fill='white'/%3E%3Crect x='43' y='8' width='3' height='4' rx='1.5' fill='white'/%3E%3Crect x='49' y='7' width='3' height='6' rx='1.5' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.vocab-learn-page .llk-quiz-options {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
}

body.vocab-learn-page .llk-quiz-opt {
    width: 100%;
    min-height: 70px;
    padding: 0 36px;
    border: 1px solid #dfe5e8;
    border-radius: 14px;
    background: rgba(255, 255, 255, .58);
    color: #434959;
    font-size: 19px;
    font-weight: 400;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: none;
}

body.vocab-learn-page .llk-quiz-opt:hover:not(.disabled) {
    border-color: #d3dedb;
    background: rgba(255, 255, 255, .72);
}

body.vocab-learn-page .llk-quiz-opt .opt-key {
    width: 32px;
    height: 32px;
    border: 4px solid #cfd8dc;
    border-radius: 999px;
    background: #cfd8dc;
    color: white;
    font-size: 18px;
    font-weight: 600;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

body.vocab-learn-page .llk-quiz-opt.correct {
    border-color: #57cba3;
    background: rgba(240, 253, 244, .76);
}

body.vocab-learn-page .llk-quiz-opt.correct .opt-key {
    border-color: #42bd9e;
    background: #42bd9e;
}

body.vocab-learn-page .llk-quiz-opt.wrong {
    border-color: #ef9a9a;
    background: rgba(255, 247, 247, .78);
}

body.vocab-learn-page .llk-quiz-opt.wrong .opt-key {
    border-color: #ef6b70;
    background: #ef6b70;
}

body.vocab-learn-page .llk-quiz-timer-bar {
    display: block;
    width: 100%;
    height: 6px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    background: #ececf2;
    overflow: hidden;
    flex: 0 0 auto;
}

body.vocab-learn-page .llk-quiz-timer-fill {
    height: 100%;
    border-radius: 999px;
    background: #42bd9e;
}

body.vocab-learn-page .llk-step-word {
    width: 100%;
    text-align: center;
}

body.vocab-learn-page .llk-learn-word {
    margin: 0;
    color: #42bd9e;
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-align: center;
}

body.vocab-learn-page .llk-learn-ipa {
    margin: 14px 0 0;
    color: #535b67;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
}

body.vocab-learn-page .llk-learn-meaning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 24px;
    flex-wrap: wrap;
    font-weight: 500;
}

body.vocab-learn-page .llk-step-meaning {
    margin-top: 17px;
    border-top: 0;
}

body.vocab-learn-page .llk-step-meaning,
body.vocab-learn-page .llk-step-sentences {
    width: min(100%, 760px);
    box-sizing: border-box;
}

body.vocab-learn-page .llk-learn-sentences,
body.vocab-learn-page .llk-learn-sent-en,
body.vocab-learn-page .llk-learn-sent-cn {
    text-align: center;
}

body.vocab-learn-page .llk-learn-sent-en {
    font-weight: 500;
}

body.vocab-learn-page .llk-learn-sent-cn {
    font-weight: 400;
}

body.vocab-learn-page .llk-learn-tap {
    width: 100%;
    margin-top: 15px;
    padding-top: 0;
    opacity: 1;
}

body.vocab-learn-page .llk-learn-continue {
    display: inline-block;
    margin-top: -30px;
    color: #42bd9e;
    font-size: 14px;
    font-weight: 500;
}

body.vocab-learn-page .llk-learn-rating {
    display: flex !important;
    justify-content: center;
    gap: 32px;
    margin: 100px 0 0;
}

body.vocab-learn-page .llk-rate-btn {
    flex: 0 0 398px;
    height: 68px;
    padding: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .62);
    font-size: 25px;
    font-weight: 600;
    font-family: inherit;
    box-shadow: none;
    transform: none;
}

body.vocab-learn-page .llk-rate-btn:hover {
    transform: none;
}

body.vocab-learn-page .llk-rate-fail {
    border: 1px solid #f2d7d7;
    color: #ef6b70;
    background: rgba(255, 247, 247, .78);
}

body.vocab-learn-page .llk-rate-pass {
    border: 1px solid #d6f0e6;
    color: #56c987;
    background: rgba(245, 255, 250, .78);
}

body.vocab-learn-page .llk-learn-keys {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    margin-top: 24px;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
    flex: 0 0 auto;
}

body.vocab-learn-page .llk-key-item {
    gap: 8px;
    opacity: .22;
}

body.vocab-learn-page .llk-key-item.key-active {
    opacity: 1;
}

body.vocab-learn-page .llk-kbd {
    min-width: 96px;
    height: 44px;
    line-height: 44px;
    padding: 0 16px;
    border: 1px solid #dce4e4;
    border-radius: 8px;
    background: #fff;
    color: #111225;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 0 rgba(15, 23, 42, .12);
}

body.vocab-learn-page .llk-kbd-group {
    min-width: 210px;
    letter-spacing: 22px;
    padding-left: 26px;
    padding-right: 4px;
}

body.vocab-learn-page .llk-kbd-wide {
    min-width: 104px;
    font-size: 18px;
}

body.vocab-learn-page .llk-key-label {
    color: #6f7a85;
    font-size: 13px;
    font-weight: 300;
}

body.vocab-learn-page .llk-done-shell {
    width: 100%;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
}

body.vocab-learn-page .llk-done-page {
    width: 100%;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    padding: 48px 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(225, 231, 235, .9);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 56px;
    align-items: stretch;
    overflow: hidden;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

body.vocab-learn-page .llk-done-summary {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    margin-left: 216px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body.vocab-learn-page .llk-done-icon {
    font-size: 48px;
    margin: -25px 0 6px;
}

body.vocab-learn-page .llk-done-title {
    margin: 0 0 8px;
    color: #42bd9e;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

body.vocab-learn-page .llk-done-stats {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 46px;
    margin: 30px 0 0 100px;
}

body.vocab-learn-page .llk-done-words-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-right: 4px;
    box-sizing: border-box;
}

body.vocab-learn-page .llk-done-word-item {
    display: grid;
    grid-template-columns: minmax(96px, .38fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: none;
    border-left: 3px solid #42bd9e;
    border-radius: 8px;
    background: rgba(240, 253, 244, .76);
}

@media (max-width: 900px) {
    body.vocab-learn-page .main-content {
        padding-top: 68px !important;
    }
}

@media (max-width: 767px) {
    body.vocab-learn-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.vocab-learn-page .home-top-nav {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    body.vocab-learn-page .navbar-drawer-panel:not(.is-open) {
        display: none;
    }

    body.vocab-learn-page::before {
        top: 56px;
        height: 430px;
    }

    body.vocab-learn-page .main-content {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding-top: 68px !important;
        padding-bottom: 0;
        overflow-x: hidden;
    }

    body.vocab-learn-page .llk-view {
        min-height: auto;
    }

    body.vocab-learn-page .llk-view.is-active {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.vocab-learn-page .account-wordmark-watermark,
    body.vocab-learn-page .vocab-learn-wordmark-watermark {
        left: 18px;
        top: 116px;
        width: min(320px, calc(100vw - 36px));
        min-width: 0;
        max-width: none;
    }

    body.vocab-learn-page .account-wordmark-watermark g,
    body.vocab-learn-page .vocab-learn-wordmark-watermark g {
        opacity: .38;
    }

    body.vocab-learn-page .vocab-learn-hero-copy {
        left: 20px;
        top: 106px;
    }

    body.vocab-learn-page .account-hero-copy-title {
        font-size: 30px;
        line-height: 1.08;
    }

    body.vocab-learn-page .account-hero-copy-subtitle {
        max-width: 220px;
        margin-top: 9px;
        font-size: 13px;
        line-height: 1.45;
        letter-spacing: .4px;
    }

    body.vocab-learn-page .main-content::before {
        right: 8px;
        top: 86px;
        width: 160px;
        height: 122px;
        opacity: .72;
    }

    body.vocab-learn-page .llk-learn-container.llk-start-mode {
        width: min(calc(100% - 24px), 100%);
        margin: 110px auto 18px;
        padding: 0;
    }

    body.vocab-learn-page .vocab-start-panel {
        min-width: 0;
        min-height: calc(100svh - 128px);
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 14px 14px 24px;
        border-radius: 8px;
        overflow: hidden;
    }

    body.vocab-learn-page .vocab-start-instructions {
        min-width: 0;
        overflow: hidden;
    }

    body.vocab-learn-page .vocab-start-section-title {
        min-height: 34px;
        margin-bottom: 10px;
        padding-left: 22px;
        font-size: 18px;
    }

    body.vocab-learn-page .vocab-start-logo-mark {
        width: 24px;
        height: 34px;
        top: 50%;
        transform: translateY(-50%);
    }

    body.vocab-learn-page .vocab-start-steps {
        min-width: 0;
        gap: 12px;
        padding-left: 0;
    }

    body.vocab-learn-page .vocab-start-steps::before {
        display: none;
    }

    body.vocab-learn-page .vocab-start-step {
        min-width: 0;
        min-height: 70px;
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
    }

    body.vocab-learn-page .vocab-step-index {
        position: static;
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    body.vocab-learn-page .vocab-step-card {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 70px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 0;
        padding: 11px 12px;
    }

    body.vocab-learn-page .vocab-step-card > span:last-child {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        overflow: visible;
    }

    body.vocab-learn-page .vocab-step-card strong {
        font-size: 15px;
        line-height: 1.28;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-all;
    }

    body.vocab-learn-page .vocab-step-card small {
        font-size: 12px;
        line-height: 1.35;
        margin-top: 5px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-all;
    }

    body.vocab-learn-page .vocab-step-icon {
        display: none;
    }

    body.vocab-learn-page .vocab-start-progress {
        margin: -4px 0 16px 44px;
        font-size: 13px;
    }

    body.vocab-learn-page .vocab-start-shortcuts,
    body.vocab-learn-page .llk-learn-container.llk-start-mode #learnKeys,
    body.vocab-learn-page .llk-learn-container:not(.llk-start-mode) #learnKeys {
        display: none !important;
    }

    body.vocab-learn-page .vocab-start-actions {
        position: static;
        grid-column: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
        gap: 10px;
        margin-top: 0;
    }

    body.vocab-learn-page .vocab-start-count {
        grid-column: 1 / -1;
        text-align: center;
        font-size: 13px;
    }

    body.vocab-learn-page .vocab-start-count strong {
        font-size: 22px;
    }

    body.vocab-learn-page .vocab-start-btn {
        width: 100%;
        height: 44px;
        font-size: 15px;
    }

    body.vocab-learn-page .llk-learn-container:not(.llk-start-mode) {
        width: min(calc(100% - 24px), 100%);
        height: auto;
        min-height: 0;
        margin: 108px auto 18px;
        padding: 0;
        gap: 10px;
    }

    body.vocab-learn-page .llk-learn-header {
        height: auto;
        min-height: 0;
        margin: 0 0 10px;
        padding: 12px;
        border-radius: 10px;
        gap: 8px;
        flex-wrap: nowrap;
        overflow: visible;
    }

    body.vocab-learn-page .llk-exit-btn {
        order: 1;
        width: 58px;
        height: 30px;
        border-width: 1px;
        border-radius: 7px;
        flex: 0 0 auto;
    }

    body.vocab-learn-page .llk-exit-btn::before {
        font-size: 14px;
    }

    body.vocab-learn-page .llk-learn-phase {
        order: 2;
        flex: 0 0 auto;
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 999px;
        text-align: center;
    }

    body.vocab-learn-page .llk-learn-timer {
        order: 4;
        flex: 0 0 auto;
        margin-left: auto;
        gap: 5px;
        font-size: 14px;
    }

    body.vocab-learn-page .llk-learn-timer::before {
        width: 17px;
        height: 17px;
        background-size: 17px 17px;
    }

    body.vocab-learn-page .llk-learn-progress {
        order: 3;
        display: flex !important;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        min-height: 18px;
        gap: 8px;
        align-items: center;
        overflow: hidden;
    }

    body.vocab-learn-page .llk-learn-progress > span {
        flex: 0 0 auto;
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
    }

    body.vocab-learn-page .llk-learn-bar {
        display: block;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: none;
        height: 6px;
    }

    body.vocab-learn-page .llk-learn-card {
        min-height: calc(100svh - 278px);
        padding: 28px 18px;
        border-radius: 10px;
        justify-content: center;
        overflow: hidden;
    }

    body.vocab-learn-page .llk-learn-word {
        max-width: 100%;
        font-size: clamp(28px, 9vw, 36px);
        line-height: 1.22;
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
        overflow: visible;
        text-overflow: clip;
        padding-bottom: .08em;
    }

    body.vocab-learn-page .llk-learn-ipa {
        margin-top: 10px;
        font-size: 17px;
    }

    body.vocab-learn-page .llk-learn-meaning {
        gap: 6px 14px;
        font-size: 17px;
        line-height: 1.55;
    }

    body.vocab-learn-page .llk-step-meaning,
    body.vocab-learn-page .llk-step-sentences {
        width: 100%;
    }

    body.vocab-learn-page .llk-learn-sent-en {
        font-size: 14px;
        line-height: 1.55;
    }

    body.vocab-learn-page .llk-learn-sent-cn {
        font-size: 13px;
        line-height: 1.55;
    }

    body.vocab-learn-page .llk-learn-tap {
        margin-top: 22px;
        font-size: 13px;
    }

    body.vocab-learn-page .llk-learn-rating {
        gap: 10px;
        margin: 42px 0 0;
    }

    body.vocab-learn-page .llk-rate-btn {
        flex: 1 1 0;
        min-width: 0;
        height: 48px;
        font-size: 16px;
    }

    body.vocab-learn-page .llk-quiz-card {
        min-height: calc(100svh - 278px);
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 18px;
        border-radius: 10px;
        align-items: stretch;
    }

    body.vocab-learn-page .llk-quiz-timer-bar {
        height: 5px;
    }

    body.vocab-learn-page .llk-quiz-prompt {
        width: 100%;
        height: auto;
        min-height: 124px;
        padding: 18px;
        font-size: clamp(28px, 9vw, 36px);
        line-height: 1.18;
        flex: 0 0 auto;
    }

    body.vocab-learn-page .llk-quiz-prompt.quiz-prompt-cn,
    body.vocab-learn-page .llk-quiz-prompt.quiz-prompt-listen {
        font-size: 18px;
        line-height: 1.45;
    }

    body.vocab-learn-page .llk-quiz-audio {
        margin: -56px auto 14px;
        align-self: center;
        justify-self: auto;
        grid-column: auto;
        grid-row: auto;
    }

    body.vocab-learn-page .llk-quiz-options {
        width: 100%;
        gap: 10px;
        grid-column: auto;
        grid-row: auto;
    }

    body.vocab-learn-page .llk-quiz-opt {
        min-height: 54px;
        padding: 10px 14px;
        border-radius: 10px;
        gap: 10px;
        font-size: 15px;
        line-height: 1.35;
    }

    body.vocab-learn-page .llk-quiz-opt .opt-key {
        width: 26px;
        height: 26px;
        border-width: 3px;
        font-size: 14px;
    }

    body.vocab-learn-page .llk-done-shell {
        display: block;
        min-height: 0;
    }

    body.vocab-learn-page .llk-done-page {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 24px 18px;
        min-height: calc(100svh - 278px);
    }

    body.vocab-learn-page .llk-done-summary {
        margin: 0;
        align-self: center;
        justify-self: center;
    }

    body.vocab-learn-page .llk-done-icon {
        font-size: 36px;
        margin: 0 0 4px;
    }

    body.vocab-learn-page .llk-done-stats {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        margin: 0;
    }

    body.vocab-learn-page .llk-done-words-list {
        grid-template-columns: 1fr;
        max-height: 40vh;
    }
}

/* ==========================================================================
   Vocab match and quiz migration overrides from design_preview - 副本 (132)
   ========================================================================== */
body.vocab-learn-page #gameView.is-active {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: auto;
    padding: 0;
}

body.vocab-learn-page .llk-game-wrapper {
    width: 100%;
    max-width: 1400px;
    min-height: 0;
    margin: 158px auto 72px;
    padding: 0 40px;
    box-sizing: border-box;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

body.vocab-learn-page .llk-game-header {
    height: 58px;
    margin: 0 0 15px;
    padding: 0 44px;
    border: 1px solid rgba(225, 231, 235, .9);
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
}

body.vocab-learn-page .llk-game-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    min-height: 520px;
}

body.vocab-learn-page .llk-game-board {
    min-width: 0;
    min-height: 520px;
    padding: 24px;
    border: 1px solid rgba(225, 231, 235, .9);
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
}

body.vocab-learn-page .llk-matched-collection {
    width: auto;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(225, 231, 235, .9);
    border-radius: 14px;
    background: rgba(236, 250, 248, .78);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
}

body.vocab-learn-page .llk-matched-title {
    margin: 0 0 12px;
    padding: 0 0 10px;
    color: #17b99b;
    font-size: 16px;
    font-weight: 800;
}

/* Vocab match exact migrated game surface */
body.vocab-learn-page #gameView.llk-view.is-active {
    display: block;
    width: 100%;
}

body.vocab-learn-page #gameView.is-active .llk-game-wrapper {
    width: 100%;
    max-width: 1400px;
    height: auto;
    min-height: 0;
    margin: 219px auto 36px;
    padding: 0 40px;
    box-sizing: border-box;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

body.vocab-learn-page #gameView.is-active .llk-game-header {
    height: 58px;
    min-height: 58px;
    margin: 0 0 15px;
    padding: 0 44px 0 26px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 27px;
    flex-wrap: nowrap;
    border: 1px solid rgba(225, 231, 235, .9);
    border-radius: 14px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
}

body.vocab-learn-page #gameView.is-active #gameExitBtn.llk-exit-btn {
    order: 0;
    flex: 0 0 auto;
    width: 88px;
    height: 32px;
    border: 2px solid #48c2a4;
    border-radius: 8px;
    background: rgba(255, 255, 255, .76);
    color: #39b99c;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
    font-size: 0;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
}

body.vocab-learn-page #gameView.is-active #gameExitBtn.llk-exit-btn::before {
    content: "Quit";
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

body.vocab-learn-page #gameView.is-active #gameExitBtn.llk-exit-btn:hover {
    background: #effbf8;
    color: #35ad90;
}

body.vocab-learn-page #gameView.is-active .llk-game-health {
    order: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    color: #444;
    white-space: nowrap;
}

body.vocab-learn-page #gameView.is-active .llk-health-label {
    margin: 0;
    color: #444;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

body.vocab-learn-page #gameView.is-active .llk-health-hearts {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

body.vocab-learn-page #gameView.is-active .llk-heart {
    font-size: 22px;
    line-height: 1;
}

body.vocab-learn-page #gameView.is-active .llk-heart-full { color: #ff3656; }
body.vocab-learn-page #gameView.is-active .llk-heart-empty { color: #d9dde3; }

body.vocab-learn-page #gameView.is-active .llk-game-score-progress {
    order: 3;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 14px;
    flex: 1 1 auto;
    min-width: 220px;
}

body.vocab-learn-page #gameView.is-active .llk-game-score {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: auto;
    margin-left: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #444;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

body.vocab-learn-page #gameView.is-active .llk-game-score-bar {
    flex: 1 1 auto;
    height: 8px;
    border-radius: 999px;
    background: #ececf2;
    overflow: hidden;
}

body.vocab-learn-page #gameView.is-active .llk-game-score-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: #42bd9e;
    transition: width .2s ease;
}

body.vocab-learn-page #gameView.is-active .llk-game-timer {
    order: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: 22px;
    color: #555;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

body.vocab-learn-page #gameView.is-active .llk-game-timer svg {
    width: 22px;
    height: 22px;
    color: #555;
    stroke-width: 2;
}

body.vocab-learn-page #gameView.is-active .llk-game-header .llk-combo-counter {
    order: 2;
    position: relative;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 32px;
    margin: 0 0 0 48px;
    padding: 0 19px;
    border-radius: 16px;
    background: #ff7040;
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    animation: none;
    box-shadow: none;
    text-shadow: none;
}

body.vocab-learn-page #gameView.is-active .llk-game-header .llk-combo-counter::before {
    content: "连击";
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    color: #444;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    text-shadow: none;
}

body.vocab-learn-page #gameView.is-active .llk-game-main {
    --llk-game-panel-height: clamp(520px, calc(100vh - 300px), 680px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 24px;
    align-items: stretch;
    height: var(--llk-game-panel-height);
    min-height: 0;
}

body.vocab-learn-page #gameView.is-active .llk-game-board {
    position: relative;
    isolation: isolate;
    height: var(--llk-game-panel-height);
    min-height: 0;
    box-sizing: border-box;
    padding: 26px 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(225, 231, 235, .88);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
}

body.vocab-learn-page #gameView.is-active .llk-board-diamond {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 20px;
}

body.vocab-learn-page #gameView.is-active .llk-diamond-row {
    display: flex;
    gap: 14px;
    justify-content: center;
}

body.vocab-learn-page #gameView.is-active .llk-diamond-row .llk-card {
    width: 178px;
    height: auto;
    min-height: 85px;
    padding: 12px 15px;
    flex: 0 0 auto;
    grid-column: auto;
}

body.vocab-learn-page #gameView.is-active .llk-card {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 64px;
    min-height: 64px;
    padding: 0 20px;
    border-radius: 8px;
    box-shadow: none;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

body.vocab-learn-page #gameView.is-active .llk-card:hover { transform: none !important; }

body.vocab-learn-page #gameView.is-active .llk-board-diamond .llk-card,
body.vocab-learn-page #gameView.is-active .llk-board-diamond .llk-card:hover {
    transform: rotate(calc(var(--scatter-rot, 0deg) * .65)) translate(calc(var(--scatter-x, 0px) * .65), calc(var(--scatter-y, 0px) * .65)) !important;
}

body.vocab-learn-page #gameView.is-active .llk-card-meaning {
    grid-column: 1;
    background: rgba(255, 247, 244, .86);
    border: 1px solid #f2d4c8;
    color: #8a4d35;
}

body.vocab-learn-page #gameView.is-active .llk-card-word {
    grid-column: 3;
    background: rgba(232, 246, 241, .88);
    border: 1px solid #c9e7df;
    color: #217864;
}

body.vocab-learn-page #gameView.is-active .llk-card-meaning:not(.llk-card-selected):hover {
    background: rgba(255, 241, 235, .96);
    border-color: #eebca8;
    color: #7b3f2c;
}

body.vocab-learn-page #gameView.is-active .llk-card-word:not(.llk-card-selected):hover {
    background: rgba(218, 243, 236, .96);
    border-color: #9fd9ca;
    color: #166f5c;
}

body.vocab-learn-page #gameView.is-active .llk-card.llk-card-selected,
body.vocab-learn-page #gameView.is-active .llk-card-word.llk-card-selected,
body.vocab-learn-page #gameView.is-active .llk-card-meaning.llk-card-selected {
    box-shadow: none !important;
}

body.vocab-learn-page #gameView.is-active .llk-svg-overlay,
body.vocab-learn-page .llk-svg-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
}

html.site-zoom-transform body.vocab-learn-page .llk-svg-overlay {
    width: calc(100vw / var(--site-page-zoom, 1));
    height: calc(100vh / var(--site-page-zoom, 1));
    transform-origin: 0 0;
}

body.vocab-learn-page #gameView.is-active .llk-card-badge {
    top: 0;
    left: auto;
    right: 0;
    min-width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 0 8px 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

body.vocab-learn-page #gameView.is-active .llk-card-word .llk-card-badge {
    background: #42bd9e;
    color: #fff;
}

body.vocab-learn-page #gameView.is-active .llk-card-content {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
}

body.vocab-learn-page #gameView.is-active .llk-card-word .llk-card-content {
    color: #247d68;
    text-align: center;
    font-size: 20px;
}

body.vocab-learn-page #gameView.is-active .llk-card-meaning .llk-card-content {
    color: #8a4d35;
    text-align: center;
}

body.vocab-learn-page #gameView.is-active .llk-card-content p { margin: 0; }

body.vocab-learn-page #gameView.is-active .llk-matched-collection {
    display: flex;
    flex-direction: column;
    width: auto;
    height: var(--llk-game-panel-height);
    max-height: var(--llk-game-panel-height);
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding: 28px 29px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(225, 231, 235, .88);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
}

body.vocab-learn-page #gameView.is-active .llk-matched-title {
    flex: 0 0 auto;
    margin: 0 0 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid #e3e7eb;
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

body.vocab-learn-page #gameView.is-active .llk-matched-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: min-content;
    flex: 1 1 auto;
    min-height: 0;
    gap: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

body.vocab-learn-page #gameView.is-active .llk-matched-empty {
    display: block;
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    padding: 18px 0;
    color: #b8c3cc;
    font-size: 13px;
    text-align: center;
}

body.vocab-learn-page #gameView.is-active .llk-matched-item {
    display: block;
    min-height: 66px;
    padding: 13px 16px;
    border-radius: 9px;
    background: rgba(232, 246, 241, .88);
    border: 1px solid #c9e7df;
    color: #25313a;
    box-shadow: none;
    cursor: pointer;
}

body.vocab-learn-page #gameView.is-active .llk-matched-word {
    display: block;
    color: #087f68;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

body.vocab-learn-page #gameView.is-active .llk-matched-sep { display: none; }

body.vocab-learn-page #gameView.is-active .llk-matched-meaning {
    display: block;
    margin-top: 5px;
    color: #4b5963;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

body.vocab-quiz-page {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    min-height: 100%;
    background: linear-gradient(180deg, #f4f8f6 0%, #f4f8f6 100%);
}

body.vocab-quiz-page::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 62px;
    height: 560px;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(222, 252, 240, .95) 0%, rgba(225, 250, 240, .88) 47%, rgba(244, 248, 246, .98) 100%),
        radial-gradient(circle at 82% 4%, rgba(67, 214, 181, .32) 0%, rgba(67, 214, 181, 0) 36%),
        radial-gradient(circle at 16% 35%, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 40%);
}

body.vocab-quiz-page .main-content {
    position: relative;
    z-index: 1;
    background: transparent;
    padding-top: 76px !important;
    overflow-x: hidden;
}

body.vocab-quiz-page .account-wordmark-watermark,
body.vocab-quiz-page .vocab-quiz-wordmark-watermark {
    position: absolute;
    left: max(57px, calc((100vw - 1400px) / 2 + 47px));
    top: 87px;
    width: 480px;
    min-width: 0;
    max-width: 840px;
    height: auto;
    z-index: 0;
    pointer-events: none;
}

body.vocab-quiz-page .account-wordmark-watermark g,
body.vocab-quiz-page .vocab-quiz-wordmark-watermark g { opacity: .42; }

body.vocab-quiz-page .main-content::before {
    content: "";
    position: absolute;
    right: max(92px, calc((100vw - 1400px) / 2 + 78px));
    top: 62px;
    width: 167px;
    height: 210px;
    z-index: 2;
    pointer-events: none;
    background: var(--active-mascot-image,none) center / contain no-repeat;
    filter: drop-shadow(0 26px 32px rgba(4, 120, 87, .16));
}

body.vocab-quiz-page .footer { display: none !important; }

body.vocab-quiz-page .vocab-quiz-hero-copy {
    position: absolute;
    left: max(80px, calc((100vw - 1400px) / 2 + 65px));
    top: 103px;
    z-index: 2;
    pointer-events: none;
}

body.vocab-quiz-page .account-hero-copy-title {
    margin: 0;
    color: #2d3034;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
}

body.vocab-quiz-page .account-hero-copy-subtitle {
    margin: 12px 0 0;
    color: #4f6f80;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: 1.1px;
}

body.vocab-quiz-page .vex-view.is-active {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: auto;
    padding: 0;
}

body.vocab-quiz-page .vex-exam-container {
    width: 100%;
    max-width: 1400px;
    height: calc(100vh - 256px);
    min-height: 550px;
    margin: 158px auto 72px;
    padding: 0 40px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 70px minmax(420px, 1fr) 48px minmax(500px, 1fr) 70px;
    grid-template-rows: 58px minmax(0, 1fr) auto auto;
    gap: 15px 0;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

body.vocab-quiz-page .vex-main-card {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    z-index: 1;
    min-height: 0;
    border: 1px solid rgba(225, 231, 235, .9);
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
    display: grid;
    grid-template-columns: 70px minmax(420px, 1fr) 48px minmax(500px, 1fr) 70px;
    grid-template-rows: minmax(0, 1fr) auto;
}

body.vocab-quiz-page .vex-back-btn {
    position: absolute;
    left: 66px;
    top: 13px;
    z-index: 3;
    width: 88px;
    height: 32px;
    border: 2px solid #48c2a4;
    border-radius: 8px;
    background: rgba(255, 255, 255, .76);
    color: #39b99c;
    font-size: 0;
    box-shadow: none;
}
body.vocab-quiz-page .vex-back-btn::before { content: "Quit"; font-size: 16px; font-weight: 600; line-height: 1; }
body.vocab-quiz-page .vex-back-btn svg { display: none; }

body.vocab-quiz-page .vex-exam-topbar {
    grid-column: 1 / -1;
    height: 58px;
    margin: 0;
    padding: 0 44px 0 144px;
    border: 1px solid rgba(225, 231, 235, .9);
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 27px;
    min-width: 0;
}

body.vocab-quiz-page .vex-progress-area { order: 3; display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; }
body.vocab-quiz-page .vex-progress-text { color: #444; font-size: 18px; font-weight: 500; line-height: 1; }
body.vocab-quiz-page .vex-progress-bar { height: 8px; margin: 0; border-radius: 999px; background: #ececf2; }
body.vocab-quiz-page .vex-progress-fill { background: #42bd9e; border-radius: 999px; }
body.vocab-quiz-page .vex-mode-badge { order: 2; background: #42bd9e; color: #fff; font-size: 16px; font-weight: 500; line-height: 1; padding: 7px 21px; border-radius: 999px; }
body.vocab-quiz-page .vex-errors-left { order: 2; height: 32px; padding: 0 14px; border: 1px solid #ef4444; border-radius: 999px; background: rgba(255,255,255,.62); color: #ef4444 !important; font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; }
body.vocab-quiz-page .vex-combo { order: 2; position: relative; margin-left: 58px; min-width: 70px; height: 32px; padding: 0 19px; border-radius: 16px; background: #ff7040; color: #fff; font-size: 19px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
body.vocab-quiz-page .vex-combo::before { content: "连击"; position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%); color: #444; font-size: 17px; white-space: nowrap; }
body.vocab-quiz-page .vex-global-timer { order: 4; color: #555; font-size: 18px; font-weight: 400; line-height: 1; text-align: right; }
body.vocab-quiz-page .vex-timer { display: none !important; }
body.vocab-quiz-page .vex-global-timer::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 9px;
    vertical-align: -5px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23555555' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' stroke='%23555555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.vocab-quiz-page .vex-question-area {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
    height: calc(100% - 96px);
    min-height: 0;
    margin: 48px 0;
    padding: 0 28px;
    box-sizing: border-box;
    border: 0;
    border-radius: 14px;
    background: rgba(236, 250, 248, .72);
    box-shadow: none;
    text-align: center;
}
body.vocab-quiz-page .vex-q-word { margin: 0 0 12px; color: #42bd9e; font-size: 58px; font-weight: 800; line-height: 1.1; letter-spacing: 0; }
body.vocab-quiz-page .vex-q-ipa { margin: 0 0 14px; color: #535b67; font-size: 24px; font-weight: 300; line-height: 1.2; }
body.vocab-quiz-page .vex-q-prompt { margin: 0; color: #434959; font-size: 26px; font-weight: 500; font-style: italic; line-height: 1.45; }
body.vocab-quiz-page .vex-q-meaning,
body.vocab-quiz-page .vex-q-sentence { color: #434959; font-size: 26px; font-weight: 500; line-height: 1.45; }

body.vocab-quiz-page .vex-audio-btn {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 112px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #08bfa2;
    color: #fff;
    font-size: 0;
    box-shadow: none;
    overflow: hidden;
}
body.vocab-quiz-page .vex-audio-btn:hover { background: #06aa91; color: #fff; }
body.vocab-quiz-page .vex-audio-btn:active { transform: translateY(1px) scale(.98); background: #059a83; }
body.vocab-quiz-page .vex-audio-btn svg { display: none; }
body.vocab-quiz-page .vex-audio-btn::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='white'/%3E%3Cpath d='M8.8 7.2v9.6l7.4-4.8z' fill='%2308bfa2'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.vocab-quiz-page .vex-audio-btn::after {
    content: "";
    display: inline-block;
    width: 52px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='20' viewBox='0 0 52 20' fill='none'%3E%3Crect x='1' y='8' width='3' height='4' rx='1.5' fill='white'/%3E%3Crect x='7' y='6' width='3' height='8' rx='1.5' fill='white'/%3E%3Crect x='13' y='4' width='3' height='12' rx='1.5' fill='white'/%3E%3Crect x='19' y='2' width='3' height='16' rx='1.5' fill='white'/%3E%3Crect x='25' y='5' width='3' height='10' rx='1.5' fill='white'/%3E%3Crect x='31' y='3' width='3' height='14' rx='1.5' fill='white'/%3E%3Crect x='37' y='6' width='3' height='8' rx='1.5' fill='white'/%3E%3Crect x='43' y='8' width='3' height='4' rx='1.5' fill='white'/%3E%3Crect x='49' y='7' width='3' height='6' rx='1.5' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.vocab-quiz-page .vex-choices { grid-column: 4; grid-row: 1; width: 100%; align-self: center; display: flex; flex-direction: column; gap: 12px; margin: 0; }
body.vocab-quiz-page .vex-choice-btn { width: 100%; min-height: 58px; padding: 8px 30px; border: 1px solid #dfe5e8; border-radius: 12px; background: rgba(255,255,255,.58); color: #434959; font-size: 18px; font-weight: 400; text-align: left; display: flex; align-items: center; gap: 22px; box-shadow: none; line-height: 1.3; }
body.vocab-quiz-page .vex-choice-num { width: 30px; height: 30px; border: 3px solid #cfd8dc; border-radius: 999px; background: #cfd8dc; color: #fff; font-size: 16px; font-weight: 600; }
body.vocab-quiz-page .vex-choice-selected,
body.vocab-quiz-page .vex-choice-correct { border-color: #42bd9e !important; background: rgba(240,253,244,.76) !important; }
body.vocab-quiz-page .vex-choice-selected .vex-choice-num,
body.vocab-quiz-page .vex-choice-correct .vex-choice-num { border-color: #42bd9e; background: #42bd9e; }
body.vocab-quiz-page .vex-choice-wrong { border-color: #ef9a9a !important; background: rgba(255,247,247,.78) !important; }
body.vocab-quiz-page .vex-choice-wrong .vex-choice-num { border-color: #ef6b70; background: #ef6b70; }

body.vocab-quiz-page .vex-input-area { grid-column: 4; grid-row: 1; align-self: center; margin: 0; }
body.vocab-quiz-page .vex-spell-input { max-width: none; height: 70px; border: 1px solid #dfe5e8; border-radius: 14px; background: rgba(255,255,255,.58); font-size: 22px; color: #434959; }
body.vocab-quiz-page .vex-timer-bar { grid-column: 2 / 5; grid-row: 2; width: 100%; max-width: none; height: 6px; margin: 0 0 24px; border-radius: 999px; background: #ececf2; }
body.vocab-quiz-page .vex-timer-bar-fill { background: #42bd9e; border-radius: 999px; }
body.vocab-quiz-page .vex-action-row { grid-column: 1 / -1; grid-row: 4; margin: 0; min-height: 0; }
body.vocab-quiz-page .vex-confirm-btn { flex: 0 0 auto; min-width: 170px; height: 46px; padding: 0 28px; border-radius: 8px; background: #42bd9e; font-size: 16px; }
body.vocab-quiz-page .vex-btn-next { background: #42bd9e; color: #fff; border: none; }
body.vocab-quiz-page .vex-result-badge { border-radius: 999px; font-size: 15px; }
body.vocab-quiz-page .vex-feedback { grid-column: 1 / -1; margin: 0; padding: 0; text-align: center; background: transparent; }

body.vocab-quiz-page .vex-keyboard-hint { grid-column: 1 / -1; display: flex; justify-content: center; align-items: flex-start; gap: 18px; margin-top: 9px; }
body.vocab-quiz-page .vex-keyboard-hint .llk-key-item { gap: 8px; opacity: .32; }
body.vocab-quiz-page .vex-keyboard-hint .llk-key-item.key-active { opacity: 1; }
body.vocab-quiz-page .vex-keyboard-hint .llk-kbd { min-width: 96px; height: 44px; line-height: 44px; padding: 0 16px; border: 1px solid #dce4e4; border-radius: 8px; background: #fff; color: #111225; font-size: 18px; font-weight: 700; box-shadow: 0 4px 0 rgba(15,23,42,.12); }
body.vocab-quiz-page .vex-keyboard-hint .llk-kbd-group,
body.vocab-quiz-page .vex-keyboard-hint .llk-kbd-wide { min-width: 104px; }
body.vocab-quiz-page .vex-keyboard-hint .llk-key-label { color: #6f7a85; font-size: 13px; font-weight: 300; }

body.vocab-quiz-page .vex-interstitial-card,
body.vocab-quiz-page .vex-report-container {
    width: min(100%, 720px);
    margin: 158px auto 72px;
    padding: 40px 36px;
    border: 1px solid rgba(225,231,235,.9);
    border-radius: 14px;
    background: rgba(255,255,255,.8);
    box-shadow: 0 2px 12px rgba(15,23,42,.045);
    backdrop-filter: blur(6px);
}
body.vocab-quiz-page #vexReportView.vex-view.is-active {
    width: 100%;
    max-width: 1400px;
    margin: 158px auto 72px;
    padding: 0 40px;
    box-sizing: border-box;
    align-items: stretch;
    justify-content: flex-start;
}
body.vocab-quiz-page #vexReportView.vex-view.is-active .vex-report-container {
    width: 100%;
    max-width: none;
    height: calc(100vh - 339px);
    min-height: 561px;
    margin: 0;
    padding: 48px 44px;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}
body.vocab-quiz-page .vex-interstitial-title,
body.vocab-quiz-page .vex-report-title { color: #303746; font-weight: 600; }
body.vocab-quiz-page .vex-interstitial-details { text-align: center; }
body.vocab-quiz-page .vex-interstitial-words,
body.vocab-quiz-page .vex-wrong-list { justify-content: center; align-items: center; text-align: center; }
body.vocab-quiz-page .vex-word-tag-container { text-align: center; }
body.vocab-quiz-page .vex-continue-btn,
body.vocab-quiz-page .vex-btn-accent { background: #42bd9e; }
body.vocab-quiz-page .vex-exit-btn,
body.vocab-quiz-page .vex-report-btn.vex-btn-secondary {
    background: rgba(255,255,255,.62);
    color: #60727d;
    border: 1px solid #dfe5e8;
}
body.vocab-quiz-page .vex-continue-btn,
body.vocab-quiz-page .vex-exit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
body.vocab-quiz-page .vex-btn-outline { color: #42bd9e; border-color: #42bd9e; }

@media (max-width: 768px) {
    body.vocab-learn-page #gameView.is-active,
    body.vocab-quiz-page .vex-view.is-active { width: 100%; max-width: 100vw; overflow-x: hidden; }
    body.vocab-learn-page .llk-game-wrapper { width: 100%; margin: 150px auto 24px; padding: 0 12px; }
    body.vocab-learn-page .llk-game-main { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 12px; }
    body.vocab-learn-page .llk-game-board { min-height: 0; padding: 12px; }
    body.vocab-learn-page .llk-matched-collection { width: 100%; max-height: 132px; padding: 12px; }
    body.vocab-quiz-page .main-content { padding-top: 56px !important; }
    body.vocab-quiz-page .main-content::before { right: 8px; top: 86px; width: 160px; height: 122px; opacity: .72; }
    body.vocab-quiz-page .vocab-quiz-hero-copy { left: 18px; top: 96px; }
    body.vocab-quiz-page .account-hero-copy-title { font-size: 28px; }
    body.vocab-quiz-page .account-hero-copy-subtitle { font-size: 13px; letter-spacing: .4px; }
    body.vocab-quiz-page .account-wordmark-watermark,
    body.vocab-quiz-page .vocab-quiz-wordmark-watermark { left: 8px; top: 88px; width: min(360px, 94vw); }
    body.vocab-quiz-page .vex-exam-container { inline-size: 100%; max-inline-size: calc(100vw - 24px); height: auto; min-height: 0; margin: 150px auto 24px; padding: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 10px; }
    body.vocab-quiz-page .vex-main-card { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; gap: 12px; padding: 12px; border-radius: 10px; }
    body.vocab-quiz-page .vex-back-btn { left: 12px; top: 12px; width: 58px; height: 30px; border-width: 1px; border-radius: 7px; }
    body.vocab-quiz-page .vex-back-btn::before { font-size: 14px; }
    body.vocab-quiz-page .vex-exam-topbar { height: auto; padding: 12px 12px 12px 78px; border-radius: 10px; gap: 8px; }
    body.vocab-quiz-page .vex-errors-left { display: none; }
    body.vocab-quiz-page .vex-progress-area { gap: 8px; }
    body.vocab-quiz-page .vex-progress-text { font-size: 13px; }
    body.vocab-quiz-page .vex-global-timer { display: flex !important; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 5px; margin-left: auto; font-size: 14px; }
    body.vocab-quiz-page .vex-global-timer::before { width: 17px; height: 17px; margin-right: 5px; vertical-align: -4px; }
    body.vocab-quiz-page .vex-question-area { grid-column: 1; grid-row: auto; width: 100%; height: auto; min-height: 164px; margin: 0; padding: 18px 12px; gap: 14px; }
    body.vocab-quiz-page .vex-q-word { max-width: 100%; font-size: clamp(28px, 9vw, 36px); line-height: 1.22; overflow-wrap: anywhere; word-break: break-word; }
    body.vocab-quiz-page .vex-q-ipa { font-size: 17px; }
    body.vocab-quiz-page .vex-q-prompt,
    body.vocab-quiz-page .vex-q-meaning,
    body.vocab-quiz-page .vex-q-sentence { font-size: 19px; line-height: 1.45; }
    body.vocab-quiz-page .vex-audio-btn { position: static; left: auto; top: auto; bottom: auto; transform: none; width: 96px; height: 36px; margin: 0 auto; }
    body.vocab-quiz-page .vex-audio-btn:active { transform: translateY(1px) scale(.98); }
    body.vocab-quiz-page .vex-audio-btn::before { width: 22px; height: 22px; }
    body.vocab-quiz-page .vex-audio-btn::after { width: 42px; height: 18px; background-size: 42px 18px; }
    body.vocab-quiz-page .vex-choices { grid-column: 1; grid-row: auto; width: 100%; margin: 0; gap: 10px; }
    body.vocab-quiz-page .vex-choice-btn { min-height: 54px; padding: 10px 13px; border-radius: 10px; gap: 11px; font-size: 15px; line-height: 1.35; }
    body.vocab-quiz-page .vex-input-area,
    body.vocab-quiz-page .vex-timer-bar,
    body.vocab-quiz-page .vex-action-row,
    body.vocab-quiz-page .vex-feedback { grid-column: 1; grid-row: auto; }
    body.vocab-quiz-page .vex-keyboard-hint { display: none !important; }
    body.vocab-quiz-page .vex-interstitial-card,
    body.vocab-quiz-page .vex-report-container { inline-size: 100%; max-inline-size: calc(100vw - 24px); margin: 150px auto 24px; padding: 24px 16px; border-radius: 10px; }
    body.vocab-quiz-page .vex-interstitial-card { min-height: calc(100svh - 210px); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
    body.vocab-quiz-page .vex-interstitial-title { margin: 0; font-size: 25px; line-height: 1.25; }
    body.vocab-quiz-page .vex-interstitial-msg { margin: 0; font-size: 14px; line-height: 1.55; }
    body.vocab-quiz-page .vex-interstitial-details { width: 100%; font-size: 14px; line-height: 1.45; }
    body.vocab-quiz-page .vex-interstitial-words { justify-content: center; gap: 8px; }
    body.vocab-quiz-page .vex-interstitial-word { min-height: 34px; padding: 7px 12px; border-radius: 8px; font-size: 13px; }
    body.vocab-quiz-page .vex-interstitial-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
    body.vocab-quiz-page .vex-continue-btn,
    body.vocab-quiz-page .vex-exit-btn { width: 100%; height: 44px; padding: 0 12px; border-radius: 8px; font-size: 15px; }
    body.vocab-quiz-page #vexReportView.vex-view.is-active { inline-size: 100%; max-inline-size: calc(100vw - 24px); margin: 150px auto 24px; padding: 0; }
    body.vocab-quiz-page #vexReportView.vex-view.is-active .vex-report-container { width: 100%; height: auto; min-height: 0; margin: 0; padding: 22px 16px; }
}

@media (max-width: 768px) {
    body.vocab-learn-page #gameView.is-active .llk-game-wrapper {
        inline-size: 100%;
        max-inline-size: calc(100vw - 24px);
        height: auto;
        min-height: 0;
        margin: 154px auto 0;
        padding: 0;
        gap: 10px;
        overflow: hidden;
    }

    body.vocab-learn-page #gameView.is-active .llk-game-header {
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0 0 10px;
        padding: 12px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        box-sizing: border-box;
        overflow: visible;
    }

    body.vocab-learn-page #gameView.is-active #gameExitBtn.llk-exit-btn {
        order: 1;
        width: 58px;
        height: 30px;
        border-width: 1px;
        border-radius: 7px;
        flex: 0 0 auto;
    }

    body.vocab-learn-page #gameView.is-active #gameExitBtn.llk-exit-btn::before { font-size: 14px; }
    body.vocab-learn-page #gameView.is-active .llk-game-health { order: 2; flex: 0 0 auto; gap: 4px; }
    body.vocab-learn-page #gameView.is-active .llk-health-label { font-size: 13px; }
    body.vocab-learn-page #gameView.is-active .llk-health-hearts { gap: 2px; }
    body.vocab-learn-page #gameView.is-active .llk-heart { font-size: 15px; }

    body.vocab-learn-page #gameView.is-active .llk-game-score-progress {
        order: 4;
        display: flex;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        min-height: 18px;
        margin-left: 0;
        gap: 8px;
        align-items: center;
        overflow: hidden;
    }

    body.vocab-learn-page #gameView.is-active .llk-game-score {
        min-width: 0;
        height: auto;
        margin-left: 0;
        padding: 0;
        font-size: 13px;
    }

    body.vocab-learn-page #gameView.is-active .llk-game-score-bar { height: 6px; }

    body.vocab-learn-page #gameView.is-active .llk-game-timer {
        order: 5;
        flex: 0 0 auto;
        margin-left: auto;
        justify-content: flex-end;
        font-size: 14px;
        gap: 5px;
    }

    body.vocab-learn-page #gameView.is-active .llk-game-timer svg {
        width: 18px;
        height: 18px;
    }

    body.vocab-learn-page #gameView.is-active .llk-game-header .llk-combo-counter {
        display: none !important;
    }

    body.vocab-learn-page #gameView.is-active .llk-game-main {
        display: block;
        min-width: 0;
        overflow: visible;
    }

    body.vocab-learn-page #gameView.is-active .llk-matched-collection {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        margin: 10px 0 0;
        padding: 16px 16px 30px;
        border-radius: 10px;
        box-sizing: border-box;
        overflow: visible;
    }

    body.vocab-learn-page #gameView.is-active .llk-matched-title {
        margin: 0 0 12px;
        padding: 0 0 10px;
        font-size: 15px;
    }

    body.vocab-learn-page #gameView.is-active .llk-matched-list {
        flex: 0 0 auto;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
        gap: 10px;
        overflow: visible;
    }

    body.vocab-learn-page #gameView.is-active .llk-matched-item {
        min-height: 0;
        height: auto;
        padding: 10px 12px;
        border-radius: 8px;
        box-sizing: border-box;
    }

    body.vocab-learn-page #gameView.is-active .llk-matched-word { font-size: 14px; }
    body.vocab-learn-page #gameView.is-active .llk-matched-meaning { font-size: 12px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }

    body.vocab-learn-page #gameView.is-active .llk-game-board {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 12px 8px;
        border-radius: 10px;
        overflow: visible;
    }

    body.vocab-learn-page #gameView.is-active .llk-board-diamond {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 14px 0;
    }

    body.vocab-learn-page #gameView.is-active .llk-diamond-row {
        display: flex;
        gap: 6px;
        justify-content: center;
    }

    body.vocab-learn-page #gameView.is-active .llk-diamond-row .llk-card {
        width: 74px;
        height: auto;
        min-height: 60px;
        padding: 10px 4px 8px;
    }

    body.vocab-learn-page #gameView.is-active .llk-diamond-row .llk-card .llk-card-content {
        font-size: 10px;
        line-height: 1.32;
    }

    body.vocab-learn-page #gameView.is-active .llk-card {
        height: auto;
        min-height: 58px;
        padding: 8px 9px;
        border-radius: 8px;
    }

    body.vocab-learn-page #gameView.is-active .llk-card-badge {
        min-width: 22px;
        height: 16px;
        font-size: 9px;
        border-radius: 0 8px 0 8px;
    }

    body.vocab-learn-page #gameView.is-active .llk-card-content {
        font-size: 12px;
        line-height: 1.28;
    }

    body.vocab-learn-page #gameView.is-active .llk-card-word .llk-card-content {
        font-size: 12px;
        line-height: 1.28;
        overflow-wrap: anywhere;
    }
}
