/* 产品中心页面样式 */

.products-header {
    background: linear-gradient(135deg, #2c8a5c 0%, #4caf7d 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.products-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.products-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.products-content {
    padding: 50px 0;
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.category-btn {
    background-color: #f0f7f4;
    border: none;
    padding: 12px 25px;
    margin: 5px 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background-color: #2c8a5c;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    background-color: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.7;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    color: #2c8a5c;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.product-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.tag {
    background-color: #2c8a5c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .products-header h1 {
        font-size: 2rem;
    }

    .products-header p {
        font-size: 1rem;
    }

    .categories {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        margin: 5px;
    }
}