*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  background: #0f0f12;
  color: #f5f5f7;
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

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

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom);
}

/* ===== 微信遮罩 ===== */
.wechat-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(env(safe-area-inset-top) + 12px) 24px 40px;
}

.wechat-mask[hidden] {
  display: none !important;
}

.wechat-arrow {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 4px);
  right: 18px;
  width: 110px;
  height: 72px;
  pointer-events: none;
}

.wechat-arrow svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(255, 212, 0, 0.35));
}

.wechat-tip {
  margin-top: 38vh;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.7;
  color: #fff;
  letter-spacing: 0.02em;
}

.wechat-tip strong {
  color: #ffd400;
}

.wechat-tip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wechat-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

/* ===== 页面内容 ===== */
.hero {
  padding: 28px 0 20px;
}

.app-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.app-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-desc {
  margin-top: 4px;
  font-size: 14px;
  color: #a1a1aa;
}

.content {
  flex: 1;
}

.intro {
  margin-bottom: 24px;
}

.intro h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.intro p {
  font-size: 14px;
  color: #a1a1aa;
}

.download-btns {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.1);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.btn-icon-play {
  background: transparent;
  padding: 0;
}

.btn-icon-play img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.btn-icon-appstore {
  background: transparent;
  padding: 0;
}

.btn-icon-appstore svg {
  display: block;
  width: 48px;
  height: 48px;
}

.btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-text strong {
  font-size: 17px;
  font-weight: 600;
}

.btn-text small {
  font-size: 13px;
  color: #a1a1aa;
}

.steps {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.steps h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 212, 0, 0.15);
  color: #ffd400;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step p {
  font-size: 13px;
  color: #c4c4cc;
  line-height: 1.6;
}

.step p strong {
  color: #f5f5f7;
}

.footer {
  padding: 24px 0 12px;
  text-align: center;
}

.footer p {
  font-size: 12px;
  color: #71717a;
}

/* ===== 平板 / 桌面适配 ===== */
@media (min-width: 480px) {
  .page {
    max-width: 440px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .wechat-tip {
    font-size: 24px;
  }
}

@media (min-width: 768px) {
  .page {
    max-width: 480px;
    padding-top: 40px;
  }

  .hero {
    padding-top: 20px;
  }

  .app-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

  .app-name {
    font-size: 32px;
  }

  .btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}
