/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* 页面背景与字体 */
body { background-color: #f5f5f5; font-family: -apple-system, system-ui, sans-serif; color: #111111; overflow-x: hidden; }

/* 恢复原生指针显示 */
html, body, a, button { cursor: auto !important; }

/* 丝滑延迟跟随光标：初始设为可见，由JS控制淡出 */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
    mix-blend-mode: difference;
    opacity: 1;
    transition: opacity 0.4s ease;
    will-change: transform;
}

/* 全屏WebGL背景 */
#webgl-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* 导航栏固定容器 */
.navbar { position: relative; top: 5px; width: 100%; z-index: 1000; }

/* 导航列表布局 */
.navbar ul { display: flex; width: 100%; list-style: none; }

/* 单元格均分 */
.navbar li { flex: 1; }

/* 导航链接样式 */
.navbar li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 64px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
    color: #111111;
}

/* 导航单元格比例微调 */
.navbar li.nav-home { flex: 0 0 64px; }
.navbar li.nav-spacing { flex: 2.5; }
.navbar li.nav-linkedin { flex: 0.5; }
.navbar li.nav-en { flex: 0.5; }

/* 矢量图标尺寸与颜色 */
.nav-icon { height: 42px; width: 42px; display: block; color: inherit; }
.nav-linkedin { height: 18px; display: block; color: inherit; }

/* 导航文字动画基础 */
.nav-inner {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.24, 0.8, 0.36, 1), filter 0.3s ease;
    will-change: transform;
}

/* 碰撞检测触发的活跃状态 */
.nav-inner.is-active {
    transform: translateY(-5px);
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
}