/* 产品中心页面样式 */

/* 页面顶部横幅 */
.page-banner {
    background:  url('../images/banner.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.page-banner-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.page-banner-content p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* 产品分类导航 */
.product-categories {
    background-color: #f8f9fa;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.category-nav li {
    margin: 0 15px;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
}

.category-nav li:hover {
    color: var(--primary-color);
}

.category-nav li.active {
    color: var(--primary-color);
}

.category-nav li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 生产线展示区域 */
.production-lines {
    padding: 60px 0;
}

/* 生产线样式 */
.production-line {
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}

.production-line:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.line-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.line-description {
    margin-bottom: 30px;
}

.line-description p {
    color: #666;
    font-size: 16px;
    max-width: 90%;
}

/* 产品详情三列布局 */
.product-detail-layout {
    display: grid;
    grid-template-columns: 35% 25% 40%;
    gap: 20px;
    margin-bottom: 20px;
}

.product-detail-layout1 {
    display: grid;
    grid-template-columns: 100%;
   margin-bottom: 20px;
}

/* 左侧 - 产品主图 */
.product-main-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.product-detail-layout1 .product-main-image img {
    width: 100%;
    /*height: 320px;*/
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.product-detail-layout .product-main-image img {
    width: 100%;
    /*height: 320px;*/
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
}

/* 中间 - 产品示例 */
.product-examples {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-examples h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.example-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.example-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    /*padding: 10px;*/
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.example-item img {
    width: 70%;
    /*height: 80px;*/
    object-fit: cover;
    border-radius: 4px;
    /*margin-right: 15px;*/
}

.example-item span {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* 右侧 - 产品说明 */
.product-description {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-description h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.product-description ul {
    list-style: none;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.product-description li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    flex: 1;

}

.product-description li i {
    color: var(--secondary-color);
    margin-right: 10px;
    margin-top: 5px;
}

.product-spec {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.product-spec p {
    margin-bottom: 8px;
    font-size: 14px;
}

.product-spec p:last-child {
    margin-bottom: 0;
}

.product-description .btn {
    width: 100%;
    margin-top: 10px;
}

/* 咨询区块样式 */
.product-inquiry {
    background: linear-gradient(rgba(13, 71, 161, 0.9), rgba(13, 71, 161, 0.9)), url('../images/banner.png');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: white;
    text-align: center;
}

.inquiry-content {
    max-width: 800px;
    margin: 0 auto;
}

.inquiry-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.inquiry-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.inquiry-content .btn {
    background: var(--secondary-color);
    padding: 12px 30px;
    font-size: 18px;
}

.inquiry-content .btn:hover {
    background: #e05600;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .category-nav {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .category-nav::-webkit-scrollbar {
        height: 5px;
    }
    
    .category-nav::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 5px;
    }
}

@media (max-width: 768px) {
    .page-banner-content h1 {
        font-size: 28px;
    }
    
    .category-nav li {
        margin: 0 10px;
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .line-title {
        font-size: 20px;
    }
    
    .product-main-image img {
        height: 250px;
    }
    
    .inquiry-content h2 {
        font-size: 24px;
    }
    
    .inquiry-content p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .example-item {
        flex-direction: column;
        text-align: center;
    }
    
    .example-item img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .product-description, .product-examples {
        padding: 15px;
    }
} 