.index-app {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.index-app img {
  -webkit-user-drag: none; /* 禁止拖拽（Chrome/Safari/Edge） */
  user-select: none; /* 禁止被选中（出现蓝色高亮/虚线框） */
}

.index-app .content {
  width: 100%;
  min-height: calc(100vh - 326px); /* 减去导航和底高度 */
}

/* 首页 轮播图 部分*/
.index-app .swiper {
  width: 100%;
  margin-top: 60px;
}

/* 媒体查询：当屏幕宽度小于等于 768px 时生效 (通常代表移动端) */

/* 轮播图：img 默认为行内元素，底部会残留 3-5px 基线空隙，
   导致 .swiper-slide 高度比图片略高。改为块级元素即可消除 */
.swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: 100px !important;
}

.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets
  .swiper-pagination-bullet {
  margin: 0 3px !important;
}

.swiper-pagination-bullet {
  width: 45px !important;
  height: 4px !important;
  border-radius: 2px !important;
  text-align: center !important;
  opacity: 1 !important;
  background: rgba(223, 223, 223, 0.59) !important;
  transition: width 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  width: 90px !important;
  height: 4px !important;
  background: #dfdfdf !important;
}

.bg-img-box {
  position: relative;
  width: 100%;
}

.bg-img-box img {
  display: block;
}

.bg-img-box .position-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 125px;
  left: 50%;
  transform: translateX(-50%);
}

.bg-img-box .position-box .title {
  display: flex;
  gap: 30px;
  font-size: 60px;
  font-weight: 700;
  color: #02070b;
  margin-bottom: 40px;
}

.bg-img-box .position-box .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  width: 110px;
  height: 38px;
  border-radius: 20px;
  background-color: #ff5a16;
  color: #ffffff;
}

.bg-img-box .position-box .btn:hover {
  background: #E6460A;
}

.bg-img-box .position-box .btn:active {
  background-color: #e6460a;
}

.float-btn-view {
  position: fixed;
  bottom: 130px;
  right: 246px;
  z-index: 120;
  display: flex;
}

.float-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.float-btn .btn-bg {
  width: 50px;
  height: 50px;
  background-color: #e6e6e6;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: opacity 0.3s ease-in-out,transform 0.3s;
}
.float-btn .btn-bg:hover {
  transform: scale(1.1);
}

.float-btn .btn-bg img {
  position: relative;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.float-btn .btn-bg .customer-service-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 25px;
  width: 50px;
  height: 50px;
  background-color: #e6e6e6;
  z-index: 2;
}

.up-top-hide {
  opacity: 0;
  pointer-events: none;
}

.telephone {
  display: flex;
  width: 0px;
  opacity: 0;
  height: 29px;
  background-color: #e6e6e6;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
  color: #262b2f;
  font-size: 12px;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap; /* 强制不换行 */
  z-index: 1;
  /* 宽度和透明度都要过渡：出现时展开+淡入，消失时收起+淡出 */
  transition:
    width 0.6s ease-in-out,
    opacity 0.6s ease-in-out;
  overflow: hidden; /* 超出部分隐藏 */
  text-overflow: ellipsis; /* 显示省略号 ... */
}

.show-telephone {
  width: 145px;
  opacity: 1;
}

.hide-telephone {
  width: 0px;
  opacity: 0;
}

.mobile-float-btn {
  flex-direction: column;
  gap: 10px;
  display: none;
}

@media screen and (max-width: 768px) {
  .index-app .content {
    min-height: 200px;
  }

  .index-app .swiper {
    margin-top: 34px;
  }

  .swiper-horizontal > .swiper-pagination-bullets,
  .swiper-pagination-bullets.swiper-pagination-horizontal,
  .swiper-pagination-custom,
  .swiper-pagination-fraction {
    bottom: 20px !important;
  }

  .swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
  .swiper-pagination-horizontal.swiper-pagination-bullets
    .swiper-pagination-bullet {
    margin: 0 1.5px !important;
  }

  .swiper-pagination-bullet {
    width: 22px !important;
    height: 2px !important;
    border-radius: 1px !important;
    text-align: center !important;
    opacity: 1 !important;
    background: rgba(223, 223, 223, 0.59) !important;
    transition: width 0.3s ease !important;
  }

  .swiper-pagination-bullet-active {
    width: 45px !important;
    height: 2px !important;
    background: #dfdfdf !important;
  }

  .bg-img-box .position-box {
    top: 20px;
  }

  .bg-img-box .position-box .title {
    display: flex;
    gap: 5px;
    font-size: 14px;
    margin-bottom: 6px;
  }

  .bg-img-box .position-box .btn {
    font-size: 10px;
    width: 60px;
    height: 20px;
    border-radius: 10px;
  }

  .float-btn-view {
    position: fixed;
    bottom: 66px;
    right: 24px;
    z-index: 120;
    display: flex;
  }

  .float-btn {
    display: none;
  }

  .mobile-float-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .mobile-float-btn .btn-bg {
    width: 25px;
    height: 25px;
    background-color: #e6e6e6;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
  }

  .mobile-float-btn .btn-bg img {
    position: relative;
    width: 13px;
  }
}
