/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out; /* 添加淡出效果 */
}

.loading.hidden { /* 用于JS控制隐藏加载动画 */
    opacity: 0;
    pointer-events: none;
}


.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--secondary);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 0 6px var(--primary)); /* 添加光晕效果 */
} 