/**
 * index.php 全局区域样式 - 从 index.php 内联样式抽离
 * 包含：容器动画、项目选择器按钮、错误提示、签到日历、AI确认弹窗、AI加载遮罩、书籍弹窗
 */

/* ========== 容器动画 ========== */
.container-animated {
    animation: pageIn 0.25s ease;
}

/* ========== 项目选择器区域 ========== */
.project-selector-label {
    white-space: nowrap;
    margin: 0;
    font-weight: 600;
}

.project-edit-btn {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.project-edit-btn:hover {
    background: #dbeafe;
}

.project-delete-btn {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.project-delete-btn:hover {
    background: #fee2e2;
}

/* ========== 错误提示 ========== */
.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* ========== 签到日历区域 ========== */
.checkin-month-days {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkin-month-days:hover {
    background: rgba(255, 255, 255, 0.15);
}

.checkin-calendar-popup {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    padding: 16px;
    z-index: 9999;
    min-width: 280px;
}

/* ========== 退出登录表单 ========== */
.logout-form {
    margin: 0;
}

/* ========== AI确认弹窗 ========== */
.ai-confirm-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.ai-confirm-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-confirm-icon span {
    font-size: 28px;
}

.ai-confirm-title {
    margin: 0 0 12px;
    font-size: 18px;
    color: #1a1a2e;
}

.ai-confirm-message {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.ai-confirm-cost {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

.ai-confirm-cost span {
    color: #92400e;
    font-size: 14px;
}

.ai-confirm-cost strong {
    color: #dc2626;
    font-size: 16px;
}

.ai-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ai-confirm-cancel {
    padding: 12px 32px;
    background: #f3f4f6;
    color: #666;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.ai-confirm-ok {
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

/* ========== AI加载遮罩 ========== */
.ai-loading-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.ai-loading-spinner-wrap {
    margin-bottom: 24px;
}

.ai-loading-title {
    margin: 0 0 12px;
    font-size: 20px;
    color: #1a1a2e;
}

.ai-loading-message {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.ai-loading-warning {
    color: #dc2626;
    font-weight: 600;
}

.ai-loading-status-bar {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: #666;
}

.ai-loading-timer {
    margin-top: 16px;
    font-size: 12px;
    color: #999;
}

/* ========== 提示词预览弹窗（JS动态创建） ========== */
.prompt-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.prompt-preview-container {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.prompt-preview-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.prompt-preview-title {
    font-weight: 600;
    font-size: 16px;
}

.prompt-preview-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.prompt-preview-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.prompt-preview-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.prompt-preview-stat-card {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.prompt-preview-stat-card-blue {
    background: #eff6ff;
}

.prompt-preview-stat-card-green {
    background: #f0fdf4;
}

.prompt-preview-stat-card-amber {
    background: #fef3c7;
}

.prompt-preview-stat-card-purple {
    background: #fdf4ff;
}

.prompt-preview-stat-label {
    font-size: 12px;
    color: #666;
}

.prompt-preview-stat-value-blue {
    font-size: 20px;
    font-weight: 600;
    color: #4f46e5;
}

.prompt-preview-stat-value-green {
    font-size: 20px;
    font-weight: 600;
    color: #10b981;
}

.prompt-preview-stat-value-amber {
    font-size: 20px;
    font-weight: 600;
    color: #f59e0b;
}

.prompt-preview-stat-value-purple {
    font-size: 20px;
    font-weight: 600;
    color: #a855f7;
}

.prompt-preview-section {
    margin-bottom: 16px;
}

.prompt-preview-section-header {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prompt-preview-char-count {
    font-size: 12px;
    color: #888;
}

.prompt-preview-code-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: monospace;
}

.prompt-preview-code-block-user {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: monospace;
}

.prompt-preview-footer {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
}

.prompt-preview-copy-btn {
    padding: 8px 16px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.prompt-preview-close-footer-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    color: #333;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
}


/* ========== 全局搜索样式 ========== */
.gs-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.5);z-index:9999;align-items:flex-start;justify-content:center;padding-top:12vh}
.gs-modal{background:#fff;border-radius:16px;width:90%;max-width:580px;box-shadow:0 20px 60px rgba(0,0,0,0.3);overflow:hidden}
.gs-header{padding:16px 20px;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;gap:10px}
.gs-header svg{color:#9ca3af;flex-shrink:0}
.gs-input{flex:1;border:none;outline:none;font-size:15px;background:transparent;color:#111}
.gs-input::placeholder{color:#9ca3af}
.gs-close{background:none;border:1px solid #e5e7eb;border-radius:6px;padding:2px 8px;font-size:11px;color:#6b7280;cursor:pointer}
.gs-body{max-height:400px;overflow-y:auto;padding:8px 0}
.gs-hint{padding:32px 20px;text-align:center;color:#9ca3af;font-size:14px}
.gs-category{padding:8px 20px 4px;font-size:12px;font-weight:600;color:#6b7280;text-transform:uppercase}
.gs-item{display:block;padding:10px 20px;text-decoration:none;color:#111;transition:background 0.15s}
.gs-item:hover{background:#f3f4f6}
.gs-item-title{font-size:14px;font-weight:500;margin-bottom:2px}
.gs-item-preview{font-size:12px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gs-item mark{background:#fef08a;color:inherit;border-radius:2px;padding:0 1px}
.search-nav-btn{background:none;border:none;color:rgba(255,255,255,0.85);cursor:pointer;padding:6px 8px;border-radius:6px;transition:all 0.2s;display:flex;align-items:center;font-size:13px;gap:4px}
.search-nav-btn:hover{background:rgba(255,255,255,0.15);color:#fff}
.search-nav-btn kbd{font-size:10px;background:rgba(255,255,255,0.2);padding:1px 5px;border-radius:3px;font-family:inherit}

/* ========== 新用户引导 ========== */
.onboarding-card{text-align:center;padding:48px 24px;max-width:480px;margin:32px auto}
.onboarding-icon{font-size:56px;margin-bottom:16px}
.onboarding-card h2{font-size:22px;color:#1f2937;margin-bottom:8px}
.onboarding-card>p{color:#6b7280;margin-bottom:24px}
.onboarding-steps{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-bottom:8px}
.onboarding-steps .step{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#f3f4f6;border-radius:10px;font-size:14px;color:#374151}
.onboarding-steps .step-num{width:24px;height:24px;background:linear-gradient(135deg,#6C5CE7,#7c3aed);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;flex-shrink:0}

/* ========== 快捷继续编辑 ========== */
.quick-resume{display:flex;align-items:center;gap:12px;padding:12px 18px;background:linear-gradient(135deg,#ede9fe,#e0e7ff);border:1px solid #c4b5fd;border-radius:10px;cursor:pointer;transition:all 0.2s;margin-bottom:16px;text-decoration:none;color:inherit}
.quick-resume:hover{box-shadow:0 2px 12px rgba(108,92,231,0.18);border-color:#a78bfa}
.quick-resume .resume-icon{font-size:22px}
.quick-resume .resume-title{font-size:14px;font-weight:500;color:#4c1d95}
.quick-resume .resume-time{font-size:12px;color:#7c3aed}
.quick-resume .resume-arrow{margin-left:auto;color:#7c3aed;font-size:18px}

/* ========== 项目快捷切换器 ========== */
.project-switcher{position:relative;display:inline-flex;align-items:center}
.project-switcher-btn{background:rgba(255,255,255,0.15);border:1px solid rgba(255,255,255,0.2);color:#fff;padding:4px 10px;border-radius:6px;cursor:pointer;font-size:12px;display:flex;align-items:center;gap:4px;max-width:140px;transition:all 0.2s}
.project-switcher-btn:hover{background:rgba(255,255,255,0.25)}
.project-switcher-btn .ps-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-switcher-menu{display:none;position:absolute;top:100%;left:0;margin-top:6px;background:#fff;border-radius:10px;box-shadow:0 8px 30px rgba(0,0,0,0.18);min-width:220px;max-height:320px;overflow-y:auto;z-index:9999;padding:6px 0}
.project-switcher:hover .project-switcher-menu{display:block}
.project-switcher-menu a{display:flex;align-items:center;gap:8px;padding:8px 14px;text-decoration:none;color:#374151;font-size:13px;transition:background 0.15s}
.project-switcher-menu a:hover{background:#f3f4f6}
.project-switcher-menu a.ps-active{background:#ede9fe;color:#6C5CE7;font-weight:500}
.project-switcher-menu .ps-genre{font-size:11px;color:#9ca3af;margin-left:auto}
.project-switcher-menu .ps-empty{padding:16px;text-align:center;color:#9ca3af;font-size:13px}

/* ========== 快捷键帮助 ========== */
.shortcuts-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.5);z-index:9999;align-items:center;justify-content:center}
.shortcuts-modal{background:#fff;border-radius:16px;width:90%;max-width:520px;box-shadow:0 20px 60px rgba(0,0,0,0.3);overflow:hidden}
.shortcuts-header{padding:16px 20px;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center}
.shortcuts-header h3{margin:0;font-size:16px;color:#1f2937}
.shortcuts-body{padding:16px 20px;max-height:400px;overflow-y:auto}
.sc-group{margin-bottom:16px}
.sc-group-title{font-size:12px;font-weight:600;color:#6b7280;text-transform:uppercase;margin-bottom:8px}
.sc-row{display:flex;justify-content:space-between;align-items:center;padding:6px 0}
.sc-row .sc-desc{font-size:13px;color:#374151}
.sc-row kbd{background:#f3f4f6;border:1px solid #d1d5db;border-radius:4px;padding:2px 8px;font-size:12px;color:#374151;font-family:inherit;min-width:24px;text-align:center}

/* ========== 写作目标进度 ========== */
.writing-goal{display:flex;align-items:center;gap:12px;padding:10px 18px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;margin-bottom:16px}
.writing-goal .wg-icon{font-size:20px}
.writing-goal .wg-info{flex:1}
.writing-goal .wg-label{font-size:12px;color:#166534}
.writing-goal .wg-bar{height:6px;background:#dcfce7;border-radius:3px;margin-top:4px;overflow:hidden}
.writing-goal .wg-fill{height:100%;background:linear-gradient(90deg,#22c55e,#16a34a);border-radius:3px;transition:width 0.5s}
.writing-goal .wg-text{font-size:13px;font-weight:600;color:#166534;white-space:nowrap}
.writing-goal.wg-done{background:#dcfce7;border-color:#86efac}
.writing-goal.wg-done .wg-text{color:#15803d}

/* ========== 深色模式适配（UX功能） ========== */
.dark-mode .gs-modal{background:#1f2937;border:1px solid #374151}
.dark-mode .gs-header{border-color:#374151}
.dark-mode .gs-input{color:#f3f4f6}
.dark-mode .gs-close{border-color:#4b5563;color:#9ca3af}
.dark-mode .gs-category{color:#9ca3af}
.dark-mode .gs-item{color:#f3f4f6}
.dark-mode .gs-item:hover{background:#374151}
.dark-mode .gs-item-preview{color:#9ca3af}
.dark-mode .gs-item mark{background:#854d0e;color:#fef08a}
.dark-mode .onboarding-card h2{color:#f3f4f6}
.dark-mode .onboarding-card>p{color:#9ca3af}
.dark-mode .onboarding-steps .step{background:#374151;color:#e5e7eb}
.dark-mode .quick-resume{background:linear-gradient(135deg,#312e81,#1e1b4b);border-color:#4c1d95}
.dark-mode .quick-resume .resume-title{color:#c4b5fd}
.dark-mode .quick-resume .resume-time{color:#a78bfa}
.dark-mode .quick-resume .resume-arrow{color:#a78bfa}
.dark-mode .project-switcher-menu{background:#1f2937;border:1px solid #374151}
.dark-mode .project-switcher-menu a{color:#e5e7eb}
.dark-mode .project-switcher-menu a:hover{background:#374151}
.dark-mode .project-switcher-menu a.ps-active{background:#312e81;color:#a78bfa}
.dark-mode .project-switcher-menu .ps-genre{color:#6b7280}
.dark-mode .shortcuts-modal{background:#1f2937;border:1px solid #374151}
.dark-mode .shortcuts-header{border-color:#374151}
.dark-mode .shortcuts-header h3{color:#f3f4f6}
.dark-mode .sc-group-title{color:#9ca3af}
.dark-mode .sc-row .sc-desc{color:#e5e7eb}
.dark-mode .sc-row kbd{background:#374151;border-color:#4b5563;color:#e5e7eb}
.dark-mode .writing-goal{background:#052e16;border-color:#166534}
.dark-mode .writing-goal .wg-label{color:#86efac}
.dark-mode .writing-goal .wg-bar{background:#14532d}
.dark-mode .writing-goal .wg-text{color:#86efac}
.dark-mode .writing-goal.wg-done{background:#14532d;border-color:#22c55e}

/* ========== 页面底部样式 ========== */
.site-footer {
    background: #1e1b4b;
    color: #94a3b8;
    margin-top: auto;
    padding: 20px 0;
    flex-shrink: 0;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    text-align: center;
    flex-wrap: nowrap;
}
.footer-copyright {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}
.footer-beian {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}
.footer-beian a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    white-space: nowrap;
}
.footer-beian a:hover { color: #94a3b8; }

/* 底部响应式 */
@media (max-width: 768px) {
    .site-footer { padding: 16px 0; }
    .footer-container { padding: 0 16px; }
    .footer-content { gap: 16px; }
    .footer-copyright { font-size: 12px; }
    .footer-beian { gap: 12px; }
    .footer-beian a { font-size: 12px; }
}
@media (max-width: 640px) {
    .site-footer { padding: 14px 0; }
    .footer-container { padding: 0 12px; }
    .footer-content { gap: 12px; }
    .footer-copyright { font-size: 11px; }
    .footer-beian { gap: 10px; }
    .footer-beian a { font-size: 11px; }
}
@media (max-width: 480px) {
    .site-footer { padding: 12px 0; }
    .footer-container { padding: 0 10px; }
    .footer-content { gap: 8px; }
    .footer-copyright { font-size: 10px; }
    .footer-beian { gap: 8px; }
    .footer-beian a { font-size: 10px; }
}

/* ========== 深色模式适配（弹窗/对话框/日历） ========== */
body.dark-mode .ai-confirm-content { background: #16213e; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
body.dark-mode .ai-confirm-title { color: #e0e0e0; }
body.dark-mode .ai-confirm-message { color: #aaa; }
body.dark-mode .ai-confirm-cost { background: #2e1a0a; border-color: #854d0e; }
body.dark-mode .ai-confirm-cost span { color: #fcd34d; }
body.dark-mode .ai-confirm-cancel { background: #1a1a3e; color: #ccc; }

body.dark-mode .ai-loading-content { background: #16213e; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
body.dark-mode .ai-loading-title { color: #e0e0e0; }
body.dark-mode .ai-loading-message { color: #aaa; }
body.dark-mode .ai-loading-status-bar { background: #1a1a3e; color: #aaa; }
body.dark-mode .ai-loading-timer { color: #888; }

body.dark-mode .checkin-calendar-popup { background: #16213e; box-shadow: 0 8px 30px rgba(0,0,0,0.4); }

body.dark-mode .prompt-preview-container { background: #16213e; }
body.dark-mode .prompt-preview-header { background: #1a1a3e; border-bottom-color: #2a2a4a; }
body.dark-mode .prompt-preview-title { color: #e0e0e0; }
body.dark-mode .prompt-preview-close-btn { color: #aaa; }
body.dark-mode .prompt-preview-body { color: #e0e0e0; }
body.dark-mode .prompt-preview-stat-card-blue { background: #0a1a2e; }
body.dark-mode .prompt-preview-stat-card-green { background: #0a2e1a; }
body.dark-mode .prompt-preview-stat-card-amber { background: #2e1a0a; }
body.dark-mode .prompt-preview-stat-card-purple { background: #1a0a2e; }
body.dark-mode .prompt-preview-stat-label { color: #aaa; }
body.dark-mode .prompt-preview-section-header { color: #e0e0e0; }
body.dark-mode .prompt-preview-char-count { color: #888; }
body.dark-mode .prompt-preview-code-block { background: #1a1a3e; border-color: #2a2a4a; color: #e0e0e0; }
body.dark-mode .prompt-preview-code-block-user { background: #2e1a0a; border-color: #854d0e; color: #e0e0e0; }
body.dark-mode .prompt-preview-footer { background: #1a1a3e; border-top-color: #2a2a4a; }
body.dark-mode .prompt-preview-close-footer-btn { background: #1a1a3e; color: #ccc; border-color: #2a2a4a; }

body.dark-mode .project-edit-btn { background: #0a1a2e; border-color: #1e40af; color: #93c5fd; }
body.dark-mode .project-delete-btn { background: #2e0a0a; border-color: #991b1b; color: #fca5a5; }
body.dark-mode .alert-error { background: #2e0a0a; border-color: #991b1b; color: #fca5a5; }

/* ========== 深色模式 - 主页深度修复（8.1.9） ========== */

/* 删除按钮（内联样式） */
body.dark-mode button[style*="background:#fef2f2"][style*="color:#dc2626"] {
    background: #2e0a0a !important;
    border-color: #991b1b !important;
    color: #fca5a5 !important;
}

/* 编辑按钮（内联样式） */
body.dark-mode button[style*="background:#eff6ff"][style*="color:#1d4ed8"] {
    background: #0a1a2e !important;
    border-color: #1e40af !important;
    color: #93c5fd !important;
}

/* 无主项目警告 */
body.dark-mode div[style*="background:#fef3c7"][style*="border:1px solid #fcd34d"] {
    background: #2e1a0a !important;
    border-color: #854d0e !important;
    color: #fcd34d !important;
}

/* AI数据用途说明 */
body.dark-mode div[style*="background:#f0f9ff"][style*="border:1px solid #bae6fd"][style*="color:#0369a1"] {
    background: #0a1a2e !important;
    border-color: #0369a1 !important;
    color: #7dd3fc !important;
}

/* 灵感生成成功区域 */
body.dark-mode div[style*="background:#f0fdf4"][style*="border:1px solid #86efac"] {
    background: #0a2e1a !important;
    border-color: #166534 !important;
    color: #6ee7b7 !important;
}

/* 上次灵感内容区域 */
body.dark-mode div[style*="background:#eff6ff"][style*="border:1px solid #93c5fd"] {
    background: #0a1a2e !important;
    border-color: #1e40af !important;
    color: #93c5fd !important;
}

/* 复制按钮 */
body.dark-mode button[style*="background:#dcfce7"][style*="color:#166534"] {
    background: #0a2e1a !important;
    border-color: #166534 !important;
    color: #6ee7b7 !important;
}
body.dark-mode button[style*="background:#dbeafe"][style*="color:#1e40af"] {
    background: #0a1a2e !important;
    border-color: #1e40af !important;
    color: #93c5fd !important;
}
body.dark-mode button[style*="background:#fef3c7"][style*="color:#92400e"] {
    background: #2e1a0a !important;
    border-color: #854d0e !important;
    color: #fcd34d !important;
}

/* 数据状态提示标签 */
body.dark-mode div[style*="background:#dcfce7"][style*="color:#166534"] {
    background: #0a2e1a !important;
    color: #6ee7b7 !important;
}

/* 自定义模式说明 */
body.dark-mode div[style*="background:#dbeafe"][style*="border:1px solid #93c5fd"][style*="color:#1e40af"] {
    background: #0a1a2e !important;
    border-color: #1e40af !important;
    color: #93c5fd !important;
}

/* 生成失败提示 */
body.dark-mode div[style*="background:#fef2f2"][style*="border:1px solid #fecaca"] {
    background: #2e0a0a !important;
    border-color: #991b1b !important;
}

/* 项目卡片内小按钮 */
body.dark-mode button[style*="background:#fff"][style*="border:1px solid #e2e8f0"] {
    background: #1a1a3e !important;
    border-color: #2a2a4a !important;
    color: #e0e0e0 !important;
}
body.dark-mode button[style*="background:#fff"][style*="border:1px solid #fecaca"] {
    background: #2e0a0a !important;
    border-color: #991b1b !important;
    color: #fca5a5 !important;
}

/* 高级模型标签 */
body.dark-mode div[style*="color:#1e40af"][style*="font-weight:600"] {
    color: #93c5fd !important;
}

/* 模型按钮 */
body.dark-mode button[style*="background:#f0fdf4"][style*="color:#166534"] {
    background: #0a2e1a !important;
    border-color: #166534 !important;
    color: #6ee7b7 !important;
}

/* 卷章节列表 */
body.dark-mode div[style*="border-left:2px solid #fcd34d"] {
    border-left-color: #854d0e !important;
}

/* 错误反馈相关 */
body.dark-mode #errorFeedbackToast {
    background: #16213e !important;
    border-color: #2a2a4a !important;
    color: #e0e0e0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
}
body.dark-mode #feedbackNotifyOverlay .feedback-notify-content {
    background: #16213e !important;
    color: #e0e0e0 !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}

/* ========== 深色模式 - hover/active 状态修复（8.1.9） ========== */
body.dark-mode .gs-item { color: #e0e0e0 !important; }
body.dark-mode .gs-item:hover { background: #1a1a3e !important; }
body.dark-mode .gs-item-title { color: #e0e0e0 !important; }
body.dark-mode .gs-item-preview { color: #888 !important; }
body.dark-mode .gs-category { color: #888 !important; }
body.dark-mode .project-switcher-menu a { color: #d1d5db !important; }
body.dark-mode .project-switcher-menu a:hover { background: #1a1a3e !important; }
body.dark-mode .project-switcher-menu a.ps-active { background: #1a0a2e !important; color: #a78bfa !important; }
body.dark-mode .project-switcher-menu .ps-genre { color: #888 !important; }
