:root {
  --ink: #111c27;
  --paper: #f5f4ef;
  --mint: #b6e3cb;
  --mint-deep: #2c6a4a;
  --muted: #58645f;
  --line: #d5dbd3;
  --soft: #e6eee8;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--mint); color: var(--ink); }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--mint-deep); outline-offset: 4px; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(245, 244, 239, .92); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 112px)); min-height: 76px; margin: 0 auto; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-size: 23px; font-weight: 750; letter-spacing: -.04em; line-height: 1.2; }
.brand b { font-weight: 450; }
.brand svg { width: 25px; height: 25px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--ink); text-decoration: underline; }

.download-page { width: min(980px, calc(100% - 112px)); margin: 0 auto; padding: 64px 0 72px; }
.download-hero { max-width: 660px; }
.eyebrow, .section-kicker { color: var(--mint-deep); font-size: 11px; font-weight: 750; letter-spacing: .11em; line-height: 1.4; text-transform: uppercase; }
.download-hero h1 { margin-top: 18px; font-size: clamp(40px, 6vw, 64px); font-weight: 750; letter-spacing: -.06em; line-height: 1.08; }
.intro { margin-top: 20px; color: var(--muted); font-size: 18px; line-height: 1.7; }

.download-section { margin-top: 42px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin-top: 8px; font-size: clamp(25px, 3vw, 34px); font-weight: 680; letter-spacing: -.045em; line-height: 1.2; }
.section-heading.compact { margin-bottom: 18px; }
.release-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.release-card { min-width: 0; padding: 24px; border: 1px solid var(--line); background: #faf9f4; }
.release-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.release-channel, .release-system { display: block; }
.release-channel { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.release-system { margin-top: 3px; color: var(--muted); font-size: 12px; }
.release-status { flex: none; color: var(--mint-deep); font-size: 11px; line-height: 1.45; text-align: right; }
.release-content { min-height: 162px; padding-top: 20px; color: var(--muted); }
.release-unavailable { margin: 16px 0 24px; color: var(--muted); font-size: 13px; }
.release-version { color: var(--ink); font-size: 29px; font-weight: 700; letter-spacing: -.05em; line-height: 1.1; }
.release-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 14px; }
.release-meta div { padding: 9px 10px; background: var(--soft); }
.release-meta small { display: block; color: #6d7b73; font-size: 10px; line-height: 1.35; }
.release-meta strong { display: block; margin-top: 2px; color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.release-proof { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; color: #58645f; font-size: 10px; }
.release-proof span::before { content: "✓"; margin-right: 4px; color: var(--mint-deep); font-weight: 750; }
.download-button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 44px; padding: 11px 18px; border: 0; background: var(--ink); color: var(--paper); font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; transition: background .2s, transform .2s; }
.download-button:hover { background: var(--mint-deep); transform: translateY(-1px); }
.download-button.is-disabled { background: #e6e9e5; color: #838e86; cursor: default; }
.download-button.is-disabled:hover { background: #e6e9e5; transform: none; }

.capability-strip { margin-top: 36px; padding: 20px 24px; border: 1px solid #a8c3b0; background: var(--soft); }
.capability-strip h2 { font-size: 21px; }
.capability-strip .section-heading { margin-bottom: 16px; }
.capability-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.capability-list li { padding: 11px 13px; border-top: 1px solid #a8c3b0; color: var(--ink); font-size: 13px; font-weight: 650; }
.capability-list li::before { content: "→"; margin-right: 8px; color: var(--mint-deep); }

.upcoming-section { margin-top: 42px; }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.platform-card { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 15px 16px; border: 1px solid #d9dfd9; background: #ebece8; color: #606a64; }
.platform-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #b9c1bb; color: #606a64; font-size: 10px; font-weight: 750; line-height: 1.1; text-align: center; }
.platform-card h3 { font-size: 14px; font-weight: 650; line-height: 1.3; }
.platform-card div > span { display: block; margin-top: 3px; color: #606a64; font-size: 11px; }

.download-footer { display: flex; justify-content: space-between; gap: 18px; width: min(980px, calc(100% - 112px)); padding: 18px 0 30px; margin: 0 auto; border-top: 1px solid var(--line); color: #58645f; font-size: 11px; }

/* 测试包沿用现有下载卡；完整校验值按需展开，窄屏可断行且不挤压下载按钮。 */
.testing-note { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 18px; }
.release-digest { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.release-digest summary { cursor: pointer; padding-block: 8px; }
.release-digest code { display: block; overflow-wrap: anywhere; user-select: all; }

@media (max-width: 760px) {
  .header-inner, .download-page, .download-footer { width: min(100% - 40px, 980px); }
  .download-page { padding-top: 62px; }
  .release-grid { grid-template-columns: 1fr; }
  .capability-list, .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .header-inner { min-height: 64px; }
  .brand { font-size: 20px; }
  .brand svg { width: 22px; height: 22px; }
  .back-link { font-size: 12px; }
  .download-page { width: min(100% - 28px, 980px); padding-top: 48px; padding-bottom: 76px; }
  .download-hero h1 { font-size: 42px; }
  .intro { font-size: 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading.compact { flex-direction: row; align-items: flex-end; }
  .release-card { padding: 20px; }
  .release-card-head { gap: 9px; }
  .release-status { max-width: 110px; }
  .release-content { min-height: 0; }
  .release-meta { grid-template-columns: 1fr 1fr; }
  .capability-list, .platform-grid { grid-template-columns: 1fr; }
  .download-footer { width: min(100% - 28px, 980px); }
}
