/* 羽毛降落开场动画样式 - 简化美感版本 */

/* 动画容器 */
.feather-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 星空背景 */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* 神圣光环 */
.holy-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.aura-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: expandRing 3s ease-out infinite;
}

.aura-ring:nth-child(1) {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.aura-ring:nth-child(2) {
    width: 300px;
    height: 300px;
    animation-delay: 0.5s;
}

.aura-ring:nth-child(3) {
    width: 400px;
    height: 400px;
    animation-delay: 1s;
}

@keyframes expandRing {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* 光芒射线 */
.light-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 1;
    animation: rotateRays 20s linear infinite;
}

@keyframes rotateRays {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 300px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%);
    transform-origin: center top;
    opacity: 0.7;
}

.ray:nth-child(1) { transform: translate(-50%, 0) rotate(0deg); }
.ray:nth-child(2) { transform: translate(-50%, 0) rotate(45deg); }
.ray:nth-child(3) { transform: translate(-50%, 0) rotate(90deg); }
.ray:nth-child(4) { transform: translate(-50%, 0) rotate(135deg); }
.ray:nth-child(5) { transform: translate(-50%, 0) rotate(180deg); }
.ray:nth-child(6) { transform: translate(-50%, 0) rotate(225deg); }
.ray:nth-child(7) { transform: translate(-50%, 0) rotate(270deg); }
.ray:nth-child(8) { transform: translate(-50%, 0) rotate(315deg); }

/* 羽毛飘落 - 主要效果 */
.feathers {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.feather {
    position: absolute;
    width: 20px;
    height: 30px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: featherFall 8s ease-in infinite;
    opacity: 0;
}

@keyframes featherFall {
    0% {
        transform: translateY(-100px) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(30px);
        opacity: 0.9;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(-30px);
        opacity: 0;
    }
}

/* 为每片羽毛设置不同的位置、大小和延迟 */
.feather:nth-child(1) { 
    left: 10%; 
    animation-delay: 0s; 
    width: 18px;
    height: 27px;
}
.feather:nth-child(2) { 
    left: 20%; 
    animation-delay: 1s; 
    width: 22px;
    height: 33px;
}
.feather:nth-child(3) { 
    left: 30%; 
    animation-delay: 2s; 
    width: 16px;
    height: 24px;
}
.feather:nth-child(4) { 
    left: 40%; 
    animation-delay: 0.5s; 
    width: 24px;
    height: 36px;
}
.feather:nth-child(5) { 
    left: 50%; 
    animation-delay: 1.5s; 
    width: 20px;
    height: 30px;
}
.feather:nth-child(6) { 
    left: 60%; 
    animation-delay: 2.5s; 
    width: 19px;
    height: 28px;
}
.feather:nth-child(7) { 
    left: 70%; 
    animation-delay: 1s; 
    width: 21px;
    height: 31px;
}
.feather:nth-child(8) { 
    left: 80%; 
    animation-delay: 2s; 
    width: 17px;
    height: 25px;
}
.feather:nth-child(9) { 
    left: 90%; 
    animation-delay: 0.5s; 
    width: 23px;
    height: 34px;
}
.feather:nth-child(10) { 
    left: 15%; 
    animation-delay: 3s; 
    width: 18px;
    height: 27px;
}
.feather:nth-child(11) { 
    left: 25%; 
    animation-delay: 3.5s; 
    width: 20px;
    height: 30px;
}
.feather:nth-child(12) { 
    left: 35%; 
    animation-delay: 4s; 
    width: 22px;
    height: 33px;
}
.feather:nth-child(13) { 
    left: 45%; 
    animation-delay: 0.8s; 
    width: 19px;
    height: 28px;
}
.feather:nth-child(14) { 
    left: 55%; 
    animation-delay: 1.8s; 
    width: 21px;
    height: 31px;
}
.feather:nth-child(15) { 
    left: 65%; 
    animation-delay: 2.8s; 
    width: 18px;
    height: 27px;
}
.feather:nth-child(16) { 
    left: 75%; 
    animation-delay: 3.8s; 
    width: 20px;
    height: 30px;
}
.feather:nth-child(17) { 
    left: 85%; 
    animation-delay: 1.2s; 
    width: 22px;
    height: 33px;
}
.feather:nth-child(18) { 
    left: 95%; 
    animation-delay: 2.2s; 
    width: 17px;
    height: 25px;
}
.feather:nth-child(19) { 
    left: 5%; 
    animation-delay: 3.2s; 
    width: 23px;
    height: 34px;
}
.feather:nth-child(20) { 
    left: 50%; 
    animation-delay: 4.2s; 
    width: 19px;
    height: 28px;
}

/* 光粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: particleFloat 6s ease-in-out infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
    }
}

/* 欢迎文字 */
.welcome-text {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 5;
    animation: textFadeIn 2s ease-in forwards;
    animation-delay: 2s;
    opacity: 0;
}

@keyframes textFadeIn {
    to {
        opacity: 1;
    }
}

.welcome-text h1 {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.2em;
}

.welcome-text p {
    font-size: 1.5rem;
    margin: 10px 0 0 0;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* 跳过按钮 */
.skip-button {
    position: absolute;
    bottom: 30px;
    right: 30px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 6;
    animation: buttonFadeIn 0.5s ease-in forwards;
    animation-delay: 3s;
    opacity: 0;
}

@keyframes buttonFadeIn {
    to {
        opacity: 1;
    }
}

.skip-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* 淡出动画 */
.feather-intro-overlay.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .welcome-text h1 {
        font-size: 2rem;
    }
    
    .welcome-text p {
        font-size: 1rem;
    }
    
    .welcome-text {
        bottom: 100px;
    }
    
    .skip-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .light-rays {
        width: 400px;
        height: 400px;
    }
    
    .feather {
        width: 16px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .welcome-text h1 {
        font-size: 1.5rem;
    }
    
    .welcome-text p {
        font-size: 0.9rem;
    }
    
    .feather {
        width: 14px;
        height: 21px;
    }
}