/* 首页专用样式 */

/* 游戏网格布局 */
.games-grid-section {
    padding: 20px 0;
    background: var(--light-bg);
}

/* 特色游戏行 */
.featured-row {
    margin-bottom: 25px;
}

.featured-game-large {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

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

.featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
}

.featured-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.play-btn-large {
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.play-btn-large:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* 推荐游戏行 */
.recommended-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.recommended-game {
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.recommended-game:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.recommended-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.recommended-info {
    padding: 20px;
    text-align: center;
}

.recommended-info h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-text);
    font-weight: 600;
}

.play-btn-recommended {
    background: var(--success-color);
    color: white;
    padding: 8px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.play-btn-recommended:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* 热门游戏行 */
.hot-games-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.hot-game-compact {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.hot-game-compact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hot-game-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.hot-game-info {
    padding: 15px;
    text-align: center;
}

.hot-game-info h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--dark-text);
    font-weight: 600;
}

.play-btn-small {
    background: var(--accent-color);
    color: white;
    padding: 6px 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.play-btn-small:hover {
    background: var(--warning-color);
    transform: scale(1.05);
}

/* 游戏分类行 */
.categories-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.category-item {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 15px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.category-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    text-transform: uppercase;
}

/* 游戏列表网格 */
.games-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.game-item {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.game-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.game-details {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-details h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0;
    line-height: 1.3;
}

.play-link {
    background: var(--success-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.play-link:hover {
    transform: scale(1.1);
    background: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .featured-image {
        height: 200px;
    }

    .recommended-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .recommended-img {
        height: 140px;
    }

    .hot-games-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hot-game-img {
        height: 120px;
    }

    .categories-row {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }

    .games-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .game-thumbnail {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .featured-image {
        height: 180px;
    }

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

    .recommended-img {
        height: 120px;
    }

    .hot-games-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .categories-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

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

    .game-thumbnail {
        height: 80px;
    }

    .game-details {
        padding: 8px;
    }

    .game-details h5 {
        font-size: 0.8rem;
    }

    .play-link {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}
