

/* ============================================
   基础布局
   ============================================ */

.profile-page {
    padding-top: 64px;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.profile-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    gap: 24px;
}

/* 左侧边栏 */
.profile-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* 主内容区 */
.profile-main {
    flex: 1;
    min-width: 0;
}

/* 响应式 */
@media (max-width: 1024px) {
    .profile-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
    }
}

/* ============================================
   用户卡片
   ============================================ */

.user-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--theme-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto 16px;
}

.user-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* ============================================
   快速导航
   ============================================ */

.quick-nav {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.quick-nav-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.quick-nav-item:hover {
    background: var(--bg-secondary);
    color: var(--theme-primary);
}

.quick-nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* ============================================
   内容卡片
   ============================================ */

.section-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-more {
    font-size: 0.875rem;
    color: var(--theme-primary);
    text-decoration: none;
}

.section-more:hover {
    text-decoration: underline;
}

/* ============================================
   统计样式
   ============================================ */

.weekly-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   薄弱知识点
   ============================================ */

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

.weak-point-item {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.weak-point-item:hover {
    transform: translateX(4px);
}

.weak-point-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.weak-point-name {
    font-weight: 500;
}

.weak-point-rate {
    font-size: 0.875rem;
    font-weight: 600;
}

.weak-point-rate.low {
    color: var(--theme-danger, #ef4444);
}

.weak-point-rate.medium {
    color: var(--theme-warning, #f59e0b);
}

.progress-bar-bg {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--theme-primary);
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-bar-fill.low {
    background: var(--theme-danger, #ef4444);
}

.progress-bar-fill.medium {
    background: var(--theme-warning, #f59e0b);
}

/* ============================================
   错题列表
   ============================================ */

.mistake-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mistake-item {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.mistake-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mistake-title {
    font-weight: 500;
}

.mistake-answers {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
}

.mistake-answers .wrong {
    color: var(--theme-danger, #ef4444);
}

.mistake-answers .correct {
    color: var(--theme-success, #22c55e);
}

/* ============================================
   进度总览
   ============================================ */

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

.progress-item {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-bar-large {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-large .fill {
    height: 100%;
    background: var(--theme-primary);
    border-radius: 4px;
    transition: width 0.3s;
}

/* ============================================
   空状态
   ============================================ */

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* ============================================
   统一角色徽章样式
   ============================================ */

.user-role-badge {
    display: inline-block;
    padding: 4px 12px;
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

/* 教师视图样式 */

/* 教师统计网格 */
.teacher-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.teacher-stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
}

.teacher-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.teacher-stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.teacher-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin-bottom: 4px;
}

.teacher-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 教师快速操作 */
.teacher-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.teacher-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.teacher-action-btn:hover {
    border-color: var(--theme-primary);
    background: var(--bg-primary);
}

.teacher-action-btn .action-icon {
    font-size: 2rem;
}

.teacher-action-btn .action-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 教师试卷列表 */
.teacher-papers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-paper-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.admin-paper-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.admin-paper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.admin-paper-title {
    font-weight: 600;
    font-size: 1rem;
}

.admin-paper-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.admin-paper-badge.badge-GESP {
    background: #22c55e20;
    color: #22c55e;
}

.admin-paper-badge.badge-CSP-J {
    background: #3b82f620;
    color: #3b82f6;
}

.admin-paper-badge.badge-CSP-S {
    background: #8b5cf620;
    color: #8b5cf6;
}

.admin-paper-meta {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.admin-paper-actions {
    display: flex;
    gap: 8px;
}

.admin-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    cursor: pointer;
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    transition: all 0.2s;
}

.admin-btn:hover {
    background: var(--bg-hover);
}

.admin-btn.btn-primary {
    background: var(--theme-primary);
    color: white;
    border-color: var(--theme-primary);
}

.admin-btn.btn-primary:hover {
    opacity: 0.9;
}

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