:root {
            --primary-color: #ff4500;
            --secondary-color: #8b0000;
            --accent-color: #ff8c00;
            --bg-dark: #0a0a0f;
            --bg-card: rgba(20, 20, 30, 0.9);
            --text-light: #e0e0e0;
            --text-muted: #b0b0b0;
            --border-color: rgba(255, 69, 0, 0.2);
            --rank-1: linear-gradient(135deg, #ffd700 0%, #b39700 100%);
            --rank-2: linear-gradient(135deg, #c0c0c0 0%, #8a8a8a 100%);
            --rank-3: linear-gradient(135deg, #cd7f32 0%, #a36628 100%);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background-color: var(--bg-dark);
            color: var(--text-light);
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
            line-height: 1.6;
            /* 添加背景图片 */
            background-image: url('/static/images/bg1.png');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            background-repeat: no-repeat;
            /* 保留原有的渐变背景作为备用/叠加 */
            background-image: 
                url('/static/images/bg1.png'),
                radial-gradient(circle at 10% 20%, rgba(139, 0, 0, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(255, 69, 0, 0.1) 0%, transparent 20%),
                linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 90%, #0a0a0f 100%);
            /* 添加深色覆盖层，确保文字可读性 */
            position: relative;
            min-height: 100vh;
        }
        
        /* 添加半透明覆盖层，提高文字可读性 */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 10, 15, 0.7);
            z-index: -1;
        }
        
        /* 导航栏样式 */
        .navbar {
            background: rgba(10, 10, 15, 0.95);
            border-bottom: 1px solid var(--border-color);
            padding: 0 20px;
            position: sticky;
            top: 0;
            z-index: 1000;
            backdrop-filter: blur(10px);
        }
        
        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 70px;
        }
        
        .nav-logo {
            font-size: 1.8rem;
            font-weight: 700;
            background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
        }
        
        .nav-menu {
            display: flex;
            list-style: none;
        }
        
        .nav-item {
            position: relative;
            margin: 0 5px;
        }
        
        .nav-link {
            color: var(--text-muted);
            text-decoration: none;
            padding: 10px 15px;
            display: block;
            border-radius: 5px;
            transition: all 0.3s ease;
            font-weight: 500;
        }
        
        .nav-link:hover {
            color: var(--accent-color);
            background: rgba(255, 69, 0, 0.1);
        }
        
        .nav-link.active {
            color: var(--primary-color);
            background: rgba(255, 69, 0, 0.15);
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }
        
        .nav-link:hover::after,
        .nav-link.active::after {
            width: 80%;
        }
        
        .nav-actions {
            display: flex;
            gap: 10px;
        }
        
        .btn {
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }
        
        .btn-login {
            background: transparent;
            color: var(--accent-color);
            border: 1px solid rgba(255, 69, 0, 0.5);
        }
        
        .btn-login:hover {
            background: rgba(255, 69, 0, 0.1);
            border-color: rgba(255, 69, 0, 0.8);
        }
        
        .btn-register {
            background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
            color: white;
        }
        
        .btn-register:hover {
            background: linear-gradient(45deg, #9b0000, #ff5500);
            box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
        }
        
        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .header {
            text-align: center;
            padding: 40px 0;
            position: relative;
        }
        
        .header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 200px;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--secondary-color), var(--primary-color), transparent);
            border-radius: 2px;
        }
        
        .page-title {
            font-size: 3.5rem;
            font-weight: 700;
            background: linear-gradient(45deg, var(--secondary-color), var(--primary-color), var(--accent-color));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
            margin-bottom: 10px;
            letter-spacing: 2px;
        }
        
        .subtitle {
            font-size: 1.3rem;
            color: var(--text-muted);
            margin-bottom: 30px;
            letter-spacing: 1px;
        }
        
        /* 战力排行样式 */
        .ranking-section {
            margin-top: 40px;
        }
        
        .section-header {
            display: flex;
            align-items: center;
            margin-bottom: 25px;
        }
        
        .section-title {
            font-size: 2rem;
            color: var(--primary-color);
            position: relative;
            padding-left: 15px;
        }
        
        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 5px;
            height: 30px;
            background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
            border-radius: 3px;
        }
        
        /* 前三名排行榜样式 */
        .top-three-section {
            margin-bottom: 40px;
        }
        
        .top-three-title {
            text-align: center;
            font-size: 1.8rem;
            color: var(--accent-color);
            margin-bottom: 20px;
            text-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
        }
        
        .top-three-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        .top-player-card {
            background: var(--bg-card);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            width: 300px;
            text-align: center;
            position: relative;
        }
        
        .top-player-card.rank-1 {
            transform: scale(1.05);

            box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        }
        
        .top-player-card.rank-2 {

            box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
        }
        
        .top-player-card.rank-3 {
 
            box-shadow: 0 0 15px rgba(205, 127, 50, 0.4);
        }
        
        .top-player-card:hover {
            transform: translateY(-5px);
        }
        
        .top-player-card.rank-1:hover {
            transform: scale(1.05) translateY(-5px);
        }
        
        .rank-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: bold;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }
        
        .rank-1 .rank-badge {
            background: var(--rank-1);
            color: #000;
        }
        
        .rank-2 .rank-badge {
            background: var(--rank-2);
            color: #000;
        }
        
        .rank-3 .rank-badge {
            background: var(--rank-3);
            color: #000;
        }
        
        /* 修改独立排行1-3的职业图片背景 */
        .player-avatar {
            padding: 20px;
            /* 移除深灰色背景，使用透明背景 */
            background: transparent;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        /* 增大职业图片尺寸 */
        .class-icon-large {
            width: 500px; /* 从80px增加到100px */
            height: 200px; /* 从80px增加到100px */
            object-fit: contain;
        }
        
        .player-info {
            padding: 15px;
        }
        
        /* 为独立排行1-3设置角色名称颜色 */
        .top-player-card .player-name {
            font-weight: 700;
            font-size: 1.3rem;
            color: #ffffff; /* 使用纯白色更醒目 */
            margin-bottom: 8px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
            transition: color 0.3s ease;
        }
        
        .top-player-card:hover .player-name {
            color: #ffcc00; /* 悬停时变为金色 */
        }
        
        .player-details {
            display: flex;
            flex-direction: column;
            gap: 8px;
            font-size: 0.9em;
        }
        
        .player-level {
            color: #60d060;
            font-weight: 600;
        }
        
        .player-power {
            color: #ffcc00;
            font-weight: bold;
            font-size: 1.1em;
        }
        
        /* 为独立排行1-3设置阵营颜色 */
        .top-player-card .player-nation.nation-0 {
            color: #ccc; /* 中立 - 灰色 */
        }
        
        .top-player-card .player-nation.nation-1 {
            color: #C700CC; /* 卡佩拉 - 紫色 */
        }
        
        .top-player-card .player-nation.nation-2 {
            color: #1e90ff; /* 普罗基恩 - 蓝色 */
        }
        
        .player-location {
            display: flex;
            justify-content: space-between;
            font-size: 0.85em;
            /* 移除color，因为我们要单独设置子元素颜色 */
        }
        
        .player-location .world-map-online {
            color: #60d060;
            border-radius: 15px;
            background:rgba(96,208,96,0.1);
            border:1px solid rgba(96,208,96,0.5);
        }
         .player-location .world-map-offline {
            color: #ff0000;
            border-radius: 15px;
            background:rgba(202,71,71,0.1);
            border:1px solid rgba(96,208,96,0.5);
        }
        
        /* 为独立排行1-3设置频道颜色 */
        .player-location .channel {
            color: #FFF; /* 使用在线状态颜色 */
            font-weight: 500;
        }
        
        /* 普通排行榜样式 */
        .ranking-card {
            background: var(--bg-card);
            border-radius: 10px;
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            margin-bottom: 30px;
        }
        
        .table-container {
            overflow-x: auto;
        }
        
        .ranking-table {
            width: 100%;
            border-collapse: collapse;
            background: rgba(10, 10, 15, 0.9);
        }
        
        .ranking-table th {
            background: linear-gradient(135deg, #1a1a1a 0%, #151515 100%);
            padding: 16px 15px;
            text-align: left;
            font-weight: 600;
            color: #e0c080;
            border-bottom: 2px solid #333;
            font-size: 0.9em;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .text-center {
            text-align: center;
        }
        
        .ranking-table td {
            padding: 14px 15px;
            border-bottom: 1px solid #222;
            background: #0f0f0f;
            transition: all 0.3s ease;
        }
        
.ranking-row:hover td {
    /* 移除原背景色 */
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    /* 添加背景图及设置 */
    background-image: url('/static/images/hover-big.png');
    background-repeat: no-repeat; /* 不重复显示 */
    background-size: 700px 90px; /* 固定图片尺寸 */
    background-position: center; /* 图片居中 */
    background-color: transparent; /* 确保背景透明 */
}
        
        /* 排名样式 */
        .rank {
            text-align: center;
            font-weight: bold;
        }
        
        .rank-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 32px;
            height: 32px;
            background: #1a1a1a;
            border-radius: 50%;
            border: 1px solid #333;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        
        .ranking-row:hover .rank-icon {
            transform: scale(1.1);
        }
        
        /* 职业列样式 - 图片稍微大一点 */
        .class-column {
            text-align: center;
        }
        
        /* 进一步增大普通职业列图片尺寸 */
        .class-icon {
            width: 30px; /* 从50px增加到60px */
            height: 30px; /* 从50px增加到60px */
            object-fit: contain;
            margin: 0 auto;
        }
        /* 独立排行3阵营列图片尺寸 */
        .class-nationtop {
            width: 40px; /* 从50px增加到60px */
            height: 40px; /* 从50px增加到60px */
            object-fit: contain;
            margin: 0 auto;
        }

        /* 阵营列图片尺寸 */
        .class-nation {
            width: 30px; /* 从50px增加到60px */
            height: 30px; /* 从50px增加到60px */
            object-fit: contain;
            margin: 0 auto;
        }
        
        /* 等级样式 */
        .level-column {
            text-align: center;
            width: 100px; /* 与阵营列相同宽度 */
        }
        
        .level {
            color: #444;
            font-weight: 600;
            font-size: 1.1em;

        }
        
        /* 阵营颜色样式 */
        .nation {
            font-style: italic;
            padding: 2px 8px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.1);
            text-align: center;
            width: 100px; /* 保持与等级列相同宽度 */
        }
        
        .nation-0 {
            color: #ccc; /* 中立 - 灰色 */
        }
        
        .nation-1 {
            color: #C700CC; /* 卡佩拉 - 改为 #C700CC */
        }
        
        .nation-2 {
            color: #1e90ff; /* 普罗基恩 - 蓝色 */
        }
        
        /* 战力值样式 */
        .combat-power {
            text-align: right;
        }
        
        .power-value {
            color: #ffcc00;
            font-weight: bold;
            font-size: 1.15em;
            text-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
            background: linear-gradient(135deg, #ffcc00 0%, #ffaa00 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* 状态样式 */
        .status {
            text-align: center;
        }
        
        .status-online {
            color: #60d060;
            font-weight: 600;
            padding: 4px 12px;
            border-radius: 12px;
            background: rgba(96, 208, 96, 0.1);
            border: 1px solid rgba(96, 208, 96, 0.3);
        }
        .status-offline {
            color: #ff0000;
            font-weight: 600;
            padding: 4px 12px;
            border-radius: 12px;
            background: rgba(202, 71, 71, 0.1);
            border: 1px solid rgba(96, 208, 96, 0.3);
        }
        
        /* 世界地图和频道样式 */
        .world-map, .channel {
            text-align: center;
            font-size: 0.9em;
        }
        
        .world-map {
            color: #FFF;
        }
        
        .channel {
            color: #FFF; /* 使用状态颜色 */
            font-weight: 500;
        }
        
        /* 底部区域 */
        .ranking-footer {
            padding: 15px 20px;
            background: rgba(30, 30, 40, 0.6);
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .ranking-footer p {
            color: #888;
            font-size: 0.9rem;
            margin: 0;
        }
        
        .legend {
            display: flex;
            gap: 15px;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #c0c0c0;
            font-size: 0.85rem;
        }
        
        .legend-color {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            display: inline-block;
        }
        
        .legend-color.online {
            background: #60d060;
        }
        
        .footer {
            margin-top: 60px;
            text-align: center;
            padding: 30px 0;
            color: #666;
            border-top: 1px solid var(--border-color);
        }
        
        /* 响应式设计 */
        @media (max-width: 1024px) {
            .top-three-container {
                flex-direction: column;
                align-items: center;
            }
            
            .top-player-card {
                width: 100%;
                max-width: 400px;
            }
            
            .top-player-card.rank-1 {
                transform: none;
            }
            
            .top-player-card.rank-1:hover {
                transform: translateY(-5px);
            }
        }
        
        @media (max-width: 768px) {
            .page-title {
                font-size: 2.5rem;
            }
            
            .ranking-table {
                font-size: 0.9em;
            }
            
            .ranking-table th,
            .ranking-table td {
                padding: 10px 8px;
            }
            
            .char-details {
                flex-direction: column;
                gap: 4px;
            }
            
            .ranking-footer {
                flex-direction: column;
                text-align: center;
            }
            
            .mobile-toggle {
                display: block;
            }
            
            .nav-menu {
                position: fixed;
                top: 70px;
                right: -100%;
                flex-direction: column;
                background: rgba(10, 10, 15, 0.95);
                width: 70%;
                height: calc(100vh - 70px);
                transition: 0.3s;
                padding: 20px;
                border-left: 1px solid var(--border-color);
            }
            
            .nav-menu.active {
                right: 0;
            }
            
            .nav-item {
                margin: 10px 0;
            }
            
            .nav-actions {
                flex-direction: column;
                margin-top: 20px;
            }
        }
        
        @media (max-width: 480px) {
            .page-title {
                font-size: 2rem;
            }
            
            .ranking-table {
                font-size: 0.8em;
            }
            
            .ranking-table th,
            .ranking-table td {
                padding: 8px 6px;
            }
        }
        /* 按钮组容器 */
#serverSelect {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* 按钮样式 */
.btn-zone {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    background: rgba(255, 69, 0, 0.1);
    color: var(--text-light);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-zone:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 选中按钮样式 */
.btn-zone.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 额外的样式，添加不同颜色的选区按钮 */
.btn-zone-1 {
    background: linear-gradient(45deg, #8b0000, #ff4500);
    color: white;
}

.btn-zone-1.active {
    background: linear-gradient(45deg, #ff4500, #8b0000);
}

.btn-zone-2 {
    background: linear-gradient(45deg, #1e90ff, #4169e1);
    color: white;
}

.btn-zone-2.active {
    background: linear-gradient(45deg, #4169e1, #1e90ff);
}