/* Loading Overlay Styles */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%),
                radial-gradient(circle at 50% 50%, rgba(192, 169, 110, 0.05) 0%, transparent 50%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    gap: 0; /* 移除默认间距，使用各元素的 margin 控制间距 */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #c0a96e;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(192, 169, 110, 0.3);
}

.loading-logo-img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 2rem;
}

.loading-text {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 3rem;
    letter-spacing: 3px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
}

.loading-spinner::before {
    border-top-color: #c0a96e;
    animation: spin 1s linear infinite;
}

.loading-spinner::after {
    border-bottom-color: rgba(192, 169, 110, 0.5);
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
