* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #fafafa;
  color: #fff;
}

/* 移除之前建议的 container 样式，改用下面的方式 */
.container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

/* 客服按钮样式调整 */
.customer-service {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
}

/* 如果是PC端，调整客服按钮位置 */
@media screen and (min-width: 750px) {
  .customer-service {
    right: calc((100% - 500px) / 2);
  }
}

/* 底部固定区域样式调整 */
.bottom-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* 底部logo区域 */
.bottom-logos {
  display: flex;
  align-items: center;
}

.bottom-logos img {
  height: 45px;
  width: auto;
}

/* .main-content {
  width: 100%;
  overflow-y: auto;
} */

/* 确保 main-content 有定位上下文 */
.main-content {
  width: 100%;
  overflow-y: auto;
  position: relative; /* 新增 */
}

.main-content img {
  width: 100%;
  display: block;
}

/* 合作伙伴区域样式 */
.partner-section {
  background-color: #153d8d; /* 深蓝色背景 */
  padding: 5px;
  display: flex;
  align-items: center;
  margin: 0;
}

.partner-left {
  width: 4.5rem;
  /* margin-right: 20px; */
  display: flex; /* 新增: 使用 flex 布局 */
  align-items: stretch; /* 新增: 拉伸以填充容器高度 */
}

.partner-left img {
  width: 100%;
  object-fit: contain;
  align-self: center; /* 新增: 图片在拉伸的容器中居中 */
}

.partner-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.partner-logos {
  display: flex;
  /* justify-content: flex-end; */
  align-items: center;
  gap: 5px;
}

.partner-title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  margin-left: auto;
}

.partner-title h3 {
  margin: 0;
  color: white;
  font-size: 16px;
}

.partner-icons {
  margin-left: auto;
  display: flex;
  gap: 5px; /* logo之间的间距 */
  align-items: center;
}

.partner-icons img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.partner-tags {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.tag {
  background-color: #2286e8;
  color: white;
  padding: 3px 3px;
  border-radius: 2px;
  font-size: 0.7rem;
  /* font-size: 12px; */
  font-weight: 600;
  white-space: nowrap;
}

/* 客服按钮 */
.customer-service {
  position: fixed;
  /* top: 6.5rem; */
  top: 8.5rem;
  /* right: 5px; */
  right: 0;
  width: 100px;
  height: 50px;
  z-index: 999;
}
/* PC端的客服按钮位置调整 */
@media screen and (min-width: 500px) {
  .customer-service {
    right: calc((100% - 500px) / 2 + 5px); /* 使用计算值确保按钮在容器右侧 */
  }
}
.customer-service img {
  width: 100%;
  height: 100%;
}

.banner2-container {
  position: relative;
}

.banner2-container img {
  width: 100%;
  display: block;
}

.banner1-container {
  position: relative;
  width: 100%;
}

.banner1-container img {
  width: 100%;
  display: block;
}

.banner-title {
  position: absolute;
  left: 23%; /* 可以根据实际需要调整位置 */
  top: 1.5%; /* 可以根据实际需要调整位置 */
  color: #ffffff; /* 文字颜色 */
  font-size: 1.5rem; /* 文字大小 */
  font-weight: bold;
  z-index: 2;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

/* 移动端适配 */
@media screen and (max-width: 500px) {
  .banner-title {
    font-size: 1.2rem; /* 移动端更小的字体大小 */
  }
}

/* 下载按钮 */
/* .download-btn {
  position: absolute; 
  left: 50%; 
  transform: translateX(-50%); 
  width: 200px; 
  top: 0;
  z-index: 99;
} */

/* 添加一个包装器 */
.download-btn-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* width: 200px; */
  width: 40%;
  top: 0;
  z-index: 99;
}

.download-btn {
  width: 100%;
}

.download-btn img {
  width: 100%;
  height: auto;
  display: block;
}

/* 底部固定区域 */
.bottom-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  padding: 0 5px;
  z-index: 100;
}

.bottom-logos {
  display: flex;
  align-items: center;
  width: 120px; /* 稍微加宽一点 */
  position: relative; /* 为分隔线定位 */
  gap: 5px;
}

.bottom-logos img {
  /* width: 45px;
  height: 45px; */
  width: 50%;
  margin-right: 0;
}

.bottom-info {
  flex: 1;
  padding: 0 5px;
  padding-left: 1.5rem;
}

.bottom-info h3 {
  font-size: 1rem;
  color: black;
}

.bottom-info p {
  font-size: 0.65rem;
  color: #1f1f1f;
}

/* 调整星星图片大小 */
.bottom-info p img {
  width: 80px; /* 或者更小的尺寸，根据实际需求调整 */
  height: auto;
}

.bottom-download {
  width: 120px;
}

.bottom-download-btn {
  padding: 6px 15px;
  background: #43c117;
  color: white;
  border-radius: 4px; /* 改为小圆角 */
  text-decoration: none;
  font-size: 18px; /* 字体加大 */
  font-weight: bold; /* 字体加粗 */
  display: inline-block; /* 添加这行以确保高度设置生效 */
  height: 45px; /* 增加高度 */
  line-height: 32px; /* 调整行高以保持垂直居中 */
}

/* 中间按钮动画*/
/* 动画基础设置 */
.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

/* 设置无限循环 */
.animated.infinite {
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

/* tada 动画关键帧 */
@-webkit-keyframes tada {
  from,
  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  10%,
  20% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }

  30%,
  50%,
  70%,
  90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }

  40%,
  60%,
  80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }
}

@keyframes tada {
  from,
  to {
    transform: scale3d(1, 1, 1);
  }

  10%,
  20% {
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }

  30%,
  50%,
  70%,
  90% {
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }

  40%,
  60%,
  80% {
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }
}

/* 应用 tada 动画 */
.tada {
  -webkit-animation-name: tada;
  animation-name: tada;
}

/* 加载框样式 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.loading-text {
  color: white;
  margin-top: 10px;
  font-size: 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
