/* 产品展示区域样式 */
.product-showcase-section {
    padding: 60px 0 0 0; /* 只保留顶部padding */
    background: #fff;
    width: 100%;
    overflow: hidden; /* 防止出现横向滚动条 */
    margin: 0; /* 确保没有margin */
}

/* 容器样式 */
.product-showcase-section .auto-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* 标题样式 */
.title-style-one.style-two {
    margin-bottom: 40px;
}

.title-style-one.style-two h2::before {
    position: absolute;
    content: '';
    left: 0px;
    bottom: 0px;
    width: 120px;
    height: 1px;
    background-color: #ed6c00;
}

.title-style-one.style-two h2::before {
    left: 50%;
  
    margin-left: -60px;
  
  }
  .title-style-one.style-two h2::after {
    left: 50%;
    margin-left: -60px;
  }
.title-style-one.style-two .text {
    color: #555;
    font-size: 16px;
}

/* 轮播区域样式 */
.product-carousel {
    position: relative;
    margin: 30px -10px 0 -10px; /* 使用负margin来抵消item的margin */
    width: calc(100% + 20px); /* 补偿负margin */
}

.products-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* 产品项样式 */
.product-item {
    position: relative;
    margin: 0 10px;
    transition: all 0.5s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.product-item img {
    width: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: all 0.5s ease;
}

/* 图片放大效果 */
.product-item:hover img {
    transform: scale(1.05);
}

/* 标题样式 */
.product-item h4 {
    position: absolute;
    bottom: 15px;  /* 初始位置显示在底部 */
    left: 0;
    right: 0;
    margin: 0;
    padding: 15px;
    color: #fff;
    font-size: 22px;  /* 增大字体 */
    font-weight: 700;  /* 加粗 */
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 悬停时标题上浮效果 */
.product-item:hover h4 {
    bottom: 35px;  /* 悬停时向上移动 */
    color: #fff;  /* 确保文字颜色保持白色 */
}

/* 图片容器样式 */
.product-item .img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* 渐变遮罩始终显示，但悬停时加深 */
.product-item .img-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 1;  /* 始终显示 */
    transition: opacity 0.3s ease;
}

.product-item:hover .img-wrapper::after {
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);  /* 悬停时稍微加深 */
}

/* Owl Carousel 样式覆盖 */
.owl-carousel {
    width: 100%;
    margin: 0;
    padding: 0;
}

.owl-carousel .owl-stage-outer {
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
    transition: all 0.5s ease !important;
}

.owl-carousel .owl-item {
    display: flex;
    justify-content: center;
}

/* 优化滑动动画 */
.owl-carousel .animated {
    animation-duration: 500ms; /* 减少动画时间 */
    animation-fill-mode: both;
    transition: all 0.5s ease;
}

/* 自动播放动画 */
.owl-carousel .owl-animated-in {
    z-index: 0;
}

.owl-carousel .owl-animated-out {
    z-index: 1;
}

/* 第一个项目移除左边距 */
.owl-carousel .owl-item:first-child .product-item {
    margin-left: 0;
}

/* 最后一个项目移除右边距 */
.owl-carousel .owl-item:last-child .product-item {
    margin-right: 0;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .product-item .img-wrapper {
        height: 220px;
    }
    .title-style-one.style-two h2 {
        font-size: 32px;
    }
    .product-item h4 {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .product-item .img-wrapper {
        height: 200px;
    }
    .product-item {
        margin: 0 2px;
    }
    .product-item h4 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .product-item .img-wrapper {
        height: 180px;
    }
    .product-showcase-section .auto-container {
        padding: 0 10px;
    }
    .product-item h4 {
        font-size: 16px;
    }
} 