/* 页面布局样式 */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* 移除flex布局，让内容自然流动 */
}

/* 固定头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* 主内容容器 - 移除宽度限制以支持iframe完全显示 */
.main-content {
    width: 100%;
    margin: 0 auto;
    padding-top: 70px; /* 为固定头部留出空间 */
    padding-bottom: 40px; /* 为桌面端footer留出空间 */
    padding-left: 5px; /* 减少左侧内边距 */
    padding-right: 5px; /* 减少右侧内边距 */
    box-sizing: border-box; /* 确保内边距不影响总宽度 */
}

/* 移动端样式调整 */
@media (max-width: 768px) {
    /* 为移动端底部导航栏留出空间 */
    .main-content {
        padding-bottom: 80px; /* 增加底部空间，避免被移动端导航栏遮挡 */
    }
    
    /* 调整轮播图容器 */
    .carousel-wrapper {
        margin-top: 70px; /* 为头部导航栏留出空间，确保轮播图完整显示 */
    }
    
    /* 调整游戏模块间距 */
    .new-game-wrapper {
        margin: 10px auto;
    }
    
    .hot-game-wrapper {
        margin: 20px 0;
    }
}

/* 轮播图容器 */
.carousel-wrapper {
    display: block;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
}

/* 推荐游戏容器 */
.new-game-wrapper {
    display: block;
    width: 100%;
    overflow: visible;
    margin: 20px auto;
}

/* 移动端移除推荐游戏上方空白 */
@media (max-width: 768px) {
    .new-game-wrapper {
        margin-top: 0 !important;
    }
}

/* 热门游戏模块样式 */
.hot-game-wrapper {
    width: 100%;
    margin: 30px 0;
    padding: 0;
}

.hot-game-container {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 固定底部样式 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

/* 移动端隐藏原有的footer，使用新的导航栏 */
@media (max-width: 768px) {
    footer {
        display: none;
    }
}