:root {
  --brand: #0BDA95;
  --brand-hover: #09C486;
  --brand-ink: #087A55;
  --brand-soft: rgba(11, 218, 149, 0.18);
  --bg0: #E8F2EE;
  --bg1: #F3F7F5;
  --ink: #1A2332;
  --muted: #5B6573;
  --line: rgba(26, 35, 50, 0.08);
  --surface: rgba(255, 255, 255, 0.72);
  --radius: 18px;
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 15% -5%, var(--brand-soft) 0%, transparent 55%),
    linear-gradient(165deg, var(--bg0), var(--bg1));
  line-height: 1.55;
}

a {
  color: inherit;
}

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.hero {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  min-height: min(78vh, 720px);
  padding: 1rem 0 2rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
}

.brand span {
  color: var(--brand-ink);
}

.slogan {
  margin: 0 0 0.65rem;
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
}

.lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta strong {
  color: var(--ink);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-primary {
  background: var(--brand);
  color: #063528;
  box-shadow: 0 10px 28px rgba(11, 218, 149, 0.28);
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hint {
  margin: 0.85rem 0 0;
  min-height: 1.25em;
  font-size: 0.86rem;
  color: var(--muted);
}

.hint.error {
  color: #b42318;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: float-in 0.7s ease both;
}

/* iPhone-style shell — height follows screenshot (no tall empty chin) */
.phone {
  position: relative;
  width: min(100%, 260px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 36px;
  background: #0b0d10;
  box-shadow:
    0 22px 44px rgba(26, 35, 50, 0.2),
    0 0 0 1px #2a2f38,
    inset 0 0 0 1px #3a414d;
}

/* Dynamic Island */
.phone::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 3;
  width: 72px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Power button (small element only — never shadow a full-size layer) */
.phone::after {
  content: "";
  position: absolute;
  top: 30%;
  right: -3px;
  z-index: 1;
  width: 3px;
  height: 48px;
  border-radius: 2px;
  background: #2a303c;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  line-height: 0;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.hero-visual .phone {
  width: min(100%, 280px);
}

.promo-card-hero {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 1rem 0.85rem 1.2rem;
}

/* Promo card: mint board + copy above phone (图二) */
.promo-card {
  margin: 0;
  padding: 1.15rem 1rem 1.35rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #e7f6ef 0%, #f3faf6 55%, #eef7f2 100%);
  border: 1px solid rgba(11, 218, 149, 0.18);
  text-align: center;
  animation: rise 0.55s ease both;
}

.promo-head {
  margin: 0 auto 1rem;
  max-width: 22rem;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-ink);
  background: rgba(11, 218, 149, 0.14);
  border: 1px solid rgba(11, 218, 149, 0.28);
}

.promo-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 218, 149, 0.2);
}

.promo-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 800;
  color: #0f3d32;
  letter-spacing: 0.01em;
}

.promo-sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.gallery .phone {
  width: min(100%, 230px);
}

.gallery .promo-card:nth-child(2) { animation-delay: 0.06s; }
.gallery .promo-card:nth-child(3) { animation-delay: 0.12s; }
.gallery .promo-card:nth-child(4) { animation-delay: 0.18s; }
.gallery .promo-card:nth-child(5) { animation-delay: 0.24s; }

.desktop-panel {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  width: fit-content;
  text-align: center;
}

.desktop-panel p {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

#qrcode {
  width: 148px;
  height: 148px;
  margin: 0 auto;
}

#qrcode img,
#qrcode canvas {
  display: block;
  margin: 0 auto;
}

.showcase {
  margin-top: 1rem;
  padding-top: 0.5rem;
}

.showcase h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  color: var(--brand-ink);
  border-bottom-color: var(--brand);
}

.wechat-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(10, 18, 28, 0.72);
  color: #fff;
  padding: 1.5rem;
}

.wechat-mask.show {
  display: block;
}

.wechat-mask .tip-box {
  max-width: 320px;
  margin: 1rem 0 0 auto;
  text-align: right;
  font-size: 1rem;
  line-height: 1.6;
}

.wechat-mask .arrow {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .desktop-panel {
    display: block;
  }

  .btn-ghost.desktop-only {
    display: inline-flex;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 859px) {
  .btn-ghost.desktop-only {
    display: none;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
