.stui-slide { pointer-events: none; }
.swiper-slide-active .stui-slide { pointer-events: auto; }

/* 外层定高，避免 height:0 + padding 导致 Swiper 高度为 0 */
.home-banner-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 20 / 7;
  min-height: 300px;
  max-height: 520px;
  background: #111319;
  z-index: 1;
}
@media (max-width: 767px) {
  .home-banner-wrap {
    aspect-ratio: 10 / 4.5;
    min-height: 220px;
    max-height: 420px;
  }
}

#home-banner.swiper-container {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
}

#home-banner .swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

#home-banner .swiper-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

#home-banner.swiper-fade .swiper-slide {
  pointer-events: none;
  transition-property: opacity;
}
#home-banner.swiper-fade .swiper-slide-active {
  pointer-events: auto;
}

.stui-slide.banner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.txt-info {
  position: absolute;
  bottom: 3vw;
  left: 6vw;
  width: 68%;
  color: #fff;
  z-index: 10;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  text-overflow: ellipsis;
  overflow: hidden;
}
.txt-info .gate span {
  background-color: rgba(0,0,0,.5);
  display: inline-block;
  padding: 0 6px;
  border-radius: 2px;
  font-size: 11px;
  line-height: 20px;
  height: 20px;
  opacity: .65;
}
.txt-info .name { font-size: 24px; color: #fff; font-weight: 700; }
.txt-info .info { max-width: 60%; font-size: 14px; opacity: .8; }

.large-l,.large-r,.large-t,.large-b { position: absolute; pointer-events: none; }
.large-l { left: 0; top: 0; width: 20%; height: 100%; background: linear-gradient(270deg,rgba(22,22,26,0),#111319); }
.large-r { right: 0; top: 0; width: 20%; height: 100%; background: linear-gradient(90deg,rgba(22,22,26,0),#111319); }
.large-t { width: 100%; height: 20%; top: 0; left: 0; background: linear-gradient(180deg,rgba(22,22,26,0),#111319); z-index: 10; }
.large-b { left: 0; height: 20%; width: 100%; bottom: 0; z-index: 9; background: linear-gradient(180deg,rgba(22,22,26,0),#111319); }

#home-banner .swiper-pagination-bullet {
  width: 100%;
  height: auto;
  background: transparent;
  opacity: 1;
  border-radius: 0;
  margin: 0 !important;
}
#home-banner .swiper-pagination {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 5.8vw;
  right: 3.8%;
  width: 19%;
  z-index: 20;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  pointer-events: auto;
}
.focusswiper_nav_slide { width: 100%; display: block; padding: 0.7vw; }
.focusswiper_nav_slide h2 { color: hsla(0,0%,100%,.8); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swiper-pagination-bullet.swiper-pagination-bullet-active h2 { font-size: 20px; font-weight: 700; }
.stui_sub_title { display: none; font-size: 12px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swiper-pagination-bullet.swiper-pagination-bullet-active .stui_sub_title { display: block; }

@media (max-width: 767px) { #home-banner .swiper-pagination { display: none !important; } }

body.homepage #header::after { display: none; }

@media (min-width: 899px) {
  body.homepage #header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    margin-bottom: 0;
    padding-top: 0 !important;
    background: transparent;
  }
  body.homepage .header-content { background: none; }
  body.homepage .header-content.header-bg { background: rgba(7, 7, 10, .92); }
  /* 顶部遮罩对齐 70px 顶栏，避免在 header 下方多出一条深色带 */
  body.homepage .large-t {
    height: 70px;
    background: linear-gradient(180deg, rgba(22, 22, 26, 0) 0%, rgba(17, 19, 25, 0.85) 100%);
  }
  body.homepage #index-main { position: relative; z-index: 2; }
}

@media (max-width: 898px) {
  body.homepage #header {
    margin-bottom: 0;
    padding-top: 60px !important;
  }
  body.homepage .home-banner-wrap {
    margin-top: 0;
  }
}

@media (max-width: 559px) {
  .txt-info { bottom: 3vw; left: 3vw; width: 100%; -webkit-line-clamp: 3; }
  .txt-info .info { max-width: 95%; }
  .large-b { height: 35%; }
}
