/* 1. 引入字体 (Cinzel用于标题, Montserrat用于正文) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Montserrat:wght@200;300;400;600&display=swap');

/* 2. 核心变量 */
:root {
    --bg-color: #050505;
    /* 深空黑 */
    --gold: #C49B66;
    /* 日冕金 */
    --text-main: #E0E0E0;
    /* 太空灰白 */
    --text-sub: #888;
    --card-bg: #111;
    --border: rgba(255, 255, 255, 0.1);
}

/* 3. 基础重置 */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 4. 胶片噪点滤镜 (两个页面都要用) */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 5. 转场用的白屏层 (遮罩) */
.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10000;
    /* 必须在最上层 */
    pointer-events: none;
}

/* --- 隐藏默认鼠标，仅在 PC 端生效 --- */
@media (hover: hover) and (pointer: fine) {

    body,
    a,
    button {
        cursor: none !important;
    }

    .cursor-dot,
    .cursor-circle {
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        transform: translate(-50%, -50%);
    }

    .cursor-dot {
        width: 4px;
        height: 4px;
        background: var(--gold);
    }

    .cursor-circle {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        transition: width 0.3s, height 0.3s, background 0.3s;
        mix-blend-mode: difference;
        /* 让光标在白背景上变黑，黑背景上变白 */
    }

    /* 悬停时的变态反应 */
    .cursor-circle.hovered {
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.1);
        border-color: transparent;
    }
}

/* --- 6. 导航菜单样式 (Common Menu Styles) --- */
.menu-trigger {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 30px;
    height: 20px;
    z-index: 10001;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    mix-blend-mode: difference;
    /* 无论背景黑白都能看见 */
}

.menu-line {
    width: 100%;
    height: 2px;
    background: #fff;
    transition: 0.3s;
    transform-origin: right;
}

.menu-trigger:hover .l1 {
    width: 70%;
}

.menu-trigger.open .l1 {
    transform: rotate(-45deg);
    width: 100%;
}

.menu-trigger.open .l2 {
    transform: rotate(45deg);
    width: 100%;
}

/* 全屏菜单层 */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    /* 初始不可见不可点 */
    transition: opacity 0.5s;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #666;
    text-decoration: none;
    margin: 10px 0;
    transition: 0.3s;
    transform: translateY(20px);
    opacity: 0;
    /* 动画起始 */
    position: relative;
}

.nav-link:hover {
    color: var(--gold);
    letter-spacing: 5px;
}

.nav-link::before {
    content: attr(data-index);
    position: absolute;
    left: -30px;
    top: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: var(--gold);
}