/* Modern colorful circle loading spinner with jelly/bounce text */
#loading,
#load-loading,
.load-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    background: rgba(23, 23, 23, 0.917); /* 黑色半透明背景 */
    transition: opacity .5s;
}
#loading.close {
    opacity: 0;
    visibility: hidden;
}
.io-black-mode #loading,
.io-black-mode #load-loading {
    background: rgba(0, 0, 0, 0.909);
}

/* 彩色旋转圆圈动画 */
.modern-spinner {
    width: 64px;
    height: 64px;
    border: 8px solid #222;
    border-top: 8px solid #4285f4;
    border-right: 8px solid #34a853;
    border-bottom: 8px solid #fbbc05;
    border-left: 8px solid #ea4335;
    border-radius: 50%;
    animation: modern-spin 1.1s linear infinite;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(66,133,244,0.15);
    background: transparent;
}

@keyframes modern-spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* 跳跃果冻动画文字 */
#loading .loading-text {
    color: #fff;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-align: center;
    font-weight: bold;
    margin-top: 0;
    user-select: none;
    animation: jelly-bounce 1.2s infinite;
    text-shadow: 0 2px 8px rgba(66,133,244,0.25), 0 0px 1px #222;
}

@keyframes jelly-bounce {
    0%   { transform: scale(1,1);}
    10%  { transform: scale(1.1,0.9);}
    20%  { transform: scale(0.95,1.05);}
    30%  { transform: scale(1.05,0.95);}
    40%  { transform: scale(0.98,1.02);}
    50%  { transform: scale(1,1);}
    100% { transform: scale(1,1);}
}
