:root {
  color-scheme: light;
  font-family: PingFangSC-Regular, Roboto, "Helvetica Neue", Helvetica, Tahoma, Arial,
    "PingFang SC-Light", "Microsoft YaHei", sans-serif;
  background: rgba(255, 255, 255, 1.0);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: rgba(255, 255, 255, 1.0);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.download-page {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow-x: hidden;
  background-color: rgba(255, 255, 255, 1.0);
}

.navigation {
  width: 100%;
  height: 56px;
  border-bottom: 0.5px solid rgba(238, 238, 238, 1);
}

.navigation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 clamp(18px, 4.8vw, 32px);
}

.brand-logo {
  width: 21px;
  height: 24px;
  object-fit: contain;
}

.menu-button {
  display: grid;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.menu-button img {
  width: 20px;
  height: 20px;
}

.menu-button:active,
.download-button:active,
.menu-popover button:active {
  opacity: 0.6;
}

.menu-button:focus-visible,
.download-button:focus-visible,
.menu-popover button:focus-visible {
  outline: 2px solid rgba(34, 34, 34, 1.0);
  outline-offset: 3px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: calc(100svh - 56px);
  padding: 20px clamp(16px, 4.2667vw, 32px) 48px;
}

.hero-copy {
  width: 100%;
  max-width: 526px;
  margin: 0 auto;
}

.hero h1 {
  width: 100%;
  margin: 0;
  overflow-wrap: break-word;
  color: rgba(34, 34, 34, 1.0);
  font-family: Helvetica, "Microsoft YaHei", Arial, sans-serif;
  font-size: 26px;
  font-weight: normal;
  line-height: 38px;
  text-align: center;
  letter-spacing: 0;
}

.hero p {
  width: 100%;
  margin: 8px 0 0;
  color: rgba(153, 153, 153, 1.0);
  font-family: "PingFang SC-Regular", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: normal;
  line-height: 12px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 686px;
  height: 44px;
  margin: 36px auto 0;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background-color: rgba(252, 200, 43, 1.0);
  color: rgba(0, 0, 0, 1.0);
  font-family: "PingFang SC-Medium", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 15px;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0;
  cursor: pointer;
}

.product-showcase {
  display: block;
  width: min(82%, 584px);
  height: auto;
  margin: 66px auto 0;
  object-fit: contain;
}

.menu-popover {
  position: absolute;
  z-index: 3;
  top: 52px;
  right: clamp(16px, 4.2667vw, 32px);
  display: none;
  width: 142px;
  padding: 6px;
  border: 0.5px solid rgba(238, 238, 238, 1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 1.0);
  box-shadow: 0 8px 24px rgba(34, 34, 34, 0.12);
}

.menu-popover.is-open {
  display: block;
}

.menu-popover button {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(34, 34, 34, 1.0);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.menu-popover button:hover {
  background: rgba(241, 241, 241, 1.0);
}

.toast {
  position: absolute;
  z-index: 4;
  bottom: 54px;
  left: 50%;
  max-width: 300px;
  padding: 9px 14px;
  border-radius: 6px;
  background: rgba(34, 34, 34, 0.88);
  color: rgba(255, 255, 255, 1.0);
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dialog-backdrop,
.wechat-guide {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: none;
}

.dialog-backdrop.is-open,
.wechat-guide.is-open {
  display: flex;
}

.dialog-backdrop {
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.56);
}

.dialog {
  position: relative;
  width: min(100%, 320px);
  padding: 28px 24px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 1.0);
  text-align: center;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(153, 153, 153, 1.0);
  font-size: 26px;
  line-height: 32px;
  cursor: pointer;
}

.dialog-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  place-items: center;
  background: rgba(252, 200, 43, 1.0);
  color: rgba(34, 34, 34, 1.0);
  font-size: 24px;
  font-weight: 600;
}

.dialog h2 {
  margin: 0;
  color: rgba(34, 34, 34, 1.0);
  font-size: 18px;
  line-height: 26px;
}

.dialog-message {
  margin: 10px 0 20px;
  color: rgba(102, 102, 102, 1.0);
  font-size: 14px;
  line-height: 22px;
}

.dialog-confirm {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: rgba(252, 200, 43, 1.0);
  color: rgba(0, 0, 0, 1.0);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.wechat-guide {
  flex-direction: column;
  align-items: center;
  padding: 112px 28px 32px;
  background: rgba(0, 0, 0, 0.82);
  color: rgba(255, 255, 255, 1.0);
  text-align: center;
}

.guide-arrow {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 54px;
  height: 54px;
  border-top: 3px solid rgba(252, 200, 43, 1.0);
  border-right: 3px solid rgba(252, 200, 43, 1.0);
  border-radius: 0 18px 0 0;
  transform: rotate(-12deg);
}

.guide-arrow::after {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 14px;
  height: 14px;
  border-top: 3px solid rgba(252, 200, 43, 1.0);
  border-right: 3px solid rgba(252, 200, 43, 1.0);
  content: "";
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.guide-content strong {
  font-size: 22px;
  line-height: 30px;
}

.guide-content span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 24px;
}

.guide-close {
  width: min(100%, 280px);
  height: 44px;
  margin-top: 36px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 1.0);
  font-size: 15px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 36px;
  }

  .product-showcase {
    width: min(58%, 584px);
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}
