/* ========== 排行榜页专属样式 ========== */

.lb-page {
    flex: 1;
}

/* ---- Tab 切换（仅移动端显示） ---- */
.lb-tabs {
    display: none;
}
.lb-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #5A4A3A;
    cursor: pointer;
    transition: all 0.25s ease;
    flex: 1;
    justify-content: center;
}
.lb-tab.active {
    color: #1A2A3A;
    transform: translateY(-3px);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.35),
        0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}
.lb-tab img {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

/* ---- 三栏卡片容器 ---- */
.lb-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 24px;
    align-items: start;
}

/* ---- 列标题（服务页 section-header 风格，白色浮在背景上） ---- */
.lb-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
.lb-col-title img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    flex-shrink: 0;
}

/* ---- 卡片 ---- */
.lb-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---- 表格容器 ---- */
.lb-table-wrap {
    overflow-x: auto;
}

/* ---- 表格 ---- */
.lb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.lb-table th {
    text-align: left;
    padding: 8px 8px 7px;
    font-weight: 600;
    color: #5A4A3A;
    border-bottom: 2px solid rgba(139, 69, 19, 0.15);
    font-size: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.lb-table td {
    padding: 8px 8px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.08);
    color: #3A2A1A;
}
.lb-table tr:last-child td {
    border-bottom: none;
}

/* 列宽 */
.col-rank {
    width: 44px;
    text-align: center !important;
}
.col-player {
    text-align: left;
}
.col-value {
    width: 80px;
    text-align: right !important;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---- 前三名高亮 ---- */
.lb-table tr.top-1 td {
    background: rgba(255, 215, 0, 0.12);
    font-weight: 600;
}
.lb-table tr.top-2 td {
    background: rgba(192, 192, 192, 0.1);
}
.lb-table tr.top-3 td {
    background: rgba(205, 127, 50, 0.08);
}
/* ---- 底部提示 ---- */
.lb-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-top: 30px;
}
.lb-hint .lb-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}
.lb-hint .lb-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ---- 加载状态 ---- */
.lb-loading {
    text-align: center !important;
    color: #7A6A5A !important;
    padding: 30px 8px !important;
    font-size: 13px;
}

/* ---- 响应式（移动端） ---- */
@media (max-width: 1000px) {
    .lb-tabs {
        display: flex;
        gap: 10px;
        margin-bottom: 24px;
    }

    .lb-col-title {
        display: none;
    }

    .lb-cards {
        display: block;
    }
    .lb-card {
        display: none;
    }
    .lb-card.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .lb-tab {
        padding: 10px 14px;
        font-size: 13px;
    }
    .lb-tab img {
        width: 18px;
        height: 18px;
    }
    .lb-card {
        padding: 16px 12px 14px;
        border-radius: 14px;
    }
    .lb-table {
        font-size: 13px;
    }
    .lb-table td,
    .lb-table th {
        padding: 6px 4px;
    }
    .col-rank {
        width: 32px;
    }
    .col-value {
        width: 60px;
    }
}
