/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 480px;
    background-color: #fff;
    min-height: 100vh;
    position: relative;
    margin: 0 auto;
    /* 添加阴影效果，使容器在浅灰色背景上更加突出 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* 头部样式 */
.header {
    background: linear-gradient(to right, #ff6b6b, #ff8e8e);
    padding: 6px 15px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 36px;
    height: 36px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.primary-text {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.secondary-text {
    color: #FFF6A7;
    font-size: 11px;
    line-height: 1.2;
}

/* 头部按钮样式 */
.header-btn {
    flex-shrink: 0;
}

.activity-btn {
    max-width: 96px;
    max-height: 96px;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s ease;
    object-fit: contain;
}

.activity-btn:hover {
    transform: scale(1.05);
}
/* 轮播图样式 */
.swiper-container {
    width: calc(100% - 30px);
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    margin: 8px 15px;
    position: relative;
}

.swiper-slide {
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f5f5f5;
}

.swiper-pagination {
    position: absolute;
    bottom: 10px !important;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

.swiper-slide {
    border-radius: 12px;
    overflow: hidden;
}

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

/* 下载按钮样式 */
.download-btn {
    padding: 6px 15px;
    text-align: center;
}

.download-btn button {
    width: 100%;
    padding: 12px;
    background-color: #F96432;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 400;
}

/* 更多游戏推荐样式 */
.more-games {
    padding: 30px 15px;
    background-color: #FFF4F4;
    min-height: calc(100vh - 150px); /* 减去头部、轮播图和下载按钮的高度 */
}

.more-games-title {
    display: block;
    height: 34px;
    margin-bottom: 15px;
}

.more-games h2 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.game-list {
    /* 移除最大高度和滚动条相关的样式 */
    min-height: 300px;
}

.game-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 定义通用样式 */
.rounded-8 {
    border-radius: 8px;
    overflow: hidden;
}

/* 游戏列表样式 */
.game-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    background-color: #fff;
    margin-bottom: 10px;
    height: 110px;
}

.game-cover {
    width: 50%;
    height: 100px;
    flex-shrink: 0;
}

.game-cover img {
    width: 98%;
    height: 100%;
    object-fit: cover;
    background-color: #fff;
}

.game-info {
    width: 50%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* 应用通用圆角样式 */
.game-item,
.game-cover,
.game-cover img,
.game-icon,
.download-btn button {
    border-radius: 8px;
    overflow: hidden;
}
.game-name {
    font-size: 14px;
    color: #333;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    max-width: 120px;
}

.game-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.play-btn, .download-game-btn {
    padding: 2px 23px;
    border-radius: 16px;
    border: none;
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
}

.play-btn {
    background-color: #F96432;
    color: #fff;
}

.download-game-btn {
    background-color: #5AE243;
    color: #fff;
    /* border: 1px solid #F96432; */
}