/* 电脑端样式 - 大于 1076px */
@media screen and (min-width: 1077px) {
  .custom_header {
    display: block;  /* 电脑上显示大轮播 */
  }

  .sticky-top-slide {
    display: none !important;  /* 电脑上隐藏按钮网格 */
  }
}

/* 手机端样式 - 小于等于 1076px */
@media screen and (max-width: 1076px) {
  .custom_header {
    display: none;  /* 手机上隐藏大轮播 */
  }

  .sticky-top-slide {
    display: block !important;  /* 手机上显示按钮网格 */
  }

  .btn {
    display: none;
  }

  .sticky-on {
    position: relative !important;
    animation: slide-down 0s !important;
  }

  .top_logo {
    transform: scale(0.5);
    padding: 10px !important;
    margin: -10px -30px -15px -30px !important;
  }

  .expanded {
    height: 310px !important;
  }

  .custom_body {
    overflow: hidden;
  }

  .custom_item {
    /* transform: scale(0.8); */
    gap: 12px !important;

  }


  .custom_item a {
    width: 46%;
  }

  .custom_item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

}

/* Ensure navigation shows on desktop */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
  
  .navbar-expand-lg .navbar-nav {
    display: flex !important;
  }
}

.swiper {
  width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.mySwiper {
  width: 1200px;
  height: fit-content;
  margin-top: -33px;

}

.mySwiper .swiper-slide-thumb-active {
  color: white !important;
  border-radius: 60px;
}

.mySwiper .swiper-wrapper {
  width: 100%;
  height: 66px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  border-radius: 60px;
  border: 1px solid #ededed;
  overflow: hidden;
  padding: 3px;
  background: #fff;
  box-sizing: border-box;
  position: relative;
}

.mySwiper .swiper-slide li.item {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 16px;
  cursor: pointer;
}

.mySwiper .swiper-slide li.item.active {
  color: white;
  border-radius: 60px;
}

.mySwiper .swiper-slide li.item.active .img1 {
  display: none;
}

.mySwiper .swiper-slide li.item.active .img2 {
  display: block;
}

.mySwiper .swiper-slide li.item .img1 {
  display: block;
}

.mySwiper .swiper-slide li.item .img2 {
  display: none;
}

.mySwiper .swiper-slide li.item img {
  width: 20px;
  margin-right: 8px;
}



.person {
  display: flex;
  justify-content: center;
  align-items: center;
}

.person div {
  flex: 1;
}

.person .person_right img {
  width: 100%;
}

.topImage {
  width: 100%;
  height: 330px;
  display: block;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50%;
}



.custom_item a {
  display: block;
  transition: all 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.custom_item a img {
  display: block;
}

.top_logo {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  transition: all 0.3s ease-in-out, transform 0.3s ease-in-out;
  overflow: hidden;
}

.custom_main {
  width: 1200px;
  max-width: 1200px;
  margin: 0 auto;

}

.custom_body {
  margin: 0 10px 10px 10px;
  overflow: hidden;
}


.custom_item {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  transition: all 0.3s ease-in-out, transform 0.3s ease-in-out;
  overflow: hidden;
}

.down-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 10px
}

.down-btn img {
  width: 70%;

}

.down-btn p {
  font-size: 18px;
  font-weight: 600;
  margin-top: 10px
}

.miniSubmit {
  background-color: green;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.miniSubmit:active {
  color: grey;
}

.liulanqi_dakai {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  text-align: center;
  border: none;
  z-index: 9999;
}

.liulanqi_dakai .images {
  width: 100%;
  margin-top: 20px;
}

.liulanqi_dakai .icon {
  width: 40px;
  margin-top: 20px;
}

.liulanqi_dakai1 {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  text-align: center;
  border: none;
  z-index: 9999;
}

.liulanqi_dakai1 .images {
  width: 400px;
  float: right;
}

/* 技术支持悬浮按钮 */
#support-button {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  background-color: #dc3545;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#support-button:hover {
  background-color: #ca2333;
  transform: scale(1.1);
  color: white;
  text-decoration: none;
}

#support-button .fas {
  font-size: 24px;
}

/* 响应式优化 - 平板设备 */
@media screen and (min-width: 768px) and (max-width: 1076px) {
  .swiper {
    width: 100%;
    max-width: 768px;
  }

  .mySwiper {
    width: 100%;
    max-width: 768px;
  }

  .custom_main {
    width: 100%;
    max-width: 768px;
    padding: 0 15px;
  }

  .person {
    flex-direction: column;
  }

  .person .person_left,
  .person .person_right {
    flex: none;
    width: 100%;
  }
}

/* 性能优化 - 减少动画在低性能设备上的影响 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 用户体验优化 - 按钮点击反馈 */
.custom_item a {
  cursor: pointer;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.custom_item a:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.myLink:active,
.bindUrl:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* 提升滚动性能 */
.preloader,
.parallax,
.hero-bg {
  will-change: transform;
}

/* 优化字体渲染 */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 返回顶部按钮优化 */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
  transform: translateY(-3px);
}

#back-to-top:active {
  transform: translateY(-1px);
}