:root {
  --mach-banner-title-size: 50px;
  --mach-banner-text-size: 20px;
  --mach-banner-text-line-height: 2;
  --mach-banner-bottom-text-size: 16px;
  --mach-banner-bottom-button-padding: 15px 40px;
  --mach-banner-swiper-pagination-bottom: 51px;
  --mach-banner-bottom-scroll-height: 118px;
  --mach-banner-bottom-scroll-padding-left: 60px;
}

@keyframes bounce-down {
  25% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(0);
  }
}

.banner-mach {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.banner-mach .swiper-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.banner-mach .swiper-container .swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: -webkit-flex;
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
}
.banner-mach .swiper-container .width-auto {
  position: relative;
  margin: 0 auto;
}

.banner-mach .swiper-wrapper .swiper-slide {
  flex-shrink: 0;
  position: relative;
  transition-property: transform;
}

.banner-mach .swiper-wrapper .container {
  position: relative;
  height: 100%;
  top: 0;
}
.banner-mach .swiper-wrapper .gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 53%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.52) 86.34%,
    rgba(0, 0, 0, 0) 100%
  );
}
.banner-mach .swiper-wrapper .gradient-overlay-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 12.1875%;
  height: 100%;
  opacity: 0.7;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.00) 0%,  #000 100%);
}
.banner-mach .swiper-wrapper li {
  text-align: center;
  overflow: hidden;
  height: auto;
}
.banner-mach .swiper-wrapper li img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 720;
  object-fit: cover;
}
.banner-mach .banner-text {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 1;
}

.banner-mach .banner-text h2 {
  font-weight: 700;
  font-family: var(--title-font-family);
  font-size: var(--mach-banner-title-size);
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.60);
  line-height: 1.2;
}

.banner-mach .banner-text p {
  margin-bottom: 40px;
  line-height: 2;
  font-size: var(--mach-banner-text-size);
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
/*.banner-mach .main-href {*/
/*  text-align: left;*/
/*}*/
/*.banner-mach .main-href a {*/
/*  display: inline-block;*/
/*  background: var(--color-primary);*/
/*  padding: var(--mach-banner-bottom-button-padding);*/
/*  border-radius: var(--button-radius);*/
/*  color: #fff;*/
/*  font-size: var(--mach-banner-bottom-text-size);*/
/*  font-family: var(--title-font-family);*/
/*  font-weight: 800;*/
/*  cursor: pointer;*/
/*}*/
/*.banner-mach .main-href a:hover {*/
/*  background: linear-gradient(0deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.15) 100%), var(--color-primary);;*/
/*  text-decoration: none;*/
/*}*/

.banner-mach .banner-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34.2%;
  height: var(--mach-banner-bottom-scroll-height);
  padding-left: var(--mach-banner-bottom-scroll-padding-left);
  background: color-mix(in srgb, var(--color-primary) 90%, transparent);
  z-index: 9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-mach .banner-bottom p {
  color: #fff;
  font-size: var(--mach-banner-bottom-text-size);
  line-height: normal;
  font-weight: 700;
  font-family: var(--title-font-family);
}

.banner-mach .banner-bottom .mouse {
  display: inline-block;
  margin-right: 21px;
}
.banner-mach .banner-bottom .mouse img {
  width: 19px;
}

.banner-mach .container .swiper-pagination {
  position: absolute;
  bottom: var(--mach-banner-swiper-pagination-bottom);
  text-align: center;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  -webkit-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  z-index: 1;
  width: auto;
  left: 15px;
}

.banner-mach .swiper-pagination span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 20px;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  -webkit-transition: 0.5s all;
  -moz-transition: 0.5s all;
  -ms-transition: 0.5s all;
  transition: 0.5s all;
  opacity: 1;
}
.banner-mach .swiper-pagination span.swiper-pagination-bullet-active {
  background: var(--color-primary);
  width: 28px;
}

.banner-mach .swiper-container div[class^="swiper-button"] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  z-index: 1;
  cursor: pointer;
}

.banner-mach .swiper-container div[class^="swiper-button"] .iconfont {
  font-size: calc(var(--mach-banner-title-size) * 0.8);
}

.banner-mach .swiper-container div[class^="swiper-button"]:hover {
  color: var(--color-primary);
}

.banner-mach .swiper-container div.swiper-button-prev {
  left: 10px;
}

.banner-mach .swiper-container div.swiper-button-next {
  right: 10px;
}

@media screen and (max-width: 1500px) {
  :root {
    --mach-banner-title-size: 44px;
    --mach-banner-text-size: 18px;
    --mach-banner-swiper-pagination-bottom: 36px;
    --mach-banner-bottom-scroll-height: 100px;
  }
}

@media screen and (max-width: 1280px) {
  :root {
    --mach-banner-title-size: 38px;
    --mach-banner-text-size: 16px;
    --mach-banner-swiper-pagination-bottom: 36px;
    --mach-banner-bottom-button-padding: 15px 40px;
    --mach-banner-bottom-scroll-height: 90px;
    --mach-banner-bottom-scroll-padding-left: 50px;
  }
}

@media screen and (max-width: 1200px) {
  :root {
    --mach-banner-swiper-pagination-bottom: 36px;
    --mach-banner-bottom-button-padding: 10px 30px;
    --mach-banner-bottom-scroll-height: 75px;
    --mach-banner-bottom-scroll-padding-left: 40px;
  }
}

@media screen and (max-width: 992px) {
  :root {
    --mach-banner-title-size: 32px;
    --mach-banner-bottom-text-size: 14px;
    --mach-banner-swiper-pagination-bottom: 24px;
    --mach-banner-bottom-button-padding: 5px 10px;
    --mach-banner-bottom-scroll-height: 70px;
    --mach-banner-bottom-scroll-padding-left: 30px;
  }
  .banner-mach .banner-text p {
    display: none;
  }
  .banner-mach .swiper-pagination span {
    width: 8px;
    height: 8px;
    margin-right: 10px;
  }
  .banner-mach .swiper-pagination span.swiper-pagination-bullet-active {
    width: 18px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --mach-banner-title-size: 26px;
    --mach-banner-swiper-pagination-bottom: 20px;
    --mach-banner-bottom-button-padding: 15px 20px;
    --mach-banner-bottom-scroll-height: 60px;
    --mach-banner-bottom-scroll-padding-left: 20px;
  }
}

@media screen and (max-width: 576px) {
  :root {
    --mach-banner-title-size: 20px;
    --mach-banner-swiper-pagination-bottom: 20px;
    --mach-banner-bottom-scroll-height: 50px;
    --mach-banner-bottom-scroll-padding-left: 10px;
  }
}
