/* ============================================================
   授权下载中心 — 视觉系统
   方向：冷夜金属 + 全息箔。主角是那张卡，其余全部安静。
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #05070e;
  --ink-2: #080c16;
  --panel: #0c1220;
  --panel-2: #101829;
  --line: rgba(160, 180, 215, 0.12);
  --line-strong: rgba(170, 190, 225, 0.22);
  --txt: #e9eef9;
  --muted: #8b98b4;
  --mint: #35e8c4;
  --mint-soft: rgba(53, 232, 196, 0.14);
  --violet: #7c6cff;
  --amber: #ffb43d;
  --danger: #ff6b73;
  --foil-1: #f4f7ff;
  --foil-2: #c3cde0;

  --r-card: 26px;
  --r-btn: 999px;
  --r-item: 18px;

  --ease: cubic-bezier(0.22, 0.9, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);

  --font-cjk: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-num: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font-family: var(--font-cjk);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 背景 ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #0d1626 0%, var(--ink) 55%, #03050a 100%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.a1 {
  width: 46vw; height: 46vw; left: -8vw; top: -12vw;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.42), transparent 62%);
  animation: drift1 34s ease-in-out infinite;
}
.a2 {
  width: 40vw; height: 40vw; right: -10vw; top: 6vh;
  background: radial-gradient(circle, rgba(53, 232, 196, 0.3), transparent 62%);
  animation: drift2 41s ease-in-out infinite;
}
.a3 {
  width: 52vw; height: 34vw; left: 20vw; bottom: -18vw;
  background: radial-gradient(circle, rgba(64, 110, 255, 0.26), transparent 64%);
  animation: drift3 47s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
}
@keyframes drift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.06); }
  50% { transform: translate3d(-5vw, 6vh, 0) scale(0.94); }
}
@keyframes drift3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-7vw, -5vh, 0) scale(1.1); }
}

.mesh {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(to right, rgba(150, 175, 220, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 175, 220, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 34%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 34%, #000 20%, transparent 78%);
}

#dust { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 顶栏 ---------- */

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background:
    linear-gradient(145deg, var(--mint), #1e9f9a 60%, #0f6d7a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset,
              0 6px 18px rgba(53, 232, 196, 0.28);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 3px;
  background: rgba(5, 7, 14, 0.65);
}

.brand-name { font-size: 0.95rem; }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.ghost-btn:hover {
  color: var(--txt);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
.ghost-btn:active { transform: translateY(0) scale(0.98); }
.ghost-btn svg { opacity: 0.7; }

/* ---------- 布局 ---------- */

.wrap {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px) 24px 40px;
}

.hero { text-align: center; padding: clamp(8px, 2.5vw, 26px) 0 clamp(20px, 3vw, 30px); }

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--mint);
  background: var(--mint-soft);
  border: 1px solid rgba(53, 232, 196, 0.22);
  border-radius: var(--r-btn);
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 6.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 12%, #b9c6de 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 auto;
  max-width: 24em;
  color: var(--muted);
  font-size: clamp(0.94rem, 2.2vw, 1.03rem);
  line-height: 1.75;
  text-wrap: balance;
}

/* ---------- 应用切换 ---------- */

.apps {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.app-chip {
  padding: 8px 14px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.86rem;
  cursor: pointer;
  transition: 0.24s var(--ease);
}
.app-chip[aria-pressed="true"] {
  color: var(--ink);
  background: linear-gradient(180deg, #f2f7ff, #c9d5e8);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(190, 210, 255, 0.16);
}

/* ---------- 卡片舞台 ---------- */

.stage {
  perspective: 1400px;
  display: flex;
  justify-content: center;
  margin: 6px 0 clamp(26px, 5vw, 46px);
}

.card3d {
  position: relative;
  width: min(510px, 100%);
  aspect-ratio: 1.66;
  transform-style: preserve-3d;
  transition: transform 0.95s var(--ease);
  will-change: transform;
}

.card3d.is-ok { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 4vw, 26px);
  transform: translateZ(0);
  background:
    linear-gradient(158deg, #1b2436 0%, #0e1524 38%, #162031 62%, #0a0f1a 100%);
  border: 1px solid rgba(180, 200, 235, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 34px 70px -30px rgba(0, 0, 0, 0.95),
    0 0 60px -20px rgba(53, 232, 196, 0.14);
}

/* 金属细纹 */
.card-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    92deg,
    rgba(255, 255, 255, 0.028) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.7;
  pointer-events: none;
}

/* 全息箔：只在卡的右侧偏上一小块，像真箔在反光 */
.holo {
  position: absolute;
  inset: -18%;
  pointer-events: none;
  opacity: 0.3;
  background: conic-gradient(
    from calc(var(--ang, 0deg) * 1),
    rgba(124, 108, 255, 0.6),
    rgba(53, 232, 196, 0.55),
    rgba(255, 196, 120, 0.25),
    rgba(124, 108, 255, 0.6)
  );
  filter: blur(58px) saturate(1.15);
  transform: translate3d(calc(var(--mx, 0) * 0.6px), calc(var(--my, 0) * 0.5px), 0);
  -webkit-mask-image: radial-gradient(46% 62% at 74% 26%, #000 0%, transparent 76%);
  mask-image: radial-gradient(46% 62% at 74% 26%, #000 0%, transparent 76%);
  transition: opacity 0.5s;
  mix-blend-mode: screen;
}

/* 磨砂颗粒，给金属一点质感 */
.card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

.sheen {
  position: absolute;
  top: -40%;
  left: -60%;
  width: 42%;
  height: 180%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.06) 35%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.05) 65%,
    transparent
  );
  transform: rotate(8deg);
  animation: sheen 7.5s var(--ease) infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 62% { left: -60%; opacity: 0; }
  70% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

.card-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-tag {
  font-size: 0.79rem;
  color: #cfdcf2;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: var(--r-btn);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.lamp-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 180, 61, 0.16);
}
.lamp[data-state="idle"] .lamp-dot { animation: pulse 2.6s ease-in-out infinite; }
.lamp[data-state="busy"] .lamp-dot { background: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.2); animation: pulse 0.9s linear infinite; }
.lamp[data-state="ok"] .lamp-dot { background: var(--mint); box-shadow: 0 0 0 3px rgba(53, 232, 196, 0.24); }
.lamp[data-state="bad"] .lamp-dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 107, 115, 0.22); }
.lamp[data-state="ok"] .lamp-text { color: var(--mint); }
.lamp[data-state="bad"] .lamp-text { color: var(--danger); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.86); }
}

.card-mid {
  position: relative;
  margin-top: auto;
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #7e8ca8;
  margin-bottom: 4px;
}

.card-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(190, 210, 240, 0.22);
  background: transparent;
  color: var(--foil-1);
  font-family: var(--font-code);
  font-size: clamp(1.12rem, 4.4vw, 1.5rem);
  letter-spacing: 0.1em;
  padding: 6px 2px 10px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  caret-color: var(--mint);
}
.card-input::placeholder { color: rgba(150, 168, 196, 0.32); letter-spacing: 0.08em; }
.card-input:focus {
  border-bottom-color: var(--mint);
  box-shadow: 0 12px 22px -18px var(--mint);
}

.pips {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  height: 3px;
}
.pip {
  flex: 1;
  border-radius: 2px;
  background: rgba(200, 216, 245, 0.14);
  transition: background 0.22s, transform 0.22s var(--ease-spring), box-shadow 0.22s;
}
.pip.on {
  background: var(--mint);
  box-shadow: 0 0 10px rgba(53, 232, 196, 0.55);
  transform: scaleY(1.6);
}

.card-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--r-btn);
  cursor: pointer;
  color: #04120f;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #6cf3d8, var(--mint) 55%, #14b89c);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 12px 28px -12px rgba(53, 232, 196, 0.75);
  transition: transform 0.2s var(--ease), box-shadow 0.3s, filter 0.3s;
  overflow: hidden;
  isolation: isolate;
}
.cta:hover { transform: translateY(-1.5px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 34px -14px rgba(53,232,196,.85); }
.cta:active { transform: translateY(0) scale(0.985); }
.cta[disabled] { cursor: progress; filter: saturate(0.55) brightness(0.96); }

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 60px at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, 0.55), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.cta:hover::after { opacity: 1; }

.cta-progress {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-100%);
  opacity: 0;
}
.cta.is-busy .cta-progress { opacity: 1; animation: sweep 1.05s linear infinite; }
@keyframes sweep { to { transform: translateX(100%); } }

.hint {
  margin: 0;
  font-size: 0.78rem;
  color: #7b89a6;
  max-width: 22em;
  line-height: 1.5;
}
.hint.is-error { color: var(--danger); }

/* ---------- 卡片背面 ---------- */

.card-back {
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(158deg, #123028 0%, #0b1a1c 40%, #0d2822 70%, #081114 100%);
  border-color: rgba(53, 232, 196, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 34px 70px -30px rgba(0, 0, 0, 0.95),
    0 0 70px -18px rgba(53, 232, 196, 0.35);
}

.back-mark {
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--mint);
  background: rgba(53, 232, 196, 0.1);
  border: 1px solid rgba(53, 232, 196, 0.35);
  margin-bottom: 10px;
  animation: pop 0.7s var(--ease-spring) both;
}
@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.back-title {
  margin: 0 0 12px;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: var(--mint);
}

.facts {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 16px;
  margin: 0 0 12px;
  font-size: 0.84rem;
  text-align: left;
}
.facts dt { color: #7fa79f; }
.facts dd { margin: 0; color: #dff7f1; font-family: var(--font-num); letter-spacing: 0.02em; }

.link-btn {
  border: 0;
  background: none;
  color: #8fb9b1;
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 4px;
}
.link-btn:hover { color: var(--mint); }

/* ---------- 文件列表 ---------- */

.files { margin-bottom: clamp(30px, 6vw, 54px); }

.files-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.files-head h2 { margin: 0; font-size: 1.02rem; font-weight: 600; letter-spacing: 0.01em; }
.files-meta { font-size: 0.78rem; color: var(--muted); }

.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.file-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-item);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.28s, transform 0.28s var(--ease), background 0.28s;
  animation: rowIn 0.62s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.file-row:hover {
  border-color: rgba(53, 232, 196, 0.34);
  background: linear-gradient(180deg, rgba(53, 232, 196, 0.07), rgba(255, 255, 255, 0.012));
  transform: translateY(-2px);
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.file-icon {
  position: relative;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--mint);
  background: rgba(53, 232, 196, 0.08);
  border: 1px solid rgba(53, 232, 196, 0.2);
  font-family: var(--font-num);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  overflow: hidden;
}
.file-icon .ring {
  position: absolute;
  inset: 2px;
  border-radius: 11px;
  background: conic-gradient(var(--mint) calc(var(--p, 0) * 1%), transparent 0);
  opacity: 0;
  transition: opacity 0.3s;
  mask: radial-gradient(closest-side, transparent 74%, #000 76%);
  -webkit-mask: radial-gradient(closest-side, transparent 74%, #000 76%);
}
.file-row.is-busy .file-icon .ring { opacity: 1; }
.file-row.is-busy .file-icon span { opacity: 0.25; }

.file-body { min-width: 0; }
.file-title {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
  font-size: 0.76rem;
  color: var(--muted);
}
.chip {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-num);
  letter-spacing: 0.02em;
}
.chip.ver { color: var(--mint); border-color: rgba(53, 232, 196, 0.28); background: rgba(53, 232, 196, 0.08); }

.dl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--r-btn);
  border: 1px solid rgba(53, 232, 196, 0.32);
  background: rgba(53, 232, 196, 0.1);
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.24s var(--ease);
}
.dl-btn:hover { background: rgba(53, 232, 196, 0.18); transform: translateY(-1px); }
.dl-btn[disabled] { cursor: progress; opacity: 0.85; transform: none; }
.dl-btn.is-done { color: #bfe9df; border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); }

/* ---------- 三步 ---------- */

.steps { border-top: 1px solid var(--line); padding-top: clamp(20px, 4vw, 32px); }
.steps ol {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 3vw, 28px);
}
.steps li { position: relative; }
.step-n {
  display: block;
  font-family: var(--font-num);
  font-size: 0.78rem;
  color: var(--mint);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  opacity: 0.85;
}
.steps h3 { margin: 0 0 6px; font-size: 0.95rem; font-weight: 600; }
.steps p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.7; }

/* ---------- 页脚 ---------- */

.foot {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 34px;
  color: #5f6b85;
  font-size: 0.78rem;
}
.foot p { margin: 0; }

/* ---------- 抽屉 ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: rgba(3, 5, 10, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s;
}
.scrim.show { opacity: 1; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 9;
  width: min(420px, 92vw);
  background: linear-gradient(180deg, #0b111d, #070b13);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 70px -30px rgba(0, 0, 0, 0.9);
  transform: translateX(102%);
  transition: transform 0.46s var(--ease);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 1rem; font-weight: 600; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: 0.24s;
}
.icon-btn:hover { color: var(--txt); border-color: var(--line-strong); }

.drawer-body { padding: 18px 22px 40px; overflow-y: auto; font-size: 0.88rem; color: #b9c5da; }
.drawer-body h3 {
  font-size: 0.86rem;
  color: var(--mint);
  margin: 20px 0 8px;
  letter-spacing: 0.02em;
}
.drawer-body h3:first-child { margin-top: 0; }
.drawer-body p { margin: 0 0 10px; line-height: 1.8; color: var(--muted); }
.drawer-body ul { margin: 0 0 12px; padding-left: 18px; color: var(--muted); line-height: 1.9; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 20;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 18px;
  border-radius: var(--r-btn);
  background: rgba(14, 20, 33, 0.94);
  border: 1px solid var(--line-strong);
  color: var(--txt);
  font-size: 0.86rem;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  transition: opacity 0.3s, transform 0.36s var(--ease-spring);
  max-width: min(90vw, 460px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255, 107, 115, 0.45); color: #ffd9db; }
.toast.ok { border-color: rgba(53, 232, 196, 0.45); color: #d3fff5; }

/* ---------- 入场 ---------- */

.reveal { animation: rise 0.9s var(--ease) both; }
.hero { animation-delay: 0.05s; }
.stage { animation-delay: 0.16s; }
.steps { animation-delay: 0.3s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 620px) {
  .wrap { padding: 14px 16px 30px; }
  .card3d { aspect-ratio: 1.28; }
  .steps ol { grid-template-columns: 1fr; gap: 16px; }
  .steps li { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; padding-bottom: 0; }
  .card-foot { gap: 10px; }
  .cta { width: 100%; }
  .hint { max-width: none; text-align: center; }
  .file-row { grid-template-columns: 40px 1fr; grid-template-areas: "icon body" "act act"; }
  .file-icon { grid-area: icon; width: 40px; height: 40px; }
  .file-body { grid-area: body; }
  .dl-btn { grid-area: act; width: 100%; justify-content: center; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card3d { transition: none; }
  .holo, .sheen { display: none; }
}
