:root {
  --background: #f3f6fb;
  --surface: #fbfdff;
  --text: #132033;
  --text-soft: #5c6879;
  --line: rgba(28, 48, 78, 0.12);
  --accent: #245fc7;
  --accent-hover: #194fae;
  --accent-soft: #dce8fb;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 50% 24%, rgba(36, 95, 199, 0.12), transparent 26rem),
    linear-gradient(rgba(30, 62, 106, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 62, 106, 0.025) 1px, transparent 1px),
    var(--background);
  background-size: auto, 48px 48px, 48px 48px, auto;
}

.download-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 48px, 720px);
  min-height: 100dvh;
  margin: auto;
  padding: 28px 0 34px;
}

.brand { display: inline-flex; align-items: center; justify-self: start; gap: 10px; color: var(--text); font-size: 15px; font-weight: 760; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--accent); color: white; font-size: 17px; font-weight: 800; }
.download-panel { align-self: center; width: min(100%, 510px); margin: 0 auto; padding: clamp(36px, 8vw, 62px) clamp(24px, 7vw, 54px); border: 1px solid var(--line); border-radius: 22px; background: rgba(251, 253, 255, 0.84); box-shadow: 0 24px 80px rgba(44, 72, 112, 0.15); text-align: center; backdrop-filter: blur(18px); }
.device-icon { position: relative; display: grid; width: 88px; height: 88px; place-items: center; margin: 0 auto 28px; border-radius: 50%; background: var(--accent-soft); }
.device-icon span { display: block; width: 30px; height: 48px; border: 3px solid var(--accent); border-radius: 8px; }
.device-icon i { position: absolute; bottom: 25px; width: 8px; height: 3px; border-radius: 2px; background: var(--accent); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .13em; }
h1 { margin: 0 0 16px; font-size: clamp(30px, 7vw, 42px); letter-spacing: -.06em; line-height: 1.12; }
.description { max-width: 25rem; margin: 0 auto; color: var(--text-soft); font-size: 15px; line-height: 1.8; }
.download-button { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; padding: 0 20px; border-radius: 14px; background: var(--accent); color: white; font-size: 15px; font-weight: 760; text-decoration: none; box-shadow: 0 14px 30px rgba(36, 95, 199, .22); transition: transform 180ms ease, background 180ms ease; }
.download-button[hidden], .notice[hidden], .eyebrow[hidden], .qr-entry[hidden], .qr-fallback[hidden] { display: none; }
.download-button:hover { background: var(--accent-hover); transform: translateY(-2px); }
.notice { margin: 28px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(220, 232, 251, .52); color: var(--text-soft); font-size: 13px; line-height: 1.6; }
.qr-entry { display: grid; justify-items: center; gap: 12px; margin-top: 28px; }
.qr-entry img { width: 180px; height: 180px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: white; image-rendering: pixelated; }
.qr-entry p { margin: 0; color: var(--text-soft); font-size: 13px; }
.qr-entry .qr-fallback { max-width: 18rem; color: #9a5a16; line-height: 1.6; }
.terms { margin: 24px 0 0; color: var(--text-soft); font-size: 12px; text-align: center; }
@media (max-width: 540px) { .download-page { width: min(100% - 32px, 720px); padding-block: 20px 26px; } .download-panel { border-radius: 18px; } }
@media (prefers-color-scheme: dark) { :root { --background: #0d131c; --surface: #151f2c; --text: #edf3fc; --text-soft: #a9b6c8; --line: rgba(188, 207, 234, .14); --accent: #73a6ff; --accent-hover: #8cb6ff; --accent-soft: #203c66; } .download-panel { background: rgba(21, 31, 44, .86); } }
