/* 全部游戏页面样式 */

/* 主体内容样式 */
.main-content {
    width: 90%;
    max-width: 1400px;
    margin: 2rem auto;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.games-header h1 {
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.games-search {
    display: flex;
}

.games-search input {
    border: 1px solid #ddd;
    padding: 0.6rem 1rem;
    border-radius: 4px 0 0 4px;
    width: 300px;
    font-size: 1rem;
}

.games-search button {
    background-color: #ff5722;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.games-search button:hover {
    background-color: #e64a19;
}

/* 游戏网格样式 */
.all-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1.5rem;
}

/* 游戏卡片样式 - 与首页保持一致 */
.game-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 3/2;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

.game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.3s;
}

.game-card:hover .game-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5));
    height: 100%;
    justify-content: center;
    align-items: center;
}

.game-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.play-button-mini {
    background-color: #ff5722;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.game-card:hover .play-button-mini {
    opacity: 1;
    transform: translateY(0);
}

.play-button-mini:hover {
    background-color: #e64a19;
}

/* 响应式样式 */
@media (max-width: 1200px) {
    .all-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .all-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .games-search {
        width: 100%;
    }
    
    .games-search input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .all-games-grid {
        grid-template-columns: 1fr;
        grid-gap: 1rem;
    }
    
    .games-search input {
        width: calc(100% - 80px);
    }
    
    .main-content {
        width: 95%;
    }
} 