:root {
  --bg: #07131b;
  --bg-deep: #071019;
  --surface: #10232d;
  --surface-raised: #1b333f;
  --border: #304c5a;
  --border-strong: #526e7d;
  --text: #f8fbfc;
  --muted: #b3c0c8;
  --muted-2: #8398a4;
  --cyan: #25f4d7;
  --mint: #5efcd1;
  --lime: #b2fb8f;
  --on-accent: #07191d;
  --radius: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 700px at 22% 8%, rgba(37, 244, 215, 0.11), transparent 60%),
    radial-gradient(900px 600px at 90% 80%, rgba(178, 251, 143, 0.07), transparent 62%),
    linear-gradient(160deg, #07131b 0%, #071019 55%, #07131b 100%);
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(7, 19, 27, 0.36) 0%, rgba(7, 19, 27, 0.78) 42%, rgba(7, 19, 27, 0.98) 100%),
    url("assets/runner.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.shell {
  width: min(calc(100% - 40px), 980px);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) 0 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.12em;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(37, 244, 215, 0.7);
  animation: breathe 2.8s ease-in-out infinite;
}

.brand-name {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.runtime-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(48, 76, 90, 0.8);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(16, 35, 45, 0.54);
  backdrop-filter: blur(10px);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.runtime-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(178, 251, 143, 0.6);
}

.hero {
  max-width: 820px;
  margin: clamp(54px, 9vw, 108px) auto 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.accent {
  background: linear-gradient(92deg, var(--cyan) 0%, var(--mint) 48%, var(--lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 650px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.9;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.meta-sep {
  width: 1px;
  height: 12px;
  background: var(--border);
}

.support-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.6vw, 24px);
  margin: clamp(44px, 7vw, 74px) auto 0;
  max-width: 760px;
}

.qr-card {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(48, 76, 90, 0.75);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(27, 51, 63, 0.93) 0%, rgba(16, 35, 45, 0.96) 62%, rgba(20, 58, 60, 0.82) 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.qr-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 210px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 244, 215, 0.13), transparent 68%);
  pointer-events: none;
}

.qr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 252, 209, 0.52);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), 0 0 32px rgba(37, 244, 215, 0.08);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.pay-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.pay-mark svg { width: 26px; height: 26px; fill: #fff; }

.wechat-mark { background: linear-gradient(145deg, #2bcf6e, #159f4f); }

.alipay-mark { background: linear-gradient(145deg, #2aa7ff, #1677ff); }

.pay-copy { min-width: 0; }
.pay-copy h2 { white-space: nowrap; }
.pay-copy h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.pay-copy p {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 11px;
}

.pay-tag {
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid rgba(48, 76, 90, 0.8);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 234px);
  aspect-ratio: 1;
  margin: 22px auto 0;
  padding: 12px;
  border-radius: 20px;
  background: rgba(7, 19, 27, 0.66);
  border: 1px solid rgba(48, 76, 90, 0.65);
  overflow: hidden;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.qr-frame.has-qr .qr-placeholder { display: none; }

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(94, 252, 209, 0.26);
  border-radius: 12px;
  color: var(--muted-2);
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(37, 244, 215, 0.025) 0 8px, transparent 8px 16px);
}

.qr-placeholder-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.qr-placeholder-hint {
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.7;
}

.qr-placeholder-hint code {
  color: rgba(37, 244, 215, 0.7);
  font-size: 8px;
}

.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(37, 244, 215, 0.55);
  border-style: solid;
}
.corner.tl { top: 20px; left: 20px; border-width: 1.5px 0 0 1.5px; }
.corner.tr { top: 20px; right: 20px; border-width: 1.5px 1.5px 0 0; }
.corner.bl { bottom: 20px; left: 20px; border-width: 0 0 1.5px 1.5px; }
.corner.br { bottom: 20px; right: 20px; border-width: 0 1.5px 1.5px 0; }

.qr-note {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  text-align: center;
  letter-spacing: 0.04em;
}

.thanks {
  max-width: 620px;
  margin: clamp(50px, 8vw, 82px) auto 0;
  text-align: center;
}

.thanks-rule {
  width: 42px;
  height: 1px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.thanks-main {
  margin: 0;
  color: var(--text);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
}

.thanks-sub {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.7;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(44px, 7vw, 70px);
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 32px), 560px); padding-top: 18px; }
  .runtime-badge { padding: 7px 10px; font-size: 10px; }
  .hero { margin-top: 48px; padding: 0 2px; }
  .lede { max-width: 100%; margin-top: 20px; }
  .support-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 38px; }
  .qr-frame { width: min(100%, 218px); margin-top: 18px; }
  .qr-card { padding: 20px; }
  .thanks { margin-top: 46px; }
  .footer { margin-top: 42px; }
}

@media (max-width: 380px) {
  .runtime-badge { display: none; }
  .pay-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
