
html, body {
    -ms-touch-action: none;
    background: #021048;
    padding: 0;
    margin: 0;
    border: 0;
    width:100%;
    height: 100%;
    overflow: hidden;
}

/* 背景图：手机铺满；宽屏按海报比例居中，避免裁切后按钮对不齐 */
 #bg{
    width: 100%;
    height: 100%;
    vertical-align: middle;
    text-align: center;
    position: relative;
    overflow: hidden;
}
#bg_img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media screen and (min-aspect-ratio: 1417/2957) {
    #bg{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 100%;
        width: calc(100vh * 1417 / 2957);
        max-width: 100%;
    }
    #bg_img{
        object-fit: fill;
    }
}
/* 遮罩层 */
#bg2{
    display: none;
    width: 100%;
    height: 100%;
    background-image:url('../images/mask.jpg');
    background-size:100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    top:0;
    left: 0;
}
#apple_bg{
    display: none;
}
/* 下载按钮：对齐海报空白处，宽屏随海报等比缩放 */
#download_url{
    display: block;
    position: absolute;
    top: 37.9%;
    left: 50%;
    width: 68%;
    margin-left: -34%;
    cursor: pointer;
    text-decoration:none;
    animation: jump 1.2s ease-in-out infinite;
    z-index: 2;
}
#download_url img{
    width: 100%;
    height: auto;
    display: block;
    border: 0;
}

#play{
    display: inline-block;
    position: absolute;
    top: 55%;
    left: 0; 
    right: 0;
    vertical-align: middle;
    cursor: inherit;
    text-decoration:none;
    animation: jump 1s linear infinite;
}

#qrcode{
    display: inline-block;
    position: absolute;
    top: 30%;
    left: 0; 
    right: 0;
    vertical-align: middle;
    cursor: inherit;
    text-decoration:none;
}

@keyframes jump{
    0%{
        transform: scale(1);
        opacity: 1;
    }
    50%{
        transform: scale(1.04);
        opacity: 1;
    }
    100%{
        transform: scale(1);
        opacity: 1;
    }
}

.spinner {
    margin: 100px auto;
    width: 40px;
    height: 40px;
    position: relative;
}

.container1 > div, .container2 > div, .container3 > div {
    width: 10px;
    height: 10px;
    background-color: greenyellow;

    border-radius: 100%;
    position: absolute;
    -webkit-animation: bouncedelay 1.2s infinite ease-in-out;
    animation: bouncedelay 1.2s infinite ease-in-out;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.spinner .spinner-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.container2 {
    -webkit-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
}

.container3 {
    -webkit-transform: rotateZ(90deg);
    transform: rotateZ(90deg);
}

.circle1 { top: 0; left: 0; }
.circle2 { top: 0; right: 0; }
.circle3 { right: 0; bottom: 0; }
.circle4 { left: 0; bottom: 0; }

.container2 .circle1 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.container3 .circle1 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

.container1 .circle2 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.container2 .circle2 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

.container3 .circle2 {
    -webkit-animation-delay: -0.7s;
    animation-delay: -0.7s;
}

.container1 .circle3 {
    -webkit-animation-delay: -0.6s;
    animation-delay: -0.6s;
}

.container2 .circle3 {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
}

.container3 .circle3 {
    -webkit-animation-delay: -0.4s;
    animation-delay: -0.4s;
}

.container1 .circle4 {
    -webkit-animation-delay: -0.3s;
    animation-delay: -0.3s;
}

.container2 .circle4 {
    -webkit-animation-delay: -0.2s;
    animation-delay: -0.2s;
}

.container3 .circle4 {
    -webkit-animation-delay: -0.1s;
    animation-delay: -0.1s;
}

@-webkit-keyframes bouncedelay {
    0%, 80%, 100% { -webkit-transform: scale(0.0) }
    40% { -webkit-transform: scale(1.0) }
}

@keyframes bouncedelay {
    0%, 80%, 100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    } 40% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}
#loading{
	position: absolute;
	top:  50%;
	left: 45%;
	display: none;
}

/* 注册弹窗：配色跟随落地页的深紫和金色 */
.reg-mask{
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    height: 100dvh;
    padding: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(3, 6, 28, 0.72);
    touch-action: manipulation;
}
.reg-mask.show{
    display: flex;
    align-items: center;
    justify-content: center;
}
.reg-dialog{
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 100%;
    margin: 0;
    padding: 0 14px 16px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    border-radius: 18px;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(120, 70, 220, 0.45), transparent 55%),
        linear-gradient(180deg, #4a228c 0%, #34156e 42%, #220b52 100%);
    border: 2px solid #e7c15a;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 22px rgba(231, 193, 90, 0.28), inset 0 0 30px rgba(90, 30, 160, 0.35);
    font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}
.reg-head{
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -14px 10px;
    padding: 14px 48px 8px;
    background: linear-gradient(180deg, #4c248f 0%, #431f86 70%, rgba(67, 31, 134, 0.96) 100%);
}
.reg-close{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 2px solid #ffe08a;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffe57a 0%, #f0b429 55%, #d89216 100%);
    color: #6a3a08;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 0 #a56a10, 0 6px 12px rgba(0, 0, 0, 0.35);
}
.reg-title{
    margin: 0;
    text-align: center;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: 4px;
    font-weight: 800;
    color: #f6c445;
    background: linear-gradient(180deg, #fff4c4 0%, #f6c445 45%, #e08a12 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.reg-field{
    display: flex;
    align-items: center;
    height: 44px;
    margin: 0 0 10px;
    padding: 0 12px 0 10px;
    box-sizing: border-box;
    border-radius: 24px;
    background: linear-gradient(180deg, #4b2788 0%, #3a1b72 100%);
    border: 1px solid rgba(255, 214, 120, 0.35);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}
.reg-icon{
    flex: none;
    width: 28px;
    height: 28px;
    margin-right: 6px;
    color: #c9a6ff;
}
.reg-icon svg{
    width: 28px;
    height: 28px;
    display: block;
}
.reg-field input,
.reg-area{
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
}
.reg-field input::placeholder{
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}
.reg-area{
    flex: none;
    align-self: center;
    width: auto;
    height: auto;
    padding-right: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffe14a;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
}
.reg-phone{
    padding-left: 8px;
}
.reg-divider{
    flex: none;
    width: 1px;
    height: 22px;
    margin: 0 8px;
    background: rgba(255, 255, 255, 0.55);
}
.reg-send{
    flex: none;
    max-width: 46%;
    border: 0;
    padding: 8px 0;
    background: transparent;
    color: #ffe14a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.reg-send:disabled{
    color: rgba(255, 225, 74, 0.55);
    cursor: default;
}
.reg-toast{
    display: none;
    position: fixed;
    z-index: 120;
    left: 50%;
    top: 62%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    padding: 16px 32px;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid #e7c15a;
    background: rgba(28, 10, 62, 0.94);
    color: #ffe14a;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}
.reg-toast.show{
    display: block;
}
.reg-msg{
    min-height: 18px;
    margin: 0 6px 8px;
    color: #ffd0d0;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}
.reg-submit{
    display: block;
    width: 68%;
    max-width: 240px;
    height: 48px;
    margin: 4px auto 0;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    color: #fff8e8;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 4px;
    font-family: inherit;
    text-shadow: 0 2px 0 rgba(20, 70, 10, 0.45);
    background: linear-gradient(180deg, #b6f56a 0%, #3dcb3a 42%, #149b22 100%);
    box-shadow: 0 4px 0 #0c6e18, 0 8px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.reg-submit:disabled{
    opacity: 0.7;
    cursor: default;
}
.reg-skip{
    display: block;
    width: 100%;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffe14a;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
}
@media screen and (max-width: 360px){
    .reg-mask{ padding-left: 10px; padding-right: 10px; }
    .reg-dialog{ padding-left: 12px; padding-right: 12px; }
    .reg-title{ font-size: 24px; letter-spacing: 2px; }
    .reg-send{ font-size: 13px; }
    .reg-field input::placeholder{ font-size: 12px; }
}
@media screen and (max-height: 700px){
    .reg-head{ padding-top: 10px; padding-bottom: 6px; margin-bottom: 6px; }
    .reg-title{ font-size: 22px; }
    .reg-field{ height: 40px; margin-bottom: 8px; }
    .reg-submit{ height: 42px; font-size: 20px; }
    .reg-msg{ min-height: 16px; margin-bottom: 4px; }
}