@charset "UTF-8";

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffc0cb 0%, #FBEBCF 30%, #EFCCF1 60%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.loading-container {
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-heart {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 20px;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.loading-heart::before,
.loading-heart::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 60px;
    background: linear-gradient(180deg, #ff6b9d 0%, #ff8fab 100%);
    border-radius: 20px 20px 0 0;
    top: 0;
}

.loading-heart::before {
    left: 40px;
    transform: rotate(-45deg);
    transform-origin: left bottom;
}

.loading-heart::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: right bottom;
}

.loading-heart-inner {
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    top: 15px;
    left: 25px;
    opacity: 0.8;
}

.loading-text {
    font-family: '幼圆', 'PingFang SC', sans-serif;
    font-size: 28px;
    color: #ff6b9d;
    margin-bottom: 8px;
    letter-spacing: 6px;
    text-shadow: 0 2px 15px rgba(255, 107, 157, 0.4);
    animation: textGlow 2s ease-in-out infinite;
}

.loading-name {
    font-family: '幼圆', 'PingFang SC', sans-serif;
    font-size: 26px;
    color: #c084fc;
    letter-spacing: 10px;
    margin-bottom: 25px;
    text-shadow: 0 0 25px rgba(192, 132, 252, 0.6);
    animation: nameFloat 3s ease-in-out infinite;
}

.loading-subtext {
    font-family: '幼圆', 'PingFang SC', sans-serif;
    font-size: 14px;
    color: #ff8fab;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.loading-bar-container {
    width: 240px;
    height: 12px;
    background: rgba(255, 182, 193, 0.3);
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 15px rgba(255, 107, 157, 0.2);
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d 0%, #c084fc 40%, #818cf8 80%, #60a5fa 100%);
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2s infinite;
}

.loading-percent {
    font-family: '幼圆', 'PingFang SC', sans-serif;
    font-size: 18px;
    color: #ff6b9d;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(255, 107, 157, 0.3);
}

.loading-flower {
    position: absolute;
    font-size: 35px;
    opacity: 0.6;
    animation: flowerFloat 4s ease-in-out infinite;
}

.loading-flower:nth-child(1) {
    top: 8%;
    left: 12%;
    animation-delay: 0s;
}

.loading-flower:nth-child(2) {
    top: 15%;
    right: 15%;
    animation-delay: 1s;
}

.loading-flower:nth-child(3) {
    bottom: 25%;
    left: 15%;
    animation-delay: 2s;
}

.loading-flower:nth-child(4) {
    bottom: 15%;
    right: 12%;
    animation-delay: 3s;
}

.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.loading-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ff6b9d 0%, rgba(255, 107, 157, 0.3) 70%);
    border-radius: 50%;
    animation: floatParticle 4s ease-in-out infinite;
}

.loading-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.loading-particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 0.5s; }
.loading-particle:nth-child(3) { left: 30%; top: 30%; animation-delay: 1s; }
.loading-particle:nth-child(4) { left: 40%; top: 80%; animation-delay: 1.5s; }
.loading-particle:nth-child(5) { left: 50%; top: 10%; animation-delay: 2s; }
.loading-particle:nth-child(6) { left: 60%; top: 50%; animation-delay: 2.5s; }
.loading-particle:nth-child(7) { left: 70%; top: 70%; animation-delay: 3s; }
.loading-particle:nth-child(8) { left: 80%; top: 25%; animation-delay: 3.5s; }
.loading-particle:nth-child(9) { left: 90%; top: 45%; animation-delay: 0.8s; }
.loading-particle:nth-child(10) { left: 15%; top: 75%; animation-delay: 1.8s; }

.loading-petal {
    position: absolute;
    font-size: 20px;
    opacity: 0.5;
    animation: fallPetal 6s ease-in-out infinite;
}

.loading-petal:nth-child(11) { left: 5%; animation-delay: 0s; }
.loading-petal:nth-child(12) { left: 25%; animation-delay: 1s; }
.loading-petal:nth-child(13) { left: 45%; animation-delay: 2s; }
.loading-petal:nth-child(14) { left: 65%; animation-delay: 3s; }
.loading-petal:nth-child(15) { left: 85%; animation-delay: 4s; }

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.08); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-40px) scale(1.3); opacity: 1; }
}

@keyframes fallPetal {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 2px 15px rgba(255, 107, 157, 0.4); }
    50% { text-shadow: 0 2px 25px rgba(255, 107, 157, 0.8); }
}

@keyframes nameFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes flowerFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(10deg); }
}

@media screen and (max-width: 480px) {
    .loading-heart {
        width: 55px;
        height: 55px;
    }
    
    .loading-heart::before,
    .loading-heart::after {
        width: 28px;
        height: 42px;
        border-radius: 14px 14px 0 0;
    }
    
    .loading-heart::before {
        left: 28px;
    }
    
    .loading-heart-inner {
        width: 22px;
        height: 22px;
        top: 11px;
        left: 17px;
    }
    
    .loading-text {
        font-size: 22px;
        letter-spacing: 4px;
    }
    
    .loading-name {
        font-size: 20px;
        letter-spacing: 6px;
    }
    
    .loading-subtext {
        font-size: 12px;
    }
    
    .loading-bar-container {
        width: 180px;
    }
    
    .loading-flower {
        font-size: 28px;
    }
}