/* product.css —— 产品列表页专属样式 */

/* ========== 页面布局 ========== */
.products-page{
    padding-top: 70px;
}

.section-hero {
    background: linear-gradient(135deg, rgba(15, 65, 128, 0.4), rgba(21, 101, 192, 0.5)),
                url('../image/rdt/cp2.jpg') center/cover no-repeat;
    min-height: 500px;
}

/* ========== 产品网格 ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 40px auto;
}

/* ========== 产品卡片 ========== */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 360px;
}

.product-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* 图片区域 */
.product-card-image {
    width: 100%;
    height: 340px;
    overflow: hidden;
    border-bottom: 1px solid #e3eafc;
}

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

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

/* 内容区域 */
.product-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h2 {
    color: #1565c0;
    font-size: 1.3em;
    margin: 0 0 12px 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-card p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    flex: 1;
}

/* 悬停时标题变色 */
.product-card:hover h2 {
    color: #0d47a1;
}

/* ========== 产品列表页响应式 ========== */
/* 中等屏幕 (992px-1199px) */
@media (max-width: 1199px) {
    .section-hero {
        min-height: 400px;
    }

    .section-hero h1 {
        font-size: 2.4rem;
    }

    .products-grid {
        gap: 28px;
    }

    .product-card-image {
        height: 220px;
    }
}

/* 平板尺寸 (768px-991px) */
@media (max-width: 991px) {
    .section-hero {
        min-height: 350px;
    }

    .section-hero h1 {
        font-size: 2.2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
        padding: 40px 20px;
    }

    .product-card-image {
        height: 200px;
    }
}

/* 大手机尺寸 (576px-767px) */
@media (max-width: 767px) {
    .section-hero {
        min-height: 300px;
    }

    .section-hero h1 {
        font-size: 2rem;
    }

    .section-hero p {
        font-size: 1.1rem;
    }

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

    .product-card-content {
        padding: 20px;
    }

    .product-card h2 {
        font-size: 1.3rem;
    }
}

/* 小手机尺寸 (480px-575px) */
@media (max-width: 575px) {
    .section-hero {
        min-height: 250px;
    }

    .section-hero h1 {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .product-card-image {
        height: 180px;
    }
}

/* 超小手机尺寸 (小于480px) */
@media (max-width: 479px) {
    .products-page {
        padding-top: 60px;
    }

    .section-hero {
        min-height: 200px;
    }

    .section-hero h1 {
        font-size: 1.6rem;
    }

    .section-hero p {
        font-size: 1rem;
    }

    .product-card-image {
        height: 160px;
    }

    .product-card-content {
        padding: 16px;
    }

    .product-card h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .product-card p {
        font-size: 0.9rem;
    }
}

