/**{*/
/*    margin: 0;*/
/*    padding: 0;*/
/*}*/

@font-face {
    font-family: 'GenSenMaruGothicTW';
    /* 字体名称，自定义 */
    src: url('/skin/font/GenSenMaruGothicTW.woff2') format('woff2');
    /* 字体文件的相对或绝对路径 */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



body {
    font-family: 'GenSenMaruGothicTW' !important;
}

body.no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

#wheel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#wheel-modal .title {
    width: 30%;
}

#wheel-modal .title img {
    display: block;
    margin: 0 auto;
    width: 100%;
}

#wheel-modal .wheel-container {
    position: relative;
    width: 30vw;
    margin-top: 35px;
}

#wheel-modal .wheel-container .wheel {
    position: relative;
    width: 100%;
}

#wheel-modal .wheel-container .wheel img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#wheel-modal .wheel-container .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    width: 18%;
}

#wheel-modal .wheel-container .play-button img {
    width: 100%;
}

#wheel-modal .wheel-container .cancel-button {
    position: absolute;
    top: -2%;
    right: -12%;
    width: 9%;
    cursor: pointer;
    z-index: 6;
}

#wheel-modal .wheel-container .cancel-button img {
    width: 100%;
}


.congrats-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* display: flex; */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.congrats-modal .modal-content {
    position: relative;
    background-color: #c6e9ff;
    width: 550px;
    padding: 80px 0 40px;
    border-radius: 10px;
    text-align: center;
    transform: scale(0.1);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* 添加动画效果的类 */
.congrats-modal.show-animation .modal-content {
    transform: scale(1);
    opacity: 1;
}

.congrats-modal .modal-content .modal-title {
    position: absolute;
    top: -24%;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 85%;
}

.congrats-modal .modal-content .modal-title img {
    width: 100%;
}

.congrats-modal .modal-content .modal-text {
    margin-top: 30px;
    line-height: 2em;
}

.congrats-modal .modal-content .modal-text p {
    font-size: 28px;
    line-height: 1.5;
}

.congrats-modal .modal-content .modal-text .font-orange {
    color: #f57e27;
}


.congrats-modal .modal-content .modal-button button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;

}

.congrats-modal .modal-content .modal-button {
    display: inline-block;
    background-color: #21b0ff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 2% 15%;
    font-size: 30px;
    margin-top: 6%;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    box-shadow:
        3px 3px 7px rgba(0, 0, 0, .5),
        -3px -3px 7px rgba(255, 255, 255, .85),
        inset 0 0 0 rgba(255, 255, 255, .85),
        inset 0 0 0 rgba(0, 0, 0, .5);
    animation: redPoint 1.8s ease infinite;

    &:hover {
        box-shadow: 0px 0px 20px 2px rgba(255, 255, 255, 1);
        /* box-shadow:
            0 0 0 rgba(0, 0, 0, .4),
            0 0 0 rgba(255, 255, 255, .9),
            inset -3px -3px 7px rgba(255, 255, 255, .9),
            inset 3px 3px 7px rgba(0, 0, 0, .4);
        font-size: 28px; */
    }

}

.congrats-modal .modal-content .cancel-button {
    position: absolute;
    top: -17%;
    right: -14%;
    width: 8%;
    cursor: pointer;
}

.congrats-modal .modal-content .cancel-button img {
    width: 100%;
}




/* 礼花特效样式 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    z-index: 9999;
}

.confetti-left {
    left: 10%;
    top: 50%;
}

.confetti-right {
    right: 10%;
    top: 50%;
}

/* 不再使用CSS动画，改为JavaScript控制 */
.shine {
    position: absolute;
    background: white;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0;
    animation: shine 1.5s ease-out forwards;
}

@keyframes shine {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.ring {
    position: absolute;
    width: 32.5vw;
    height: 32.5vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;

}

.dot {
    position: absolute;
    width: 1vw;
    height: 1vw;
    border-radius: 50%;
    background: #fff;
    transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    z-index: 4;
}

.dot.active {
    box-shadow: 0 0 15px currentColor, 0 0 30px currentColor, 0 0 40px currentColor;
}

.dot.tail {
    opacity: 0.5;
    box-shadow: 0 0 6px currentColor;
}

.dot.winner {
    animation: winnerFlash 0.5s ease-in-out infinite alternate;
}

.wheel-bg {
    position: absolute;
    width: 112%;
    height: 112%;
    background-color: #0ca8ff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

@keyframes winnerFlash {
    0% {
        background-color: currentColor;
        box-shadow: 0 0 20px currentColor;
    }

    100% {
        background-color: #fff;
        box-shadow: 0 0 40px currentColor;
    }
}

button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    background: #008fe2;
    color: #fff;
    border: none;
    border-radius: 8px;
    transition: background 0.2s;
}

button:hover {
    background: #0070b6;
}

#wheel-modal .tips {
    position: relative;
    margin-top: 3%;
    color: #f00;
    z-index: 3;
}


/* 响应式：适配手机屏幕，最小320px */
@media screen and (max-width: 1024px) {
    #wheel-modal .title {
        width: 50%;
    }

    #wheel-modal .wheel-container {
        width: 50vw;
    }
    .ring {
        width: 54vw;
        height: 54vw;
    }
    .dot {
        width: 1.5vw;
        height: 1.5vw;
    }

    #wheel-modal .tips {
        margin-top: 5%;
    }
}

@media screen and (max-width: 650px) {
    #wheel-modal .title {
        width: 80vw;
    }

    #wheel-modal .title img {
        width: 100%;
    }

    #wheel-modal .wheel-container {
        width: 86vw;
    }

    #wheel-modal .wheel-container .play-button {
        width: 22vw;
        min-width: 48px;
        max-width: 70px;
    }

    .congrats-modal .modal-content {
        width: 90vw;
        min-width: 0;
        padding: 12vw 0 8vw;
    }

    .congrats-modal .modal-content .modal-title {
        width: 77vw;
        top: -16vw;
    }

    .congrats-modal .modal-content .modal-text p {
        font-size: 25px;
        word-break: break-all;
    }

    .congrats-modal .modal-content .modal-button {
        font-size: 24px;
        padding: 2vw 10vw;
        margin-top: 6vw;
    }

    .congrats-modal .modal-content .cancel-button {
        right: -3%;
        width: 8vw;
        top: -24%;
    }

    .confetti {
        width: 8px;
        height: 8px;
    }

    .shine {
        width: 10px;
        height: 10px;
    }

    .ring {
        width: 65vw;
        height: 65vw;
    }

    .dot {
        width: 2vw;
        height: 2vw;
    }

    #wheel-modal .tips {
        padding: 0 5%;
        text-align: center;
        margin-top: 10%;
    }

}

@media screen and (max-width: 425px) {
    .congrats-modal .modal-content {
        padding: 15vw 0 8vw;
    }

    .congrats-modal .modal-content .modal-text p {
        font-size: 21px;
    }

    .congrats-modal .modal-content .modal-button {
        font-size: 20px;
    }

    .ring {
        width: 94.5vw;
        height: 94.5vw;
    }

    .wheel-bg {
        width: 112%;
        height: 112%;
    }

    .dot {
        width: 3vw;
        height: 3vw;
    }

    #wheel-modal .wheel-container .cancel-button {
        right: -4%;
    }
}