/*****
    ANIMATION
 *****/
@keyframes semicircle {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce-glow {

    0%,
    100% {
        transform: translateY(0) scale(0.8);
        text-shadow: 0 0 3px #fff, 0 0 5px #ff4d4d, 0 0 8px #ff4d4d;
    }

    50% {
        transform: translateY(0) scale(1.0);
        text-shadow: 0 0 3px #fff, 0 0 5px #ff4d4d, 0 0 8px #ff4d4d;
    }
}

/*****
    ANIMATION
 *****/
/*****
    GLOBAL
 *****/
* {
    box-sizing: border-box;
}

html {
    font-size: calc(0.0075 * 100vw);
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

html[device="mobile"] {
    font-size: calc(100vw * 0.02);
}

body {
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    overflow: hidden;
    overscroll-behavior: none;
    background-color: #EDDDC3;
    background-image: url("../images/bg_pc.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    width: 100%;
    height: 100%;
}

html[device="mobile"] body {
    background-image: url("../images/bg_mb.webp");
}

img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

a {
    text-decoration: none;
}

/*****
    GLOBAL
 *****/
/*****
    CONTAINER
 *****/
.main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.main-container .top-logo {
    width: 35.83rem;
    height: 7.94rem;
    margin: 1rem auto;
}

.main-container .main-image {
    width: auto;
    height: 28.57rem;
    margin: 0 auto;
}

.main-container .redirect-link {
    display: flex;
    width: 65%;
    margin: 0 auto;
}

.main-container .redirect-link .redirect-link-item {
    width: 11.66rem;
    height: 13.26rem;
    background: linear-gradient(180deg, #B15800 0%, #3B1C0E 100%);
    border: 1px solid #FF8000;
    border-radius: 1.04rem;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
}

.main-container .redirect-link .redirect-link-item .redirect-link-no {
    position: absolute;
    background: linear-gradient(360deg, #FCFA16 0%, #B15800 100%);
    width: 2.54rem;
    height: 2.2rem;
    border-top-left-radius: 1rem;
    border-bottom-right-radius: .555rem;
    font-family: Roboto;
    font-weight: 900;
    font-size: 1.72rem;
    line-height: 100%;
    text-align: center;
    color: #622C13;
    padding-top: .2rem;
}

.main-container .redirect-link .redirect-link-item .redirect-link-circle {
    position: relative;
    margin: 2rem auto 1.2rem auto;
    background: #3B1C0E;
    width: 6.52rem;
    height: 6.52rem;
    border-radius: 50%;
    display: flex;
}

.main-container .redirect-link .redirect-link-item .redirect-link-circle .semicircle {
    position: relative;
    width: 5.83rem;
    height: 5.83rem;
    border-radius: 50%;
    margin: auto;

}

.main-container .redirect-link .redirect-link-item .redirect-link-circle .semicircle.active {
    animation: semicircle 2s;
}

.main-container .redirect-link .redirect-link-item .redirect-link-circle .semicircle img {
    width: 2.91rem;
    height: 5.83rem;
    float: right;
}

.main-container .redirect-link .redirect-link-item .redirect-link-speed {
    position: absolute;
    color: #FFFFFF;
    left: 2rem;
    top: 1.6rem;
    z-index: 2;
    cursor: pointer;
}

.main-container .redirect-link .redirect-link-item .redirect-link-speed b {
    font-family: Roboto;
    font-weight: 900;
    font-size: 2.08rem;
    line-height: 100%;
    text-align: center;
    border-radius: 50%;
}

.main-container .redirect-link .redirect-link-item .redirect-link-speed p {
    font-family: Roboto;
    font-weight: 900;
    font-size: 1.18rem;
    line-height: 100%;
    text-align: center;
}

.main-container .redirect-link .redirect-link-item .backdrop {
    height: 5.47rem;
    width: 5.47rem;
    position: absolute;
    left: .5rem;
    top: .4rem;
    z-index: 1;
}

.main-container .redirect-link .redirect-link-item .redirect-link-button {
    margin: 0 auto;
    background: rgb(125 95 74);
    width: 6.41rem;
    height: 1.8rem;
    border-radius: 1rem;
    display: flex;
}

.main-container .redirect-link .redirect-link-item .redirect-link-button:hover {
    transform: scale(1.2);
}

.main-container .redirect-link .redirect-link-item .redirect-link-button-inside {
    margin: auto;
    background: radial-gradient(50% 91.59% at 50% 50%, #FFD900 0%, #FF8000 100%);
    border-radius: 1rem;
    width: 6rem;
    height: 1.38rem;
}

.main-container .redirect-link .redirect-link-item .redirect-link-button-inside p {
    font-family: Roboto;
    font-weight: 700;
    font-size: .8rem;
    text-align: center;
    text-transform: capitalize;
    color: #FFF;
    margin-top: .15rem;
}

.app-download {
    display: flex;
    justify-content: space-between;
    width: 62.56rem;
    margin: 1rem auto;
}

.app-download .qr-download {
    width: 9.58rem;
    height: 9.58rem;
    background-color: #FFF;
}

.app-download .app-download-img {
    width: 18.33rem;
    height: 7.02rem;
    margin: auto;
    animation: bounce-glow 1.5s infinite ease-in-out;
}

.android,
.ios {
    display: flex;
    width: 50%;
}

/*****
    CONTAINER
 *****/
/*****
    ONLINE SERVICE (悬浮客服)
 *****/
@keyframes cs-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 128, 0, 0.55);
    }

    70% {
        box-shadow: 0 0 0 1.4rem rgba(255, 128, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 128, 0, 0);
    }
}

.online-service {
    position: fixed;
    right: 1.6rem;
    bottom: 1.6rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
}

.online-service .cs-label {
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #FFD24D;
    background: rgba(59, 28, 14, 0.88);
    border: 1px solid #FF8000;
    border-radius: 1rem;
    padding: .35rem .8rem;
    white-space: nowrap;
    box-shadow: 0 .2rem .5rem rgba(0, 0, 0, 0.35);
}

.online-service .cs-btn {
    position: relative;
    width: 5.2rem;
    height: 5.2rem;
    border-radius: 50%;
    background: radial-gradient(50% 91.59% at 50% 50%, #FFD900 0%, #FF8000 100%);
    border: .28rem solid #FFFFFF;
    /* 白色描边：让金色按钮在橙色卡片上也清晰可辨 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 .3rem .9rem rgba(0, 0, 0, 0.5);
    animation: cs-pulse 2s infinite;
    transition: transform .2s ease;
}

.online-service .cs-btn svg {
    width: 2.8rem;
    height: 2.8rem;
    color: #FFFFFF;
}

.online-service:hover .cs-btn {
    transform: scale(1.1);
}

/*****
    ONLINE SERVICE
 *****/
/*****
    MOBILE
 *****/
html[device="mobile"] .online-service {
    right: 3vw;
    bottom: 18vh;
    /* 抬到拇指易触区，避开底部浏览器栏/手势条 */
}

html[device="mobile"] .online-service .cs-label {
    display: none;
}

html[device="mobile"] .online-service .cs-btn {
    width: 6.4rem;
    height: 6.4rem;
}

html[device="mobile"] .online-service .cs-btn svg {
    width: 3.4rem;
    height: 3.4rem;
}

html[device="mobile"] .redirect-link {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 90%;
    gap: 1rem;
}

html[device="mobile"] .redirect-link .redirect-link-item {
    width: 14rem;
}

html[device="mobile"] .app-download {
    width: 35.9rem;
    margin: 2rem auto;
}

html[device="mobile"] .android,
html[device="mobile"] .ios {
    flex-direction: column;
    gap: 1rem;
}

html[device="mobile"] .app-download .qr-download {
    margin: 0 auto;
}

html[device="mobile"] .main-container .redirect-link .redirect-link-item .redirect-link-button {
    width: 8.41rem;
    height: 2.3rem;
}

html[device="mobile"] .main-container .redirect-link .redirect-link-item .redirect-link-button-inside {
    width: 7.7rem;
    height: 1.8rem;
}

html[device="mobile"] .main-container .redirect-link .redirect-link-item .redirect-link-button-inside p {
    font-size: 1rem;
}

html[device="mobile"] .main-image {
    height: 37.57rem;
}

/*****
    MOBILE
 *****/
