/* 绿色产品推荐页面样式 - 绿色主题 */

/* 页面标题 */
.page-header {
    text-align: center;
    padding: 3em 0;
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.12) 0%, rgba(102, 187, 106, 0.12) 100%);
    border-radius: 20px;
    margin: 2em 0;
}

.page-header h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.page-header p {
    font-size: 1.3em;
    color: #388e3c;
    max-width: 600px;
    margin: 0 auto;
}

/* 产品展示区域 */
.products-section {
    padding: 3em 0;
}

.products-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 3em;
    color: #2e7d32;
    position: relative;
}

.products-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #43a047, #66bb6a);
    border-radius: 2px;
}

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

.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(67,160,71,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #c8e6c9;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #43a047, #66bb6a);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.5em;
    margin: 1.5em 1.5em 1em 1.5em;
    color: #2e7d32;
}

.product-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0 1.5em 1.5em 1.5em;
    padding-bottom: 1em;
}

.product-link {
    display: block;
    margin: 0 1.5em 1.5em 1.5em;
    text-align: center;
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.8em 2em;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(67,160,71,0.18);
}

.product-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.product-link:hover::before {
    left: 100%;
}

.product-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67,160,71,0.25);
}

/* 响应式设计 */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2em;
    }

    .page-header h1,
    .products-section h2 {
        font-size: 2em;
    }
}

@media (max-width: 600px) {
    .page-header {
        padding: 2em 0;
    }

    .page-header h1 {
        font-size: 1.8em;
    }

    .page-header p {
        font-size: 1.1em;
    }

    .products-section {
        padding: 2em 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .product-card h3 {
        margin: 1em 1em 0.5em 1em;
        font-size: 1.3em;
    }

    .product-card p {
        margin: 0 1em 1em 1em;
    }

    .product-link {
        margin: 0 1em 1em 1em;
        padding: 0.7em 1.5em;
    }
}
