/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    padding: 20px 0;
    margin: 0;
}

/* Leaderboard Wrapper */
.leaderboard-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Leaderboard Container */
.leaderboard-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

/* Leaderboard Header */
.leaderboard-header {
    margin-bottom: 30px;
}

.leaderboard-header .title {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.leaderboard-header .subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.table {
    width: 100%;
    margin-bottom: 0;
    font-size: 14px;
    border-collapse: collapse;
}

/* Table Header */
.table thead th {
    background-color: #3498db;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    padding: 12px 10px;
    border: 1px solid #2980b9;
    font-size: 13px;
}

.section-header {
    background-color: #2c3e50 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.rank-header {
    width: 60px;
    background-color: #34495e !important;
}

.model-header {
    min-width: 200px;
    text-align: left !important;
    background-color: #34495e !important;
}

.avg-header {
    min-width: 100px;
    background-color: #27ae60 !important;
}

/* Table Body */
.table tbody td {
    text-align: center;
    vertical-align: middle;
    padding: 12px 10px;
    border: 1px solid #ddd;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f1f8ff;
}

/* Rank Column */
.rank-col {
    font-weight: 700;
    font-size: 16px;
    background-color: #ecf0f1;
    color: #34495e;
}

.rank-1 {
    background-color: #ffd700 !important;
    color: #000000 !important;
}

.rank-2 {
    background-color: #c0c0c0 !important;
    color: #000000 !important;
}

.rank-3 {
    background-color: #cd7f32 !important;
    color: #ffffff !important;
}

/* Model Name Column */
.model-name {
    text-align: left !important;
    font-weight: 600;
    color: #2c3e50;
    padding-left: 20px !important;
}

/* Average Score Column */
.avg-score {
    font-weight: 700;
    color: #27ae60;
    font-size: 15px;
    background-color: #e8f8f5;
}

/* Error Message */
.error-message {
    text-align: center !important;
    color: #e74c3c;
    padding: 30px !important;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .table {
        font-size: 12px;
    }
    
    .table thead th {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .table tbody td {
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    .leaderboard-container {
        padding: 20px 15px;
    }
    
    .leaderboard-header .title {
        font-size: 22px;
    }
    
    .table {
        font-size: 11px;
    }
    
    .table thead th {
        padding: 8px 5px;
        font-size: 11px;
    }
    
    .table tbody td {
        padding: 8px 5px;
    }
    
    .model-name {
        padding-left: 10px !important;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }
    
    .leaderboard-container {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .table tbody tr:hover {
        background-color: transparent !important;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏样式 */
.fixed-nav {
    background-color: #2c3e50;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fixed-nav a {
    color: white;
    margin: 5px 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.fixed-nav a:hover {
    color: #3498db;
}

.fixed-nav a.highlight {
    color: #ffd700;
    font-weight: 600;
}

/* 锚点偏移（避免被导航栏遮挡）*/
section[id]::before,
div[id]::before {
    content: '';
    display: block;
    height: 70px;
    margin-top: -70px;
    visibility: hidden;
}