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

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

/* 预加载所有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");
}

/* 自定义导航栏样式 */
.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'%3Base path 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: 10px 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");
}

.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: 768px) {
    .buttons {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .navbar-custom {
        min-width: auto;
    }

    /* 移动设备上禁用悬停效果 */
    .dropdown-menu {
        display: none;
    }

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

    .dropdown.show .dropdown-menu {
        display: block !important;
    }
}

/* 响应式媒体查询 - 移动端适配 */
@media (max-width: 991px) {
    body {
        overflow-y: auto;
    }

    .navbar-custom {
        min-width: 100%;
        height: auto;
    }

    .navbar-brand img {
        width: 150px;
        margin-left: 10px;
    }

    .navbar-collapse {
        background-color: rgba(3, 12, 30, 0.98);
        padding: 15px;
    }

    .navbar-nav .nav-link {
        margin-right: 0;
        padding: 12px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .login-area {
        margin-left: 0;
        margin-top: 15px;
        padding: 15px 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    .video-container video {
        display: none;
        /* 移动端隐藏大视频，节省流量 */
    }

    .video-container {
        background-image: url("../img/divine/bg_static.jpg");
        /* 请确保该图片存在，否则使用背景色 */
    }

    .music-control {
        bottom: 300px;
        width: 300px;
        height: 64px;
    }

    .music-button {
        margin: 8px auto 0;
        width: 40px;
        height: 40px;
    }

    .button-container {
        bottom: 120px;
        flex-direction: column;
        align-items: center;
        width: 90%;
    }

    .qr-code {
        display: none;
        /* 手机访问时隐藏二维码 */
    }

    .button-group {
        width: 100%;
        gap: 8px;
    }

    .button-row {
        justify-content: center;
        width: 100%;
    }

    .btn-image {
        width: 110px;
        height: 31px;
        background-size: 110px 31px;
    }

    .bottom-info {
        bottom: 10px;
        left: 0;
        width: 100%;
        text-align: center;
        font-size: 12px;
    }

    .text-info p {
        line-height: 16px;
    }

    .rating-image {
        top: 80px;
        right: 10px;
        bottom: auto;
    }

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

    /* 弹窗适配 */
    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 1.5rem !important;
    }
}

@media (max-width: 350px) {
    .btn-image {
        width: 95px;
        height: 27px;
        background-size: 95px 27px;
    }
}