/* 下载与授权页专用样式 */

/* Hero：居中 */
.dl-hero { text-align: center; }
.dl-hero .breadcrumb { justify-content: center; }
.dl-hero .lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.dl-facts {
  list-style: none; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  margin: 0 0 var(--sp-8); padding: 8px 18px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.dl-facts li { display: inline-flex; align-items: center; gap: 8px; }
.dl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.dl-hero .hero-note strong { color: var(--text-2); font-weight: 600; }

/* 下载卡片 */
.dl-grid { align-items: stretch; }
.dl-card { display: flex; flex-direction: column; padding: var(--sp-8) var(--sp-6) var(--sp-6); }
.dl-card h3 { font-size: var(--fs-xl); }
.dl-card > p { color: var(--text-2); min-height: 3.4em; }
.dl-featured { border: 2px solid var(--primary); background: linear-gradient(180deg, var(--primary-soft) 0, var(--surface) 160px); box-shadow: 0 20px 48px rgba(52, 211, 153, .14); }
.dl-flag {
  position: absolute; top: -13px; left: 24px;
  padding: 3px 12px; border-radius: var(--r-full);
  background: var(--grad-brand); color: #06281c; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
}
.dl-meta { margin: var(--sp-5) 0 var(--sp-6); padding-top: var(--sp-4); border-top: 1px dashed var(--border-strong); display: grid; gap: 8px; }
.dl-meta div { display: flex; justify-content: space-between; gap: var(--sp-4); font-size: 14px; }
.dl-meta dt { color: var(--text-3); white-space: nowrap; }
.dl-meta dd { margin: 0; color: var(--text); font-weight: 500; text-align: right; }
.dl-btn { margin-top: auto; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-secondary[disabled]:hover { border-color: var(--border-strong); color: var(--text); }
.btn-primary[disabled]:hover { background: var(--primary); }

/* 快速安装 */
.dl-install { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--sp-12); align-items: start; }
.dl-install-text h2 { font-size: clamp(26px, 2.8vw, 34px); }
.dl-install-text .lead { font-size: var(--fs-md); color: var(--text-2); }
.dl-steps { list-style: none; counter-reset: dls; display: grid; gap: var(--sp-5); margin-top: var(--sp-6); }
.dl-steps li { position: relative; counter-increment: dls; padding-left: 46px; }
.dl-steps li::before {
  content: counter(dls); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; background: var(--grad-brand); color: #06281c;
}
.dl-steps strong { display: block; color: var(--text); font-size: 16px; line-height: 1.6; }
.dl-steps span { display: block; color: var(--text-2); font-size: 14.5px; margin-top: 2px; }
.dl-install-code { min-width: 0; }
.dl-install-code .code-tabs pre { font-size: 13px; }
.dl-code-note { text-align: left; }

/* 系统要求 */
.dl-req { max-width: 960px; margin: 0 auto; }
.dl-req .table { min-width: 600px; }
.dl-req tbody th { text-align: left; font-weight: 600; color: var(--text); white-space: nowrap; padding: 14px 16px; border-bottom: 1px solid var(--border); width: 22%; }
.dl-req tbody tr:last-child th { border-bottom: 0; }
.dl-req tbody tr:hover th { background: var(--bg-soft); }
.dl-callout {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  max-width: 960px; margin: var(--sp-6) auto 0; padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
}
.dl-callout .icon-box { flex: none; margin: 0; width: 42px; height: 42px; }
.dl-callout strong { color: var(--text); }
.dl-callout p { margin: 4px 0 0; font-size: 15px; }
:root:not([data-theme="light"]) .icon-box.accent { color: var(--accent-400); }

/* 授权说明 */
.lic-grid { max-width: 960px; margin: 0 auto; }
.lic-card { display: flex; flex-direction: column; padding: var(--sp-8); }
.lic-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.lic-head h3 { margin: 0; font-size: var(--fs-xl); }
.lic-for { margin: var(--sp-2) 0 var(--sp-5) !important; color: var(--text-3); font-size: 15px; }
.lic-card .check-list { margin-bottom: var(--sp-8); }
.lic-card .btn { margin-top: auto; }
.lic-biz { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.lic-terms { text-align: center; font-size: 14px; color: var(--text-3); margin: var(--sp-6) 0 0; }

.lic-usage {
  max-width: 960px; margin: var(--sp-12) auto 0; padding: var(--sp-8);
  border-radius: var(--r-xl); background: var(--surface); border: 1px dashed var(--border-strong);
}
.lic-usage-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.lic-usage-head h3 { margin: 0; }
.lic-usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
.lic-usage-label { font-size: 14px; font-weight: 700; margin-bottom: var(--sp-3); display: flex; align-items: center; gap: 8px; }
.lic-usage-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lic-usage-label.is-biz { color: var(--warning); }
.lic-usage-label.is-free { color: var(--success); }
.lic-usage-list { list-style: none; display: grid; gap: 8px; }
.lic-usage-list li { position: relative; padding-left: 16px; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.lic-usage-list li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); }
.lic-usage-foot { margin: var(--sp-6) 0 0; padding-top: var(--sp-4); border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-3); }

@media (max-width: 1024px) {
  .dl-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; gap: var(--sp-8); }
  .dl-card > p { min-height: 0; }
  .dl-install { grid-template-columns: 1fr; gap: var(--sp-8); }
}
@media (max-width: 768px) {
  .dl-facts { border-radius: var(--r-lg); }
  .lic-card, .lic-usage { padding: var(--sp-6) var(--sp-5); }
  .lic-usage-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .dl-callout { padding: var(--sp-5) var(--sp-4); }
  .dl-install-code .code-tabs pre { font-size: 12.5px; padding: var(--sp-4); }
}

/* 系统要求表：窄屏改为卡片式 */
@media (max-width: 600px) {
  .dl-req .table, .dl-req tbody, .dl-req tr, .dl-req th, .dl-req td { display: block; min-width: 0; width: auto; }
  .dl-req thead { display: none; }
  .dl-req tbody tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .dl-req tbody tr:last-child { border-bottom: 0; }
  .dl-req tbody th, .dl-req tbody td { padding: 0; border: 0; white-space: normal; }
  .dl-req tbody th { margin-bottom: 4px; }
  .dl-req tbody td { display: flex; gap: 10px; font-size: 14px; line-height: 1.6; }
  .dl-req tbody td::before { content: attr(data-label); flex: none; min-width: 3em; color: var(--text-3); font-size: 12.5px; padding-top: 1px; }
  .dl-req tbody tr:hover th, .dl-req tbody tr:hover td { background: none; }
}
