/* ==========================================================================
   苍匣 CangXia · 软件下载页
   沿用首页的墨蓝 / 蜜金 / 电蓝三族色，只给下载页补版式。
   ========================================================================== */

.download-page {
  background:
    radial-gradient(980px 520px at 82% -8%, rgba(47, 107, 255, 0.10), transparent 62%),
    radial-gradient(720px 420px at 8% 18%, rgba(255, 184, 107, 0.12), transparent 66%),
    #fbfdff;
}

.download-page .site-header {
  background: rgba(255, 255, 255, 0.82);
}

.download-page .site-nav a.is-active {
  color: var(--blue-dark);
}
.download-page .site-nav a.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.download-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.download-back:hover {
  border-color: var(--line-strong);
  color: var(--blue-dark);
  transform: translateX(2px);
}

.download-main {
  padding: 62px 0 0;
}

/* Hero ------------------------------------------------------------------ */
.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 64px;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 82px;
}

.download-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.download-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(47, 107, 255, 0.12);
}

.download-hero h1 {
  margin-top: 14px;
  font-size: clamp(44px, 6.2vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.download-lede {
  max-width: 640px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.8;
}

.download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.download-badges span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 650;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.download-btn:hover { transform: translateY(-2px); }
.download-btn:active { transform: translateY(0); }

.download-btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 14px 30px rgba(47, 107, 255, 0.26);
  color: #ffffff;
}
.download-btn--primary span {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.36);
  font-size: 12px;
  font-weight: 650;
  opacity: 0.9;
}
.download-btn--primary:hover {
  box-shadow: 0 18px 36px rgba(47, 107, 255, 0.32);
}

.download-btn--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}
.download-btn--ghost:hover {
  border-color: rgba(47, 107, 255, 0.34);
  background: #ffffff;
  color: var(--blue-dark);
}

.download-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
}

.download-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(150deg, #212939 0%, #141a26 58%, #0e131c 100%);
  box-shadow: 0 30px 70px rgba(20, 26, 38, 0.24);
  color: #ffffff;
}
.download-card::after {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 107, 0.26), transparent 68%);
  content: "";
  pointer-events: none;
}

.download-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.download-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 212, 107, 0.22), rgba(47, 107, 255, 0.22));
  color: #ffe6a6;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.download-card-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.download-card-name strong { font-size: 17px; }
.download-card-name span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.download-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
}
.download-facts div {
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.035);
}
.download-facts dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}
.download-facts dd {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.download-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 13px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.download-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}
.download-card-foot {
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11.5px;
  line-height: 1.65;
}

/* Sections -------------------------------------------------------------- */
.download-section {
  padding-top: 58px;
  padding-bottom: 58px;
  border-top: 1px solid rgba(213, 222, 236, 0.7);
}

.download-section-head {
  max-width: 720px;
}
.download-section-head h2,
.download-columns h2 {
  margin-top: 8px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
}
.download-section-head > p:last-child {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.download-feature {
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.download-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 107, 255, 0.22);
  box-shadow: 0 18px 36px rgba(20, 26, 38, 0.07);
}
.download-feature-no {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.download-feature h3 {
  margin-top: 30px;
  font-size: 17px;
}
.download-feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.download-feature code,
.download-steps code,
.download-file code,
.download-msix code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(47, 107, 255, 0.07);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Pro ------------------------------------------------------------------- */
.download-pro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 34px;
  padding: 38px;
  border-radius: 26px;
  background:
    radial-gradient(520px 280px at 88% 10%, rgba(255, 212, 107, 0.18), transparent 68%),
    linear-gradient(145deg, #202838, #121822);
  color: #ffffff;
}
.download-pro .download-kicker { color: #ffd46b; }
.download-pro h2 {
  margin-top: 10px;
  font-size: clamp(32px, 4vw, 48px);
}
.download-pro-lede {
  max-width: 620px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
}
.download-pro-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.download-pro-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
}
.download-pro-list li > span {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 212, 107, 0.16);
  color: #ffd46b;
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}

.download-price {
  align-self: start;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}
.download-price-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}
.download-price-value {
  display: block;
  margin-top: 6px;
  color: #ffd46b;
  font-size: 62px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.download-price-value span {
  margin-right: 4px;
  font-size: 24px;
  vertical-align: 10px;
}
.download-price-note {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}
.download-price p {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.52);
  font-size: 11.5px;
  line-height: 1.7;
}
.download-price a { color: #ffd46b; text-decoration: underline; text-underline-offset: 3px; }

/* Files / install ------------------------------------------------------- */
.download-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  margin-top: 30px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(20, 26, 38, 0.05);
}
.download-file-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.download-file-head h3 {
  font-size: 19px;
}
.download-file-badge {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(47, 107, 255, 0.10);
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.download-file-version {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}
.download-file-main > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.download-file-meta {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
}
.download-file-meta div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.download-file-meta dt {
  color: var(--muted-2);
  font-size: 11px;
}
.download-file-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  word-break: break-all;
}
.download-hash {
  font-size: 10.5px !important;
  line-height: 1.6;
}
.download-file-action { align-self: center; }

.download-msix {
  margin-top: 14px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}
.download-msix summary {
  padding: 18px 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.download-msix-body {
  padding: 0 0 22px;
}
.download-msix-body > p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}
.download-msix-body .download-btn { margin-top: 18px; }

.download-checksum-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}
.download-checksum-note code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(20, 26, 38, 0.05);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.download-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}
.download-steps {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: download-step;
}
.download-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0 12px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  counter-increment: download-step;
}
.download-steps li::before {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #ffffff;
  color: var(--blue-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  content: counter(download-step, decimal-leading-zero);
}
.download-steps strong {
  display: block;
  grid-column: 2;
  margin-bottom: 2px;
  font-size: 14px;
}
.download-steps span {
  display: block;
  grid-column: 2;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.download-requirements {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.download-requirements li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.download-requirements span { color: var(--muted-2); }
.download-requirements strong { font-weight: 650; }

/* FAQ / footer --------------------------------------------------------- */
.download-faq {
  display: grid;
  gap: 0;
  max-width: 900px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.download-faq details {
  border-bottom: 1px solid var(--line);
}
.download-faq summary {
  position: relative;
  padding: 18px 36px 18px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.download-faq summary::-webkit-details-marker { display: none; }
.download-faq summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1;
  content: "+";
  transform: translateY(-50%);
}
.download-faq details[open] summary::after { content: "−"; }
.download-faq p {
  padding: 0 36px 20px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.download-faq a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }

.download-footer {
  margin-top: 44px;
  padding: 34px 0 26px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}
.download-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.download-footer-brand strong {
  display: block;
  font-size: 16px;
}
.download-footer-brand p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.download-footer-brand a { color: var(--muted); }
.download-footer-brand a:hover { color: var(--blue-dark); }
.download-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.download-footer-links a:hover { color: var(--blue-dark); }
.download-footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {
  .download-hero {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
  }
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-pro { grid-template-columns: minmax(0, 1fr); }
  .download-price { max-width: 360px; }
}

@media (max-width: 760px) {
  .download-main { padding-top: 38px; }
  .download-back { display: none; }
  .download-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-bottom: 54px;
  }
  .download-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .download-lede { font-size: 16px; }
  .download-card { max-width: 460px; }
  .download-section { padding-top: 42px; padding-bottom: 42px; }
  .download-columns { grid-template-columns: minmax(0, 1fr); gap: 38px; }
}

@media (max-width: 620px) {
  .download-grid { grid-template-columns: 1fr; }
  .download-feature { padding: 20px 18px; }
  .download-feature h3 { margin-top: 18px; }
  .download-pro { padding: 24px 20px; border-radius: 20px; }
  .download-pro h2 { font-size: 34px; }
  .download-price { max-width: none; }
  .download-file { grid-template-columns: 1fr; padding: 20px; }
  .download-file-action .download-btn { width: 100%; }
  .download-file-meta div { grid-template-columns: 1fr; gap: 2px; }
  .download-msix { padding: 0 16px; }
  .download-actions .download-btn { width: 100%; }
  .download-footer-inner { flex-direction: column; }
  .download-footer-links { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .download-btn,
  .download-feature,
  .download-card-link,
  .download-back { transition: none; }
  .download-btn:hover,
  .download-feature:hover,
  .download-card-link:hover { transform: none; }
}

