/* 欢迎动画样式 */
.welcome-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 门的样式 */
.door {
    position: absolute;
    top: 0;
    width: 50vw;
    height: 100vh;
    background: linear-gradient(135deg, #8B5A2B, #A0622F, #8B5A2B);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

.door-left {
    left: 0;
    border-right: 2px solid #654321;
}

.door-right {
    right: 0;
    border-left: 2px solid #654321;
}

.door-handle {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 80px;
    background: linear-gradient(135deg, #C9B037, #E6C547);
    border-radius: 10px;
    transform: translateY(-50%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.door-left .door-handle {
    right: 30px;
}

.door-right .door-handle {
    left: 30px;
}

/* 门开启动画 */
.door-left.open {
    transform: translateX(-100%);
}

.door-right.open {
    transform: translateX(100%);
}

/* 十字架容器 */
.cross-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0;
    animation: crossAppear 1s ease-out 2.5s forwards;
}

.cross {
    position: relative;
    width: 120px;
    height: 120px;
    animation: crossRotate 3s ease-in-out 3s infinite;
}

.cross-vertical {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 120px;
    background: linear-gradient(135deg, #C9B037, #E6C547, #C9B037);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(201, 176, 55, 0.8);
}

.cross-horizontal {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: linear-gradient(135deg, #C9B037, #E6C547, #C9B037);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(201, 176, 55, 0.8);
}

/* 流光效果 */
.light-stream {
    position: absolute;
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #C9B037, transparent);
    border-radius: 2px;
    opacity: 0;
}

.light-stream-1 {
    top: -20px;
    left: -100px;
    animation: lightStream1 2s ease-in-out 3.5s infinite;
}

.light-stream-2 {
    top: 60px;
    left: -100px;
    animation: lightStream2 2s ease-in-out 4s infinite;
}

.light-stream-3 {
    top: 140px;
    left: -100px;
    animation: lightStream3 2s ease-in-out 4.5s infinite;
}

/* 鸽子容器 */
.doves-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.dove {
    position: absolute;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.dove-1 {
    bottom: 20%;
    right: 10%;
    animation: dovefly1 4s ease-out 3s forwards;
}

.dove-2 {
    bottom: 15%;
    right: 15%;
    animation: dovefly2 4s ease-out 3.3s forwards;
}

.dove-3 {
    bottom: 25%;
    right: 5%;
    animation: dovefly3 4s ease-out 3.6s forwards;
}

.dove-4 {
    bottom: 30%;
    right: 20%;
    animation: dovefly4 4s ease-out 3.9s forwards;
}

.dove-5 {
    bottom: 10%;
    right: 25%;
    animation: dovefly5 4s ease-out 4.2s forwards;
}

.dove-6 {
    bottom: 35%;
    right: 8%;
    animation: dovefly6 4s ease-out 4.5s forwards;
}

.dove-7 {
    bottom: 18%;
    right: 30%;
    animation: dovefly7 4s ease-out 4.8s forwards;
}

.dove-8 {
    bottom: 28%;
    right: 12%;
    animation: dovefly8 4s ease-out 5.1s forwards;
}

/* 欢迎文字 */
.welcome-text {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 4;
    opacity: 0;
    animation: textAppear 1s ease-out 1.5s forwards;
}

.welcome-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    font-family: 'Noto Serif SC', serif;
}

.welcome-text p {
    font-size: 1.5rem;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* 动画关键帧 */
@keyframes crossAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes crossRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(360deg) scale(1.2);
    }
}

@keyframes lightStream1 {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes lightStream2 {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes lightStream3 {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes dovefly1 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-80vw, -60vh) rotate(-15deg);
    }
}

@keyframes dovefly2 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-85vw, -65vh) rotate(-20deg);
    }
}

@keyframes dovefly3 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-75vw, -55vh) rotate(-10deg);
    }
}

@keyframes dovefly4 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-90vw, -70vh) rotate(-25deg);
    }
}

@keyframes dovefly5 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-70vw, -50vh) rotate(-5deg);
    }
}

@keyframes dovefly6 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-95vw, -75vh) rotate(-30deg);
    }
}

@keyframes dovefly7 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-100vw, -80vh) rotate(-35deg);
    }
}

@keyframes dovefly8 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-65vw, -45vh) rotate(0deg);
    }
}

@keyframes textAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 整个动画容器的淡出 */
.welcome-container.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* 响应式动画 */
@media (max-width: 768px) {
    .welcome-text h1 {
        font-size: 2rem;
    }
    
    .welcome-text p {
        font-size: 1.2rem;
    }
    
    .cross {
        width: 80px;
        height: 80px;
    }
    
    .cross-vertical {
        width: 15px;
        height: 80px;
    }
    
    .cross-horizontal {
        width: 60px;
        height: 15px;
        top: 20px;
    }
    
    .dove {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .welcome-text h1 {
        font-size: 1.5rem;
    }
    
    .welcome-text p {
        font-size: 1rem;
    }
    
    .cross {
        width: 60px;
        height: 60px;
    }
    
    .cross-vertical {
        width: 12px;
        height: 60px;
    }
    
    .cross-horizontal {
        width: 40px;
        height: 12px;
        top: 15px;
    }
    
    .dove {
        font-size: 1rem;
    }
}

