/* PAVLOV VR 排行榜网站 - 现代化明亮风格样式 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #e74c3c;
    --accent-color: #d68910;
    --dark-bg: #ffffff;
    --darker-bg: #f5f6fa;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --success: #1e8449;
    --warning: #d68910;
    --danger: #c0392b;
    --gold: #d4ac0d;
}

body {
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f6fa 0%, #e8ecef 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #e8ecef;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 头部导航栏 */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f5f6fa 100%);
    height: auto;
    min-height: 70px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    border-bottom: 2px solid var(--primary-color);
}

.headerbody {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.left {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 16px;
    font-weight: 500;
    flex-wrap: wrap;
}

.left a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(74, 144, 226, 0.1);
}

.left a:hover {
}

.right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.right form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.right input[type="text"],
.right input[type="password"] {
    background: #ffffff;
    border: 1px solid var(--primary-color);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 20px;
    outline: none;
}

.right input[type="text"]:focus,
.right input[type="password"]:focus {
    border-color: var(--secondary-color);
}

.right input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.right input[type="submit"]:hover {
}

.right select {
    background: #ffffff;
    border: 1px solid var(--primary-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 10px;
    outline: none;
}

.right a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(74, 144, 226, 0.1);
}

.right a:hover {
}

.score {
    color: var(--gold);
    font-weight: bold;
    font-size: 18px;
}

/* 用户菜单栏 */
.user_menu {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.user_menu_btn {
    flex: 1;
    min-width: 120px;
    height: 55px;
    padding: 0 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    white-space: nowrap;
    word-break: keep-all;
    color: #ffffff;
}

.btn_blue {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3498db 100%);
    color: #ffffff;
}

.btn_blue:hover {
}

.btn_gold {
    background: linear-gradient(135deg, var(--gold) 0%, #f39c12 100%);
    color: #ffffff;
}

.btn_gold:hover {
}

.btn_green {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #ffffff;
}

.btn_green:hover {
}

@keyframes goldGlow {
    0%, 100% { box-shadow: 0 0 3px rgba(241, 196, 15, 0.4); }
    50% { box-shadow: 0 0 8px rgba(241, 196, 15, 0.6); }
}

.clean_up {
    clear: both;
}

/* 主容器 */
.middle {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

/* PCVR进服须知提示框 */
.pcvr-notice-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border: 3px solid #f39c12;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.22);
    position: relative;
}

.notice-icon-wrapper {
    flex-shrink: 0;
}

.notice-icon {
    font-size: 38px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-content {
    flex: 1;
}

.notice-title {
    font-size: 18px;
    font-weight: bold;
    color: #d35400;
    margin: 0 0 4px 0;
    text-shadow: 0 1px 2px rgba(211, 84, 0, 0.2);
    letter-spacing: 0.5px;
}

.notice-text {
    font-size: 15px;
    color: #a04000;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

.notice-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    cursor: pointer;
}

.notice-guide-btn:hover {
    background: linear-gradient(135deg, #f1c40f 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.5);
}

.notice-guide-btn:active {
    transform: translateY(0);
}

.notice-guide-btn .btn-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

.notice-guide-btn .btn-icon {
    font-size: 18px;
}

.notice-guide-btn .btn-text {
    font-size: 15px;
    letter-spacing: 0.5px;
}

.notice-guide-btn .btn-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.notice-guide-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .pcvr-notice-banner {
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
        gap: 10px;
    }

    .notice-icon {
        font-size: 32px;
    }

    .notice-title {
        font-size: 15px;
    }

    .notice-text {
        font-size: 12px;
    }

    .notice-guide-btn {
        padding: 8px 16px;
        gap: 6px;
    }

    .notice-guide-btn .btn-badge {
        font-size: 12px;
        padding: 4px 10px;
    }

    .notice-guide-btn .btn-icon {
        font-size: 16px;
    }

    .notice-guide-btn .btn-text {
        font-size: 13px;
    }

    .notice-guide-btn .btn-arrow {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pcvr-notice-banner {
        padding: 10px 14px;
        gap: 8px;
    }

    .notice-icon {
        font-size: 28px;
    }

    .notice-title {
        font-size: 14px;
    }

    .notice-text {
        font-size: 11px;
    }

    .notice-guide-btn {
        padding: 7px 14px;
        gap: 5px;
    }

    .notice-guide-btn .btn-badge {
        font-size: 11px;
        padding: 4px 9px;
    }

    .notice-guide-btn .btn-icon {
        font-size: 15px;
    }

    .notice-guide-btn .btn-text {
        font-size: 12px;
    }

    .notice-guide-btn .btn-arrow {
        font-size: 13px;
    }
}

/* 排行榜样式 */
.rank {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.rank_list {
    width: 100%;
    display: flex;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.rank_no,
.rank_detail_head,
.rank_detail,
.rank_detail_kda {
    padding: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank_no {
    width: 60px;
    font-weight: bold;
    color: var(--gold);
    font-size: 18px;
}

.rank_detail_head {
    width: 80px;
    justify-content: center;
}

.rank_detail_head img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.rank_detail {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.rank_detail_kda {
    width: 80px;
    text-align: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* 排行榜按钮样式 */
#30_rank_btn,
#sess_rank_btn,
#session_btn,
button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
}

#30_rank_btn:hover,
#sess_rank_btn:hover,
#session_btn:hover {
}

/* 下拉选择框 */
select {
    background: #ffffff;
    border: 1px solid var(--primary-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 25px;
    outline: none;
    cursor: pointer;
    margin-right: 10px;
}

select:hover,
select:focus {
}

/* 捐赠榜样式（桌面/移动端统一用网格，避免 min-width 撑破） */
.recharge {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 10px auto 12px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.donors-title {
    text-align: center;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.3;
}

.donors-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.donor-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.donor-item:hover {
}

.donor-name {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-width: 0;
    line-height: 1.2;
}

.donor-amount {
    font-size: 13px;
    color: #e74c3c;
    font-weight: bold;
    flex-shrink: 0;
}

.rank-emoji {
    font-size: 16px;
    margin-bottom: 0;
    line-height: 1;
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-donors-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 0;
    width: 100%;
}

.top-donor-item {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 1px solid #f1c40f;
    border-radius: 8px;
    padding: 6px 4px;
    text-align: center;
    min-width: 0;
    width: 100%;
    max-width: none;
    box-shadow: 0 1px 6px rgba(255, 215, 0, 0.22);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.top-donor-item:hover {
}

.rest-donors-table {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 3px;
}

.rest-donor-cell {
    min-width: 0;
    padding: 4px 6px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    background: rgba(74, 144, 226, 0.05);
    text-align: center;
    border-radius: 5px;
    box-sizing: border-box;
}

.rest-donor-cell .donor-row {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
}

.rest-donor-cell .donor-name {
    flex: 1 1 auto;
    text-align: left;
}

.rest-donor-cell .donor-amount {
    flex: 0 0 auto;
    text-align: right;
}

.donors-scroll-hint {
    display: none;
}

.rest-donor-cell:hover {
}

.rest-rank {
    font-size: 11px;
    color: #4a90e2;
    font-weight: bold;
    line-height: 1.2;
}

.donors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.donor-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.3);
    min-width: 200px;
}

.donor-card:hover {
}

.donor-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(241, 196, 15, 0.3);
}

.donor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rich {
    background: rgba(241, 196, 15, 0.1);
    padding: 10px 15px;
    margin: 5px;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.rich:hover {
}

.richname {
    font-weight: 600;
    color: var(--gold);
    margin-right: 10px;
}

/* 商品卡片样式 */
.box {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    margin: 15px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(74, 144, 226, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.box:hover {
}

.box div {
    margin-bottom: 15px;
}

.box button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

.box select {
    width: 100%;
    margin: 10px 0;
}

/* 数据统计样式 */
.census_list {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    margin: 10px;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.census_title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.census_info {
    display: flex;
    padding: 12px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.census_info:hover {
}

.census_detail_name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.census_detail {
    width: 80px;
    text-align: center;
    color: var(--text-secondary);
}

/* 分页样式 */
.page {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    font-size: 16px;
}

.page a {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

.page a:hover {
}

/* 页脚样式 */
.footer {
    background: #f5f6fa;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 2px solid var(--primary-color);
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer a:hover {
}

/* 服务器状态 */
.server_list_state {
    display: inline-block;
    background: rgba(74, 144, 226, 0.1);
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

/* 服务器容器布局由 home-layout.css 控制 */
.servers-container {
    margin-bottom: 20px;
}

.server-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 35, 60, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    min-width: 0;
    width: auto;
    max-width: none;
}

.server-card:hover {
}

.server-header {
    background: linear-gradient(135deg, #4a90e2 0%, #3498db 100%);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-card .server-name {
    flex: 1;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
}

.server-card .server-status {
    font-size: 12px;
    font-weight: 600;
}

.server-details {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.detail-label {
    color: #7f8c8d;
    font-size: 13px;
    min-width: 40px;
}

.detail-value {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
    font-size: 13px;
}

.score-display {
    font-size: 15px;
    letter-spacing: 1px;
}

/* 表单样式 */
.form {
    width: 100%;
    max-width: 500px;
    margin: 50px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    background: #f5f6fa;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    color: var(--text-primary);
    outline: none;
}

.form input:focus {
    border-color: var(--secondary-color);
}

.form button {
    width: 100%;
    margin-top: 20px;
}

.warning {
    color: var(--danger);
    font-weight: 600;
}

.success {
    color: var(--success);
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 14px !important;
    }

    .headerbody {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .left {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        width: 100%;
    }

    .right {
        flex-direction: column;
        width: 100%;
    }

    .right form {
        flex-direction: column;
        width: 100%;
    }

    .user_menu {
        padding: 10px;
        gap: 8px;
    }

    .user_menu_btn {
        width: calc(50% - 4px);
        height: 45px;
        font-size: 13px;
        min-width: auto;
    }

    .rank_list {
        flex-wrap: wrap;
        padding: 5px 2px !important;
        margin-bottom: 5px !important;
    }

    .rank_no,
    .rank_detail_head,
    .rank_detail,
    .rank_detail_kda {
        flex: 1 1 auto;
        min-width: 35px !important;
        font-size: 10px !important;
        padding: 3px 1px !important;
    }

    .rank_no {
        font-size: 11px !important;
        width: 30px !important;
        padding: 3px 2px !important;
    }

    .rank_detail_head {
        width: 35px !important;
        padding: 2px !important;
    }

    .rank_detail_head img {
        width: 24px !important;
        height: 24px !important;
    }

    .rank_detail {
        font-size: 10px !important;
        flex: 0 0 55px !important;
        padding: 3px 1px !important;
    }

    .rank_detail_kda {
        font-size: 9px !important;
        width: 30px !important;
        padding: 3px 1px !important;
    }

    /* 表头移动端优化 - 更小的字体和更紧凑的布局 */
    .rank-header {
        padding: 5px 2px !important;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .rank-header .rank_no,
    .rank-header .rank_detail_head,
    .rank-header .rank_detail,
    .rank-header .rank_detail_kda {
        font-size: 8px !important;
        padding: 3px 1px !important;
        line-height: 1.2 !important;
        word-break: keep-all;
        white-space: nowrap;
    }

    .rank-header .rank_no {
        width: 32px !important;
        font-size: 9px !important;
    }

    .rank-header .rank_detail_head {
        width: 40px !important;
    }

    .rank-header .rank_detail {
        flex: 0 0 55px !important;
    }

    .rank-header .rank_detail_kda {
        width: 35px !important;
    }

    .middle {
        padding: 0 10px;
    }

    .rank {
        padding: 15px;
    }

    .rank-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .rank-controls button,
    .rank-controls select {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .servers-container {
        justify-content: center;
        gap: 10px;
    }

    .server-card {
        flex: 0 1 100%;
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .server-header {
        padding: 10px 12px;
    }

    .server-name {
        font-size: 13px !important;
    }

    .server-status {
        font-size: 12px !important;
    }

    .server-details {
        padding: 12px 14px;
        gap: 8px;
    }

    .server-detail-item {
        padding: 8px 10px;
    }

    .detail-label {
        font-size: 13px !important;
        min-width: 40px;
    }

    .detail-value {
        font-size: 13px !important;
    }

    .score-display {
        font-size: 15px !important;
    }

    .donors-container {
        flex-direction: column;
    }

    /* 手机捐赠：前十一行5个竖卡；其余一行5个但横排（排名|名字|金额） */
    .recharge {
        padding: 6px 6px 8px;
        margin: 8px 0;
        border-width: 1px;
        overflow: visible;
    }

    .donors-title {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .donors-list {
        gap: 6px;
        max-height: none;
        overflow: visible;
    }

    .top-donors-row,
    .rest-donors-table {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 4px;
        width: 100%;
        overflow: visible;
    }

    .rest-donors-table {
        gap: 3px;
    }

    .top-donor-item {
        min-width: 0 !important;
        max-width: none !important;
        width: 100%;
        padding: 5px 3px;
        border-width: 1px;
        border-radius: 6px;
        box-shadow: none;
        gap: 1px;
    }

    .rank-emoji {
        font-size: 12px;
        min-height: 14px;
        margin-bottom: 0;
    }

    .rest-donor-cell {
        width: auto;
        min-width: 0;
        padding: 4px 3px;
        border-radius: 6px;
        text-align: left;
    }

    .rest-donor-cell .donor-row {
        display: grid !important;
        grid-template-columns: 14px minmax(0, 1fr) auto !important;
        align-items: center;
        gap: 2px;
        width: 100%;
        min-width: 0;
    }

    .rest-rank {
        font-size: 9px;
        line-height: 1.1;
        text-align: center;
    }

    .top-donor-item .donor-name {
        width: 100%;
        max-width: 100%;
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
        display: block;
    }

    .top-donor-item .donor-amount {
        width: 100%;
        font-size: 10px;
        text-align: center;
        color: #e74c3c;
    }

    .rest-donor-cell .donor-name {
        width: auto;
        max-width: 100%;
        font-size: 9px;
        line-height: 1.15;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
        display: block;
    }

    .rest-donor-cell .donor-amount {
        width: auto;
        font-size: 9px;
        text-align: right;
        color: #e74c3c;
        white-space: nowrap;
    }

    .donors-scroll-hint {
        display: none !important;
    }

    .donor-card {
        min-width: auto;
        width: 100%;
    }

    .donor-item {
        padding: 10px 15px;
    }

    .donor-rank {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .donor-item:not(.top-donor) .donor-rank {
        font-size: 14px;
    }

    .census_list {
        min-width: auto;
        max-width: 100%;
    }

    .middle {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px !important;
    }

    .headerbody {
        padding: 10px;
    }

    .left > div:nth-child(1),
    .left > div:nth-child(2) {
        font-size: 14px;
    }

    .user_menu_btn {
        width: calc(100% - 4px);
        height: 40px;
        font-size: 12px;
    }

    .rank_no,
    .rank_detail_head,
    .rank_detail,
    .rank_detail_kda {
        font-size: 9px !important;
        padding: 2px 1px !important;
    }

    .rank_no {
        font-size: 10px !important;
        width: 25px !important;
        padding: 2px 1px !important;
    }

    .rank_detail_head {
        width: 30px !important;
        padding: 1px !important;
    }

    .rank_detail_head img {
        width: 20px !important;
        height: 20px !important;
    }

    .rank_detail {
        font-size: 9px !important;
        flex: 0 0 45px !important;
        padding: 2px 1px !important;
    }

    .rank_detail_kda {
        font-size: 8px !important;
        width: 25px !important;
        padding: 2px 1px !important;
    }

    /* 表头480px以下屏幕优化 - 更小的字体 */
    .rank-header {
        padding: 3px 1px !important;
    }

    .rank-header .rank_no,
    .rank-header .rank_detail_head,
    .rank-header .rank_detail,
    .rank-header .rank_detail_kda {
        font-size: 7px !important;
        padding: 2px 0px !important;
        line-height: 1.1 !important;
    }

    .rank-header .rank_no {
        width: 28px !important;
        font-size: 8px !important;
    }

    .rank-header .rank_detail_head {
        width: 35px !important;
    }

    .rank-header .rank_detail {
        flex: 0 0 45px !important;
    }

    .rank-header .rank_detail_kda {
        width: 30px !important;
    }

    .box {
        padding: 15px;
        min-width: auto;
        min-height: 200px;
    }

    .rank-header .rank_no,
    .rank-header .rank_detail_head,
    .rank-header .rank_detail,
    .rank-header .rank_detail_kda {
        font-size: 11px;
        padding: 8px 3px;
    }

    .servers-container {
        gap: 18px;
        justify-content: center;
    }

    .server-card {
        flex: 0 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .server-header {
        padding: 10px 12px;
    }

    .server-name {
        font-size: 13px !important;
    }

    .server-status {
        font-size: 11px !important;
    }

    .server-details {
        padding: 10px 12px;
        gap: 6px;
    }

    .server-detail-item {
        padding: 6px 8px;
        border-radius: 6px;
    }

    .detail-label {
        font-size: 12px !important;
        min-width: 35px;
    }

    .detail-value {
        font-size: 12px !important;
    }

    .score-display {
        font-size: 13px !important;
        font-weight: bold;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rank,
.box,
.census_list {
    animation: fadeIn 0.5s ease-out;
}

/* 高亮效果 */
.highlight {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2) 0%, rgba(243, 156, 18, 0.2) 100%);
    border: 2px solid var(--gold) !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(241, 196, 15, 0.4); }
    50% { box-shadow: 0 0 15px rgba(241, 196, 15, 0.6); }
}

/* 手机竖屏样式 */
@media (max-width: 480px) {
    .top-donors-row,
    .rest-donors-table {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 2px;
    }

    .top-donor-item {
        padding: 3px 1px;
    }

    .rest-donor-cell {
        padding: 3px 2px;
    }

    .rest-donor-cell .donor-row {
        grid-template-columns: 12px minmax(0, 1fr) auto !important;
        gap: 1px;
    }

    .rank-emoji {
        font-size: 11px;
        min-height: 13px;
    }

    .top-donor-item .donor-name,
    .top-donor-item .donor-amount {
        font-size: 9px;
    }

    .rest-rank {
        font-size: 8px;
    }

    .rest-donor-cell .donor-name,
    .rest-donor-cell .donor-amount {
        font-size: 8px;
    }
}

/* 排行榜时长列：仅显示累计时间，字号与其他数据列一致 */
.rank_detail_kda.rank_playtime {
    width: 88px;
    min-width: 88px;
    max-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.rank_playtime .mr-hours {
    display: block;
    width: 100%;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    white-space: nowrap;
    letter-spacing: 0;
    text-align: center;
    overflow: visible;
}

/* 军衔高低色阶：长方形徽章，菜鸟灰 → 低阶青绿 → 中阶蓝 → 高阶琥珀 → 顶阶金红 */
.rank-mobile-mr .mr-badge,
.rank-mobile-stats .mr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 6em;
    height: 26px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* 桌面：名字后头衔更大 */
@media (min-width: 1281px) {
    .rank_detail_kda.rank_playtime {
        width: 96px;
        min-width: 96px;
        max-width: 120px;
    }
    .rank-mobile-mr .mr-badge {
        font-size: 15px;
        width: 6.5em;
        height: 28px;
        padding: 0 10px;
        border-radius: 4px;
    }
}
.mr-tone-rookie .mr-badge {
    color: #64748b;
    background: #eef2f6;
    border: 1px solid #d5dde6;
}
.mr-tone-low .mr-badge {
    color: #0f766e;
    background: #e6f7f4;
    border: 1px solid #9ed9cf;
}
.mr-tone-mid .mr-badge {
    color: #1d4ed8;
    background: #e8f0ff;
    border: 1px solid #93b4f5;
}
.mr-tone-high .mr-badge {
    color: #b45309;
    background: #fff4e5;
    border: 1px solid #f0c48a;
}
.mr-tone-elite .mr-badge {
    color: #9a3412;
    background: linear-gradient(135deg, #ffe8a3 0%, #ffd08a 45%, #ffb36b 100%);
    border: 1px solid #e8a23a;
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.18), 0 2px 8px rgba(180, 83, 9, 0.18);
}

/* ===== 每日荣誉墙（对齐一体机） ===== */
.honor-side-card {
    margin: 18px 0 8px;
    background: #fff;
    border: 1px solid rgba(74, 144, 226, 0.18);
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.honor-side-card .community-head {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(243, 156, 18, 0.1) 100%);
    border-bottom: 1px solid rgba(74, 144, 226, 0.16);
}

.honor-side-card .community-head h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    line-height: 1.2;
}

.honor-side-card .community-head span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.honor-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(116px, auto);
    align-content: stretch;
    gap: 10px;
    padding: 14px;
}

.honor-item {
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 10px;
    background: #f8fbff;
    min-width: 0;
    display: grid;
    align-content: space-between;
    gap: 6px;
}

.honor-item.honor-warning {
    border-color: rgba(220, 38, 38, 0.38);
    background: linear-gradient(135deg, #fff1f0 0%, #fff7ed 100%);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.13);
}

.honor-top {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-width: 0;
}

.honor-avatar-shell {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8eef5;
    flex: none;
}

.honor-avatar-shell .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #4a90e2;
    background: #eef5ff;
}

.honor-text {
    min-width: 0;
    display: grid;
    gap: 4px;
    justify-items: start;
}

.honor-kind {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eaf3ff 0%, #fff8e8 100%);
    border: 1px solid rgba(74, 144, 226, 0.22);
    color: #1d4f91;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.05;
    white-space: nowrap;
}

.honor-name {
    color: #2c3e50;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.honor-value {
    color: #d68910;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.honor-sub {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.honor-item.honor-warning .honor-kind {
    color: #b91c1c;
    background: linear-gradient(135deg, #fee2e2 0%, #fff7ed 100%);
    border-color: rgba(220, 38, 38, 0.32);
}

.honor-item.honor-warning .honor-name { color: #7f1d1d; }
.honor-item.honor-warning .honor-value { color: #dc2626; }
.honor-item.honor-warning .honor-sub { color: #9a3412; font-weight: 700; }

.honor-mobile-more {
    display: none;
    width: calc(100% - 16px);
    margin: 0 8px 8px;
    padding: 8px 10px;
    border: 1px dashed rgba(74, 144, 226, 0.35);
    background: #f8fbff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #4a90e2;
    cursor: pointer;
}

.honor-item-hidden { display: none !important; }

@media (max-width: 1100px) {
    .honor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .honor-side-card .community-head {
        padding: 8px 10px;
        gap: 4px;
        align-items: center;
        flex-wrap: wrap;
    }
    .honor-side-card .community-head h2 { font-size: 15px; }
    .honor-side-card .community-head span { font-size: 9px; line-height: 1.2; }
    .honor-grid {
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding: 6px 8px 8px;
    }
    .honor-item {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 0;
        padding: 5px 8px;
        border-radius: 8px;
        gap: 0;
    }
    .honor-item:not(:has(.honor-top)) { display: block; padding: 8px 10px; }
    .honor-top { display: contents; }
    .honor-avatar-shell { grid-column: 1; grid-row: 1; width: 30px; height: 30px; align-self: center; }
    .honor-text {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }
    .honor-kind {
        padding: 2px 6px;
        font-size: 10px;
        flex-shrink: 0;
        max-width: 46%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .honor-name { font-size: 11px; flex: 1; min-width: 0; }
    .honor-value {
        grid-column: 3;
        grid-row: 1;
        font-size: 13px;
        white-space: nowrap;
        align-self: center;
    }
    .honor-sub { display: none; }
    .honor-mobile-more { display: block; }
}
