/* 页面布局 */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden; /* 禁止滚动以固定视图 */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeIn 0.5s ease-in-out; /* 动画效果 */
}


/* 背景层设置 */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* 背景在最底层 */
}

.background-content {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto; /* 允许交互 */
}

/* 前景层设置 */
.foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* 确保内容位于背景上方 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* 禁止前景层干扰背景交互 */
}

/* 大标题 */
.main-title {
    font-size: 60px;
    color: rgb(0, 0, 0);
    font-family: 'Serous Stream', sans-serif;
    letter-spacing: 5px;  /* 增加字间距 */
    margin: 50px 0 20px 0; /* 垂直下移 */
    pointer-events: all; /* 允许点击标题 */
}

/* 进入键 */
.enter-btn {
    font-size: 24px;
    color: rgb(0, 200, 0);
    font-family: 'Courier', monospace;
    background-color: transparent;
    border: none;
    cursor: pointer;
    animation: blink 2s ease-in-out infinite; /* 闪烁速度减慢为2秒 */
    pointer-events: all; /* 允许点击按钮 */
    margin-bottom: 60px; /* 垂直下移 */
    font-weight: bold;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* 底部玩法说明容器 */
.instruction-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    animation: showThenFadeOut 20s forwards; /* 延迟5秒，后渐隐 */
}

/* 底部玩法说明文字 */
.instruction {
    font-size: 22px;
    color: rgb(0, 255, 0);
    font-family: 'Arial', sans-serif;
    margin: 0;
    pointer-events: all;
}

/* 底部容器和文字显示后渐隐动画 */
@keyframes showThenFadeOut {
    0% {
        opacity: 1; /* 初始状态完全可见 */
    }
    50% {
        opacity: 1; /* 保持 5 秒完全可见 */
    }
    60% {
        opacity: 0; /* 从 5 秒后开始渐隐 */
    }
    100% {
        opacity: 0; /* 完全消失 */
    }
}

/* 大标题绿色荧光闪烁 */
.main-title {
    font-size: 60px;
    color: rgb(0, 0, 0);
    font-family: 'Serous Stream', sans-serif;
    letter-spacing: 5px;  /* 增加字间距 */
    margin: 50px 0 20px 0;
    pointer-events: all; /* 允许与标题交互 */
    text-shadow: 0 0 5px rgb(0, 208, 0), 
                 0 0 20px rgb(0, 200, 0), 
                 0 0 30px rgb(0, 200, 0);
    animation: glowFlicker 0.05s infinite; /* 高频闪烁 */
}

/* 荧光闪烁动画 */
@keyframes glowFlicker {
    0% {
        text-shadow: 0 0 5px rgb(0, 255, 0), 
                     0 0 10px rgb(0, 255, 0), 
                     0 0 20px rgb(0, 200, 0), 
                     0 0 30px rgb(0, 200, 0);
    }
    20% {
        text-shadow: 0 0 3px rgb(0, 200, 0), 
                     0 0 8px rgb(0, 200, 0), 
                     0 0 15px rgb(0, 150, 0), 
                     0 0 20px rgb(0, 150, 0);
    }
    50% {
        text-shadow: 0 0 5px rgb(0, 255, 0), 
                     0 0 10px rgb(0, 255, 0), 
                     0 0 20px rgb(0, 200, 0), 
                     0 0 30px rgb(0, 200, 0);
    }
}
