@-webkit-keyframes nprogress-spinner {
    0% {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes nprogress-spinner {
    0% {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#nprogress {
    pointer-events: none;
}

#nprogress .bar {
    background: #22bb6d; /* ? 修改后的横条颜色 */
    position: fixed;
    z-index: 1031;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
}

#nprogress .peg {
    display: block;
    position: absolute;
    right: 0;
    width: 100px;
    height: 100%;
    box-shadow: 0 0 10px #22bb6d, 0 0 5px #22bb6d;
    opacity: 1;
    transform: rotate(3deg) translate(0, -4px);
}

/* ? 修改 Spinner -> 使用自定义图片且居中 */
#nprogress .spinner {
    display: block;
    position: fixed;
    z-index: 1031;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
}

/* ? 不再使用旋转圆形，换成图片 */
#nprogress .spinner-icon {
    width: 100%;
    height: 100%;
    background-image: url("/themes/theme-pix/assets/img/loading.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nprogress-custom-parent {
    overflow: hidden;
    position: relative;
}

.nprogress-custom-parent #nprogress .bar,
.nprogress-custom-parent #nprogress .spinner {
    position: absolute;
}
