/* 管家婆生态产品页面样式 */

/* Banner区域 */
.eco-banner {
    background:url('../images/banner-ecosystem.png') no-repeat center center;
    padding: 60px 0 40px;
    text-align: center;
    height: 400px;
}

.eco-banner-content {
    text-align: left;
    padding-top: 48px;
}

.eco-banner-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.eco-banner-desc {
    font-size: var(--text-md);
    color: #64748b;
    line-height: 1.6;
}

/* 产品列表区域 */
.eco-products {
    margin-top: -148px;
    padding: 0px 0 48px 0;
}

.eco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 产品卡片 */
.eco-card {
    height: 480px;
    border-radius: 12px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(193, 217, 255, 1) 0%, rgba(240, 247, 255, 1) 100%);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.eco-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.eco-card-header {
    margin-bottom: 12px;
}

.eco-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #ffffff;
    color: #000;
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: 4px;
}

.eco-card-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.eco-card-desc {
    font-size: var(--text-sm);
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.eco-card-link {
    display: inline-block;
    padding: 4px 20px;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    align-self: flex-start;
}

.eco-card-link:hover {
    background: #3b82f6;
    color: #ffffff;
}

.eco-card-image {
    width: 100%;
    height: 160px;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* CTA区域 - 与主页bottom-cta样式保持一致 */
.bottom-cta {
    padding: 48px 0;
    background: url(../images/comm-cta-bg.png) top center no-repeat;
    position: relative;
    overflow: hidden;
}

.bottom-cta::before {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.bottom-cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.bottom-cta-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.bottom-cta-desc {
    font-size: var(--text-base);
    color: #64748b;
    margin-bottom: 32px;
}

.bottom-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-cta-primary {
    background: #2563eb;
    color: #fff;
    padding: 12px 32px;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-cta-secondary {
    background: #fff;
    color: #2563eb;
    padding: 12px 32px;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #2563eb;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .eco-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .eco-banner {
        padding: 40px 0 30px;
    }

    .eco-banner-title {
        font-size: var(--text-2xl);
    }

    .eco-banner-desc {
        font-size: var(--text-base);
    }

    .eco-products {
        padding: 40px 0;
    }

    .eco-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .eco-card {
        padding: 20px;
    }

    .eco-cta {
        padding: 60px 0;
    }

    .eco-cta-title {
        font-size: var(--text-xl);
    }

    .eco-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .eco-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .eco-card-title {
        font-size: var(--text-base);
    }

    .eco-card-desc {
        font-size: var(--text-sm);
    }

    .eco-card-image {
        height: 140px;
    }
}
