/* 成绩页面样式 */

/* 组别按钮 */
.group-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.group-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.group-btn:hover {
    border-color: #1a5276;
    color: #1a5276;
}

.group-btn.active {
    background: #1a5276;
    color: white;
    border-color: #1a5276;
}

/* 排名样式 */
.rank-cell {
    text-align: center;
    font-weight: bold;
}

.medal {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    text-align: center;
    color: white;
    font-weight: bold;
}

.medal.gold {
    background: #FFD700;
    color: #333;
}

.medal.silver {
    background: #C0C0C0;
    color: #333;
}

.medal.bronze {
    background: #CD7F32;
    color: #333;
}

.paper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    min-height: 100vh;
}

/* 标题页 */
.title-page {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    border-bottom: 3px solid #1a5276;
}

.title-page h1 {
    color: #1a5276;
    font-size: 2.2em;
    margin-bottom: 10px;
}

/* 统计容器 */
.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

/* 学生行悬停效果 */
.student-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.student-row:hover {
    background-color: #e8f4fd !important;
}

/* 奖项样式 */
.award-1 {
    color: #e74c3c;
    font-weight: bold;
}

.award-2 {
    color: #f39c12;
    font-weight: bold;
}

.award-3 {
    color: #27ae60;
    font-weight: bold;
}

/* 奖牌样式 */
.award-gold {
    color: #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.award-gold::before {
    content: "🥇 ";
    font-size: 1.2em;
}

.award-silver {
    color: #C0C0C0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.award-silver::before {
    content: "🥈 ";
    font-size: 1.2em;
}

.award-bronze {
    color: #CD7F32;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.award-bronze::before {
    content: "🥉 ";
    font-size: 1.2em;
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #e8f4fd;
    border-color: #1a5276;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.page-btn:hover, .page-btn.active {
    background: #1a5276;
    color: white;
    border-color: #1a5276;
}

/* 导出按钮 */
.export-btn {
    float: right;
    margin-bottom: 10px;
}

/* 成绩列表样式 */
.scores-list {
    margin-top: 20px;
}

.score-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.score-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.score-item h3 {
    margin: 0 0 10px 0;
    color: #1a5276;
}

.score-item h3 a {
    text-decoration: none;
    color: #1a5276;
    transition: color 0.3s ease;
}

.score-item h3 a:hover {
    color: #3498db;
}

.score-date {
    color: #666;
    font-size: 14px;
    margin-left: 15px;
    font-weight: normal;
}

.score-summary {
    color: #333;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .score-item {
        padding: 20px;
    }
}

/* 成绩分布图 */
.score-chart {
    height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 20px;
    margin: 20px 0;
}

.chart-bar {
    width: 40px;
    background: #1a5276;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s;
}

.chart-bar:hover {
    background: #2980b9;
}

.chart-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
    white-space: nowrap;
}
