﻿/* 2.27 product */
:root {
  --main-blue-color: #12408c;
  --transition-speed: 600ms;
  --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
  --item-normal-w: 456px;
  --item-active-w: 920px;
  --item-margin: 32px;
}

@media (max-width: 1680px) {
  :root {
    --item-normal-w: 350px;
    --item-active-w: 818px;
  }
}

@media (max-width: 1580px) {
  :root {
    --item-normal-w: 300px;
    --item-active-w: 818px;
  }
}

@media (max-width: 1440px) {
  :root {
    --item-nomal-w: 300px;
    --item-active-w: 870px;
  }
}

@media (max-width: 1366px) {
  :root {
    --item-nomal-w: 300px;
    --item-active-w: 836px;
  }
}

@media (max-width: 1280px) {
  :root {
    --item-nomal-w: 270px;
    --item-margin: 30px;
    --item-active-w: 835px;
  }
}

@media (max-width: 1024px) {
  :root {
    --item-nomal-w: 250px;
    --item-active-w: 670px;
  }
}
@media (max-width: 991px) {
  :root {
    --item-nomal-w: 250px;
    --item-active-w: 650px;
  }
}
@media (max-width: 767px) {
  :root {
    --item-margin: 16px;
    --item-normal-w: 260px;
    --item-active-w: 300px;
  }
  .year_select_box .drop_down_>div:first-child {
    max-height: 254px;
  }
}
@media (max-width: 359px) {
  :root {
    --item-active-w: 280px;
  }
}
/* pro detail */
.pro_d_box .pro_d_des {
  padding-bottom: 24px;
}
/* other */
.index_p_bottom {
  width: 100%;
  position: relative;
}
.no_bg .tab-content-container:after {
  content: "";
  position: absolute;
  right: 100%;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #f8f9fb;
}
.tab-content-container {
  position: relative;
  min-height: var(--container-h);
}

.pro_swp_01 {
  width: 100%;
  height: var(--container-h);
  position: relative;
  overflow: visible;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.pro_swp_01:active {
  cursor: grabbing;
}

.races-list {
  position: relative;
  display: flex;
  height: 100%;
  transition: transform var(--transition-speed) var(--transition-timing);
}

.races-list li {
  width: var(--item-normal-w);
  height: 100%;
  overflow: hidden;
  position: relative;
  margin-right: var(--item-margin);
  /* cursor: pointer; */
  flex-shrink: 0;
  transition: width var(--transition-speed) var(--transition-timing);
  /* transition: width .4s; */
}
.no-transition,
.no-transition li,
.no-transition .races-item-active,
.no-transition .races-item-active .slide-content:after,
.no-transition .flag_img_hover,
.no-transition .flag_img,
.no-transition .card-hover {
  transition: none !important;
}
.races-list li.on {
  width: var(--item-active-w);
}

.races-item-none {
  width: var(--item-normal-w);
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  transition: opacity 300ms;
}
.races-item-none:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white-color);
  transition: opacity 0.8s;
  opacity: 1;
  border-radius: 12px;
  overflow: hidden;
  z-index: -1;
}
.races-item-none::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 20px;
  width: 12px;
  height: 12px;
  background-image: url(../images/red_icon01.svg);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .5s;
  z-index: 2;
}
.races-item-none:hover::before {
  opacity: 1;
}
.races-item-active {
  position: absolute;
  width: var(--item-active-w);
  height: 100%;
  /* display: none; */
  display: block;
  visibility: hidden;
  opacity: 0;
  /* transition: opacity var(--transition-speed) var(--transition-timing); */
  transition: opacity .6s;
  z-index: -1;
  overflow: hidden;
}

.races-item-active .slide-content:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  /* width: 0; */
  height: 61.4%;
  background-image: url(../images/flagship_icon_bg.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  border-radius: 8px;
  width: 100%;
  clip-path: inset(0 0 0 100% round 8px);
  transform: translateZ(0);
  will-change: clip-path;
  transition: clip-path 1s cubic-bezier(0, 0.92, 0.4, 1.06);
  z-index: -1;
}

.races-list li.on .races-item-active {
  display: block;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.races-list li.fake-shrink-start .flag_img {
  transform: scale(1.5) !important;
  transition: none !important;
}

.races-list li.fake-shrink .flag_img {
  transform: scale(1) !important;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.races-list li.on .races-item-none {
  display: none;
}
.flag_img_hover {
  opacity: 0.8;
  transition: all 1s cubic-bezier(0, 0.15, 0.4, 1.06);
}
.flag_img {
  width: 80%;
  max-width: 439px;
}
.races-list li .flag_img {
  transition: transform 1s cubic-bezier(0, 0.15, 0.4, 1.06);
  transform: scale(1);
}
/* .races-list li .active .flag_img {
  transform: scale(1.5);
  transition-delay: 0.2s;
} */
.races-list li.on .flag_img {
  transform: scale(1.5);
  transition-delay: 0.2s;
}
.races-list li .active .flag_img_hover {
  opacity: 1;
  height: auto;
  transform: translateY(0) scale(1);
  z-index: 1;
}
.races-list li.on .card-hover {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
  justify-content: space-between;
  z-index: 1;
}
.races-list li.on .active .slide-content:after {
  width: 100%;
  clip-path: inset(0 0 0 0 round 8px); 
}
.races-list li.on:hover .flag_img_hover span::before {
  opacity: 1;
}

.pro_button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro_prev,
.pro_next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-top: -48px;
  width: 56px;
  height: 56px;
  background-color: var(--white-color);
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 32px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: #333;
  transition: all 0.3s;
  cursor: pointer;
}
.pro_prev {
  left: -30px;
}
.pro_next {
  right: -30px;
}
.pro_prev i,
.pro_next i {
  background-repeat: no-repeat;
  background-size: cover;
  display: block;
  width: 24px;
  height: 24px;
}
.pro_prev i {
  background-image: url(../images/main_left.svg);
}

.pro_next i {
  background-image: url(../images/main_right.svg);
}



.pro_prev.disabled,
.pro_next.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

@media (min-width:768px) {
  .pro_prev:hover i {
    background-image: url(../images/white_left.svg);
  }
  
  .pro_next:hover i {
    background-image: url(../images/white_right.svg);
  }
  .pro_prev:hover,
  .pro_next:hover {
    background-color: var(--main-blue-color);
    border-color: var(--main-blue-color);
  }
  .pro_prev:not(.disabled):hover,
  .pro_next:not(.disabled):hover {
    background-color: var(--main-blue-color);
    border-color: var(--main-blue-color);
  }
  
}
@media(max-width:767px) {

  .pro_prev:not(.disabled):active i {
    background-image: url(../images/white_left.svg);
  }
  
  .pro_next:not(.disabled):active i {
    background-image: url(../images/white_right.svg);
  }

  .pro_prev:not(.disabled):active,
  .pro_next:not(.disabled):active {
    background-color: var(--main-blue-color);
    border-color: var(--main-blue-color);
  }

}
/* 鍒嗛〉鍣ㄦ牱寮� */
.flig_button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}
.flig_pagination {
  position: relative;
  display: flex;
  display: inline-flex;
  height: 56px;
  padding: 18px 20px;
  margin: 0 auto;
  align-items: center;
  border-radius: 50px;
  background-color: var(--white-color);
}

.flig_pagination span {
  margin: 0 5px;
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  opacity: 1 !important;
  cursor: pointer;
  transition: all 0.3s;
}
.flig_pagination .swiper-pagination-bullet-active {
  width: 30px;
  background-color: var(--main-color);
  border-radius: 5px;
}
@media (max-width: 1280px) {

.right_fixed .top-button {
  margin-top: 8px;
}

}
@media (max-width: 1279px) {
  /* .races-list li:nth-child(4) .flag_img_hover {
    border: 5px solid green;
  }
  .races-list li:nth-child(5) .flag_img_hover {
    border: 5px solid red;
  }
  .races-list li:nth-child(6) .flag_img_hover {
    border: 5px solid grey;
  } */

  .races-item-active {
    transition: opacity .3s;
  }

 .races-item-active {
 display: block;
 visibility: hidden;
 /* border: 2px solid red; */
} 
.races-list li.on .races-item-active {
  visibility: visible;
}
.flag_img_hover {
  opacity: 0;
}
}
.flag_img_hover i{
  display: block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
}
/* .flag_img_hover a{
  display: block;
  -webkit-user-drag: auto;
  user-drag: auto;
  pointer-events: auto;
} */
.flag_img_hover img {
  max-width: 100%;
  pointer-events: none; 
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 767px) {
  .races-item-active {
    display: block;
   } 
  .races-list li.on .card-hover {
    display: block;
  }
  .pro_prev,
  .pro_next {
    position: relative;
    right: inherit;
    left: inherit;
    top: inherit;
    transform: inherit;
    margin-top: 0;
  }
  .flig_pagination {
    margin-left: 5px;
    margin-right: 5px;
    height: 44px;
    padding: 12px 20px;
  }
 
  .races-item-active .slide-content:after {
    /* transition: width 0.4s; */
}
.races-item-none .flag_img{
  height: 280px;
}
.flag_img {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.races-list li .flag_img img{
  transition: transform 0.8s;
  transform: translateY(0);
}

  .card-old {
    padding-top: 20px;
    height: auto;
  }
  .card-old .more {
    margin-top: 20px;
   display: block !important;
}
}


@media (max-width: 767px) {
    .index_p_bottom .pc_show { display: none !important; }
    .index_p_bottom .mo_show { display: block !important; }
    .ship_swiper { overflow: visible; }
    
    .races-list, .races-list li {
        transition: width 300ms !important;
    }

    .ship_swiper .swiper-slide {
        width: var(--item-normal-w);
        height: var(--container-h);
        transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1), opacity 500ms ease !important;
        will-change: transform, opacity;
        transform: translateZ(0) scale(1); 
    }
  
    .ship_swiper .swiper-slide.swiper-slide-active,
    .ship_swiper .swiper-slide.swiper-slide-duplicate-active {
        width: var(--item-active-w);
        transform: translateZ(0) scale(1);
        opacity: 1;
    }

    .ship_swiper .races-item-none {
        width: 100%;
        height: 560px;
        position: relative;
        z-index: 1;
        opacity: 1 !important;
        transition: none !important;
    }
    .races-item-none:after {
      transition: opacity 0.6s;
  }
    .races-item-none .flag_img img {
        width: 100%;  
        max-width: 260px;
    }
    .ship_swiper .flag_img img {
        transition: transform 0.8s;
        transform: translateY(20px);
    }
    .ship_swiper .swiper-slide-active .flag_img img,
    .ship_swiper .swiper-slide-duplicate-active .flag_img img {
        transform: translateY(0px);
    }
    .ship_swiper .swiper-slide.swiper-slide-active  .races-item-none {
      opacity: 0 !important;
    }

    .ship_swiper .races-item-active {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100%;
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: opacity 250ms ease, visibility 250ms ease !important;
        background-color: transparent;
    }

    .ship_swiper .swiper-slide-active .races-item-active,
    .ship_swiper .swiper-slide-duplicate-active .races-item-active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: opacity 300ms ease !important;
        z-index: 2;
    }

    .races-item-active .slide-content:after {
        top: 38.6%;
        left: 0;
        bottom: inherit;
        width: 100%;
        height: 0;
        transform: inherit;
        clip-path: inherit;
        transition: all 500ms cubic-bezier(0.390, 0.575, 0.565, 1.000) !important;
    }
    .races-item-active .slide-content:after {
     
      background-image: url(../images/flagship_icon_bg2.svg);
      background-position: center top;
   
  }
    .ship_swiper .swiper-slide-active .slide-content:after,
    .ship_swiper .swiper-slide-duplicate-active .slide-content:after {
        height: 61.4%; 
        width: 100%;
        clip-path: inset(0 0 0 0 round 8px);
        transition: all 500ms cubic-bezier(0.390, 0.575, 0.565, 1.000) !important;
    }

    .ship_swiper .flag_img_hover {
        transform: scale(0.65);
        opacity: 0;
        transform-origin: top center;
        transition: all 200ms ease !important;
    }

    .ship_swiper .swiper-slide-active .flag_img_hover,
    .ship_swiper .swiper-slide-duplicate-active .flag_img_hover {
        height: auto;
        transform: scale(1);
        opacity: 1;
        z-index: 1;
      transition: all 600ms cubic-bezier(0.53, 0.52, 0.28, 1.01) 150ms !important;
    }
    .flag_img_hover span {
        width: 100%;
        max-width: 300px;
    }

    .slide-content {
        display: flex;
        flex-flow: column;
        justify-content: space-between;
    }
    .card-hover {
        padding-bottom: 30px;
        display: none;
        display: block;
    }
    .ship_swiper .swiper-slide-active .card-hover,
    .ship_swiper .swiper-slide-duplicate-active .card-hover {
        display: block;
        opacity: 1;
        transform: translateY(0);
        transition: all 0.5s ease;
        justify-content: space-between;
        z-index: 1;
    }


 .card-hover .more {
  overflow: hidden;
}
 .ship_swiper .swiper-slide .races-item-active .card_title span,
 .ship_swiper .swiper-slide .races-item-active .card-desc span,
 .ship_swiper .swiper-slide .races-item-active .more span{
  display: block;
  opacity: 0;
     transform: translateY(-230px);
     transition: opacity 200ms ease, transform 200ms ease !important; 
 }


 .ship_swiper .swiper-slide-active .races-item-active .card_title span,
 .ship_swiper .swiper-slide-duplicate-active .races-item-active .card_title {
     opacity: 1;
     transform: translateY(0);
     transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1) 150ms !important;
 }

 .ship_swiper .swiper-slide-active .races-item-active .card-desc span,
 .ship_swiper .swiper-slide-duplicate-active .races-item-active .card-desc span{
     opacity: 1;
     transform: translateY(0);
     transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1) 250ms !important;
 }

 .ship_swiper .swiper-slide-active .races-item-active .more span,
 .ship_swiper .swiper-slide-duplicate-active .races-item-active .more span{
     opacity: 1;
     transform: translateY(0);
     transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1) 350ms !important;
 }
 .flig_button {
  padding-bottom: 20px;
}
}