* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #324d70;
    font-family: 'Arial', sans-serif;
    color: hsl(0, 0%, 100%);
    height: auto;
    overflow-y: auto;
}

.textTitle {
	position: absolute;
	height: 3vw;
	top: 25%;
	left: 35.5%;
	transform: translate(-50%, -50%);
}

@media screen and (min-width: 769px) {
    .container {
        position: relative;
        width: 60%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -40%);
        background: #fff;
    }
}

.gift-pack-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: #b89d4d;  /* 更新为图片中的金色 */
}

.gift-packs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 40px 0;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.gift-pack {
    width: calc(20% - 16px);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gift-pack:hover {
    transform: scale(1.05);
}

.gift-pack img {
    width: 100%;
    height: auto;
    display: block;
}

.terms {
    background: #b89d4d;
    padding: 40px;
}

.terms h2 {
    color: #fff;
    font-style: italic;
}

.terms p {
    line-height: 1.6;
    color: #000;
}

@media screen and (max-width: 768px) {
    /*.container {*/
    /*    padding: 0 10px;*/
    /*    top: 20%;  !* 移动端稍微往下一点 *!*/
    /*}*/

    .header h1 {
        font-size: 24px;
    }

    .gift-pack {
        width: calc(50% - 20px);
    }
}

/* 登录按钮 */
.login-btn {
    position: fixed;
    top: calc(100vw * 100/2560);  /* 导航栏高度 */
    right: 50px;
    padding: 10px 30px;
    background: url('../images/bg_btn.png') no-repeat center/100% 100%;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 100;
}

.login-btn:hover {
    opacity: 0.8;
}

/* 用户信息显示 */
.user-info {
    display: none;
    position: fixed;
    top: calc(100vw * 100/2560);  /* 导航栏高度 */
    right: 20px;
    color: #fff;
    text-align: right;
    z-index: 100;
}

.user-info p {
    margin: 5px 0;
}

.logout-btn {
    padding: 5px 15px;
    background: #b89d4d;
    border: none;
    color: #fff;
    cursor: pointer;
    margin-top: 5px;
    border-radius: 5px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #9a823f;
}
.switch-btn {
    padding: 5px 15px;
    background: #b89d4d;
    border: none;
    color: #fff;
    cursor: pointer;
    margin-top: 5px;
    border-radius: 5px;
    transition: background 0.3s;
    margin-right: 10px;
}

.switch-btn:hover {
    background: #9a823f;
}

/* 登录弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2a2f3f;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}

.modal-title {
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
}

/* select 选项的颜色 */
.form-group select option {
    background: #2a2f3f;
    color: #fff;
}

.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-group input {
    width: 60%;
}

.captcha-img {
    width: 40%;
    height: 35px;
    background: #444;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    letter-spacing: 2px;
    font-family: monospace;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background: #b89d4d;
    border: none;
    color: #fff;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #9a823f;
}

.error-message {
    color: #ff4444;
    margin-top: 10px;
    text-align: center;
    display: none;
}

/* 导航栏样式 */
.pageNav {
    width: 100vw;
    position: fixed;
    left: 0%;
    top: 0%;
    z-index: 100;
    height: calc(100vw * 100/2560);  /* 背景图尺寸 2560x100 */
}

.pageNav .bgImage {
    width: 100vw;
}

.navHome, .navCharacter, .navFeatures, .navNews, .navSubcribe {
    position: absolute;
    height: 10%;
    top: 50%;
    z-index: 100;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.navHome {
    left: 30%;
}

.navCharacter {
    left: 38%;
}

.navFeatures {
    left: 46%;
}

.navNews {
    left: 54%;
}

.navSubcribe {
    left: 62%;
}

/* 移动端导航适配 */
@media screen and (max-width: 768px) {
    .mobile-nav {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .navHome,
    .navCharacter,
    .navFeatures,
    .navNews,
    .navSubcribe {
        display: none;
    }
}

/* 移动端导航样式 */
.mobile-nav {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    padding: 60px 20px;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-item {
    text-align: center;
    margin: 20px 0;
}

.mobile-menu-item img {
    height: 30px;
    cursor: pointer;
}

/* 背景图 */
.bg-payment {
    width: 100%;
    height: auto;
    display: block;
}

/* 自定义滚动条样式 */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: #b89d4d;
    border-radius: 4px;
}

/* 添加桌面小部件按钮 */
.add-widget-btn {
    position: fixed;
    top: calc(100vw * 100/2560);  /* 与登录按钮对齐 */
    right:250px;  /* 在登录按钮左侧 */
    padding: 10px 30px;
    background: url('../images/bg_btn.png') no-repeat center/100% 100%;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 100;
}

.add-widget-btn:hover {
    opacity: 0.8;
} 