/* === 基本 Swiper 結構 === */
  /* 特別設定 */

.sec05_swipe {
  width: 55%;
}

.sec05_dragon {
  position: absolute;
  right: 0;
  bottom: -5%;
  width: 300px;
  z-index: 10;
  margin-right: 10%;
  pointer-events: none;
  cursor: none;
}
  /* 特別設定 */


#section05 .swiper{
  width: 100%;
  /* height: 100%; */
  position: relative;
  padding: 0 82px; /* 給左右箭頭預留空間 */
}

#section05 .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  transition: left 0.3s ease;
}

#section05 .swiper-slide img{
  display: block;
  width: 200%;
  height: auto;
  object-fit: cover;
  padding: 0;
  position: relative;
  padding: 1.5rem 1rem;
}

#section05 .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 100%;
  background-image: url('../images/sec_feature/frame.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
  z-index: 4;
  pointer-events: none;
}

/* 中間圖層遮罩效果 */
#section05 .swiper-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 100%;
  background-image: url('../images/sec_feature/black.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
  z-index: 5;
  pointer-events: none;
}


/* 中間圖層遮罩效果 */
#section05 .swiper-slide-active::after {
  opacity: 0;
}




/* === 滑動前後位置微調 === */
#section05 .swiper-slide.swiper-slide-prev {
  justify-content: left !important;
  left: 92px !important;
}

#section05 .swiper-slide.swiper-slide-next {
  justify-content: right !important;
  right: 92px !important;
}
#section05 .has-swiped .swiper-slide.swiper-slide-prev {
  left: 82px !important;
}

#section05 .has-swiped .swiper-slide.swiper-slide-next {
  right: 82px !important;
}

/* 滑動前  */
#section05 .swiper-slide.swiper-slide-prev::before,
#section05 .swiper-slide.swiper-slide-prev::after {
  left: 102% !important;
}

#section05 .swiper-slide.swiper-slide-next::before,
#section05 .swiper-slide.swiper-slide-next::after {
  left: -2% !important;
}

/* 滑動後  */
#section05.has-swiped .swiper-slide.swiper-slide-prev::before,
#section05.has-swiped .swiper-slide.swiper-slide-prev::after {
  left: 100% !important;
}

#section05.has-swiped .swiper-slide.swiper-slide-next::before,
#section05.has-swiped .swiper-slide.swiper-slide-next::after {
  left: -0% !important;
}


/* === 箭頭樣式 === */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  z-index: 10;
  width: 100px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
}
.swiper-button-next {
  right: 15%;
  background-image: url(../images/sec_feature/btn_arrow_r.webp);
}
.swiper-button-prev {
  left: 15%;
  background-image: url(../images/sec_feature/btn_arrow_l.webp);
}
.swiper-button-prev:after,
.swiper-button-next:after {
  display: none !important;
}


/* === 分頁點樣式 === */
.pagination-wrapper {
  /* position: absolute; */
  position: relative;
  /* top: 88%;
  left: 50%;
  transform: translateX(-50%); */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 10;
  pointer-events: none;
}
.pagination-wrapper .swiper-pagination {
  position: static !important;
  display: flex !important;
  gap: 12px;
  pointer-events: auto;
  align-items: center;
  justify-content: center;
}

#section05 .swiper-pagination span {
  position: relative;
  top: -1.5rem;
}

.pagination-decor.left {
  transform: rotate(180deg);
}
.swiper-pagination-bullet {
  width: 50px;
  padding: 7px 0;
  background: none !important;
  margin: 0 0.5rem !important;
  border: none;
  opacity: 0.8 !important;
}
.swiper-pagination-bullet-active img {
  filter: brightness(1.5) !important;
  opacity: 1 !important;
  animation: btn_light2 0.8s infinite alternate;
}
  @keyframes btn_light2 {
    from {
      filter: saturate(100%);
    }
    to {
      filter: saturate(200%);
    }
  }

  @keyframes imgPopIn {
    0% {
      transform: scale(1);
    }
    30% {
      transform: scale(0.92);
    }
    60% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }

.img-animate {
  animation: imgPopIn 0.5s cubic-bezier(0.25, 1.5, 0.5, 1) forwards;
}



/* === RWD === */
@media screen and (max-width: 1600px) {
  /* 特別設定 */
  .section05_swipe {
    width: 70%;
    padding: 0 85px;
  }

  .sec05_swipe {
  width: 60%;
  }

  .sec05_dragon{
    bottom: -7%;
    width: 240px;
    margin-right: 6%;
  }

  /* 特別設定 */

  #section05 .swiper{
    padding: 0 85px;
  }
  #section05 .swiper-pagination span{
    top: 0;
  }

  #section05 .swiper-slide.swiper-slide-prev {
    left: 45px !important;
  }
  #section05 .swiper-slide.swiper-slide-next {
    right: 45px !important;
  }
  #section05.has-swiped .swiper-slide.swiper-slide-prev {
    left: 45px !important;
  }
  #section05.has-swiped .swiper-slide.swiper-slide-next {
    right: 45px !important;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 80px;
    top: 58%;
  }
  .swiper-button-next {
    right: 13%;
  }
  .swiper-button-prev {
    left: 13%;
  }
  .swiper-pagination-bullet {
    width: 40px;
    padding-bottom: 40px;
  }
}


@media screen and (max-width: 1400px) {

  #section05 .swiper-slide.swiper-slide-prev {
    left: 23px !important;
  }
  #section05 .swiper-slide.swiper-slide-next {
    right: 23px !important;
  }
  #section05.has-swiped .swiper-slide.swiper-slide-prev {
    left: 26px !important;
  }
  #section05.has-swiped .swiper-slide.swiper-slide-next {
    right: 26px !important;
  }
  .pagination-wrapper {
    top: 60%;
  }

  /* 特別設定 */
  .sec05_dragon {
    width: 250px;
    margin-bottom: 1%;
    margin-right: 6%;
  }
  /* 特別設定 */

}


@media screen and (max-width: 1281px) {
  .pagination-wrapper{
    top: 70%;
  }
}



@media screen and (max-width: 1025px) {



  /* 滑動後  */
  /*
  .pagination-wrapper {
    top: 92%;
  }

  .swiper-button-next,
  .swiper-button-prev {
    top: 50%;
  }

  .swiper-button-next,
  .swiper-button-prev {
    height: 120px;
  }

  .swiper-button-next {
    right: 7%;
  }

  .swiper-button-prev {
    left: 7%;
  }

  .swiper-pagination-bullet {
    width: 60px;
  } */

   #section05 .swiper-slide img {
    width: 100% !important;
    object-fit: contain;
  }

  #section05 .swiper-slide::before,
  #section05 .swiper-slide::after {
    width: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  #section05 .swiper-slide.swiper-slide-prev,
  #section05 .swiper-slide.swiper-slide-next,
  #section05.has-swiped .swiper-slide.swiper-slide-prev,
  #section05.has-swiped .swiper-slide.swiper-slide-next {
    left: 0 !important;
    right: 0 !important;
    justify-content: center !important;
  }
  #section05 .swiper-slide:not(.swiper-slide-active) {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #section05 .swiper-slide:not(.swiper-slide-active)::before,
  #section05 .swiper-slide:not(.swiper-slide-active)::after {
    display: none !important;
  }

  #section05 .swiper {
    padding: 0 0px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    /* width: 50px;
    height: 50px; */
    top: 55%;
  }

  .swiper-button-next {
    right: 5%;
  }

  .swiper-button-prev {
    left: 5%;
  }

  .swiper-pagination-bullet {
    width: 32px;
    padding-bottom: 36px;
  }

  /* 特別設定 */
    .light{
    top: -1%
  }

    /*平板以下 橫版 X 設定 */
    .sec05_swipe {
      width: 70%;
      margin: auto;
    }

    .swiper-button-next{
      right: 3%;
    }
    .swiper-button-prev{
      left: 3%;
    }
    .pagination-wrapper{
      top: 0%;
    }
    .sec05_dragon{
      margin-right: -6%;
    }
  /* 特別設定 */


}


@media screen and (max-width: 992px) {
  /* 特別設定 */
  .light{
    top: 1%;
  }
  /* 特別設定 */
}





@media screen and (max-width: 769px) {

  /* 特別設定 */
  .sec05_swipe{
    margin: 0 auto;
  }
  .swiper-button-next,
  .swiper-button-prev {
    top: 60%;
  }

  .sec05_dragon{
    width: 200px;
  }
  /* 特別設定 */
}



@media screen and (max-width: 640px) {

  /* 特別設定 */
  .light{
    top: 3%;
  }
  .p5_lightl,
  .p5_lightr{
    width: 100%;
  }
  .p5_lightl{
    left: -70px;
    transform: rotate(6deg);
  }
  .p5_lightr{
    right: -45px;
    transform: rotate(-6deg);
  }
  /* 特別設定 */
}


@media screen and (max-width:  576px) {
  /* 特別設定 */

  .sec05_swipe{
    width: 80%;
   }
  #section05 .swiper-slide img{
    padding: .4rem .3rem;
  }
    .swiper-button-prev {
    left: -1%;
  }

  .swiper-button-next {
    right: -1%;
  }
  /* 特別設定 */
}




@media screen and (max-width: 480px) {
  .sec05_swipe{
    width: 90%;
    margin: auto;
  }

  .pagination-wrapper {
    top: 0;
    gap: 0px;
  }

  .swiper-pagination-bullet {
    width: 30px;
    padding-bottom: 38px;
  }

  .pagination-wrapper .swiper-pagination {
    gap: 0px;
  }

  img.pagination-decor {
    width: 40px;
  }


  .swiper-button-next,
  .swiper-button-prev {
    top: 62%;
    width: 30px;
    height: 30px;
  }
  .sec05_dragon{
    width: 180px;
    margin-right: -13%;
    display: none;
  }

}


@media screen and (max-width: 376px) {


  /* 特別設定 */
  .light{
    top: -3%;
  }
  /* 特別設定 */

}
