/* 游戏列表页样式 */

.page-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #4ecca3;
}

.filters {
    margin: 2rem 0;
    text-align: center;
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.category-filter a {
    /* 取消a链接的下划线 */
    text-decoration: none !important;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.filter-btn:hover,
.filter-btn.active {
    background: #4ecca3;
    color: #000;
    border-color: #4ecca3;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.game-card {
    background: #0c1622;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid #1a2a40;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(78, 204, 163, 0.2);
    border-color: #4ecca3;
}

.game-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 2px solid #1a2a40;
}

.game-info {
    padding: 20px;
    background: linear-gradient(to bottom, rgba(12, 22, 34, 0.7), rgba(26, 42, 64, 0.9));
}

.game-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
}

.game-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(45deg, #2c3e50, #1a2a40);
    color: #4ecca3;
    border-radius: 30px;
    font-size: 12px;
    margin-bottom: 15px;
    border: 1px solid #2c3e50;
}

.game-rating {
    color: #f8b400;
    margin-bottom: 15px;
    font-size: 16px;
}

.game-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.game-actions a {
    flex: 1;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateY(-3px);
    color: #fff;
    border-color: #764ba2;
}

/* .pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-link {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background: #4ecca3;
    color: #000;
    border-color: #4ecca3;
} */

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .search-box {
        width: 100%;
        max-width: 400px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

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

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

    .search-box input {
        width: 180px;
    }
    
    .game-actions {
        flex-direction: column;
    }
}