/* 产品页面通用样式 */
.product-page {
    padding: 60px 0;
}

/* 产品筛选（预留，便于后续后台接入） */
.product-filter {
    background-color: #f9f9f9;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.product-filter label {
    color: #333;
    font-weight: 500;
}

.product-filter select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    outline: none;
    transition: border 0.3s ease;
}

.product-filter select:focus {
    border-color: #0056b3;
}

/* 产品网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 产品卡片样式 */
.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-text {
    padding: 25px 20px;
}

.product-card-text h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-text .spec {
    color: #0056b3;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-card-text p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    height: 72px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.product-card-text .price {
    color: #d9534f;
    font-weight: bold;
    font-size: 16px;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-filter {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 产品总览页面（products.html）专属样式 */
.products-overview {
    padding: 80px 0;
}

.products-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.products-overview-card {
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.products-overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.products-overview-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 30px;
}

.products-overview-card h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.products-overview-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .products-overview-grid {
        grid-template-columns: 1fr;
    }
}
