* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
}

html,
body,
div,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
ins,
kbd,
q,
s,
samp,
strike,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
    cursor: url('../images/cursor_ro_default.png'), auto;
}

/* 预加载所有hover状态的图片 */
@font-face {
    font-family: "preloaded-images";
    src: url("../img/divine/reg02.png") format("image"),
        url("../img/divine/down02.png") format("image"),
        url("../img/divine/member02.png") format("image"),
        url("../img/divine/news02.png") format("image"),
        url("../img/divine/setting02.png") format("image"),
        url("../img/divine/event02.png") format("image");
}

a {
    cursor: url('../images/cursor_ro_pointer.png'), auto;
}

a:hover,
a:focus,
a:active {
    cursor: url('../images/cursor_ro_pointer.png'), auto;
}


/* 自定义导航栏样式 */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 1280px;
    height: 66px;
    background-color: rgba(3, 12, 30, .81);
    box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, .35);
    z-index: 100;
}

.logo-img {
    position: absolute;
    top: 75px;
    left: 30px;
    height: 200px;
    z-index: 50;
}

.navbar-nav .nav-link {
    color: white;
    font-size: 16px;
    transition: color 0.3s ease;
    margin-right: 2rem;
    /* 使用相对单位替代pr-5固定间距 */
}

/* 在小屏幕上减小间距 */
@media (max-width: 1400px) {
    .navbar-nav .nav-link {
        margin-right: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        margin-right: 1rem;
    }
}

.navbar-nav .nav-link:hover {
    color: #f6e155;
}

.navbar-brand img {
    width: 200px;
    margin-top: 5px;
    margin-left: 30px;
    /* height: 40px; */
}

/* 移动端菜单切换按钮颜色 */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.login-area {
    color: white;
    margin-left: 15px;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: #030c1e;
    /* 默认底色 */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.video-container video {
    /* 宽度自适应，高度可剪裁 */
    width: 100%;
    height: auto;
    min-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: white;
    text-align: center;
    margin-top: 0;
    /* 移除额外margin，使用flex居中 */
}

.logo {
    margin-bottom: 50px;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.login-area a {
    color: white;
    transition: color 0.3s ease;
    text-decoration: none;
}

.login-area a:hover {
    color: #f6e155;
}

.login-area img {
    margin-left: 18px;
    /*opacity: .6;*/
}

.login-area img:hover {
    color: #f6e155;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    background-color: rgba(3, 12, 30, 0.95);
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    min-width: 120px;
}

.dropdown-item {
    color: white;
    padding: 3px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 14px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: rgba(34, 60, 111, 0.81);
    color: #f6e155;
    padding-left: 25px;
}

.dropdown-toggle::after {
    display: none;
}

.bottom-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    color: #fff;
    font-size: 15px;
    text-align: left;
    padding: 10px;
    pointer-events: none;
    /* 允许点击下方的按钮 */
}

.bottom-info a {
    pointer-events: auto;
    /* 链接恢复可点击 */
}

.text-info p {
    color: #FFF;
    margin: 3px 0;
    line-height: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.text-info .agreement {
    margin-top: 5px;
}

.rating-image {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    z-index: 1000;
}

.rating-image img {
    max-height: 110px;
    width: auto;
}

.button-container {
    position: absolute;
    bottom: 11%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    z-index: 100;
}

.qr-code {
    margin-right: 10px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.button-row {
    display: flex;
    gap: 10px;
}

.btn-image {
    display: inline-block;
    width: 155px;
    height: 44px;
    background-size: 155px 44px;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
}

.btn-image:hover {
    /*transform: scale(1.05);*/
}

/* 按钮背景图设置 */
.reg-btn {
    background-image: url("../img/divine/reg01.png");
}

.reg-btn:hover {
    background-image: url("../img/divine/reg02.png");
}

.down-btn {
    background-image: url("../img/divine/down01.png");
}

.down-btn:hover {
    background-image: url("../img/divine/down02.png");
}

.member-btn {
    background-image: url("../img/divine/member01.png");
}

.member-btn:hover {
    background-image: url("../img/divine/member02.png");
}

.discord-btn {
    background-image: url("../img/divine/discord01.png");
}

.discord-btn:hover {
    background-image: url("../img/divine/discord02.png");
}

.news-btn {
    background-image: url("../img/divine/news01.png");
}

.news-btn:hover {
    background-image: url("../img/divine/news02.png");
}

.setting-btn {
    background-image: url("../img/divine/setting01.png");
}

.setting-btn:hover {
    background-image: url("../img/divine/setting02.png");
}

.event-btn {
    background-image: url("../img/divine/event01.png");
}

.event-btn:hover {
    background-image: url("../img/divine/event02.png");
}

/* 音乐播放按钮 */
.music-control {
    position: absolute;
    bottom: 27%;
    left: 50%;
    transform: translateX(-50%);
    width: 356px;
    height: 76px;
    background: url("../img/divine/music_bg.png") no-repeat center center;
    background-size: contain;
    z-index: 100;
}

.music-button {
    position: relative;
    display: block;
    margin: 14px auto 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: all .2s linear;
}

.music-button:focus {
    outline: none;
    box-shadow: none;
}

.music-button::before {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    background: url("../img/divine/play.png") no-repeat center top;
}

.music-button.paused::before {
    background-image: url("../img/divine/pause.png");
    background-position: center top;
    /* 显示暂停图标 */
}

.music-button:hover {
    background: transparent;
}

.music-button:not(.paused):hover::before {
    /* 播放状态悬停显示暂停图标 */
    background-image: url("../img/divine/play.png");
    background-position: center bottom;
}

.music-button.paused:hover::before {
    /* 暂停状态悬停显示播放图标 */
    background-position: center bottom;
}

/* 移动端适配 */
@media (max-width: 991px) {

    html,
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100% !important;
        position: relative !important;
    }

    .navbar-custom {
        min-width: 100% !important;
        height: 78px !important;
        padding: 0 10px !important;
        position: fixed !important;
        z-index: 1000;
        width: 100% !important;
    }

    .navbar-brand img {
        width: 130px;
        margin-left: 0;
        margin-top: 5px;
    }

    .navbar-toggler {
        padding: 4px 8px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.05);
        margin-top: 5px;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
    }

    .navbar-collapse {
        background-color: rgba(10, 15, 25, 0.98);
        padding: 10px 20px 20px;
        border-bottom: 1px solid #d1ad67;
        position: fixed;
        top: 78px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 78px);
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        margin-right: 0;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 14px;
    }

    .login-area {
        margin-left: 0;
        margin-top: 10px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        text-align: center;
    }

    /* 背景自适应 */
    .video-container video {
        display: none;
    }

    .video-container {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100% !important;
        background: url("../img/divine/bg_static.jpg?ver=2") no-repeat center top !important;
        background-size: cover !important;
        z-index: -1;
    }

    /* 内容排列 */
    .content {
        height: auto !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding-top: 120px;
        padding-bottom: 30px;
        position: relative;
    }

    .music-control {
        position: relative !important;
        margin-top: auto !important;
        margin-bottom: 10px !important;
        width: 260px;
        height: 52px;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        background-size: 100% 100%;
        z-index: 10;
    }

    .music-button {
        width: 32px;
        height: 32px;
        margin: 9px auto 0;
    }

    .music-button::before {
        width: 18px;
        height: 18px;
        background-size: 100% 200% !important;
        /* 强制背景图缩放以适配容器 */
    }

    .qr-code {
        display: none;
    }

    .button-container {
        position: relative !important;
        width: 100%;
        margin-bottom: 40px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        z-index: 10;
        transform: none !important;
        left: auto !important;
        bottom: auto !important;
    }

    .button-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    .button-row {
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 6px;
        /* 间距更小 */
    }

    .btn-image {
        width: 114px;
        /* 按钮更大 */
        height: 32px;
        background-size: 100%;
    }

    .bottom-info {
        position: relative !important;
        left: 0px;
        bottom: 0px;
        width: 100%;
        padding: 30px 15px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
        text-align: center;
    }

    .text-info p {
        /*font-size: 11px;*/
        /*line-height: 1.6;*/
        /*margin: 4px 0;*/
        color: #eee;
    }

    .rating-image {
        position: fixed;
        top: 98px;
        right: 15px;
        z-index: 100;
        background: transparent;
    }

    .rating-image img {
        max-height: 54px;
        width: auto;
    }
}

@media (max-width: 360px) {
    .content {
        padding-top: 90px;
    }

    .btn-image {
        width: 92px;
        height: 26px;
    }

    .rating-image img {
        max-height: 48px;
    }
}

/* Floating Promo Ad */
.promo-float-ad {
    position: fixed;
    top: 100px;
    left: 80px;
    width: 200px;
    height: 200px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.promo-float-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    /*box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);*/
}

.promo-float-ad:hover {
    /*transform: translateY(-5px);*/
}

.promo-float-ad1 {
    position: fixed;
    top: 300px;
    left: 80px;
    width: 200px;
    height: 200px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.promo-float-ad1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    /*box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);*/
}

.promo-float-ad1:hover {
    /*transform: translateY(-5px);*/
}

/* Hide on mobile/tablet */
@media (max-width: 991px) {
    .promo-float-ad {
        display: none;
    }
    .promo-float-ad1 {
        display: none;
    }    
}