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

body {
  background: #f1f1f1;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.preview-wrap {
  position: relative;
  min-height: 100vh;
}

.phone-shell {
  --u: 4.15px;
  container-type: inline-size;
  position: absolute;
  inset: 0;
  width: 415px;
  height: 100vh;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 2px 3px 10px #999;
  overflow-x: hidden;
  overflow-y: auto;
  background: #eee;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.phone-screen {
  container-type: inline-size;
  position: relative;
  width: 100%;
  min-height: 100%;
  background: #fff;
}

.poster {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.poster-hotspot {
  position: absolute;
  left: 21%;
  top: 83.5%;
  width: 58%;
  height: 8%;
  z-index: 3;
}

.download-qr-card {
  position: absolute;
  top: 1cqw;
  right: 0cqw;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 18.8cqw;
  /* padding: 1.2cqw 1.2cqw 1cqw; */
  box-sizing: border-box;
  border-radius: 1.4cqw;
  /* background: rgba(255, 255, 255, 0.94); */
  /* box-shadow: 0 0.8cqw 2.4cqw rgba(0, 0, 0, 0.16); */
}

.download-qrcode {
  display: block;
  width: 16.4cqw;
  height: 16.4cqw;
  object-fit: contain;
}

.download-qr-label {
  margin-top: 0.8cqw;
  color: #e6322e;
  font-size: 2.5cqw;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.brand-footer {
  box-sizing: border-box;
  width: 100%;
  min-height: 22.2cqw;
  padding: 4.7cqw 2cqw 3.2cqw;
  background: #fafafa;
  color: #858585;
  text-align: center;
}

.brand-footer p {
  margin: 0;
}

.footer-company {
  font-size: 3.3cqw;
  line-height: 1.35;
}

.footer-protect {
  margin-top: 0;
  font-size: 2.9cqw;
  line-height: 1.35;
  white-space: nowrap;
}

.footer-protect span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5cqw;
  height: 2.5cqw;
  border-radius: 50%;
  background: #9a9a9a;
  color: #fff;
  font-size: 1.7cqw;
  vertical-align: 0.25cqw;
}

.footer-claims {
  display: flex;
  justify-content: center;
  gap: 5.5cqw;
  margin-top: 2.3cqw;
  color: #999;
  font-size: 3cqw;
  line-height: 1.2;
  white-space: nowrap;
}

.bottom-reserve {
  height: 31.3cqw;
  background: #fff;
}

.download-card {
  position: fixed;
  left: calc(50% - 45.9cqw);
  bottom: 4.1cqw;
  z-index: 4;
  width: 91.8cqw;
  height: 54.6cqw;
  box-sizing: border-box;
  border-radius: 2.9cqw;
  background: #fff;
  box-shadow: 0 2.5cqw 6.5cqw rgba(0, 0, 0, 0.1);
  text-align: center;
  pointer-events: none;
  transition: height 0.3s ease;
}

.app-icon {
  position: absolute;
  top: -8.28cqw;
  left: 50%;
  width: 16.9cqw;
  height: 16.9cqw;
  border-radius: 2.9cqw;
  transform: translateX(-50%);
  object-fit: cover;
  transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease, transform 0.3s ease;
}

.download-card h1,
.download-card p {
  margin: 0;
}

.app-info {
  position: absolute;
  left: 0;
  top: 10.8cqw;
  width: 100%;
  transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, transform 0.3s ease;
}

.download-card h1 {
  color: #000;
  font-size: 4.35cqw;
  font-weight: 700;
  line-height: 1.42;
  transition: font-size 0.3s ease, text-align 0.3s ease;
}

.slogan,
.meta {
  width: 100%;
  color: #999;
  font-size: 3.38cqw;
  line-height: 1.38;
  transition: font-size 0.3s ease, text-align 0.3s ease;
}

.slogan {
  margin-top: 1.05cqw;
}

.meta {
  margin-top: 0.1cqw;
}

.download-button {
  position: absolute;
  top: 29.8cqw;
  left: 5cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 81.8cqw;
  height: 11.6cqw;
  border-radius: 5.8cqw;
  background: #e6322e;
  color: #fff;
  font-size: 4cqw;
  font-weight: 700;
  line-height: 1;
  pointer-events: auto;
  transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease, border-radius 0.3s ease, transform 0.3s ease;
}

.version,
.company {
  position: absolute;
  left: 0;
  width: 100%;
  color: #999;
  font-size: 2.9cqw;
  line-height: 1.4;
  transition: opacity 0.3s ease;
}

.version {
  top: 42.7cqw;
}

.company {
  top: 47.7cqw;
}

.phone-shell.is-compact .download-card,
.download-card.is-compact {
  height: var(--card-compact-height);
}

.phone-shell.is-compact .app-icon,
.download-card.is-compact .app-icon {
  top: var(--icon-compact-top);
  left: var(--icon-compact-left);
  width: var(--icon-compact-size);
  height: var(--icon-compact-size);
  transform: none;
}

.phone-shell.is-compact .app-info,
.download-card.is-compact .app-info {
  top: var(--info-compact-top);
  left: var(--info-compact-left);
  width: var(--info-compact-width);
  text-align: left;
  transform: none;
}

.phone-shell.is-compact .download-card h1,
.download-card.is-compact h1 {
  font-size: 4.35cqw;
  line-height: 1.25;
  text-align: left;
}

.phone-shell.is-compact .slogan,
.phone-shell.is-compact .meta,
.download-card.is-compact .slogan,
.download-card.is-compact .meta {
  font-size: 3.38cqw;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
}

.phone-shell.is-compact .slogan,
.download-card.is-compact .slogan {
  margin-top: 1.1cqw;
}

.phone-shell.is-compact .meta,
.download-card.is-compact .meta {
  margin-top: 0.1cqw;
}

.phone-shell.is-compact .download-button,
.download-card.is-compact .download-button {
  top: var(--button-compact-top);
  left: var(--button-compact-left);
  width: var(--button-compact-width);
  height: var(--button-compact-height);
  border-radius: var(--button-compact-radius);
}

.phone-shell.is-compact .version,
.phone-shell.is-compact .company,
.download-card.is-compact .version,
.download-card.is-compact .company {
  opacity: 0;
}

.qr-panel {
  position: absolute;
  top: 117px;
  left: calc(50% + 229.5px);
  width: 220px;
  height: 240px;
  box-sizing: border-box;
  background: #fff;
}

.qrcode {
  width: 200px;
  height: 200px;
  margin: 10px;
}

.qrcode:empty {
  background:
    linear-gradient(90deg, #111 10px, transparent 10px) 0 0 / 18px 18px,
    linear-gradient(#111 10px, transparent 10px) 0 0 / 18px 18px,
    #fff;
}

.qr-panel p {
  position: absolute;
  bottom: 5px;
  width: 100%;
  margin: 0;
  color: #999;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 559px) {
  body {
    background: #fff;
  }

  .preview-wrap {
    min-height: 100vh;
  }

  .phone-shell {
    position: relative;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .download-card {
    left: 4.1cqw;
  }

  .qr-panel {
    display: none;
  }
}
