/* ==========================================
   碧春 Banner 轮播图样式
   ========================================== */

.bichun-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 940;
  overflow: hidden;
  min-height: 300px;
}

.bichun-banner-container {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.bichun-banner .swiper {
  width: 100%;
  height: 100%;
}

.bichun-banner .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bichun-banner .banner-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: 0;
  /* Mask image 遮罩效果 */
  -webkit-mask-image: url('https://okki-shop.oss-cn-hangzhou.aliyuncs.com/templates/shop-default/b5891a5f-2ae9-4b7b-9ed7-24029025dbbb-%201%20%283%29.png');
  -webkit-mask-size: 100% 100%;
  -webkit-mask-position: center bottom;
  -webkit-mask-repeat: no-repeat;
  mask-image: url('https://okki-shop.oss-cn-hangzhou.aliyuncs.com/templates/shop-default/b5891a5f-2ae9-4b7b-9ed7-24029025dbbb-%201%20%283%29.png');
  mask-size: 100% 100%;
  mask-position: center bottom;
  mask-repeat: no-repeat;
}

.bichun-banner .banner-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Mask image 遮罩效果 */
  -webkit-mask-image: url('https://okki-shop.oss-cn-hangzhou.aliyuncs.com/templates/shop-default/b5891a5f-2ae9-4b7b-9ed7-24029025dbbb-%201%20%283%29.png');
  -webkit-mask-size: 100% 100%;
  -webkit-mask-position: center bottom;
  -webkit-mask-repeat: no-repeat;
  mask-image: url('https://okki-shop.oss-cn-hangzhou.aliyuncs.com/templates/shop-default/b5891a5f-2ae9-4b7b-9ed7-24029025dbbb-%201%20%283%29.png');
  mask-size: 100% 100%;
  mask-position: center bottom;
  mask-repeat: no-repeat;
}

.bichun-banner .banner-video video,
.bichun-banner .banner-video iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 播放按钮 - 水波纹效果 */
.bichun-banner .banner-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.bichun-banner .banner-video-play-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 61px;
  height: 61px;
  border-radius: 50%;
  transform-origin: center center;
  border: 4px solid rgba(255, 255, 255, 0.5);
}

/* 背景上的水波纹 */
.bichun-banner .banner-video-play-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 120%;
  height: 120%;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 1);
  animation: ripple 2s infinite;
  transform-origin: center;
}

/* 三角形图标 */
.bichun-banner .banner-video-play-icon {
  width: 20px;
  max-height: 20px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transform: translate(2px, 1px);
}

.banner-content-wrap {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.banner-content-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13, 76, 145, 0.60) 0%, rgba(13, 76, 145, 0.00) 100%);
  z-index: 0;
}

.banner-content-wrap .container {
  padding-top: 1rem;
  position: relative;
  z-index: 1;
}

.banner-content-wrap-title {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  line-height: normal !important;
}

.banner-content-wrap-subtitle {
  font-weight: 600;
  line-height: 200%;
  margin-top: 5px;
  color: #fff;
}

.banner-content-wrap-btn {
  width: max-content;
  margin-top: 2.5rem;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

.bichun-banner .banner-video.playing .banner-video-play-btn {
  opacity: 0;
  pointer-events: none;
}

@media screen and (max-width: 1024px) {
  .bichun-banner .banner-video {
    mask: none !important;
    -webkit-mask: none !important;
  }
}

@media screen and (max-width: 576px) {
  .banner-content-wrap-subtitle {
    line-height: normal;
  }
}
