/* 游戏排行榜页面样式 */

.rank-content {
    width: 100%;
    background-color: #fff;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 排行榜分类筛选 */
.rank-filter {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.filter-item {
    display: flex;
    align-items: center;
}

.filter-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-right: 15px;
    width: 80px;
}

.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;
}

/* 排行榜列表 */
.rank-list {
    padding: 0 10px;
}

.rank-item a {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
    flex-wrap: wrap;
}

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

/* 排名数字 */
.rank-num {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #bbb;
    border-radius: 4px;
    margin-right: 15px;
}

.rank-item:nth-child(1) .rank-num {
    background-color: #e74c3c;
}

.rank-item:nth-child(2) .rank-num {
    background-color: #f39c12;
}

.rank-item:nth-child(3) .rank-num {
    background-color: #2ecc71;
}

/* 游戏图标 */
.rank-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
}

.rank-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 游戏信息 */
.rank-info {
    flex: 1;
    padding-right: 20px;
}

.rank-name {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rank-name h3 {
    font-size: 16px;
    color: #333;
    margin-right: 10px;
}

.rank-tag {
    padding: 2px 6px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 12px;
    border-radius: 3px;
}

.rank-desc {
    margin-bottom: 8px;
}

.rank-desc p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
}

.rank-meta span {
    margin-right: 15px;
    color: #999;
    font-size: 12px;
}

/* 下载按钮 */
.rank-download {
    width: 90px;
    text-align: center;
}

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

.page-btn {
    display: inline-block;
    margin: 0 2px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: #fff;
    cursor: pointer;
    min-width: 40px;
    text-align: center;
    box-sizing: border-box;
}

.page-btn:hover {
    border-color: #319dfe;
    color: #319dfe;
    background-color: #fff5f0;
    text-decoration: none;
}

.page-btn.active:hover {
    background-color: #1a7afe;
    border-color: #1a7afe;
}

.page-btn:active {
    transform: translateY(1px);
}

.pagination a {
    display: inline-block;
    margin: 0 2px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: #fff;
    cursor: pointer;
    min-width: 40px;
    text-align: center;
    box-sizing: border-box;
}

.pagination a:hover {
    border-color: #319dfe;
    color: #319dfe;
    background-color: #fff5f0;
    text-decoration: none;
}

/* 响应式样式调整 */
@media screen and (max-width: 992px) {
    .filter-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-title {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 767px) {
    .rank-item {
        flex-wrap: wrap;
    }

    .rank-info {
        width: calc(100% - 130px);
        padding-right: 0;
    }

    .rank-download {
        width: 100%;
        margin-top: 15px;
        text-align: left;
        padding-left: 70px;
    }

    .download-btn {
        width: 100%;
        min-width: 150px;
        height: 40px;
    }
}

@media screen and (max-width: 480px) {
    .rank-icon {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }

    .rank-num {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 16px;
        margin-right: 10px;
    }

    .rank-info {
        width: calc(100% - 105px);
    }

    .rank-name h3 {
        font-size: 15px;
    }

    .rank-desc p {
        font-size: 12px;
    }

    .rank-meta span {
        font-size: 11px;
        margin-right: 10px;
    }

    .rank-download {
        padding-left: 40px;
    }
}

/* 专题合集页面样式 */

/* 主内容区 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    flex-direction: row;
}

.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;
}

.icon-view {
    display: inline-block;
    width: 16px;
    background-size: contain;
    margin-right: 10px;
}

/* 分页 */
.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;
    }
}

/* 游戏详情页面样式 */

/* 主内容容器 */
.game-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    overflow: visible;
    box-sizing: border-box;
}

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

.game-detail-sidebar {
    width: 300px;
    height: 100%;
    /* background-color: #fff; */
    border-radius: 4px;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
}

.game-cover {
    height: 144px;
    margin-right: 20px;
    /* border-radius: 15px; */
    overflow: hidden;
}

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

.game-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.game-meta {
    margin-bottom: 15px;
}

.meta-item {
    display: inline-block;
    margin-right: 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

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

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

/* 评分 */
.game-rating {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.rating-stars {
    display: inline-flex;
    margin-right: 10px;
    color: #ffc107;
    font-size: 18px;
}

.filled-star {
    color: #ffc107;
}

.half-star {
    position: relative;
    display: inline-block;
    color: #e0e0e0;
}

.half-star::before {
    content: '★';
    position: absolute;
    color: #ffc107;
    width: 50%;
    overflow: hidden;
}

.empty-star {
    color: #e0e0e0;
}

.rating-score {
    font-weight: bold;
    color: #319dfe;
    margin-right: 5px;
}

.rating-count {
    color: #999;
    font-size: 12px;
}

/* 标签 */
.game-tags {
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 12px;
    margin-right: 10px;
    margin-bottom: 5px;
}

/* 下载区域 */
.download-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.platform-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.platform-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 15px;
}

.platform-icon img {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
}

.platform-icon span {
    font-size: 12px;
    color: #fff;
    background-color: #319dfe;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* 详情标签栏 */
.detail-tabs {
    /*display: flex;*/
    border-bottom: 1l, px solid #eee;
    margin-bottom: 20px;
}

.tab-item {
    padding: 12px 0;
    color: #666;
    font-size: 20px;
    position: relative;
    transition: all 0.3s;
}

.tab-item:hover {
    color: #333333;
}

.tab-item.active {
    color: #333333;
    font-weight: bold;
}

/* 详情内容区域 */
.detail-section {
    margin-bottom: 30px;
}

.detail-section .section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.game-description p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #333;
    text-indent: 2em;
}

/* 截图展示 */
.screenshot-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.screenshot-item {
    width: calc(20% - 8px);
    height: 120px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

/* 更新日志 */
.update-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

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

.update-version {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.update-list {
    padding-left: 20px;
}

.update-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    color: #666;
}

.update-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #319dfe;
}

/* 评价区域 */
.review-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.reviewer-meta {
    flex: 1;
}

.reviewer-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.review-rating {
    font-size: 14px;
    color: #ffc107;
}

.review-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

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

/* 侧栏样式 */
.sidebar-section {
    background-color: #ffffff;
    margin-bottom: 20px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

/* 侧栏游戏列表 */
.sidebar-game-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

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

.sidebar-game-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.sidebar-game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-game-info h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-game-info p {
    font-size: 12px;
    color: #999;
}

/* 排行榜样式 */
.sidebar-rank-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

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

.rank-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    color: #666;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
    font-weight: bold;
}

.sidebar-rank-item:nth-child(1) .rank-num,
.sidebar-rank-item:nth-child(2) .rank-num,
.sidebar-rank-item:nth-child(3) .rank-num {
    background-color: #319dfe;
    color: #fff;
}

.sidebar-rank-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.sidebar-rank-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-rank-info {
    flex: 1;
    overflow: hidden;
}

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

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

.sidebar-rank-item a {
    display: flex;
    flex: 1;
    align-items: center;
}

/* 响应式样式 */
@media screen and (max-width: 1024px) {
    .game-detail-sidebar {
        width: 250px;
    }

    .screenshot-item {
        width: calc(25% - 8px);
    }
}

@media screen and (max-width: 767px) {
    .game-detail-container {
        flex-direction: column;
    }

    .game-detail-sidebar {
        width: 100%;
        order: 2;
    }

    .game-info-header {
        flex-direction: column;
        align-items: center;
        padding-bottom: 15px;
        text-align: center;
    }

    .game-cover {
        margin: 0 auto 15px;
        width: 100px;
        height: 100px;
    }

    .game-info-content {
        text-align: center;
    }

    .game-title {
        font-size: 20px;
        margin-bottom: 8px;
        word-break: break-word;
    }

    .game-meta {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .meta-item {
        text-align: center;
        margin-right: 5px;
        margin-bottom: 5px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .game-rating {
        justify-content: center;
        margin-bottom: 10px;
    }

    .game-tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tag {
        margin: 0 5px 5px;
        padding: 2px 8px;
        font-size: 11px;
    }

    .detail-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .detail-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .tab-item {
        padding: 10px 15px;
        font-size: 14px;
    }

    .screenshot-item {
        width: calc(33.33% - 7px);
    }

    .review-item {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .review-content {
        font-size: 13px;
    }

    .game-detail-main, .game-detail-sidebar {
        box-sizing: border-box;
        width: 100%;
    }

    .detail-section {
        padding: 0 5px;
    }

    .screenshot-gallery {
        gap: 5px;
        margin: 0 -2px;
    }

    .download-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
        width: 100%;
    }

    .download-btn {
        flex: 0 0 calc(50% - 15px);
        padding: 8px 15px;
        font-size: 14px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 相关游戏部分移动端样式优化 */
    .sidebar-section.related-games {
        padding: 15px 10px;
    }

    .sidebar-section.related-games .sidebar-title {
        text-align: center;
        padding-left: 0;
        margin-bottom: 20px;
    }

    .sidebar-section.related-games .sidebar-title::before {
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        top: auto;
        bottom: -8px;
    }
}

@media screen and (max-width: 480px) {
    .meta-item {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 12px;
    }

    .game-title {
        font-size: 18px;
    }

    .rating-stars {
        font-size: 16px;
    }

    .rating-count {
        display: block;
        margin-top: 3px;
        font-size: 11px;
    }

    .tag {
        margin: 0 3px 5px;
        padding: 2px 6px;
        font-size: 10px;
    }

    .screenshot-item {
        width: calc(50% - 5px);
        height: 90px;
    }

    .tab-item {
        padding: 8px 12px;
        font-size: 13px;
    }

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

    .reviewer-avatar {
        width: 30px;
        height: 30px;
    }

    .reviewer-name {
        font-size: 13px;
    }

    .review-content {
        font-size: 12px;
    }

    .game-detail-main {
        padding: 10px;
    }

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

    .screenshot-gallery {
        gap: 3px;
    }

    .download-buttons {
        gap: 10px;
    }

    .download-btn {
        flex: 0 0 calc(50% - 10px);
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* 游戏列表样式 */
.game-list-wrapper {
    width: 75%;
    background-color: #fff;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.game-list {
    padding: 0 10px;
}

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

/* 游戏图标 */
.game-icon {
    width: 20%;
    padding-right: 2.5%;
    flex-shrink: 0;
}

.game-icon img {
    border-radius: 12px;
    object-fit: cover;
}

/* 游戏信息 */
.game-info {
    width: 60%;
    padding-right: 2.5%;
}

.game-info-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.game-title {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.game-version {
    font-size: 12px;
    color: #999;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
}

.game-desc {
    margin-bottom: 8px;
}

.game-desc p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.meta-application, .meta-size, .meta-time {
    color: #999;
    font-size: 12px;
}

.meta-stars {
    display: flex;
    align-items: center;
}

.star {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 2px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.star.filled {
    background-image: url('../images/star-filled.png');
    /* 替代方案：使用编码 */
    position: relative;
}

.star.filled::before {
    content: '★';
    color: #319dfe;
    font-size: 12px;
    position: absolute;
    top: -1px;
    left: 0;
}

.star.half {
    background-image: url('../images/star-half.png');
    /* 替代方案：使用编码 */
    position: relative;
}

.star.half::before {
    content: '★';
    color: #319dfe;
    font-size: 12px;
    position: absolute;
    top: -1px;
    left: 0;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.star.empty {
    background-image: url('../images/star-empty.png');
    /* 替代方案：使用编码 */
    position: relative;
}

.star.empty::before {
    content: '☆';
    color: #319dfe;
    font-size: 12px;
    position: absolute;
    top: -1px;
    left: 0;
}

/* 下载按钮 */
.game-download {
    width: 15%;
    text-align: center;
    flex-shrink: 0;
}
/* 响应式样式调整 */
@media screen and (max-width: 992px) {
    .game-info-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-version {
        margin-top: 5px;
    }
}

@media screen and (max-width: 767px) {
    .game-item {
        flex-wrap: wrap;
    }

    .game-icon {
        width: auto;
        padding-right: 15px;
    }

    .game-info {
        width: calc(100% - 80px);
        padding-right: 0;
    }

    .game-download {
        width: 100%;
        margin-top: 15px;
        text-align: left;
        padding-left: 80px;
    }

    .download-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media screen and (max-width: 480px) {
    .game-icon img {
        width: 48px;
        height: 48px;
        border-radius: 8px;
    }

    .game-icon {
        padding-right: 10px;
    }

    .game-info {
        width: calc(100% - 60px);
    }

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

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

    .meta-application, .meta-size, .meta-time {
        font-size: 11px;
    }

    .game-download {
        padding-left: 58px;
    }
}

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

/* 游戏详情页样式 */

/* 游戏信息头部 */
.game-info-header {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    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: 20%;
    padding-right: 2%;
    flex-shrink: 0;
}

.game-cover img {
    width: 100%;
    height: 144px;
    aspect-ratio: 1/1;
    border-radius: 15px;
    object-fit: cover;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

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

.game-meta {
    margin-bottom: 15px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.meta-item {
    margin-right: 20px;
    color: #666;
    font-size: 14px;
    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: 20%;
    padding-right: 2%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.downloadBtn {
    width: 120px;
    display: inline-block;
    padding: 10px 15px;
    color: #ffffff;
    font-size: 14px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #319dfe;
    white-space: nowrap;
    margin-top: 10px;
}

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

.android-btn:hover {
    background-color: #32b86e;
}

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

.ios-btn:hover {
    background-color: #0062cc;
}

.qrcode-download {
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-download img {
    width: 100%;
    max-width: 100px;
    height: auto;
    aspect-ratio: 1/1;
    margin-bottom: 5px;
}

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

/* 响应式样式 */
@media screen and (max-width: 992px) {
    .game-cover {
        width: 20%;
    }

    .download-section {
        width: 20%;
    }

    .qrcode-download {
        width: 20%;
    }

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

@media screen and (max-width: 768px) {
    .game-info-header {
        flex-direction: column;
        padding: 15px;
    }

    .game-cover, .game-info-content, .download-section, .qrcode-download {
        width: 100%;
        padding-right: 0;
    }

    .game-cover {
        display: flex;
        justify-content: center;
    }

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

    .game-title {
        text-align: center;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .meta-row {
        justify-content: center;
    }

    .download-section {
        align-items: center;
    }

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

    .download-btn {
        width: auto;
        flex: 1;
        padding: 8px 0;
    }

    .qrcode-download {
        margin-top: 0;
    }
}

@media screen and (max-width: 480px) {
    .game-info-header {
        padding: 12px;
    }

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

    .downloadBtn {
        width: 100px;
    }

    .download-btn {
        font-size: 12px;
        padding: 6px 0;
    }

    a.download-btn.ios-btn {
        min-width: 100px;
    }

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

    .qrcode-download span {
        font-size: 11px;
    }
}

/* 侧边栏游戏项目左右布局 */

/* 侧边栏游戏项 */
.sidebar-game-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    align-items: center;
}

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

.sidebar-game-item a {
    display: flex;
    width: 100%;
    align-items: center;
}

/* 游戏图标 */
.sidebar-game-img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

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

/* 游戏信息 */
.sidebar-game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-game-info h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-game-info p {
    font-size: 12px;
    color: #999;
}

.category-icons {
    margin: 15px auto;
}

.icon-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -5px;
}

.icon-item {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.category-item {
    width: calc(100% / 12 - 10px);
    margin: 0 5px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    text-align: center;
}

.category-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}

.category-item span {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .category-item {
        width: calc(100% / 10 - 10px);
    }
}

@media (max-width: 992px) {
    .category-item {
        width: calc(100% / 8 - 10px);
    }
}

@media (max-width: 768px) {
    .category-item {
        width: calc(100% / 6 - 10px);
    }
}

@media (max-width: 576px) {
    .category-item {
        width: calc(100% / 4 - 10px);
    }
}

@media (max-width: 360px) {
    .category-item {
        width: calc(100% / 3 - 10px);
    }
}

.download-buttons .download-btn {
    display: inline-block;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.article-list-wrapper {
    display: flex;
    gap: 20px;
}

.article-list {
    flex: 3;
    min-width: 0;
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

/* 游戏标题限制为5个字 */
.game-item span:first-of-type {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 5em; /* 限制为5个字符的宽度 */
}

@media screen and (max-width: 992px) {
    .article-list-wrapper {
        flex-direction: column;
    }

    .article-list,
    .sidebar {
        flex: 1 1 100%;
    }
}

.breadcrumb-zxl {
    max-width: 1200px;
    width: 100%;
    margin: 10px auto;
    background-color: #fff;
    border-radius: 4px;
    padding: 10px 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    color: #999;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px 0;
    border-radius: 8px;
}

.permission-link {
    color: #319dfe;
    background: none;
    border: none;
    text-decoration: none;
    font-weight: 600;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.permission-link:hover {
    color: #319dfe;
    text-decoration: underline;
}

.info-label {
    width: 370px;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* 超出的空白区域不换行 */
    overflow: hidden; /* 超出隐藏 */
    text-overflow: ellipsis; /* 文本超出显示省略号 */
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
    overflow: hidden;
}

/* 权限弹窗样式 */
.permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.permission-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.permission-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0;
    min-width: 30vw;
    max-width: 30vw;
    min-height: 50vh;
    max-height: 50vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.permission-header {
    font-weight: bold;
    text-align: center;
    margin-bottom: 0;
    font-size: 16px;
    padding: 20px 20px 15px 20px;
    background: white;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1;
    position: relative;
}

.permission-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.permission-close:hover {
    background: #f5f5f5;
    color: #666;
    transform: scale(1.1);
}

.permission-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
}

.permission-item {
    margin-bottom: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
}

.permission-item:last-of-type {
    border-bottom: none;
}

.permission-footer {
    text-align: center;
    padding: 15px 20px 20px 20px;
    margin-top: 0;
    background: white;
    flex-shrink: 0;
}

.permission-confirm {
    background: linear-gradient(135deg, #319dfe, #319dfe);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.permission-confirm:hover {
    background: linear-gradient(135deg, #319dfe, #319dfe);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .permission-modal-content {
        margin: auto;
        min-width: 360px;
    }
}

.collection-slider {
    position: relative;
    padding: 0 20px;
}

.collection-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex-direction: row;
    flex-wrap: wrap;
}

.collection-slide {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.collection-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 160px;
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
}

.collection-overlay h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 移动端collection-wrapper响应式样式 */
@media (max-width: 768px) {
    .collection-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
        overflow-x: visible;
        overflow-y: visible;
    }

    .collection-slide {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .collection-card {
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .collection-wrapper {
        gap: 12px;
    }

    .collection-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 移动端info-grid响应式样式 */
@media (max-width: 768px) {
    .info-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px 0;
        overflow: visible;
    }

    .info-item {
        width: 100%;
    }

    .info-label {
        width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

@media (max-width: 480px) {
    .info-grid {
        gap: 8px 0;
    }

    .info-item {
        padding: 12px 0;
    }

    .info-label {
        font-size: 13px;
    }
}

/* 网站地图页面样式 */
.sitemap-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sitemap-content {
    width: 1200px;
    max-width: 1200px;
    padding: 40px;
}

.sitemap-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

/* 各个分区样式 */
.nav-section,
.category-section,
.featured-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.nav-section:last-child,
.category-section:last-child,
.featured-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-heading {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-left: 15px;
    position: relative;
}

.section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #319dfe;
    border-radius: 2px;
}

/* 主要栏目横向布局 */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    padding: 8px 0;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

/* 分类网格布局 */
.category-grid,
.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 40px;
    align-items: start;
}

.category-column,
.featured-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-column a,
.featured-column a {
    color: #666;
    text-decoration: none;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s ease;
    border-bottom: 1px dotted #eee;
}

.category-column a:hover,
.featured-column a:hover {
    color: #007bff;
    border-bottom-color: #007bff;
}

.category-column a:last-child,
.featured-column a:last-child {
    border-bottom: none;
}

/* 移动端响应式适配 */
@media (max-width: 992px) {
    .category-grid,
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px 30px;
    }

    .sitemap-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .category-grid,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 25px;
    }

    .nav-links {
        gap: 20px;
    }

    .sitemap-content {
        padding: 20px;
    }

    .sitemap-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .section-heading {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .category-grid,
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .sitemap-content {
        padding: 15px;
    }

    .sitemap-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .nav-section,
    .category-section,
    .featured-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
}

.rank-bottom-section {
    padding: 20px 0;
    background-color: #f5f7fa;
}

.container-ph {
    width: 1200px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.bottom-grid {
    display: flex;
    gap: 20px;
}

.bottom-card {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.card-header h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.news-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.news-links a {
    color: #333;
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.news-date {
    font-size: 11px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

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

.mini-rank-item {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.mini-rank-item a {
    display: flex;
    align-items: center;
    color: #333;
}

.mini-rank-item:nth-child(1) .mini-rank-num {
    background-color: #ff5722;
    color: #fff;
}

.mini-rank-num {
    width: 20px;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    color: #999;
    margin-right: 10px;
}

.mini-rank-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.mini-rank-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-rank-title {
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.mini-rank-info {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* rank-bottom-section 移动端自适应样式 */
@media screen and (max-width: 1024px) {
    .bottom-grid {
        gap: 15px;
    }

    .card-header h2 {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .rank-bottom-section {
        padding: 15px 0;
    }

    .bottom-grid {
        flex-direction: column;
        gap: 15px;
    }

    .bottom-card {
        padding: 12px;
    }

    .card-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .card-header h2 {
        font-size: 16px;
    }

    .news-links li {
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .news-date {
        font-size: 11px;
        color: #999;
        flex-shrink: 0;
    }

    .mini-rank-item {
        padding: 6px 0;
    }

    .mini-rank-title {
        font-size: 13px;
        margin-right: 8px;
    }

    .mini-rank-info {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .rank-bottom-section {
        padding: 10px 0;
    }

    .container-ph {
        width: 390px;
    }

    .bottom-card {
        padding: 10px;
        border-radius: 6px;
    }

    .card-header {
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .card-header h2 {
        font-size: 15px;
    }

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

    .news-links li {
        padding: 6px 0;
    }

    .news-links a {
        width: 220px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 8px;
    }

    .news-date {
        font-size: 10px;
    }

    .mini-rank-item {
        padding: 5px 0;
    }

    .mini-rank-num {
        width: 18px;
        height: 18px;
        font-size: 11px;
        margin-right: 8px;
    }

    .mini-rank-icon {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }

    .mini-rank-title {
        font-size: 12px;
        margin-right: 6px;
    }

    .mini-rank-info {
        font-size: 10px;
    }
}

@media screen and (max-width: 320px) {
    .container-ph {
        padding: 0 8px;
    }

    .bottom-card {
        padding: 8px;
    }

    .card-header h2 {
        font-size: 14px;
    }

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

    .news-links a {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 6px;
    }

    .mini-rank-num {
        width: 16px;
        height: 16px;
        font-size: 10px;
        margin-right: 6px;
    }

    .mini-rank-icon {
        width: 24px;
        height: 24px;
        margin-right: 6px;
    }

    .mini-rank-title {
        font-size: 11px;
        margin-right: 5px;
    }

    .mini-rank-info {
        font-size: 9px;
    }
}

/* 移动端分页样式调整 */
@media screen and (max-width: 768px) {
    .pagination {
        margin: 20px 0;
        gap: 3px;
    }

    .page-btn,
    .pagination a {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
        margin: 0 1px;
    }
}

@media screen and (max-width: 480px) {
    .pagination {
        margin: 15px 0;
        gap: 2px;
    }

    .page-btn,
    .pagination a {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 30px;
        margin: 0 1px;
    }
}

.index-button {
    width: 80px;
    height: 30px;
    border-radius: 15px;
    margin: 5px 0;
    border: none;
    background-color: #319dfe;
    color: #FFFFFF;
}
