body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  position: relative;
  min-height: 100vh;
}

.bg {
  background: url("img/bg.png") no-repeat center 0 / cover;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}
.card-h5img {
  display: none;
}
.bg-top-wrap {
  width: 100vw;
  text-align: center;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  pointer-events: none;
}
.h5-top-wrap {
  display: none;
}
.bg-top-img {
  display: inline-block;
  width: 75vw;
  height: auto;
  margin: 0 auto;
  vertical-align: top;
  pointer-events: none;
}

.main-container {
  width: 90vw;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-group {
  display: flex;
  gap: 32px;
  justify-content: center;
  width: 100%;
  margin-top: 22%;
}

.card {
  padding: 30px 20px;
  min-width: 280px;
  max-width: 360px;
  flex: 1 1 0;
  text-align: center;
  position: relative;
}

.card-btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  position: absolute;
  left: 50%;
  bottom: -15%;
  transform: translateX(-50%);
}

.card-btns button {
  padding: 12px 32px;
  font-size: 1.08em;
  border-radius: 5px;
  border: none;
  background: #ffd600;
  color: #222;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}
.card-btns button:hover {
  background: #ffe066;
}

.card1,
.card2,
.card3 {
  width: 100%;
  background-repeat: no-repeat;
  background-position: center top;
  margin: 0 auto;
  position: relative;
}

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

.card-btns {
  width: 58%;
  position: absolute;
  left: 50%;
  top: 85%;
  transform: translateX(-50%);
  margin: 0;
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: auto;
}

.reg-btn {
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
  display: inline-block;
}

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

.app-link {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 1.1em;
  color: #fdd74e;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  background: none;
  padding: 0.4em 0;
}
.app-link:hover {
  text-decoration: underline;
  color: #fff199;
}
@media (max-width: 1600px) {
  .bg-top-img {
    width: 95% !important;
  }
}

@media (max-width: 900px) {
  .card-group {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-top: 4%;
  }
  .main-container {
    width: 98vw;
  }
  .card-btns {
    width: 43%;
    padding-bottom: 0.4rem;
    top: 72%;
  }
  .btns3 {
    top: 82%;
  }
  .bg {
    background-image: url("img/h5bg.png");
    background-size: 100% 100% !important;
    background-repeat: no-repeat;
    background-position: center top;
    min-height: 100vh;
    width: 100vw;
    height: auto;
    position: relative;
    background-attachment: scroll;
    margin: -0.1rem 0 5.5rem;
  }
  body,
  html {
    overflow-x: hidden;
    height: 100%;
    background-color: #040b15;
  }
  .card1,
  .card2,
  .card3 {
    aspect-ratio: unset;
    background-repeat: no-repeat;
    background-position: center top;
    border-radius: 0;
    box-shadow: none;
    flex: none;
    margin: 0 auto;
    height: 16rem;
    padding: 0;
  }
  .app-link {
    font-size: 0.9em;
    margin-top: -0.75rem;
  }
  .bg-top-wrap,
  .bg-top-img {
    display: none !important;
  }
  .h5-top-wrap {
    display: block;
    width: 100vw;
    text-align: center;
    margin: 0;
    padding: 0;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    pointer-events: none;
  }
  .h5-top-img {
    display: block;
    width: 100%;
    max-width: 100vw;
    height: auto;
    margin: 0 auto;
  }
  .card-h5img {
    width: 100%;
    display: block;
  }
  .card-img {
    display: none;
  }
}

@media (max-width: 344px) {
  .card-btns {
    top: 67% !important;
  }
  .btns3 {
    top: 75% !important;
  }
}

@media (max-width: 320px) {
  .card-btns {
    top: 62% !important;
  }
  .btns3 {
    top: 70% !important;
  }
}
