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

body {
    font-family: 'SimHei', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 头部导航 */
header {
    position: relative;
    z-index: 100;
    padding: 37px 0;
}

.logo {
    position: absolute;
    left: 97px;
    top: 37px;
    width: 178px;
    height: 38px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

nav {
    position: absolute;
    top: 48px;
    right: 0;
    display: flex;
    gap: 63px;
    padding-right: 97px;
}

nav a {
    font-size: 20px;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
    transition: color 0.3s;
}

nav a.active {
    color: #b63232;
}

nav a:hover {
    color: #b63232;
}

/* 主要内容区域 */
.main-content {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
}

/* 页面内容容器 */
.page-content {
    display: none;
    width: 100%;
    height: 100%;
}

.page-content.active {
    display: block;
    margin-top: 28px;
}

/* 其他页面允许滚动 */
#page-about,
#page-games,
#page-contact {
    overflow: hidden;
}

/* 游戏资讯页面需要滚动 */
#page-strategy,
#page-role-detail {
    overflow-y: scroll;
    overflow-x: hidden;
}

/* 隐藏滚动条但保持滚动功能 */
#page-strategy::-webkit-scrollbar,
#page-role-detail::-webkit-scrollbar {
    display: none;
}

#page-strategy,
#page-role-detail {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 首页样式 */
#page-home {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.main-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    width: auto;
    height: auto;
}

/* 关于我们页面样式 */
#page-about {
    padding-top: 28px;
}

/* 意见反馈页面样式 */
#page-games {
    padding-top: 28px;
}

/* 联系我们页面样式 */
#page-contact {
    padding-top: 28px;
}

/* 游戏资讯页面样式 */
#page-strategy {
    padding-top: 28px;
}

/* 角色详情页面样式 */
#page-role-detail {
    padding-top: 28px;
}

.role-detail-banner {
    position: relative;
    margin-left: 73px;
    margin-right: 73px;
    height: 344px;
    margin-bottom: 83px;
    overflow: hidden;
}

.role-detail-banner-img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    float: right;
    object-fit: cover;
}

.role-detail-content {
    padding-left: 186px;
    padding-right: 186px;
    padding-bottom: 80px;
}

.role-detail-title {
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.96px;
    margin-bottom: 58px;
    line-height: 1.2;
}

.role-detail-text {
    font-family: 'SimHei', sans-serif;
    font-size: 25px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: #fff;
    white-space: pre-wrap;
}

.role-detail-text h2 {
    font-size: 32px;
    margin: 40px 0 20px 0;
    font-weight: bold;
}

.role-detail-text p {
    margin-bottom: 0;
}

.strategy-content {
    padding-bottom: 80px;
}

/* 游戏资讯页面的页脚 */
.strategy-footer {
    position: relative;
    padding: 30px 0;
    text-align: center;
    color: #aaa;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 0.4px;
    background-color: #000;
}

.strategy-footer p {
    margin-bottom: 0;
}

.role-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.role-item {
    display: flex;
    gap: 133px;
    padding-left: 147px;
    padding-right: 147px;
    margin-bottom: 210px;
}

.role-item:last-child {
    margin-bottom: 0;
}

.role-icon {
    width: 594px;
    height: 525px;
    flex-shrink: 0;
}

.role-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.role-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 13px;
}

.role-title {
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.96px;
    margin-bottom: 57px;
    line-height: 1.2;
}

.role-desc {
    font-family: 'SimHei', sans-serif;
    font-size: 25px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 59px;
    white-space: pre-wrap;
}

.role-button {
    width: 279px;
    height: 68px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.role-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner {
    position: relative;
    margin-left: 75px;
    margin-right: 75px;
    height: 165px;
    margin-bottom: 119px;
    overflow: hidden;
}

.banner-img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    float: right;
    object-fit: cover;
}

.content-wrapper {
    display: flex;
    gap: 220px;
    padding-left: 359px;
    padding-right: 246px;
    padding-bottom: 100px;
}

.page-title {
    font-size: 30px;
    font-weight: normal;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.text-content {
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: 1px;
    color: #fff;
    max-width: 954px;
}

.text-content p {
    margin-bottom: 0;
}

/* 意见反馈内容区域 */
.game-content-wrapper {
    display: flex;
    gap: 251px;
    padding-left: 369px;
    padding-right: 246px;
    padding-bottom: 100px;
}

.game-icon {
    width: 99px;
    height: 99px;
    flex-shrink: 0;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-text-content {
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: 1px;
    color: #fff;
    max-width: 954px;
}

.game-text-content p {
    margin-bottom: 0;
}

/* 底部版权信息 */
footer {
    position: relative;
    padding: 30px 0;
    text-align: center;
    color: #aaa;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 0.4px;
    background-color: #000;
    flex-shrink: 0;
}

footer p {
    margin-bottom: 0;
}

/* 付费弹框 */
.payment-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.payment-modal.active {
    display: flex;
}

.payment-modal-content {
    background-color: #1a1a1a;
    border: 2px solid #b63232;
    border-radius: 10px;
    padding: 30px;
    min-width: 400px;
    position: relative;
}

.payment-header {
    margin-bottom: 30px;
}

.payment-header h3 {
    font-size: 28px;
    color: #fff;
    margin: 0;
    font-weight: bold;
}

.payment-body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.payment-qrcode {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.payment-footer {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.payment-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.payment-btn img {
    height: 50px;
    width: auto;
    object-fit: contain;
}
