html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* 独立Loading容器 - 固定定位居中，不影响页面其他元素 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    background-color: rgba(245, 247, 250, 0.95);
    /* 半透明背景，避免遮挡页面内容预览 */
    z-index: 9999;
    /* 确保在最上层 */
}

/* 旋转圆环动画 */
.loader {
    width: 5rem;
    height: 5rem;
    border: 0.5rem solid rgba(66, 133, 244, 0.1);
    border-top-color: #4285f4;
    border-right-color: #34a853;
    border-bottom-color: #fbbc05;
    border-left-color: #ea4335;
    border-radius: 50%;
    animation: spin 1.5s linear infinite, pulse 3s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* 加载文本 */
.loading-text {
    color: #333;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
    animation: fade 2s ease-in-out infinite alternate;
}

/* 旋转动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 脉冲缩放动画 */
@keyframes pulse {
    0% {
        transform: rotate(0deg) scale(1);
    }

    100% {
        transform: rotate(360deg) scale(1.05);
    }
}

/* 文本淡入淡出动画 */
@keyframes fade {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .loader {
        width: 4rem;
        height: 4rem;
        border-width: 0.4rem;
    }

    .loading-text {
        font-size: 0.9rem;
    }
}

/* 加载完成后隐藏Loading的类（可通过JS添加） */
.loading-container.hidden {
    display: none;
}