:root {
    color-scheme: dark;
    --bg: #080b1b;
    --panel: rgba(17, 22, 49, 0.78);
    --panel-strong: rgba(23, 29, 63, 0.94);
    --line: rgba(151, 164, 255, 0.18);
    --text: #f7f8ff;
    --muted: #aeb6d9;
    --blue: #6e8dff;
    --violet: #9d6cff;
    --cyan: #5ee7f2;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--bg);
}

body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 14% 10%, rgba(77, 115, 255, 0.25), transparent 32rem),
        radial-gradient(circle at 85% 18%, rgba(157, 108, 255, 0.24), transparent 30rem),
        radial-gradient(circle at 50% 110%, rgba(44, 209, 216, 0.14), transparent 35rem),
        var(--bg);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a {
    color: inherit;
}

.site-shell {
    width: min(100% - 40px, 1080px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
}

.home-shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 0 30px;
}

.hero {
    text-align: center;
}

.brand-mark {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 22px;
    filter: drop-shadow(0 18px 35px rgba(110, 141, 255, 0.24));
}

.brand-mark span {
    display: grid;
    width: 74px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 23px;
    font-size: 34px;
    font-weight: 850;
    letter-spacing: -0.08em;
    background: linear-gradient(145deg, rgba(130, 155, 255, 0.96), rgba(123, 74, 241, 0.96));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.32);
}

.brand-mark span:last-child {
    transform: translateY(12px);
    background: linear-gradient(145deg, rgba(102, 231, 242, 0.96), rgba(65, 125, 225, 0.96));
}

.eyebrow,
.section-kicker {
    margin: 0;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.24em;
}

.hero h1 {
    margin: 10px 0 6px;
    font-size: clamp(54px, 10vw, 92px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.08em;
}

.hero-copy {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 18px;
    letter-spacing: 0.12em;
}

.platform-section {
    width: min(100%, 860px);
    margin: 62px auto 0;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(24px, 4vw, 34px);
    letter-spacing: -0.04em;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.platform-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 17px;
    align-items: center;
    min-height: 124px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    text-decoration: none;
    background: linear-gradient(145deg, rgba(25, 31, 68, 0.92), rgba(13, 18, 43, 0.8));
    box-shadow: var(--shadow);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: rgba(130, 151, 255, 0.48);
    background: linear-gradient(145deg, rgba(34, 42, 88, 0.96), rgba(17, 22, 51, 0.92));
}

.platform-card:focus-visible,
.back-link:focus-visible,
.install-button:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}

.platform-badge {
    display: grid;
    width: 62px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 19px;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(145deg, var(--blue), var(--violet));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.28);
}

.platform-badge-ios {
    font-size: 17px;
    background: linear-gradient(145deg, var(--cyan), #527be8);
}

.platform-content {
    min-width: 0;
}

.platform-content strong,
.platform-content small {
    display: block;
}

.platform-content strong {
    font-size: 20px;
}

.platform-content small {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.platform-arrow {
    color: var(--cyan);
    font-size: 28px;
    transition: transform 180ms ease;
}

.platform-card:hover .platform-arrow {
    transform: translateX(4px);
}

.site-footer {
    margin-top: auto;
    padding-top: 48px;
    color: rgba(174, 182, 217, 0.6);
    font-size: 12px;
    text-align: center;
    letter-spacing: 0.14em;
}

.release-shell {
    display: flex;
    flex-direction: column;
    padding: 34px 0 30px;
}

.back-link {
    align-self: flex-start;
    padding: 10px 0;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 160ms ease;
}

.back-link:hover {
    color: var(--text);
}

.release-card {
    width: min(100%, 620px);
    margin: auto;
    padding: clamp(34px, 7vw, 58px);
    border: 1px solid var(--line);
    border-radius: 32px;
    text-align: center;
    background: linear-gradient(145deg, var(--panel-strong), var(--panel));
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.compact-brand {
    display: grid;
    width: 88px;
    aspect-ratio: 1;
    margin: 0 auto 24px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 27px;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.12em;
    background: linear-gradient(145deg, var(--blue), var(--violet));
    box-shadow: 0 18px 45px rgba(110, 141, 255, 0.26), inset 0 1px rgba(255, 255, 255, 0.3);
}

[data-platform="ios"] .compact-brand {
    background: linear-gradient(145deg, var(--cyan), #527be8);
}

.release-card h1 {
    margin: 13px 0 0;
    font-size: clamp(34px, 7vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.release-card h1 span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.43em;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.release-copy {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.wechat-notice {
    margin-top: 26px;
    padding: 16px 18px;
    border: 1px solid rgba(94, 231, 242, 0.24);
    border-radius: 16px;
    text-align: left;
    background: rgba(50, 188, 204, 0.09);
}

.wechat-notice strong,
.wechat-notice span {
    display: block;
}

.wechat-notice strong {
    color: var(--cyan);
    font-size: 14px;
}

.wechat-notice span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.release-action {
    margin-top: 34px;
}

.install-button {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 17px;
    color: #080b1b;
    font-size: 16px;
    font-weight: 850;
    text-decoration: none;
    background: linear-gradient(135deg, var(--cyan), #7ba1ff);
    box-shadow: 0 14px 34px rgba(94, 231, 242, 0.18);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.install-button:not(.is-disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(94, 231, 242, 0.28);
}

.install-button.is-disabled {
    cursor: not-allowed;
    color: rgba(247, 248, 255, 0.45);
    border-color: var(--line);
    background: rgba(117, 128, 178, 0.1);
    box-shadow: none;
}

.release-status {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.release-note {
    display: flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: rgba(174, 182, 217, 0.74);
    font-size: 12px;
    line-height: 1.5;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 14px rgba(110, 141, 255, 0.7);
}

@media (max-width: 680px) {
    .site-shell {
        width: min(100% - 28px, 1080px);
    }

    .home-shell {
        justify-content: flex-start;
        padding-top: 52px;
    }

    .brand-mark span {
        width: 62px;
        border-radius: 19px;
        font-size: 29px;
    }

    .hero-copy {
        font-size: 16px;
    }

    .platform-section {
        margin-top: 46px;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .platform-card {
        min-height: 108px;
        padding: 20px;
        border-radius: 21px;
    }

    .platform-badge {
        width: 54px;
        border-radius: 16px;
    }

    .release-shell {
        padding-top: 18px;
    }

    .release-card {
        margin-top: 24px;
        border-radius: 26px;
    }
}

@media (max-width: 390px) {
    .platform-card {
        gap: 13px;
        padding: 18px 16px;
    }

    .platform-badge {
        width: 48px;
        font-size: 20px;
    }

    .platform-badge-ios {
        font-size: 14px;
    }

    .platform-content strong {
        font-size: 18px;
    }

    .platform-arrow {
        font-size: 23px;
    }

    .release-card {
        padding: 32px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Poster-style home page */
.poster-page {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: #142968;
}

.poster-page::before {
    display: none;
}

.download-poster {
    position: relative;
    width: min(100%, 540px);
    aspect-ratio: 9 / 16;
    flex: 0 0 auto;
    overflow: hidden;
    background: #274fc3 url("../img_xzy.jpg") center top / 100% 100% no-repeat;
    box-shadow: 0 0 64px rgba(0, 0, 0, 0.48);
}

.poster-actions {
    position: absolute;
    inset: 0;
}

.poster-download {
    position: absolute;
    left: 22.22%;
    display: block;
    width: 61.11%;
    border-radius: 9%;
    filter: drop-shadow(0 6px 4px rgba(13, 28, 83, 0.34));
    transition: transform 160ms ease, filter 160ms ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.poster-download-android {
    top: 63.18%;
}

.poster-download-ios {
    top: 75.83%;
}

.poster-download img {
    display: block;
    width: 100%;
    height: auto;
}

.poster-download:hover {
    transform: translateY(-2px) scale(1.015);
    filter: drop-shadow(0 9px 6px rgba(13, 28, 83, 0.4)) brightness(1.03);
}

.poster-download:active {
    transform: translateY(1px) scale(0.99);
}

.poster-download:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 5px;
}

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

@media (max-width: 540px) {
    .download-poster {
        box-shadow: none;
    }
}

/* FIR-style Android release page */
.download-page {
    min-height: 700px;
    overflow-x: hidden;
    color: #5c5c5c;
    background: #ffffff;
}

.download-page::before {
    display: none;
}

.download-pattern {
    position: fixed;
    top: 0;
    z-index: 0;
    width: min(18vw, 220px);
    height: auto;
    pointer-events: none;
    user-select: none;
}

.download-pattern-left {
    left: 0;
}

.download-pattern-right {
    right: 0;
}

.download-back-link {
    position: fixed;
    top: 22px;
    left: 50%;
    z-index: 3;
    padding: 7px 13px;
    border: 1px solid #ebeeee;
    border-radius: 999px;
    color: #9aa0a0;
    font-size: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.86);
    transform: translateX(-50%);
    transition: color 160ms ease, border-color 160ms ease;
}

.download-back-link:hover {
    color: #59b5ac;
    border-color: #a8d9d3;
}

.download-back-link:focus-visible,
.download-install-button:focus-visible {
    outline: 3px solid rgba(87, 180, 171, 0.32);
    outline-offset: 4px;
}

.download-main {
    position: relative;
    z-index: 1;
    width: min(94%, 700px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
}

.download-content {
    display: flex;
    min-height: clamp(700px, 100vh, 900px);
    min-height: clamp(700px, 100dvh, 900px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 54px 0 72px;
    text-align: center;
    transform: translateY(10px);
}

.download-icon-cluster {
    position: relative;
    width: 290px;
    height: 290px;
    margin: 0 auto;
}

.download-icon-cluster::after {
    position: absolute;
    top: 27px;
    left: 76px;
    z-index: -1;
    width: 210px;
    height: 224px;
    border-radius: 12px 22px 24px 36px;
    content: "";
    background: linear-gradient(135deg, rgba(237, 240, 239, 0.82), rgba(244, 246, 246, 0.96));
    clip-path: polygon(0 0, 55% 0, 100% 100%, 30% 100%);
}

.download-app-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    overflow: hidden;
    border: 10px solid #ffffff;
    border-radius: 24px;
    background: #ffed00;
    box-shadow: 0 2px 9px rgba(63, 77, 74, 0.14);
}

.download-app-icon img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
}

.download-publish-card {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    width: 140px;
    height: 140px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 10px solid #ffffff;
    border-radius: 16px;
    color: #9ba2a2;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 2px 8px rgba(63, 77, 74, 0.08);
}

.download-publish-card span {
    color: #b7bcbc;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.download-publish-card strong {
    margin-top: 8px;
    color: #64b8af;
    font-size: 18px;
    font-weight: 600;
}

.download-publish-card small {
    margin-top: 5px;
    font-size: 11px;
}

.download-title {
    display: flex;
    width: 290px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 60px auto 0;
    color: #515454;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.35;
}

.download-platform-symbol {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.download-platform-symbol-ios {
    position: relative;
    display: inline-block;
    width: 25px;
    height: 28px;
    flex: 0 0 auto;
}

.download-platform-symbol-ios::before {
    position: absolute;
    bottom: 1px;
    left: 3px;
    width: 20px;
    height: 21px;
    border-radius: 48% 48% 46% 46% / 56% 56% 44% 44%;
    content: "";
    background:
        radial-gradient(circle at 101% 28%, #ffffff 0 4px, transparent 4.3px),
        currentColor;
    transform: rotate(-4deg);
}

.download-platform-symbol-ios::after {
    position: absolute;
    top: 0;
    left: 13px;
    width: 10px;
    height: 6px;
    border-radius: 90% 10% 90% 10%;
    content: "";
    background: currentColor;
    transform: rotate(-33deg);
}

.download-tips {
    width: 290px;
    margin: 24px auto 0;
    color: #b4b8b8;
    font-size: 13px;
    line-height: 22px;
    text-align: left;
}

.download-info {
    width: min(100%, 420px);
    margin: 30px auto 0;
    padding-top: 28px;
    border-top: 2px solid #f1f2f2;
    color: #b3b8b8;
    font-size: 13px;
    line-height: 1.7;
}

.download-info p {
    margin: 0;
}

.download-wechat-notice {
    width: min(100%, 360px);
    margin: 22px auto 0;
    padding: 12px 16px;
    border: 1px solid #b7dfdb;
    border-radius: 10px;
    color: #4e918b;
    font-size: 12px;
    line-height: 1.6;
    background: #f2fbfa;
}

.download-wechat-notice strong,
.download-wechat-notice span {
    display: block;
}

.download-actions {
    width: min(100%, 290px);
    margin: 30px auto 0;
}

.download-install-button {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 22px;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    background: #59b5ac;
    box-shadow: none;
    transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.download-install-button:not(.is-disabled):hover {
    background: #4aa89f;
    transform: translateY(-1px);
}

.download-page-ios .download-install-button {
    color: #59b5ac;
    border-color: #59b5ac;
    background: #ffffff;
}

.download-page-ios .download-install-button:not(.is-disabled):hover {
    color: #4aa89f;
    border-color: #4aa89f;
    background: #f3fbfa;
}

.download-install-button.is-disabled {
    cursor: not-allowed;
    opacity: 1;
}

.download-footer {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    color: #c0c4c4;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 600px) {
    .download-page {
        min-height: 620px;
    }

    .download-pattern {
        width: 62px;
    }

    .download-back-link {
        top: 16px;
    }

    .download-main {
        width: min(100% - 40px, 420px);
    }

    .download-content {
        min-height: 700px;
        padding: 88px 0 72px;
        justify-content: flex-start;
        transform: none;
    }

    .download-icon-cluster {
        width: 140px;
        height: 140px;
        margin-top: 136px;
    }

    .download-icon-cluster::after,
    .download-publish-card,
    .download-tips {
        display: none;
    }

    .download-title {
        margin-top: 18px;
    }

    .download-info {
        width: 225px;
        margin-top: 26px;
        padding-top: 27px;
    }

    .download-actions {
        margin-top: 30px;
    }

    .download-install-button {
        width: 200px;
    }

    .download-footer {
        display: none;
    }
}

@media (max-width: 600px) and (max-height: 700px) {
    .download-content {
        min-height: 620px;
        padding-top: 62px;
    }

    .download-icon-cluster {
        margin-top: 78px;
    }
}
