/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #3b82f6 50%, #1e40af 75%, #1e3a8a 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 主容器 */
.loading-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 背景装饰圆圈 */
.bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 主要内容区域 */
.main-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

/* 标题样式 */
.title {
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #f0f9ff, #e0f2fe, #bae6fd);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
    animation: titleGlow 3s ease-in-out infinite alternate, gradientShift 4s ease-in-out infinite;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 3rem;
    letter-spacing: 8px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
    animation: subtitleGlow 2s ease-in-out infinite alternate;
}


@keyframes titleGlow {
    from {
        text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow: 0 4px 30px rgba(255, 255, 255, 0.6), 0 0 40px rgba(59, 130, 246, 0.4);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


@keyframes subtitleGlow {
    from {
        text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(59, 130, 246, 0.3);
    }
}

/* 十二生肖轮播容器 */
.zodiac-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    width: 300px;
    height: 120px;
    margin-left: auto;
    margin-right: auto;
}

.zodiac-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0.5) rotateY(90deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.zodiac-item.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.zodiac-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: bounce 2s ease-in-out infinite;
}

.zodiac-name {
    font-size: 1.2rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 进度条容器 */
.progress-container {
    width: 400px;
    margin: 0 auto 2rem;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #1e40af, #1e3a8a, #312e81);
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    animation: progressShine 2s linear infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressGlow 1.5s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes progressGlow {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.progress-text {
    text-align: center;
    margin-top: 1rem;
}

#progressPercent {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 加载文字 */
.loading-text {
    margin-top: 1rem;
}

#loadingText {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* 粒子效果 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 3s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 0.2s;
    animation-duration: 2.5s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 0.4s;
    animation-duration: 3.5s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 0.6s;
    animation-duration: 2.8s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 0.8s;
    animation-duration: 3.2s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .zodiac-carousel {
        width: 250px;
        height: 100px;
    }
    
    .zodiac-icon {
        font-size: 3rem;
    }
    
    .progress-container {
        width: 300px;
    }
    
    .circle-1, .circle-2, .circle-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .zodiac-carousel {
        width: 200px;
        height: 80px;
    }
    
    .zodiac-icon {
        font-size: 2.5rem;
    }
    
    .progress-container {
        width: 250px;
    }
}

/* 加载完成后的动画 */
.loading-complete .zodiac-item.active {
    animation: celebration 1s ease-out;
}

@keyframes celebration {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.loading-complete .progress-fill {
    animation: progressComplete 0.5s ease-out;
}

@keyframes progressComplete {
    0% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.05);
    }
    100% {
        transform: scaleX(1);
    }
}
