/* ========== 移动端 APP 下载页 ========== */
:root {
    --color-ink: #102133;
    --color-muted: #5f7183;
    --color-primary: #0f8f80;
    --color-primary-strong: #0a6f66;
    --color-primary-soft: #e2f4ef;
    --color-panel: #ffffff;
    --color-bg: #f2f8f6;
    --color-line: rgba(15, 143, 128, 0.14);
    --color-warm: #f3c04f;
    --shadow-panel: 0 22px 52px rgba(18, 45, 62, 0.16);
    --shadow-button: 0 12px 24px rgba(10, 111, 102, 0.22);
    --radius-sm: 8px;
    --radius-md: 14px;
    --font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--color-ink);
    background:
        radial-gradient(circle at 18% 10%, rgba(15, 143, 128, 0.16), transparent 30rem),
        radial-gradient(circle at 88% 18%, rgba(243, 192, 79, 0.22), transparent 24rem),
        linear-gradient(180deg, #f5fbf9 0%, var(--color-bg) 46%, #e4f2ef 100%);
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: inherit;
}

.download-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 2rem);
    overflow: hidden;
    position: relative;
}

.download-page::before,
.download-page::after {
    content: "";
    position: fixed;
    z-index: 0;
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(15, 143, 128, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.download-page::before {
    left: -13rem;
    top: -10rem;
}

.download-page::after {
    right: -14rem;
    bottom: -12rem;
    background: rgba(15, 143, 128, 0.05);
}

.download-card {
    width: min(100%, 360px);
    min-height: min(720px, calc(100vh - 2rem));
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.25rem 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fdfb 48%, #eff8f5 100%);
    border: 1px solid rgba(207, 226, 220, 0.95);
    border-radius: 22px;
    box-shadow: var(--shadow-panel);
}

.download-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 22% 28%, rgba(243, 192, 79, 0.2) 0 0.42rem, transparent 0.45rem),
        radial-gradient(circle at 80% 32%, rgba(15, 143, 128, 0.14) 0 0.36rem, transparent 0.39rem);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    align-self: flex-start;
    color: var(--color-primary-strong);
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark img {
    width: 34px;
    height: 34px;
    display: block;
    border-radius: var(--radius-sm);
}

.hero-visual {
    width: 100%;
    height: 290px;
    display: grid;
    place-items: center;
    position: relative;
    margin-top: 0.85rem;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 238px;
    height: 186px;
    top: 34px;
    left: 50%;
    border-radius: 44% 56% 48% 52% / 50% 44% 56% 50%;
    background:
        linear-gradient(145deg, rgba(15, 143, 128, 0.95), rgba(10, 111, 102, 0.94)),
        var(--color-primary);
    box-shadow: 0 18px 42px rgba(10, 111, 102, 0.24);
    transform: translateX(-50%);
}

.hero-visual::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 58px;
    left: 50%;
    bottom: 42px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50% 50% 0 0 / 90% 90% 0 0;
    transform: translateX(-50%);
}

.visual-orbit,
.visual-wave {
    position: absolute;
    display: block;
    pointer-events: none;
}

.visual-orbit {
    width: 68px;
    height: 18px;
    background: rgba(243, 192, 79, 0.82);
    border-radius: 999px;
}

.visual-orbit-left {
    left: 20px;
    top: 88px;
    box-shadow:
        46px -46px 0 -4px rgba(243, 192, 79, 0.68),
        12px 62px 0 -2px rgba(15, 143, 128, 0.2);
}

.visual-orbit-right {
    right: 16px;
    top: 120px;
    width: 82px;
    box-shadow:
        -18px -54px 0 -5px rgba(255, 255, 255, 0.7),
        -10px 58px 0 -4px rgba(243, 192, 79, 0.48);
}

.visual-wave {
    left: 50%;
    width: 118%;
    height: 74px;
    border-radius: 50% 50% 0 0 / 70% 70% 0 0;
    transform: translateX(-50%);
}

.visual-wave-back {
    bottom: 10px;
    background: rgba(15, 143, 128, 0.13);
}

.visual-wave-front {
    bottom: -10px;
    z-index: 3;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), #eaf6f2);
}

.phone-frame {
    width: 128px;
    height: 212px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 13px 10px 11px;
    background: #142637;
    border-radius: 28px;
    box-shadow: 0 20px 34px rgba(8, 31, 45, 0.26);
}

.phone-notch {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 50px;
    height: 13px;
    background: #142637;
    border-radius: 0 0 10px 10px;
    transform: translateX(-50%);
}

.phone-screen {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: var(--color-primary-strong);
    background:
        radial-gradient(circle at 50% 40%, rgba(243, 192, 79, 0.22), transparent 54px),
        #f7fbf9;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
}

.phone-screen img {
    width: 58px;
    height: 58px;
    display: block;
    padding: 0.35rem;
    background: var(--color-panel);
    border: 1px solid rgba(15, 143, 128, 0.12);
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(10, 111, 102, 0.12);
}

.download-copy {
    width: 100%;
    position: relative;
    z-index: 4;
    margin-top: 1.7rem;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0;
    padding: 0 1rem;
    color: var(--color-primary-strong);
    background: rgba(15, 143, 128, 0.08);
    border: 1px solid rgba(15, 143, 128, 0.22);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(10, 111, 102, 0.06);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.download-copy p:not(.eyebrow) {
    max-width: 18.5rem;
    margin: 0.72rem auto 0;
    color: #324e5f;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.42;
}

.download-actions {
    width: 100%;
    display: grid;
    gap: 1.05rem;
    margin-top: 2.15rem;
}

.download-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #ffffff;
    background: var(--color-primary-strong);
    border: 1px solid var(--color-primary-strong);
    border-radius: 999px;
    box-shadow: var(--shadow-button);
    font-size: 0.96rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.download-button:hover {
    background: #075f58;
    box-shadow: 0 16px 28px rgba(10, 111, 102, 0.28);
    transform: translateY(-1px);
}

.download-button:focus-visible {
    outline: 3px solid rgba(15, 143, 128, 0.28);
    outline-offset: 3px;
}

.download-button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.download-button-secondary {
    color: var(--color-primary-strong);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 143, 128, 0.3);
    box-shadow: 0 10px 22px rgba(18, 45, 62, 0.08);
}

.download-button-secondary:hover {
    color: #075f58;
    background: #ffffff;
    box-shadow: 0 14px 24px rgba(18, 45, 62, 0.12);
}

.download-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--color-muted);
    font-size: 0.84rem;
}

.download-footer a {
    color: var(--color-primary-strong);
    font-weight: 800;
    text-decoration: none;
}

@media (max-height: 680px) {
    .download-card {
        min-height: auto;
    }

    .hero-visual {
        height: 240px;
        margin-top: 0.35rem;
    }

    .download-copy {
        margin-top: 1rem;
    }

    .hero-visual::before {
        top: 22px;
        transform: translateX(-50%) scale(0.9);
    }

    .phone-frame {
        transform: scale(0.9);
    }
}

@media (max-width: 360px) {
    .download-page {
        padding: 0.75rem;
    }

    .download-card {
        width: 100%;
        padding: 1rem 1rem 0.9rem;
        border-radius: 18px;
    }

    .hero-visual {
        height: 250px;
    }

    .hero-visual::before {
        width: 218px;
    }

    .download-footer {
        flex-direction: column;
        gap: 0.35rem;
    }
}
