/* 成绩统计页面样式 */
#results-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h2 {
    color: var(--primary);
    font-size: var(--text-3xl);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
}

/* 成绩容器布局 */
.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.results-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.results-section.full-width {
    grid-column: 1 / -1;
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.3rem;
}

/* 统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    margin-bottom: 15px;
}

.stat-icon.fa-chart-line { color: var(--primary); }
.stat-icon.fa-check-circle { color: var(--success); }
.stat-icon.fa-times-circle { color: var(--danger); }
.stat-icon.fa-award { color: var(--warning); }

.stat-number {
    font-size: var(--text-3xl);
    font-weight: bold;
    color: var(--primary);
    margin: 15px 0;
}

.stat-title {
    color: var(--text-secondary);
    font-size: var(--text-base);
}

/* 图表容器 */
.chart-container {
    height: 300px;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
}

.chart-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.chart-placeholder i {
    color: var(--primary);
    margin-bottom: 15px;
}

.chart-placeholder h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* 章节进度 */
.chapter-progress {
    margin-top: 20px;
}

.progress-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: var(--transition);
}

.progress-item:hover {
    background: #f0f4ff;
    transform: translateX(5px);
}

.progress-info {
    flex: 1;
}

.progress-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text);
}

.progress-bar-container {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

/* 进度条动画效果 */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: move 1s linear infinite;
}

@keyframes move {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.progress-percentage {
    font-weight: 600;
    color: var(--primary);
    min-width: 50px;
    text-align: right;
}

/* 考试记录 */
.exam-records {
    margin-top: 20px;
}

.exam-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.exam-record:hover {
    background: #f9f9f9;
}

.exam-record:last-child {
    border-bottom: none;
}

.exam-record-info h4 {
    margin-bottom: 5px;
    color: var(--text);
}

.exam-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.exam-score {
    font-weight: 600;
    font-size: 1.2rem;
    padding: 5px 12px;
    border-radius: 20px;
    min-width: 70px;
    text-align: center;
}

.exam-score.excellent {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.exam-score.passed {
    background: rgba(58, 91, 201, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.exam-score.failed {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.exam-detail-btn {
    background: #f0f4ff;
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.exam-detail-btn:hover {
    background: var(--primary);
    color: white;
}

.load-more-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.view-all-records-btn {
    color: var(--primary);
    border-color: var(--primary);
}

.view-all-records-btn:hover {
    background: var(--primary);
    color: white;
}

.refresh-progress-btn {
    transition: var(--transition);
}

.refresh-progress-btn:hover {
    transform: translateY(-2px);
}

.refresh-progress-btn:active {
    transform: translateY(0);
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.empty-state h4 {
    margin-bottom: 10px;
    color: var(--text);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .results-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .exam-record {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .exam-record-info,
    .exam-score,
    .exam-detail-btn {
        width: 100%;
        text-align: left;
    }
    
    .exam-score {
        text-align: center;
        width: auto;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .results-section {
        padding: 20px;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .progress-percentage {
        text-align: left;
    }
}