/* 排行榜容器样式 */
.leaderboard-container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}



/* 用户信息头部样式优化 */
.user-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50, #4a6fa5);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-avatar-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.username {
    font-size: 26px;
    font-weight: bold;
    margin: 0;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.user-email {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.user-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}


/* 游戏数据标题优化 */
.game-stats-title {
    margin: 25px 0;
    border-left: 4px solid #4a6fa5;
    padding-left: 15px;
}

.game-stats-title h3 {
    font-size: 20px;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

/* 排行榜容器样式优化 */
.leaderboard-container {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0;
    overflow: hidden;
}

/* 表格样式优化 */
.leaderboard-table {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.table-header {
    display: flex;
    background-color: #e6f0f9;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    text-align: center;
    align-items: center;
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
    border-bottom: 1px solid #c0d0e0;
}

/* 表格行样式调整 */
.table-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 15px;
    align-items: center;
    transition: background-color 0.2s;
    font-size: 14px;
    background-color: #ffffff;
}

/* 移除偶数行背景色变化 */
.table-row:nth-child(even) {
    background-color: #ffffff;
}
/* 每4行分组样式 */
.table-row:nth-child(4n) {
    border-bottom: 1px solid #d0d0d0;
}
/* 添加分组间隔 - 每4行后添加间隔 */
.table-body > div:nth-child(4n)::after {
    content: "";
    display: block;
    height: 15px;
    background-color: #f5f5f5;
    margin-top: 12px;
    border-bottom: 1px solid #e0e0e0;
}

/* 为每组的第一行添加上边距（除第一组外） */
.table-body > div:nth-child(4n+1):not(:first-child) {
    padding-top: 25px;
}


.table-row:hover {
    background-color: #e9ecef;
}


.top-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.player-info {
    font-size: 14px;
    color: #333;
}

#my-rank {
    font-weight: bold;
    color: #4a6fa5;
}

.filter-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* 模式选择器样式 */
.mode-selector {
    display: flex;
    align-items: center;
}

.mode-selector span {
    margin-right: 10px;
    font-size: 14px;
    color: #333;
}

.mode-tabs {
    display: flex;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
}

.mode-tab {
    padding: 5px 10px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-tab:not(:last-child) {
    border-right: 1px solid #ced4da;
}

.mode-tab.active {
    background-color: #4a6fa5;
    color: white;
}

.first-click-filter {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.first-click-filter label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.first-click-filter input[type="checkbox"] {
    margin-right: 5px;
}

.sort-options {
    display: flex;
    align-items: center;
}

.sort-options span {
    margin-right: 10px;
    font-size: 14px;
    color: #333;
}

#sort-method {
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
}

/* 表格样式 */
.leaderboard-table {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.table-header {
    display: flex;
    background-color: #e9f0f7;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    text-align: center;
    align-items: center;
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
    border-bottom: 1px solid #e0e0e0;
}

/* 表格行样式调整 */
.table-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 15px;
    align-items: center;
    transition: background-color 0.2s;
    font-size: 14px;
}

.table-row:nth-child(even) {
    background-color: #f8f9fa;
}

.table-row:hover {
    background-color: #e9ecef;
}


/* 列宽设置 - 与图片样式一致 */
.mode-col {
    width: 10%;
    text-align: center;
    font-weight: 500;
}

.level-col {
    width: 10%;
    text-align: center;
}

.victory-col {
    width: 15%;
    text-align: center;
}

.time-col {
    width: 25%;
    text-align: center;
}

.best-col {
    width: 25%;
    text-align: center;
}

.rank-col {
    width: 15%;
    text-align: center;
}


/* 用户操作按钮优化 */
.user-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding: 0 20px 20px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#change-password-btn {
    background-color: #3498db;
    color: white;
}

#change-password-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#delete-account-btn {
    background-color: #e74c3c;
    color: white;
}

#delete-account-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 玩家信息样式 */
.player-flag {
    margin-right: 8px;
    width: 20px;
    height: 15px;
    border: 1px solid #e0e0e0;
}

.player-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 特殊标记 */
.player-badge {
    margin-left: 5px;
    font-size: 14px;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.page-btn {
    background-color: #fff;
    border: 1px solid #ced4da;
    color: #4a6fa5;
    padding: 5px 10px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.page-btn:hover {
    background-color: #f0f0f0;
}

.page-btn.active {
    background-color: #4a6fa5;
    color: white;
    border-color: #4a6fa5;
}

.page-numbers {
    display: flex;
    margin: 0 5px;
}

/* 赛季信息样式 */
.season-info {
    font-size: 14px;
    color: #4a6fa5;
    cursor: pointer;
}

.season-info:hover {
    text-decoration: underline;
}

/* 100%效率标记 */
.perfect-score {
    color: #28a745;
    font-weight: bold;
}

/* 国旗样式 */
.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #e0e0e0;
}

/* 难度选择器样式 */
.difficulty-selector {
    display: flex;
    align-items: center;
}

.difficulty-selector span {
    margin-right: 10px;
    font-size: 14px;
    color: #333;
}

.difficulty-tabs {
    display: flex;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
}

.difficulty-tab {
    padding: 5px 10px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.difficulty-tab:not(:last-child) {
    border-right: 1px solid #ced4da;
}

.difficulty-tab.active {
    background-color: #4a6fa5;
    color: white;
}

/* 首扫筛选样式 */
.first-click-filter {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.first-click-filter label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.first-click-filter input[type="checkbox"] {
    margin-right: 5px;
}