/* ========================================
   全屏欢迎页样式 - Welcome Screen
   ======================================== */

#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* 优雅的淡出 */
    overflow: hidden;
}

#welcome-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.welcome-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    /* 让点击穿透到 canvas */
    pointer-events: none;
}

.welcome-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.8), 0 0 60px rgba(118, 75, 162, 0.5);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: titleEntrance 2s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 50%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.welcome-subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    font-weight: 300;
    letter-spacing: 4px;
    opacity: 0;
    animation: subtitleFadeIn 1.5s ease-out forwards 1.5s;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.click-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: hintPulse 2s ease-in-out infinite 2.5s;
}

/* 动画定义 */
@keyframes titleEntrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes subtitleFadeIn {
    to {
        opacity: 0.8;
    }
}

@keyframes hintPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.05);
    }
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }
}