/* 学业详情样式 */

/* 页面头部 */
.page-header-simple {
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header-simple .header-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.page-header-simple .header-sub {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 2px;
}

.sync-btn {
    padding: 8px 16px;
    background: #374151;
    color: white;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sync-btn:active {
    background: #1f2937;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.empty-state p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 13px;
    color: #9ca3af;
}

/* GPA卡片 */
.gpa-card {
    background: white;
    margin: 16px;
    padding: 24px;
    border-radius: 12px;
    color: #1f2937;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.gpa-title {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.gpa-value {
    font-size: 48px;
    font-weight: 600;
    color: #1f2937;
}

.gpa-label {
    font-size: 14px;
    color: #9ca3af;
}

/* 学业统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 16px 16px;
}

.stat-card {
    background: white;
    padding: 16px 12px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.stat-card.pass {
    border-color: #d1fae5;
}

.stat-card.fail {
    border-color: #fee2e2;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-card.pass .stat-value {
    color: #059669;
}

.stat-card.fail .stat-value {
    color: #ef4444;
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
}

/* 课程进度区域 */
.course-section {
    margin: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 16px;
}

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

.section-title i {
    color: #6b7280;
    font-size: 14px;
}

.section-count {
    font-size: 12px;
    color: #9ca3af;
    margin-left: 4px;
}

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

.course-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.course-item .course-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    flex: 1;
}

.course-item .course-meta {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    gap: 8px;
}

.course-status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.course-status.passed {
    background: #ecfdf5;
    color: #059669;
}

.course-status.failed {
    background: #fee2e2;
    color: #ef4444;
}

.course-status.studying {
    background: #dbeafe;
    color: #3b82f6;
}

.course-status.unfinished {
    background: #f3f4f6;
    color: #9ca3af;
}

.course-status.unknown {
    background: #f3f4f6;
    color: #6b7280;
}

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

    .gpa-value {
        font-size: 36px;
    }
}