* {
    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/devine/reg02.png") format("image"),
         url("../img/devine/down02.png") format("image"),
         url("../img/devine/member02.png") format("image"),
         url("../img/devine/news02.png") format("image"),
         url("../img/devine/setting02.png") format("image"),
         url("../img/devine/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; */
}

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

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.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: 66px; /* 添加导航栏高度的margin */
}

.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.81);
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    min-width: 120px;
}

.dropdown-item {
    color: white;
    padding: 8px 15px;
    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: white;
}

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

.bottom-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    color: #fff;
    font-size: 16px;
    text-align: left;
    /*background: rgba(0, 0, 0, 0.5);*/
    padding: 10px;
    border-radius: 5px;
}

.text-info p {
    color: #FFF;
    margin: 3px 0;
    line-height: 20px;
}

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

.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: 165px;
    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;
}

/* 注册按钮 */
.reg-btn {
    background-image: url("../img/devine/reg01.png");
}

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

/* 下载按钮 */
.down-btn {
    background-image: url("../img/devine/down01.png");
}

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

/* 会员中心 */
.member-btn {
    background-image: url("../img/devine/member01.png");
}

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

/* 新闻按钮 */
.news-btn {
    background-image: url("../img/devine/news01.png");
}

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

/* 设置按钮 */
.setting-btn {
    background-image: url("../img/devine/setting01.png");
}

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

/* 活动资讯 */
.event-btn {
    background-image: url("../img/devine/event01.png");
}

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

/* 音乐播放按钮 */
.music-control {
    position: absolute;
    bottom: 300px; /* 在按钮组上方 */
    left: 50%;
    transform: translateX(-50%);
    width: 356px;
    height: 76px;
    background: url("../img/devine/music_bg.png") no-repeat center center;
    margin-bottom: 20px;
    z-index: 100;
}

.music-button {
    position: relative;
    display: block;
    margin: 14px auto 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    font-size: 0;
    cursor: pointer;
    outline: none;
    transition: background .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/devine/play.png") no-repeat;
    background-position: center top; /* 默认显示播放图标 */
}

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

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

.music-button:not(.paused):hover::before {
    /* 播放状态悬停显示暂停图标 */
    background-image: url("../img/devine/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;
    }
}