body {
    padding: 0;
    margin: 0
}

#unity-container {
    position: absolute
}

#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}

#unity-container.unity-mobile {
    width: 100%;
    height: 100%
}

#unity-canvas {
    background: #231F20
}

/* .unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none } */
/* #unity-logo { width: 154px; height: 130px; background: url('unity-logo-light.png') no-repeat center } */
/* #unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-light.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-light.png') no-repeat center } */
#unity-footer {
    position: relative
}

.unity-mobile #unity-footer {
    display: none
}

#unity-webgl-logo {
    float: left;
    width: 204px;
    height: 38px;
    background: url('webgl-logo.png') no-repeat center
}

#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: arial;
    font-size: 18px
}

#unity-fullscreen-button {
    float: right;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none
}


body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: #f5f5f5;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    /* background: url('./img/ic_bg.png') no-repeat center;
    background-size: cover; */
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.recognition-card {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 100px;
    height: 150px;
}



.instructions {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 193px;
    height: 116px;
}

.instructions2 {
    position: absolute;
    bottom: 230px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 128px;
    height: 14px;
}

.loading-btn {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 60px;
    background: url('ic_loading_01.png') no-repeat center;
    background-size: cover;
    color: #fff;
    text-align: center;
    line-height: 50px;

}

.loadingText {
    position: absolute;
    bottom: 20px;
    left: 38%;
    width: 65px;
    height: 23px;
}



.animated-card {
    position: absolute;
    top: 39.6%;
    left: 57.5%;
    transform: translate(-90%, -120%);
    width: 75px;
    height: 118px;
    /* animation: moveToPhone 2s linear infinite; */
    /* 循环动画 */
}

.play-cardanimation {
    animation: moveToPhone 1s linear forwards;
    /* forwards 保持动画结束状态 */
}

.phone-img {
    position: absolute;
    top: 40%;
    left: 58%;
    transform: translate(-50%, -50%);
    width: 291px;
    height: 330px;
    /* animation: moveToCard 2s linear infinite; */
    /* 循环动画 */
}

.play-phoneanimation {
    animation: moveToCard 1s linear forwards;
    /* forwards 保持动画结束状态 */
}

/* 动画：卡片移动至手机屏幕内的识别框（佛像位置） */
@keyframes moveToPhone {
    0% {
        top: 20px;
        left: 20px;
        /* opacity: 0.5; */
    }

    100% {
        top: 39.6%;
        left: 57.5%;
        transform: translate(-90%, -120%);
        opacity: 1;
    }
}

@keyframes moveToCard {
    0% {
        top: 50%;
        left: 70%;
    }

    100% {
        top: 40%;
        left: 58%;
    }
}



.popup {
    position: absolute;
    width: 302px;
    height: 322px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background-image: url('ic_tips_box01.png');
    background-size: cover;
}

.OptionBg {
    width: 274px;
    height: 54px;
    background-image: url('ic_choosebox.png');
    background-size: cover;
}

.shield-icon {
    width: 46px;
    height: 52px;
    margin: 0 auto 20px;
    margin-top: 28px;
    background-image: url('ic_permission.png');
    /* 盾牌图标 */
    background-size: cover;
}

h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.Title-Size {
    height: 40px;
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: 500;
    font-size: 20px;
    color: #FFFFFF;
    line-height: 30px;
    text-align: center;
    font-style: normal;
    text-transform: none;
}

.Title-Small {
    height: 40px;
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: 400;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 30px;
    text-align: center;
    font-style: normal;
    text-transform: none;
}

p {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
}

select {
    width: 80%;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
}

.buttons {
    display: flex;
    justify-content: space-around;
    gap: 0px;

}

button {
    /* padding: 10px 20px; */
    border: none;
    border-radius: 5px;
    /* font-size: 18px; */
    cursor: pointer;
}

.later {
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    text-align: center;
    font-style: normal;
    text-transform: none;
    background-image: url('btn_afterwards.png');
    width: 92px;
    height: 54px;
    margin-left: 10px;
    background-size: cover;
    background-color: rgba(216, 182, 122, 0);
    border-radius: 1px;
    border-color: rgba(216, 182, 122, 0.40);
}

.allow {
    width: 174px;
    height: 54px;
    margin-right: 10px;
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 30px;
    text-align: center;
    font-style: normal;
    text-transform: none;
    background-image: url('btn_allow.png');
    background-size: cover;
}

.flip-container {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 198px;
    height: 294px;
    perspective: 1000px;
    /* 视角距离，决定翻转立体感 */
    transition: opacity 0.3s;
    /* 隐藏/显示过渡 */
    /* cursor: pointer; */
}

.flipper {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 1s;
    transform-style: preserve-3d;
    /* 保留3D空间 */
}

.flip-container.hidden {
    opacity: 0;
    /* 隐藏时完全透明 */
    display: none;
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    /* 隐藏背面 */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.front {
    transform: rotateY(0deg);
    /* 初始显示正面 */
}

.back {
    transform: rotateY(180deg);
    /* 背面初始旋转180度 */
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: 10px; */
}

/* 翻转状态类 */
.flip-container.active .flipper {
    transform: rotateY(180deg);
}
