/* 游戏列表页：/new /hot /category/xxx 等 */

.game-list-page {
    width: 100%;
}

.game-list-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.game-list-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

/* 7 列 × 6 行 = 42，与分页数量一致 */
.game-list-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px 12px;
    width: 100%;
}

.game-list-item {
    margin: 0;
    min-width: 0;
}

.game-list-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.game-list-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
    outline: 1px solid rgba(0, 0, 0, 0.06);
    transition: outline-color 0.2s ease;
}

.game-list-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.game-list-link:hover .game-list-thumb {
    outline-color: var(--theme-color);
}

.game-list-name {
    margin: 6px 0 0;
    padding: 0 1px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
    transition: color 0.2s ease;
}

.game-list-link:hover .game-list-name {
    color: var(--theme-color);
}

.game-list-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted);
    background: #fff;
    border-radius: 8px;
    border: 1px dashed rgba(0, 0, 0, 0.08);
}

.game-list-empty i {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 12px;
}

.game-list-empty p {
    margin: 0;
    font-size: 15px;
}

/* 分页 */
.game-list-pager {
    margin-top: 24px;
}

.game-list-pager--desktop {
    display: flex;
    justify-content: center;
}

.game-list-pager--mobile {
    display: none;
}

.game-list-pager--desktop .pagination {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    justify-content: center;
}

.game-list-pager--desktop .pagination > li {
    display: inline-block;
}

.game-list-pager--desktop .pagination > li > a,
.game-list-pager--desktop .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.2s ease;
}

.game-list-pager--desktop .pagination > li > a:hover {
    color: var(--theme-color);
    border-color: rgba(255, 127, 80, 0.35);
    background: #fff8f4;
}

.game-list-pager--desktop .pagination > .active > span,
.game-list-pager--desktop .pagination > .active > a {
    color: #fff;
    background: var(--theme-color);
    border-color: var(--theme-color);
}

.game-list-pager--desktop .pagination > .disabled > span,
.game-list-pager--desktop .pagination > .disabled > a {
    color: #ccc;
    background: #f5f5f5;
    cursor: not-allowed;
}

/* 移动端分页条 */
.game-list-pager--mobile {
    margin-top: 20px;
    padding: 0 2px;
}

.game-list-pager-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 18px rgba(30, 40, 90, 0.06);
}

.game-list-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.game-list-pager-btn--prev {
    justify-self: start;
}

.game-list-pager-btn--next {
    justify-self: end;
}

.game-list-pager-btn .fa {
    font-size: 12px;
    color: var(--theme-color);
}

.game-list-pager-btn:active:not(.is-disabled) {
    transform: scale(0.98);
}

.game-list-pager-btn:not(.is-disabled):hover {
    color: var(--theme-color);
    border-color: rgba(255, 127, 80, 0.35);
    background: #fff8f4;
}

.game-list-pager-btn.is-disabled {
    color: #bbb;
    background: #f5f6f8;
    border-color: rgba(0, 0, 0, 0.04);
    cursor: not-allowed;
}

.game-list-pager-btn.is-disabled .fa {
    color: #ccc;
}

.game-list-pager-info {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    min-width: 72px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff7f0 0%, #fff 100%);
    border: 1px solid rgba(252, 82, 20, 0.12);
    font-variant-numeric: tabular-nums;
}

.game-list-pager-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-color);
    line-height: 1;
}

.game-list-pager-sep {
    font-size: 14px;
    color: #bbb;
    line-height: 1;
}

.game-list-pager-total {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    line-height: 1;
}

@media (max-width: 1200px) {
    .game-list-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .game-list-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px 10px;
    }
}

@media (max-width: 600px) {
    .game-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-list-pager--desktop {
        display: none;
    }

    .game-list-pager--mobile {
        display: block;
    }

    .game-list-pager-btn span {
        display: none;
    }

    .game-list-pager-btn {
        min-width: 44px;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .game-list-title {
        font-size: 18px;
    }

    .game-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 8px;
    }

    .game-list-pager-bar {
        gap: 8px;
        padding: 8px 10px;
    }

    .game-list-pager-info {
        min-width: 64px;
        padding: 7px 10px;
    }

    .game-list-pager-current {
        font-size: 18px;
    }
}

/* 分类页本周最热 */
.game-weekly-hot {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7f0 0%, #fff 100%);
    border: 1px solid rgba(252, 82, 20, 0.12);
}

.game-weekly-hot-head h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.game-weekly-hot-head .fa-fire {
    color: #fc5214;
    margin-right: 6px;
}

.game-weekly-hot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.game-weekly-hot-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.game-weekly-hot-link:hover {
    border-color: rgba(252, 82, 20, 0.35);
    box-shadow: 0 4px 14px rgba(252, 82, 20, 0.1);
}

.game-weekly-hot-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
}

.game-weekly-hot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-weekly-hot-body {
    min-width: 0;
}

.game-weekly-hot-body h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.game-weekly-hot-plays {
    font-size: 12px;
    color: #888;
}

@media (max-width: 900px) {
    .game-weekly-hot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .game-weekly-hot-grid {
        grid-template-columns: 1fr;
    }
}
