/* 响应式样式 */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    /* 专题项目 */
    .topic-item.large {
        width: 50%;
    }

    .topic-item.small {
        width: 25%;
    }

    /* 排行榜 */
    .rank-container {
        flex-wrap: wrap;
    }

    .rank-column {
        width: 50%;
        margin-bottom: 20px;
    }

    .rank-column:last-child {
        width: 100%;
    }

    /* 页脚 */
    .footer-links {
        flex-direction: column;
    }

    .link-group {
        width: 100%;
        text-align: center;
        margin: 10px;
    }

    /* 推荐游戏图片 */
    .game-list.featured .game-img {
        width: 100px;
        height: 100px;
    }
}

/* 手机设备 (小于768px) */
@media screen and (max-width: 767px) {
    /* 头部 */
    .top-links {
        justify-content: center;
    }

    .header-main {
        flex-wrap: wrap;
    }

    .logo {
        margin: 0 auto 10px;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        margin: 10px 0 0;
    }

    /* 显示菜单按钮 */
    .menu-toggle {
        display: flex;
        order: 2;
    }

    /* 导航栏收起 */
    .main-nav {
        position: relative;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #319dfe;
        z-index: 100;
        align-items: center;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-list li a {
        padding: 12px 20px;
        display: inline-block;
        width: 100%;
    }

    /* 推荐游戏 */
    .game-list.featured .game-item {
        width: 100%;
        margin-bottom: 10px;
    }

    .game-list.featured .game-img {
        width: 80px;
        height: 80px;
    }
    /* 分类选项卡 */
    .category-tabs {
        margin: 0 10px;
        overflow-x: auto;
        white-space: nowrap;
        display: block;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    .category-tabs a {
        display: inline-block;
        margin-bottom: 5px;
    }

    /* 专题项目 */
    .topic-item.large {
        width: 100%;
    }

    .topic-item.small {
        width: 33.33%;
    }

    /* 排行榜 */
    .rank-column {
        width: 100%;
    }

    /* 页脚 */
    .footer-links {
        flex-direction: column;
    }

    .banner-ad {
        height: auto;
        margin: 10px auto;
        padding: 0 10px;
    }

    .banner-content {
        flex-direction: column;
        gap: 0;
    }

    .banner-info {
        width: 100%;
        order: 2;
        padding: 15px 15px 20px;
    }

    .banner-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .game-badges {
        margin-bottom: 12px;
    }

    .banner-image {
        width: 100%;
        height: 200px;
        order: 1;
    }

    .banner-recommendations {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .recommendation-item img {
        width: 70px;
        height: 70px;
    }

    .rec-info {
        padding-left: 5px;
    }

    .rec-title {
        font-size: 14px;
    }

    .rec-type, .rec-size {
        font-size: 12px;
    }

    .recommendation-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* 小屏手机 (小于480px) */
@media screen and (max-width: 480px) {

    .game-grid .game-img {
        width: 60px;
        height: 60px;
    }

    /* 专题项目 */
    .topic-item.small {
        width: 50%;
    }

    /* 标签行 */
    .tag-row {
        flex-wrap: wrap;
    }

    .tag-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .banner-image {
        height: 180px;
    }

    .banner-recommendations {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
    }

    .recommendation-item {
        width: 100%;
        height: 100px;
        border-radius: 8px;
        padding: 6px;
        align-items: center;
    }


    .rec-title {
        font-size: 13px;
    }

    .rec-type, .rec-size {
        font-size: 11px;
    }

    .rec-download {
        padding: 1px 6px;
        font-size: 16px;
        width: 100px;
        height: 30px;
        text-align: center;
        line-height: 25px;
        margin-right: 10px;
    }

    .slider-dots .dot {
        width: 8px;
        height: 8px;
    }

    .game-list.featured .game-img {
        width: 80px;
        height: 80px;
    }

    .game-list.featured h3 {
        font-size: 14px;
    }

    .game-list.featured p {
        font-size: 11px;
    }

    .banner-info {
        padding: 12px 12px 18px;
    }

    .banner-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .game-badges {
        margin-bottom: 10px;
    }

    .banner-ad {
        padding: 0 0px;
    }
}
/* 资讯详情页面样式 */
.article-container {
    max-width: 1200px;
    margin: 15px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.article-main {
    flex: 3;
    min-width: 0;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.article-sidebar {
    flex: 1;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #319dfe;
}

.article-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    color: #999;
    font-size: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.article-meta span {
    margin-right: 15px;
}

.article-content {
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    border-radius: 4px;
}

.article-section {
    margin-bottom: 20px;
}

.article-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #319dfe;
    margin-bottom: 15px;
    position: relative;
    padding-left: 12px;
}

.article-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: #319dfe;
}

.related-articles {
    margin-top: 30px;
    border-top: 1px dashed #eee;
    padding-top: 20px;
}

.related-list {
    list-style: none;
}

.related-list li {
    position: relative;
    padding-left: 12px;
    margin-bottom: 12px;
}

.related-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #319dfe;
}

.related-list a {
    color: #333;
    line-height: 1.6;
}

.related-list a:hover {
    color: #319dfe;
}

.comment-section {
    margin-top: 30px;
}

.comment-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.comment-form {
    margin-bottom: 20px;
}

.comment-textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    resize: none;
    margin-bottom: 10px;
    font-family: inherit;
    font-size: 14px;
}

.comment-submit {
    padding: 8px 20px;
    background-color: #319dfe;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.comment-submit:hover {
    background-color: #1a7afe.game-grid.game-img;
}

.comment-tips {
    color: #999;
    font-size: 12px;
    text-align: right;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.hot-article-list .item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.hot-article-list .item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-article-list .item-img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
    margin: 5px 0;
}

.hot-article-list .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-article-list .item-info {
    flex: 1;
    min-width: 0;
}

.hot-article-list .item-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.hot-article-list .item-date {
    font-size: 12px;
    color: #999;
}

.ranking-list {
    counter-reset: ranking;
}

.ranking-list .item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.ranking-list .item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ranking-list .item::before {
    counter-increment: ranking;
    content: counter(ranking);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: #eee;
    color: #666;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.ranking-list .item:nth-child(1)::before,
.ranking-list .item:nth-child(2)::before,
.ranking-list .item:nth-child(3)::before {
    background-color: #319dfe;
    color: #fff;
}

.ranking-list .item-title {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.game-recommend {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.game-recommend .item {
    width: 33.33%;
    padding: 0 5px;
    margin-bottom: 15px;
}

.game-recommend .item-inner {
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
}

.game-recommend .item-img {
    overflow: hidden;
}

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

.game-recommend .item-info {
    padding: 8px;
    text-align: center;
}

.game-recommend .item-title {
    font-size: 12px;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-recommend .item-type {
    font-size: 10px;
    color: #999;
}

@media screen and (max-width: 768px) {
    .article-container {
        flex-direction: column;
    }

    .article-sidebar {
        width: 100%;
    }

    .article-title {
        font-size: 20px;
    }

    .game-recommend .item {
        width: 33.33%;
    }
}

/* 专题详情页样式 */
.topic-container {
    max-width: 1200px;
    margin: 15px auto;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.breadcrumb {
    color: #999;
    font-size: 12px;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #319dfe;
}

.topic-header {
    text-align: center;
    margin-bottom: 30px;
}

.topic-title {
    font-size: 16px;
    font-weight: bold;
}

.topic-banner {
    margin: 0 auto 20px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.topic-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.topic-desc {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #555;
}

.topic-desc p {
    margin-bottom: 15px;
}

.download-meta {
    text-align: left;
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.download-meta span {
    margin-right: 15px;
}

.download-list {
    margin-bottom: 40px;
}

.download-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    border-left: 4px solid #319dfe;
    padding-left: 10px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.download-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.item-img {
    position: relative;
}

.download-item:hover .item-img img {
    transform: scale(1.05);
}

.item-tag {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #319dfe;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 0 0 8px 0;
}

.item-info {
    padding: 15px;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.item-size, .item-date {
    flex: 1;
}

.item-rating {
    display: flex;
    margin-bottom: 15px;
}

.star {
    color: #e0e0e0;
    font-size: 16px;
}

.star.filled {
    color: #ffc107;
}

.item-btn {
    display: block;
    text-align: center;
    color: #878787;
    padding: 8px 0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.item-btn:hover {
    color: #878787;
}

.topic-recommended {
    margin-top: 40px;
}

.related-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 2;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.related-img {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.rec-collection-desc {
    padding: 15px;
}

.rec-collection-desc p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 63px;
}

.related-item:hover .related-img img {
    transform: scale(1.05);
}

.related-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.related-info h3 {
    color: #fff;
    font-size: 18px;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.related-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-type {
    font-size: 12px;
    color: #999;
}

@media screen and (max-width: 1024px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .topic-container {
        padding: 15px;
    }

    .topic-title {
        font-size: 22px;
    }

    .download-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .related-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .download-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .related-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .item-img {
        width: 80px;
        height: 80px;
        margin: auto;
    }

    .topic-title {
        font-size: 20px;
    }
}
/* 面包屑导航 */
.breadcrumb {
    border-radius: 4px;
    padding: 5px 0;
    font-size: 13px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb span {
    color: #319dfe;
}

/* 过滤器 */
.game-filter {
    margin-top: 15px;
    background-color: #fff;
    border-radius: 4px;
    padding: 10px 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-item {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.filter-item:last-child {
    border-bottom: none;
}

.filter-label {
    color: #333;
    font-weight: bold;
    width: 50px;
    flex-shrink: 0;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

.filter-options a {
    margin: 0 15px 5px 0;
    color: #666;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 3px;
}

.filter-options a.active {
    background-color: #319dfe;
    color: #fff;
}

.filter-options a:hover:not(.active) {
    color: #319dfe;
}

.game-list-wrapper {
    width: 75%;
    padding-right: 15px;
}

.sidebar {
    width: 25%;
}

.game-rec-item a:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 游戏排序 */
.game-sort {
    display: flex;
    margin-left: 20px;
    align-items: center;
}

.game-sort a {
    padding: 0 10px;
    font-size: 14px;
    color: #666;
    position: relative;
}

.game-sort a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: #ddd;
}

.game-sort a.active,
.game-sort a:hover {
    color: #319dfe;
}

/* 游戏列表 */
.game-list {
    background-color: #fff;
    border-radius: 4px;
}

.gameItem {
    padding: 20px 0;
}

.gameItem:last-child {
    border-bottom: none;
}

.gameItem a {
    display: flex;
    transition: all 0.3s ease;
    position: relative;
}

.gameItem a:hover {
    transform: translateY(-2px);
}

.gameItem-img {
    text-align: center;
    width: 30%; /* PC端占30% */
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 2%; /* 中间间隔2% */
    flex-shrink: 0;
}

.gameItem-img img {
    width: 110px;
    object-fit: cover;
}

.gameItem-info {
    width: 100%; /* PC端占68% */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

/* gameItem-info内部左右布局 */
.left-section {
    width: 100%;
    padding-right: 10px;
}

.right-section {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.gameItem-info h3 {
    width: 100%;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating {
    width: 100%;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    gap: 0 10px;
}

.rating span {
    margin-right: 10px;
    color: #999;
    font-size: 12px;
}

.rating .stars {
    color: #ffb800;
    font-size: 14px;
}

.gameItem-info p {
    margin-bottom: 5px;
    color: #666;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gameItem-info p span {
    color: #999;
}

.game-desc {
    color: #999;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    margin-top: 10px;
    width: 100%;
}

.gameItem-info .download-btn {
    padding: 5px 15px;
    background-color: #319dfe;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    margin-top: 10px;
}

/* 响应式调整 */
@media screen and (max-width: 767px) {
    .gameItem a {
        flex-wrap: wrap;
    }

    .gameItem-img {
        width: 30%;
        margin-bottom: 10px;
    }

    .gameItem-info {
        width: 68%;
        flex-direction: column;
    }

    .left-section,
    .right-section {
        padding-right: 0;
    }
}

@media screen and (max-width: 480px) {
    .gameItem-img {
        width: 30%;
    }

    .gameItem-info {
        width: 68%;
    }

    .gameItem-info h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .rating {
        margin-bottom: 5px;
    }

    .game-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
        margin-top: 5px;
    }
}

/* 侧边栏 */
.sidebar-block {
    background-color: #fff;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.sidebar-title {
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 50px;
    height: 2px;
}

/* 热门排行 */
.hot-rank-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.hot-rank-list li:last-child {
    border-bottom: none;
}

.rank-num {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #ddd;
    color: #fff;
    border-radius: 3px;
    margin-right: 10px;
    font-size: 12px;
    flex-shrink: 0;
}

.rank-num.top {
    color: #FFFFFF;
    background-color: #319dfe;
}

.hot-rank-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.rank-game-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.rank-game-info img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-right: 10px;
}

.rank-game-info h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.rank-game-info p {
    font-size: 12px;
    color: black;
}

.download-icon {
    padding: 2px 6px;
    background-color: #319dfe;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
}

/* 最近更新 */
.recent-update-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.recent-update-list li:last-child {
    border-bottom: none;
}

.recent-update-list a {
    display: flex;
    align-items: center;
}

.update-tag {
    color: #319dfe;
    margin-right: 5px;
    font-size: 12px;
    flex-shrink: 0;
}

.update-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    font-size: 14px;
}

.update-date {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
    flex-shrink: 0;
}

/* 相关专题 */
.topic-img-list {
    display: flex;
    flex-direction: column;
}

.topic-img-list a {
    margin-bottom: 15px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.topic-img-list img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.topic-img-list a:hover img {
    transform: scale(1.05);
}

.topic-img-list span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    font-size: 13px;
    text-align: center;
}

/* 响应式样式调整 */
@media screen and (max-width: 1024px) {
    .game-list-wrapper {
        width: 70%;
    }

    .sidebar {
        width: 30%;
    }

    .game-rec-img {
        width: 100px;
        height: 100px;
    }
}

@media screen and (max-width: 767px) {
    .game-list-wrapper {
        width: 100%;
        padding-right: 0;
    }

    .sidebar {
        width: 100%;
        margin-top: 20px;
    }

    .game-rec-item a {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-rec-img {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    .download-btn-lg {
        position: static;
        margin-top: 15px;
        align-self: center;
    }

    .gameItem a {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
    }

    .gameItem-img {
        margin-right: 10px;
        width: 70px;
        height: 70px;
    }

    .gameItem-info {
        max-width: calc(100% - 90px);
    }

    .game-desc {
        width: 100%;
        -webkit-line-clamp: 2;
    }

    .gameItem-info .download-btn {
        position: absolute;
        right: 0;
        top: 20%;
        transform: translateY(-50%);
        bottom: auto;
        padding: 3px 10px;
        font-size: 13px;
    }

    .filter-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-label {
        margin-bottom: 5px;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .game-rec-img {
        width: 70px;
        height: 70px;
    }

    .game-sort {
        margin-left: 10px;
    }

    .game-sort a {
        padding: 0 5px;
        font-size: 12px;
    }

    .hot-rank-list a {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .rank-game-info {
        flex: 1;
        margin-right: 8px;
        overflow: hidden;
    }

    .rank-game-info h4 {
        max-width: 100%;
    }

    .download-icon {
        margin-top: 0;
        margin-left: 0;
        flex-shrink: 0;
    }

    .gameItem-img {
        width: 60px;
        height: 60px;
    }

    .gameItem-info {
        max-width: calc(100% - 70px);
    }

    .gameItem-info h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .rating {
        margin-bottom: 5px;
    }

    .game-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
        margin-top: 5px;
    }
}

/* 移动端游戏详情页样式 */

/* 只在移动端应用这些样式 */
@media screen and (max-width: 768px) {
    .game-info-header {
        display: flex;
        flex-wrap: wrap;
        padding: 15px;
        background-color: #fff;
        border-radius: 4px;
        margin-bottom: 20px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        align-items: center;
    }

    /* 游戏封面图标 */
    .game-cover {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }

    .game-cover img {
        width: 80px;
        height: 80px;
        border-radius: 15px;
        object-fit: cover;
    }

    /* 游戏标题 */
    .game-title {
        text-align: center;
        font-size: 18px;
        font-weight: bold;
        color: #333;
        margin-bottom: 10px;
    }

    /* 游戏元数据部分 - 左右布局 */
    .game-meta {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-bottom: 15px;
    }

    .meta-row {
        width: 30%;
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }

    .meta-item {
        color: #666;
        font-size: 12px;
        margin-bottom: 5px;
    }

    .meta-item strong {
        color: #333;
        font-weight: 500;
    }

    /* 星级评分 */
    .star-rating {
        display: inline-block;
        vertical-align: middle;
        margin-left: 5px;
    }

    .filled-star {
        color: #319dfe;
    }

    .empty-star {
        color: #ddd;
    }

    /* 下载区域 */
    .download-section {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }

    .download-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .download-btn {
        flex: 1;
        display: inline-block;
        padding: 8px 0;
        color: #fff;
        font-size: 12px;
        border-radius: 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .android-btn {
        background-color: #3ddc84;
    }

    .ios-btn {
        background-color: #007aff;
    }
}

/* 更小屏幕的微调 */
@media screen and (max-width: 480px) {
    .game-info-header {
        padding: 12px;
    }

    .meta-row {
        width: 30%;
    }

    .meta-item {
        font-size: 12px;
    }
}

/* 专题内容左右布局 */
/* 默认样式（移动端） */
.topicContent {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.topicBBanner {
    width: 100%;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.topicBBanner img {
    padding: 10px;
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.topicContent:hover .topicBBanner img {
    transform: scale(1.05);
}

.topicDesc {
    width: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.topicDesc p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.topicDesc p:last-child {
    margin-bottom: 0;
}

/* PC端布局 */
@media screen and (min-width: 769px) {
    .topicContent {
        flex-direction: row;
    }

    .topicBBanner {
        width: 40%; /* PC端占40% */
        margin-bottom: 0;
        height: auto;
    }

    .topicDesc {
        width: 58%; /* PC端占58% */
        margin-left: 2%; /* 间隔2% */
        padding: 25px;
    }
}

.topic-list-wrapper {
    width: 100%;
}

/* 顶部banner */
.topic-banner {
    margin-bottom: 20px;
}

.topic-banner img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 专题网格布局 */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.topic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.topic-item a {
    display: block;
    color: #333;
}

.topic-img {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.topic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.topic-item:hover .topic-img img {
    transform: scale(1.05);
}

.topic-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
}

.topic-overlay h3 {
    font-size: 16px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.topic-info {
    padding: 15px;
}

.topic-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.topic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.count {
    background-color: #f5f5f5;
    padding: 3px 8px;
    border-radius: 3px;
}

.views {
    display: flex;
    align-items: center;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .topic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .topic-img {
        height: 120px;
    }

    .topic-overlay h3 {
        font-size: 14px;
    }

    .topic-info h3 {
        font-size: 14px;
    }

    .topic-info p {
        font-size: 12px;
        height: 36px;
    }

    .topic-meta {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .topic-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .topic-img {
        height: 180px;
    }
}

/* 资讯更新部分样式 */
.news-update {
    background-color: #fff;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    justify-content: space-between;
}

.news-item:last-child {
    border-bottom: none;
}

.news-tag {
    color: #319dfe;
    font-size: 14px;
    margin-right: 10px;
    white-space: nowrap;
}

.news-item a {
    flex: 1;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.news-item a:hover {
    color: #319dfe;
}

.news-date {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
    white-space: nowrap;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .news-item {
        display: flex;
        border-radius: 4px;
        flex-direction: row;
    }

    .news-tag {
        margin-bottom: 5px;
        font-size: 13px;
    }

    .news-item a {
        margin-bottom: 5px;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .news-list {
        grid-template-columns: 1fr;
    }
}

/* u6e38u620fu7f51u683cu5e03u5c40 - PCu7aefu4e00u884c6u4e2a */
.game-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.game-grid .game-item {
    padding: 0 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* u70edu95e8u6e38u620fu548cu70edu95e8u8f6fu4ef6u6807u9898u5728PCu7aefu663eu793auff0cu79fbu52a8u7aefu9690u85cf */
@media screen and (min-width: 768px) {
    .game-category .section-title,
    .app-category .section-title {
        display: block;
    }
}
/* u5c0fu5c4fu624bu673a (u5c0fu4e8e480px) */
@media screen and (max-width: 480px) {
    .game-grid .game-item {
        width: 23%; /* u4fddu6301u4e00u884cu663eu793a2u4e2a */
    }

    .app-grid .app-item {
        width: 25%; /* u4fddu6301u4e00u884cu663eu793a2u4e2a */
    }

    .game-item img {
        width: 76px;
    }
}

/* 小屏手机的调整 */
@media screen and (max-width: 480px) {
    .topic-small-list .topic-item.small {
        width: 31%; /* 保持一行显示3个 */
    }
}

/* 二维码下载区域 - 仅在PC端显示 */
.qrcode-download {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-download img {
    width: 70px;
    height: 70px;
    margin-bottom: 5px;
}

.qrcode-download span {
    font-size: 11px;
    color: #666;
    text-align: center;
}

/* 在移动端隐藏二维码区域 */
@media screen and (max-width: 768px) {
    .qrcode-download {
        display: none !important; /* 使用!important确保规则被应用 */
    }
}

/* PC专属内容类 */
.pc-only {
    display: block;
}

@media screen and (max-width: 768px) {
    .pc-only {
        display: none !important;
    }
}

.review-score {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #319dfe;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.review-desc {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 20px;
}

.error-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.error-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.error-button {
    display: inline-block;
    background-color: #1E90FF;
    color: #fff;
    font-size: 16px;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-button:hover {
    background-color: #0078E7;
    transform: translateY(-2px);
}

@media screen and (max-width: 767px) {
    .error-image {
        width: 80%;
    }

    .error-title {
        font-size: 16px;
    }

    .error-button {
        padding: 8px 25px;
        font-size: 14px;
    }
}

/* 关于我们页面样式 */
.about-container {
    background-color: #fff;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.about-section {
    margin-bottom: 30px;
}

.about-section h1 {
    text-align: center;
    font-size: 30px;
    color: #319dfe;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.about-section h3 {
    font-size: 20px;
    color: #319dfe;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}


.about-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-indent: 2em;
}

.about-section p:last-child {
    margin-bottom: 0;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .about-container {
        padding: 20px 15px;
    }

    .about-section h2 {
        font-size: 18px;
    }

    .about-section p {
        font-size: 14px;
    }
}

.software-category-tabs {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.software-category-tabs a {
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.software-category-tabs a.active {
    background-color: #319dfe;
    color: #fff;
}

.software-category-tabs a:hover:not(.active) {
    background-color: #f5f5f5;
    color: #319dfe;
}

@media screen and (max-width: 768px) {
    .software-category-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
        margin: 10px 0;
    }

    .software-category-tabs a {
        padding: 6px 15px;
        font-size: 12px;
        white-space: nowrap;
    }

    h4 {
        font-size: 12px;
    }
}

/* 精品推荐新样式 */
.featured-recommend-list {
    display: flex;
    flex-direction: column;
}

.featured-recommend-list .recommend-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.featured-recommend-list .recommend-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.featured-recommend-list .recommend-img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
    margin: 5px 0;
}

.featured-recommend-list .recommend-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-recommend-list .recommend-info {
    flex: 1;
    min-width: 0;
    margin: auto 5px;
}

.featured-recommend-list .recommend-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

/* 移动端精品推荐样式 */
@media screen and (max-width: 768px) {
    .featured-recommend-list .recommend-img {
        width: 160px;
        height: 90px;
    }
}
