/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* KaTeX 数学公式样式 */
.katex { font-size: 1.1em; }
.katex-inline { display: inline-block; margin: 0 2px; }
.katex-block { display: block; margin: 1em 0; text-align: center; }
.katex-error { color: var(--error-color); font-style: italic; }

:root {
    --primary-color: #0D6EFD;
    --success-color: #52c41a;
    --error-color: #DC3545;
    --warning-color: #faad14;
    --text-color: #212529;
    --text-secondary: #6C757D;
    --bg-color: #FFFFFF;
    --card-bg: #F8F9FA;
    --border-color: #DEE2E6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --primary-color: #4D94FF;
    --success-color: #73d13d;
    --error-color: #FF6B6B;
    --warning-color: #ffc53d;
    --text-color: #E9ECEF;
    --text-secondary: #ADB5BD;
    --bg-color: #1A1A1A;
    --card-bg: #252525;
    --border-color: #343A40;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="eye-care"] {
    --primary-color: #2E7D32;
    --success-color: #388e3c;
    --error-color: #D32F2F;
    --warning-color: #f9a825;
    --text-color: #333333;
    --text-secondary: #666666;
    --bg-color: #F5F0E1;
    --card-bg: #FAF6E9;
    --border-color: #E0D8C8;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    transition: all 0.3s ease;
}

.hidden-input {
    display: none;
}

/* ==================== 主题切换器样式 ==================== */
.theme-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    z-index: 20;
}

.btn-theme-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 21;
}

.btn-theme-toggle:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

.theme-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 1002;
    min-width: 150px;
    overflow: hidden;
    margin-top: 5px;
}

.theme-dropdown.show {
    display: block !important;
    animation: fadeIn 0.2s ease;
}

.theme-option {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-option:hover {
    background-color: rgba(128, 128, 128, 0.05);
}

.theme-option.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

/* ==================== 头部和用户状态 ==================== */
header {
    background: var(--card-bg);
    padding: 10px 0;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    position: relative;
}

header h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo 图片样式 */
.header-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-left {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.btn-feedback {
    padding: 6px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-feedback img {
    width: 28px;
    height: 28px;
    display: block;
    transition: all 0.3s ease;
}

.btn-feedback:hover {
    background: rgba(13, 110, 253, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-feedback:hover img {
    transform: scale(1.1);
}

/* 小红点提醒样式 */
.btn-feedback.has-unread {
    position: relative;
}

.btn-feedback.has-unread::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    animation: pulse 2s infinite;
}

.feedback-badge {
    background: #ff4757;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    margin-left: 5px;
    display: inline-block;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 用户意见箱弹框样式 */
.feedback-box-modal {
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

/* 标签页切换 */
.feedback-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.feedback-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.feedback-tab:hover {
    color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
}

.feedback-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.08);
}

/* 标签页内容 */
.feedback-tab-content {
    display: none;
}

.feedback-tab-content.active {
    display: block;
}

/* 未读回复标记 */
.unread-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.user-status {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 14px;
}

.user-info .username {
    font-weight: 500;
    color: var(--primary-color);
}

.btn-logout {
    padding: 6px 16px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    opacity: 0.8;
}

.btn-login {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    opacity: 0.9;
}

/* ==================== 模态框 ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-buttons button {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a7bd5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-cancel {
    background: #f5f5f5;
    color: var(--text-color);
    border: 2px solid #e0e0e0;
}

.btn-cancel:hover {
    background: #eeeeee;
    border-color: #d0d0d0;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-footer a {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.form-error {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-error.show {
    display: block;
}

/* ==================== 导航标签 ==================== */
.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.nav-tab {
    padding: 10px 20px;
    background: var(--card-bg);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.nav-tab:hover {
    background: var(--primary-color);
    color: white;
}

.nav-tab.active {
    background: var(--primary-color);
    color: white;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* ==================== 卡片和上传区域 ==================== */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.upload-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 14px;
    color: #999;
}

/* 上传辅助链接区域 */
.upload-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.link-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    background: none;
}

.link-download {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: #f0f5ff;
}

.link-download:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.link-error {
    color: var(--warning-color);
    border: 2px solid var(--warning-color);
    background: #fff3cd;
    cursor: pointer;
}

.link-error:hover {
    background: var(--warning-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 173, 20, 0.3);
}

.link-ai-format {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: 2px solid #667eea !important;
    cursor: pointer;
    font-weight: 600;
}

.link-ai-format:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a4190 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 格式错误详情卡片 */
.format-error-card {
    margin-top: 20px;
    background: white;
    border: 2px solid var(--warning-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(250, 173, 20, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.format-error-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-bottom: 1px solid #ffc107;
}

.format-error-header h4 {
    margin: 0;
    color: #856404;
    font-size: 16px;
    font-weight: 600;
}

.close-error-card {
    background: none;
    border: none;
    font-size: 24px;
    color: #856404;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-error-card:hover {
    background: rgba(133, 100, 4, 0.1);
    transform: rotate(90deg);
}

.format-error-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.format-error-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #389e0d;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #d9363e;
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #d9d9d9;
}

/* ==================== 进度条 ==================== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
    display: none;
}

.progress-bar.active {
    display: block;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #69b1ff);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* ==================== 统计卡片 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #69b1ff);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card.success {
    background: linear-gradient(135deg, var(--success-color), #73d13d);
}

.stat-card.error {
    background: linear-gradient(135deg, var(--error-color), #ff7875);
}

.stat-card.warning {
    background: linear-gradient(135deg, var(--warning-color), #ffc53d);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ==================== 题目卡片 ==================== */
.question-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: var(--shadow-hover);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.question-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.question-type.single {
    background: #e6f7ff;
    color: var(--primary-color);
}

.question-type.multiple {
    background: #f6ffed;
    color: var(--success-color);
}

.question-type.judgment {
    background: #fff7e6;
    color: var(--warning-color);
}

.question-type.fill_blank {
    background: #f9f0ff;
    color: #722ed1;
}

.question-type.short_answer {
    background: #e6fffb;
    color: #13c2c2;
}

.question-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.question-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 数学公式在题目内容中的样式优化 */
.question-content .katex { font-size: 1.05em; }
.question-content .katex-inline { vertical-align: middle; }
.question-content .katex-block { margin: 1.5em 0; }

.options-list {
    list-style: none;
}

.option-item {
    padding: 15px 20px;
    margin-bottom: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-item:hover {
    border-color: var(--primary-color);
    background: #f0f5ff;
}

.option-item.selected {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
}

.option-item.correct {
    border-color: var(--success-color);
    background: #f6ffed;
}

.option-item.incorrect {
    border-color: var(--error-color);
    background: #fff1f0;
}

.option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.option-item.selected .option-label {
    background: var(--primary-color);
    color: white;
}

.option-item.correct .option-label {
    background: var(--success-color);
    color: white;
}

.option-item.incorrect .option-label {
    background: var(--error-color);
    color: white;
}

.option-text {
    flex: 1;
    font-size: 15px;
}

/* 数学公式在选项中的样式优化 */
.option-text .katex { font-size: 1em; }
.option-text .katex-inline { vertical-align: middle; }

.input-wrapper {
    margin-top: 15px;
}

.text-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.text-input.large {
    height: 150px;
    resize: vertical;
}

.self-eval-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-self-correct {
    background: var(--success-color);
    color: white;
}

.btn-self-incorrect {
    background: var(--error-color);
    color: white;
}

.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.option-item.selected .checkbox {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.question-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

/* ==================== 反馈和解析 ==================== */
.feedback {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

.feedback.show {
    display: block;
}

.feedback.correct {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: var(--success-color);
}

.feedback.incorrect {
    background: #fff1f0;
    border: 1px solid #ffa39e;
    color: var(--error-color);
}

.explanation {
    padding: 20px;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 8px;
    margin-top: 15px;
}

.explanation-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explanation-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.explanation-answer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #d6e4ff;
    font-weight: 500;
    color: var(--text-color);
}

/* ==================== AI 解析 ==================== */
.ai-explanation {
    margin-top: 15px;
    border: 2px solid rgba(13, 110, 253, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, var(--card-bg) 100%);
}

.ai-explanation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), #096dd9);
    color: white;
}

.ai-explanation-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.ai-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.ai-explanation-content {
    padding: 20px;
}

.ai-section {
    margin-bottom: 20px;
}

.ai-section:last-child {
    margin-bottom: 0;
}

.ai-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-section-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-left: 28px;
}

.ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--text-secondary);
    gap: 12px;
}

.ai-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e6f7ff;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.ai-error {
    padding: 20px;
    background: #fff1f0;
    border: 1px solid #ffa39e;
    border-radius: 8px;
    color: var(--error-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-ai {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.btn-ai:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==================== 进度滑块 ==================== */
.progress-section {
    background: var(--card-bg);
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.progress-current {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.progress-percent {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #f0f0f0;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin: 0;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

.progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(74, 144, 226, 0.4);
}

.progress-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0 4px;
}

.btn-nav-toggle {
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-nav-toggle:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

.accuracy-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accuracy-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.accuracy-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--success-color);
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.action-buttons .btn {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 14px;
    flex: 1;
    justify-content: center;
}

.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* ==================== 错题本 ==================== */
.wrong-question-item {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.wrong-question-item[onclick] {
    cursor: pointer;
}

.wrong-question-item[onclick]:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}

.wrong-question-item:hover {
    border-color: var(--error-color);
}

.wrong-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wrong-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #fff1f0;
    color: var(--error-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ==================== 空状态和加载 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-text {
    font-size: 16px;
    margin-bottom: 20px;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== Toast 提示 ==================== */
.toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: block;
    opacity: 0;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.toast.show {
    top: 30px;
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(56, 142, 60, 0.9));
}

.toast.error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(211, 47, 47, 0.9));
}

.toast.warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.9), rgba(245, 127, 23, 0.9));
}

.toast.info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.9), rgba(25, 118, 210, 0.9));
}

/* 主题切换专用提示样式 */
.toast.theme-switch {
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.9), rgba(81, 45, 168, 0.9));
    padding: 14px 28px;
    font-size: 15px;
}

.toast.theme-switch::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0 0 25px 25px;
    animation: progressShrink 3s linear forwards;
}

@keyframes progressShrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast.show {
    top: 30px;
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== 键盘提示 ==================== */
.keyboard-hint {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    line-height: 1.6;
}

/* 快捷键容器 */
.shortcut-hint-container {
    margin-top: 15px;
    width: 100%;
}

/* 快捷键触发按钮 */
.shortcut-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
    border: 1px solid transparent;
}

.shortcut-trigger:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.shortcut-icon {
    font-size: 16px;
}

.shortcut-label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.shortcut-arrow {
    font-size: 10px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.shortcut-trigger[aria-expanded="true"] .shortcut-arrow {
    transform: rotate(180deg);
}

/* 快捷键内容区域 */
.shortcut-content {
    margin-top: 10px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.shortcut-item .kbd {
    flex-shrink: 0;
}

.shortcut-desc {
    font-size: 13px;
    color: #495057;
    flex-grow: 1;
}

.kbd {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    border: 1px solid #d9d9d9;
    min-width: 20px;
    text-align: center;
}

/* ==================== 底部操作区一行布局 ==================== */
.question-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    flex-wrap: nowrap;
}

.question-footer-row .shortcut-trigger {
    flex-shrink: 0;
    padding: 8px 14px;
    gap: 6px;
}

.question-footer-row .shortcut-icon {
    font-size: 14px;
}

.question-footer-row .shortcut-content-wrapper {
    position: absolute;
    left: 20px;
    right: 20px;
    top: auto;
    margin-top: 0;
    z-index: 10;
}

.question-footer-row .shortcut-content {
    margin-top: 5px;
    padding: 12px 15px;
}

.question-footer-row .shortcut-item {
    padding: 6px 10px;
    gap: 8px;
}

.question-footer-row .shortcut-desc {
    font-size: 12px;
}

/* ==================== 导出选项 ==================== */
.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.export-option {
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-option:hover {
    border-color: var(--primary-color);
    background: #f0f5ff;
}

.export-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.export-label {
    font-size: 14px;
    font-weight: 500;
}

/* ==================== AI 解析动态科技感边框动画 ==================== */
@keyframes ai-glow-rotate {
    0% { 
        --angle: 0deg; 
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), inset 0 0 30px rgba(0, 255, 255, 0.2);
    }
    33% {
        box-shadow: 0 0 30px rgba(157, 0, 255, 0.6), inset 0 0 30px rgba(157, 0, 255, 0.2);
    }
    66% { 
        --angle: 240deg; 
        box-shadow: 0 0 30px rgba(0, 123, 255, 0.6), inset 0 0 30px rgba(0, 123, 255, 0.2);
    }
    100% { 
        --angle: 360deg; 
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), inset 0 0 30px rgba(0, 255, 255, 0.2);
    }
}

@keyframes ai-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.005);
    }
}

.ai-analyzing {
    position: relative;
    border: 3px solid transparent !important;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: ai-glow-rotate 3s linear infinite, ai-pulse 2s ease-in-out infinite;
    overflow: hidden;
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.ai-analyzing::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: conic-gradient(
        from var(--angle, 0deg),
        #00ffff,
        #9d00ff,
        #007bff,
        #9d00ff,
        #00ffff
    );
    z-index: -1;
    border-radius: inherit;
    animation: ai-glow-rotate 3s linear infinite;
}

.ai-analyzing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg);
    z-index: -1;
    border-radius: inherit;
}

/* 文本框容器和样式 */
.paste-textarea-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.paste-textarea-wrapper textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    transition: all 0.3s ease;
}

.paste-textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* 文本框容器应用彩环动画 */
.paste-textarea-wrapper.ai-analyzing textarea {
    position: relative;
    z-index: 1;
}

.paste-textarea-wrapper.ai-analyzing::before {
    z-index: 0;
}

.paste-textarea-wrapper.ai-analyzing::after {
    z-index: 0;
}

/* 兼容旧的 .ai-analyzing 样式 */
textarea.ai-analyzing {
    background: var(--card-bg) !important;
}

textarea.ai-analyzing::before {
    background: conic-gradient(
        from var(--angle, 0deg),
        #00ffff,
        #9d00ff,
        #007bff,
        #9d00ff,
        #00ffff
    );
}

/* ==================== AI生成题目区域 ==================== */
.ai-generate-wrapper {
    padding: 10px 0;
}

.ai-generate-header h3 {
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.ai-generate-hint {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.ai-generate-input-wrapper textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
}

.ai-generate-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ==================== 上传统计卡片 ==================== */
.upload-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.upload-stat-card {
    background: linear-gradient(135deg, var(--primary-color), #69b1ff);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upload-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 48px;
    opacity: 0.9;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== 历史记录表格 ==================== */
.history-list-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.history-table thead {
    background: linear-gradient(135deg, var(--primary-color), #69b1ff);
}

.history-table th {
    padding: 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.history-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-color);
}

.history-table tbody tr:hover {
    background-color: var(--card-bg);
}

.history-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== 回收站 ==================== */
.recycle-bin-toggle {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recycle-bin-badge {
    background: var(--warning-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.recycle-bin-header {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--warning-color);
}

.recycle-bin-header h3 {
    margin: 0 0 5px 0;
    color: #856404;
}

.recycle-bin-tip {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

.btn-restore {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-restore:hover {
    background: #43a047;
    transform: translateY(-1px);
}

.btn-permanent-delete {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-permanent-delete:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

.remaining-days {
    font-weight: bold;
    color: var(--warning-color);
}

.remaining-days.critical {
    color: var(--error-color);
}

/* ==================== 操作按钮组 ==================== */
.action-btn-group {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.action-btn-view {
    background-color: #e3f2fd;
    color: #1976d2;
}

.action-btn-view:hover {
    background-color: #1976d2;
    color: white;
}

.action-btn-load {
    background-color: #e8f5e9;
    color: #388e3c;
}

.action-btn-load:hover {
    background-color: #388e3c;
    color: white;
}

.action-btn-delete {
    background-color: #ffebee;
    color: #d32f2f;
}

.action-btn-delete:hover {
    background-color: #d32f2f;
    color: white;
}

/* ==================== 历史空状态 ==================== */
.empty-history {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-history .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-history .empty-text {
    font-size: 18px;
    margin-bottom: 10px;
    color: #666;
}

.empty-history .empty-hint {
    font-size: 14px;
    color: #999;
}

/* ==================== 上传详情模态框 ==================== */
.detail-modal {
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-modal-header h2 {
    margin: 0;
    font-size: 22px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
}

.close-btn:hover {
    color: #333;
}

.detail-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.detail-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 100px;
}

.info-value {
    color: #333;
    flex: 1;
}

.detail-questions-container h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.detail-questions-list {
    max-height: 400px;
    overflow-y: auto;
}

.detail-question-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: box-shadow 0.3s ease;
}

.detail-question-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-question-no {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.detail-question-content {
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
}

.detail-question-answer {
    background: #e8f5e9;
    padding: 8px 12px;
    border-radius: 6px;
    color: #2e7d32;
    font-weight: 500;
    font-size: 14px;
}

/* 详情模态框题目列表新样式 */
.detail-question-item .question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-question-item .question-number {
    font-weight: 700;
    color: #667eea;
    font-size: 16px;
    min-width: 40px;
}

.detail-question-item .question-type-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.detail-question-item .question-type-badge.single {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.detail-question-item .question-type-badge.multiple {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.detail-question-item .question-type-badge.judgment {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.detail-question-item .question-answer {
    margin-left: auto;
    background: #e8f5e9;
    padding: 4px 12px;
    border-radius: 12px;
    color: #2e7d32;
    font-weight: 600;
    font-size: 13px;
}

.detail-question-item .question-content {
    color: #333;
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 14px;
}

.detail-question-item .question-options {
    margin-bottom: 10px;
}

.detail-question-item .detail-option {
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.detail-question-item .question-explanation {
    margin-top: 12px;
    padding: 12px;
    background: #fff3e0;
    border-left: 3px solid #ff9800;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.detail-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 2px solid #f0f0f0;
}

.detail-modal-footer .btn-secondary,
.detail-modal-footer .btn-primary {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.detail-modal-footer .btn-secondary {
    background-color: #f0f0f0;
    color: #666;
}

.detail-modal-footer .btn-secondary:hover {
    background-color: #e0e0e0;
}

.detail-modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #69b1ff);
    color: white;
}

.detail-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ==================== 题目导航面板 ==================== */
.question-navigator-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    justify-content: center;
    align-items: flex-end;
    animation: fadeIn 0.3s ease;
}

.question-navigator-overlay.show {
    display: flex;
}

.question-navigator-panel {
    background: var(--card-bg);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 900px;
    max-height: 80vh;
    padding: 25px 20px 20px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.navigator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.navigator-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.navigator-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.navigator-close:hover {
    background: #f0f0f0;
    color: var(--text-color);
}

/* 导航面板中的重新练习区域 */
.navigator-reset-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.reset-text {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
    flex: 1;
    line-height: 1.5;
}

.btn-reset-record {
    background: transparent;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 24px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 44px;
    min-width: 100px;
}

.btn-reset-record:hover {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    transform: translateY(-1px);
}

.btn-reset-record:active {
    transform: translateY(0);
}

.navigator-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    overflow-y: auto;
    padding: 20px 10px;
    flex: 1;
    max-height: 50vh;
}

.navigator-item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    position: relative;
    min-width: 48px;
    min-height: 48px;
    max-width: 70px;
    max-height: 70px;
    margin: 0 auto;
}

.navigator-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navigator-item.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.navigator-item.correct {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.navigator-item.incorrect {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.navigator-item.unanswered::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 8px;
    height: 8px;
    background: var(--warning-color);
    border-radius: 50%;
}

/* 当前题目的视觉标记：在状态色基础上添加光晕效果 */
.navigator-item.current.correct,
.navigator-item.current.incorrect {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8), 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.navigator-item.current.unanswered {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8), 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* 交卷提示区域 */
.navigator-notice-section {
    background: linear-gradient(135deg, #fff3cd 0%, #fff9e6 100%);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 0 0 20px 0;
    border: 2px solid #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    animation: noticePulse 2s ease-in-out infinite;
}

@keyframes noticePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
    }
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notice-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
    color: #856404;
    line-height: 1.6;
}

.notice-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: #664d03;
}

.notice-text p {
    margin: 0;
    font-size: 14px;
}

.highlight-number {
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
    display: inline-block;
    margin: 0 2px;
}

/* 交卷确认操作按钮 */
.navigator-submit-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.btn-continue {
    flex: 1;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 48px;
}

.btn-continue:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
}

.btn-continue:active {
    transform: translateY(0);
}

.btn-submit-exam {
    flex: 1;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 48px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-submit-exam:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea882 100%);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.btn-submit-exam:active {
    transform: translateY(0);
}

/* 交卷结果页面 */
.exam-result-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease;
    max-width: 700px;
    margin: 40px auto;
}

.exam-result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.exam-result-header h2 {
    margin: 0;
    font-size: 28px;
    color: var(--text-color);
    font-weight: 700;
}

.result-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-card.total {
    border-color: #4a90e2;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}

.stat-card.answered {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

.stat-card.correct {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

.stat-card.incorrect {
    border-color: #dc3545;
    background: linear-gradient(135deg, #ffebee 0%, #ffffff 100%);
}

.stat-card.unanswered {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
}

.stat-card.accuracy {
    border-color: #9c27b0;
    background: linear-gradient(135deg, #f3e5f5 0%, #ffffff 100%);
    grid-column: span 2;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.stat-card.total .stat-number {
    color: #4a90e2;
}

.stat-card.answered .stat-number {
    color: #28a745;
}

.stat-card.correct .stat-number {
    color: #28a745;
}

.stat-card.incorrect .stat-number {
    color: #dc3545;
}

.stat-card.unanswered .stat-number {
    color: #ffc107;
}

.stat-card.accuracy .stat-number {
    color: #9c27b0;
    font-size: 42px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.result-actions .btn {
    min-width: 160px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
}

/* 闪烁动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* 交卷功能响应式设计 */
@media (max-width: 768px) {
    .exam-result-container {
        padding: 30px 20px;
        margin: 20px auto;
    }
    
    .result-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card.accuracy {
        grid-column: span 2;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-card.accuracy .stat-number {
        font-size: 32px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
    
    .navigator-submit-actions {
        flex-direction: column;
    }
    
    .notice-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .exam-result-header h2 {
        font-size: 22px;
    }
    
    .result-icon {
        font-size: 48px;
    }
    
    .stat-card {
        padding: 16px 12px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .card {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 28px;
    }

    .nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    /* 进度条响应式 */
    .progress-section {
        flex-wrap: wrap;
        padding: 15px;
        gap: 10px;
    }

    .progress-info {
        width: 100%;
        justify-content: space-between;
    }

    .progress-slider {
        width: 100%;
        flex: none;
    }

    /* 操作按钮响应式 */
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons .btn {
        width: 100%;
        min-height: 48px;
        font-size: 15px;
        flex: none;
    }

    .question-header {
        flex-direction: column;
        gap: 10px;
    }

    .question-footer {
        flex-direction: column;
        gap: 15px;
    }

    /* 题目导航面板响应式 */
    .question-navigator-panel {
        max-height: 85vh;
        padding: 20px 15px 15px 15px;
    }

    .navigator-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        max-height: 60vh;
    }

    .navigator-reset-section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 15px;
    }

    .reset-text {
        text-align: center;
        font-size: 14px;
    }

    .btn-reset-record {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .card {
        padding: 15px;
        border-radius: 10px;
    }

    header h1 {
        font-size: 22px;
    }

    /* Logo 移动端适配 */
    .header-logo {
        height: 55px;
    }

    /* 进度条小屏优化 */
    .progress-section {
        padding: 12px;
        border-radius: 10px;
    }

    .progress-current,
    .progress-percent {
        font-size: 13px;
    }

    .progress-slider {
        height: 6px;
    }

    .progress-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }

    /* 题目内容响应式 */
    .question-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .option-item {
        padding: 12px 15px;
        min-height: 48px;
    }

    .option-label {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    /* 题目导航面板小屏优化 */
    .question-navigator-panel {
        border-radius: 16px 16px 0 0;
        padding: 15px 12px 12px 12px;
        max-height: 90vh;
    }

    .navigator-header h3 {
        font-size: 18px;
    }

    .navigator-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 10px 2px;
    }

    .navigator-item {
        min-width: 40px;
        min-height: 40px;
        font-size: 14px;
    }

    .navigator-reset-section {
        padding: 12px;
        margin-bottom: 15px;
    }

    .reset-text {
        font-size: 13px;
    }

    .btn-reset-record {
        padding: 10px 20px;
        font-size: 13px;
        min-height: 44px;
    }

    /* 键盘提示 */
    .keyboard-hint {
        font-size: 11px;
    }

    .kbd {
        padding: 1px 6px;
        font-size: 10px;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 20px;
    }

    /* Logo 平板设备适配 */
    .header-logo {
        height: 70px;
    }

    .progress-section {
        padding: 18px;
    }

    .navigator-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .question-navigator-panel {
        max-width: 850px;
    }
}

/* 大屏设备优化 */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .navigator-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .question-navigator-panel {
        max-width: 1100px;
    }
}

/* ==================== 重新练习确认对话框样式 ==================== */
.reset-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* 强制按钮可见 */
.reset-modal .reset-modal-footer {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
}

.reset-modal .btn-reset-cancel,
.reset-modal .btn-reset-confirm {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 44px !important;
}

.reset-modal {
    background: white;
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 460px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: resetModalSlideIn 0.3s ease-out;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

@keyframes resetModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 图标区域 */
.reset-modal-icon {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE5E5 100%);
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #FFE5E5;
    border-radius: 20px 20px 0 0;
}

/* 头部区域 */
.reset-modal-header {
    padding: 24px 30px 16px;
    text-align: center;
}

.reset-modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

.reset-modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 主体内容 */
.reset-modal-body {
    padding: 0 30px 24px;
}

.reset-warning-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.reset-warning-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #F8F9FA;
    border-radius: 12px;
    border-left: 3px solid #FF6B6B;
    transition: all 0.2s ease;
}

.reset-warning-item:hover {
    background: #F0F1F2;
    transform: translateX(4px);
}

.warning-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.warning-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 警告提示 */
.reset-warning-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #FFF5F5;
    border: 1px solid #FFE5E5;
    border-radius: 12px;
    color: #FF6B6B;
    font-size: 14px;
    font-weight: 600;
}

.reset-warning-notice svg {
    flex-shrink: 0;
}

/* 底部按钮 */
.reset-modal-footer {
    padding: 20px 30px 24px;
    display: flex;
    gap: 12px;
    background: #F8F9FA;
    border-top: 1px solid #E9ECEF;
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
    margin-top: auto;
}

.btn-reset-cancel,
.btn-reset-confirm {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-reset-cancel {
    background: white;
    color: #666;
    border: 1px solid #DDD;
}

.btn-reset-cancel:hover {
    background: #F8F9FA;
    border-color: #CCC;
    transform: translateY(-1px);
}

.btn-reset-confirm {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-reset-confirm:hover {
    background: linear-gradient(135deg, #EE5A5A 0%, #DD4A4A 100%);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
    transform: translateY(-1px);
}

.btn-reset-cancel:active,
.btn-reset-confirm:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .reset-modal {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .reset-modal-icon {
        padding: 24px;
    }
    
    .reset-modal-header {
        padding: 20px 24px 12px;
    }
    
    .reset-modal-header h2 {
        font-size: 20px;
    }
    
    .reset-modal-body {
        padding: 0 24px 20px;
    }
    
    .reset-warning-item {
        padding: 12px 14px;
    }
    
    .reset-modal-footer {
        padding: 16px 24px 20px;
    }
    
    .btn-reset-cancel,
    .btn-reset-confirm {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ==================== 历史选择列表样式 ==================== */
.history-selection-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.history-selection-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.selection-item-info {
    flex: 1;
}

.selection-filename {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 6px;
}

.selection-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.selection-meta span {
    display: inline-flex;
    align-items: center;
}

.selection-item-action {
    margin-left: 16px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ==================== 导出历史记录模态框样式 ==================== */

/* 全选栏 */
.export-select-all-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #d6e4ff;
}

.export-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.export-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.export-checkbox-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.export-selected-count {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    background: white;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* 历史记录列表 */
.export-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.export-history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.export-history-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
    background: #fafbff;
}

.export-history-item:has(input:checked) {
    border-color: var(--primary-color);
    background: #f0f5ff;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.12);
}

.export-item-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.export-item-info {
    flex: 1;
    min-width: 0;
}

.export-item-filename {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.export-item-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.export-item-meta span {
    display: inline-flex;
    align-items: center;
}
