:root {
  --bg: #06080c;
  --bg-soft: #0a0e14;
  --panel: rgba(255, 255, 255, 0.038);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2f8;
  --muted: #8b95a7;
  --muted-2: #5f6879;
  --accent: #3ddc97;
  --accent-2: #2bbf82;
  --accent-ink: #04130d;
  --blue: #6b93ff;
  --danger: #ff6270;
  --warn: #ffc061;
  --radius: 20px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }

/* ============================================================ download page */
.dl-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 82% -8%, rgba(61, 220, 151, 0.09), transparent 60%),
    radial-gradient(900px 600px at 12% 108%, rgba(107, 147, 255, 0.1), transparent 62%),
    linear-gradient(180deg, #06080c 0%, #070a10 100%);
}

.aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.aurora .blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora .b1 {
  width: 480px; height: 480px; left: -140px; top: -160px;
  background: radial-gradient(circle at 40% 40%, rgba(61, 220, 151, .32), transparent 65%);
}
.aurora .b2 {
  width: 560px; height: 560px; right: -180px; bottom: -220px; animation-delay: -8s;
  background: radial-gradient(circle at 50% 50%, rgba(107, 147, 255, .3), transparent 68%);
}
.aurora .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 38%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 0%, transparent 72%);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 36px, 0) scale(1.08); }
}

.brand {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 30px 36px 0;
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700; color: var(--accent-ink);
  background: linear-gradient(135deg, #6ff2b8, #2bbf82 60%, #1e9c6b);
  box-shadow: 0 6px 18px -6px rgba(61, 220, 151, .55), inset 0 1px 0 rgba(255,255,255,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.brand-text i {
  font-style: normal; font-size: 9.5px; letter-spacing: .22em;
  color: var(--muted-2); margin-top: 3px;
}

.stage {
  position: relative; z-index: 1;
  flex: 1; display: grid; place-items: center;
  padding: 40px 20px 48px;
}

.card {
  width: min(460px, 100%);
  padding: 42px 40px 34px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.022) 55%, rgba(255,255,255,.012) 100%);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(255,255,255,.02),
    inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  animation: enter .6s cubic-bezier(.16,1,.3,1) both;
}
.card::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61,220,151,.35), transparent);
  opacity: .8;
}
@keyframes enter {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(61,220,151,.12);
}

h1 {
  margin: 0 0 10px;
  font-size: 30px; font-weight: 650; letter-spacing: -.025em; line-height: 1.15;
}
.sub {
  margin: 0 0 26px;
  font-size: 13.5px; line-height: 1.7; color: var(--muted); max-width: 34em;
}

.field {
  display: flex; align-items: center; gap: 6px;
  padding: 6px;
  border-radius: 15px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.035);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field:focus-within {
  border-color: rgba(61,220,151,.55);
  box-shadow: 0 0 0 4px rgba(61,220,151,.1);
  background: rgba(255,255,255,.05);
}
.field input {
  flex: 1; min-width: 0;
  height: 48px; padding: 0 14px;
  border: 0; outline: 0; background: transparent;
  color: var(--text);
  font-size: 16px; letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
}
.field input::placeholder { color: var(--muted-2); letter-spacing: .06em; font-size: 14px; }
.field button {
  height: 48px; padding: 0 24px; border: 0; border-radius: 11px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--accent-ink);
  background: linear-gradient(180deg, #5cecb0, #30ca8b);
  box-shadow: 0 8px 22px -10px rgba(61,220,151,.65), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.field button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.field button:active { transform: translateY(0); }
.field button:disabled { opacity: .55; cursor: default; transform: none; }

.msg {
  margin-top: 14px; min-height: 18px;
  font-size: 13px; color: var(--danger); line-height: 1.5;
  display: flex; align-items: center; gap: 7px;
}
.msg::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--danger); opacity: 0; transition: opacity .15s;
  flex: 0 0 auto;
}
.msg.show::before { opacity: 1; }

.fineprint {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted-2); letter-spacing: .02em;
}
.sep { width: 1px; height: 10px; background: var(--line-strong); }

/* success state */
#step-file { animation: enter .45s cubic-bezier(.16,1,.3,1) both; }
.fileline { display: flex; gap: 16px; align-items: center; margin: 6px 0 26px; }
.ficon {
  width: 54px; height: 54px; flex: 0 0 auto; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: #cfe6ff;
  background: linear-gradient(150deg, rgba(107,147,255,.35), rgba(107,147,255,.08));
  border: 1px solid rgba(107,147,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.fmeta { min-width: 0; }
.fname {
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px;
}
.fsub { margin-top: 6px; display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.dl-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; border-radius: 13px;
  font-size: 15px; font-weight: 600; color: var(--accent-ink);
  background: linear-gradient(180deg, #5cecb0, #30ca8b);
  box-shadow: 0 14px 34px -14px rgba(61,220,151,.7), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .15s ease, filter .15s ease;
}
.dl-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.dl-btn svg { width: 17px; height: 17px; opacity: .85; }
.hint { margin: 14px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.ghost {
  margin: 18px auto 0; display: block;
  background: none; border: 0; cursor: pointer;
  font-size: 12px; color: var(--muted-2);
  border-bottom: 1px solid transparent; padding: 2px 0;
  transition: color .15s ease, border-color .15s ease;
}
.ghost:hover { color: var(--muted); border-color: var(--line-strong); }

.foot {
  position: relative; z-index: 1;
  padding: 0 20px 26px;
  text-align: center;
  font-size: 10px; letter-spacing: .24em; color: var(--muted-2);
  text-transform: uppercase;
}

.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

@media (max-width: 560px) {
  .brand { padding: 22px 20px 0; }
  .stage { padding: 24px 14px 32px; }
  .card { padding: 30px 22px 26px; border-radius: 20px; }
  h1 { font-size: 25px; }
  .field { flex-direction: column; align-items: stretch; padding: 7px; }
  .field input { height: 46px; text-align: center; }
  .field button { height: 46px; }
  .fname { max-width: 200px; }
}
