.games-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.games-grid-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(8, 133px);
    gap: 8px;
    padding: 15px 0;
    grid-auto-flow: dense;
}

.game-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.game-card:not([style*="span 2"]) {
    width: 133px;
    height: 133px;
}

.game-card[style*="span 2"] {
    grid-column: span 2;
    grid-row: span 2;
    width: 100%;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.game-card:hover .game-info {
    transform: translateY(0);
}

.game-title {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.game-category {
    font-size: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.load-more-container {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

.load-more-btn {
    position: relative;
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(238, 82, 83, 0.2);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 82, 83, 0.3);
    background: linear-gradient(135deg, #ff5252, #d64545);
}

.load-more-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(238, 82, 83, 0.2);
}

/* 禁用状态 */
.load-more-btn.disabled {
    background: linear-gradient(135deg, #d1d1d1, #b4b4b4);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* 加载中状态 */
.load-more-btn.loading {
    padding-left: 60px;
}

.load-more-btn.loading::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@media (max-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(6, 133px);
    }
}

@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(5, 133px);
    }
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(4, 133px);
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(4, 100px);
        gap: 8px;
    }

    .game-card:not([style*="span 2"]) {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(4, 75px);
        gap: 6px;
    }

    .game-card:not([style*="span 2"]) {
        width: 75px;
        height: 75px;
    }

    .game-title {
        font-size: 10px;
    }

    .game-category {
        font-size: 8px;
    }
}

@media (max-width: 360px) {
    .games-grid {
        grid-template-columns: repeat(4, 65px);
        gap: 5px;
    }

    .game-card:not([style*="span 2"]) {
        width: 65px;
        height: 65px;
    }
}