﻿/* 首页 banner 轮播图样式 - 独立命名空间 .ind-banner，避免影响导航和底部 */

.ind-banner {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  background-color: #f0f2f5;
}

.ind-banner .swiper {
  width: 100%;
  height: 100%;
}

.ind-banner .swiper-wrapper {
  height: 100%;
}

.ind-banner .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.ind-banner .swiper-slide > a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

/* 背景图容器 */
.ind-banner .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ind-banner .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* PC 端显示 PC 图，移动端显示手机图 */
.ind-banner .PC-Box {
  display: block;
}

.ind-banner .Phone-Box {
  display: none;
}

/* 左侧渐变遮罩，提升文字可读性 */
.ind-banner .swiper-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  z-index: 2;
  pointer-events: none;
}

/* 文字内容区 */
.ind-banner .onebox,
.ind-banner .twobox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 1200px;
  max-width: 90%;
  color: #fff;
  pointer-events: none;
  text-align: left;
}

    .ind-banner .leftbox
     {
        position: absolute;
        top: 50%;
        left: 46%;
        transform: translate(-50%, -50%);
        z-index: 3;
        width: 1200px;
        max-width: 90%;
        color: #fff;
        pointer-events: none;
        text-align: left;
    }
    .ind-banner .rightbox {
        position: absolute;
        top: 50%;
        left: 90%;
        transform: translate(-50%, -50%);
        z-index: 3;
        width: 1200px;
        max-width: 90%;
        color: #fff;
        pointer-events: none;
        text-align: left;
    }


.ind-banner .txt {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.ind-banner .wen {
  font-size: 22px;
  line-height: 1.6;
 text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* 分页器 */
.ind-banner .swiper-pagination {
  bottom: 30px !important;
  z-index: 4;
}

.ind-banner .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #fff;
  opacity: 0.5;
  margin: 0 6px !important;
  transition: opacity 0.3s ease;
}

.ind-banner .swiper-pagination-bullet-active {
  opacity: 1;
  background: #fff;
}

/* ====== Banner 文字动画：纯 CSS transition，由 swiper-slide-active 驱动 ======
   参考 mot.html 方案：不依赖 WOW.js，用 CSS transition + Swiper 自动添加的
   swiper-slide-active 类实现切换时文字自动入场/退场。
   使用 .swiper-slide 前缀提高优先级(0,3,0)，覆盖 .wow(0,1,0) / .wow.animated(0,2,0) / .fadeInRight50(0,1,0)
*/
.ind-banner .swiper-slide .txt,
.ind-banner .swiper-slide .wen {
/*  animation: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(50px);
  transition: all 1.4s ease;
  transition-delay: 0.8s;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);*/
}

.ind-banner .swiper-slide-active .txt,
.ind-banner .swiper-slide-active .wen {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 响应式 */
@media (max-width: 1200px) {
  .ind-banner .txt {
    font-size: 42px;
  }

  .ind-banner .wen {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .ind-banner {
    height: 50vh;
    min-height: 360px;
  }

  .ind-banner .PC-Box {
    display: none;
  }

  .ind-banner .Phone-Box {
    display: block;
  }

  .ind-banner .txt {
    font-size: 28px;
  }

  .ind-banner .wen {
    font-size: 16px;
  }

  .ind-banner .swiper-pagination {
    bottom: 20px !important;
  }

  .ind-banner .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 4px !important;
  }
}
