/* =====================================================================
   /download/ 与 /download/error/ 页面（在 site.css 之后加载）
   ===================================================================== */

.dl {
  min-height: 100vh; min-height: 100svh; color: var(--on-court); overflow-x: hidden;
  background:
    radial-gradient(90% 70% at 50% 75%, #2E6B50 0%, rgba(22, 59, 43, 0.92) 40%, #0A120E 82%),
    #0A120E;
}
.dl__court { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.dl__shade { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(8, 14, 11, 0.85) 0%, rgba(8, 14, 11, 0.45) 55%, rgba(8, 14, 11, 0.2) 100%); }
.dl .grain { position: fixed; }
.dl__nav { position: relative; z-index: 3; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.dl__main { position: relative; z-index: 3; display: grid; place-items: center; min-height: calc(100vh - 72px - 64px); min-height: calc(100svh - 72px - 64px); padding: 24px 0 48px; }

.dl-card {
  width: 100%; max-width: 520px; padding: 36px 32px 32px; border-radius: 32px; text-align: center;
  background: rgba(12, 20, 16, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  animation: cardIn 0.9s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(0.98); } }
.dl-card__logo { width: 96px; height: 96px; margin: 0 auto; border-radius: 24px; animation: breathe 4s ease-in-out infinite; }
.dl-card h1 { margin-top: 22px; font-size: clamp(30px, 7vw, 40px); line-height: 1.2; font-weight: 900; color: #fff; }
.dl-card__sub { margin-top: 10px; font-size: 15px; line-height: 1.7; color: rgba(244, 248, 242, 0.72); }
.dl-card__ver { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(215, 245, 62, 0.14); color: var(--ball); }
.dl-actions { display: grid; gap: 12px; margin-top: 28px; }
.dl-actions .btn { width: 100%; }
.dl-actions [hidden] { display: none; }
.dl-hint { margin-top: 14px; font-size: 13px; line-height: 1.6; color: rgba(244, 248, 242, 0.55); }

.dl-steps { display: grid; gap: 10px; margin-top: 28px; text-align: left; }
.dl-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.dl-steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ball); color: var(--on-ball); font-size: 15px; font-weight: 900; }
.dl-steps strong { display: block; font-size: 15px; color: #fff; }
.dl-steps span { display: block; font-size: 13px; color: rgba(244, 248, 242, 0.62); }

.dl-qr { display: none; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.dl-qr__code { position: relative; width: 148px; height: 148px; margin: 0 auto; padding: 12px; border-radius: 20px; background: #fff; }
.dl-qr__code img:first-child { width: 100%; height: 100%; }
.dl-qr__code .qr__logo { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.dl-qr p { margin-top: 12px; font-size: 13px; color: rgba(244, 248, 242, 0.62); }
.is-desktop .dl-qr { display: block; }

.dl-channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.dl-channels li { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: rgba(244, 248, 242, 0.78); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.dl-channels li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--ball); vertical-align: 1px; }

.dl__foot { position: relative; z-index: 3; height: 64px; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 12px; color: rgba(244, 248, 242, 0.4); }
.dl__foot a:hover { color: var(--ball); }

/* 微信内置浏览器：右上角引导 */
.wx-guide { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(5, 10, 8, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.is-wechat .wx-guide { display: block; }
.wx-guide.is-closed { display: none; }
.wx-guide__arrow { position: absolute; top: 8px; right: 22px; width: 120px; height: 120px; color: var(--ball); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -6px); } }
.wx-guide__box { position: absolute; top: 132px; left: 16px; right: 16px; text-align: center; }
.wx-guide__box h2 { font-size: 26px; line-height: 1.35; font-weight: 900; color: #fff; }
.wx-guide__box h2 em { font-style: normal; color: var(--ball); }
.wx-guide__box p { margin-top: 12px; font-size: 15px; color: rgba(244, 248, 242, 0.75); }
.wx-guide__dots { display: inline-flex; gap: 4px; vertical-align: middle; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.wx-guide__dots i { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.wx-guide__close { margin-top: 28px; }

/* 异常页 */
.dl-card--error h1 { font-size: clamp(28px, 6vw, 36px); }
.dl-status { display: grid; gap: 8px; margin-top: 24px; text-align: left; }
.dl-status div { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); font-size: 14px; }
.dl-status strong { font-size: 13px; color: var(--ball); }

@media (max-width: 720px) {
  .dl-card { padding: 28px 20px 24px; border-radius: 28px; }
  .dl-card__logo { width: 80px; height: 80px; }
}
