/* 轮播图容器样式 */
.carousel-container {
  width: 1920px;
  height: 928px;
  position: relative;
  margin: 0 auto; /* 水平居中 */
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 分页器样式 */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #ffffff;
}

/* 页面基础样式 */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 主要内容区域需要添加顶部内边距 */
main {
  padding-top: 0; /* 导航栏已经是 fixed，不需要额外 padding */
}

/* 模块容器统一样式 */
.news-section .container,
.services-section .container,
.overview-section .container,
.partners-section .container {
  width: 1500px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 480px及以下的响应式 */
@media (max-width: 480px) {
  .carousel-container {
    width: 480px;
    height: 100%; /* 使用正方形确保图片完整显示 */
  }

  .swiper-slide img {
    object-fit: contain; /* 确保图片完整显示，不被裁剪 */
    background: #f8f8f8; /* 添加背景色填充空白区域 */
  }

  /* 分页器在移动端调整 */
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  /* 模块容器在移动端调整 */
  .news-section .container,
  .services-section .container,
  .overview-section .container,
  .partners-section .container {
    width: 100%;
    padding: 0 1rem;
  }
}
/* 1024px 响应式 */
@media (min-width: 48.0625rem) and (max-width: 64rem) {
  .carousel-container {
    width: 1024px;
    height: 500px; /* 根据1024px宽度调整合适的高度 */
  }

  /* 模块容器在1024px调整 */
  .news-section .container,
  .services-section .container,
  .overview-section .container,
  .partners-section .container {
    width: 900px; /* 适当缩小容器宽度 */
  }
}

/* 可选：为移动端添加触摸优化 */
@media (max-width: 480px) {
  .swiper {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }
}

/* 375px及以下的响应式 */
@media (max-width: 375px) {
  .carousel-container {
    width: 375px;
    height: 100%; /* 使用正方形确保图片完整显示 */
  }

  .swiper-slide img {
    object-fit: contain; /* 确保图片完整显示，不被裁剪 */
    background: #f8f8f8; /* 添加背景色填充空白区域 */
  }

  /* 分页器在更小屏幕上调整 */
  .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
  }

  /* 模块容器在更小屏幕上调整 */
  .news-section .container,
  .services-section .container,
  .overview-section .container,
  .partners-section .container {
    width: 100%;
    padding: 0 0.8rem;
  }
}
