/* 全局样式：统一字体、背景，兼容IE */
body {
    background: #121212;
    color: #ffffff;
    margin: 0;
    padding: 0;
    font-weight: bold;
    /* 统一字体，游戏和网页都显示正常 */
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    font-size: 14px;
}

/* 区服下拉框 */
.server-select-wrap {
    text-align: center;
    padding: 18px 0;
}
.server-select {
    width: 180px;
    height: 36px;
    font-size: 16px;
    background: #222;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

/* 榜单导航按钮 */
.tab-nav {
    text-align: center;
    margin-bottom: 15px;
}
.tab-nav a {
    display: inline-block;
    padding: 9px 18px;
    margin: 0 5px;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    border: 1px solid #444;
    font-weight: bold;
}
.tab-nav a.active {
    background: #c88820;
    color: #fff;
    border-color: #ffaa00;
}

/* 排行榜表格：固定宽度，适配游戏窗口 */
.rank_table {
    border-collapse: collapse;
    /* 改成和游戏内嵌窗口一致的宽度，避免错位 */
    width: 700px;
    margin: 0 auto;
}
.rank_head th {
    background: #202020;
    color: #ffaa00;
    font-size: 17px;
    padding: 12px 0;
    border-bottom: 1px solid #444;
    text-align: center;
}
.rank_tr td {
    padding: 12px 0;
    background: #121212;
    font-size: 16px;
    text-align: center;
    border-bottom: 1px solid #333;
}

/* 数值列：固定蓝色 */
.td_val {
    color: #3399ff !important;
}

/* 角色名悬浮：IE不支持text-shadow，降级为纯黄色 */
.td_name:hover {
    color: #ffdd00 !important;
    /* 高级浏览器显示发光，IE只显示颜色 */
    text-shadow: 0 0 4px #ffdd00, 0 0 8px #ffaa00;
}

/* 悬浮发光线：游戏和网页兼容版 */
.rank_tr {
    position: relative;
}
.rank_tr::after {
    content: "";
    position: absolute;
    /* 只在种族-角色名-等级下方显示 */
    left: 15%;
    right: 20%;
    bottom: 0;
    height: 2px;
    /* 主色为黄色，IE不支持渐变时也能正常显示 */
    background: #ffdd00;
    /* 高级浏览器显示渐变+发光，IE只显示纯色线 */
    background: linear-gradient(90deg, transparent, #ffdd00, #fff100, #ffdd00, transparent);
    box-shadow: 0 0 10px #ffdd00, 0 0 20px #ffaa00;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.rank_tr:hover::after {
    opacity: 1;
}

/* IE内核专用兼容降级 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .rank_tr::after {
        background: #ffdd00;
        box-shadow: none;
    }
    .td_name:hover {
        text-shadow: none;
    }
}