@charset "utf-8";
/* Banner - 参考 https://www.czauto.com.cn/ */

:root {
  --ky-banner-edge: calc((100% - min(var(--ky-page-width, 80%), var(--ky-page-max-width, 1600px))) / 2);
}

.ky-index-banner {
  position: relative;
  width: 100%;
}

.ky-index-banner-swiper {
  width: 100%;
  height: 100vh;
  min-height: 560px;
}

.ky-index-banner .swiper-slide {
  background: #000;
}

.ky-index-banner-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ky-index-banner-container .img {
  position: absolute;
  inset: 0;
  /*background-position: center center;*/
  background-repeat: no-repeat;
  background-size: cover;
}

.ky-index-banner-container .text {
  position: absolute;
  width: min(1000px, 80%);
  top: 40%;
  left: 8%;
  z-index: 10;
  color: #fff;
}

.ky-index-banner-container.center .text {
  left: 50%;
  margin-left: min(-450px, -40%);
  text-align: center;
}

.ky-index-banner-container.center .text .viewmore-3 {
  margin: 60px auto 0;
}

.ky-index-banner-container .text .title-1 {
  font-size: 56px;
  font-weight: bold;
  line-height: 1.25;
  transform: translateY(200px);
  opacity: 0;
  transition: all 0.2s ease;
}

.ky-index-banner-container .text .title-2 {
  font-size: 22px;
  padding-top: 14px;
  line-height: 1.6;
  transform: translateY(200px);
  opacity: 0;
  transition: all 0.5s ease;
}

/* 英文首页 Banner：隐藏首张重复公司名 title-1 */
html:lang(en) .ky-index-banner-container .text .title-1.ky-banner-hide-en {
  display: none;
}

/* 英文第三张：多段副标题时隐藏末段重复公司名 */
html:lang(en) .ky-index-banner-container .text .title-2.ky-banner-slide3-sub p:last-of-type:not(:only-of-type) {
  display: none;
}

.ky-index-banner-container .text .viewmore-3 {
  margin-top: 56px;
  transform: translateY(200px);
  opacity: 0;
  transition: all 0.9s ease;
}

.ky-index-banner .swiper-slide-active .text .title-1,
.ky-index-banner .swiper-slide-active .text .title-2,
.ky-index-banner .swiper-slide-active .text .viewmore-3 {
  transform: translateY(0);
  opacity: 1;
}

.ky-index-banner .swiper-slide-active .text .title-2 {
  opacity: 0.92;
}

.ky-index-banner .swiper-slide-active .img {
  animation: kyBigImgAni 5000ms infinite ease-out;
}

@keyframes kyBigImgAni {
  0% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.ky-index-banner .viewmore-3 {
  width: 215px;
  display: block;
  margin: 0;
}

.ky-index-banner .viewmore-3 a {
  display: block;
  color: #fff;
  text-align: center;
  padding: 17px 0;
  font-size: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s ease;
}

.ky-index-banner .viewmore-3 a:hover {
  border-color: #fff;
}

.ky-index-banner .viewmore-3 span {
  font-size: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 40px;
  letter-spacing: 2px;
}

.ky-index-banner .viewmore-3 i {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 8px;
  position: relative;
}

.ky-index-banner .viewmore-3 i::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 2px;
  background: #fff;
}

.ky-index-banner .viewmore-3 i::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

/* 右侧竖线分页 - 与内容区右缘对齐 */
.ky-index-banner .ky-index-banner-pagination {
  width: auto;
  left: auto;
  right: var(--ky-banner-edge);
  bottom: 5%;
  text-align: right;
}

.ky-index-banner .ky-index-banner-pagination .swiper-pagination-bullet {
  background: #fff;
  border-radius: 0;
  width: 1px;
  height: 20px;
  transition: all 0.4s ease;
  margin: 0 7px;
  opacity: 1;
}

.ky-index-banner .ky-index-banner-pagination .swiper-pagination-bullet-active {
  height: 30px;
}

/* PREV / NEXT */
.ky-index-banner .ky-index-banner-button-next,
.ky-index-banner .ky-index-banner-button-prev {
  bottom: 4%;
  top: auto;
  background: none;
  z-index: 30;
  width: auto;
  height: auto;
  margin-top: 0;
}

.ky-index-banner .ky-index-banner-button-next::after,
.ky-index-banner .ky-index-banner-button-prev::after {
  display: none;
}

.ky-index-banner .ky-index-banner-button-next::before,
.ky-index-banner .ky-index-banner-button-prev::before {
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
}

.ky-index-banner .ky-index-banner-button-next::before {
  content: "NEXT";
}

.ky-index-banner .ky-index-banner-button-prev::before {
  content: "PREV";
}

.ky-index-banner .ky-index-banner-button-next {
  left: auto;
  right: 50%;
  margin-right: -200px;
}

.ky-index-banner .ky-index-banner-button-prev {
  left: 50%;
  right: auto;
  margin-left: -200px;
}

/* 滚动提示 - 与内容区左缘对齐 */
.ky-index-banner-scroll {
  width: 26px;
  height: 42px;
  position: absolute;
  left: 8%;
  bottom: 5%;
  z-index: 20 ; display: none
}

.ky-index-banner-scroll::before {
  content: "";
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  box-sizing: border-box;
}

.ky-index-banner-scroll::after {
  content: "";
  display: block;
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  margin: -30px auto 0;
  animation: kyScrollWheel 1.8s infinite;
}

@keyframes kyScrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* 底部进度条 */
.ky-index-banner-progress-bar {
  width: 260px;
  height: 2px;
  position: absolute;
  bottom: 6%;
  left: 50%;
  margin-left: -130px;
  z-index: 20;
}

.ky-index-banner-progress-bar::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: #fff;
  left: 0;
  top: 0;
  opacity: 0.2;
  z-index: 5;
}

.ky-index-banner-progress-bar::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #fff;
  left: 0;
  top: 0;
  z-index: 10;
  animation: kyBannerProgress var(--ky-banner-autoplay, 4500ms) infinite ease;
}

@keyframes kyBannerProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

@media (max-width: 992px) {
  .ky-index-banner .ky-index-banner-progress-bar,
  .ky-index-banner .ky-index-banner-button-next,
  .ky-index-banner .ky-index-banner-button-prev {
    display: none !important;
  }

  .ky-index-banner-container .text {
    width: 90%;
    top: 33%;
    left: 5%;
    margin: 0;
  }

  .ky-index-banner-container.center .text {
    left: 5%;
    margin-left: 0;
    text-align: left;
  }

  .ky-index-banner-container .text .title-1 {
    font-size: 30px;
  }

  .ky-index-banner-container .text .title-2 {
    font-size: 16px;
  }
}
