body {
    margin: 0;
    background: #05070f;
    color: white;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    overflow: hidden;
    touch-action: none;
}

/* 3D 容器全屏置底 */
#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 高级导航栏（玻璃拟态强化） */
.global-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1300px;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    background: rgba(10, 15, 35, 0.4) !important;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}
.logo img {
    height: 30px;
    transition: opacity 0.3s;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.3));
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.2s, text-shadow 0.2s;
}
.nav-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 0 8px #5ff6ff, 0 0 16px #5ff6ff;
}
.nav-item .icon {
    font-size: 18px;
}
.nav-item p {
    margin: 2px 0 0;
    font-size: 10px;
}

/* 探索者模式开关 */
.explorer-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.toggle-switch {
    width: 44px;
    height: 22px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    position: relative;
    transition: background 0.3s;
}
.toggle-dot {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left 0.3s;
}
body.machine-mode .toggle-switch {
    background: #5ff6ff;
}
body.machine-mode .toggle-dot {
    left: 25px;
}

/* 英雄区标题 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin: 0;
    background: linear-gradient(90deg, #fff, #5ff6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 能量环动画 */
.energy-core {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95,246,255,0.15), transparent 70%);
    filter: blur(40px);
    animation: pulse 4s infinite ease-in-out;
    z-index: -2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.6; }
}

/* 节点信息面板 */
#node-panel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 260px;
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #5ff6ff;
    border-radius: 15px;
    padding: 20px;
    display: none;
    z-index: 100;
}
#node-panel button {
    width: 100%;
    padding: 8px;
    background: #5ff6ff;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    transition: background 0.2s;
}
#node-panel button:hover {
    background: #9ff9ff;
}

@media (max-width: 768px) {
    .logo-text, .toggle-label, .nav-item p {
        display: none;
    }
}
