:root {
  color: #17211b;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; }
button { font: inherit; }

.launch-page { min-height: 100dvh; }
.security-strip {
  align-items: center;
  background: #edf8f1;
  border-bottom: 1px solid #dceee3;
  color: #08783d;
  display: flex;
  font-size: 14px;
  gap: 9px;
  justify-content: center;
  min-height: 52px;
  padding: 10px 20px;
}
.security-strip span {
  align-items: center;
  background: #0a8f48;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  width: 20px;
}
.security-strip p { margin: 0; }

.launch-stage {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - 52px);
  overflow: hidden;
  padding: 34px 24px max(42px, env(safe-area-inset-bottom));
  text-align: center;
}
.pulse-mark {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  height: min(calc(100vw - 48px), 340px);
  justify-content: center;
  margin-bottom: 20px;
  max-height: 340px;
  max-width: 340px;
  position: relative;
  width: min(calc(100vw - 48px), 340px);
}
.pulse-mark > i {
  border: 2px solid #9ed6b7;
  border-radius: 50%;
  inset: 0;
  opacity: .34;
  position: absolute;
}
.pulse-mark > i:nth-child(2) { inset: 16%; opacity: .55; }
.pulse-mark > i:nth-child(3) { inset: 31%; opacity: .8; }
.wechat-mark {
  background: #08783d;
  border-radius: 50%;
  height: 104px;
  position: relative;
  width: 104px;
}
.wechat-mark b {
  background: #fff;
  border-radius: 50%;
  height: 34px;
  left: 24px;
  position: absolute;
  top: 30px;
  width: 43px;
}
.wechat-mark b::before, .wechat-mark b::after {
  background: #08783d;
  border-radius: 50%;
  content: "";
  height: 4px;
  position: absolute;
  top: 10px;
  width: 4px;
}
.wechat-mark b::before { left: 12px; }
.wechat-mark b::after { right: 12px; }
.wechat-mark b:nth-child(2) { height: 30px; left: 48px; top: 48px; width: 39px; }
.eyebrow { color: #08783d; font-size: 14px; font-weight: 600; margin: 0 0 8px; }
h1, h2 { letter-spacing: 0; margin: 0; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
.intro { color: #657169; font-size: 15px; line-height: 1.7; margin: 12px auto 0; max-width: 360px; overflow-wrap: anywhere; width: calc(100vw - 48px); word-break: break-all; }
.launch-status { color: #768078; font-size: 13px; min-height: 20px; margin: 12px 0 14px; }

.primary-button, .secondary-button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  min-height: 52px;
  padding: 0 24px;
  max-width: 430px;
  width: calc(100vw - 48px);
}
.primary-button { background: #08783d; color: #fff; box-shadow: 0 8px 18px rgba(8, 120, 61, .18); }
.primary-button:hover:not(:disabled) { background: #066d36; }
.primary-button:focus-visible, .secondary-button:focus-visible { outline: 3px solid #7bb995; outline-offset: 3px; }
.primary-button:disabled { cursor: wait; opacity: .55; }
.primary-button.is-launching { background: #066d36; }

.qr-section { background: #f5f7f6; border-top: 1px solid #e0e7e3; min-height: 100dvh; padding: 54px 20px max(42px, env(safe-area-inset-bottom)); }
.qr-content { margin: 0 auto; max-width: 420px; text-align: center; }
.qr-panel {
  align-items: center;
  background: #fff;
  border: 1px solid #dce5df;
  display: flex;
  justify-content: center;
  margin: 24px auto 18px;
  min-height: 300px;
  padding: 16px;
  width: min(100%, 330px);
}
#qr-image { display: block; height: auto; max-width: 100%; width: 100%; }
.qr-placeholder { color: #65746a; font-size: 14px; }
.placeholder-grid {
  background-color: #fff;
  background-image: linear-gradient(90deg, #d3dfd7 10%, transparent 10%), linear-gradient(#d3dfd7 10%, transparent 10%);
  background-size: 20px 20px;
  height: 220px;
  margin: 0 auto 14px;
  opacity: .75;
  width: 220px;
}
.secondary-button { background: #fff; border: 1px solid #aebfb4; color: #294336; }
.secondary-button:disabled { cursor: not-allowed; opacity: .45; }
.notice { color: #7b867f; font-size: 12px; line-height: 1.65; margin: 18px auto 0; max-width: 330px; }
.toast { background: rgba(20, 36, 27, .94); border-radius: 6px; bottom: 28px; color: #fff; font-size: 14px; left: 50%; max-width: calc(100% - 40px); opacity: 0; padding: 12px 16px; pointer-events: none; position: fixed; text-align: center; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; z-index: 5; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 390px) {
  .launch-stage { justify-content: flex-start; padding-top: 26px; }
  .pulse-mark { height: min(calc(100vw - 48px), 280px); margin-bottom: 14px; width: min(calc(100vw - 48px), 280px); }
  .wechat-mark { height: 86px; transform: scale(.84); width: 86px; }
  .qr-panel { min-height: 270px; }
}

@media (min-width: 760px) {
  .launch-stage { min-height: 720px; }
  .qr-section { min-height: 720px; }
}
