.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: 40px;
}

.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: 140px;
}

.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 .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;
}

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

.baichen-product-section .left-preview .preview-item img {
  /* width: 80%; */
}

.baichen-product-section .left-preview h5 {
  margin-top: 18px;
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
  transition: opacity 0.3s ease;
}

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

.baichen-product-section .right-preview .title-content h4 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  transition: color 0.3s ease;
}

.baichen-product-section .right-preview .title-content .btn {
  margin-left: 20px;
  display: inline-block;
  background: var(--color-primary, #135EA9);
  color: #fff;
  border-radius: 24px;
  padding: 8px 24px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 10px;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform: translateY(0);
}

.baichen-product-section .right-preview .title-content .btn:hover {
  background: var(--btn-hover, #0d3e6e);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(19, 94, 169, 0.3);
}

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

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

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

.baichen-product-section .carousel-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1A2330;
  color: #fff;
  font-size: 1.5rem;
  border: none;
  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;
}

.baichen-product-section .carousel-controls button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.baichen-product-section .carousel-controls button:hover {
  background: var(--color-primary, #135EA9);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(19, 94, 169, 0.3);
}

.baichen-product-section .carousel-controls button:hover::before {
  left: 100%;
}

.baichen-product-section .carousel-controls button:active {
  transform: translateY(0);
}

/* 增强的动画关键帧 */
@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 fadeOutDown {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    visibility: hidden;
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1400px) {
  .baichen-product-section .left-preview {
    padding-left: 80px;
  }
}

@media (max-width: 1200px) {
  .baichen-product-section .left-preview {
    padding-left: 60px;
  }
}

/* 响应式设计 */
@media (max-width: 991px) {
  .baichen-product-section {
    padding-top: 40px;
    padding-bottom: 30px;
  }
  
  .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 .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 .title-content h4 {
    font-size: 28px;
  }
  
  .baichen-product-section .right-preview .title-content .btn {
    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:hover,
  .baichen-product-section .mobile-controls .mobile-next:hover {
    background: rgba(19, 94, 169, 0.9);
    transform: translateY(-50%) scale(1.1);
  }
}

@media (max-width: 576px) {
  .baichen-product-section .carousel-wrapper {
    padding: 0 15px;
  }
  
  .baichen-product-section .right-preview .title-content h4 {
    font-size: 24px;
  }
  
  .baichen-product-section .right-preview .desc-content {
    font-size: 0.95rem;
  }
  
  /* 调整小屏幕下的按钮位置 */
  .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;
  }
}
