.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loading-container.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    transform: translateY(-50px);
}

.loading-text {
    color: white;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 300px;
    margin: 0 auto;
}

/* 旋转动画 */
.spinner {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4db8ff;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 脉冲动画 */
.pulse {
    width: 70px;
    height: 70px;
    background-color: #ff6b6b;
    border-radius: 50%;
    margin: 0 auto;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.7; }
}

/* 波浪动画 */
.wave {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.wave-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background: #5be7c4;
    animation: wave 1.5s ease-in-out infinite;
}

.wave-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.wave-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.wave-dot:nth-child(4) {
    animation-delay: 0.6s;
}

.wave-dot:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 进度条动画 */
.progress-container {
    width: 250px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 30px auto;
}

.progress-bar {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #ff7eb3, #ff758c);
    border-radius: 4px;
    animation: progress 2s infinite ease-in-out;
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* 多色旋转 */
.multicolor-spinner {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto;
    background: conic-gradient(
        #ff6b6b, 
        #ffd166, 
        #06d6a0, 
        #118ab2, 
        #073b4c, 
        #ff6b6b
    );
    mask: radial-gradient(#0000 65%, #000 66%);
    -webkit-mask: radial-gradient(#0000 65%, #000 66%);
    animation: spin 1.5s linear infinite;
}

.type-selector {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.loading-type {
    display: none;
}

.loading-type.active {
    display: block;
}