/* 基础设置 */
:root {
    --primary-color: #037D41;
    --font-size-base: 20px;

}

body,
html {
    margin: 0;
    padding: 0;
    font-size: var(--font-size-base);
    font-family: Microsoft YaHei, Microsoft YaHei, Arial, sans-serif;
    height: 100%;
    overflow: hidden;
    /* 防止页面出现滚动条 */
    background-color: #F2F0ED;
}

body {
    height: 100vh;
    background: radial-gradient(circle, rgb(239 239 239), rgb(147 147 147));
}

.title {
    text-align: center;
    color: #fff;
    font-size: 16px;
    position: fixed;
    width: 100%;
    opacity: 0.8;
}

.loading {
    position: fixed;
    z-index: 1001;
    width: 100%;
    height: 100%;
    background: rgba(31, 32, 31, 0.56);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    display: none;
}

.loading>div {
    background-color: #fff;
    width: 9.35rem;
    height: 9.35rem;
    border: 0.4rem;
    color: #037D41;
    border-radius: 0.4rem;
}

#loadingBox.loading>div {
    background-color: #ffffff00;
    width: 9.35rem;
    height: 9.35rem;
    border: 0.4rem;
    color: #037D41;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading-value {
    color: #fff;
    font-size: 14px;
}

#loadingBox.loading>div>div {
    margin-top: 0;
}

.loading>div>div {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 1.5rem;
    width: 100%;
    height: 6.5rem;
}

.loading>div p {
    padding: 0;
    margin: 0;
    text-align: center;
    margin-top: 1rem;
}

.loading div img {
    width: 100%;
    height: 100%;
    animation: rotate 2s linear infinite;
    position: absolute;

}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.tips,
.tips2,
.tips3 {
    position: fixed;
    top: 50%;
    left: 50%;
    color: #ffffff;
    text-align: center;
    width: 150px;
    margin-left: -75px;
    z-index: 999;
    opacity: 0.8;
    display: none;
}

.tips img,
.tips2 img,
.tips3 img {
    width: 60px;
    animation: img-move 3s linear infinite;
}

.tips p,
.tips2 p,
.tips3 p {
    padding: 0;
    margin: 0;
    font-size: 14px;
}

/* img 持续左右移动，又要返回 */
@keyframes img-move {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-20px);
        /* 移动到最右边，但不完全移出容器 */
    }

    50% {
        transform: translateX(0px);
        /* 移动到最右边，但不完全移出容器 */
    }

    75% {
        transform: translateX(+20px);
        /* 移动到最右边，但不完全移出容器 */
    }

    100% {
        transform: translateX(0);
        /* 返回起始位置 */
    }
}

.tips2 {
    display: none;
}

.tips2 img {
    /* animation: img-move2 3s linear infinite; */
    animation:unset
}

/* img 持续左右移动，又要返回 */
@keyframes img-move2 {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(+10px, +10px);
    }

    50% {
        transform: translate(0px, 0px);
    }

    75% {
        transform: translate(-10px, -10px);
    }

    100% {
        transform: translate(0, 0);
    }
}


.tips3 {
    display: none;
}

.tips3 img {
    animation: img-flash 3s linear infinite; /* 总时长为4秒，以便两次闪烁之间有2秒间隔 */
}

.ruler {
    position: absolute;
    bottom: 10px;
    left: 10px;
    /*background-color: rgba(0, 0, 0, 0.7);*/
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none; /* 确保不会阻挡鼠标事件 */
    text-align: center;
}
.ruler_size{
    height: 5px;
    border-radius: 4px;
    width:120px;
    margin-top:5px;
    background: #fff;
}

/* 定义闪烁效果 */
@keyframes img-flash {
    0% {
        opacity: 1; /* 初始状态不透明 */
    }
    25% {
        opacity: 0; /* 在1秒后变为完全透明 */
    }
    30% {
        opacity: 1; /* 立刻恢复为不透明，形成快速闪烁效果 */
    }
    50% {
        opacity: 1; /* 维持不透明状态直到下一次闪烁 */
    }
    75% {
        opacity: 0; /* 再次变为完全透明 */
    }
    80% {
        opacity: 1; /* 立刻恢复为不透明，形成第二次快速闪烁 */
    }
    100% {
        opacity: 1; /* 最终保持不透明 */
    }
}