:root {
    color-scheme: light;
    --ink: #17212b;
    --muted: #647180;
    --line: #d9e0e7;
    --soft: #f3f6f8;
    --header: #20272f;
    --blue: #1769aa;
    --blue-hover: #10598f;
    --green: #198754;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: #fff;
    font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.download-header {
    min-height: 64px;
    padding: 0 max(24px, calc((100vw - 1120px) / 2));
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    background: var(--header);
}

.download-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}

.download-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.download-band {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.download-content {
    width: min(1120px, calc(100% - 48px));
    min-height: 480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: center;
    gap: clamp(48px, 8vw, 112px);
    padding: 64px 0;
}

.platform-label {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.download-copy h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.12;
    font-weight: 800;
}

.version-line {
    margin: 14px 0 30px;
    color: var(--muted);
    font-size: 18px;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-download,
.secondary-download {
    width: fit-content;
    min-height: 52px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--blue);
    border-radius: 5px;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
}

.primary-download:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.secondary-download {
    border-color: #586675;
    background: #fff;
    color: var(--ink);
}
.secondary-download:hover { border-color: var(--ink); background: var(--soft); }
.download-symbol { font-size: 24px; line-height: 1; }
.system-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.runtime-band {
    border-bottom: 1px solid var(--line);
    background: var(--soft);
}

.runtime-content {
    width: min(1120px, calc(100% - 48px));
    min-height: 126px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.runtime-content strong { display: block; margin-top: 6px; font-size: 18px; }
.runtime-content p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.runtime-label { color: var(--blue); font-size: 12px; font-weight: 700; }

.runtime-download {
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    border: 1px solid #586675;
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.runtime-download:hover { border-color: var(--ink); }

.release-panel {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--soft);
}

.release-heading,
.release-notes,
.release-status { padding: 20px 22px; }

.release-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
}

.release-panel span { color: var(--muted); font-size: 13px; }
.release-heading strong { font-size: 22px; }
.release-notes { min-height: 126px; }
.release-notes p { margin: 8px 0 0; line-height: 1.7; }

.release-status {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.download-facts {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.download-facts div {
    min-height: 112px;
    padding: 26px 30px;
    border-right: 1px solid var(--line);
}

.download-facts div:first-child { border-left: 1px solid var(--line); }
.download-facts span { display: block; color: var(--muted); font-size: 13px; }
.download-facts strong { display: block; margin-top: 7px; font-size: 16px; }

.download-footer {
    width: min(1120px, calc(100% - 48px));
    margin: auto auto 0;
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .download-header { min-height: 58px; padding: 0 18px; }
    .download-content {
        width: min(100% - 36px, 560px);
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 52px 0 44px;
    }
    .download-copy h1 { font-size: 42px; }
    .download-actions { display: grid; grid-template-columns: 1fr; }
    .primary-download,
    .secondary-download { width: 100%; justify-content: center; }
    .download-facts {
        width: 100%;
        grid-template-columns: 1fr;
    }
    .runtime-content {
        width: calc(100% - 36px);
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }
    .runtime-download { width: 100%; }
    .download-facts div,
    .download-facts div:first-child {
        min-height: 82px;
        padding: 19px 18px;
        border-left: 0;
        border-right: 0;
        border-top: 1px solid var(--line);
    }
    .download-facts div:first-child { border-top: 0; }
    .download-footer { width: calc(100% - 36px); }
}
