* {
  padding: 0;
  margin: 0;
  box-sizing: border-box; /* 添加box-sizing，更好的盒模型控制 */
}

html,
body {
  width: 100%;
  min-height: 100vh; /* 使用视口高度 */
  overflow-x: hidden; /* 防止水平滚动 */
}

.mainBox {
  width: 100%;
  min-height: 100vh; /* 改为min-height，更灵活 */
  background: #ffffff;
  font-family: opensans !important;
  display: flex;
  flex-direction: column; /* 使用flex布局 */
}

@font-face {
  font-family: "opensans";
  src: url("./opensans.ttf");
}

/* ====== 通用移动端优化 ====== */
.nav {
  width: 100%;
  height: 80px; /* 移动端减小高度 */
  padding: 0 20px; /* 添加内边距 */
  display: flex;
  align-items: center;
}

.nav img {
  width: 200px; /* 移动端默认宽度 */
  height: auto; /* 保持宽高比 */
  object-fit: contain;
  margin: 0; /* 移除固定margin */
}

.splitLine {
  width: 100%;
  height: 4px; /* 移动端减小高度 */
  background: #f3f3f3;
}

.contentLine1 {
  width: 100%;
  padding: 40px 20px; /* 使用padding代替固定height */
  text-align: center;
  font-weight: 600;
  color: #000000;
  font-size: 2.5rem; /* 使用rem单位 */
  line-height: 1.3;
  word-wrap: break-word; /* 防止文字溢出 */
}

.contentLine2 {
  width: 100%;
  background: #f5f5f5;
  padding: 40px 20px; /* 移动端减小padding */
  flex: 1; /* 填充剩余空间 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.Line2Part1 {
  width: 100%;
  max-width: 600px; /* 最大宽度限制 */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* 使用gap控制间距 */
  margin: 0 auto;
}

.Line2Part1 img {
  width: 80px; /* 移动端减小尺寸 */
  height: 45px;
  object-fit: contain;
}

.APPLogoText {
  font-weight: 600;
  color: #000000;
  font-size: 1.8rem; /* 使用rem单位 */
  line-height: 1.2;
  white-space: nowrap;
}

.Line2Part2 {
  font-weight: 600;
  color: #404040;
  font-size: 1rem; /* 使用rem单位 */
  text-align: center;
  line-height: 1.5;
  margin: 20px auto 0;
  padding: 0 15px;
  max-width: 600px;
}

.Line2Part3 {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column; /* 移动端改为垂直排列 */
  align-items: center;
  gap: 20px; /* 按钮间距 */
  justify-content: center;
}

.Line2Part3 a {
  width: 90%; /* 移动端使用百分比宽度 */
  max-width: 370px;
  height: 60px; /* 移动端减小高度 */
  line-height: 60px;
  border: 2px solid #000000;
  border-radius: 30px;
  font-weight: 600;
  color: #000000;
  font-size: 1.2rem; /* 使用rem单位 */
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

/* 按钮悬停效果 */
#ios:hover,
#Android:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#ios:active,
#Android:active {
  transform: translateY(0);
}

.Line2Part4 {
  width: 100%;
  max-width: 713px;
  font-weight: 600;
  color: #88898c;
  font-size: 0.875rem; /* 使用rem单位 */
  text-align: center;
  line-height: 1.6;
  margin: 30px auto 0;
  padding: 0 20px;
}

.contentLine3 {
  width: 100%;
  padding: 40px 20px;
  background: #fff;
  display: flex;
  flex-direction: column; /* 移动端改为垂直排列 */
  gap: 40px;
}

.contentLine3 > div {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.leftBox {
  padding-left: 0;
  text-align: center; /* 移动端居中 */
}

.Line3Text1 {
  width: 100%;
  font-weight: 600;
  color: #000000;
  font-size: 2.5rem; /* 移动端减小字体 */
  line-height: 1.2;
  margin-bottom: 15px;
}

.Line3Text2 {
  width: 100%;
  font-weight: 500;
  color: #333333;
  font-size: 1rem;
  line-height: 1.5;
}

.rightBox {
  padding-left: 0;
}

.flexBox {
  display: flex;
  align-items: center;
  margin-top: 20px;
  justify-content: flex-start;
  padding: 0 10px;
}

.Line3Img1,
.Line3Img2,
.Line3Img3 {
  width: 30px; /* 移动端减小图标 */
  height: 30px;
  object-fit: contain;
  flex-shrink: 0; /* 防止图标被压缩 */
}

.Line3Text3,
.Line3Text4,
.Line3Text5 {
  font-weight: 500;
  color: #333333;
  font-size: 0.9rem; /* 移动端减小字体 */
  margin-left: 12px;
  line-height: 1.4;
  word-break: break-all; /* 允许长单词断行 */
}

/* ====== 响应式断点 ====== */

/* 小手机: 小于400px */
@media only screen and (max-width: 400px) {
  .nav img {
    width: 160px;
  }

  .contentLine1 {
    font-size: 1.8rem;
    padding: 30px 15px;
  }

  .APPLogoText {
    font-size: 1.4rem;
  }

  .Line2Part1 img {
    width: 60px;
    height: 34px;
  }

  .Line2Part3 a {
    height: 50px;
    line-height: 50px;
    font-size: 1.1rem;
  }

  .Line3Text1 {
    font-size: 2rem;
  }
}

/* 中等手机: 400px-600px */
@media only screen and (min-width: 400px) and (max-width: 600px) {
  .nav {
    height: 90px;
  }

  .nav img {
    width: 220px;
  }

  .contentLine1 {
    font-size: 2rem;
  }

  .APPLogoText {
    font-size: 1.6rem;
  }
}

/* 平板/大手机: 600px-800px */
@media only screen and (min-width: 600px) and (max-width: 800px) {
  .mainBox {
    min-height: auto;
    height: auto;
  }

  .nav {
    height: 100px;
  }

  .nav img {
    width: 250px;
    margin-left: 40px;
  }

  .contentLine1 {
    font-size: 3rem;
    padding: 50px 30px;
  }

  .APPLogoText {
    font-size: 2rem;
  }

  .Line2Part2 {
    font-size: 1.1rem;
  }

  .Line2Part3 {
    flex-direction: row; /* 平板横向排列 */
    justify-content: center;
  }

  .Line2Part3 a {
    width: 45%;
    max-width: none;
  }

  .contentLine3 {
    flex-direction: row; /* 平板横向排列 */
    flex-wrap: wrap;
    justify-content: center;
  }

  .contentLine3 > div {
    width: 45%;
  }
}

/* 大平板/小桌面: 800px-1200px */
@media only screen and (min-width: 800px) and (max-width: 1200px) {
  .nav img {
    width: 280px;
    margin-left: 50px;
  }

  .contentLine1 {
    font-size: 3.5rem;
    padding: 60px 40px;
  }

  .Line2Part3 {
    width: 90%;
    flex-direction: row;
  }

  .Line2Part3 a {
    width: 300px;
    height: 65px;
    line-height: 65px;
  }

  .contentLine3 {
    flex-direction: row;
    justify-content: space-around;
  }
}

/* 桌面: 1200px以上 */
@media only screen and (min-width: 1200px) {
  .nav {
    height: 120px;
  }

  .nav img {
    width: 331px;
    margin-left: 64px;
  }

  .contentLine1 {
    height: 304px;
    line-height: 304px;
    font-size: 5rem; /* 桌面使用大字体 */
  }

  .contentLine2 {
    height: 500px;
    padding-top: 86px;
  }

  .Line2Part1 {
    width: 600px;
    height: 80px;
    gap: 1rem;
  }

  .Line2Part1 img {
    width: 128px;
    height: 72px;
  }

  .APPLogoText {
    font-size: 3rem;
  }

  .Line2Part2 {
    font-size: 1.25rem;
    height: 28px;
    line-height: 28px;
  }

  .Line2Part3 {
    width: 1200px;
    height: 70px;
    margin: 130px auto 0;
    flex-direction: row;
  }

  .Line2Part3 a {
    width: 370px;
    height: 70px;
    line-height: 70px;
    font-size: 1.75rem;
  }

  .Line2Part4 {
    font-size: 1.25rem;
  }

  .contentLine3 {
    height: 300px;
    flex-direction: row;
    justify-content: space-between;
  }

  .contentLine3 > div {
    width: 600px;
  }

  .leftBox {
    padding-left: 150px;
  }

  .Line3Text1 {
    font-size: 5rem;
  }

  .Line3Text2 {
    font-size: 1.5rem;
  }

  .Line3Img1,
  .Line3Img2,
  .Line3Img3 {
    width: 39px;
    height: auto;
  }

  .rightBox {
    padding-left: 30px;
  }

  .Line3Text3,
  .Line3Text4,
  .Line3Text5 {
    font-size: 1.4rem;
    margin-left: 20px;
  }
}

/* 横屏模式优化 */
@media only screen and (max-height: 500px) and (orientation: landscape) {
  .nav {
    height: 60px;
  }

  .nav img {
    width: 150px;
  }

  .contentLine1 {
    padding: 20px;
    font-size: 2rem;
  }

  .contentLine2 {
    padding: 20px;
  }

  .Line2Part1 {
    gap: 5px;
  }

  .Line2Part1 img {
    width: 50px;
    height: 28px;
  }

  .APPLogoText {
    font-size: 1.2rem;
  }

  .Line2Part3 {
    margin: 20px auto 0;
    flex-direction: row;
    gap: 10px;
  }

  .Line2Part3 a {
    height: 45px;
    line-height: 45px;
    font-size: 1rem;
  }
}

/* 防止iPhone上的点击延迟 */
a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 改善滚动体验 */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
