:root {
    color-scheme: light;
    --page-background: #f5f7fc;
    --panel-background: #ffffff;
    --text-color: #202c40;
    --secondary-text: #69778b;
    --brand-color: #6d91e3;
    --brand-text: #526fb5;
    --step-background: #eaf0fc;
    --line-color: #e7edf7;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page-background); color: var(--text-color); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.download-page { width: 100%; max-width: 420px; margin: 0 auto; padding-bottom: max(25px, env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 10px; padding: 25px 26px 20px; }
.brand img { border-radius: 11px; }
.brand span { font-size: 18px; font-weight: 600; }
main { padding: 0 25px; }
.hero { padding-top: 20px; }
h1 { margin: 14px 0 12px; font-size: 32px; line-height: 1.4; letter-spacing: -1px; font-weight: 600; }
h1 strong { color: var(--brand-color); font-weight: inherit; }
.intro { margin: 0; color: var(--secondary-text); font-size: 14px; line-height: 1.9; }
.app-transfer { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 28px 0 23px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.app img { display: block; border-radius: 18px; object-fit: cover; }
.app .new-app { border-radius: 20px; box-shadow: 0 8px 18px #6d91e312; }
.app > span { color: var(--secondary-text); font-size: 12px; }
.upgrade-arrow { display: flex; flex-direction: column; align-items: center; margin-bottom: 22px; color: var(--brand-text); }
.upgrade-arrow > span:first-child { font-size: 11px; letter-spacing: 2px; }
.upgrade-arrow .arrow { font-size: 28px; line-height: 1; font-weight: 400; }
.download-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; padding: 12px; border-radius: 15px; background: var(--brand-color); color: #ffffff; text-decoration: none; font-size: 16px; font-weight: 500; }
.download-button svg { flex-shrink: 0; width: 19px; height: 19px; }
.download-button:focus-visible { outline: 3px solid var(--brand-color); outline-offset: 4px; }
.platforms { margin: 9px 0 25px; text-align: center; color: var(--secondary-text); font-size: 11px; }
.migration-guide { padding: 21px 18px 16px; border-radius: 20px; background: var(--panel-background); }
.guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
h2 { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 600; }
.guide-heading > span { color: var(--secondary-text); font-size: 11px; }
.steps { margin: 20px 0 17px; padding: 0; list-style: none; }
.steps li { position: relative; display: flex; align-items: center; gap: 12px; padding-bottom: 21px; font-size: 13px; font-weight: 500; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { position: absolute; left: 12px; top: 29px; bottom: 5px; content: ""; border-left: 1px solid var(--line-color); }
.step-number { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; background: var(--step-background); color: var(--brand-text); font-size: 12px; }
.migration-note { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding: 12px 10px; border-radius: 10px; background: #f1f4fc; color: var(--secondary-text); font-size: 11px; line-height: 1.8; }
.migration-note > span:first-child { flex-shrink: 0; color: var(--brand-text); font-size: 14px; line-height: 1.4; }
.desktop-download { display: none; }

@media (max-width: 400px) {
    .brand { padding: 23px 22px 16px; }
    main { padding: 0 22px; }
    h1 { font-size: 30px; }
    .app-transfer { gap: 24px; }
}

@media (max-width: 340px) {
    .brand { padding: 20px 18px 14px; }
    main { padding: 0 18px; }
    h1 { font-size: 27px; }
    .intro { font-size: 13px; }
    .migration-guide { padding: 18px 14px; }
    .app-transfer { gap: 21px; }
}

@media (min-width: 600px) {
    .download-page { margin-top: 32px; }
}

@media (min-width: 900px) {
    .download-page { width: calc(100% - 96px); max-width: 1040px; margin: 0 auto; padding-bottom: 48px; }
    .brand { padding: 40px 0 48px; }
    .brand img { width: 44px; height: 44px; border-radius: 13px; }
    .brand span { font-size: 22px; }
    main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 64px; padding: 0; }
    .hero { padding: 0; }
    h1 { margin: 0 0 16px; font-size: 46px; line-height: 1.45; }
    .intro { font-size: 16px; }
    .app-transfer { justify-content: flex-start; gap: 36px; padding: 32px 0; }
    .app img { width: 76px; height: 76px; border-radius: 22px; }
    .app .new-app { border-radius: 22px; }
    .app > span { font-size: 13px; }
    .download-button { max-width: 320px; min-height: 54px; }
    .platforms { max-width: 320px; margin-bottom: 0; font-size: 12px; }
    .download-details { display: grid; gap: 20px; }
    .desktop-download { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 20px; background: var(--panel-background); }
    .desktop-download img { display: block; flex-shrink: 0; width: 144px; height: 144px; }
    .desktop-download h2 { font-size: 18px; }
    .desktop-download p { margin: 8px 0 0; color: var(--secondary-text); font-size: 12px; }
    .migration-guide { padding: 24px; }
    .steps { margin: 22px 0; }
    .steps li { font-size: 14px; padding-bottom: 24px; }
    .steps li:last-child { padding-bottom: 0; }
    .migration-note { font-size: 12px; }
}
