/* ═══════════════════════════════════════════════════════════
   Astrion 官网下载页 — 复用 site.css token 体系
   原则同主页：无 glow、无圆角套娃、实体面板不透明、克制用色
   ═══════════════════════════════════════════════════════════ */

.dl-main {
  max-width: 880px;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 56px) 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── 标题区 ── */
.dl-hero { text-align: center; }

.dl-title {
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dl-sub {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--text-2);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 状态行（加载中/失败/未识别） ── */
.dl-status {
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
  min-height: 22px;
}

.dl-status--error { color: var(--del); }

/* ── 分区 ── */
.dl-section { display: flex; flex-direction: column; gap: 16px; }

.dl-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

/* ── 平台卡片 ── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.dl-card--primary {
  border-color: var(--line-strong);
  padding: 24px;
}

.dl-card-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--text-1);
}

.dl-card-icon svg { width: 34px; height: 34px; }

.dl-card-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dl-card-name {
  font-size: 16.5px;
  font-weight: 650;
  color: var(--text-1);
}

.dl-card-meta {
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.dl-card-action { flex: 0 0 auto; }

/* ── 自动更新说明行 ── */
.dl-autoupdate {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-3);
}

.dl-autoupdate svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }

/* ── 安装提示 ── */
.dl-notes {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.dl-note {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-note-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-1);
}

.dl-note-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
}

/* 命令复制块（视觉与 hero-clone 同族，独立类便于本页控制宽度） */
.dl-cmd {
  margin-top: 4px;
  align-self: flex-start;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  background: rgba(168, 180, 210, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-2);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dl-cmd:hover { border-color: var(--line-strong); background: rgba(168, 180, 210, 0.11); }

.dl-cmd code {
  font-size: 12.5px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-cmd-icon { position: relative; width: 15px; height: 15px; flex: 0 0 auto; }

.dl-cmd-icon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.18s ease;
}

.dl-cmd-icon .icon-check { opacity: 0; }
.dl-cmd.copied .icon-copy { opacity: 0; }
.dl-cmd.copied .icon-check { opacity: 1; color: var(--ok); }

/* ── 自己部署 ── */
.dl-selfhost { gap: 12px; }

.dl-selfhost-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* 复用 hero-clone 结构，本页内允许换行收缩 */
.dl-selfhost .hero-clone { max-width: 100%; }

.dl-selfhost .hero-clone code {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 移动端 ── */
@media (max-width: 640px) {
  .dl-main { padding-top: calc(var(--topbar-h) + 36px); gap: 32px; }
  .dl-card--primary { flex-direction: column; align-items: stretch; text-align: center; }
  .dl-card--primary .dl-card-icon { margin: 0 auto; }
  .dl-card--primary .dl-card-action .btn { width: 100%; }
}

/* ── 卡片内补充注释（如 Apple Silicon 限制）与未发布禁用按钮 ── */
.dl-card-note {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
}

.btn-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
