/* 产品中心页面专用样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
}

.product-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Product Swiper 样式 */
.product-swiper-container {
    position: relative;
    overflow: hidden; /* 恢复为hidden，确保内容正常显示 */
    min-height: 400px; /* 设置合适的最小高度 */
}

/* Swiper容器样式 - 支持高度自适应 */
.swiper.productSwiper {
    height: auto; /* 设置高度为自动 */
}

/* 确保slide内容能正确展开 */
.swiper.productSwiper .swiper-wrapper {
    align-items: flex-start;
    height: auto;
}

/* 确保每个slide可以根据内容调整高度 */
.swiper.productSwiper .swiper-slide {
    height: auto;
    display: block;
    overflow: hidden; /* 防止内容溢出 */
}

/* 产品详情区域样式优化 */
.swiper.productSwiper .swiper-slide .product-detail {
    width: 100%;
    overflow: hidden;
}

/* 产品图片样式优化 */
.swiper.productSwiper .swiper-slide .product-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 产品描述样式优化 */
.swiper.productSwiper .swiper-slide .product-description {
    overflow: hidden;
}

/* 自定义Pagination样式 */
.product-swiper-pagination {
    height: 90px;
    background-color: #fff;
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    border-bottom: 1px solid #e0e0e0;
    margin: 0 13%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏滚动条但保留功能 */
.product-swiper-pagination::-webkit-scrollbar {
    display: none;
}

.product-pagination-item {
    display: inline-block;
    padding: 29px 20px;
    margin: 0 10px;
    font-size: 17px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    box-sizing: border-box;
}


.product-pagination-item.active {
    color: #004c98;
    font-weight: bold;
    border-bottom: 4px solid #004c98;
}

/* Swiper默认导航按钮样式 */
.swiper-button-prev,
.swiper-button-next {
    top: 25px !important;
    width: 40px !important;
    height: 40px !important;
    background-color: #CFDAE5 !important;
    border-radius: 50% !important;
    color: transparent !important;
    transition: all 0.3s ease !important;
    margin-top: 0 !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #b9c5d1 !important;
}

.swiper-button-prev {
    left: 9% !important;
    background-image: url('../img/prev.png') !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.swiper-button-next {
    right: 9% !important;
    background-image: url('../img/next.png') !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* 移除默认的箭头 */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none !important;
}

/* Swiper Slide Content Styles */
.swiper-slide {
    background-color: #F1F4F7;
    padding: 2% 14%;
}

.slide-content {
    height: 100%;
}

.location-info {
    font-size: 15px;
    color: #999;
    margin-bottom: 20px;
}

.product-detail {
    display: flex;
    flex-direction: column;
    gap: 2%;
    margin: 2% 9%;
}

.product-image {
    width: 39%;
    margin: 20px auto;
    margin-bottom: 20px;
}

.product-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
}

.product-title {
    font-size: 36px;
    color: #666;
    font-weight: bold;
    margin: 10px 0;
}

.product-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* 相关产品区域样式 */
.related-products-section {
    background-color: #fff;
    padding: 40px 0;
}

.related-products-container {
    margin: 0 auto;
    padding: 0 12%;
}

.related-products-title {
    font-size: 36px;
    color: #333;
    margin-top: 4%;
    margin-bottom: 30px;
    text-align: left;
    position: relative;
}

.related-products-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #004c98;
    margin: 15px 0 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.03) rotate(0.5deg);
    box-shadow: 0 20px 40px rgba(0, 76, 152, 0.2);
    border-color: #004c98;
    background-color: #f8fbff;
    z-index: 10;
}

.product-image-container {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image-container img {
    transform: scale(1.15) rotate(-2deg);
}

.product-text-container {
    padding: 15px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.product-text-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 76, 152, 0.05), transparent);
    transition: left 0.8s ease;
}

.product-card:hover .product-text-container::before {
    left: 100%;
}

.product-card-title {
    font-size: 24px;
    color: #333;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.product-card:hover .product-card-title {
    color: #004c98;
    transform: translateX(8px);
    font-weight: 600;
}

.product-card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #004c98;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card-title::after {
    width: 100%;
}

.product-card-description {
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card-description {
    color: #444;
    transform: translateX(5px);
}

.product-card-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 更多产品区域样式 */
.more-products {
    max-height: 0;
    overflow: hidden;
    margin-top: 20px;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.more-products.active {
    max-height: 1000px;
}

/* 产品操作按钮样式 */
.product-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

#view-all-products {
    padding: 12px 30px;
    background-color: #004c98;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#view-all-products:hover {
    background-color: #003a75;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

  
 /* 查看全部按钮样式 */
 .view-all-container {
     text-align: center;
     margin-top: 30px;
 }
  
 .view-all-button {
     display: inline-flex;
     align-items: center;
     color: #004c98;
     text-decoration: none;
     font-size: 16px;
     padding: 10px 20px;
     border: 1px solid #004c98;
     border-radius: 4px;
     transition: all 0.3s ease;
 }
  
 .view-all-button:hover {
     background-color: #004c98;
     color: #fff;
 }
 .view-all-container .btn-primary {
    width: 164px;
    margin: 3%;
 }
  
 .view-all-container .btn-primary:hover {
     background-color: #004c98;
     color: #fff;
 }
 .arrow-icon {
     width: 28px;
     height: 8px;
     margin-left: 5px;
     transition: transform 0.3s ease;
 }
  
 .view-all-button:hover .arrow-icon {
     transform: translateX(3px);
 }

 /* 按钮交互样式 */
.view-all-btn {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease, background-color 0.3s ease;
}

.view-all-btn.expanded {
    transform: translateY(10px);
}

/* 产品展开/收起动画相关样式 */
.product-expand-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

 .product-expand-item.active {
     opacity: 1;
     transform: translateY(0);
 }

 /* 为延迟动画添加CSS类 */
 .product-expand-delay-1 {
     transition-delay: 0.1s;
 }

 .product-expand-delay-2 {
     transition-delay: 0.2s;
 }

 .product-expand-delay-3 {
     transition-delay: 0.3s;
 }

 .product-expand-delay-4 {
     transition-delay: 0.4s;
 }

/* 响应式样式 - 适配不同屏幕宽度 */
@media (max-width: 1600px) {
    .product-pagination-item {
        font-size: 16px;
        padding: 8px 16px;
        margin: 0 8px;
    }
    .products-grid {
        grid-template-columns: repeat(4, minmax(200px,1fr));
    }
}

@media (max-width: 1400px) {
    .product-pagination-item {
        font-size: 15px;
        padding: 8px 14px;
        margin: 0 6px;
    }
    .product-swiper-pagination {
        padding: 0 12%;
    }
    .related-products-title {
    font-size: 32px;
    }   
    .product-title {
    font-size: 28px;
    }
    .product-card-title {
    font-size: 21px;
    }

}

@media (max-width: 1200px) {
    .product-pagination-item {
        font-size: 14px;
        padding: 7px 12px;
        margin: 0 5px;
    }
    .product-swiper-pagination {
        padding: 0 10%;
    }
    
    .related-products-title {
    font-size: 30px;
    }   
    .product-title {
    font-size: 26px;
    }
    .product-card-title {
    font-size: 20px;
    }
}

@media (max-width: 992px) {
    .product-pagination-item {
        font-size: 13px;
        padding: 6px 10px;
        margin: 0 4px;
    }
    .product-swiper-pagination {
        padding: 0 8%;
    }
     .products-grid {
         grid-template-columns: repeat(2, 1fr);
     }
     
    .related-products-title {
    font-size: 28px;
    }   
    .product-title {
    font-size: 24px;
    }
    .product-card-title {
    font-size: 19px;
    }
}

@media (max-width: 768px) {
    .product-pagination-item {
        font-size: 12px;
        padding: 5px 8px;
        margin: 0 3px;
    }
    .product-swiper-pagination {
        padding: 0 6%;
    }
    
    .product-image-container {
        height: 150px;
    }
     .products-grid {
         gap: 15px;
     }
    .related-products-title {
    font-size: 25px;
    }   
    .product-title {
    font-size: 22px;
    }
    .product-card-title {
    font-size: 18px;
    }
     
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
 }