/* 排行榜页面专用样式 */

.leaderboard-header {
    text-align: center;
    padding: 40px 0 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    position: relative;
}

.nav-links {
    position: absolute;
    left: 0;
    top: 20px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(52, 152, 219, 0.1);
}

.nav-link:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateX(-3px);
}

/* 数据集选项卡 */
.dataset-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-button:hover {
    color: #2980b9;
    background: rgba(52, 152, 219, 0.05);
}

/* 数据集内容 */
.dataset-content {
    display: none;
}

.dataset-content.active {
    display: block;
}

.dataset-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.dataset-info h2 {
    color: white;
    border: none;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.dataset-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.dataset-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* 排行榜表格 */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.leaderboard-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-table th:first-child {
    border-top-left-radius: 15px;
}

.leaderboard-table th:last-child {
    border-top-right-radius: 15px;
}

.leaderboard-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.leaderboard-table tr:hover {
    background: rgba(52, 152, 219, 0.05);
}

/* 突出显示我们的模型 */
.highlight-row {
    background: rgba(46, 204, 113, 0.08);
    border-left: 4px solid #2ecc71;
}

.highlight-row:hover {
    background: rgba(46, 204, 113, 0.15);
}

/* 列宽设置 */
.rank-col { width: 80px; }
.model-col { width: 200px; }
.paper-col { width: 250px; }
.accuracy-col { width: 120px; }
.date-col { width: 120px; }
.code-col { width: 80px; }

/* 排名徽章 */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(189, 195, 199, 0.4);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

/* 模型信息 */
.model-name {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.model-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.our-model {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

/* 论文链接 */
.paper-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.paper-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 分数样式 */
.score {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
}

.score.best {
    color: #e74c3c;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 代码链接 */
.code-link {
    color: #3498db;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.code-link:hover {
    color: #2980b9;
    transform: scale(1.2);
}

/* 提交部分 */
.submit-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 40px;
    border-radius: 20px;
    margin: 60px 0;
    text-align: center;
}

.submit-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.submit-section p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 40px;
}

.submit-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.step-number {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.step-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

/* JSON示例样式 */
.json-example {
    margin: 30px 0;
    text-align: left;
}

.json-example h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.code-block {
    background: #2c3e50;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: #ecf0f1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.code-block code {
    color: #ecf0f1;
}

/* 暂无数据样式 */
.no-data {
    padding: 60px 20px !important;
    text-align: center !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: none !important;
}

.no-data-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.no-data-content i {
    font-size: 3rem;
    color: #6c757d;
    opacity: 0.7;
}

.no-data-content h3 {
    color: #495057;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.no-data-content p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        position: static;
        margin-bottom: 20px;
    }
    
    .dataset-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tab-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .dataset-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .leaderboard-table {
        font-size: 0.85rem;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 8px;
    }
    
    .model-col,
    .paper-col {
        min-width: 150px;
    }
    
    .submit-steps {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dataset-info {
        padding: 20px;
    }
    
    .dataset-info h2 {
        font-size: 1.5rem;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 6px;
    }
    
    .rank-badge {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .submit-section {
        padding: 30px 20px;
    }
}
