* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    height: 100dvh;
    min-height: 100vh;
    overflow: auto;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Helvetica Neue", Arial, "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    background: #000;
}

.bg {
    position: absolute;
    inset: 0;
    background: #000 center/cover no-repeat;
    background-image: url("../../img/bj.jpg");
    z-index: 0;
}

.stage {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.btn-top-left {
    position: absolute;
    top: 3.2vh;
    left: 2.8vw;
    width: 9.1667vw;
    max-width: 140px;
    aspect-ratio: 1 / 1;
    display: inline-block;
}

.btn-top-right {
    position: absolute;
    top: 3.2vh;
    right: 2.8vw;
    width: 8.2vw;
    max-width: 120px;
    display: inline-block;
}

.logo {
    position: absolute;
    top: 1.5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 50vw;
    max-width: 960px;
    height: auto;
    display: block;
}

.btn-group {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 63.6667vh;
    width: 69.54vw;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 1.3vh;
    align-items: center;
}

.img-btn {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .08s ease;
}

.img-btn:active {
    transform: scale(0.98);
}

.img-block {
    display: block;
    width: 100%;
    height: auto;
}

.img-btn.glow {
    --blob-w: 10%;
    --blob-h: 75%;
    --blob-speed: 1.2s;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
}

.img-btn.glow::after {
    content: "";
    position: absolute;
    left: calc(20% - (var(--blob-w)/2));
    top: 50%;
    transform: translateY(-50%);
    width: var(--blob-w);
    height: var(--blob-h);
    border-radius: 999px;
    pointer-events: none;
    mix-blend-mode: screen;

    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.22) 28%,
            rgba(255, 255, 255, 0.55) 45%,
            rgba(255, 255, 255, 0.55) 55%,
            rgba(255, 255, 255, 0.22) 72%,
            rgba(255, 255, 255, 0) 100%),
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.78) 40%,
            #fff 50%,
            rgba(255, 255, 255, 0.78) 60%,
            rgba(255, 255, 255, 0) 100%);
    background-blend-mode: screen;

    filter: blur(5px) brightness(0.5);

    -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 50%, #fff 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 55% at 50% 50%, #fff 60%, transparent 100%);

    animation: sweepSegment var(--blob-speed) linear infinite, blobFade var(--blob-speed) linear infinite;
    will-change: left, opacity;
}

@keyframes sweepSegment {
    0% {
        left: calc(2% - (var(--blob-w)/2));
    }

    66.667% {
        left: calc(70% - (var(--blob-w)/2));
    }

    100% {
        left: calc(98% - (var(--blob-w)/2));
    }

}

@keyframes blobFade {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.disclaimer {
    position: absolute;
    left: 50%;
    bottom: 2.6vh;
    transform: translateX(-50%);
    width: 86vw;
    max-width: 1000px;
    text-align: center;
    line-height: 1.5;
    letter-spacing: .2px;
    color: #9ca3af;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    user-select: text;
    white-space: pre-line;
}

/* ======= iOS 弹窗 ======= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: modalFade .18s ease;
}

.modal.show {
    display: flex;
}

@keyframes modalFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    width: 82vw;
    max-width: 340px;
    background: rgba(18, 18, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 14px 14px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    color: #fff;
    text-align: center;
    transform: translateY(-2px);
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.modal-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ios-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: rgba(22, 22, 24, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 7px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    transition: transform .06s ease;
}

.ios-btn:active {
    transform: scale(0.98);
}

.ios-apple {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 18px;
}

.modal-close {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    cursor: pointer;
    user-select: none;
}

@media (prefers-reduced-motion: reduce) {
    .img-btn.glow::after {
        animation: none;
        display: none;
    }

    .img-btn,
    .img-btn:active,
    .ios-btn {
        transition: none;
    }

    .modal {
        animation: none;
    }
}

.modal,
.modal.show {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.modal {
    background: rgba(0, 0, 0, 0.35) !important;
}

/* ===== 桌面端 ===== */
@media (min-width: 1024px) {
    :root {
        --phone-w: 500px;
        --phone-h: calc(var(--phone-w) * 1920 / 1080);
    }

    .stage {
        position: relative;
        inset: auto !important;
        width: var(--phone-w);
        height: var(--phone-h);
        margin: 0 auto;
        transform: none !important;
    }

    .bg {
        position: absolute;
        inset: auto;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: var(--phone-w);
        height: var(--phone-h);
        background-position: top center;
        background-size: cover;
        background-repeat: no-repeat;
        z-index: 0;
    }

    .btn-top-left {
        top: 3.2%;
        left: 2.8%;
        width: 9.1667%;
        max-width: none;
    }

    .btn-top-right {
        top: 3.2%;
        right: 2.8%;
        width: 8.2%;
        max-width: none;
    }

    .logo {
        top: 1.5%;
        left: 50%;
        transform: translateX(-50%);
        width: 50%;
        max-width: none;
    }

    .btn-group {
        top: 63.6667%;
        width: 69.54%;
        gap: 1.3%;
    }

    .disclaimer {
        bottom: 2.6%;
        width: 86%;
    }

    .rmodal {
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .rmodal.is-open {
        display: flex;
    }

    .rmodal__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
    }

    .rmodal__dialog {
        position: relative;
        width: min(92vw, 360px);
        max-height: 80vh;
        overflow: auto;

        padding: 16px;
        border-radius: 18px;

        background: radial-gradient(120% 120% at 50% 0%,
                rgba(11, 18, 32, 0.92) 0%,
                rgba(14, 26, 51, 0.92) 55%,
                rgba(9, 18, 37, 0.92) 100%);

        border: 2px solid rgba(70, 140, 255, 0.50);

        box-shadow:
            0 0 0 2px rgba(40, 120, 255, 0.12) inset,
            0 18px 40px rgba(0, 0, 0, 0.45),
            0 0 24px rgba(40, 140, 255, 0.35);
        color: #e9f2ff;
    }

    .rmodal {
        align-items: flex-start;
        padding-top: 8vh;
    }


    .rmodal__close {
        position: absolute;
        top: 8px;
        right: 10px;
        border: 0;
        background: transparent;
        color: #9ec3ff;
        font-size: 24px;
        cursor: pointer;
        line-height: 1;
    }

    .route-head {
        padding: 6px 8px 2px;
        text-align: center;
    }

    .route-head .img-block {
        width: 88%;
        margin: 0 auto;
        display: block;
    }


    .route-list {
        list-style: none;
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .route-item {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
        border: 1px solid rgba(255, 255, 255, .12);
    }

    .route-tag {
        font-size: 12px;
        padding: 4px 10px;
        color: #9dc4ff;
        background: rgba(40, 120, 255, .18);
        border: 1px solid rgba(70, 140, 255, .45);
        border-radius: 999px;
        white-space: nowrap;
    }

    .route-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-self: center;
    }

    .route-flag {
        width: 24px;
        height: 24px;
        border-radius: 50%;
    }

    .route-name {
        font-size: 15px;
        font-weight: 600;
        letter-spacing: .4px;
    }


    .route-enter {
        position: relative;
        display: inline-block;
        --enter-h: 34px;
    }

    .route-enter .enter-img {
        display: block;
        height: var(--enter-h);
        width: auto;
    }

    .route-enter .enter-text {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 700;
        color: #fff;
        letter-spacing: .3px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
        pointer-events: none;
        user-select: none;
    }

    body.rmodal-open {
        overflow: hidden;
    }

    #btnPrimary[aria-disabled="true"] {
        pointer-events: auto;
    }

    body.rmodal-open {
        overflow: hidden
    }

    #btnPrimary[aria-disabled="true"] {
        pointer-events: auto;
    }

}

.rmodal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.rmodal.is-open {
    display: flex;
}

.rmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.01);
}

.rmodal__dialog {
    position: relative;
    width: min(92vw, 300px);
    max-height: 32vh;
    overflow: auto;
    padding: 2px;
    border-radius: 4px;

    background: radial-gradient(120% 120% at 50% 0%,
            rgba(65, 77, 155, 0.70) 0%,
            rgba(14, 26, 51, 0.82) 55%,
            rgba(180, 192, 174, 0.80) 100%);

    border: 3px solid rgba(70, 140, 255, 0.60);

    box-shadow:
        0 0 0 3px rgba(40, 120, 255, 0.22) inset,
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(40, 140, 255, 0.35);
    color: #e9f2ff;
}

.rmodal {
    align-items: flex-start;
    padding-top: 31vh;
}


.rmodal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #9ec3ff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.route-head {
    padding: 20px 24px 6px;
    text-align: center;
}

.route-head .img-block {
    width: 88%;
    margin: 0 auto;
    display: block;
}


.route-list {
    list-style: none;
    padding: 1px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.50), rgba(33, 25, 25, 0.5));
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.route-tag {
    font-size: 12px;
    padding: 4px 10px;
    color: #ffffff;
    background: rgba(50, 111, 203, 0.934);
    border: 1px solid rgba(25, 80, 169, 0.45);
    border-radius: 999px;
    white-space: nowrap;
}

.route-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: center;
}

.route-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.route-name {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .8px;
}


.route-enter {
    position: relative;
    display: inline-block;
    --enter-h: 34px;
}

.route-enter .enter-img {
    display: block;
    height: var(--enter-h);
    width: auto;
}

.route-enter .enter-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    pointer-events: none;
    user-select: none;
}

body.rmodal-open {
    overflow: hidden;
}

#btnPrimary[aria-disabled="true"] {
    pointer-events: auto;
}


.route-item {
    width: 96%;
    margin: 0 auto;
    padding: 2px 8px;
}


.route-flag {
    width: 12px;
    height: 12px;
}

.route-name {
    font-size: 15px;
}

.route-tag {
    font-size: 10px;
    padding: 4px 10px;
}

.route-enter {
    --enter-h: 24px;
}

.route-enter .enter-text {
    font-size: 8px;
}

.rmodal__dialog {
    border: 2px solid transparent;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgb(198, 175, 70), rgb(202, 177, 66)) padding-box,
        linear-gradient(180deg, rgb(218, 203, 141), #d9ce7e 30%, #d9ce7e 70%, rgb(214, 193, 110)) border-box;

    box-shadow:
        0 0 22px rgb(65, 65, 219),
        0 14px 32px rgb(223, 223, 223),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

.route-pointer {
    width: 0;
    height: 0;
    margin: 10px auto 12px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid rgba(20, 24, 46, .92);
    filter: drop-shadow(0 0 10px rgba(179, 92, 255, .35));
}

.route-pointer {
    display: none !important;
}

.rmodal__dialog {
    position: relative;
    overflow: visible;
    --bdw: 2px;
    --ptr: 10px;
    --ptr-h: 18px;
    --ptr-b: 8px;
    --ptr-shift: -10px;
    --ptr-drop: 10px;
    border: var(--bdw) solid transparent;
    border-radius: 20px;
    background:
        linear-gradient(180deg, #051057e1 30%, rgba(81, 115, 224, 0.82)) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, .45), #d9c67a 30%, #d6c45e 70%, rgb(201, 164, 43)) border-box;
    box-shadow:
        0 0 22px rgba(179, 92, 255, .36),
        0 14px 32px rgba(0, 0, 0, .45),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    filter: drop-shadow(0 0 10px rgba(179, 92, 255, .35));
}

.rmodal__dialog::before {
    content: "";
    position: absolute;
    left: calc(50% + var(--ptr-shift));
    bottom: calc(-1 * var(--bdw) - var(--ptr-drop));
    border-left: calc(var(--ptr) + var(--bdw)) solid transparent;
    border-right: calc(var(--ptr) + var(--bdw)) solid transparent;
    border-top: calc(var(--ptr) + var(--bdw)) solid #e1c873;
    filter: drop-shadow(0 0 10px rgba(179, 92, 255, .35));
    pointer-events: none;
    z-index: 0;
}

.rmodal__dialog::after {
    content: "";
    position: absolute;
    left: calc(50% + var(--ptr-shift));
    bottom: calc(0px - var(--ptr-drop));
    border-left: var(--ptr) solid transparent;
    border-right: var(--ptr) solid transparent;
    border-top: var(--ptr) solid rgb(90, 122, 226);
    pointer-events: none;
    z-index: 1;
}