/* 重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==== 主题变量 ==== */
:root {
    --primary:#6B46C1;
    --primary-light:#805AD5;
    --primary-lighter:#E9D8FD;
    --text-dark:#2D3748;
}

body {
    background: #FAFAFD;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 65px 3px 45px 3px;
    overflow: auto;
    font-size: 14px;
    color: #2D3350;
}

/* App 根元素 - 让其宽度占满视窗 */
.app {
    width: 100%;
}

/* Vue 根元素 */
#app {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* 主容器 */
.container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(60,60,120,0.08);
    padding: 56px 64px;
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 110px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 20px;
    box-shadow:0 12px 32px rgba(60,60,120,0.12);
    overflow: visible;
}

/* 顶部导航 */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #7C6FF9;
}

.header-logo:hover {
    transform: translateY(-2px);
}

.logo-icon-header {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #7C6FF9;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.header-brand {
    color: #2D3350;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: #2D3350;
}

.brand-tagline {
    font-size: 13px;
    opacity: 0.8;
    margin: 2px 0 0 0;
    font-weight: 400;
    color: #7B7B93;
}

.header-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(107,70,193,0.07);
    color: var(--primary);
}

.nav-btn.primary {
    background: linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%);
    color: #fff;
    border: none;
}

.nav-btn.primary:hover {
    background: linear-gradient(45deg, #4A67E5, #6B8CEF);
    transform: translateY(-1px);
}

/* 用户状态样式 */
.user-welcome {
    color: #2D3748;
    font-size: 14px;
    font-weight: 500;
    padding: 0 8px;
}

.nav-btn.logout {
    background: #f56565;
    color: white;
}

.nav-btn.logout:hover {
    background: #e53e3e;
}

/* 底部页脚 */
.bottom-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #7B7B93;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: #7B7B93;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #7C6FF9;
}

/* 左侧内容区 */
.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 32px;
}

.header {
    margin-bottom: 45px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: transparent;
    margin-bottom: 10px;
    background: linear-gradient(135deg,var(--primary),var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
}

.subtitle {
    font-size: 16px;
    color: #7B7B93;
    line-height: 1.5;
    max-width: 90%;
    margin-bottom: 25px;
}

/* 分析模式选择 */
.mode-section {
    margin-bottom: 20px;
    flex: 1;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2D3350;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mode-option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.mode-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.mode-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.mode-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.mode-option.selected .mode-radio {
    border-color: #667eea;
    background: #667eea;
}

.mode-option.selected .mode-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.mode-info {
    flex: 1;
}

.mode-name {
    font-size: 16px;
    font-weight: 600;
    color: #2D3350;
    margin-bottom: 2px;
}

.mode-desc {
    font-size: 13px;
    color: #7B7B93;
    line-height: 1.4;
}

.mode-time {
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* 权限控制相关样式 */
.auth-status {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    font-size: 13px;
}

.guest-notice {
    color: #856404;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-link:hover {
    text-decoration: underline;
}

/* 禁用模式选项样式 */
.mode-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #d1d5db;
    position: relative;
}

.mode-option.disabled:hover {
    border-color: #d1d5db;
    background: #f5f5f5;
}

.mode-option.disabled .mode-radio {
    border-color: #9ca3af;
}

.mode-option.disabled .mode-name {
    color: #6b7280;
}

.mode-option.disabled .mode-desc {
    color: #9ca3af;
}

.mode-option.disabled .mode-time {
    background: #e5e7eb;
    color: #6b7280;
}

.mode-option.premium .mode-name {
    position: relative;
}

.premium-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b5a00;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    backdrop-filter: blur(1px);
}

.lock-overlay i {
    font-size: 24px;
    color: #6c757d;
}

/* 增强已选中模式的视觉效果 */
.mode-option.selected:not(.disabled) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.mode-option.selected:not(.disabled) .mode-name {
    color: #667eea;
}

/* 操作按钮 - 修改为左对齐 */
.action-section {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 36px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(124, 111, 249, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #7C6FF9 0%, #A5A1F7 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 111, 249, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6B5CD6 0%, #7C6FF9 100%);
    transform: translateY(-2px);
}

.btn:disabled {
    background: #cbd5e0 !important;
    color: #a0aec0 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 右侧上传区 */
.right-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 32px 0;
    position: relative;
    color: #2D3350;
    height: 100%;
    overflow: hidden;
}

.upload-area {
    flex-shrink: 0;
    height: 288px;
    width: 70%;
    max-width: 70%;
    border: 2px dashed #cbd5e0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 16px rgba(60,60,120,0.06);
    padding: 30px;
    text-align: center;
}

.upload-area:hover,
.upload-area.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    text-align: center;
}

.upload-hint {
    font-size: 14px;
    color: #7B7B93;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.file-input {
    display: none;
}

.browse-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.browse-btn:hover {
    background: #667eea;
    color: white;
}

/* 登录提示和禁用状态样式 */
.upload-area.disabled {
    border-color: #e2e8f0;
    background: #f7fafc;
    cursor: not-allowed;
}

.upload-area.disabled:hover {
    border-color: #e2e8f0;
    background: #f7fafc;
}

.login-prompt {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-prompt .upload-icon {
    color: #a0aec0;
}

.login-prompt .upload-text {
    color: #4a5568;
}

.login-prompt .upload-hint {
    color: #718096;
}

.browse-btn.login-btn {
    background: #e2e8f0;
    color: #a0aec0;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.browse-btn.login-btn:hover {
    background: #e2e8f0;
    color: #a0aec0;
    border-color: #e2e8f0;
}

/* 文件列表 */
.file-list {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    padding-right: 6px;
}

.file-item {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
}

.file-icon,
.file-size {
    display: none !important;
}

/* 清空按钮 */
.clear-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.clear-btn {
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-btn:hover {
    background: rgba(229, 62, 62, 0.2);
}

/* 状态指示器 */
.status-bar {
    margin-top: 15px;
    font-size: 12px;
    color: #7B7B93;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.upload-count {
    margin-top: 20px;
    font-size: 14px;
    color: #2D3350;
    text-align: center;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* 结果展示 */
.results-section {
    margin: 20px auto;
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    max-width: 1200px;
    width: calc(100% - 40px);
    box-shadow: 0 6px 20px rgba(60, 60, 120, 0.1);
    display: block;
    overflow-y: auto;
    max-height: none;
}

.results-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #2D3748;
}

.analysis-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
}

.wrong-questions {
    margin-bottom: 20px;
}

.question-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.registration-required {
    background: rgba(255, 224, 130, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    text-align: center;
}

.registration-required h3 {
    color: #d97706;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 响应式设计 */

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: calc(100vh - 110px);
        max-width: 99vw;
        padding: 30px 20px;
    }

    .left-section {
        height: auto;
        justify-content: flex-start;
        padding: 0 20px 30px 20px;
    }

    .right-section {
        height: auto;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding: 30px 20px 0 20px;
    }
    
    .upload-area {
        height: 270px;
        min-height: 270px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 55px 3px 45px 3px;
    }

    .container {
        padding: 25px 15px;
        max-width: 99vw;
        min-height: calc(100vh - 100px);
    }

    .header-container {
        padding: 0 15px;
    }

    .brand-name {
        font-size: 20px;
    }
    
    .brand-tagline {
        display: none;
    }
    
    .logo-icon-header {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .left-section {
        padding: 0 15px 25px 15px;
    }

    .right-section {
        padding: 25px 15px 0 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .upload-area {
        height: 280px;
        min-height: 280px;
        padding: 20px;
    }
    
    .action-section {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* 新标题样式 */
.main-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    background: linear-gradient(135deg,var(--primary),var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 18px;
}

.tagline {
    font-size: 17px;
    color: #4A5568;
    max-width: 90%;
    line-height: 1.6;
    margin-bottom: 35px;
}



/* 分析类型和学科内联样式 */
.analysis-info {
    margin-bottom: 12px;
}

.analysis-info p {
    margin: 4px 0;
    color: #2D3748;
}

/* 统计信息样式优化 - 单行布局 */
.stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

/* 题目内容区域紧凑化样式 */
.question-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.question-number {
    color: #2D3748;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.difficulty-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.difficulty-badge.easy {
    background-color: #48bb78;
}

.difficulty-badge.medium {
    background-color: #ed8936;
}

.difficulty-badge.hard {
    background-color: #e53e3e;
}

.question-content, .answer-section, .corrected-section, .correct-section, 
.analysis-section, .knowledge-section, .suggestions-section {
    margin-bottom: 10px;
    padding: 6px 0;
}

.question-content p, .answer-section p, .corrected-section p, 
.correct-section p, .analysis-section p, .knowledge-section p, 
.suggestions-section p {
    color: #2D3748;
    font-weight: 500;
    margin-bottom: 4px;
}

.question-text, .analysis-text {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    color: #4A5568;
    line-height: 1.5;
}

.knowledge-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.knowledge-tag {
    background: #e2e8f0;
    color: #2D3748;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.suggestions-list {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    padding: 10px;
}

.suggestion-item {
    color: #2d3748;
    line-height: 1.5;
    margin-bottom: 6px;
    padding-left: 12px;
    position: relative;
    word-wrap: break-word;
    white-space: normal;
}

.suggestion-item:before {
    content: "•";
    color: #48bb78;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.mark-info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.mark-info small {
    color: #718096;
}

/* 下载按钮样式 */
.btn-download {
    background: #48bb78;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-download:hover {
    background: #38a169;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
    }
    
    .stats-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
}

/* 其他必要样式 */
.no-errors {
    text-align: center;
    padding: 40px;
    color: #52c41a;
}

.no-errors-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.statistics-summary {
    margin-bottom: 24px;
}

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

.download-action {
    display: flex;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* 认证对话框样式 */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    padding: 80px 20px 20px 20px; /* 增加顶部padding，避免被导航栏遮挡 */
    box-sizing: border-box;
}

.auth-dialog {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.auth-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.auth-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.auth-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.auth-form {
    padding: 20px 24px 24px 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
    background: white;
}

.form-group input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.auth-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.auth-btn {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    color: #374151;
}

.auth-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.auth-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
}

.auth-btn.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5b3ba1 0%, #7256c5 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.auth-btn:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .auth-overlay {
        padding: 10px;
    }
    
    .auth-dialog {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .auth-header {
        padding: 20px 20px 16px 20px;
    }
    
    .auth-form {
        padding: 16px 20px 20px 20px;
    }
    
    .auth-actions {
        flex-direction: column;
    }
    
    .auth-btn {
        width: 100%;
    }
}

/* 错题分析结果组件样式 */
.wrong-questions-result {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.result-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-title .icon {
    font-size: 28px;
}

.subject-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.download-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.statistics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.tab-navigation {
    display: flex;
    gap: 2px;
    margin-bottom: 24px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.question-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.question-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.question-header:hover {
    background: #f1f5f9;
}

.question-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.question-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.question-meta {
    display: flex;
    gap: 8px;
}

.difficulty-badge,
.error-type-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.expand-icon {
    font-size: 14px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.question-details {
    padding: 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.question-text,
.error-analysis,
.correct-solution,
.learning-suggestion {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    border-left: 3px solid var(--primary);
}

.knowledge-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.knowledge-point-tag {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.stat-section {
    margin-bottom: 32px;
}

.stat-section:last-child {
    margin-bottom: 0;
}

.stat-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item-label {
    min-width: 120px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.stat-item-bar {
    flex: 1;
    height: 24px;
    background: #f1f5f9;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.stat-item-fill {
    height: 100%;
    background: linear-gradient(135deg, #64748b, #94a3b8);
    border-radius: 12px;
    transition: width 0.3s ease;
}

.stat-item-fill.error-type {
    background: linear-gradient(135deg, #f87171, #fca5a5);
}

.stat-item-fill.difficulty {
    background: linear-gradient(135deg, #34d399, #6ee7b7);
}

.stat-item-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.default-result-placeholder {
    text-align: center;
    padding: 40px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.default-result-placeholder p {
    margin: 8px 0;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wrong-questions-result {
        padding: 16px;
        margin: 0 -16px 20px -16px;
        border-radius: 0;
    }
    
    .result-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .statistics-overview {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .question-header {
        padding: 12px 16px;
    }
    
    .question-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .question-details {
        padding: 16px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .stat-item-label {
        min-width: auto;
        width: 100%;
    }
    
    .stat-item-bar {
        width: 100%;
    }
}

/* 统计表格样式 */
.stat-table-container {
    background: transparent;
    border-radius: 12px;
    padding: 16px;
    border: none;
}

.stat-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-table thead {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.stat-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    border-bottom: 2px solid #e2e8f0;
}

.stat-table th:first-child {
    width: 50%;
}

.stat-table th:nth-child(2) {
    width: 25%;
    text-align: center;
}

.stat-table th:nth-child(3) {
    width: 25%;
    text-align: center;
}

.stat-table tbody tr {
    transition: background-color 0.2s ease;
}

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

.stat-table tbody tr:nth-child(even) {
    background: #fcfcfd;
}

.stat-table tbody tr:nth-child(even):hover {
    background: #f8fafc;
}

.stat-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.stat-item-name {
    color: #374151;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item-count {
    text-align: center;
    color: #1e293b;
    font-weight: 600;
}

.stat-item-percent {
    text-align: center;
    color: #64748b;
    font-weight: 500;
}

/* 颜色指示器 */
.type-indicator,
.difficulty-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* 无统计数据样式 */
.no-stats {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.no-stats i {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 16px;
}

.no-stats h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #374151;
}

.no-stats p {
    font-size: 0.95rem;
    margin: 0;
}

/* 响应式表格 */
@media (max-width: 768px) {
    .stat-table-container {
        padding: 12px;
    }
    
    .stat-table th,
    .stat-table td {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .stat-table th:first-child {
        width: 45%;
    }
    
    .stat-table th:nth-child(2),
    .stat-table th:nth-child(3) {
        width: 27.5%;
    }
}