html {
  height: 100%
}

body {
  margin: 0;
  height: 100%;
  background-image: url('/pc/appdownload/version1/bg.png');
  background-repeat: no-repeat;
  background-size: cover;
}
body * {
  box-sizing: border-box;
}

.wrapper {
  padding-bottom: 96px;
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.subject {
  margin-top: -20vw;
  margin-bottom: 14px;
  height: 40px;
  font-size: 18px;
  text-align: center;
}

.ios-wp, .android-wp {
  display: none;
  text-align: center;
}
.ios .ios-wp, .android .android-wp, .desktop .ios-wp, .desktop .android-wp {
  display: block;
}

.download-btns {
  display: flex;
  display: -webkit-flex;
  flex-flow: column;
  row-gap: 14px;
  margin-bottom: 131px;
}
.download {
  display: flex;
  display: -webkit-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: auto;
  width: 200px;
  height: 40px;
  background-size: cover;
  background-image: url('/pc/appdownload/btn_bg.png');
  border-radius: 20px;
  line-height: 40px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.ios-wp .download + .download {
  margin-top: 14px;
}

.tip {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  margin: auto;
  margin-bottom: 6px;
  width: 150px;
  color: rgba(245, 166, 35, 1);
  font-size: 12px;
  line-height: 20px;
  &:last-child {
    margin-bottom: 8px;
  }
  .highlight {
    color: #FFC320;
    font-size: 16px;
    font-weight: 500;
    margin: 0 3px;
  }
}
.promotion {
  display: flex;
  display: -webkit-flex;
  flex-flow: column;
  align-items: center;
  .title {
    margin-bottom: 10px;
  }
  .deco {
    margin-bottom: 8px;
    &:last-child {
      transform: rotate(180deg);
    }
  }
}

#modal {
  position: absolute;
  top: 0;
  display: none;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
}
#modal.visible {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  justify-content: center;
}
#guide-modal {
  padding: 20px;
  width: 320px;
  height: 430px;
  border-radius: 10px;
  background-image: url('/pc/appdownload/version1/guide_bg.png');
  background-size: cover;
}

.guide-modal-inner {
  display: flex;
  display: -webkit-flex;
  flex-flow: column;
  align-items: center;
  row-gap: 20px;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.guide-modal-inner::-webkit-scrollbar-track {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
}
.guide-modal-inner::-webkit-scrollbar {
  width: 4px;
  border-radius: 20px;
}
.guide-modal-inner::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
}

.guide-modal-inner .title {
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  text-align: center;
  color: white;
}
.guide-modal-inner .title::before, .guide-modal-inner .title::after {
  content: '';
  display: inline-block;
  margin: 0 10px;
  width: 32px;
  height: 1px;
  border-radius: 10px;
  vertical-align: middle;
}
.guide-modal-inner .title::before {
  background: linear-gradient(270deg, #F0ECFF 0%, rgba(240, 236, 255, 0) 100%);
}
.guide-modal-inner .title::after {
  background: linear-gradient(90deg, #F0ECFF 0%, rgba(240, 236, 255, 0) 100%);
}
.guide-modal-inner .desc {
  margin: 10px 0;
  font-size: 12px;
  line-height: 20px;
  color: rgb(221, 221, 221);
}
.guide-modal-inner .step-desc {
  margin: 10px 0;
  font-size: 12px;
  line-height: 20px;
  color: rgb(221, 221, 221);
  text-align: center;
}
.guide-modal-inner .step {
  display: flex;
  display: -webkit-flex;
  flex-flow: column;
  align-items: center;
}
.guide-modal-inner .step-title {
  width: 80px;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: white;
  text-align: center;
}
.guide-modal-inner .step-title::after {
  content: '';
  display: block;
  margin-top: 2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(224, 198, 236, 0) 0%, #643BBF 51.04%, rgba(82, 55, 189, 0) 100%);
}

.close {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  cursor: pointer;
}

@media screen and (min-width: 768px) {
  .wrapper {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
    height: 90vh;
  }

  .header {
    width: 740px;
    height: 480px;
    background-image: url('/pc/appdownload/version1/header.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }
  .header img {
    display: none;
  }

  .subject {
    margin-top: -60px;
  }

  .download-btns {
    margin-bottom: 40px;
  }

  #guide-modal {
    width: 480px;
    height: 600px;
  }

  .close {
    bottom: calc(50vh - 380px);
  }
}

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes bounceIn {
  from,
  20%,
  40%,
  60%,
  80%,
  to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  20% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9);
    transform: scale3d(0.9, 0.9, 0.9);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    -webkit-transform: scale3d(0.97, 0.97, 0.97);
    transform: scale3d(0.97, 0.97, 0.97);
  }

  to {
    opacity: 1;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes bounceIn {
  from,
  20%,
  40%,
  60%,
  80%,
  to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  20% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9);
    transform: scale3d(0.9, 0.9, 0.9);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    -webkit-transform: scale3d(0.97, 0.97, 0.97);
    transform: scale3d(0.97, 0.97, 0.97);
  }

  to {
    opacity: 1;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

.bounceIn {
  -webkit-animation-duration: 0.75s;
  animation-duration: 0.75s;
  -webkit-animation-name: bounceIn;
  animation-name: bounceIn;
}
