/* 产品页面通用样式 */
.banner {
    width: 100%;
    overflow: hidden;
    margin-bottom: 50px;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

.content {
    margin: 60px 0;
    position: relative;
}

.content h2 {
    margin: 0 0 30px 0;
    font-size: 28px;
    color: #1387c9;
    padding-bottom: 15px;
    border-bottom: 2px solid #1387c9;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0e6b9e;
}

.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.product {
    flex: 1 1 calc(25% - 23px);
    min-width: 280px;
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #1387c9;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product:hover::before {
    transform: scaleX(1);
}

.product:hover {
    border-color: #1387c9;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product a {
    display: block;
    color: #333;
    text-decoration: none;
}

.product .image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

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

.product:hover img {
    transform: scale(1.1);
}

.product-name {
    font-weight: 700;
    font-size: 18px;
    padding: 10px 0;
    color: #2c3e50;
    margin-bottom: 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 60px;
}

.product-price {
    font-size: 20px;
    color: #e74c3c;
    font-weight: 700;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product {
        flex: 1 1 calc(33.333% - 13px);
    }
}

@media (max-width: 768px) {
    .product {
        flex: 1 1 calc(50% - 10px);
        min-width: 200px;
    }
    
    .content h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .product {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .content h2 {
        font-size: 20px;
    }
}