/* 排行榜容器样式 */
.leaderboard-container {
    width: 100%;
    max-width: 1200px; /* 增加最大宽度 */
    margin: 0 auto;
    margin-top: 330px; /* 新增：增加顶部外边距使其下移 */
    padding: 20px; /* 新增：增加内边距 */
    background-color: #ffffff; /* 新增：白色背景 */
    border-radius: 8px; /* 新增：圆角 */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); /* 新增：阴影效果 */
  }

/* 排行榜头部样式 */
.leaderboard-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.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;
}

.table-header {
    display: flex;
    background-color: #4a6fa5;
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    text-align: center;
    align-items: center;
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
}

/* 表格行样式调整 */
.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;
}

/* 列宽设置 */
.rank-col {
    width: 10%;
    text-align: center;
    padding-right: 5px;
}

.player-col {
    width: 22%;
    display: flex;
    align-items: center;
    padding-right: 10px;
}

.time-col, .bv-col, .bvs-col, .eff-col {
    width: 10%;
    text-align: center;
    padding-right: 5px;
}

.date-col {
    width: 19%;
    text-align: center;
}


/* 玩家信息样式 */
.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;
}