:root {
  --bg: #050d22;
  --bg2: #0a1a3d;
  --blue: #2f6bff;
  --blue-soft: #4d8cff;
  --gold: #f0c14b;
  --gold2: #ffe09a;
  --text: #f4f7ff;
  --muted: #9aadc8;
  --line: rgba(255, 255, 255, 0.1);
  --font-display: "Outfit", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 420px at 50% 8%, rgba(47, 107, 255, 0.35), transparent 60%),
    radial-gradient(520px 320px at 80% 70%, rgba(240, 193, 75, 0.12), transparent 55%),
    linear-gradient(180deg, #071433 0%, #050d22 48%, #091833 100%);
}

.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 22%, rgba(77, 140, 255, 0.18), transparent 28%);
  animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px 40px;
  animation: rise 0.75s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.icon-wrap {
  position: relative;
  margin-bottom: 22px;
}

.icon-wrap::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(77, 140, 255, 0.45), transparent 68%);
  filter: blur(8px);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  display: block;
  box-shadow:
    0 18px 40px rgba(8, 24, 70, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: float 4.8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 7vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff 10%, var(--gold2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tag {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.12em;
}

.meta {
  margin: 10px 0 0;
  color: rgba(154, 173, 200, 0.85);
  font-size: 0.86rem;
}

.dl-btn {
  margin-top: 34px;
  width: min(320px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 22px;
  border-radius: 18px;
  text-decoration: none;
  color: #07122b;
  background: linear-gradient(135deg, #ffe29a 0%, #f0c14b 42%, #d9a326 100%);
  box-shadow:
    0 16px 36px rgba(240, 193, 75, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.dl-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 42px rgba(240, 193, 75, 0.36);
  filter: brightness(1.03);
}

.dl-btn:active { transform: translateY(0) scale(0.99); }

.dl-btn.is-ios {
  color: #fff;
  background: linear-gradient(135deg, #6ea0ff 0%, #2f6bff 48%, #1d4ed8 100%);
  box-shadow:
    0 16px 36px rgba(47, 107, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.dl-btn.is-android {
  color: #062016;
  background: linear-gradient(135deg, #7dffc0 0%, #3ddc97 50%, #1faa6e 100%);
  box-shadow:
    0 16px 36px rgba(61, 220, 151, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dl-main {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dl-sub {
  font-size: 0.8rem;
  opacity: 0.78;
  font-weight: 500;
}

.hint {
  max-width: 340px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

footer {
  padding: 16px 20px 28px;
  text-align: center;
  color: rgba(154, 173, 200, 0.65);
  font-size: 0.78rem;
}

/* ========== 微信内引导（自研，非跳转图片） ========== */
.wx-guide[hidden] { display: none !important; }

html.is-wechat .wx-guide {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #e8e8e8;
}

html.is-wechat #main-stage,
html.is-wechat #main-footer {
  display: none !important;
}

.wx-guide-top {
  position: relative;
  background: #2b2b2b;
  color: #fff;
  text-align: center;
  padding: 14px 56px 14px 16px;
  min-height: 48px;
}

.wx-guide-banner {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wx-guide-arrow {
  position: absolute;
  top: 4px;
  right: 6px;
  animation: wx-bounce 1.15s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35));
}

@keyframes wx-bounce {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -8px); }
}

.wx-guide-body {
  max-width: 420px;
  margin: 0 auto;
  padding: 22px 16px 40px;
  text-align: center;
}

.wx-guide-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: block;
  margin: 0 auto 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.wx-guide-body h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #1a1a1a;
}

.wx-guide-note {
  margin: 8px 0 18px;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.wx-block {
  text-align: left;
  background: #fff;
  border-radius: 14px;
  padding: 16px 16px 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

.wx-block h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #e53935;
  font-weight: 700;
}

.wx-block ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wx-block li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5;
}

.wx-block li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #f0a020;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 1px;
}

.wx-block b {
  color: #1565c0;
}

.wx-warn {
  margin: 4px 0 0;
  color: #e53935;
  font-size: 0.82rem;
}

/* 默认两段都显示；识别到机型后只突出当前机型 */
html.is-wechat.is-ios .wx-block-android { opacity: 0.55; }
html.is-wechat.is-android .wx-block-ios { opacity: 0.55; }

.wx-actions {
  margin-top: 18px;
}

.wx-copy {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #07122b;
  background: linear-gradient(135deg, #ffe09a, #f0c14b);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(240, 193, 75, 0.35);
}

.wx-copy-tip {
  margin: 10px 0 0;
  color: #2e7d32;
  font-size: 0.88rem;
  font-weight: 600;
}

.wx-copy-tip[hidden] { display: none !important; }

.wx-link {
  margin: 10px 0 0;
  color: #888;
  font-size: 0.78rem;
  word-break: break-all;
}

@media (max-width: 480px) {
  .stage { padding-top: 52px; }
  .app-icon { width: 108px; height: 108px; border-radius: 24px; }
}
