/* 爱情预测加载动画样式 */

.love-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.95), rgba(138, 43, 226, 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;
}

.love-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 主要加载容器 */
.loading-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* 爱心旋转动画 */
.heart-spinner {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: heartRotate 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.8));
}

@keyframes heartRotate {
    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;
    }
}

/* 情侣信息 */
.couple-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.user-name, .partner-name {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.love-symbol {
    font-size: 1.5rem;
    animation: lovePulse 2s ease-in-out infinite;
}

@keyframes lovePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 加载状态 */
.loading-status {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.loading-substatus {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.estimated-time {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

/* 进度条 */
.progress-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF1493, #8A2BE2, #FF69B4);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 分析步骤 */
.analysis-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-indicator.active {
    opacity: 1;
    transform: scale(1.1);
}

.step-indicator.completed {
    opacity: 0.8;
}

.step-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.step-indicator.active .step-icon {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
}

.step-indicator.completed .step-icon {
    background: rgba(76, 175, 80, 0.4);
}

.step-label {
    font-size: 0.8rem;
    color: white;
    text-align: center;
    max-width: 80px;
}

/* 取消按钮 */
.cancel-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cancel-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* 爱心背景 */
.hearts-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-heart {
    position: absolute;
    animation: heartFloat 10s ease-in-out infinite;
}

@keyframes heartFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
        opacity: 0.9;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .loading-container {
        max-width: 90%;
        padding: 1.5rem;
    }
    
    .analysis-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-indicator {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .step-label {
        max-width: none;
        text-align: left;
    }
    
    .couple-info {
        flex-direction: column;
        gap: 0.5rem;
    }
} 