/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'MiSans', 'Arial', sans-serif; */
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: 16px;
    /* 设置滚动条宽度 */
    scrollbar-color: #121d3d #9da8d7;
    /* 设置滑块颜色和轨道颜色 */
}

a {
    text-decoration: none;
}

.rating-content.inactive {
    display: none;
}

.rating-content.active {
    display: grid;
}

@import url("https://font.emtech.cc/css/Cubic11");

/* 针对整个文档 */
::-webkit-scrollbar {
    width: 6px;
    /* 滚动条宽度 */
    height: 10px;
    /* 滚动条高度 */
    overflow: scroll;
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
    background: #9da8d7;
    /* 轨道颜色 */
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    background: #121d3d;
    /* 滑块颜色 */
    border-radius: 10px;
    /* 滑块圆角 */
}

/* 滑块悬停状态 */
::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* 滑块悬停颜色 */
}

:root {
    --color-primary: #7aa2f7;
    --color-secondary: #b464ff;
    --color-accent: #ff9e64;
    --color-success: #4caf50;
    --bg-dark: #0f0f1f;
    --bg-light: #1a1a3a;
    --bg-lighter: #252550;
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0ff;
    --text-tertiary: #8080c0;
}

/* @font-face {
    font-family: 'MiSans';
    src: url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');
}

@font-face {
    font-family: 'Fusion Pixel 12px Monospaced JP';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(files/fusion-pixel-12px-monospaced-jp-latin-400-normal.woff2) format('woff2'), url(files/fusion-pixel-12px-monospaced-jp-latin-400-normal.woff) format('woff')
} */

@font-face {
    font-family: 'Cubic11';
    src: url('https://static.appoint.icu/Railvote/Cubic_11.woff2') format('woff2'),
        url('https://static.appoint.icu/Railvote/Cubic_11.woff') format('woff'),
        url('https://static.appoint.icu/Railvote/Cubic11.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* 先用后备字体，加载完成后切换 */
    unicode-range: U+0000-00FF, U+2E80-9FFF;
    /* 可选：限制字符范围，提升渲染优先级 */
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    /* padding-bottom: 80px; */
    line-height: 1.6;
    /* 像素字体栈 */
    font-family: 'Cubic11', 'Courier New', monospace;

    /* 提升像素渲染效果 */
    image-rendering: pixelated;
    image-rendering: crisp-edges;

    /* 字体平滑关闭（让边缘更锐利） */
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    margin-bottom: 100px;
}

/* ===== 从夯到拉 ===== */
.tierlist-page {
    padding: 20px 15px;
}

.tierlist-pool-title {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 20px 0 40px;
    text-align: center;
}

/* 当过滤 char 类型时，隐藏 god 类型卡片 */
/* .tierlist-pool.filter-char .tier-card[data-type="god"] {
    display: none;
} */

/* 当过滤 god 类型时，隐藏 char 类型卡片 */
/* .tierlist-pool.filter-god .tier-card[data-type="char"] {
    display: none;
} */

/* 卡片池 - 网格布局 */
.tierlist-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: 15px;
    background: rgba(26, 28, 104, 0.4);
    border-radius: 12px;
    border: 2px solid #5c6ccb;
    box-shadow: inset 0 0 0 2px #2a3070;
    margin-bottom: 30px;
    min-height: 150px;
}

.tier-card {
    width: 80px;
    background: #1a1a4a;
    border: 2px solid #7aa2f7;
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    cursor: grab;
    transition: all 0.1s steps(2);
    box-shadow: 0 4px 0 0 #0f0f2a;
    image-rendering: pixelated;
    transition: all 0.3s ease;
}

.godlike-card {
    width: 80px;
    background: #1a1a6f;
    border: 2px solid #3a61b6;
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    cursor: grab;
    transition: all 0.1s steps(2);
    box-shadow: 0 4px 0 0 #0f0f2a;
    image-rendering: pixelated;
    transition: all 0.3s ease;
}

.tier-card-hidden {
    opacity: 0 !important;
    transform: scale(0.7) !important;
    pointer-events: none;
    /* 禁止拖拽隐藏的卡片 */
    visibility: visible;
    /* 仍然占位，保持布局稳定 */
}

.tier-card:active {
    cursor: grabbing;
    opacity: 0.8;
}

.tier-card.selected {
    border-color: #ffdd00;
    box-shadow: 0 0 8px #ffdd00;
}

.tier-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    image-rendering: pixelated;
}

.tier-card span {
    display: block;
    font-size: 12px;
    color: #e0e0ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 梯队表格 */
.tier-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}

.tier-row {
    display: flex;
    align-items: stretch;
    border: 2px solid #0b0e21;
    background: rgba(15, 20, 50, 0.7);
    border-radius: 8px;
    overflow: hidden;
}

.tier-label {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cubic11', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    background: #2a3070;
    color: #ffd966;
    text-shadow: 2px 1px 2px #1a1a4a;
    border-right: 2px solid #5c6ccb;
    letter-spacing: 2px;
}

.tier-slot-container {
    flex: 1;
    min-height: 100px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
}

/* 放入梯队中的卡片（尺寸稍小） */
.tier-slot-container .tier-card {
    width: 70px;
    padding: 4px;
}

.tier-slot-container .tier-card img {
    height: 70px;
}

/* 操作按钮 */
.tierlist-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pixel-btn {
    background: #4a6cbf;
    color: white;
    border: none;
    padding: 12px 24px;
    font-family: 'Cubic11', monospace;
    font-size: 1rem;
    box-shadow: 0 4px 0 0 #1a2a5a, 0 0 0 2px #8aacff;
    transform: translateY(0);
    transition: all 0.05s steps(2);
    cursor: pointer;
    image-rendering: pixelated;
}

.pixel-btn:active {
    box-shadow: 0 1px 0 0 #1a2a5a, 0 0 0 2px #8aacff;
    transform: translateY(3px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .tier-label {
        width: 70px;
        font-size: 1rem;
    }

    .tier-card {
        width: 70px;
    }

    .tier-slot-container .tier-card {
        width: 60px;
    }

    .tier-slot-container .tier-card img {
        height: 60px;
    }

    .vote-btn {
        flex-direction: column !important;
        padding: 10px 0 0 !important;
        line-height: 30px;
    }
}


/* ===== 卡片消失/出现动画 ===== */
.tier-card-enter-active,
.tier-card-leave-active {
    position: absolute;
    transition: all .6s ease;
}

.godlike-card .selected {
    border-color: #ffdd00 !important;
    box-shadow: 0 0 8px #ffdd00 !important;
}

/* 进入前和离开后的状态 */
.tier-card-enter-from,
.tier-card-leave-to {
    opacity: 0;
    transform: scale(0.8);
}

/* 确保移动动画也平滑（当卡片位置变化时） */
.tier-card-move {
    transition: transform .6s ease;
}

/* 卡片池需要设置为相对定位，以保证内部定位上下文 */
.tierlist-pool {
    position: relative;
}

/* 雷电装饰层 */
.raiden-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    /* 高于星空背景，低于主要内容 */
    opacity: 0.4;
    /* 半透明，不抢眼 */
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* 基础样式 */
.hero-banner {
    width: 100%;
    /* height: 70vh; */
    max-height: 850px;
    /* background: #1a1a3a; */
    /* background-image: url('https://static.appoint.icu/Railvote/homebg.png');
    transform: scaleY(-1); */
    background-attachment: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 1px solid rgba(122, 162, 247, 0.1);
    transition: height 0.3s ease;
}

.section-title-overlay {
    position: absolute;
    /* 相对定位，确保层级 */
    z-index: 8;
    /* 高于 hero-banner 和 vote-section */
    width: 100%;
    text-align: center;
    margin-top: -220px;
    /* 向上偏移，覆盖衔接处 */
    pointer-events: none;
    /* 避免遮挡交互 */
}

.section-title-overlay .title-image {
    max-width: 74%;
    height: auto;
    max-width: 74%;
    /* 控制标题图片宽度 */
    height: auto;
    /* 保持比例 */
    /* filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3)); */
    opacity: .94;
    /* 可选：轻微阴影增强立体感 */
    transition: all 0.3s ease;
}

.vote-section {
    /* margin-top: 260px; */
    padding: 80px 0;
    position: relative;
    transition: all 0.3s ease;
    /* 背景设置 */
    /* background: url('https://static.appoint.icu/Railvote/homebg.png') center/cover no-repeat fixed; */
    background-color: rgba(37, 50, 134, .92);
    position: relative;
    min-height: 100vh;
    /* 确保高度足够 */
    padding-top: 180px;
}

.vote-section2 {
    position: relative;
    transition: all 0.3sease;
    background: url(https://static.appoint.icu/Railvote/homebg3.png) top / contain no-repeat;
    position: absolute;
    min-height: 100vh;
    margin-top: -220px;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/* 4K设备 */
@media (min-width: 1922px) {
    .hero-banner {
        /* height: 74vh; */
        max-height: 980px;
        margin-top: 80px;
    }

    .section-title-overlay {
        margin-top: -226px;
    }

    .section-title-overlay .title-image {
        max-width: 37%;
        transform: translateY(-50px) !important;
    }

    .vote-section {
        /* margin-top: 320px; */
        padding-top: 440px;
    }

    @keyframes danmakuMove {
        from {
            transform: translateX(20vw);
        }

        to {
            transform: translateX(-150%);
        }
    }
}

/* 1080p设备 */
@media (min-width: 1399px) and (max-width: 1922px) {
    .hero-banner {
        height: 74vh;
        max-height: 700px;
        margin-top: 80px;
    }

    .section-title-overlay {
        margin-top: -150px;
    }

    .section-title-overlay .title-image {
        max-width: 36%;
        transform: translateY(-12px) !important;
    }

    .vote-section {
        /* margin-top: 280px; */
        padding-top: 320px;
    }

    @keyframes danmakuMove {
        from {
            transform: translateX(20vw);
        }

        to {
            transform: translateX(-150%);
        }
    }
}

/* 平板设备 */
@media (min-width: 768px) and (max-width: 1399px) {
    .hero-banner {
        height: 80vh;
        max-height: 700px;
    }

    .section-title-overlay {
        margin-top: -100px;
    }

    .section-title-overlay .title-image {
        max-width: 37%;
        transform: translateY(-40px) !important;
    }

    .infomation-box {
        margin: 80px auto !important;
        margin-bottom: 50px !important;
    }

    .vote-section {
        /* margin-top: 220px; */
        padding-top: 180px;
    }

    @keyframes danmakuMove {
        from {
            transform: translateX(20vw);
        }

        to {
            transform: translateX(-150%);
        }
    }
}

/* 手机设备 */
@media (max-width: 767px) {
    .hero-banner {
        height: 40vh;
        max-height: 240px;
    }

    .bg-home {
        margin-top: 240px !important;
    }

    .section-title-overlay {
        margin-top: -40px;
    }

    .section-title-overlay .title-image {
        max-width: 92%;
        transform: translateY(-60px);
    }

    .vote-section {
        /* margin-top: 150px; */
        padding-top: 100px;
    }

    .character-image {
        height: 166px !important;
        font-size: .8rem !important;
    }

    .section-title {
        margin-top: 54px !important;
    }
}

/* 背景容器基础样式 */
.page-backgrounds>div {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
}

/* 背景容器层级 */
.page-backgrounds>div {
    z-index: -2;
    /* 默认在内容层之下 */
}

.page-backgrounds>.active {
    z-index: -1;
    /* 当前活跃背景 */
}

/* 个人中心视频背景特殊样式 */
.bg-profile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

.bg-profile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-fallback {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    /* background: url('https://static.appoint.icu/Railvote/homebg.png') center/cover; */
    background-color: #1e1661;
}

/* 视频加载失败时显示备用图 */
.profile-video[data-error]+.video-fallback {
    display: block;
}

/* 个人中心视频背景样式 */
.profile-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.profile-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(2.5); */
    opacity: 0.4;
}

/* 个人中心内容容器调整 */
.profile-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: 20px;
    /* background: rgba(15, 10, 30, 0.7); */
}

/* 角色装饰（与登录弹窗风格统一但更大） */
.profile-character-decoration {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 120px;
    height: auto;
    opacity: 0.9;
    transition: all 0.5s;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.profile-character-decoration:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .profile-character-decoration {
        width: 80px;
        right: 15px;
        bottom: 15px;
    }

    .profile-page {
        padding: 100px 40px;
        text-align: center;
    }
}

.profile-page {
    padding-top: 10px;
    /* background: rgba(15, 10, 30, 0.85); */
}

/* 定义进入动画：从 brightness(0) → brightness(0.3) */
@keyframes brightnessFadeIn {
    from {
        filter: brightness(1);
        opacity: 1;
    }

    to {
        filter: brightness(0.3);
        opacity: 1;
    }
}

/* 定义离开动画：从 brightness(0.3) → brightness(1) */
@keyframes brightnessFadeOut {
    from {
        filter: brightness(0.4);
        opacity: 1;
    }

    to {
        filter: brightness(1);
        opacity: 1;
    }
}

/* 各页面激活时的背景显示 */
#home.active~.page-backgrounds .bg-home,
#schedule.active~.page-backgrounds .bg-schedulebg,
#versus.active~.page-backgrounds .bg-versus,
#rating.active~.page-backgrounds .bg-rating,
#profile.active~.page-backgrounds .bg-profile {
    opacity: 1;
    z-index: -1;
}

.bg-rating {
    /* 初始状态 */
    filter: brightness(1);
    opacity: 0;

    /* 应用动画 */
}

.bg-home {
    background-image: none !important;
    background-color: #1e1661;
}

.bg-schedule {
    background-image: none !important;
    background-color: #1e1661;
}

.bg-versus {
    background-image: none !important;
    background-color: #1e1661;
}

.bg-rating {
    background-image: none !important;
    background-color: #1e1661;
}

.bg-profile {
    background-image: none !important;
    background-color: #1e1661;
}

/* 进入 rating 页面时添加 .fade-in 类 */
.bg-rating.fade-in {
    animation: brightnessFadeIn 1s ease-in forwards;
    z-index: -1;
}

.rating-item.fade-in {
    animation: brightnessFadeOut 1s ease-in forwards;
}

/* 内容区域底色（保证文字可读性） */
/* .main-content > .page:not(.profile-page)::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 31, 0.85);
} */

/* 视频背景样式 */

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;

    /* 提升渲染质量（部分浏览器支持） */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://static.appoint.icu/Railvote/bg.png') no-repeat center center;
    background-size: cover;
    display: none;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .video-bg video {
        transform: translate(-50%, -50%) rotate(-90deg) scaleX(-1);
    }

    .fallback-image {
        transform: rotate(-90deg) scaleX(-1);
    }
}

/* 星空背景特效 - 增强闪烁效果 */
@keyframes twinkle {

    0%,
    100% {
        opacity: 0.1;
    }

    20%,
    80% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
    z-index: 2;
    pointer-events: none;
}

.star-large {
    position: absolute;
    background: radial-gradient(circle, white 30%, transparent 70%);
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out, float 8s infinite ease-in-out;
    z-index: 2;
    pointer-events: none;
}

/* 粒子效果 */
.particle {
    position: absolute;
    background: rgba(122, 162, 247, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    pointer-events: none;
}

/* 登录弹窗新样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    border-radius: 10px;
    overflow: hidden;
}

.login-modal.active {
    display: flex;
}

.login-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.login-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(23, 15, 35, 0.4) 60%); */
}

.login-content-container {
    position: relative;
    width: 85%;
    max-width: 400px;
    background: rgba(21, 37, 94, .1);
    border-radius: 15px;
    padding: 30px 25px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    z-index: 2;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.login-title-group {
    margin-top: 78px;
}

.login-main-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    /* text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); */
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.login-sub-title {
    font-size: 16px;
    color: #ccc;
    opacity: .2;
    letter-spacing: 5px;
    margin-top: 20px;
    font-weight: 200;
}

.login-center-image {
    width: 230px;
    height: auto;
    margin: 15px auto;
    display: block;
    top: -104px;
    bottom: 0;
    right: 0;
    left: 0;
    position: absolute;
}

.login-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.login-btn {
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.qq-login {
    background: linear-gradient(135deg, #12B7F5 0%, #0681FF 100%);
}

.wechat-login {
    background: linear-gradient(135deg, #2DC100 0%, #1E8B00 100%);
}

.douyin-login {
    background: linear-gradient(135deg, #FE2C55 0%, #25F4EE 100%);
}

.close-login {
    margin-top: 20px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-login:hover {
    color: white;
}

.login-character-decoration {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 80px;
    height: auto;
    opacity: 0.8;
    transition: all 0.5s;
    z-index: 3;
}

.login-character-decoration:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .login-content-container {
        width: 90%;
        padding: 25px 15px;
    }

    .login-main-title {
        font-size: 1.2rem;
    }

    .login-sub-title {
        font-size: 14px;
    }

    .login-character-decoration {
        width: 60px;
    }
}

.qq-login {
    background: #12b7f5;
    color: white;
}

.qq-login:before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('https://static.appoint.icu/Railvote/qq.png');
    background-size: cover;
    background-position: center;
    color: #12b7f5;
    border-radius: 50%;
    margin-right: 10px;
    line-height: 20px;
    font-weight: bold;
}

.wechat-login {
    background: #07c160;
    color: white;
}

.wechat-login:before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    background-image: url('https://static.appoint.icu/Railvote/wechat.png');
    background-size: cover;
    background-position: center;
    color: #07c160;
    border-radius: 50%;
    margin-right: 10px;
    line-height: 20px;
    font-weight: bold;
}

.douyin-login {
    background: #0a0a0a;
    color: white;
}

.douyin-login:before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('https://static.appoint.icu/Railvote/douyin.png');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    line-height: 20px;
    font-weight: bold;
}

.close-login {
    background: none;
    border: none;
    color: var(--text-secondary);
    margin-top: 40px;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
}

.close-login:hover {
    color: var(--color-primary);
}

/* 用户菜单 */
.user-menu {
    display: none;
    position: absolute;
    top: 90px;
    right: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    width: 180px;
    overflow: hidden;
    border: 1px solid rgba(122, 162, 247, 0.1);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s;
}

.user-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.user-menu-item {
    padding: 12px 15px !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    display: block !important;
    text-align: left !important;
    transition: all 0.3s !important;
    font-size: 14px !important;
    border-bottom: 1px solid rgba(122, 162, 247, 0.1) !important;
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover {
    background: rgba(122, 162, 247, 0.1);
    color: var(--color-primary);
}

/* 顶部导航 */

.main-content {
    margin-top: 70px;
    /* 根据导航栏高度调整 */
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 0;
        /* 移动端不需要额外间距 */
        margin-bottom: -70px;
        /* 避免底部导航栏遮挡内容 */
    }
}

/* 移动端隐藏 PC Tab 栏 */
@media (max-width: 768px) {

    /* 隐藏背景色和边框 */
    .top-nav {
        background: transparent !important;
        border-bottom: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 15px 10px;
        position: fixed;
    }

    .mobile-refresh .refresh-icon {
        font-size: 1.3rem !important;
    }

    .mobile-refresh {
        font-size: 1.3rem !important;
    }

    .mobile-refresh .refresh-icon img {
        width: 32px;
    }

    .pc-refresh {
        display: none !important;
    }

    .versus-characters {
        gap: 15px !important;
    }

    /* 只保留用户头像，并靠右 */
    .top-nav {
        display: flex !important;
        justify-content: flex-end !important;
        /* 内容靠右 */
    }

    /* 隐藏logo（如果需要） */
    .logo {
        display: none !important;
    }

    .pc-tabs {
        display: none !important;
    }

    /* 显示底部导航栏 */
    .bottom-nav.mobile-only {
        display: flex !important;
    }

    .versus-character-image {
        width: 100% !important;
        transform: none !important;
    }
}

/* PC端隐藏底部导航栏 */
@media (min-width: 769px) {
    /* .character-card:nth-child(1)::after {
        content: '';
        position: absolute;
        top: 200px;
        right: 10px;
        width: 70px;
        height: 70px;
        z-index: 2;
        background-image: url('https://static.appoint.icu/Railvote/top1.png');
        background-size: cover;
    }

    .character-card:nth-child(2)::after {
        content: '';
        position: absolute;
        top: 200px;
        right: 10px;
        width: 70px;
        height: 70px;
        z-index: 2;
        background-image: url('https://static.appoint.icu/Railvote/top2.png');
        background-size: cover;
    } */

    /* .character-card:nth-child(3)::after {
        content: '';
        position: absolute;
        top: 200px;
        right: 10px;
        width: 70px;
        height: 70px;
        background-image: url('https://static.appoint.icu/Railvote/top3.png');
        background-size: cover;
    } */
    .bottom-nav.mobile-only {
        display: none;
    }

    .custom-alert-box {
        max-width: 44% !important;
        min-width: 336px;
    }

    .mobile-refresh {
        display: none !important;
    }

    #versusSummariesContainer {
        display: flex;
        flex-direction: row !important;
        gap: 10px;
        width: 100% !important;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        justify-items: center;
        flex-wrap: wrap;
    }

    #versusSummariesContainer .versus-summary {
        transition: all 0.2s ease-out;
        width: calc((100% - 60px) / 2)
    }
}

/* PC端顶部导航栏 */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(25, 19, 69, .7);
    border-bottom: 1px solid rgba(122, 162, 247, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* PC端 Tab 栏样式 */
.pc-tabs {
    display: flex;
    gap: 20px;
    margin-left: 20px;
    font-size: 1.4rem;
    cursor: pointer;
}

.pc-tabs a {
    margin-right: 30px;
}

.pc-tabs .nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.pc-tabs .nav-item.active {
    color: #a7b4d2;
    /* background: rgb(108 ,125 ,206 ,.6); */
    /* font-weight: 800; */
    filter: brightness(1.2) contrast(1.3) drop-shadow(6px 4px 4px rgba(135, 129, 250, .2));
    background: url(https://static.appoint.icu/Railvote/nav/home-active.png) 4px center / contain no-repeat;
    margin-right: -20px;
    width: 230px;
    text-shadow: 0 0 2px #ae48e3;
}

.nav-icon {
    font-size: 20px;
}

.schedule-page {
    padding-top: 100px;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    filter: brightness(1.2);
}

.logo:before {
    content: '';
    margin-right: 8px;
    font-size: 34px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(32, 20, 77, 0.5);
    display: flex;
    justify-content: center;
    cursor: pointer !important;
    overflow: hidden;
    transition: all 0.3s;
    font-size: 18px;
    border: 2px solid transparent;
    margin-right: 0 !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.user-share {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(32, 20, 77, 0.5);
    display: flex;
    margin-right: 14px;
    justify-content: center;
    cursor: pointer !important;
    overflow: hidden;
    transition: all 0.3s;
    font-size: 20px;
    border: 2px solid transparent;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.user-share:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.user-avatar span {
    line-height: 50px;
}

.user-avatar:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 主内容区 */
.main-content {
    margin-top: 0;
    min-height: calc(100vh - 150px);
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.page.active {
    display: block;
}

.arrow-image {
    height: 8rem;
    position: absolute;
    top: -9px;
}

/* 新增：宝石闪耀动画（紫色光效） */
.gem-glow-effect {
    animation: gem-glow 4s ease-in-out infinite;
    /* filter: drop-shadow(0 0 5px rgba(183, 122, 247, 0.7)); */
}

.cloud-class {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    z-index: 4;
    filter: brightness(2) blur(2px) saturate(.8) contrast(1.2);
}

@keyframes gem-glow {

    0%,
    100% {
        filter:
            drop-shadow(0 2px 4px rgba(111, 126, 244, .9)) brightness(1.2);
        transform: scale(1);
    }

    25% {
        filter:
            drop-shadow(0 2px 4px rgba(111, 126, 244, .9)) brightness(1);
        transform: scale(1);
    }

    50% {
        filter:
            drop-shadow(0 2px 4px rgba(111, 126, 244, .9)) brightness(1.2);
        transform: scale(1.1);
    }

    75% {
        filter:
            drop-shadow(0 2px 4px rgba(111, 126, 244, .9)) brightness(1.2);
        transform: scale(1);
    }
}

/* 
@keyframes gem-glow {

    0%,
    100% {
        filter:
            drop-shadow(0 2px 5px rgba(51, 51, 82, 0.4)) brightness(1);
        transform: scale(1);
    }

    25% {
        filter:
            drop-shadow(0 2px 4px rgba(111, 126, 244, .9)) brightness(1.2);
        transform: scale(1);
    }

    50% {
        filter:
            drop-shadow(0 2px 6px rgba(4, 14, 33, 0.4)) brightness(1);
        transform: scale(1.1);
    }

    75% {
        filter:
            drop-shadow(0 0 4px rgba(4, 4, 44, 0.4)) brightness(1);
        transform: scale(1);
    }
} */

/* 移动端适配（减小光晕范围） */
@media (max-width: 768px) {
    /* .character-card:nth-child(1)::after {
        content: '';
        position: absolute;
        top: 80px;
        right: 0;
        width: 50px;
        height: 50px;
        background-image: url('https://static.appoint.icu/Railvote/top1.png');
        z-index: 2;
        background-size: cover;
    }

    .character-card:nth-child(2)::after {
        content: '';
        position: absolute;
        top: 80px;
        right: 0;
        width: 50px;
        height: 50px;
        background-image: url('https://static.appoint.icu/Railvote/top2.png');
        z-index: 2;
        background-size: cover;
    } */

    /* .character-card:nth-child(3)::after {
        content: '';
        position: absolute;
        top: 80px;
        right: 0;
        width: 50px;
        height: 50px;
        background-image: url('https://static.appoint.icu/Railvote/top3.png');
        background-size: cover;
    } */
    .custom-alert-box {
        padding: 16px !important;
        max-width: 90% !important;
        min-width: 66%;
        max-height: 75% !important;
    }

    .gem-glow-effect {
        filter: drop-shadow(0 0 3px rgba(99, 42, 205, 0.7));
    }

    @keyframes gem-glow {
        75% {
            filter: drop-shadow(0 0 10px rgba(0, 0, 0, 1));
            /* 移动端减少光晕强度 */
        }
    }
}

.gem-glow-effect {
    position: relative;
    /* 确保伪元素定位正确 */
}

.gem-glow-effect::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(23, 21, 71, 0.3), transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse2 10s ease-out infinite;
    border-radius: 50%;
    opacity: 0;
}

@keyframes pulse2 {

    0%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* 内容容器（确保内容在遮罩上层） */
.vote-section .container {
    position: relative;
    z-index: 3;
}

/* 确保角色网格居中且适配 */

/* 叠加边缘羽化层 */

/* 推荐使用 mask-image 方案 */
.hero-video {
    /* 原有样式保留 */
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            white 10%,
            white 90%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            white 10%,
            white 90%,
            transparent 100%);
}


.hero-video {
    /* 原有样式保留 */
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            white 10%,
            white 90%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            white 10%,
            white 90%,
            transparent 100%);
}

.hero-image {
    height: 100%;
    /* object-fit: contain; */
    object-position: center bottom;
    position: absolute;
    z-index: 3;
}

.hero-image-2 {
    height: 100%;
    /* object-fit: contain; */
    object-position: center bottom;
    position: absolute;
    /* filter: blur(100px) brightness(0.7) contrast(1.2) saturate(1.2); */
    z-index: 2;
}

.placeholder-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1e1661;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    filter: brightness(1) saturate(1.1) contrast(1);
}

.placeholder-image {
    position: relative;
    width: 100%;
    height: 100%;
    /* background-image: url('https://static.appoint.icu/Railvote/homebg.png'); */
    background-color: #1e1661;
    /* object-fit: cover; */
    /* transform: scaleY(-1，-1); */
    /* background: #1a1a3a; */
    display: flex;
    /* object-fit: cover; */
    justify-content: center;
    align-items: center;
    /* color: var(--text-secondary); */
    font-size: 18px;
}

.result2-image {
    width: 100%;
    /* object-fit: contain; */
    object-position: center bottom;
    position: relative;
    /* margin: 40px 0; */
    z-index: 3;
    cursor: pointer;
    margin-top: 180px;
}

.result-image {
    width: 100%;
    /* object-fit: contain; */
    object-position: center bottom;
    position: relative;
    /* margin: 40px 0; */
    z-index: 3;
    margin-top: 180px;
}

.result2-image:hover {
    filter: brightness(1.1);
}

.section-title {
    font-size: clamp(20px, 4vw, 28px);
    margin-bottom: 10px;
    /* color: var(--color-primary); */
    text-align: center;
    position: relative;
    padding-bottom: 8px;
    font-size: 1.6rem;
    margin-top: 110px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}


.character-card {
    /* background: rgba(26, 28, 104, .7); */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 12px;
    width: 94%;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    /* border: 1px solid rgba(122, 162, 247, 0.1); */
}


.character-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.character-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    /* background: linear-gradient(45deg, #3a3a7a, #2a2a5a); */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 60px;
    position: relative;
    overflow: hidden;
}

.character-image img {
    height: 100%;
}

.character-desc {
    font-size: .9rem;
    color: #b3b4f3;
    min-height: 2rem;
    overflow: hidden;
    text-align: right;
}


.character-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(to bottom, transparent 60%, rgba(101, 92, 230, 0.9) 100%); */
}

.character-info {
    padding: 0px 10px 14px;
    position: relative;
    z-index: 1;
}

.character-name {
    /* font-weight: bold; */
    margin: 8px 0;
    letter-spacing: .7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* color: var(--color-primary); */
    font-size: 1.2rem;
    /* text-shadow: 1px 1px 1px #2a1092; */
}

.character-faction {
    font-size: .8rem;
    height: 40px;
    overflow: hidden;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* 分组标题 */
.group-title {
    font-size: 1.8rem;
    margin: 40px 16px 16px;
    clear: both;
    letter-spacing: 10px;
    font-weight: 800;
}

/* 角色行 */
.character-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

/* 角色卡片 */
.character-card {
    width: calc(20% - 20px);
    /* min-width: 180px; */
    background: rgba(26, 28, 104, .7);
    border-radius: 12px;
    overflow: hidden;
}

/* 响应式描述 */
.pc-desc {
    display: block;
}

.mobile-desc {
    display: none;
}

@media (max-width: 768px) {
    .character-card {
        width: calc(33.3% - 15px);
    }

    .pc-desc {
        display: none;
    }

    .mobile-desc {
        display: block;
        height: 4.2rem;
    }
}

/* 新增信息模块样式 */

.infomation-box {
    /* margin: 0 20px; */
    width: 100%;
    margin: 0 auto;
    cursor: default;
}

.infomation-box-versus {
    display: flex;
    margin: 0 auto;
    cursor: default;
    padding: 20px 20px 22px;
}

.info-module {
    background: rgba(15, 20, 50, .3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 15px;
    padding: 20px;
    /* margin: -90px auto 0; */
    max-width: 1200px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(122, 162, 247, 0.2);
    /* display: grid; */
    grid-template-columns: 4fr;
    gap: 20px;
    position: relative;
    /* filter: brightness(1.1); */
    z-index: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.info-module-versus {
    background: rgba(15, 20, 50, .3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 15px;
    padding: 20px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(122, 162, 247, 0.2);
    display: grid;
    position: relative;
    z-index: 3;
    text-align: left;
}

.organizer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.organizer-avatar {
    width: 64px;
    margin-top: 2px;
}

.organizer-follow {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.organizer-avatar img {
    width: 62px;
    height: 62px;
    display: block;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.organizer-details h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    /* width: 170px; */
}

.organizer-details p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 6px;
}

.follow-btn {
    background: linear-gradient(to right, #7aa2f7, #b464ff);
    color: white;
    border: none;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: .9rem;
    line-height: 1.4rem;
    cursor: pointer;
    transition: all 0.3s;
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 162, 247, 0.4);
}

.vote-rules {
    border-left: 1px solid rgba(122, 162, 247, 0.2);
    border-right: 1px solid rgba(122, 162, 247, 0.2);
    padding: 0 20px;
}

.vote-rules li {
    line-height: 24px;
    margin-bottom: 8px;
}

.vote-rules h3 {
    /* color: var(--color-primary); */
    margin-bottom: 15px;
    text-align: center;
}

.vote-rules ul {
    list-style: none;
    color: #b3b4f3;
    line-height: 1.8;
}

.countdown-timer {
    text-align: center;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.countdown-timer h3 {
    margin-bottom: 15px;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span:first-child {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f7f6fb;
    text-shadow: 0 4px 4px rgba(120, 138, 182, 75%);
    background: rgba(122, 162, 247, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    min-width: 50px;
    text-align: center;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* 分组标签样式 */
.group-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.group-tab {
    padding: 8px 20px;
    background: rgba(122, 162, 247, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    color: var(--text-secondary);
}

.group-tab.active {
    background: var(--color-primary);
    color: white;
    font-weight: bold;
}

.group-content {
    display: none;
}

.group-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .info-module {
        grid-template-columns: 1fr;
    }

    .vote-rules {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(122, 162, 247, 0.2);
        border-bottom: 1px solid rgba(122, 162, 247, 0.2);
        padding: 20px 0;
    }

    .group-content.active {
        grid-template-columns: repeat(2, 1fr);
    }

    .infomation-box {
        margin-bottom: 0;
    }
}

.vote-btn {
    /* background: rgba(122, 162, 247, 0.3); */
    background: transparent;
    border: none;
    color: #b3b4f3;
    padding: 10px 0;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.vote-btn:hover {
    background: rgba(60, 80, 200, 1);
}

.vote-btn.voted {
    background: #3a30ac;
    color: #fffbff;
}

.vote-count {
    font-size: 1rem;
    color: #c4dff0;
    /* margin-top: 8px; */
    text-align: right;
}

/* 赛程日历 */
.schedule-page {
    padding: 20px 15px;
}

.calendar-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
    padding-bottom: 10px;
}

.compact-calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
    min-width: 500px;
}

.compact-calendar th {
    background: var(--bg-light);
    padding: 12px;
    text-align: center;
    color: var(--color-primary);
    font-weight: bold;
    border-radius: 8px;
    font-size: 14px;
}

.compact-calendar td {
    background: var(--bg-light);
    padding: 10px;
    text-align: center;
    height: 60px;
    vertical-align: middle;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(122, 162, 247, 0.1);
    font-size: 14px;
}

.compact-calendar td:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.calendar-day {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
    z-index: 2;
}

.event-tag {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 3px;
    z-index: 2;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
}

/* 赛程阶段背景色 */
.preliminary {
    background: rgba(14, 58, 151, 0.4);
    color: #7aa2f7;
    position: relative;
}

.preliminary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.4), transparent);
    z-index: 1;
}

.preliminary2 {
    background: rgba(16, 78, 145, 0.4);
    color: #89d9f9;
    position: relative;
}

.preliminary2:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 89, 145, 0.4), transparent);
    z-index: 1;
}

.preliminary3 {
    background: rgba(70, 16, 145, 0.4);
    color: #c688f2;
    position: relative;
}

.preliminary3:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(85, 24, 169, 0.4), transparent);
    z-index: 1;
}

.preliminary4 {
    background: rgba(145, 128, 16, 0.4);
    color: #f0db63;
    position: relative;
}

.preliminary4:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(169, 123, 24, 0.4), transparent);
    z-index: 1;
}

.preliminary5 {
    background: rgba(145, 78, 16, 0.4);
    color: #f07a63;
    position: relative;
}

.preliminary5:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(169, 80, 24, 0.4), transparent);
    z-index: 1;
}

/* 赛程时间轴样式 */
.timeline-container {
    position: relative;
    padding: 20px 0;
    max-width: 800px;
    margin: 0px auto 0px;
    padding-bottom: 40p;
}

.timeline-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    height: 96%;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), #73dbf7);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 10px;
    padding-left: 80px;
}

.timeline-date {
    position: absolute;
    left: -26px;
    top: 26px;
    width: 100px;
    font-size: 1.1rem;
    padding: 8px 12px;
    text-align: center;
    font-weight: bold;
    color: var(--color-primary);
    transform: translateX(-20px);
    transition: all 0.3s;
}

.timeline-date-active {
    background: var(--color-primary);
    color: white;
    transform: translateX(-20px) scale(1.05);
}

.timeline-content {
    background: #0c0c1a4f;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(122, 162, 247, 0.2);
    transition: all 0.3s;
}

.timeline-item:hover .timeline-content {
    /* transform: translateY(-5px); */
    /* box-shadow: 0 10px 30px rgba(122, 162, 247, 0.3); */
}

.timeline-track {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.timeline-track:last-child {
    margin-bottom: 0;
}

.timeline-track:hover {
    transform: translateX(5px);
}

.primary-track {
    background: linear-gradient(90deg, rgba(122, 162, 247, 0.2), transparent);
    border-left: 3px solid var(--color-primary);
}

.secondary-track {
    background: linear-gradient(90deg, rgba(100, 108, 255, 0.1), transparent);
    border-left: 3px solid #5faaf3;
    margin-left: 20px;
}

.highlight {
    background: linear-gradient(90deg, rgb(224, 194, 140, .2), transparent) !important;
    border-left: 3px solid #e4c08d !important;
    animation: pulse 2s infinite;
}

.final-track {
    background: linear-gradient(90deg, rgba(18, 139, 220, 0.2), transparent);
    border-left: 3px solid #6ed8ef;
}

.track-icon {
    font-size: 24px;
    width: 70px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: rgba(255, 255, 255, 0.1); */
    /* border-radius: 50%; */
    margin-right: 36px;
    flex-shrink: 0;
}

.track-icon img {
    width: 100px;
    padding-left: 15px;
    margin-left: 5px;
}

.track-info {
    flex: 1;
}

.track-title {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #e4f0f6;
}

.track-duration {
    font-size: 14px;
    color: #b8f0fd;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .result2-image {
        margin-top: 60px !important;
    }

    .result-image {
        margin-top: 60px !important;
    }

    .timeline-container:before {
        left: 25px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-date {
        width: 80px;
        transform: translateX(-10px);
    }

    .timeline-item:hover .timeline-date {
        transform: translateX(-10px) scale(1.05);
    }

    .secondary-track {
        margin-left: 10px;
    }


    .track-title {
        font-size: 14px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .timeline-container:before {
        left: 25px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-date {
        width: 70px;
        padding: 5px 8px;
    }

    .timeline-content {
        padding: 10px;
    }
}


.quarter-final {
    background: rgba(255, 150, 100, 0.4);
    color: #ff9e64;
}

.revival {
    background: rgba(255, 100, 200, 0.2);
    color: #ff64c8;
}

.semi-final {
    background: rgba(180, 100, 255, 0.2);
    color: #b464ff;
}

.final {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

/* 连接线效果 */
.connected-start {
    position: relative;
}

.connected-start:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    width: 5px;
    height: 2px;
    background: currentColor;
}

.connected-middle {
    position: relative;
}

.connected-middle:before,
.connected-middle:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 5px;
    height: 2px;
    background: currentColor;
}

.connected-middle:before {
    left: -5px;
}

.connected-middle:after {
    right: -5px;
}

.connected-end {
    position: relative;
}

.connected-end:before {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    width: 5px;
    height: 2px;
    background: currentColor;
}

/* AB对决 */

/* 对决币显示样式增强 */
.coins-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* background: rgba(122, 162, 247, 0.2); */
    padding: 8px 15px;
    border-radius: 20px;
    margin: 0 auto;
}

.coins-icon {
    font-size: 20px;
    animation: coinPulse 2s infinite;
}

.coins-icon img {
    width: 2.2rem;
}

.coins-text {
    font-size: 1.1rem;
    color: #959aff;
    font-style: italic;
    font-weight: 400;
    line-height: 2.2rem;
}

#currentDuelCoins {
    font-size: 18px;
    font-weight: bold;
    color: #fbd66f;
}

.refresh-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    color: #c3caed;
    font-size: 1.1rem;
    display: flex;
}

.refresh-btn:hover {
    /* background: rgba(122, 162, 247, 0.3); */
    /* transform: rotate(180deg); */
    text-decoration: underline;
    font-weight: 800;
    color: #fff;
}

.refresh-icon img {
    width: 26px;
    display: block;
}

/* 角色框样式增强 */
.character-frame {
    position: relative;
    overflow: visible;
}

.sparkle-effect {
    position: absolute;
    top: -0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(249, 223, 78, 0.6) 100%);
    /* border: 2px solid rgba(255,215,0,0.3); */
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    border-radius: 10px;
}

.coin-animation {
    position: absolute;
    width: 140px;
    height: 120px;
    background: url('https://static.appoint.icu/Railvote/coin.png') no-repeat;
    background-size: contain;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}


/* 图片永久置底 */
.versus-character-image {
    position: absolute;
    z-index: -1 !important;
    pointer-events: auto;
    max-height: 300px;
    background-repeat: no-repeat !important;
}

.versus-summary.selected-left {
    background: linear-gradient(to bottom, rgba(54, 64, 131, 0.15), rgba(92, 108, 203, 0.3));
    border: 1px solid rgba(121, 155, 240, .1);
    filter: saturate(1.3);
    margin-top: 10px;
}


.versus-summary-title.selected-left {
    background: linear-gradient(to bottom, #f6f8fd, #bdc6e0);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

/* 对决记录颜色样式 */
.versus-summary-value.selected-left {
    color: #0f365a
}

.versus-summary-stat.selected-left {
    background: linear-gradient(to right, #799bf0, #b2e6f7);
}

.versus-summary-label.selected-left {
    color: rgb(63, 92, 153, 1);
}


.versus-summary.selected-right {
    background: linear-gradient(to bottom, rgba(54, 64, 131, 0.15), rgba(92, 108, 203, 0.3));
    border: 1px solid rgba(121, 155, 240, .1);
    filter: saturate(1.3);
    margin-top: 10px;
}

.versus-summary-title.selected-right {
    background: linear-gradient(to bottom, #f6f8fd, #bdc6e0);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.versus-summary-value.selected-right {
    color: #0f365a
}

.versus-summary-stat.selected-right {
    background: linear-gradient(to right, #799bf0, #b2e6f7);
}

.versus-summary-label.selected-right {
    color: rgb(63, 92, 153, 1);
}

/* 添加历史记录样式 */
.versus-history {
    margin-top: 30px;
    background: rgba(20, 20, 50, 0.7);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(122, 162, 247, 0.3);
    max-height: 300px;
    overflow-y: auto;
}

.history-record {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(122, 162, 247, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.history-record .record-time {
    color: var(--text-secondary);
    font-size: 12px;
}

.history-record .record-stats {
    display: flex;
    gap: 15px;
}

.history-record .stat-item {
    text-align: center;
}

.history-record .stat-value {
    font-weight: bold;
    color: var(--color-primary);
}

.history-record .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 动画定义 */
@keyframes coinPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes coinThrow {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(360deg);
    }
}

.versus-page {
    /* padding: 30px 0; */
    text-align: center;
}

.versus-container {
    /* margin-top: 34px; */
}

.versus-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: -28px;
    padding: 20px 0 100px 0;
    color: white;
    position: relative;
    display: inline-block;
    z-index: -2;
    pointer-events: auto;
}

.versus-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.versus-character:hover {
    filter: brightness(1.1) saturate(1.3);
}

.versus-characters {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 150px;
    flex-direction: row;
    align-items: center;
    border-radius: 5px;
}

.versus-charA {
    width: 100%;
    max-width: 300px;
    position: relative;
}

.versus-character {
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* border: 1px solid rgba(122, 162, 247, 0.1); */
    z-index: 2;
    position: relative;
}

.versus-characters-left {
    background: linear-gradient(to bottom, #364083, #5c6ccb);
    border: 1px solid #799bf0;
    box-shadow: 0 0 4px #5c8bf8;
    filter: saturate(1.3);
}


.versus-characters-right {
    background: linear-gradient(to bottom, #8a354b, #de5d6d);
    border: 1px solid #e66474;
    box-shadow: 0 0 4px #ff8699;
    filter: saturate(1.2);
}

.versus-character:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 6px solid transparent;
    border-radius: 10px;
    transition: all 0.3s;
}

.versus-character:hover:after {
    border-color: rgba(0, 0, 0, .1);
}

/* 强制特效层级高于图片 */
.sparkle-effect,
.coin-animation {
    z-index: 3;
}

.versus-character-image {
    width: 135%;
    height: 350px;
    transform: translateX(-50px);
    object-fit: cover;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    margin: 0 auto 15px;
    font-size: 40px;
    position: absolute;
    z-index: -1 !important;
    bottom: 150px;
    background-size: cover !important;
    background-position: center;
}

.versus-character-name {
    font-size: 1.35rem;
    font-weight: bold;
    margin-bottom: 12px;
    white-space: nowrap;
}

.versus-character-name-left {
    background: linear-gradient(to bottom, #f6f8fd, #bdc6e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 1px rgba(133, 192, 243, 0.5);
    filter: brightness(1.1);
}

.versus-character-name-right {
    background: linear-gradient(to bottom, #f9fefa, #ddc4ae);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 1px rgba(255, 202, 209, 0.5);
}

.versus-character-desc {
    min-height: 4.5rem;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.versus-character-desc-left {
    font-size: .9rem;
    color: #d2d5e8;
    background-color: #364280;
    border-radius: 5px;
}

.versus-character-desc-right {
    font-size: .9rem;
    color: #e8d2d8;
    background-color: #8f354d;
    border-radius: 5px;
}

.versus-vote-left {
    display: block;
    width: 100%;
    margin: 15px auto 0;
    background: linear-gradient(to right, #799bf0, #b2e6f7);
    font-size: .9rem;
    color: #3f5c99;
    border-radius: 10px;
    padding: 3px 0;
    filter: contrast(1.35);
}

.versus-vote-right {
    display: block;
    width: 100%;
    margin: 15px auto 0;
    background: linear-gradient(to right, #fbb980, #f9e7bc);
    font-size: .9rem;
    color: #5e3917;
    border-radius: 10px;
    padding: 3px 0;
}

.duel-coins-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vs-text {
    color: transparent;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .2rem;
    width: 6rem;
    border-radius: 10px;
    border: 2px solid #fff;
    /* background-color: #ffffff; */
    color: #fff;
    position: relative;
    font-weight: 800;
    transform: scale(1.3) translateY(-7vh);
}

.vs-text::before {
    content: '人气女角色';
    font-size: .9rem;
    /* margin: 0 10px; */
    position: absolute;
    top: -2.15rem;
    line-height: 1rem;
    /* background-color: #e9c547; */
    overflow: hidden;
    color: #ffffff;
    font-style: italic;
    width: 100%;
    height: 2rem;
    line-height: 2rem;
    font-weight: 800;
    border-radius: 5px;
    margin-bottom: 15px;
}

.versus-stats {
    display: none;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.versus-stat {
    flex: 1;
    padding: 5px;
    border-radius: 4px;
    background: rgba(122, 162, 247, 0.1);
}

/* 对决中时的禁用状态样式 */
.versus-character.disabled {
    cursor: not-allowed;
    filter: contrast(1.1) brightness(1.1) drop-shadow(0 10px 15px rgb(123, 140, 191, .5));
}

.versus-character.disabled:after {
    border-color: transparent !important;
}

/* 添加对决总结容器的样式 */
#versusSummariesContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

#versusSummariesContainer .no-summaries {
    margin-top: 60px;
    margin-bottom: 20px;
}

/* 修改对决总结样式 */
.versus-summary {
    background: rgb(22, 30, 50, .74);
    border-radius: 5px;
    padding: 15px;
    /* border: 1px solid #575c88; */
    transition: all 0.3s ease;
    /* transform: translateY(-20px); */
    opacity: 0;
    /* margin-bottom: .7rem; */
}

.versus-summary.show {
    /* transform: translateY(0); */
    opacity: 1;
}

#versusSummariesContainer .versus-summary {
    transition: all 0.2s ease-out;
}

.versus-summary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 5px rgba(122, 162, 247, 0.2);
}

.versus-summary-title {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.versus-summary-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.versus-summary-stat {
    text-align: center;
    padding: 10px;
    flex: 1;
    min-width: 100px;
    border-radius: 8px;
}

.versus-summary-value {
    font-size: 1.2rem;
    line-height: 2.1rem;
    font-weight: bold;
    white-space: nowrap;
}

.versus-summary-label {
    font-size: .9rem;
    color: #e0e0ff;
}

.versus-tabs {
    display: flex;
    /* margin-bottom: 20px; */
    justify-content: center;
    gap: 10px;
    margin-bottom: -40px;
    white-space: nowrap;
    line-height: 1.5rem;
}

.versus-tab {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(22, 30, 50, .2);
    color: #b6bdd0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.versus-tab.active {
    background: #3a49a8;
    color: #ffffff;
    font-weight: 600;
    font-size: .9rem;
}

/* 评分页面 */
.rating-page {
    padding: 0 12px;
}

.rating-tabs {
    display: flex;
    border-bottom: 1px solid rgba(122, 162, 247, 0.2);
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.rating-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.rating-tab {
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 1.2rem;
}

.rating-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: bold;
}

.rating-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #3a3a7a, #2a2a5a);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
}

.rating-name {
    width: 80%;
    overflow: hidden;
    font-size: 1.2rem;
    color: #e0e0ff;
}

.rating-desc {
    color: #e0e0ff9b;
    width: 100%;
    margin-top: 24px;
    font-size: .9rem;
    overflow: hidden;
    /* 隐藏超出的内容 */
    text-overflow: ellipsis;
    /* 用省略号表示被隐藏的部分 */
}

.danmaku-overlay {
    transition: opacity 0.3s ease;
    opacity: .8;
}

.danmaku-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}


/* 评分项目媒体容器 */
.media-container {
    position: relative;
    width: 100%;
    height: 300px;
    /* 固定高度 */
    overflow: hidden;
    border-radius: 8px;
}

.rating-image,
.rating-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.media-toggle {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
}

.media-toggle:hover {
    background: rgba(122, 162, 247, 0.8);
}

/* 确保内容容器的显示控制 */
.rating-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    overflow-y: auto;
}

.rating-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    opacity: 1;
    z-index: 1;
    transform: translateY(0);
    padding-bottom: 40px;
}

.rating-container {
    position: relative;
}

/* 错误状态显示 */
.no-content {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* PC端评分项目布局 */
@media (min-width: 768px) {
    .info-module {
        margin: -220px auto 0 !important;
    }

    .rating-page {
        padding: 56px 15px !important;
    }

    .rating-desc {
        height: 2.7rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rating-content {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 20px;
    }

    .rating-item {
        padding: 20px;
        background: rgb(29, 29, 89);
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s;
    }

    .rating-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
}

/* 移动端评分项目布局 */
@media (max-width: 767px) {
    .rating-item {
        margin-bottom: 30px;
        background: rgb(29, 29, 89);
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }

    .media-container {
        height: 158px;
        /* 移动端较小的高度 */
    }

    .rating-tabs {
        justify-content: center;
    }

    .rating-content.active {
        grid-template-columns: none !important;
    }

    .rating-item {
        margin-bottom: 0;
    }
}


/* 评分值显示 */
.rating-meta {
    margin-top: 5px;
    font-size: 14px;
}

.rating-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: -20px;
}

.average-rate {
    display: flex;
    align-items: center;
    justify-content: right;
    flex-direction: column;
    gap: 5px;
}

.rate-stars {
    color: #ffd700;
    font-size: 16px;
}

.rate-value {
    font-weight: bold;
    font-size: 1.7rem;
    ;
    color: #dbdbdb;
    line-height: 2rem;
    text-shadow: 0 0 2px #fff;
}

.rate-count {
    color: var(--text-secondary);
    font-size: .9rem;
    white-space: nowrap;
}

.danmaku-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    overflow: hidden;
}

/* 改进的星级评分组件 - 虎扑风格 */
.star-rating-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 15px 0 -10px;
}

.el-rate__text {
    color: rgb(247, 186, 42) !important;
    white-space: nowrap !important;
}

.el-rate__icon {
    margin-right: 4px !important;
}

.rating-value {
    font-size: 1.2rem;
    line-height: 2rem;
    font-weight: 800;
    margin: 0 0 10px 10px;
    color: #ffd700;
}

.star-rating {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    direction: rtl;
    /* 从右向左排列 */
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.2rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    margin: 0 2px;
}

.star-rating label:before {
    content: '';
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 0l3.09 6.26L22 7.27l-5 4.87 1.18 6.88L12 16l-6.18 3.02L7 12.14 2 7.27l6.91-1.01L12 0z"/></svg>') no-repeat;
    width: 16px;
    height: 16px;
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: #ffd700;
}

.star-rating input:checked+label:before,
.star-rating input:checked~label:before {
    content: '';
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 0l3.09 6.26L22 7.27l-5 4.87 1.18 6.88L12 16l-6.18 3.02L7 12.14 2 7.27l6.91-1.01L12 0z"/></svg>') no-repeat;
    color: #ffd700;
}

.half-star {
    position: absolute;
    width: 50%;
    height: 100%;
    overflow: hidden;
    left: 0;
    top: 0;
}

.half-star:before {
    content: '';
    position: absolute;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 0l3.09 6.26L22 7.27l-5 4.87 1.18 6.88L12 16l-6.18 3.02L7 12.14 2 7.27l6.91-1.01L12 0z"/></svg>') no-repeat;
    width: 16px;
    height: 16px;
    left: 0;
    top: 0;
    width: 200%;
    color: #ffd700;
}

.comment-input {
    width: 80%;
    padding: 12px;
    background: rgba(30, 30, 60, 0.7);
    border: 1px solid rgba(122, 162, 247, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    resize: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.comment-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(122, 162, 247, 0.2);
}


.comment-input::placeholder {
    color: var(--color-primary);
    font-size: .9rem;
}

.submit-btn {
    background: rgba(122, 162, 247, 0.3);
    border: none;
    color: var(--color-primary);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 80%;
    font-weight: bold;
    font-size: 16px;
}

.submit-btn:hover {
    background: rgba(122, 162, 247, 0.5);
    color: #fff;
}

/* 弹幕样式 */
.danmaku {
    position: absolute;
    white-space: nowrap;
    font-size: 1rem;
    animation: danmakuMove linear;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    transition: transform 8s linear;
    /* 改用CSS transition */
}

.own-danmaku {
    z-index: 10 !important;
    color: #ffd700 !important;
    background-color: #ffd90028;
}

.danmaku.liked {
    background: rgba(122, 162, 247, 0.3);
}

.like-count {
    margin-left: 5px;
    color: #8a8a8a;
    font-weight: bold;
}

.like-thumb {
    margin-left: 5px;
    animation: thumbPop 0.5s;
}

@keyframes thumbPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

/* 烟花效果 */
.firework {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
    animation: fireworkExplode 1s ease-out forwards;
}

@keyframes fireworkExplode {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
    }

    100% {
        transform: scale(20);
        opacity: 0;
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0);
    }
}

.success-msg {
    color: var(--color-success);
    text-align: center;
    margin: 10px 0;
    font-size: 14px;
    position: absolute;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* 个人中心 */
.profile-page {
    padding: 100px 15px;
    text-align: center;
}

/* 更新个人中心卡片样式以适配新背景 */
.profile-card {
    /* background: rgba(30, 25, 50, 0.8); */
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    max-width: 500px;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    backdrop-filter: blur(5px);
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); */
}

/* 更新文字颜色确保可读性 */
.profile-name,
.profile-id,
.stat-value {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.duel-button {
    background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%);
    border: none;
    margin-top: 10px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--color-primary);
    background: linear-gradient(45deg, #3a3a7a, #2a2a5a);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.profile-id {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0 55px 0;
}

.stat-item {
    background: rgba(122, 162, 247, 0.1);
    border-radius: 8px;
    padding: 5px 15px;
    border: 1px solid rgba(122, 162, 247, 0.1);
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: -3px;
}

.stat-label {
    font-size: .9rem;
    color: var(--text-secondary);
}

.profile-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.action-btn {
    background: rgba(122, 162, 247, 0.2);
    border: none;
    color: var(--color-primary);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.action-btn:hover {
    background: rgba(122, 162, 247, 0.4);
}

.achievement-popup {
    position: fixed;
    top: 80px;
    /* 留出顶部导航栏空间 */
    right: -400px;
    /* 初始隐藏在屏幕外 */
    width: 300px;
    /* 固定宽度 */
    background: linear-gradient(135deg, #1a1a3a, #0c0c1f);
    border-radius: 12px 0 0 12px;
    /* 左侧圆角 */
    padding: 20px;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 12;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 3px solid #7aa2f7;
    /* 左侧高光线 */
}

.achievement-popup {
    transition: right 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55),
        opacity 0.4s ease;
}

/* 激活状态：从右滑入 */
.achievement-popup.active {
    right: 0;
    /* 滑入到屏幕右边缘 */
    opacity: 1;
}

/* 图标和文字样式（保持不变） */
.achievement-icon {
    font-size: 60px;
    width: 3.2rem;
    /* padding: 9px 6px 0 0; */
}

.achievement-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #7aa2f7;
}

/* ...其他原有样式保持不变... */

.achievement-desc {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.achievement-points {
    font-size: .9rem;
    color: #ffd700;
    font-weight: bold;
}

.achievement-item {
    background: rgba(122, 162, 247, 0.1);
    border-radius: 8px;
    padding: 5px 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(122, 162, 247, 0.1);
}

.achievement-item-icon {
    font-size: 24px;
    margin-right: 6px;
    text-align: center;
}

.achievement-item-content {
    flex: 1;
    text-align: left;
}

.achievement-item-title {
    font-weight: bold;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.achievement-item-desc {
    font-size: .9rem;
    line-height: 1.4rem;
    color: var(--text-secondary);
}

.achievement-item-status {
    font-size: .9rem;
    color: #ffd700;
    font-weight: bold;
}

.achievement-popup.active {
    background-image: url(https://static.appoint.icu/Railvote/achibg.png);
    background-size: cover;
    background-position: center;
}

/* 对决币按钮样式 */
.duel-button {
    background: linear-gradient(to right, #b464ff, #7aa2f7);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.duel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 162, 247, 0.4);
}

@media (max-width: 768px) {
    .achievement-popup {
        width: 220px;
        /* 缩小宽度 */
        top: 90px;
        /* 降低高度 */
    }

    .rating-item:last-child {
        margin-bottom: 80px;
    }

    @keyframes danmakuMove {
        from {
            transform: translateX(80vw);
        }

        to {
            transform: translateX(-150%);
        }
    }
}

/* 帮助按钮样式 */
.help-btn {
    border-radius: 10%;
    background: none;
    color: #b3b4f3;
    font-size: 1.4rem;
    /* margin-top: 60px; */
    cursor: pointer;
    /* margin-right: 10px; */
    display: flex;
    align-items: center;
    padding: 10px;
    justify-content: center;
    border: none;
    margin: 20px auto 0;
    transition: all 0.3s ease;
    /* opacity: .7; */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}


/* 修改现有的.custom-alert-box样式 */
.custom-alert-box {
    max-width: 90%;
    max-height: 84%;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-alert-message {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.6;
    margin: 15px 0;
    text-align: left;
    text-align: center;
}

.custom-alert-message li {
    margin-top: 7px;
}

/* 滚动条样式 */
.custom-alert-box::-webkit-scrollbar {
    width: 6px;
}

.custom-alert-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, .7);
    padding: 8px 0;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #aaa;
    font-size: 12px;
    padding: 5px 10px;
    position: relative;
}

.bottom-nav .nav-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 4px;
    transform: scale(1.5);
}

/* 默认显示未激活图标，隐藏激活图标 */
.bottom-nav .nav-icon.active {
    display: none;
}

.bottom-nav .nav-icon.inactive {
    display: block;
}

/* 激活状态下显示激活图标，隐藏未激活图标 */
.bottom-nav .nav-item.active .nav-icon.active {
    display: block;
}

.bottom-nav .nav-item.active .nav-icon.inactive {
    display: none;
}

.bottom-nav .nav-item.active {
    color: #fff;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 5px 10px;
    transition: all 0.3s;
    border-radius: 8px;
}

.mobile-only {
    font-size: 12px;
}

.nav-item.active {
    color: var(--color-primary);
}

.nav-item.active .nav-icon {
    transform: scale(1.55);
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

/* 流星特效 - 增强版 */
.meteor {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px 3px white;
    animation: meteorFall linear;
    z-index: -1;
    pointer-events: none;
}

.meteor-container {
    width: 100%;
    /* 设置最大宽度，可根据实际情况调整 */
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    margin: 0 auto;
    /* 水平居中 */
    overflow: hidden;
    /* 隐藏超出容器的流星元素 */
    z-index: 10;
    pointer-events: none;
}

@keyframes meteorFall {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: translateX(500px) translateY(500px);
        opacity: 0;
    }
}

/* 响应式调整 */
@media (min-width: 768px) {
    .versus-characters {
        flex-direction: row;
        gap: 14px;
    }

    .versus-character {
        padding: 20px !important;
    }

    .profile-card {
        padding: 40px;
    }

    .schedule-page {
        padding: 60px;
    }

    .versus-character-desc {
        padding: 10px 0 !important;
    }

    .sparkle-effect {
        top: -3%;
        left: 5px;
        width: 96%;
        height: 106%;
    }

}

@media (max-width: 480px) {

    .versus-character {
        width: 90%;
    }

    .rating-tab {
        padding: 10px 15px;
        font-size: 1.2rem;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .compact-calendar td {
        height: 50px;
        font-size: 12px;
        padding: 5px;
    }

    .compact-calendar th {
        font-size: 12px;
        padding: 8px;
    }

    .star-rating label {
        font-size: 1.2rem;
        margin: 0 1px;
    }
}

/* 动画效果 */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.09);
    }
}

@keyframes shine {
    0% {
        background-position: -100%;
    }

    100% {
        background-position: 100%;
    }
}

/* 特殊效果 */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s ease-in-out;
}

/* 提示框遮罩层 */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    backdrop-filter: blur(5px);
}

/* 显示状态 */
.custom-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.achievement-icon-img {
    width: 6rem;
    /* 调整图标大小 */
    height: 6rem;
    object-fit: contain;
    /* 保持比例 */
}

/* 提示框主体 */
.custom-alert-box {
    background: linear-gradient(135deg, #1a1a3a, #0f0f1f);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(122, 162, 247, 0.3);
    transform: translateY(20px);
    filter: saturate(1.4);
    transition: transform 0.3s ease-out;
}

.custom-alert-overlay.active .custom-alert-box {
    transform: translateY(0);
}

/* 图标 */
.custom-alert-icon {
    font-size: 50px;
    color: #7aa2f7;
}

/* 提示文字 */
.custom-alert-message {
    font-size: 1rem;
    color: #e0e0ff;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* 按钮 */
.custom-alert-button {
    background: linear-gradient(to right, #7aa2f7, #b464ff);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-alert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 162, 247, 0.4);
}

/* 规则弹窗样式 */
.rules-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.rules-content {
    width: 90%;
    max-width: 600px;
    background: rgba(21, 27, 48, .24);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    overflow: hidden;
    /* border: 1px solid rgba(122,162,247,.1); */
    margin: 0 auto;
}

.rules-header {
    padding: 20px;
    /* background: linear-gradient(to right, #7aa2f7, #b464ff); */
    color: white;
    position: relative;
    text-align: center;
}

.rules-header h2 {
    font-size: 1.4rem;
}

.rules-header img {
    width: 120px;
    height: 108px;
}


.close-rules {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.rules-tabs {
    display: flex;
    border-bottom: 1px solid rgba(122, 162, 247, 0.3);
}

.rules-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    color: rgba(160, 189, 255, .65);
    transition: all 0.3s;
}

.rules-tab.active {
    color: #7aa2f7;
    font-weight: 800;
    border-bottom: 2px solid #7aa2f7;
}

.rules-body {
    padding: 0 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.rules-panel {
    display: none;
}

.rules-panel ul {
    margin-top: 10px;
}

.rules-panel p {
    padding: 6px 0 6px 20px;
    font-weight: 400;
}

.rules-panel h3 {
    margin-left: 10px;
}

.rules-panel.active {
    display: block;
    animation: fadeIn 0.5s;
}

.rules-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid rgba(122, 162, 247, 0.2);
    margin-top: 10px;
}

.confirm-rules {
    background: linear-gradient(to right, #7aa2f7, #b464ff);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 0;
    transition: all 0.3s;
}

.confirm-rules:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(122, 162, 247, 0.4);
}

/* 规则内容样式 */
.coins-method {
    margin-top: 10px;
}

.method-item {
    display: flex;
    align-items: center;
    padding: 12px 26px;
}

.method-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.tip-item {
    background: rgba(122, 162, 247, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.tip-badge {
    display: inline-block;
    background: #b464ff;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 5px;
}

.rules-overflow {
    height: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .confirm-rules {
        margin-left: 0;
    }

    .rules-tab {
        padding: 10px 5px;
        font-size: 14px;
    }

    .info-module {
        flex-direction: column;
    }
}

/* 底部页脚样式 */
.site-footer {
    background: rgba(15, 15, 35, 0.9);
    color: var(--text-secondary);
    padding: 30px 0 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(122, 162, 247, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    position: relative;
    cursor: default;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section {
    margin-bottom: 14px;
}

.footer-section h3 {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
}

.footer-section p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .site-footer {
        padding: 30px 0 80px;
    }

    .layout-method {
        justify-content: center !important;
    }
}

.layout-method {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
}

.layout-method-items {
    padding: 10px 30px;
    border: 1px solid rgba(122, 162, 247, .2);
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.5rem;
    margin: 10px 10px;
    color: rgba(224, 224, 255, .6);
    cursor: pointer;
}

.layout-method-items.active {
    color: #e0e0ff;
    background-color: #3a49a8;
    border: 1px solid rgba(29, 29, 89, 1);
}


.versus-header {
    margin-bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* min-height: 32px; */
}

/* 新增排名 */
#versusRankingContainer {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.versus-tabs-record {
    display: flex;
    /* margin-top: 24px; */
    justify-content: center;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #3947a5;
}

.versus-tab-record {
    padding: 10px 20px;
    cursor: pointer;
    /* border: 1px solid #ccc; */
    margin-right: 10px;
}

.versus-tab-record.active {
    background-color: #3a49a8;
    color: white;
    font-size: 1rem;
    border-radius: 20px;
}

.versus-tab-record:hover {
    /* background-color: #f0f0f0; */
    filter: brightness(1.1);
    border-radius: 20px;
}

.ranking-item {
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
    /* background-position-y: 26%; */
    padding: 20px;
    background-color: rgba(0, 0, 0, .5);
    background-blend-mode: lighten !important;
    /* background-size: 30%; */
    position: relative;
    width: calc((100% - 60px) / 2);
    height: 188px;
    border-radius: 16px;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}


/* 移动端样式 */
@media (min-width: 769px) {
    .ranking-name {
        margin-right: 24%;
    }

    .ranking-group {
        margin-right: 24%;
    }

    .ranking-vote {
        margin-right: 24%;
    }
}

.ranking-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: linear-gradient(to bottom, rgba(54, 64, 131, 0.15), rgba(92, 108, 203, 0.3));
    padding: 5px 10px;
    border-radius: 5px;
}

.ranking-name {
    font-size: 1.3rem;
    padding: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 3px 12px black;
    white-space: nowrap;
}

.ranking-group {
    font-size: 1rem;
    color: white;
    text-shadow: 1px 1px 6px black;
    padding-top: 4px;
    white-space: nowrap;
}

.ranking-vote {
    font-size: .9rem;
    color: white;
    text-shadow: 1px 1px 6px black;
    white-space: nowrap;
}

/* 提示框遮罩层 */
.custom-alert-overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
    transition: all 0.3s ease-out;
    backdrop-filter: blur(5px);
}

.custom-double {
    margin-bottom: 6%;
}

.custom-double-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.custom-double-desc {
    font-size: 1rem;
}

.custom-double-buttonGroup {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-top: 32px;
    width: 290px;
}

.custom-alert-button-2 {
    background: rgb(58, 73, 156);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .copy-notification {
        font-size: 1rem;
        padding: 10px 20px;
        border-radius: 6px;
    }
}

/* 新增 */
/* 像素风格滚动条 - 仅移动端显示 */
.pixel-scrollbar {
    position: fixed;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 200px;
    z-index: 1000;
    display: none;
    /* 默认隐藏，JS 控制仅在 tierlist 页面显示 */
}

.pixel-scrollbar-track {
    position: absolute;
    width: 12px;
    height: 100%;
    background: #1a1f2e;
    border: 2px solid #4a6c8f;
    box-shadow:
        inset -2px -2px 0 #0a0e14,
        inset 2px 2px 0 #3a5a7a;
    left: 4px;
    image-rendering: pixelated;
}

.pixel-scrollbar-thumb {
    position: absolute;
    width: 20px;
    height: 50px;
    background: #5a8ab0;
    border: 2px solid #8ab8e0;
    box-shadow:
        inset -2px -2px 0 #2a4a6a,
        inset 2px 2px 0 #8ac0f0,
        2px 2px 0 rgba(0, 0, 0, 0.4);
    left: 0;
    cursor: grab;
    image-rendering: pixelated;
    transition: box-shadow 0.05s;
}

.pixel-scrollbar-thumb:active {
    cursor: grabbing;
    box-shadow:
        inset 2px 2px 0 #2a4a6a,
        inset -2px -2px 0 #8ac0f0,
        1px 1px 0 rgba(0, 0, 0, 0.4);
    transform: translate(1px, 1px);
}

/* 移动端显示 */
@media (max-width: 768px) {
    .pixel-scrollbar.mobile-visible {
        display: block;
    }
}

/*从夯到拉，筛选*/
/* =============================================
   银狼999 · 像素风增强样式
   追加文件，不修改原有 style.css
   ============================================= */

/* ---- 像素风CSS变量（供增强组件使用） ---- */
:root {
    --px-blue: #00d4ff;
    --px-cyan: #00ffcc;
    --px-purple: #7b2fff;
    --px-dark: #060d1a;
    --px-dark2: #0a1628;
    --px-dark3: #0d1f3c;
    --px-mid: #0e2a4a;
    --px-border: #1a3a5c;
    --px-glow-blue: 0 0 8px #00d4ff, 0 0 16px rgba(0, 212, 255, 0.4);
    --px-glow-cyan: 0 0 8px #00ffcc, 0 0 16px rgba(0, 255, 204, 0.4);
    --px-text: #c8e8ff;
    --px-text-dim: #5a8caa;
    --font-pixel: 'Cubic11', 'Courier New', monospace;
}

/* ---- 像素网格背景（微弱氛围感） ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* ---- 扫描线（微弱氛围感） ---- */
.scan-line {
    position: fixed;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 212, 255, 0.12);
    animation: scanMove 6s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes scanMove {
    0% {
        transform: translateY(-100vh);
    }

    100% {
        transform: translateY(100vh);
    }
}

/* =============================================
   KV 过渡渐变层（hero-banner 底部融合）
   ============================================= */
.kv-transition {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(6, 13, 26, 0.45) 35%,
            rgba(6, 13, 26, 0.82) 70%,
            #060d1a 100%);
    z-index: 4;
    pointer-events: none;
}

/* =============================================
   战力榜筛选栏 — 与角色卡片区域统一像素风
   ============================================= */
.tierlist-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-radius: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #1a1a4a;
    border: 2px solid #7aa2f7;
    image-rendering: pixelated;
}

.filter-label {
    color: #c8e8ff;
    font-size: 12px;
    font-family: var(--font-pixel);
    margin-right: 4px;
    white-space: nowrap;
    text-shadow: 0 0 4px rgba(200, 232, 255, 0.3);
}

.filter-btn {
    padding: 4px 12px;
    background: #0d1f3c;
    border: 2px solid #7aa2f7;
    color: #5a8caa;
    font-size: 12px;
    font-family: var(--font-pixel);
    cursor: pointer;
    transition: all 0.15s;
    border-radius: 0;
    image-rendering: pixelated;
    text-shadow: 0 0 2px rgba(90, 140, 170, 0.4);
}

.filter-btn.active {
    background: #1a3a5c;
    color: #00d4ff;
    border-color: #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4), 0 0 16px rgba(0, 212, 255, 0.2);
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.6);
}

.filter-btn:hover {
    background: #1a2a4a;
    color: #00d4ff;
    border-color: #00aaff;
}

.filter-search {
    flex: 1;
    min-width: 100px;
    max-width: 200px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 212, 255, 0.15);
    color: var(--px-text);
    font-size: 12px;
    font-family: var(--font-pixel);
    outline: none;
    border-radius: 0;
    image-rendering: pixelated;
}

.filter-search::placeholder {
    color: var(--px-text-dim);
}

.filter-search:focus {
    border-color: var(--px-blue);
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.15);
}

/* =============================================
   移动端快捷梯队按钮（悬浮右侧）
   ============================================= */

.quick-tier-hint {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--px-blue);
    font-size: 12px;
    font-family: var(--font-pixel);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    /* 新增：默认透明 */
    transition: opacity 0.3s ease;
    /* 新增：淡入淡出 */
}

.mobile-quick-tier {
    position: fixed;
    right: 2px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    display: flex;
    /* 始终 flex，用 opacity 控制显隐 */
    flex-direction: column;
    gap: 4px;
    z-index: 500;
    padding: 4px 3px;
    opacity: 0;
    /* 初始透明 */
    pointer-events: none;
    /* 初始不可点击 */
}

.quick-tier-btn {
    width: 38px;
    height: 38px;
    border: none;
    color: #fff;
    font-size: 11px;
    font-family: var(--font-pixel);
    cursor: pointer;
    transition: transform 0.1s;
    image-rendering: pixelated;
    padding: 0;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
}

.quick-tier-btn:active {
    transform: scale(0.92);
}

.qtier-name {
    font-size: 8px;
    line-height: 1;
    margin-top: 1px;
    pointer-events: none;
}

/* 卡片选中状态（等待分配梯队） */
.quick-selected {
    outline: 2px solid var(--px-blue) !important;
    outline-offset: 2px;
    box-shadow: var(--px-glow-blue) !important;
}

/* 梯队分配闪烁反馈 */
@keyframes tierAssignFlash {
    0% {
        outline: 3px solid var(--px-cyan);
        outline-offset: 2px;
    }

    100% {
        outline: none;
    }
}

.tier-assign-flash {
    animation: tierAssignFlash 0.4s ease-out !important;
}

/* 快捷操作提示浮层 */
.quick-flash-tip {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid var(--px-blue);
    color: var(--px-blue);
    font-family: var(--font-pixel);
    font-size: 12px;
    padding: 6px 18px;
    border-radius: 0;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.4s;
    image-rendering: pixelated;
    white-space: nowrap;
}

.quick-flash-tip.fade-out {
    opacity: 0;
}

/* =============================================
   新手引导弹窗（可配置，默认显示）
   ============================================= */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tutorial-overlay.visible {
    display: flex;
}

.tutorial-modal {
    background: var(--px-dark2);
    border: 1px solid var(--px-blue);
    box-shadow: var(--px-glow-blue), 0 0 40px rgba(0, 212, 255, 0.12);
    max-width: 480px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.tutorial-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--px-blue), var(--px-cyan), transparent);
}

.tutorial-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--px-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tutorial-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid var(--px-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border-radius: 0;
}

.tutorial-header h2 {
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--px-blue);
    margin: 0;
}

.tutorial-header p {
    font-size: 11px;
    color: var(--px-text-dim);
    margin: 3px 0 0;
}

.tutorial-steps {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tutorial-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(0, 212, 255, 0.035);
    border-left: 2px solid var(--px-blue);
    padding: 10px 12px;
}

.step-no {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background: var(--px-blue);
    color: var(--px-dark);
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-pixel);
    border-radius: 0;
}

.step-text {
    font-size: 12px;
    color: var(--px-text);
    line-height: 1.6;
    margin: 0;
}

.step-text strong {
    color: var(--px-cyan);
}

.tutorial-footer {
    padding: 0 20px 20px;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.tutorial-no-show {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--px-text-dim);
    cursor: pointer;
    margin: 0;
}

.tutorial-no-show input {
    accent-color: var(--px-blue);
    margin: 0;
}

.tutorial-confirm {
    width: 100%;
    padding: 10px;
    background: linear-gradient(90deg, var(--px-blue), var(--px-cyan));
    border: none;
    color: var(--px-dark);
    font-size: 13px;
    font-weight: bold;
    font-family: var(--font-pixel);
    cursor: pointer;
    letter-spacing: 2px;
    border-radius: 0;
    image-rendering: pixelated;
    margin: 0;
}

/* =============================================
实时战力榜弹窗
   ============================================= */
.ranking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 13, 26, 0.95);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.ranking-overlay.visible {
    display: flex;
}

.ranking-modal {
    max-width: 800px;
    width: 100%;
    margin: auto;
    padding: 20px 16px 60px;
    position: relative;
}

.ranking-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--px-dark2);
    border: 1px solid var(--px-blue);
    color: var(--px-blue);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    border-radius: 0;
    image-rendering: pixelated;
    transition: background 0.2s;
}

.ranking-close:hover {
    background: rgba(0, 212, 255, 0.08);
    box-shadow: var(--px-glow-blue);
}

.ranking-title {
    text-align: center;
    font-size: 16px;
    letter-spacing: 4px;
    color: var(--px-blue);
    margin: 16px 0 20px;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.ranking-tabs {
    display: flex;
    gap: 0;
    border: 1px solid var(--px-border);
    margin-bottom: 16px;
}

.ranking-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--px-text-dim);
    cursor: pointer;
    border-right: 1px solid var(--px-border);
    transition: all 0.2s;
    font-family: var(--font-pixel);
    border-radius: 0;
    margin: 0;
}

.ranking-tab:last-child {
    border-right: none;
}

.ranking-tab.active {
    color: var(--px-blue);
    background: rgba(0, 212, 255, 0.06);
    box-shadow: inset 0 -2px 0 var(--px-blue);
}

.ranking-list {
    display: none;
}

.ranking-list.active {
    display: block;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--px-border);
    transition: background 0.15s;
}

.ranking-item:hover {
    background: rgba(0, 212, 255, 0.04);
}

.ranking-rank {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--px-text-dim);
    font-family: 'Courier New', monospace;
}

.ranking-avatar {
    width: 40px;
    height: 40px;
    border: 1px solid var(--px-border);
    overflow: hidden;
    flex-shrink: 0;
}

.ranking-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-name {
    font-size: 13px;
    color: var(--px-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.ranking-bar-wrap {
    flex: 2;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0;
}

.ranking-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--px-blue), var(--px-cyan));
    transition: width 0.6s;
    border-radius: 0;
}

.ranking-score {
    font-size: 13px;
    font-weight: bold;
    color: var(--px-blue);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
    white-space: nowrap;
    min-width: 50px;
    text-align: right;
    margin: 0;
}

.ranking-empty,
.ranking-loading {
    text-align: center;
    padding: 24px;
    color: var(--px-text-dim);
    font-size: 13px;
}

/* =============================================
弹窗入场动画
   ============================================= */
@keyframes modalIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tutorial-overlay.visible .tutorial-modal,
.ranking-overlay.visible .ranking-modal {
    animation: modalIn 0.35s cubic-bezier(0.22, 0.68, 0, 1.2) both;
}

/* =============================================
   战力页 Tab 切换
   ============================================= */
.tierlist-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    /* border: 2px solid #5c6ccb; */
    border-radius: 8px;
    overflow: hidden;
}

.tierlist-tab {
    flex: 1;
    max-width: 200px;
    padding: 10px 0;
    text-align: center;
    font-size: 1rem;
    font-family: 'Cubic11', monospace;
    color: #a0a0ff;
    background: rgba(26, 28, 104, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.tierlist-tab.active {
    background: #3a49a8;
    color: #ffffff;
    font-weight: bold;
}

.tierlist-tab:not(:last-child) {
    border-right: 1px solid #5c6ccb;
}

/* =============================================
   大众评分榜 - 梯队排名区域
   ============================================= */
.rank-tier-section {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #0b0e21;
    background: rgba(15, 20, 50, 0.7);
}

.rank-tier-title {
    padding: 8px 15px;
    font-family: 'Cubic11', monospace;
    font-size: 1rem;
    font-weight: bold;
    color: #ffd966;
    text-shadow: 2px 1px 2px #1a1a4a;
    letter-spacing: 2px;
    text-align: center;
}

.rank-tier-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px;
    min-height: 50px;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* 防止溢出 */
}

@media (max-width: 480px) {
    .rank-tier-list {
        gap: 4px;
        padding: 6px;
    }

    .rank-card {
        padding: 3px 5px;
        font-size: 11px;
    }

    .rank-card img {
        width: 28px;
        height: 28px;
    }

    .rank-card-name {
        font-size: 10px;
    }

    .rank-card-count {
        font-size: 10px;
    }
}

.rank-card {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #1a1a4a;
    border: 2px solid #7aa2f7;
    border-radius: 8px;
    padding: 3px 6px;
    font-size: 11px;
    color: #e0e0ff;
    image-rendering: pixelated;
    overflow: hidden;
    /* 防止内容溢出 */
    min-width: 0;
    /* 允许 flex/grid 子元素收缩 */
}

.rank-card img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    /* 图片不缩放 */
}

.rank-card .rank-card-name {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 名字太长显示省略号 */
    flex: 1;
    min-width: 0;
}

.rank-card .rank-card-count {
    color: #ffd966;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    /* 票数不缩放 */
}

/* 排名序号 */
.rank-card-index {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
    flex-shrink: 0;
}

/* 空状态 */
.rank-empty {
    text-align: center;
    padding: 20px;
    color: #5a8caa;
    font-size: 14px;
    width: 100%;
}

/* 加载状态 */
.rank-loading {
    text-align: center;
    padding: 20px;
    color: var(--px-blue);
    font-size: 14px;
    width: 100%;
}

/* 排名序号 */
.rank-card-index {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    flex-shrink: 0;
}

.rank-card:nth-child(1) .rank-card-index {
    background: #ffd700;
    color: #1a1a2e;
}

.rank-card:nth-child(2) .rank-card-index {
    background: #c0c0c0;
    color: #1a1a2e;
}

.rank-card:nth-child(3) .rank-card-index {
    background: #cd7f32;
    color: #fff;
}