:root {
    color-scheme: light;
    --page: #f4f8ff;
    --surface: #ffffff;
    --text: #14213d;
    --muted: #60708d;
    --line: #dce6f4;
    --accent: #076dfb;
    --accent-strong: #0559d1;
    --accent-soft: #eaf2ff;
    --orange: #f5a134;
    --shadow: 0 22px 54px rgba(20, 57, 112, 0.14);
    --radius: 16px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: #f4f8ff;
    background: var(--page);
}

body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: #14213d;
    color: var(--text);
    background: #f4f8ff;
    background:
        radial-gradient(circle at 82% 18%, rgba(7, 109, 251, 0.11), transparent 25rem),
        var(--page);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #0759d1;
    outline-offset: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-shell {
    position: relative;
    width: calc(100% - 64px);
    max-width: 1180px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.site-header {
    height: 72px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(7, 109, 251, 0.22);
    transition: transform 220ms var(--ease);
}

.brand:hover .brand-icon {
    transform: translateY(-2px);
}

.official-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 700;
}

.official-label > span {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--accent);
    font-size: 11px;
}

.hero {
    min-height: calc(100vh - 132px);
    min-height: calc(100dvh - 132px);
    padding: 36px 0 46px;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 72px;
}

.hero-copy {
    width: 54%;
    max-width: 620px;
}

.mobile-app-intro,
.mobile-download-sheet {
    display: none;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent-strong);
    font-size: 14px;
    font-weight: 700;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 10px 1px 0;
    border-radius: 50%;
    background: var(--orange);
}

h1 {
    max-width: 10em;
    margin: 0;
    color: var(--text);
    font-size: 56px;
    font-size: clamp(46px, 4.6vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.brand-emphasis {
    color: var(--accent-strong);
    -webkit-text-fill-color: currentColor;
}

.hero-description {
    max-width: 31em;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.release-info {
    margin: 40px 0 0;
    display: flex;
    border-top: 1px solid var(--line);
}

.release-info > div {
    flex: 1 1 0;
    padding: 18px 18px 0 0;
}

.release-info dt {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
}

.release-info dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.desktop-download {
    position: relative;
    width: 430px;
    min-height: 500px;
    flex: 0 0 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-download::before {
    content: "";
    position: absolute;
    top: 52px;
    right: 0;
    bottom: 36px;
    left: 34px;
    border-radius: 16px;
    background: #dceaff;
    transform: rotate(3deg);
}

.desktop-download::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 110px;
    height: 16px;
    border-radius: 50%;
    background: rgba(245, 161, 52, 0.4);
    filter: blur(18px);
}

.app-visual {
    position: absolute;
    top: 18px;
    right: 12px;
    z-index: 2;
    width: 146px;
    height: 146px;
    padding: 8px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(7, 76, 172, 0.2);
    transform: rotate(4deg);
}

.app-visual img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.qr-panel {
    position: relative;
    z-index: 3;
    width: 294px;
    margin: 82px 54px 0 0;
    padding: 22px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.qr-canvas-wrap {
    position: relative;
    min-height: 244px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.qr-canvas-wrap::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 12px;
    left: 12px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(7, 109, 251, 0.66), transparent);
    box-shadow: 0 0 12px rgba(7, 109, 251, 0.45);
    opacity: 0;
}

#download-qrcode {
    display: block;
    width: 220px;
    height: 220px;
}

.qr-copy {
    padding: 14px 2px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qr-copy strong {
    font-size: 18px;
}

.qr-copy span,
.qr-fallback {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.qr-fallback {
    max-width: 16em;
    margin: 0;
    text-align: center;
}

.mobile-actions {
    display: none;
}

body[data-device="android"] .mobile-actions,
body[data-device="ios"] .mobile-actions {
    display: flex;
}

body[data-device="android"] .desktop-download,
body[data-device="ios"] .desktop-download {
    display: none;
}

.download-button {
    position: relative;
    width: 100%;
    min-height: 68px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: #f4f7fb;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.download-button + .download-button {
    margin-top: 10px;
}

.download-button:active {
    transform: scale(0.98);
}

.android-button {
    border-color: var(--accent);
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 10px 22px rgba(7, 109, 251, 0.24);
}

.download-button.is-unavailable {
    cursor: default;
}

.ios-button.is-unavailable {
    color: #4f607b;
    background: #f4f7fb;
}

.platform-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--accent-strong);
    background: var(--accent-soft);
    font-size: 12px;
    font-weight: 800;
}

.platform-icon {
    display: block;
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.android-mark {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
}

.ios-button .platform-mark {
    color: #263751;
    background: #e7eef8;
}

.button-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.button-copy strong {
    font-size: 16px;
}

.button-copy small {
    color: var(--muted);
    font-size: 12px;
}

.android-button .button-copy small {
    color: #ffffff;
}

.button-arrow {
    flex: 0 0 auto;
    font-size: 23px;
    line-height: 1;
    transition: transform 180ms var(--ease);
}

.android-button:hover .button-arrow {
    transform: translateX(2px);
}

.download-trust {
    margin: 14px 0 0;
    color: #52647e;
    font-size: 12px;
    text-align: center;
}

.download-trust > span {
    color: var(--accent);
    font-weight: 800;
}

.install-steps {
    margin: 18px 0 0;
    padding: 14px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    list-style: none;
    border-top: 1px solid #e9eef6;
}

.install-steps li {
    position: relative;
    width: 33.333%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #5b6b84;
    font-size: 11px;
}

.install-steps li + li::before {
    content: "";
    position: absolute;
    top: 11px;
    right: 66%;
    width: 68%;
    height: 1px;
    background: #d7e3f4;
}

.install-steps span {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-strong);
    background: var(--accent-soft);
    font-size: 11px;
    font-weight: 800;
}

.install-steps strong {
    font-weight: 600;
}

.install-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.site-footer {
    min-height: 60px;
    padding: 17px 0;
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.footer-product {
    color: var(--muted);
}

.technical-support {
    color: #52647e;
    font-weight: 600;
}

.status-message {
    position: fixed;
    left: 50%;
    bottom: 28px;
    bottom: max(28px, env(safe-area-inset-bottom));
    z-index: 20;
    max-width: calc(100% - 32px);
    margin: 0;
    padding: 12px 16px;
    border-radius: 14px;
    color: #ffffff;
    background: #17345f;
    box-shadow: 0 16px 40px rgba(10, 45, 95, 0.24);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.status-message.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.wechat-guide {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    padding: 88px 20px 24px;
    padding: max(88px, env(safe-area-inset-top)) 20px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(8, 23, 46, 0.9);
}

.wechat-guide[hidden] {
    display: none;
}

.guide-pointer {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    right: 24px;
    width: 42px;
    height: 42px;
    border-top: 3px solid rgba(255, 255, 255, 0.94);
    border-right: 3px solid rgba(255, 255, 255, 0.94);
    border-radius: 0 9px 0 0;
}

.guide-card {
    width: 100%;
    max-width: 360px;
    padding: 26px;
    border-radius: 16px;
    color: #14213d;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.guide-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
}

.guide-card h2 {
    margin: 17px 0 9px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.guide-card p {
    margin: 0;
    color: #52647e;
    font-size: 15px;
    line-height: 1.75;
}

.guide-close {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: var(--accent);
    font-weight: 700;
    cursor: pointer;
}

.has-modal {
    overflow: hidden;
}

.noscript-message {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 80;
    margin: 0;
    padding: 12px;
    border-radius: 14px;
    color: #ffffff;
    background: #8c2c2c;
    text-align: center;
}

@media (hover: hover) {
    .download-button:not(.is-unavailable):hover {
        transform: translateY(-2px);
    }

    .android-button:hover {
        background: var(--accent-strong);
        box-shadow: 0 13px 28px rgba(7, 109, 251, 0.27);
    }
}

@media (max-width: 899px) {
    html,
    body {
        background: #ffffff;
    }

    .page-shell {
        width: 100%;
        max-width: 640px;
        background: #ffffff;
    }

    .site-header {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 5;
        height: 58px;
        padding: env(safe-area-inset-top) 18px 0;
        color: #ffffff;
    }

    .brand {
        gap: 9px;
        color: #ffffff;
        font-size: 15px;
    }

    .brand-icon {
        width: 31px;
        height: 31px;
        border-radius: 9px;
        box-shadow: none;
    }

    .official-label {
        padding: 5px 9px;
        border-radius: 999px;
        color: #ffffff;
        background: rgba(0, 40, 100, 0.32);
        font-size: 11px;
    }

    .official-label > span {
        width: auto;
        height: auto;
        color: #ffffff;
        background: none;
        font-size: 10px;
    }

    .hero {
        min-height: auto;
        padding: 0;
        display: block;
        background: #ffffff;
    }

    .hero-copy {
        width: 100%;
        max-width: none;
    }

    .desktop-hero-copy,
    .release-info,
    .desktop-download {
        display: none;
    }

    .mobile-app-intro {
        position: relative;
        min-height: 260px;
        padding: 70px 18px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #ffffff;
        background: #076dfb;
        background: linear-gradient(150deg, #075fe6 0%, #0667e8 58%, #076dfb 100%);
        overflow: hidden;
    }

    .mobile-app-intro::before {
        content: "";
        position: absolute;
        top: 36px;
        left: -58px;
        width: 176px;
        height: 176px;
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 50%;
        box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.04);
    }

    .mobile-app-intro::after {
        content: "";
        position: absolute;
        right: -44px;
        bottom: -60px;
        width: 180px;
        height: 100px;
        border-top: 11px solid rgba(245, 161, 52, 0.48);
        border-radius: 50%;
        transform: rotate(-20deg);
    }

    .mobile-logo-stage {
        position: relative;
        z-index: 1;
        width: 78px;
        height: 78px;
        padding: 4px;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 12px 26px rgba(0, 49, 120, 0.24);
    }

    .mobile-app-logo {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 13px;
    }

    .mobile-app-copy {
        position: relative;
        z-index: 1;
        margin-top: 12px;
        text-align: center;
    }

    .mobile-app-copy h2 {
        margin: 0;
        font-size: 25px;
        line-height: 1.25;
        letter-spacing: -0.025em;
    }

    .mobile-app-copy p {
        margin: 4px 0 0;
        color: #ffffff;
        font-size: 14px;
        line-height: 1.5;
    }

    .mobile-trust-list {
        position: relative;
        z-index: 1;
        margin: 10px 0 0;
        padding: 0;
        display: flex;
        align-items: center;
        color: #ffffff;
        font-size: 11px;
        list-style: none;
    }

    .mobile-trust-list li + li::before {
        content: "·";
        margin: 0 9px;
        color: #ffd38b;
    }

    .mobile-download-sheet {
        position: relative;
        z-index: 3;
        margin-top: -18px;
        padding: 20px 18px 22px;
        display: block;
        border-radius: 16px 16px 0 0;
        background: #ffffff;
        box-shadow: 0 -7px 20px rgba(18, 64, 126, 0.08);
    }

    .mobile-actions,
    body[data-device="android"] .mobile-actions,
    body[data-device="ios"] .mobile-actions {
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .site-footer {
        min-height: auto;
        padding: 15px 18px calc(22px + env(safe-area-inset-bottom));
        align-items: center;
        flex-direction: column;
        gap: 4px;
        border-top: 0;
        background: #ffffff;
        font-size: 11px;
        text-align: center;
    }

    .technical-support {
        max-width: 30em;
        font-size: 12px;
        line-height: 1.6;
        text-wrap: balance;
    }
}

@media (min-width: 900px) {
    body[data-device="android"] .hero,
    body[data-device="ios"] .hero {
        max-width: 640px;
        margin: 0 auto;
        justify-content: center;
    }

    body[data-device="android"] .hero-copy,
    body[data-device="ios"] .hero-copy {
        width: 100%;
    }

    body[data-device="android"] .mobile-download-sheet,
    body[data-device="ios"] .mobile-download-sheet {
        display: block;
        margin-top: 30px;
        padding: 22px;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    body[data-device="android"] .mobile-app-intro,
    body[data-device="ios"] .mobile-app-intro {
        display: none;
    }
}

@media (max-width: 380px) {
    .site-header {
        padding-right: 14px;
        padding-left: 14px;
    }

    .mobile-app-intro {
        padding-right: 14px;
        padding-left: 14px;
    }

    .mobile-download-sheet {
        padding-right: 14px;
        padding-left: 14px;
    }

    .button-copy strong {
        font-size: 15px;
    }
}

@media (forced-colors: active) {
    .brand-emphasis {
        color: LinkText;
        -webkit-text-fill-color: currentColor;
    }

    .download-button,
    .guide-close,
    .mobile-logo-stage {
        border: 2px solid ButtonText;
    }
}
