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

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    min-width: 0;
    overflow-x: hidden;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
    color: #999;
    overflow-x: hidden;
}

.breadcrumb .container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.breadcrumb .current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #1890ff;
}

/* 分类导航 */
.category-nav {
    background-color: #fff;
    padding: 20px 0;
    margin-bottom: 20px;
    overflow-x: hidden;
}

.category-nav .container {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px 10px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.category-btn {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    padding: 8px 20px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.category-btn.active {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

/* 主内容区 */
.main-content {
    margin-bottom: 40px;
    overflow-x: hidden;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    align-items: stretch;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
}

.games-list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.rank-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

/* 游戏区块 */
.game-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.section-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #1890ff;
}

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

.section-header .section-title {
    margin-bottom: 0;
}

.more-link {
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.more-link:hover {
    color: #1890ff;
}

/* 游戏网格：等宽列保证图标尺寸一致 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
}

/* 左侧游戏列表：图标固定尺寸，保证所有图标大小一致 */
.games-list .games-grid .game-item img {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.game-item:hover {
    transform: translateY(-5px);
}

/* 游戏图标统一：正方形 + 覆盖裁剪（用于分类合集区等） */
.game-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.game-item h3 {
    font-size: 13px;
    color: #333;
    font-weight: normal;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.game-tag {
    font-size: 12px;
    color: #999;
    margin-top: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* 分页 */
.pagination-wrap {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 0;
}

/* 自定义分页视图：paginator.blade.php 使用的 .page-list / .page-btn / .page-num */
.pagination .page-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination .page-btn,
.pagination .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    background-color: #fff;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.pagination .page-btn:hover:not(.disabled),
.pagination .page-num:hover {
    border-color: #1890ff;
    color: #1890ff;
    background-color: #e6f7ff;
}

.pagination .page-num.active,
.pagination .page-num.active.page-num {
    background-color: #1890ff;
    color: #fff;
    border-color: #1890ff;
    font-weight: bold;
    cursor: default;
}

.pagination .page-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #f0f0f0;
    background-color: #fafafa;
}

.pagination .page-btn.disabled:hover {
    border-color: #f0f0f0;
    background-color: #fafafa;
    color: #ccc;
}

/* Laravel 默认分页类名兼容 */
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    background-color: #fff;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.page-link:hover:not(.disabled):not(.active) {
    border-color: #1890ff;
    color: #1890ff;
    background-color: #e6f7ff;
}

.page-link.active {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
    font-weight: bold;
}

.page-link.disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #f0f0f0;
    background-color: #fafafa;
}

.page-link.disabled:hover {
    border-color: #f0f0f0;
    background-color: #fafafa;
}

.page-dots {
    color: #999;
    font-size: 14px;
    padding: 0 5px;
}

/* 排行榜 */
.rank-box {
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1890ff;
}

.rank-header h3 {
    font-size: 16px;
    color: #333;
}

.rank-tabs {
    display: flex;
    gap: 5px;
}

.rank-tab {
    background-color: #f5f5f5;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    border-radius: 3px;
    transition: all 0.3s;
}

.rank-tab:hover {
    background-color: #1890ff;
    color: white;
}

.rank-tab.active {
    background-color: #1890ff;
    color: white;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #fafafa;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.rank-item:hover {
    background-color: #fff3e0;
}

.rank-item.top {
    background-color: #fff;
    border: 1px solid #ffe0b2;
}

.rank-number {
    font-size: 16px;
    font-weight: bold;
    min-width: 25px;
    text-align: center;
    color: #999;
}

.rank-item:nth-child(1) .rank-number {
    color: #ff4444;
}

.rank-item:nth-child(2) .rank-number {
    color: #ff7744;
}

.rank-item:nth-child(3) .rank-number {
    color: #ffaa44;
}

.rank-item img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-info h4 {
    font-size: 13px;
    color: #333;
    font-weight: normal;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info p {
    font-size: 11px;
    color: #999;
}

.rank-name {
    flex: 1;
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #40a9ff;
    transform: translateY(-5px);
}

/* 游戏分类合集区 */
.game-categories-section {
    background-color: #f5f5f5;
    padding: 40px 0;
    margin-top: 40px;
    overflow-x: hidden;
}

.game-categories-section .container {
    min-width: 0;
}

.category-block {
    background-color: #fff;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 0;
    overflow: hidden;
}

.category-content {
    display: flex;
    gap: 20px;
    align-items: stretch;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.category-header .category-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    padding-left: 15px;
    border-left: 4px solid #1890ff;
    margin: 0;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.category-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background-color: #fff;
    border: 1px solid #1890ff;
    color: #1890ff;
    padding: 6px 18px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #1890ff;
    color: white;
}

.filter-btn.active {
    background-color: #1890ff;
    color: white;
}

.category-games-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    flex: 1;
    min-width: 0;
    align-items: stretch;
    align-content: start;
    overflow: hidden;
}

.category-games-grid .game-item h3,
.category-games-grid .game-item .game-tag {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
}

/* 分类排行榜 */
.category-rank {
    width: 280px;
    flex-shrink: 0;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.category-rank-header {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    padding: 12px 15px;
}

.category-rank-header h3 {
    font-size: 15px;
    color: white;
    margin: 0;
    font-weight: bold;
}

.category-rank-list {
    padding: 12px;
}

.category-rank-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
    cursor: pointer;
}

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

.category-rank-item:hover {
    background-color: #f9f9f9;
}

.category-rank-item .rank-number {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    color: #999;
    margin-right: 10px;
    flex-shrink: 0;
}

.category-rank-item .rank-number.top {
    background-color: #1890ff;
    color: white;
    border-radius: 3px;
}

.category-rank-item img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    margin-right: 10px;
    object-fit: cover;
}

.category-rank-item .rank-info {
    flex: 1;
    min-width: 0;
}

.category-rank-item .rank-info h4 {
    font-size: 13px;
    color: #333;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-rank-item .rank-info p {
    font-size: 11px;
    color: #999;
    margin: 0;
}

.category-rank-item .rank-name {
    flex: 1;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }

    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }

    .rank-sidebar {
        width: 100%;
    }

    .rank-box {
        position: static;
    }

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

    .category-content {
        flex-direction: column;
    }

    .category-rank {
        width: 100%;
    }

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

@media (max-width: 768px) {
    .category-btn {
        font-size: 13px;
        padding: 6px 15px;
        margin: 3px 5px 3px 0;
    }

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

    .games-list .games-grid .game-item img {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
    }

    .game-item h3 {
        font-size: 12px;
    }

    .game-tag {
        font-size: 11px;
    }

    .pagination {
        gap: 5px;
        padding: 15px;
    }

    .pagination .page-btn,
    .pagination .page-num {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .category-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

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

    .filter-btn {
        font-size: 12px;
        padding: 5px 12px;
    }
}

@media (max-width: 576px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .games-list .games-grid .game-item img {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
    }

    .category-btn {
        font-size: 12px;
        padding: 5px 12px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination .page-btn,
    .pagination .page-num {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        right: 20px;
        bottom: 20px;
        font-size: 16px;
    }

    .category-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-categories-section {
        padding: 20px 0;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .category-filters {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* 专题页面样式 */
.topics-page {
    background-color: #f5f5f5;
    padding: 20px 0 40px;
    overflow-x: hidden;
}

/* 顶部大Banner */
.topics-banner {
    margin-bottom: 20px;
}

.banner-main {
    display: flex;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #333 50%, #1a1a1a 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.banner-main img {
    width: 50%;
    height: 300px;
    object-fit: cover;
}

.banner-info {
    width: 50%;
    padding: 30px;
    color: white;
}

.banner-info h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.banner-subtitle {
    font-size: 18px;
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.banner-date {
    font-size: 13px;
    margin: 5px 0;
    opacity: 0.8;
}

.banner-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 15px;
    opacity: 0.9;
}

/* 专题分类切换 */
.topics-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.topics-tab {
    flex: 1;
    background-color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.topics-tab.active {
    background-color: #1890ff;
    color: white;
    font-weight: bold;
}

.topics-tab:hover:not(.active) {
    background-color: #f0f0f0;
}

/* 专题列表 */
.topics-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
}

.topic-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.topic-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.topic-card:hover .topic-image img {
    transform: scale(1.1);
}

.topic-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.topic-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 专题列表页 channel-gc：链接与卡片布局（覆盖 host.css 的 .topic-card） */
.topics-page .topics-list .topic-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.topics-page .topics-list .topic-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
}

.topics-page .topics-list .topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.topics-page .topics-list .topic-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.topics-page .topics-list .topic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.topics-page .topics-list .topic-card:hover .topic-image img {
    transform: scale(1.1);
}

.topics-page .topics-list .topic-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.topics-page .topics-list .topic-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topics-page .topics-list .topic-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 专题页溢出与分页 */
.topics-page .container {
    min-width: 0;
    overflow-x: hidden;
}

.topics-page .banner-info {
    min-width: 0;
    overflow: hidden;
}

.topics-page .banner-desc {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.topics-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 20px 0;
    overflow-x: auto;
}

.topics-pagination .pagination {
    margin: 0;
}

/* 响应式设计 - 专题页面 */
@media (max-width: 992px) {
    .banner-main {
        flex-direction: column;
    }

    .banner-main img {
        width: 100%;
        height: 250px;
    }

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

    .banner-info h2 {
        font-size: 24px;
    }

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

@media (max-width: 768px) {
    .topics-tabs {
        border-radius: 8px;
    }

    .topics-tab {
        font-size: 14px;
        padding: 12px 20px;
    }

}

@media (max-width: 576px) {
    .topics-page {
        padding: 15px 0 30px;
    }

    .banner-info h2 {
        font-size: 20px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .banner-desc {
        font-size: 13px;
    }

    .topics-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .topic-image {
        height: 180px;
    }

    .topics-page .topics-list .topic-image {
        height: 180px;
    }

    .topics-tabs {
        flex-direction: column;
        gap: 2px;
        border-radius: 8px;
    }

    .topics-tab {
        border-radius: 0;
    }

    .topics-tab:first-child {
        border-radius: 8px 8px 0 0;
    }

    .topics-tab:last-child {
        border-radius: 0 0 8px 8px;
    }
}

/* 资讯页面样式 */
.news-page {
    background-color: #f5f5f5;
    padding: 20px 0 40px;
}

.news-wrapper {
    display: flex;
    gap: 20px;
    align-items: stretch;
    min-height: 0;
}

/* 左侧资讯列表 */
.news-list {
    flex: 1;
    min-width: 0;
}

.news-list .section-title {
    background-color: #fff;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.news-item {
    display: flex;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
}

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

.news-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

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

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

.news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item:hover .news-title {
    color: #1890ff;
}

.news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 15px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    border-radius: 3px;
    font-size: 12px;
}

.news-views,
.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-views::before {
    content: "👁";
}

.news-date::before {
    content: "📅";
}

/* 右侧边栏 */
.news-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-box-header h3 {
    font-size: 16px;
    color: white;
    margin: 0;
    font-weight: bold;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 15px;
    align-items: stretch;
}

/* 2列网格布局 */
.recommend-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 15px;
    align-items: stretch;
}

.recommend-item {
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.recommend-item:hover {
    transform: translateY(-5px);
}

.recommend-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: block;
}

/* 资讯页右侧游戏推荐：图标统一尺寸，保证一致 */
.news-sidebar .recommend-grid-2col .recommend-item img {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.recommend-item span {
    font-size: 12px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* 资讯页右侧：推荐专题卡片（大图 + 左下角白色标题） */
.news-sidebar .topic-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 15px 15px;
}

.news-sidebar .topic-card {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.news-sidebar .topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.news-sidebar .topic-card img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center;
    vertical-align: middle;
}

.news-sidebar .topic-card-title {
    position: absolute;
    left: 12px;
    bottom: 12px;
    right: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 推荐链接列表 */
.recommend-links {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    text-decoration: none;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

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

.link-item:hover {
    background-color: #fff3e0;
}

.link-icon {
    color: #1890ff;
    font-size: 16px;
    margin-right: 8px;
    flex-shrink: 0;
}

.link-text {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.link-item:hover .link-text {
    color: #1890ff;
}

/* 响应式设计 - 资讯页面 */
@media (max-width: 1200px) {
    .news-wrapper {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
        flex-direction: row;
    }

    .sidebar-box {
        flex: 1;
    }

    .recommend-grid-2col {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .news-sidebar {
        flex-direction: column;
    }

    .recommend-grid-2col {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        padding: 15px;
    }

    .news-image {
        width: 100%;
        height: 200px;
    }

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

    .news-desc {
        font-size: 13px;
    }

    .news-meta {
        gap: 15px;
        font-size: 12px;
    }

    .recommend-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .recommend-grid-2col {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .news-sidebar .recommend-grid-2col .recommend-item img {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
    }

    .news-sidebar .topic-card img {
        height: 120px;
    }

    .news-sidebar .topic-card-title {
        font-size: 13px;
    }

    .link-item {
        padding: 8px 6px;
    }

    .link-text {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .news-page {
        padding: 15px 0 30px;
    }

    .news-item {
        padding: 12px;
        margin-bottom: 12px;
    }

    .news-image {
        height: 180px;
    }

    .news-title {
        font-size: 15px;
    }

    .news-desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .recommend-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .recommend-grid-2col {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .news-sidebar .recommend-grid-2col .recommend-item img {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }

    .news-sidebar .topic-card img {
        height: 100px;
    }

    .news-sidebar .topic-card-title {
        font-size: 12px;
        left: 10px;
        bottom: 10px;
    }

    .recommend-item span {
        font-size: 11px;
    }

    .link-item {
        padding: 7px 5px;
    }

    .link-icon {
        font-size: 14px;
    }

    .link-text {
        font-size: 11px;
    }
}