/* 运势查询加载动画样式 */

.horoscope-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 39, 46, 0.95), rgba(44, 62, 80, 0.95));
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.horoscope-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 主要加载容器 */
.loading-container {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

/* 星座符号旋转动画 */
.zodiac-spinner {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: zodiacRotate 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(52, 152, 219, 0.5));
}

@keyframes zodiacRotate {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        opacity: 1;
    }
    50% { 
        transform: rotate(180deg) scale(1);
        opacity: 0.8;
    }
    75% { 
        transform: rotate(270deg) scale(1.1);
        opacity: 1;
    }
}

/* 进度条 */
.progress-container {
    width: 100%;
    max-width: 400px;
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 状态文字 */
.loading-status {
    color: #ecf0f1;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    min-height: 1.5rem;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.loading-substatus {
    color: #bdc3c7;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    min-height: 1.2rem;
}

/* 预估时间 */
.estimated-time {
    color: #f39c12;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* 星星闪烁背景动画 */
.stars-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 取消按钮 */
.cancel-button {
    background: transparent;
    border: 2px solid rgba(231, 76, 60, 0.8);
    color: #e74c3c;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cancel-button:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    transform: translateY(-2px);
}

/* 分析步骤指示器 */
.analysis-steps {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.step-indicator.active {
    opacity: 1;
}

.step-indicator.completed {
    opacity: 0.7;
    color: #2ecc71;
}

.step-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-indicator.active .step-icon {
    background: rgba(52, 152, 219, 0.3);
    animation: stepPulse 1.5s ease-in-out infinite;
}

.step-indicator.completed .step-icon {
    background: rgba(46, 204, 113, 0.3);
}

@keyframes stepPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.step-label {
    font-size: 0.8rem;
    text-align: center;
    color: #bdc3c7;
}

.step-indicator.active .step-label {
    color: #3498db;
    font-weight: 600;
}

.step-indicator.completed .step-label {
    color: #2ecc71;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .loading-container {
        padding: 1rem;
    }
    
    .zodiac-spinner {
        font-size: 3rem;
    }
    
    .loading-status {
        font-size: 1.1rem;
    }
    
    .analysis-steps {
        gap: 0.5rem;
    }
    
    .step-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
}
