/* ===================================================
   🎨 全局页面基础与进阶极客质感
   =================================================== */

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: transparent; 
}

/* 🎯 全局隐藏默认鼠标 */
html, body, *, *::before, *::after, a, button, input {
    cursor: none !important;
}

/* --- 滚动条亮色/暗色双适配 --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #ea580c; }

html.dark ::-webkit-scrollbar-track { background: #020617; }
html.dark ::-webkit-scrollbar-thumb { background: #334155; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #ea580c; }

.nav-scrolled {
    top: 0px !important;
    width: 100% !important;
    max-width: 100% !important;
}
.nav-scrolled > div {
    border-radius: 0px !important;
    border: none !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    box-shadow: 0 4px 30px -5px rgba(15, 23, 42, 0.08) !important;
}
html.dark .nav-scrolled > div {
    background-color: rgba(15, 23, 42, 0.9) !important; /* 暗黑悬浮导航底色 */
    box-shadow: 0 4px 30px -5px rgba(0, 0, 0, 0.5) !important;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================
   🎴 3D 偏转卡片 (Tilt Card)
   =================================================== */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}
.tilt-card:hover {
    box-shadow: 0 20px 40px -5px rgba(249, 115, 22, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
}
html.dark .tilt-card:hover {
    box-shadow: 0 20px 40px -5px rgba(249, 115, 22, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

/* ===================================================
   🔦 Vercel 级探照灯高亮边框 (Spotlight Hover)
   =================================================== */
.spotlight-card {
    position: relative;
}
.spotlight-card::after {
    content: '';
    position: absolute;
    inset: 0px;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(249, 115, 22, 0.4), transparent 40%);
    z-index: -1;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
}
.spotlight-card:hover::after {
    opacity: 1;
}
.spotlight-card > * {
    position: relative;
    z-index: 1;
}

/* ===================================================
   🧲 物理磁吸按钮 (Magnetic Buttons)
   =================================================== */
.magnetic-btn {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
    will-change: transform;
}
.magnetic-btn.magnetizing {
    transition: transform 0.1s ease-out, background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}