:root {
    --loading-theme-color: #006eff;
    --loading-theme-color-light: rgba(0, 110, 255, 0.1);
    --loading-bg-color: #f4f7f9;
    --loading-bg-gradient: linear-gradient(135deg, #667eea 0%, #006eff 50%, #00c6fb 100%);
}

.app-loading {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--loading-bg-gradient);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
    position: relative;
    overflow: hidden;
}

/* 背景渐变动画 */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 浮动粒子背景 */
.app-loading::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.1) 0%, transparent 30%),
        radial-gradient(circle at 60% 60%, rgba(255,255,255,0.08) 0%, transparent 40%);
    animation: float-particles 20s ease-in-out infinite;
}

@keyframes float-particles {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* 光晕效果 */
.app-loading::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.app-loading .app-loading-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

.app-loading .dots {
    display: flex;
    padding: 98px;
    justify-content: center;
    align-items: center;
}

.app-loading .app-loading-title {
    display: flex;
    margin-top: 30px;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    justify-content: center;
    align-items: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    animation: title-fade-in 1s ease-out, title-float 3s ease-in-out infinite;
}

@keyframes title-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes title-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.dot {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 56px;
    margin-top: 30px;
    font-size: 32px;
    transform: rotate(45deg);
    box-sizing: border-box;
    animation: antRotate 1.2s infinite linear;
}

.dot i {
    position: absolute;
    display: block;
    width: 22px;
    height: 22px;
    background-color: #ffffff;
    border-radius: 100%;
    opacity: 0.4;
    transform: scale(0.75);
    animation: antSpinMove 1s infinite linear alternate;
    transform-origin: 50% 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dot i:nth-child(1) {
    top: 0;
    left: 0;
}

.dot i:nth-child(2) {
    top: 0;
    right: 0;
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.dot i:nth-child(3) {
    right: 0;
    bottom: 0;
    -webkit-animation-delay: 0.8s;
    animation-delay: 0.8s;
}

.dot i:nth-child(4) {
    bottom: 0;
    left: 0;
    -webkit-animation-delay: 1.2s;
    animation-delay: 1.2s;
}

@keyframes antRotate {
    to {
        -webkit-transform: rotate(405deg);
        transform: rotate(405deg);
    }
}

@-webkit-keyframes antRotate {
    to {
        -webkit-transform: rotate(405deg);
        transform: rotate(405deg);
    }
}

@keyframes antSpinMove {
    to {
        opacity: 1;
    }
}

@-webkit-keyframes antSpinMove {
    to {
        opacity: 1;
    }
}
