@keyframes scm-loading-text {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75% {
        content: "...";
    }
}

@keyframes scm-loading-hide {
    0% {
        width: 100%;
        height: 100%;
    }

    100% {
        width: 0;
        height: 0;
    }
}

@keyframes scm-loading-circle {
    100% {
        transform: rotate(360deg);
    }
}

/*loading面板*/
body>div.scm-loading {
    position: fixed;
    background: #fff;
    width: 100%;
    height: 100%;
    z-index: 1071;
    opacity: 0;
    transition: opacity .5s ease;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*应用LOGO*/
body>div.scm-loading .scm-logo {
    margin-bottom: 30px;
}


body>div.scm-loading .scm-logo img {
    width: 300px;
    vertical-align: bottom;
}

/*加载动画*/
body>div.scm-loading .scm-animate {
    background-color: #fff;
}

/*环形加载动画*/
.scm-loading-1 {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -.125em;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: .75s linear infinite scm-loading-circle;
    animation: .75s linear infinite scm-loading-circle;
}

.scm-loading-1 .scm-only {
    position: absolute;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    white-space: nowrap;
    border: 0;
}

.scm-loading-2 {
    position: relative;
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    border-top-color: rgba(0, 0, 0, 0.2);
    border-right-color: rgba(0, 0, 0, 0.2);
    border-bottom-color: rgba(0, 0, 0, 0.2);
    border-radius: 100%;

    animation: scm-loading-circle infinite 0.75s linear;
}

/*提示信息*/
body>div.scm-loading .scm-message {
    margin-top: 1rem;
}

body>div.scm-loading .scm-text::after {
    animation: scm-loading-text 3s infinite;
    content: "";
    position: absolute;
    margin: 0 0.1em;
}

body:not(.loaded)>div.scm-loading {
    opacity: 1;
}

body:not(.loaded) {
    overflow: hidden;
}

body.loaded>div.scm-loading {
    animation: scm-loading-hide .5s linear .5s forwards;
}