/* 加载动画容器 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-container.hidden {
    opacity: 0;
    visibility: hidden;
}

/* LOGO容器 */
.loading-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* LOGO图片 - 始终显示 */
.loading-logo {
    width: 80px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    z-index: 3;
    position: relative;
    display: block;
    /* 确保图片占位区域始终可见 */
    min-height: 40px;
    background-color: transparent;
}

/* 进度条圆环 */
.loading-progress {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 2;
    top: 0;
    left: 0;
}

/* SVG圆环 - 旋转-90度使起始点在12点位置 */
.loading-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* 进度条背景圆 */
.loading-progress-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 3;
}

/* 进度条动画圆 - 从12点位置顺时针加载 */
.loading-progress-bar {
    fill: none;
    stroke: #ff2d2d;
    stroke-width: 3;
    stroke-linecap: round;
    /* 圆的周长 = 2 * π * r = 2 * 3.14159 * 55 ≈ 345.575 */
    stroke-dasharray: 345.575;
    stroke-dashoffset: 345.575;
    animation: loadingProgress 2s linear infinite;
}

@keyframes loadingProgress {
    0% {
        stroke-dashoffset: 345.575;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* 脉冲效果 */
.loading-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(201, 169, 98, 0.3);
    z-index: 1;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}
