/* Professional Loading Screen Styles */
#inhe-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5a27 0%, #1a3a1a 50%, #2d5a27 100%);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#inhe-loading-screen.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loading-container {
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

/* Logo Animation */
.loading-logo {
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.logo-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.logo-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 3;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: drawCircle 2s ease-in-out infinite;
}

@keyframes drawCircle {
    0%, 100% { stroke-dashoffset: 283; }
    50% { stroke-dashoffset: 0; }
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 2px;
}

/* Title */
.loading-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 30px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 1px;
}

/* Message */
.loading-message {
    margin: 30px 0;
    height: 30px;
}

.loading-message p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    height: 40px;
}

.spinner-bar {
    width: 6px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    animation: pulse 1.2s ease-in-out infinite;
}

.spinner-bar:nth-child(1) { animation-delay: 0s; }
.spinner-bar:nth-child(2) { animation-delay: 0.2s; }
.spinner-bar:nth-child(3) { animation-delay: 0.4s; }
.spinner-bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% {
        height: 40px;
        opacity: 1;
    }
    50% {
        height: 20px;
        opacity: 0.5;
    }
}

/* Progress Bar */
.loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(255, 255, 255, 0.8) 100%
    );
    border-radius: 2px;
    transition: width 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .loading-container {
        padding: 20px;
    }

    .logo-circle {
        width: 100px;
        height: 100px;
    }

    .logo-text {
        font-size: 28px;
    }

    .loading-title {
        font-size: 24px;
    }

    .loading-message p {
        font-size: 14px;
    }

    .spinner-bar {
        width: 5px;
        height: 30px;
    }
}

/* 平板响应式 */
@media (max-width: 1024px) and (min-width: 769px) {
    .loading-title {
        font-size: 28px;
    }

    .logo-circle {
        width: 110px;
        height: 110px;
    }
}

