/* ========== 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== 导航栏 ========== */
.navbar {
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.nav-user {
    color: #93c5fd;
    font-size: 0.85rem;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 4px;
}

/* ========== 登录/注册 ========== */
.auth-container {
    max-width: 400px;
    margin: 60px auto;
    text-align: center;
}

.auth-container h1 {
    color: #2563eb;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    margin-bottom: 32px;
}

.auth-form {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: left;
}

.auth-form h2 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group small {
    color: #999;
    font-size: 0.8rem;
}

.error-msg {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.btn-primary {
    display: inline-block;
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.auth-link {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
}

.auth-link a {
    color: #2563eb;
    text-decoration: none;
}

/* ========== 首页 Dashboard ========== */
.dashboard h1 {
    margin-bottom: 24px;
    color: #1e40af;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2563eb;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

.today-task {
    background: white;
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.today-task h2 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.task-info p {
    margin-bottom: 8px;
}

.task-complete {
    color: #16a34a;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-action {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

.btn-learn {
    background: #2563eb;
    color: white;
}

.btn-review {
    background: #f59e0b;
    color: white;
}

.all-done {
    text-align: center;
    color: #16a34a;
    font-size: 1.1rem;
    padding: 20px;
}

/* ========== 单词卡片 ========== */
.word-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.word-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: opacity 0.3s;
}

.word-card.learned,
.word-card.reviewed {
    opacity: 0.5;
}

.word-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.word-text {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1e40af;
}

.word-phonetic {
    color: #666;
    font-size: 1rem;
}

.btn-speak {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-speak:hover {
    background: #f0f0f0;
}

.word-meaning {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.word-type {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.word-collocation,
.word-example {
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.word-example {
    font-style: italic;
    color: #555;
}

.word-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn-quality {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-quality:hover {
    background: #f0f0f0;
}

.btn-quality[data-quality="0"] { color: #dc2626; border-color: #fca5a5; }
.btn-quality[data-quality="1"] { color: #f59e0b; border-color: #fcd34d; }
.btn-quality[data-quality="2"] { color: #2563eb; border-color: #93c5fd; }
.btn-quality[data-quality="3"] { color: #16a34a; border-color: #86efac; }

.btn-forgot { color: #dc2626; border-color: #fca5a5; }
.btn-fuzzy { color: #f59e0b; border-color: #fcd34d; }
.btn-remember { color: #2563eb; border-color: #93c5fd; }
.btn-easy { color: #16a34a; border-color: #86efac; }

.result-panel {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    margin-top: 20px;
}

.result-panel p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.result-panel .btn-primary {
    width: auto;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.empty-state .btn-primary {
    width: auto;
}

/* ========== 统计页面 ========== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.category-stats {
    background: white;
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.category-stats h2 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.stats-table th {
    font-size: 0.85rem;
    color: #666;
}

.progress-bar {
    display: inline-block;
    width: 120px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 8px;
}

.progress-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.85rem;
    color: #666;
}

.recent-days {
    background: white;
    padding: 24px;
    border-radius: 10px;
}

.recent-days h2 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.days-grid {
    display: flex;
    gap: 12px;
}

.day-item {
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.day-item.completed {
    background: #dcfce7;
}

.day-date {
    font-size: 0.8rem;
    color: #666;
}

.day-status {
    font-size: 1.2rem;
}

/* ========== 词库页面 ========== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    background: white;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid #ddd;
}

.filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.word-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.word-item {
    background: white;
    padding: 14px 18px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.word-item.learned {
    border-left: 3px solid #16a34a;
}

.word-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.word-main .word-text {
    font-size: 1.1rem;
}

.btn-speak-small {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.word-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.word-detail .word-meaning {
    color: #333;
    font-size: 0.9rem;
}

.word-detail .word-type {
    color: #999;
    font-size: 0.8rem;
}

.proficiency {
    font-size: 0.8rem;
    color: #2563eb;
}

.proficiency.new-word {
    color: #999;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding: 12px 0;
}

.page-btn {
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    color: #2563eb;
    cursor: pointer;
    font-size: 0.9rem;
}

.page-btn:hover:not(:disabled) {
    background: #2563eb;
    color: white;
}

.page-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.85rem;
    color: #666;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .stats-cards,
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        flex-direction: column;
        gap: 8px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .word-actions {
        flex-wrap: wrap;
    }

    .btn-quality {
        flex: 1 1 45%;
    }
}

/* ========== 单词管理页面 ========== */
.container:has(.list-manage-page) {
    max-width: none;
}

.list-manage-page {
    width: 100%;
    max-width: none;
}

.list-manage-page h1 {
    margin-bottom: 4px;
    color: #1e40af;
}

.page-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.manage-toolbar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.toggle-btn {
    padding: 7px 16px;
    border: none;
    background: white;
    color: #666;
    cursor: pointer;
    font-size: 0.85rem;
}

.toggle-btn.active {
    background: #2563eb;
    color: white;
}

.search-box {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.search-box:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.manage-toolbar .category-filter {
    margin-bottom: 0;
}

.table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.manage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.manage-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
}

.manage-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.manage-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.manage-table th.sortable:hover {
    color: #2563eb;
}

.manage-table th.sortable::after {
    content: ' \21C5';
    font-size: 0.75rem;
    opacity: 0.4;
}

.manage-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.manage-table tbody tr:hover {
    background: #f8fafc;
}

.manage-table .cell-word {
    white-space: nowrap;
}

.manage-table .cell-word .word-text {
    font-weight: 600;
    color: #1e40af;
    font-size: 1rem;
}

.manage-table .cell-phonetic {
    color: #888;
    white-space: nowrap;
}

.manage-table .cell-meaning {
    max-width: 200px;
}

.manage-table .cell-collocation,
.manage-table .cell-example {
    max-width: 250px;
    color: #555;
}

.manage-table .cell-example {
    font-style: italic;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    background: #e0e7ff;
    color: #3730a3;
}

.tag-verb { background: #dbeafe; color: #1e40af; }
.tag-noun { background: #dcfce7; color: #166534; }
.tag-adjective { background: #fef9c3; color: #854d0e; }
.tag-adverb { background: #fce7f3; color: #9f1239; }
.tag-preposition { background: #e0e7ff; color: #3730a3; }
.tag-conjunction { background: #f3e8ff; color: #6b21a8; }
.tag-pronoun { background: #ffedd5; color: #9a3412; }

@media (max-width: 768px) {
    .manage-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .manage-table {
        font-size: 0.8rem;
    }

    .manage-table th,
    .manage-table td {
        padding: 8px 10px;
    }

    .manage-table .cell-collocation,
    .manage-table .cell-example {
        max-width: 150px;
    }
}

/* ========== Toast 提示 ========== */
.toast-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 9999;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: #16a34a;
    color: white;
}

.toast-error {
    background: #dc2626;
    color: white;
}

.toast-info {
    background: #2563eb;
    color: white;
}

/* ========== 按钮禁用状态 ========== */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== 学习页面（三阶段单卡片） ========== */
.learn-page {
    max-width: 560px;
    margin: 0 auto;
    padding-top: 12px;
}

.learn-progress {
    margin-bottom: 16px;
}

.learn-progress span {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.progress-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.learn-card {
    background: white;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    animation: cardIn 0.3s ease;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.phase-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.phase-1 { background: #dbeafe; color: #1d4ed8; }
.phase-2 { background: #fef3c7; color: #b45309; }
.phase-3 { background: #dcfce7; color: #166534; }

/* 单词展示（进度3） */
.learn-word-reveal {
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.learn-word-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.5px;
}

.btn-speak-lg {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.btn-speak-lg:hover {
    background: #dbeafe;
    transform: scale(1.1);
}

/* 提示区（进度2） */
.learn-hint {
    margin-bottom: 14px;
}

.hint-pattern {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #b45309;
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-block;
}

/* 单词信息区 */
.learn-info {
    margin-bottom: 20px;
}

.learn-phonetic {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 4px;
}

.learn-meaning {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.learn-meta {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.learn-collocation,
.learn-example {
    font-size: 0.9rem;
    color: #475569;
    background: #f8fafc;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 输入区 */
.learn-input-area {
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}

.hidden-input {
    position: fixed;
    top: -100px;
    left: 0;
    width: 300px;
    height: 40px;
    opacity: 0;
    font-size: 16px;
}

/* 字母格 */
.letter-boxes {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    cursor: text;
    padding: 8px 0;
}

.letter-box {
    width: 40px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #1e293b;
    border-bottom: 3px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 6px 6px 0 0;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    text-transform: lowercase;
}

.letter-box.filled {
    border-bottom-color: #2563eb;
    background: #eff6ff;
}

.letter-box.prefilled {
    border-bottom-color: #94a3b8;
    background: #f1f5f9;
    color: #64748b;
}

.letter-box.box-wrong {
    border-bottom-color: #dc2626;
    background: #fef2f2;
    color: #dc2626;
    animation: boxShake 0.3s ease;
}

.boxes-correct .letter-box {
    border-bottom-color: #16a34a;
    background: #f0fdf4;
    color: #16a34a;
}

@keyframes boxShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.input-feedback {
    min-height: 24px;
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 500;
    transition: color 0.2s;
}

.feedback-correct { color: #16a34a; }
.feedback-wrong { color: #dc2626; }
.feedback-warn { color: #b45309; }

.btn-giveup {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.88rem;
    cursor: pointer;
    margin-top: 10px;
    padding: 4px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.btn-giveup:hover { color: #64748b; }
.btn-giveup:disabled { opacity: 0.5; cursor: not-allowed; }

/* 进度3 展示区 */
.learn-reveal-area {
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
    text-align: center;
}

.reveal-note {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.btn-next {
    width: auto;
    padding: 10px 40px;
}

/* ========== 完成弹窗 ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalPop 0.25s ease;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-emoji {
    font-size: 3rem;
    margin-bottom: 8px;
}

.modal-card h2 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 18px;
}

.modal-stats {
    text-align: left;
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #475569;
    padding: 4px 0;
}

.stat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green { background: #16a34a; }
.dot-yellow { background: #f59e0b; }
.dot-red { background: #dc2626; }

.stat-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.88rem;
    color: #64748b;
}

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

.btn-secondary {
    display: inline-block;
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}

.btn-secondary:hover {
    background: #eff6ff;
}

@media (max-width: 768px) {
    .learn-card {
        padding: 22px 16px;
    }
    .learn-word-text {
        font-size: 1.8rem;
    }
    .hint-pattern {
        font-size: 1.4rem;
    }
}

/* ========== 复习页面（句子填词） ========== */
.review-page {
    max-width: 560px;
    margin: 0 auto;
    padding-top: 12px;
}

.phase-review { background: #fef3c7; color: #b45309; }

.review-sentence {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    font-style: italic;
}

.review-translation {
    text-align: center;
    font-size: 1.05rem;
    color: #64748b;
    margin-bottom: 18px;
    padding: 0 8px;
}

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

.btn-forgot-review {
    color: #dc2626 !important;
}

.review-locked {
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 8px 0;
}

/* ========== 打卡日历（stats 页） ========== */
.calendar-section {
    background: white;
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.calendar-section h2 {
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-day {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666;
    background: #f8f9fa;
}

.cal-day.empty {
    background: transparent;
}

.cal-day.checked {
    background: #dcfce7;
    color: #16a34a;
    font-weight: 600;
}

.cal-day.today {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.cal-dot {
    position: absolute;
    bottom: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #16a34a;
}

/* ========== 积分进度条（stats 页） ========== */
.score-progress-section {
    background: white;
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.score-progress-section h2 {
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.score-progress-bar {
    height: 16px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.score-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 8px;
    transition: width 0.5s ease;
    min-width: 0;
}

.score-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #64748b;
}
