.static_hero_area {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* 容器：grid 叠放，高度由图片决定 */
.static_hero_area .witr_swiper_height {
  position: relative;
  display: grid !important;
  grid-template-columns: 100%;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  background-image: none !important;
  padding: 0;
  margin: 0;
}

/* 图片：宽度铺满，高度自适应，不裁剪、不留白 */
.static_hero_area .witr_banner_img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover; /* 仅在文字比图片高时才会轻微裁剪 */
  margin: 0;
  padding: 0;
}

/* 遮罩层（需要时取消注释 background） */
.static_hero_area .witr_swiper_height:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(0, 0, 0, 0.3); */
  z-index: 1;
  pointer-events: none;
}

/* 文字层：与图片同一格，垂直居中 */
.static_hero_area .witr_sw_text_area.text-left {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  position: relative;
  z-index: 2;
  width: 85%;
  max-width: 1400px;
  margin: 0;
  height: auto;
  transform: none;
}

.static_hero_area .witr_swiper_content {
  width: 50%;
  text-align: left;
}

.static_hero_area .witr_swiper_content h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}

.static_hero_area .witr_swiper_content p {
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 40px 0;
  width: 100%;
}

.static_hero_area .slider_btn {
  margin-top: 0;
}

.static_hero_area .witr_btn {
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--button-radius, 4px);
  text-align: center;
  padding: 16px 45px;
  color: #fff;
  display: inline-block;
  background: #ff2a2a;
  transition: all 0.3s ease;
}

.static_hero_area .witr_btn:hover {
  background: #d61f1f;
  color: #fff;
}

/* 平板 */
@media (max-width: 1024px) {
  .static_hero_area .witr_swiper_height {
    height: auto !important;
  }

  .static_hero_area .witr_swiper_content {
    width: 60%;
  }

  .static_hero_area .witr_swiper_content h2 {
    font-size: 30px;
    margin-bottom: 12px;
  }

  .static_hero_area .witr_swiper_content p {
    font-size: 16px;
    margin-bottom: 24px;
  }
}
/* 手机：图片完整显示（不裁剪），文字放在图片下方 */
@media (max-width: 767px) {
  .static_hero_area .witr_swiper_height {
    display: block !important;
    height: auto !important;
  }

  /* 图片按原比例完整显示 */
  .static_hero_area .witr_banner_img {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: contain;
  }

  /* 文字层：不再叠在图片上，改为图片下方的普通区块 */
  .static_hero_area .witr_sw_text_area.text-left {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background: #1a1a1a; /* 底色可按网站风格修改 */
  }

  .static_hero_area .witr_swiper_content {
    width: 100%;
    padding: 0;
    background: none;
    border-radius: 0;
  }

  .static_hero_area .witr_swiper_content h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .static_hero_area .witr_swiper_content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .static_hero_area .witr_btn {
    padding: 10px 28px;
    font-size: 14px;
  }
}