.baichen-product-section {
  background: linear-gradient(400deg, #080808 50%, #23262B 100%);
  background-image: url('https://okki-shop.oss-cn-hangzhou.aliyuncs.com/category/427473/3155/c20883155e673c85dfff798283d98cbb/glow.jpg');
  color: #fff;
  padding-top: 50px;
  padding-bottom: 50px;
  background-position: top right;
  background-position-x: 73%;
  background-size: cover;
}

.baichen-product-section .baichen-product-title {
  text-align: center;
}

.carousel-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 60px;
  padding: 0 40px;
}

.baichen-product-section .left-preview {
  width: 40%;
  position: relative;
  /* padding-left: 100px; */
  padding-top: 120px;
}

.baichen-product-section .left-preview .img-preview {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 300px;
}

.baichen-product-section .left-preview .img-preview .preview-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.baichen-product-section .left-preview .img-preview .preview-item.active {
  opacity: 1;
  visibility: visible;
  /* transform: translateY(0) scale(1); */
}

.baichen-product-section .left-preview .img-preview .preview-item.active img{animation:scale1 0.4s linear;}

@keyframes scale1{ 
from {transform:scale(0);}
  50% {transform:scale(0.5);}
  to {transform:scale(1);} 
}

.baichen-product-section .left-preview .preview-item img {
  width: 80%;
  height: auto;
  /* transition: transform 0.3s ease, opacity 0.3s ease; */
}

.baichen-product-section .right-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60%;
  position: relative;
}

.baichen-product-section .swiper {
  width: 100%;
  /* max-width: 600px; */
  overflow: hidden;
}

.baichen-product-section .swiper-wrapper {
  display: flex;
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

.baichen-product-section .swiper-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.baichen-product-section .preview-item {
  position: relative;
  overflow: hidden;padding-bottom:1px;
}

.baichen-product-section .t-wrapper {
  max-width: 797px;
  margin: 0 auto;
}

.baichen-product-section .preview-item img {
  width: 100%;
  max-width: 734px;
  height: auto;
 /* transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);*/
}

.baichen-product-section .swiper-slide-active .preview-item img{
 animation:scale1 0.4s linear;
}


.baichen-product-section .left-preview h5 {
  margin-top: 40px;
  font-size:clamp(20px, 1.88vw, 36px);
  font-weight: 400;
  color: #fff;
  transition: opacity 0.3s ease;
}

.baichen-product-section .right-preview .title-content {
  margin-top: 70px;
  text-align: left;
  display: flex;
  align-items: center;
  animation: fadeInUp 0.6s ease forwards;
}

.baichen-product-section .right-preview .title-content h4 {
  font-size:clamp(22px, 1.88vw, 36px);
  font-weight: 700;
  color: #fff;
  transition: color 0.3s ease;
}

.baichen-product-section .right-preview .preview-item .btns {
  position: relative;
  display: inline-block;
  background: rgba(0,0,0,0);
  border: 1px solid #fff;
  color: #fff;
  border-radius: 24px;
  padding: 8px 24px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;margin-left:20px;
}

.baichen-product-section .right-preview .preview-item .btns:hover::before{
  content:attr(data-text);
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  color: #fff;
  background: var(--color-primary);
  border-radius: 20px;
  animation: animation_btn .3s ease-in-out;
}
.baichen-product-section .right-preview .preview-item .btns.leaving::before{
  content:attr(data-text);
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  color: #fff;
  background: var(--color-primary);
  border-radius: 20px;
  animation: animation_btn_leave .3s ease-in-out;
}
.baichen-product-section .right-preview .preview-item .btns:hover{
  border: 1px solid var(--color-primary);
  color: rgba(0,0,0,0);
  transition: all .3s;
}

.baichen-product-section .right-preview .preview-item .t-wrapper >.btns {display:none;}




@keyframes animation_btn_leave {
  0% {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    transform: translate(0%, 0%);
  }
  70% {
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 0 0;
  }
  100% {
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 0 0;
    transform: translate(0%, 100%);
  }
}
@keyframes animation_btn{
  0% {
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 0 0;
    transform: translate(0%, 100%);
  }
  30% {
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 0 0;
  }
  100% {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    transform: translate(0%, 0%);
  }
}

.baichen-product-section .right-preview .desc-content {
  margin-top: 18px;
  color: #8A8A8A;
  font-size: 18px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;display:none;
}

.baichen-product-section .right-preview .pro-content{
	margin-top: 18px;max-width: 797px;
	color: #8A8A8A;
	font-size: 18px;
	line-height: 1.7;
}


/* 桌面端控制按钮样式 */
.baichen-product-section .desktop-controls {
  display: flex;
  gap: 16px;
  /* margin-top: 24px; */
  justify-content: flex-start;
  position: absolute;
    left: -65%;
    bottom: 80px;
}

/* 移动端控制按钮样式 - 初始隐藏 */
.baichen-product-section .mobile-controls {
  display: none;
}

.baichen-product-section .carousel-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid #fff;
}
.baichen-product-section .carousel-controls #prevBtn::before{
  content: '\e64f';
}
.baichen-product-section .carousel-controls #nextBtn::before{
  content: '\e650';
}
.baichen-product-section .carousel-controls button::before {
  font-family: "qico" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  background: var(--color-primary);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius:50% ;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: top .3s ease-in-out;
  z-index: 2;
  pointer-events: none;
}
.baichen-product-section .carousel-controls button:hover::before{
  top: 0;
}
.baichen-product-section .carousel-controls button:hover {
  border-color: var(--color-primary);
  color: rgba(0,0,0,0);
  transition: all .3s;
}

.right-preview .swiper-pagination-bullets.swiper-pagination-horizontal{position:static;margin-top:30px;text-align:center;font-size:0;display:none;}
.right-preview .swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet{width:12px;height:12px;border:none;display:inline-block;border-radius:50%;background:#fff;opacity:1;margin:0 3px;}
.right-preview .swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet-active{background:#026EB7;}


/* 增强的动画关键帧 */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  50% {
    opacity: 0.8;
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slide_btn {
  0% {
    transform: translate(0%, 100%);
  }
  100% {
    transform: translate(0%, 0%);
  }
}

@media (max-width:1441px) {
.baichen-product-section .right-preview .pro-content{font-size:17px;}
}

@media (max-width: 1280px) {

  .baichen-product-section .right-preview .preview-item {
    padding-left: 60px;
    padding-right: 60px;
  }

  .baichen-product-section .left-preview .preview-item img {
    width: 88%;
  }
.baichen-product-section .right-preview .pro-content{font-size:16px;line-height:1.5;margin:15px 0 0 60px;}

.baichen-product-section .right-preview .preview-item .btns{padding:7px 22px;font-size:15px;}

.baichen-product-section .right-preview .title-content{margin-top:50px;}

}

/* 响应式设计 */
@media (max-width: 991px) {
  .baichen-product-section {
    padding-top: 40px;
    padding-bottom: 30px;
  }
  
  .baichen-product-section .right-preview .pro-content{margin:15px 0 0 0;}

  .baichen-product-section .carousel-wrapper {
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
    padding: 0 20px;
    align-items: center;
  }
  
  /* 在小屏幕下隐藏左侧预览 */
  .baichen-product-section .left-preview {
    display: none;
  }
  
  .baichen-product-section .right-preview {
    width: 100%;
    /* max-width: 500px; */
    position: relative;
  }

  .baichen-product-section .right-preview .preview-item {
    padding-left: 0;padding-right:0;
  }
  
  .baichen-product-section .swiper {
    max-width: 100%;
  }
  
  .baichen-product-section .right-preview .title-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .baichen-product-section .right-preview .preview-item .btns{
    margin-left: 0;
    margin-top: 0;
  }
  
  .baichen-product-section .right-preview .desc-content {
    font-size: 1rem;
    margin-top: 15px;
  }
  
  /* 隐藏桌面端控制按钮 */
  .baichen-product-section .desktop-controls {
    display: none;
  }
  
  /* 显示移动端控制按钮 */
  .baichen-product-section .right-preview:hover .mobile-controls {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
  }
  
  .baichen-product-section .mobile-controls .mobile-prev {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: all;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    background: rgba(26, 35, 48, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .baichen-product-section .mobile-controls .mobile-next {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: all;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    background: rgba(26, 35, 48, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  
.baichen-product-section .mobile-controls .mobile-prev::before{
  content: '\e64f';
}
 .baichen-product-section .mobile-controls .mobile-next::before{
  content: '\e650';
}
.baichen-product-section .mobile-controls .mobile-next::before,
.baichen-product-section .mobile-controls .mobile-prev::before{
  font-family: "qico" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  background: var(--color-primary);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius:50% ;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: top .3s ease-in-out;
  z-index: 2;
  pointer-events: none;
}
.baichen-product-section .mobile-controls .mobile-next:hover::before,
.baichen-product-section .mobile-controls .mobile-prev:hover::before{
  top: 0;
}

.baichen-product-section .mobile-controls .mobile-prev:hover,
.baichen-product-section .mobile-controls .mobile-next:hover {
  border-color: var(--color-primary);
  color: rgba(0,0,0,0);
  transition: all .3s;
}

.right-preview .swiper-pagination-bullets.swiper-pagination-horizontal{display:block;}


}

@media screen and (max-width:768px){
.baichen-product-section{padding-top:30px;}
.baichen-product-section .right-preview .title-content{margin-top:25px;}
.baichen-product-section .right-preview .pro-content{font-size:16px;margin-top:15px;}

}


@media screen and (max-width:576px) {
.baichen-product-section .right-preview .preview-item .btns{padding:6px 24px;font-size:14px;background: transparent;border-color:#135EA9;}
.baichen-product-section .right-preview .preview-item .title-content .btns{display:none;}
.baichen-product-section .right-preview .preview-item .t-wrapper >.btns {display:inline-block;margin:15px 0 0;padding:6px 20px;font-size:14px;}
}

@media (max-width: 576px) {
  .baichen-product-section .carousel-wrapper {
    padding: 0 15px;
  }
  
.baichen-product-section .right-preview .desc-content{font-size:15px;}
.baichen-product-section .right-preview .pro-content{font-size:15px;}

.baichen-product-section .preview-item .pic{padding:10%;}

  /* 调整小屏幕下的按钮位置 */
  .baichen-product-section .mobile-controls .mobile-prev {
    left: 5px;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .baichen-product-section .mobile-controls .mobile-next {
    right: 5px;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .baichen-product-section .right-preview:hover .mobile-controls {display:none;}

}

@media screen and (max-width:480px) {
.baichen-product-section .right-preview .title-content .btns{padding:6px 20px;font-size:14px;}
.baichen-product-section .right-preview .desc-content{font-size:14px;}
.baichen-product-section .right-preview .pro-content{font-size:14px;}

}








