/* ===================== 下载页（深色科技风） ===================== */

.dl-page { position: relative; overflow-x: hidden; }

/* ---- 背景装饰：光晕 + 网格 ---- */
.bg-deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% -12%, rgba(59, 130, 246, .16), transparent 62%),
    var(--bg);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.glow-a { width: 520px; height: 520px; top: -220px; left: -140px; background: radial-gradient(circle, rgba(59, 130, 246, .35), transparent 70%); }
.glow-b { width: 460px; height: 460px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(139, 92, 246, .3), transparent 70%); }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 30%, transparent 75%);
}

/* ---- 顶栏 ---- */
.dl-page .topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(15, 20, 32, .72);
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 3px 12px rgba(99, 102, 241, .4);
}
.tag {
  font-size: 11px;
  font-weight: 500;
  background: rgba(59, 130, 246, .14);
  color: #7cb0ff;
  border: 1px solid rgba(59, 130, 246, .3);
  padding: 2px 9px;
  border-radius: 20px;
  margin-left: 2px;
}
.tech-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all .18s;
}
.tech-link:hover { color: #fff; border-color: rgba(59, 130, 246, .55); background: rgba(59, 130, 246, .08); }

/* ---- Hero ---- */
.dl-wrap { width: min(880px, 94vw); margin: 0 auto; padding: 46px 0 60px; }
.hero { text-align: center; margin-bottom: 34px; }
.hero-badge {
  display: inline-block;
  font-size: 12.5px;
  color: #9db4d6;
  background: rgba(148, 163, 184, .08);
  border: 1px solid rgba(148, 163, 184, .18);
  padding: 6px 16px;
  border-radius: 24px;
  margin-bottom: 18px;
  letter-spacing: .5px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: var(--text);
}
.hero h1 .grad {
  background: linear-gradient(120deg, #60a5fa 10%, #a78bfa 60%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--muted); line-height: 2; font-size: 15px; }
.hero-sub b { color: #fbbf24; font-weight: 600; }

/* ---- 推荐下载卡 ---- */
.dl-card {
  position: relative;
  background: linear-gradient(180deg, rgba(35, 45, 66, .55), rgba(26, 34, 51, .85));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.dl-card:hover { transform: translateY(-3px); border-color: rgba(59, 130, 246, .45); box-shadow: 0 14px 38px rgba(2, 8, 20, .5); }

.recommend {
  max-width: 560px;
  margin: 0 auto 26px;
  padding: 24px 26px;
  border: 1px solid rgba(59, 130, 246, .5);
  background:
    linear-gradient(180deg, rgba(59, 130, 246, .12), rgba(26, 34, 51, .88)),
    var(--card);
  box-shadow: 0 0 46px rgba(59, 130, 246, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.dl-head { display: flex; align-items: center; gap: 16px; }
.dl-head-text { flex: 1; }
.dl-icon { font-size: 40px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.dl-title { font-size: 18px; font-weight: 650; }
.recommend .dl-title { font-size: 20px; }
.dl-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.rec-chip {
  font-size: 11.5px;
  color: #86efac;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .35);
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
}
.btn-primary-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  font-size: 16.5px;
  font-weight: 650;
  color: #fff;
  text-decoration: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #3b82f6, #7c5cf6);
  box-shadow: 0 8px 24px rgba(99, 102, 241, .42), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn-primary-big:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 30px rgba(99, 102, 241, .55), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-primary-big:active { transform: translateY(0); }

/* ---- 平台卡片 ---- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.dl-grid .dl-card { display: flex; flex-direction: column; text-align: left; }
.dl-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 14px;
}
.dl-icon-badge.windows { color: #7cb0ff; background: rgba(59, 130, 246, .14); border: 1px solid rgba(59, 130, 246, .3); }
.dl-icon-badge.mac { color: #c9d4e8; background: rgba(148, 163, 184, .13); border: 1px solid rgba(148, 163, 184, .28); }
.dl-icon-badge.linux { color: #fbbf24; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .3); }
.dl-sub { margin: 4px 0 18px; }
.card-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  padding: 11px 14px;
  font-size: 14px;
  border-radius: 11px;
}
.btn-meta { color: var(--muted); font-size: 12px; }
.card-btn:hover .btn-meta { color: #dbe7ff; }
.disabled-btn { display: flex; align-items: center; justify-content: center; gap: 7px; opacity: .55; }
.btn-row { display: flex; gap: 8px; margin-top: auto; }
.btn-row .card-btn { flex: 1; padding-left: 8px; padding-right: 8px; font-size: 13px; }
.btn-row .btn-meta { display: block; }

.ribbon {
  display: none;
  position: absolute;
  top: -11px;
  right: 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #7c5cf6);
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, .45);
}
.dl-card.highlight { border-color: rgba(59, 130, 246, .55); box-shadow: 0 0 0 1px rgba(59, 130, 246, .35), 0 12px 34px rgba(2, 8, 20, .45); }
.dl-card.highlight .ribbon { display: inline-block; }

/* ---- 特色三卡 ---- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.feature {
  text-align: center;
  background: rgba(26, 34, 51, .5);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px 16px;
}
.feature-icon { font-size: 24px; margin-bottom: 8px; }
.dl-icon svg, .feature-icon svg { display: block; }
.fi-shield { color: #60a5fa; }
.fi-bolt { color: #fbbf24; }
.fi-box { color: #a78bfa; }
.feature-title { font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.feature-sub { color: var(--muted); font-size: 12.5px; line-height: 1.7; }

/* ---- 步骤 ---- */
.steps {
  background: linear-gradient(180deg, rgba(35, 45, 66, .45), rgba(26, 34, 51, .8));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 28px 22px;
}
.steps h2 { font-size: 18px; margin-bottom: 18px; }
.step-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #7c5cf6);
  box-shadow: 0 4px 12px rgba(99, 102, 241, .4);
}
.step b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.step small { color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.safe-tip {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

/* ---- 页脚 ---- */
.dl-page .footer a { color: #7cb0ff; text-decoration: none; }
.dl-page .footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .dl-wrap { padding-top: 30px; }
  .pc-br { display: none; }
  .recommend .dl-head { flex-wrap: wrap; }
  .rec-chip { order: -1; width: max-content; }
  .dl-head { gap: 12px; }
}
