/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* 加载动画容器 - 全屏覆盖 */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    /* 背景色可根据品牌调整 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* 确保在最顶层 */
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

/* 加载完成后隐藏动画 */
.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* 防止遮挡页面交互 */
}

/* 核心加载动画 - 环形进度效果 */
.loader {
    width: 200px;
    height: 100px;
    background: url(../img/loa2.png) no-repeat;
    background-size: 100%;
    /* border-radius: 50%; */
    /* animation: spin 1s linear infinite; */
    position: relative;
}

.progress-bar {
    position: absolute;
    left: 5%;
    bottom: 5%;
    width: 90%;
    height: 10px;
}

.progress-bar::after {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 10px;
    background: #666;
    animation: move1 0.3s linear;
    content: '';
}

/* 加载文字提示（可选） */
.loader-text {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* 旋转动画关键帧 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 页面内容样式（示例） */
.page-content {
    opacity: 0;
    /* 初始隐藏 */
}

.page-content.visible {
    opacity: 1;
}


@keyframes move1 {
    0% {
        width: 0;
        ;
    }

    100% {
        width: 100%;
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .loader {
        width: 80px;
        height: 80px;
        border-width: 4px;
    }

    .loader-text {
        font-size: 12px;
    }
}