:root {
    color-scheme: light;
    --background: #f7f8fc;
    --surface: #fff;
    --text: #202333;
    --muted: #727688;
    --line: #e7e8f0;
    --accent: #625fe6;
    --accent-hover: #514ed0;
    --accent-soft: #f0effd;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--background); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 30; padding: 8px 14px; color: white; background: var(--text); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.text-link:hover, .site-footer a:hover { color: var(--accent); }

.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 72% 43%, rgba(157, 153, 237, .12), transparent 58%), radial-gradient(ellipse at 22% 30%, rgba(207, 207, 250, .12), transparent 52%), linear-gradient(180deg, #fbfbfe, var(--background)); -webkit-mask-image: linear-gradient(#000 0%, #000 65%, transparent 100%); mask-image: linear-gradient(#000 0%, #000 65%, transparent 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; min-height: 100vh; min-height: 100svh; padding-block: 72px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 20px; }
.eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(40px, 4.3vw, 60px); line-height: 1.25; font-weight: 700; letter-spacing: -.045em; }
.hero-lead { margin-top: 20px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; min-height: 46px; padding: 11px 22px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; transition: background .18s ease, border-color .18s ease; }
.button-primary { color: white; background: var(--accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { border-color: #deddeb; color: #55516f; background: rgba(255, 255, 255, .8); }
.button-secondary:hover { border-color: #b6b1e6; background: var(--accent-soft); }
.button-disabled { color: #9295a4; background: #f0f1f5; cursor: not-allowed; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.versions-link { margin-top: 18px; font-size: 13px; }

.hero-visual { position: relative; min-width: 0; height: 330px; }
.desktop-preview { position: absolute; left: 0; right: 36px; top: 0; overflow: hidden; height: 294px; border: 1px solid #dedfeb; border-radius: 13px; background: white; box-shadow: 0 18px 48px rgba(38, 36, 82, .07); }
.preview-titlebar { display: flex; height: 34px; align-items: center; justify-content: space-between; padding-inline: 12px; border-bottom: 1px solid #eeedf5; color: #9292a5; font-size: 9px; }
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 5px; height: 5px; border-radius: 50%; background: #d9d9e3; }
.window-mark { font-size: 13px; }
.preview-layout { display: grid; grid-template-columns: 52px minmax(0, 1fr); height: calc(100% - 34px); }
.preview-sidebar { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 20px; border-right: 1px solid #efeff6; background: #fafaff; }
.sidebar-mark { width: 19px; height: 19px; border-radius: 6px; background: #dcd9fa; box-shadow: inset 0 0 0 5px #efedff; }
.sidebar-line { width: 15px; height: 4px; border-radius: 3px; background: #dfdfe9; }
.sidebar-line.selected { height: 5px; background: #9690e9; }
.sidebar-bottom { margin-top: auto; margin-bottom: 18px; width: 14px; height: 14px; border: 3px solid #e2e1ed; border-radius: 50%; }
.preview-content { padding: 23px 22px; }
.preview-heading { display: flex; flex-direction: column; gap: 5px; }
.preview-heading strong { font-size: 12px; font-weight: 600; }
.preview-heading > span { color: #a0a1b1; font-size: 8px; }
.preview-input { display: flex; height: 34px; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 5px 5px 10px; margin-top: 16px; border: 1px solid #e8e7f2; border-radius: 6px; font-size: 8px; color: #afb0be; }
.preview-input b { padding: 5px 13px; border-radius: 4px; color: white; background: var(--accent); font-weight: 500; }
.preview-result { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; margin-top: 17px; }
.preview-art, .phone-art { display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 8px; background: linear-gradient(145deg, #e3dff9, #b4b8e5 52%, #a0bdd6); }
.preview-art::before, .phone-art::before { content: ""; position: absolute; width: 100px; height: 100px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; transform: translate(-25px, 25px); }
.preview-art { height: 98px; }
.play-mark { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.play-mark::after { content: ""; border-left: 8px solid white; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 3px; }
.preview-result-info { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 2px; }
.preview-status { font-size: 7px; color: #578b7d; }
.preview-result-info strong { font-size: 9px; white-space: nowrap; }
.preview-detail { font-size: 7px; color: #a1a2b3; }
.preview-result-info > b { display: flex; gap: 8px; padding: 5px 8px; margin-top: 3px; border-radius: 4px; color: var(--accent); background: var(--accent-soft); font-size: 7px; font-weight: 500; }
.phone-preview { position: absolute; right: 0; bottom: 14px; width: 126px; height: 240px; padding: 12px 10px; border: 4px solid white; border-radius: 23px; background: #fafaff; box-shadow: 0 10px 35px rgba(34, 32, 80, .13), 0 0 0 1px #e1e0ed; }
.phone-speaker { width: 30px; height: 4px; border-radius: 3px; background: #d9d8e3; margin: 0 auto 15px; }
.phone-header { display: flex; justify-content: space-between; align-items: center; font-size: 7px; font-weight: 600; }
.phone-art { margin-top: 12px; height: 78px; border-radius: 6px; }
.phone-art .play-mark { width: 22px; height: 22px; }
.phone-preview > strong { display: block; margin-top: 10px; font-size: 8px; font-weight: 600; }
.phone-line { display: block; margin-top: 5px; width: 60%; height: 3px; border-radius: 3px; background: #e1dfed; }
.phone-button { margin-top: 14px; padding-block: 6px; border-radius: 5px; color: white; background: var(--accent); text-align: center; font-size: 7px; }
.phone-home { position: absolute; left: 50%; bottom: 7px; width: 34px; height: 3px; border-radius: 3px; background: #d2d0de; transform: translateX(-50%); }

.downloads { position: relative; padding-block: 48px 60px; scroll-margin-top: 24px; }
.downloads::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #e0dfef 20%, #e0dfef 80%, transparent); }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { font-size: 25px; font-weight: 600; letter-spacing: -.025em; line-height: 1.4; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.download-card { min-width: 0; padding: 26px 28px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 4px 14px rgba(32, 35, 51, .025); }
.download-card.is-recommended { border-color: #c7c4f1; }
.card-header { display: flex; align-items: center; gap: 14px; }
.platform-icon { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border: 1px solid #e8e6fa; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.platform-icon.android { border-color: #e1eee8; background: #f0f7f4; color: #58897b; }
.platform-icon svg { width: 24px; height: 24px; }
.card-header h3 { font-size: 21px; line-height: 1.3; font-weight: 600; }
.card-header p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.recommend-badge { margin-left: auto; padding: 3px 8px; border-radius: 5px; color: var(--accent); background: var(--accent-soft); font-size: 11px; white-space: nowrap; }
.card-description { margin-top: 20px; color: var(--muted); font-size: 13px; }
.release-details { display: grid; gap: 10px; padding-block: 19px; margin: 20px 0; border-top: 1px solid #eff0f5; border-bottom: 1px solid #eff0f5; font-size: 12px; }
.release-details > div { display: flex; justify-content: space-between; gap: 16px; }
.release-details dt { color: #898d9d; }
.release-details dd { margin: 0; overflow-wrap: anywhere; text-align: right; }
.download-button { display: flex; width: 100%; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; color: #9699a8; font-size: 12px; }
.footer-inner > span { overflow-wrap: anywhere; }
.footer-inner a { flex: 0 0 auto; }

@media (max-width: 1000px) {
    .hero-inner { gap: 26px; }
    .hero h1 { font-size: 40px; }
    .hero-visual { height: 290px; }
    .desktop-preview { height: 266px; right: 30px; }
    .preview-content { padding: 18px 16px; }
    .preview-result { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
    .phone-preview { width: 108px; height: 222px; bottom: -2px; }
    .phone-art { height: 65px; }
    .card-header { gap: 10px; }
}
@media (max-width: 760px) {
    .container { width: calc(100% - 40px); }
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px; }
    .hero-visual { width: min(100%, 450px); height: 320px; margin-inline: auto; }
    .desktop-preview { height: 285px; }
    .preview-content { padding: 22px; }
    .preview-result { grid-template-columns: 92px minmax(0, 1fr); }
    .phone-preview { width: 122px; height: 238px; bottom: 0; }
    .phone-art { height: 78px; }
    .hero h1 { font-size: 42px; }
    .download-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .section-heading h2 { font-size: 24px; }
}
@media (max-width: 480px) {
    .container { width: calc(100% - 36px); }
    .hero-inner { padding-block: 44px; }
    .hero h1 { font-size: 36px; }
    .eyebrow { margin-bottom: 16px; }
    .hero-lead { font-size: 14px; margin-top: 16px; }
    .hero-actions { margin-top: 24px; gap: 14px; }
    .hero-actions .button { width: 100%; }
    .hero-visual { display: none; }
    .downloads { padding-block: 40px 28px; }
    .download-card { padding: 22px 20px; }
    .platform-icon { width: 42px; height: 42px; border-radius: 10px; }
    .card-header h3 { font-size: 19px; }
    .recommend-badge { max-width: 90px; text-align: center; white-space: normal; }
    .footer-inner { flex-direction: column; justify-content: center; min-height: 85px; gap: 5px; }
}
@keyframes hero-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes visual-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes ambient-breathe { from { opacity: .65; } to { opacity: 1; } }
@keyframes desktop-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes phone-drift { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-7px); } }
@keyframes media-flow { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
@keyframes play-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (min-width: 1001px) {
    .hero::before { animation: ambient-breathe 12s ease-in-out infinite alternate; }
    .hero-copy { animation: hero-enter .7s ease-out both; }
    .hero-visual { animation: visual-enter .9s ease-out both; transform: translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0); transition: transform .5s ease-out; }
    .desktop-preview { animation: desktop-drift 8s ease-in-out infinite; }
    .phone-preview { animation: phone-drift 10s ease-in-out infinite; }
    .preview-art, .phone-art { background-size: 150% 150%; animation: media-flow 10s ease-in-out infinite alternate; }
    .play-mark { animation: play-breathe 5s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero-visual { transform: none; }
}
