/* 引入基础字体备用 (Google Fonts 建议在 HTML Link 引入，这里留一个 @import 作为备选) */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;700&display=swap');

/* ========================================= */
/* 1. 全局变量与字体定义 */
/* ========================================= */
:root {
    /* 核心字体栈：
       1. Nunito: 英文数字圆体
       2. Yuanti/YouYuan: 中文圆体 (系统字体)
       3. PingFang/Noto: 兜底黑体
    */
    --font-sans: 'Nunito', 'Yuanti SC', 'YouYuan', 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif;
    --font-heading: 'Nunito', 'Yuanti SC', 'YouYuan', 'PingFang SC', sans-serif;
    --font-serif: 'Noto Serif SC', serif;
    --font-mono: 'JetBrains Mono', 'Varela Round', monospace;
}

body {
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
    /* 圆体字间距稍微宽一点 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 字体工具类 */
.font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    font-weight: 700;
}

.font-zen {
    font-family: var(--font-heading);
    /* 保持圆润风格 */
}

.font-code {
    font-family: var(--font-mono);
}

[x-cloak] {
    display: none !important;
}

/* ========================================= */
/* 2. 导航栏样式 */
/* ========================================= */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
}

.nav-scrolled .nav-text {
    color: #475569 !important;
}

.nav-transparent .nav-text {
    color: #ffffff !important;
}

/* ========================================= */
/* 3. 动画效果：流星 (Meteors) */
/* ========================================= */
@keyframes meteor {
    0% {
        transform: rotate(215deg) translateX(0);
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: rotate(215deg) translateX(-500px);
        opacity: 0;
    }
}

@keyframes shine {
    0% {
        transform: scale(0.8) translateY(0);
        opacity: 0.2;
    }

    50% {
        transform: scale(0.9) translateY(-10px);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.2;
    }
}

.meteor-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 2px;
    width: 2px;
    border-radius: 9999px;
    background-color: #64748b;
    box-shadow: 0 0 0 1px #ffffff10;
    transform: rotate(215deg);
    animation: meteor 5s linear infinite;
}

.meteor-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, #64748b, transparent);
}

/* ========================================= */
/* 4. 动画效果：财富引擎 (Wealth Engine) */
/* ========================================= */
@keyframes deep-float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(1deg);
    }
}

@keyframes wealth-pulse-shadow {

    0%,
    100% {
        filter: drop-shadow(0 20px 30px rgba(16, 185, 129, 0.2));
    }

    50% {
        filter: drop-shadow(0 40px 60px rgba(16, 185, 129, 0.5));
    }
}

.wealth-engine-anim {
    animation: deep-float 6s ease-in-out infinite, wealth-pulse-shadow 4s ease-in-out infinite;
    will-change: transform, filter;
}

.wealth-engine-anim:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    transition: transform 0.5s ease-out, filter 0.5s ease-out;
    filter: drop-shadow(0 50px 80px rgba(16, 185, 129, 0.7));
}

/* Canvas 辅助 */
#zenCanvas,
#particleCanvas,
#neuralCanvas {
    width: 100%;
    height: 100%;
    display: block;
}