/* --- 核心变量设置 (在这里微调颜色) --- */
:root {
    /* 背景不是纯黑，是极深的炭黑 */
    --bg-color: #050505;
    
    /* 默认文字是暗淡的灰色，模拟未激活状态 */
    --text-dim: #666666;
    
    /* 主文字是亮灰，不是纯白，避免刺眼 */
    --text-main: #bfbfbf;
    
    /* 高亮状态才是纯白，带光晕 */
    --text-highlight: #ffffff;
    
    /* 选中文字时的背景色（原站风格） */
    --selection-bg: #ffffff;
    --selection-text: #000000;
}

/* --- 全局样式 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default; 
}

::selection {
    background: var(--selection-bg);
    color: var(--selection-text);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    /* 字体栈：优先使用衬线体，营造神秘/档案感 */
    font-family: "Times New Roman", "Songti SC", "SimSun", serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* 关键：抗锯齿渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 加载层 (Loader) --- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 1s ease;
}

.loader-text {
    font-family: 'Courier New', Courier, monospace; /* 加载数字用等宽字体 */
    font-size: 1.5rem;
    color: var(--text-dim); /* 暗灰色 */
    letter-spacing: 2px;
}

/* --- Enter 按钮层 --- */
#enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background: var(--bg-color);
    transition: opacity 1.5s ease;
}

.enter-btn {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: var(--text-dim); /* 默认暗淡 */
    cursor: pointer;
    padding: 15px 30px;
    border: 1px solid transparent;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 3px;
}

.enter-btn:hover {
    color: var(--text-highlight);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* 发光效果 */
    letter-spacing: 6px; /* 拉伸动画 */
}

/* --- 主内容层 --- */
.content-container {
    width: 100%;
    max-width: 900px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px;
    opacity: 0;
    filter: blur(8px); /* 初始模糊 */
    transition: opacity 2.5s ease, filter 2.5s ease;
}

/* LOGO 样式 */
.logo {
    font-size: 1.2rem;
    letter-spacing: 8px;
    color: var(--text-main);
    font-weight: normal;
    opacity: 0.9;
    margin-top: 40px;
}

/* 中间诗句/文字 */
.poem {
    text-align: center;
    font-size: 1rem;
    line-height: 2.2;
    color: #999999; /* 特定灰色 */
    font-style: italic;
    max-width: 600px;
}

.poem p {
    margin-bottom: 15px;
    transition: color 0.5s ease;
}

.poem p:hover {
    color: var(--text-highlight);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* 菜单链接 */
.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    group: 1;
}

.index {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #444444; /* 序号非常暗，几乎看不见 */
    transition: color 0.3s ease;
}

.label {
    font-size: 0.9rem;
    color: var(--text-dim); /* 链接默认是暗的 */
    letter-spacing: 2px;
    transition: all 0.4s ease;
    position: relative;
}

/* 悬停特效：核心复刻点 */
.menu-item:hover .index {
    color: var(--text-main);
}

.menu-item:hover .label {
    color: var(--text-highlight);
    letter-spacing: 4px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

/* 底部 */
.copyright {
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    color: #333333; /* 极暗 */
    letter-spacing: 1px;
}

/* 辅助类 */
.hidden {
    display: none !important;
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

.fade-in-blur {
    opacity: 1;
    filter: blur(0px);
}

/* 噪点遮罩（模拟胶片感） */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08; /* 调整透明度 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}