/* ===== 首页 - 产品中心区域 ===== */
.products {
    padding: 80px 20px;
    background: #fff;
}

.products .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.products .section-title h2 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
}

.products .section-title p {
    font-size: 1rem;
    color: #64748b;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 产品卡片 */
.product-card {
    display: block;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

/* 产品图片 */
.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

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

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

/* 产品信息 */
.product-info {
    padding: 16px;
    text-align: center;
}

.product-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-model {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

/* 响应式 */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products {
        padding: 50px 16px;
    }

    .products .section-title {
        margin-bottom: 30px;
    }

    .products .section-title h2 {
        font-size: 1.75rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image-wrapper {
        aspect-ratio: 1;
    }

    .product-info h3 {
        font-size: 0.8rem;
    }

    .product-model {
        font-size: 0.75rem;
    }
}
