:root {
    --main-color: #00cf8b; /* 主色调 */
    --text-color-dark: #333;
    --text-color-light: #666;
    --bg-color-light: #f5f5f5;
    --bg-color-white: #fff;
    --border-color: #eee;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.05);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    background: var(--bg-color-light);
    color: var(--text-color-dark);
    line-height: 1.6;
}

/* 全局布局 */
.wrapper {
    display: grid;
    grid-template-columns: 240px 1fr 280px; /* 左侧边栏、主内容区、右侧边栏 */
    max-width: 1300px; /* 整体最大宽度 */
    margin: 20px auto; /* 居中显示 */
    gap: 20px;
    padding: 0 15px;
}

/* 左侧边栏 */
.left-sidebar {
    background: var(--bg-color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 20px;
    position: sticky;
    top: 20px; /* 吸顶效果 */
    height: fit-content; /* 内容高度 */
}
.sidebar-logo {
    text-align: center;
    margin-bottom: 30px;
}
.sidebar-logo img {
    width: 80px; /* 调整logo大小 */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-light);
}
.sidebar-nav ul {
    list-style: none;
    padding: 0;
}
.sidebar-nav li {
    margin-bottom: 10px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 15px;
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}
.sidebar-nav a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}
.sidebar-nav a:hover {
    background: var(--bg-color-light);
    color: var(--main-color);
}
.sidebar-nav a:hover svg {
    transform: scale(1.1);
}
.sidebar-nav a.active {
    background: #f0fbf5;
    color: #07C160;
}
.sidebar-nav a.active svg {
    fill: #07C160;
}
.h5-game-button {
    display: block;
    width: 100%;
    padding: 12px 0;
    background: var(--main-color);
    color: var(--bg-color-white);
    text-align: center;
    border-radius: 50px; /* 使按钮左右两边呈圆形 */
    text-decoration: none;
    margin-top: 30px;
    font-weight: bold;
    transition: background 0.2s;
}
.h5-game-button:hover {
    background: #00b377; /* 稍微深一点的颜色 */
}

/* 主内容区 */
.main-content {
    /* 移除背景色和阴影 */
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* 右侧边栏 */
.right-sidebar {
    background: var(--bg-color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 20px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .wrapper {
        grid-template-columns: 1fr; /* 在小屏幕上变为单列布局 */
        padding: 0;
        margin: 0;
        gap: 0;
    }
    .left-sidebar,
    .right-sidebar {
        display: none; /* 隐藏侧边栏 */
    }
    .main-content {
        padding: 0;
    }
    .section-box {
        border-radius: 0;
        margin-bottom: 0;
        box-shadow: none;
    }
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    .game-card {
        margin-bottom: 10px;
    }
    .game-card img {
        border-radius: 8px;
    }
    .game-info {
        padding: 5px 0;
    }
    .game-title {
        font-size: 13px;
    }
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .screenshots-grid img {
        aspect-ratio: 3/4;
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    .similar-games-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
}

/* 现有游戏卡片样式调整 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.game-card {
    background: transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.2s;
    text-align: center;
}
.game-card:hover {
    transform: translateY(-3px);
}
.game-card img {
    width: 100%;
    height: auto; /* 高度自适应 */
    aspect-ratio: 1 / 1; /* 保持1:1宽高比 */
    object-fit: cover;
    border-radius: var(--border-radius);
}
.game-info {
    padding: 8px 0;
}
.game-title {
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    color: var(--text-color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-desc {
    /* display: none; */ /* 之前可能用于隐藏描述，但现在不需要 */
}
.game-category-label {
    /* display: none; */ /* 之前可能用于隐藏分类标签，现在移除 */
}

/* 首页游戏卡片上的分类 */
.game-info .game-category {
    font-size: 12px;
    color: var(--text-color-light);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 搜索框容器 */
.search-container {
    margin-bottom: 20px;
    padding: 0;
}

.search-form {
    display: flex;
    gap: 10px;
    margin: 0 auto;
    background: var(--bg-color-white);
    padding: 20px;
    border-radius: 17px;
    box-shadow: var(--shadow-light);
    max-width: none;
}

.search-input {
    flex: 1;
    padding: 12px 10px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(0, 207, 139, 0.1);
}

.search-button {
    padding: 12px 10px;
    background: #00cf8b;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.search-button:hover {
    background: #00b377;
    transform: translateY(-1px);
}

/* 搜索结果样式 */
.search-results {
    padding: 20px;
}

.search-results h2 {
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-color-light);
}

@media (max-width: 992px) {
    .search-container {
        padding: 0;
        margin-bottom: 15px;
    }
    
    .search-form {
        max-width: 100%;
        border-radius: 0;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .search-container {
        margin-bottom: 10px;
    }

    .search-form {
        flex-direction: row;
        gap: 10px;
        padding: 10px;
        border-radius: 0;
    }
    
    .search-button {
        width: auto;
        min-width: 80px;
        padding: 12px 15px;
        white-space: nowrap;
    }

    .search-input {
        padding: 10px 15px;
    }
}

/*  सेक्शन头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.section-header h2 {
    font-size: 18px;
    color: var(--text-color-dark);
    margin: 0;
}
.section-header .more-link {
    color: var(--main-color);
    text-decoration: none;
    font-size: 14px;
}
.section-header .more-link:hover {
    text-decoration: underline;
}

/* 今日推荐 */
.today-recommend {
    margin-bottom: 30px;
}
.recommend-card {
    background: var(--bg-color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: none;
}
.recommend-card:last-child {
    margin-bottom: 0;
}
.recommend-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.recommend-banner {
    width: 100%;
    height: 0;
    padding-bottom: 45%; /* 250/650 = 0.3846，保持650:250的比例 */
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.recommend-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recommend-info {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
}
.recommend-ico {
    width: 60px;
    height: 60px;
    border-radius: 12px; /* 方形图标圆角 */
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.recommend-title {
    flex-grow: 1;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.play-button-small {
    background: var(--main-color);
    color: var(--bg-color-white);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.play-button-small:hover {
    background: #00b377;
}
.no-link {
    color: var(--text-color-light);
    font-size: 14px;
}

/* 热门游戏样式 */
.hot-games {
    margin-bottom: 30px;
}
.hot-game-item {
    margin-bottom: 10px;
}
.hot-game-item a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.hot-game-ico {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.hot-game-info {
    flex-grow: 1;
}
.hot-game-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color-dark);
    margin-bottom: 5px;
    white-space: normal; /* 允许换行 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 限制一行 */
    -webkit-box-orient: vertical;
}
.hot-game-desc {
    color: var(--text-color-light);
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制两行 */
    -webkit-box-orient: vertical;
    max-width: 25em; /* 限制电脑版最多显示25个字 */
}

@media (max-width: 992px) {
    .hot-game-desc {
        max-width: 15em; /* 限制手机版最多显示15个字 */
    }
}

/* 关注公众号样式 */
.follow-us {
    margin-bottom: 30px;
    text-align: center;
}
.qr-code {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
}
.follow-us p {
    color: var(--text-color-dark);
    font-size: 14px;
}

/* 备案信息样式 */
.icp-info {
    text-align: center;
    color: var(--text-color-light);
    font-size: 12px;
}
.icp-info p {
    margin-bottom: 5px;
}

/* game.php 特有样式调整 */
.game-banner-img {
    width: 100%;
    height: 250px; /* 根据实际需要调整高度 */
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}
.game-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.game-detail-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: var(--shadow-light);
}
.game-detail-info h1 {
    font-size: 28px;
    color: var(--text-color-dark);
    margin-bottom: 5px;
}
.game-detail-info p {
    font-size: 14px;
    color: var(--text-color-light);
    display: inline-block;
    background: #f0fbf5;
    color: #07C160;
    padding: 4px 12px;
    border-radius: 4px;
}
.game-detail-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.start-game-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--main-color);
    color: var(--bg-color-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s;
}
.start-game-button:hover {
    background: #00b377;
}
.add-favorite-button {
    display: inline-block;
    padding: 12px 30px;
    background: #f0f0f0;
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s;
}
.add-favorite-button:hover {
    background: #e0e0e0;
}

.game-screenshots {
    margin: 15px 0 0 0;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0 0 10px 0;
}

.screenshot-item {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.screenshot-item.horizontal {
    aspect-ratio: 16/9;
}

.screenshot-item.vertical {
    aspect-ratio: 9/16;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f5f5;
}

.game-screenshots h2 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.no-screenshots {
    text-align: center;
    color: #999;
    padding: 30px;
    font-size: 16px;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 15px 0;
}

.game-description-section {
    margin-top: 15px;
}
.game-description-section h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}
.game-description-content {
    background: var(--bg-color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 20px;
    line-height: 1.8;
    color: var(--text-color-light);
    font-size: 15px;
}
.game-description-content p {
    margin-bottom: 10px;
}

/* 热门游戏在详情页的样式 */
.hot-games-sidebar .game-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.hot-games-sidebar .game-item:last-child {
    border-bottom: none;
}
.hot-games-sidebar .game-item img {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    object-fit: cover;
}
.hot-games-sidebar .game-info h3 {
    font-size: 16px;
    color: var(--text-color-dark);
    margin-bottom: 2px;
}
.hot-games-sidebar .game-info p {
    font-size: 13px;
    color: var(--text-color-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12em; /* 限制宽度为12个字符 */
    display: inline-block; /* 使max-width生效 */
}

/* 底部信息和公众号 */
.about-section,
.wechat-follow {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: center;
}
.wechat-follow h2,
.wechat-follow p {
    display: none;
}
.wechat-follow img {
    max-width: 100%;
    height: auto;
    margin: 0;
}
.about-section p {
    font-size: 12px;
    color: var(--text-color-light);
    margin-bottom: 5px;
}
.about-section a {
    color: var(--main-color);
    text-decoration: none;
}
.about-section a:hover {
    text-decoration: underline;
}

/* 添加全局a标签样式 */
a {
    text-decoration: none;
    color: inherit; /* 继承父元素的颜色 */
}

.content-section {
    padding: 0;
}

.section-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    color: var(--text-color-dark);
    margin: 0;
}

.more-link {
    color: #07C160;
    text-decoration: none;
    font-size: 14px;
    background: #f0fbf5;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.more-link:hover {
    background: #e0f7ed;
}

/* 今日推荐轮播 */
.recommend-slider {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    border-radius: var(--border-radius);
}
.recommend-card {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    margin-bottom: 0;
}
.recommend-card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 游戏详情页样式调整 */
.game-detail-container {
    padding: 0;
    overflow: hidden;
}
.game-banner-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 0;
}
.game-detail-header {
    padding: 20px;
    background: var(--bg-color-white);
}
.game-detail-buttons {
    padding: 0 20px 20px;
    background: var(--bg-color-white);
}
.game-screenshots {
    padding: 20px;
    background: var(--bg-color-white);
    border-top: 1px solid var(--border-color);
}
.game-description-section {
    padding: 20px;
    background: var(--bg-color-white);
    border-top: 1px solid var(--border-color);
}
.game-description-content {
    background: transparent;
    box-shadow: none;
    padding: 0;
}
.similar-games-section {
    padding: 20px;
    background: var(--bg-color-white);
    border-top: 1px solid var(--border-color);
}
.similar-games-section h2 {
    margin-bottom: 20px;
}

.similar-games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.similar-games-grid .game-card {
    margin-bottom: 15px;
}

.similar-games-grid .game-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* 二维码页面样式 */
.qr-container {
    max-width: 400px;
    margin: 50px auto;
    text-align: center;
    padding: 30px;
    background: var(--bg-color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.qr-container h1 {
    font-size: 24px;
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

.qr-container #qrcode {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin: 20px 0;
}

.qr-container p {
    color: var(--text-color-light);
    font-size: 16px;
    margin-top: 20px;
}

/* 游戏分类标签样式 */
.game-categories {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0fbf5;
    border-radius: 4px;
    color: #07C160;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: #e6f7ed;
    color: #07C160;
}

.game-categories .main-category {
    background: #07C160;
    color: #fff;
}

.game-categories .sub-category {
    background: #f0fbf5;
    color: #07C160;
}

/* 分页导航样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 15px; /* 增加按钮之间的间距 */
}

.pagination .page-link {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 8px;
    background-color: #fff; /* 将底色改为白色 */
    color: #07C160; /* 文字颜色不变 */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
    box-shadow: none; /* 移除阴影 */
}

.pagination .page-link:hover {
    background-color: #f0f0f0; /* 悬停时的底色可以稍微变浅 */
}

.pagination span {
    font-size: 16px;
    color: #555;
    font-weight: bold;
}

/* 调试边框（临时，用于截图显示问题） */
.game-screenshots img {
    /* 移除红色边框 */
}

.nav-back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* 固定返回按钮宽度 */
    height: 40px; /* 固定返回按钮高度 */
    border-radius: 50%;
    background-color: #f0fbf5; /* 浅绿色背景 */
    color: #07C160; /* 绿色图标 */
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.nav-back-button svg {
    width: 24px; /* 明确设置 SVG 宽度 */
    height: 24px; /* 明确设置 SVG 高度 */
    fill: currentColor; /* 使用父元素的颜色 */
}
.nav-back-button:hover {
    background-color: #e0f0ea;
}

.nav-home-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background-color: #f0fbf5; /* 浅绿色背景 */
    color: #07C160; /* 绿色文本 */
    border-radius: 20px; /* 圆角胶囊形状 */
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.nav-home-button:hover {
    background-color: #e0f0ea;
}
.nav-home-button svg {
    width: 20px; /* 调整图标大小 */
    height: 20px;
    fill: #07C160; /* 明确设置图标颜色 */
}
.nav-home-button span {
    font-size: 14px;
    font-weight: bold;
}

/* 游戏详情页导航栏样式 */
.game-detail-nav {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 15px;
}

.game-detail-nav .back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.game-detail-nav .back-button:hover {
    background: #eee;
}

.game-detail-nav .back-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.game-detail-nav .nav-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
    flex: 1;
    margin: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-detail-nav .home-button {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    background: #f0fbf5;
    color: #07C160;
    text-decoration: none;
    font-size: 14px;
}

.game-detail-nav .home-button:hover {
    background: #e6f7ed;
}

.game-detail-nav .home-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-right: 4px;
}

.game-detail-nav .home-button span {
    font-size: 14px;
}

@media (max-width: 992px) {
    .game-detail-nav {
        display: flex;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }

    .screenshot-item {
        aspect-ratio: 1/1;
    }

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

@media (max-width: 480px) {
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
        padding: 0 8px;
    }
}

/* 移动端热门游戏样式 */
.mobile-hot-games {
    display: none;
    margin-bottom: 15px; /* 添加底部间距 */
}

/* 移动端底部二维码样式 */
.mobile-qrcode {
    display: none;
    text-align: center;
    padding: 20px;
    background: #fff;
    margin: 20px auto;
    border-radius: var(--border-radius);
    width: 100%; /* 设置宽度为90% */
}

.mobile-qrcode img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .wrapper {
        grid-template-columns: 1fr;
        padding: 0;
        margin: 0;
        gap: 0;
    }

    .left-sidebar, .right-sidebar {
        display: none;
    }

    .main-content {
        padding: 0;
    }

    .mobile-hot-games {
        display: block;
        background: #fff;
        padding: 15px;
        margin-top: 15px;
    }

    .mobile-hot-games .section-header {
        margin-bottom: 15px;
    }

    .mobile-hot-games .game-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .mobile-hot-games .game-card {
        margin: 0;
    }

    .mobile-hot-games .game-card img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: var(--border-radius);
    }

    .mobile-hot-games .game-info {
        padding: 5px 0;
    }

    .mobile-hot-games .game-title {
        font-size: 12px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-qrcode {
        display: block;
    }

    /* 调整游戏网格在移动端的显示 */
    .game-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 8px;
    }

    .game-card .game-info h3 {
        font-size: 12px;
        margin: 5px 0;
    }
}

.recommend-description {
    color: var(--text-color-light);
    font-size: 14px;
    margin: 5px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 20em; /* 限制电脑版最多显示20个字 */
}

@media (max-width: 992px) {
    .recommend-description {
        max-width: 13em; /* 限制手机版最多显示13个字 */
    }
}