/* 下载中心的基础色彩与尺寸，统一首屏、平台卡片和交互状态。 */
:root {
    color-scheme: light;
    --ink: #142942;
    --muted: #677990;
    --blue: #1464ee;
    --line: #e2e9f2;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--ink);
    background: #fff;
    font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; min-height: 100svh; line-height: 1.65; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
svg { display: block; flex: none; }
p, h1, h2, h3 { margin: 0; }
.shell { width: min(1280px, calc(100% - 96px)); margin: 0 auto; }
.site-header { background: #fff; }
.header-inner, .brand { display: flex; align-items: center; }
.header-inner { height: 86px; justify-content: space-between; gap: 20px; }
.brand { gap: 13px; }
.brand img { width: 42px; height: 42px; border-radius: 11px; object-fit: contain; }
.brand-name { font-size: 21px; font-weight: 650; letter-spacing: 1px; }
.header-divider { height: 21px; width: 1px; background: #d7e0ec; margin: 0 9px; }
.header-label { font-size: 14px; color: var(--muted); }
.website-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; color: #36516f; }
.website-link:hover { color: var(--blue); }
.website-link svg { width: 16px; height: 16px; }

/* 光晕集中在设备后方，文案区域保持明亮；底部渐隐让首屏自然融入平台区域。 */
.hero-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 77% 35%, rgb(153 192 255 / 32%) 0%, rgb(197 221 255 / 18%) 32%, transparent 62%),
        radial-gradient(ellipse at 16% 24%, rgb(255 255 255 / 95%) 0%, transparent 58%),
        linear-gradient(120deg, #f9fbff 0%, #f0f6ff 58%, #eaf3ff 100%);
}
.hero-band::before, .hero-band::after { content: ''; position: absolute; pointer-events: none; }
/* 网格仅在右侧隐约可见，避免细线穿过标题影响阅读。 */
.hero-band::before {
    inset: 0;
    background-image:
        linear-gradient(rgb(77 126 194 / 5%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(77 126 194 / 5%) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 74% 35%, #000 5%, transparent 67%);
    mask-image: radial-gradient(ellipse at 74% 35%, #000 5%, transparent 67%);
}
.hero-band::after {
    inset: auto 0 0;
    height: 112px;
    background: linear-gradient(transparent, rgb(255 255 255 / 65%) 58%, #fff);
}
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: .95fr 1.4fr; align-items: center; gap: 28px; min-height: 476px; padding-block: 42px; }
.hero-copy { position: relative; z-index: 5; }
.eyebrow { margin-bottom: 20px; font-size: 11px; font-weight: 650; letter-spacing: 3.4px; color: var(--blue); }
h1 { font-size: clamp(38px, 3.9vw, 56px); line-height: 1.4; letter-spacing: -1.8px; font-weight: 700; }
h1 span { color: var(--blue); }
.hero-description { margin-top: 18px; color: #566c87; font-size: 16px; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.primary-action { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 56px; padding: 13px 25px; border: 1px solid var(--blue); border-radius: 10px; color: #fff; background: var(--blue); font-size: 16px; font-weight: 600; box-shadow: 0 7px 18px rgb(20 100 238 / 14%); transition: background .2s, transform .2s; }
.primary-action svg { width: 23px; height: 23px; }
.primary-action:hover { background: #0953d2; transform: translateY(-2px); }
.all-versions { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: #52708f; white-space: nowrap; }
.all-versions:hover { color: var(--blue); }
.hero-version { margin-top: 10px; font-size: 11px; color: #7187a2; letter-spacing: .6px; }
.mobile-action { display: none; }

/* 用原生 HTML/CSS 绘制设备示意，缩放时文字与边框保持清晰；装饰内容对读屏隐藏。 */
.hero-visual { position: relative; height: 390px; min-width: 0; }
.device-scene { position: absolute; inset: 0; pointer-events: none; user-select: none; font-size: 10px; line-height: 1.4; }
.device-halo {
    position: absolute;
    inset: -8% -10% -12%;
    background:
        radial-gradient(ellipse at 55% 42%, rgb(139 184 252 / 25%), transparent 65%),
        radial-gradient(ellipse at 45% 87%, rgb(100 155 233 / 12%), transparent 48%);
}
.laptop { position: absolute; width: 80%; left: 0; top: 42px; transform: perspective(1200px) rotateY(-8deg) rotateX(2deg); transform-origin: center; }
.laptop-screen { padding: 7px; border: 2px solid #a0acbb; border-bottom: 0; border-radius: 17px 17px 0 0; background: #172131; box-shadow: 0 16px 26px rgb(39 79 127 / 10%); }
.workspace { display: flex; aspect-ratio: 1.82; border-radius: 9px 9px 0 0; overflow: hidden; background: #f3f6fb; text-align: left; }
.workspace-sidebar { flex: 0 0 90px; padding: 17px 9px; background: linear-gradient(160deg, #125acc, #15458d); color: #bcd6ff; }
.workspace-brand { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; color: #fff; font-size: 10px; font-weight: 600; }
.workspace-brand img { width: 21px; height: 21px; border-radius: 5px; }
.workspace-nav { display: flex; align-items: center; gap: 9px; margin-top: 5px; padding: 6px 8px; font-size: 8px; }
.workspace-nav.active { color: #fff; background: rgb(255 255 255 / 16%); border-radius: 4px; }
.workspace-nav i { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 2px; }
.workspace-main { flex: 1; min-width: 0; padding: 15px 17px; }
.workspace-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 7px; height: 16px; margin-bottom: 15px; }
.mock-search { height: 14px; width: 90px; border: 1px solid #e3e9f2; border-radius: 12px; background: #fff; }
.mock-avatar { width: 16px; height: 16px; border-radius: 50%; background: #c3d9f6; border: 3px solid #e9f1fc; }
.workspace-greeting { font-size: 14px; font-weight: 650; line-height: 1.5; }
.workspace-subtitle { margin-top: 3px; color: #8190a5; font-size: 7px; }
.mock-stats { display: flex; gap: 7px; margin-top: 16px; }
.mock-stat { flex: 1; display: flex; align-items: center; gap: 7px; padding: 9px 7px; border: 1px solid #e7edf6; border-radius: 6px; background: #fff; }
.stat-icon { width: 21px; height: 24px; border-radius: 5px; background: #e7f0ff; color: #2b6eee; display: grid; place-items: center; font-size: 11px; }
.mock-stat:nth-child(2) .stat-icon { background: #e6f5ee; color: #3b9c75; }
.mock-stat strong { display: block; font-size: 12px; line-height: 1.25; }
.mock-stat small { color: #8190a5; font-size: 6px; white-space: nowrap; }
.mock-panels { display: grid; grid-template-columns: 1.15fr 1fr; gap: 9px; margin-top: 10px; }
.mock-panel { padding: 10px; border: 1px solid #e7edf6; border-radius: 6px; background: #fff; }
.mock-panel-title { margin-bottom: 9px; font-size: 8px; font-weight: 600; }
.mock-task { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 6px; color: #60738d; }
.mock-task::before { content: ''; width: 6px; height: 6px; border: 1px solid #d1dce9; border-radius: 2px; }
.mock-task span { margin-left: auto; color: #97a5b7; font-size: 5px; }
.mock-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 56px; padding-top: 5px; border-bottom: 1px solid #e4ebf4; }
.mock-chart i { width: 15%; border-radius: 2px 2px 0 0; background: linear-gradient(#619bff, #b9d6ff); }
.mock-chart i:nth-child(1) { height: 34%; }.mock-chart i:nth-child(2) { height: 52%; }.mock-chart i:nth-child(3) { height: 46%; }.mock-chart i:nth-child(4) { height: 72%; }.mock-chart i:nth-child(5) { height: 94%; }
.laptop-base { position: relative; width: 113%; height: 13px; margin-left: -6.5%; border-radius: 1px 1px 45% 45%; background: linear-gradient(#e8edf3, #b0bdcc 65%, #edf2f9); box-shadow: 0 13px 13px -6px rgb(36 69 111 / 24%); }
.laptop-base::before { content: ''; display: block; width: 14%; height: 4px; margin: 0 auto; background: #9ca9b9; border-radius: 0 0 7px 7px; }
.phone { position: absolute; right: 135px; bottom: 17px; width: 139px; height: 273px; padding: 5px; border: 2px solid #8e9aa9; border-radius: 24px; background: #172333; transform: rotate(3deg); box-shadow: 5px 13px 23px rgb(31 70 120 / 17%); }
.phone-screen { position: relative; height: 100%; padding: 11px 10px; border-radius: 17px; background: #fff; overflow: hidden; }
.phone-status { display: flex; justify-content: space-between; font-size: 6px; font-weight: 600; }
.phone-island { position: absolute; top: 3px; left: 40px; width: 47px; height: 9px; border-radius: 8px; background: #172333; }
.phone-brand { display: flex; align-items: center; gap: 5px; margin: 18px 0 12px; font-size: 10px; font-weight: 650; }
.phone-brand img { width: 23px; height: 23px; border-radius: 6px; }
.phone-row { display: flex; align-items: center; gap: 9px; padding: 7px 2px; border-bottom: 1px solid #f1f4f8; font-size: 8px; }
.phone-row i { display: grid; place-items: center; width: 15px; height: 15px; font-style: normal; border-radius: 4px; color: #5485d4; background: #eff5ff; }
.phone-row span { margin-left: auto; color: #a0afc0; }
.phone-row b { display: grid; place-items: center; width: 11px; height: 11px; margin-left: auto; border-radius: 50%; font-size: 6px; background: #f16a69; color: white; font-weight: 500; }
.phone-tabs { display: flex; justify-content: space-between; margin-top: 10px; color: #8999ac; font-size: 6px; }
.phone-tabs span:first-child { color: var(--blue); }
.phone-home { position: absolute; bottom: 5px; left: 35px; width: 54px; height: 3px; border-radius: 2px; background: #172333; }
.qr-panel { position: absolute; z-index: 3; right: 0; top: 98px; display: flex; flex-direction: column; align-items: center; gap: 13px; width: 123px; padding: 17px 12px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 13px; background: rgb(255 255 255 / 94%); box-shadow: 0 10px 30px rgb(56 111 179 / 5%); text-align: center; }
.qrcode, .qrcode img { display: block; width: 97px; height: 97px; flex: none; }
.qr-copy strong { font-size: 12px; font-weight: 600; }
.qr-caption { margin-top: 6px; font-size: 9px; line-height: 1.8; color: var(--muted); }
.qr-platforms { display: inline-block; margin-top: 9px; color: #7b8da5; font-size: 8px; letter-spacing: .8px; }

/* 平台入口沿用原来的版本请求、推荐标识和下载交互。 */
.platform-section { padding-top: 36px; padding-bottom: 32px; scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; margin-bottom: 24px; }
.section-heading h2 { font-size: 25px; letter-spacing: -.5px; font-weight: 650; }
.section-heading p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.section-index { padding-bottom: 3px; color: #94a5ba; font-size: 10px; letter-spacing: 2px; }
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.platform-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 23px 23px 21px; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.platform-card[data-platform='windows'] { background: linear-gradient(145deg, #f0f7ff, #fcfdff); border-color: #b8d3ff; }
.platform-card:hover { border-color: #bed2ed; box-shadow: 0 9px 26px rgb(32 76 127 / 5%); transform: translateY(-3px); }
.platform-card.is-recommended { border-color: #77a9fa; }
.recommendation { position: absolute; right: 14px; top: 15px; color: #2362be; background: #e8f1ff; border-radius: 5px; padding: 3px 7px; font-size: 9px; }
.platform-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 15px; border-radius: 12px; background: #e2edff; color: var(--blue); }
/* 外部平台图标与内联图标保持相同尺寸，等比展示以避免变形。 */
.platform-icon svg, .platform-icon img { display: block; width: 27px; height: 27px; object-fit: contain; }
.platform-card[data-platform='android'] .platform-icon { color: #238760; background: #eaf7f0; }
.platform-card[data-platform='ios'] .platform-icon { color: #26364b; background: #f0f3f7; }
.platform-card[data-platform='harmony'] .platform-icon { color: #718096; background: #eef2f7; }
.platform-title { font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
.platform-subtitle { margin-top: 2px; color: var(--muted); font-size: 12px; }
.release-info { min-height: 48px; margin: 19px 0 17px; color: #58708c; font-size: 12px; overflow-wrap: anywhere; }
.release-info p + p { margin-top: 4px; font-size: 11px; color: #7a8ba2; }
.card-action { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 43px; margin-top: auto; padding: 9px 7px; border: 1px solid #a8c6f7; border-radius: 7px; background: #fff; color: #1d62d8; font-size: 12px; font-weight: 550; text-align: center; transition: background .2s, border-color .2s; }
a.card-action:hover { background: #edf4ff; border-color: var(--blue); }
.card-action svg { width: 16px; height: 16px; }
.platform-card[data-platform='windows'] .card-action { background: var(--blue); color: #fff; border-color: var(--blue); }
.platform-card[data-platform='windows'] a.card-action:hover { background: #0953d2; }
.card-action[aria-disabled='true'], .card-action:disabled { color: #73839a; border-color: #e2e8f0; background: #f0f3f7; cursor: default; }
.platform-card.unavailable { background: #fcfdfe; }
.platform-card.unavailable:hover { transform: none; box-shadow: none; border-color: var(--line); }
.development-label { display: inline-flex; align-items: center; gap: 6px; }
.development-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #96a4b6; }
.status { margin-top: 12px; font-size: 11px; color: #a44232; overflow-wrap: anywhere; }
.status:empty { display: none; }
.retry-button { align-self: flex-start; min-height: 38px; margin-top: 5px; padding: 5px 0; color: var(--blue); background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; }
.download-notes { margin-top: 20px; padding: 12px 17px; border-radius: 8px; background: #f0f7ff; color: #617b99; font-size: 11px; }
.install-note { display: flex; align-items: flex-start; gap: 9px; }
.install-note svg { width: 16px; height: 16px; margin-top: 1px; color: #3589ee; }
.legal-links { display: flex; gap: 18px; flex: none; }
.legal-links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.noscript { margin-bottom: 20px; padding: 12px 16px; border: 1px solid #efd9b4; border-radius: 8px; color: #83541d; font-size: 13px; background: #fff9ef; }
.site-footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); color: #8291a6; font-size: 10px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-company { display: flex; flex-direction: column; gap: 3px; }
.site-footer a:hover { color: var(--blue); }

/* 保持原浏览器引导的遮罩、焦点恢复及键盘关闭行为。 */
.browser-guide { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 32px 20px; overflow-y: auto; background: rgb(14 28 47 / 65%); }
.guide-panel { width: 100%; max-width: 420px; padding: 28px; border-radius: 20px; background: #fff; }
.guide-arrow { text-align: right; font-size: 38px; line-height: 1; color: var(--blue); }
.guide-panel h2 { margin: 12px 0; font-size: 21px; }
.guide-panel ol { margin: 0 0 20px; padding-left: 24px; }
.guide-panel li { padding: 6px 0; }
.close-button { width: 100%; min-height: 44px; padding: 10px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; }
body.guide-open { overflow: hidden; }

/* 中屏隐藏扫码面板，给设备插画和双列卡片留出可读空间。 */
@media (max-width: 1180px) {
    .hero { grid-template-columns: 1fr 1.05fr; min-height: 440px; }
    h1 { font-size: 44px; }
    .hero-actions { gap: 14px; }
    .primary-action { font-size: 14px; padding-inline: 19px; }
    .hero-visual { height: 345px; }
    .laptop { top: 56px; width: 94%; }
    .phone { right: 0; bottom: 7px; width: 127px; height: 255px; }
    .qr-panel { display: none; }
    .phone-brand { margin-bottom: 15px; font-size: 9px; }
    .phone-row { padding-block: 9px; }
    .platform-grid { gap: 15px; }
    .platform-card { padding: 21px 18px; }
    .platform-title { font-size: 20px; }
    .card-action { font-size: 11px; }
}
@media (max-width: 960px) {
    .shell { width: calc(100% - 64px); }
    .hero { gap: 20px; min-height: 410px; }
    h1 { font-size: 37px; }
    .hero-description { font-size: 13px; }
    .hero-actions { flex-wrap: wrap; gap: 7px 15px; margin-top: 22px; }
    .primary-action { min-height: 49px; }
    .all-versions { font-size: 11px; }
    .hero-visual { height: 315px; }
    .laptop { top: 58px; }
    .workspace-sidebar { flex-basis: 67px; padding: 11px 6px; }
    .workspace-brand { gap: 3px; font-size: 7px; margin-bottom: 11px; }
    .workspace-brand img { width: 16px; height: 16px; }
    .workspace-nav { padding: 4px 5px; margin-top: 3px; font-size: 6px; gap: 6px; }
    .workspace-main { padding: 8px; }
    .workspace-toolbar { height: 10px; margin-bottom: 5px; }
    .workspace-greeting { font-size: 9px; }
    .workspace-subtitle { display: none; }
    .mock-stats { margin-top: 8px; gap: 4px; }
    .mock-stat { padding: 5px 4px; gap: 4px; }
    .stat-icon { width: 15px; height: 18px; font-size: 8px; }
    .mock-stat strong { font-size: 9px; }
    .mock-stat small { font-size: 5px; }
    .mock-panels { margin-top: 6px; gap: 5px; }
    .mock-panel { padding: 6px; }
    .mock-panel-title { margin-bottom: 5px; }
    .mock-task { margin-top: 4px; }
    .mock-task:nth-child(n+4) { display: none; }
    .mock-chart { height: 29px; }
    .phone { width: 111px; height: 225px; bottom: 10px; border-radius: 20px; }
    .phone-screen { border-radius: 14px; padding: 9px 7px; }
    .phone-island { left: 28px; }
    .phone-brand { font-size: 8px; margin: 18px 0 12px; }
    .phone-brand img { width: 19px; height: 19px; }
    .phone-row { padding-block: 3px; font-size: 7px; }
    .phone-tabs { margin-top: 10px; }
    .phone-home { left: 25px; width: 44px; }
    .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .platform-card { padding: 24px; }
    .platform-title { font-size: 22px; }
    .card-action { font-size: 13px; }
    .section-index { display: none; }
}
/* 手机上优先提供本机平台列表，避免把 Windows 安装包作为主操作。 */
@media (max-width: 640px) {
    /* 小屏背景降低纹理密度，光晕随设备区域保留，避免喧宾夺主。 */
    .hero-band::before { background-size: 48px 48px; opacity: .55; }
    .hero-band::after { height: 85px; }
    .shell { width: calc(100% - 40px); }
    .header-inner { height: 74px; }
    .brand { gap: 9px; }
    .brand img { width: 35px; height: 35px; border-radius: 9px; }
    .brand-name { font-size: 18px; }
    .header-divider, .header-label { display: none; }
    .website-link { font-size: 12px; gap: 6px; }
    .website-link svg { width: 13px; height: 13px; }
    .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-block: 34px 12px; }
    .eyebrow { font-size: 9px; letter-spacing: 2.6px; margin-bottom: 13px; }
    h1 { font-size: clamp(31px, 9.3vw, 46px); letter-spacing: -1px; line-height: 1.43; }
    .hero-description { margin-top: 14px; font-size: 12px; }
    .hero-actions { margin-top: 22px; }
    .hero-actions > .primary-action:not(.mobile-action), .all-versions, .hero-version { display: none; }
    .mobile-action { display: inline-flex; min-height: 48px; font-size: 13px; gap: 16px; padding-inline: 22px; }
    .hero-visual { width: min(100%, 400px); align-self: center; height: 260px; margin-top: 10px; }
    .laptop { width: 87%; top: 36px; left: 2%; }
    .workspace-toolbar, .workspace-nav:nth-last-child(-n+2) { display: none; }
    .workspace-greeting br { display: none; }
    .phone { right: 2%; bottom: 11px; }
    .platform-section { padding-top: 27px; padding-bottom: 25px; }
    .section-heading { margin-bottom: 18px; }
    .section-heading h2 { font-size: 21px; }
    .section-heading p { font-size: 11px; }
    .platform-grid { grid-template-columns: 1fr; gap: 15px; }
    .platform-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; padding: 22px; }
    .platform-icon { grid-row: 1 / span 2; width: 46px; height: 46px; margin: 0; }
    .platform-title { grid-column: 2; font-size: 20px; line-height: 1.4; }
    .platform-subtitle { grid-column: 2; margin-top: 2px; font-size: 11px; }
    .recommendation { right: 15px; top: -9px; }
    .release-info { grid-column: 1 / -1; min-height: 0; margin: 16px 0; font-size: 11px; }
    .release-info p + p { font-size: 10px; }
    .card-action, .status, .retry-button { grid-column: 1 / -1; }
    .card-action { min-height: 44px; font-size: 12px; }
    .download-notes { padding: 12px; font-size: 10px; margin-top: 17px; }
    .footer-inner { flex-direction: column; gap: 14px; padding-top: 18px; font-size: 9px; }
    .legal-links { font-size: 11px; }
}
@media (max-width: 360px) {
    .hero-visual { height: 225px; }
    .phone { transform: scale(.88) rotate(3deg); transform-origin: right bottom; }
    .platform-card { padding: 19px; }
    .mock-task span { display: none; }
    .workspace-main { padding: 6px; }
    .mock-panel { padding: 4px; }
    .mock-panel-title { margin-bottom: 3px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .platform-card:hover, .primary-action:hover { transform: none; }
}
