/* 排行榜样式 */
.leaderboard-container {
    width: 100%;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.leaderboard-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.leaderboard-tabs button {
    padding: 10px 20px;
    border: none;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.leaderboard-tabs button.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.leaderboard-table-container {
    overflow-x: auto;
    max-height: 400px;
    margin-bottom: 20px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.leaderboard-table th {
    background-color: #f7f7f7;
    color: var(--primary-color);
    font-weight: bold;
}

.leaderboard-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.leaderboard-table tr:hover {
    background-color: #f0f0f0;
}

.leaderboard-table .no-data,
.leaderboard-table .loading,
.leaderboard-table .error {
    text-align: center;
    padding: 30px;
    color: #888;
}

.leaderboard-table .error {
    color: #e74c3c;
}

.leaderboard-refresh-btn {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.leaderboard-refresh-btn:hover {
    background-color: var(--secondary-color);
}

/* 排名样式 */
.leaderboard-table tr:nth-child(1) td:first-child {
    font-weight: bold;
    color: gold;
}

.leaderboard-table tr:nth-child(2) td:first-child {
    font-weight: bold;
    color: silver;
}

.leaderboard-table tr:nth-child(3) td:first-child {
    font-weight: bold;
    color: #cd7f32; /* 铜色 */
}