/* 仪表盘样式 */

/* 头部欢迎区域 */
.dashboard-header {
    background: linear-gradient(135deg, #5B9BD5 0%, #7FB3E6 50%, #9CC8F0 100%);
    padding: 30px 24px 40px;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 1;
}

.greeting-title {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.greeting-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin-bottom: 12px;
}

.school-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    display: inline-block;
    margin-top: 4px;
}

.school-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.school-name,
.major-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.school-separator {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.header-date {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.date-week {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* 核心数据区域 */
.stats-section {
    padding: 0 16px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.gpa-card::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.rank-card::before {
    background: linear-gradient(90deg, #5B9BD5, #7FB3E6);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.gpa-card .stat-icon {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    color: #FFA000;
}

.rank-card .stat-icon {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #5B9BD5;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-label {
    font-size: 13px;
    color: #8E8E93;
    display: block;
    margin-bottom: 6px;
}

.stat-value-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1C1C1E;
}

.stat-unit {
    font-size: 14px;
    color: #8E8E93;
    font-weight: 500;
}

.stat-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.stat-badge.excellent {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    color: #FFA000;
}

.stat-progress {
    margin-top: 12px;
    height: 6px;
    background: #F2F2F7;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #5B9BD5, #7FB3E6);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* 成果统计区域 */
.achievements-section {
    padding: 28px 16px 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1C1C1E;
    margin-bottom: 16px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.achievement-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.achievement-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.achievement-icon svg {
    width: 26px;
    height: 26px;
}

.achievement-icon.paper {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #4CAF50;
}

.achievement-icon.patent {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #2196F3;
}

.achievement-icon.software {
    background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
    color: #9C27B0;
}

.achievement-icon.award {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    color: #FF9800;
}

.achievement-icon.english {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #4CAF50;
}

.achievement-icon.project {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #2196F3;
}

.achievement-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.achievement-value {
    font-size: 24px;
    font-weight: 700;
    color: #1C1C1E;
}

.achievement-label {
    font-size: 12px;
    color: #8E8E93;
}

/* 快捷入口 */
.quick-actions {
    padding: 20px 16px 100px;
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.action-btn:active {
    transform: scale(0.98);
    background: #F8F9FA;
}

.action-btn svg {
    width: 28px;
    height: 28px;
    color: #5B9BD5;
}

.action-btn span {
    font-size: 14px;
    color: #1C1C1E;
    font-weight: 500;
}

/* 可点击卡片样式 */
.stat-card.clickable,
.achievement-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.stat-card.clickable:hover,
.achievement-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-card.clickable:active,
.achievement-card.clickable:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 响应式调整 */
@media screen and (max-width: 360px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 24px;
    }
}
