/* 开机页面样式 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in;
}

.splash-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片容器 - 用于实现柔滑边缘效果 */
.splash-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.splash-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 创建柔滑的边缘渐变遮罩 */
    background: 
        radial-gradient(ellipse 85% 85% at center, transparent 0%, transparent 65%, rgba(102, 126, 234, 0.2) 80%, rgba(102, 126, 234, 0.5) 95%, rgba(102, 126, 234, 0.8) 100%),
        linear-gradient(to bottom, rgba(102, 126, 234, 0.3) 0%, transparent 10%, transparent 90%, rgba(102, 126, 234, 0.3) 100%),
        linear-gradient(to right, rgba(102, 126, 234, 0.2) 0%, transparent 10%, transparent 90%, rgba(102, 126, 234, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 25px;
}

.splash-image {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: scaleIn 0.8s ease-out;
    /* 柔滑边缘效果 */
    border-radius: 20px;
    /* 多层阴影实现柔滑边缘和光晕效果 */
    box-shadow: 
        0 0 100px rgba(102, 126, 234, 0.5),
        0 0 200px rgba(118, 75, 162, 0.3),
        inset 0 0 60px rgba(255, 255, 255, 0.2),
        0 0 300px rgba(102, 126, 234, 0.2);
    /* 柔和的边框 */
    border: 4px solid rgba(255, 255, 255, 0.25);
    /* 使用filter实现柔滑边缘模糊效果 */
    filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.4));
    position: relative;
    z-index: 0;
}

.splash-fallback {
    text-align: center;
    animation: scaleIn 0.8s ease-out;
}

.countdown-timer {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#countdown-number {
    color: white;
    font-size: 48px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 缩放淡入动画 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 淡出动画 */
.splash-screen.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .splash-image {
        max-width: 90%;
        max-height: 60vh;
        border-radius: 15px;
    }
    
    .loading-bar {
        width: 200px;
    }
}

