/* 全局样式 */
* {
    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;
}

/* 针对整个文档 */
::-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');
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    /* padding-bottom: 80px; */
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    margin-bottom: 100px;
}

/* 基础样式 */
.hero-banner {
    width: 100%;
    height: 100vh;
    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));
    /* 可选：轻微阴影增强立体感 */
    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: #181f3c;
    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: 1000px;
        margin-top: 80px;
    }

    .section-title-overlay {
        margin-top: -200px;
    }

    .section-title-overlay .title-image {
        max-width: 30%;
        transform: translateY(-12px) !important;
    }

    .vote-section {
        /* margin-top: 320px; */
        padding-top: 220px;
    }

    @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: 32%;
        transform: translateY(-12px) !important;
    }

    .vote-section {
        /* margin-top: 280px; */
        padding-top: 180px;
    }

    @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: 100px;
    }

    @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: 72%;
        transform: translateY(-40px);
    }

    .vote-section {
        /* margin-top: 150px; */
        padding-top: 100px;
    }

    .character-image {
        height: 118px !important;
        font-size: .8rem !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;
}

.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 8s 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(1.1) blur(14px) saturate(1.2) contrast(.6);
}


@keyframes gem-glow {

    0%,
    100% {
        filter:
            drop-shadow(0 2px 5px rgba(99, 42, 205, 0.4)) brightness(1);
        transform: scale(1);
    }

    25% {
        filter:
            drop-shadow(0 4px 15px rgba(99, 42, 205, 0.4)) brightness(1);
        transform: scale(1);
    }

    50% {
        filter:
            drop-shadow(0 6px 10px rgba(50, 19, 106, 0.4)) brightness(1);
        transform: scale(1.06);
    }

    75% {
        filter:
            drop-shadow(0 0 20px rgba(68, 56, 232, 0.4)) brightness(1.3);
        transform: scale(1.06);
    }
}

/* 移动端适配（减小光晕范围） */
@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(68, 56, 232, 0.787));
            /* 移动端减少光晕强度 */
        }
    }
}

.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(38, 32, 228, 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;
}

.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: 66px;
}

.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: 4.8rem;
    overflow: hidden;
}


.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: 8px 10px;
    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 {
    color: #e1dcf4;
    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;
    }
}

/* 新增信息模块样式 */

.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;
}

.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 {
    color: #cec5e6;
    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); */
    color: #cec5e6;
    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;
}

.countdown-timer h3 {
    color: #cec5e6;
    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);
    border: none;
    color: var(--color-primary);
    padding: 10px 0;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 14px;
}

.vote-btn:hover {
    background: rgba(122, 162, 247, 0.5);
}

.vote-btn.voted {
    background: #3a30ac;
    color: #fffbff;
}

.vote-count {
    font-size: 1rem;
    color: #9a9dff;
    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: #15153e;
    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: 340px;
    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: -240px 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: #fff;
    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: 30px;
    }

    .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.02);
    }
}

@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 3s infinite;
}

/* 提示框遮罩层 */
.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;
    }
}

/* 底部页脚样式 */
.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;
    }
}