/* --- 全局设置 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; width: 100%; overflow: hidden; }

body {
    background-color: #050505; /* 极深的黑 */
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 背景图 (可选，如果没有就用纯黑) */
.background-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('background.jpg'); /* 使用主站背景 */
    background-size: cover; background-position: center;
    opacity: 0.3; /* 很暗 */
    filter: blur(8px) grayscale(100%); /* 模糊且黑白，营造“幕后/未完成”感 */
    z-index: 0;
}

/* 扫描线纹理 (增加故障感) */
.overlay-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 600px;
}

/* 巨大的 404 背景字 */
.error-code {
    font-size: 12rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03); /* 极淡 */
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    user-select: none;
    line-height: 1;
}

/* Logo 样式 */
.logo-wrapper { margin-bottom: 30px; }
.lucent-hearts-logo { width: 80px; height: 80px; opacity: 0.8; }
.logo-leaf { fill: none; stroke: #666; stroke-width: 3; }
.logo-aperture { fill: none; stroke: #444; stroke-width: 1; }
/* 错误模式下的微光：红色闪烁 */
.logo-spark.error-mode {
    fill: #ff4d4d;
    animation: flicker 2s infinite;
}
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
    10%, 30%, 70% { opacity: 0.1; }
}

/* 内容样式 */
.content h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}
.description {
    font-size: 1.1rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* 按钮组 */
.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.btn-home, .btn-contact {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
/* 主按钮：品牌绿 */
.btn-home {
    background-color: #00ff9d;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
}
.btn-home:hover {
    background-color: #33ffb8;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.4);
}
/* 次按钮：幽灵按钮 */
.btn-contact {
    border: 1px solid #444;
    color: #888;
}
.btn-contact:hover {
    border-color: #888;
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .error-code { font-size: 8rem; }
    .content h1 { font-size: 1.5rem; }
    .actions { flex-direction: column; gap: 15px; }
}