:root {
    --tech-dark: #0f172a;
    --tech-deep: #020617;
    --tech-blue: #38bdf8;
    --tech-cyan: #22d3ee;
    --tech-purple: #818cf8;
    --tech-glow: rgba(56, 189, 248, 0.15);
    --glass-bg: rgba(22, 22, 24, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.5);
}

[data-theme="light"] {
    --tech-dark: #f1f5f9;
    --tech-deep: #f8fafc;
    --tech-blue: #0284c7;
    --tech-cyan: #0891b2;
    --tech-purple: #7c3aed;
    --tech-glow: rgba(2, 132, 199, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.7);
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
}

.tech-gradient-text {
    background: linear-gradient(to right, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-item-active {
    color: var(--tech-blue);
    border-bottom: 2px solid var(--tech-blue);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 覆盖 Tailwind 类以适应主题切换 */
[data-theme="light"] body {
    background-color: var(--tech-deep);
    color: var(--text-main);
}

[data-theme="light"] .text-slate-200 { color: var(--text-main); }
[data-theme="light"] .text-slate-300 { color: var(--text-main); }
[data-theme="light"] .text-slate-400 { color: var(--text-muted); }
[data-theme="light"] .text-slate-500 { color: var(--text-muted); }
[data-theme="light"] .text-white { color: #000; }
[data-theme="light"] .bg-tech-deep { background-color: var(--tech-deep); }
[data-theme="light"] .bg-tech-dark\/80 { background-color: var(--glass-bg); }
[data-theme="light"] .bg-tech-dark\/50 { background-color: var(--glass-bg); }
[data-theme="light"] .border-white\/10 { border-color: var(--glass-border); }
[data-theme="light"] .border-white\/5 { border-color: var(--glass-border); }
[data-theme="light"] .bg-white\/5 { background-color: rgba(0,0,0,0.05); }
[data-theme="light"] .hover:bg-white\/5:hover { background-color: rgba(0,0,0,0.08); }
[data-theme="light"] .tech-gradient-text { background-image: linear-gradient(to right, var(--tech-blue), var(--tech-purple)); }
[data-theme="light"] .bg-tech-blue { background-color: var(--tech-blue); color: #fff; }
[data-theme="light"] .text-tech-blue { color: var(--tech-blue); }
[data-theme="light"] .bg-tech-purple { background-color: var(--tech-purple); color: #fff; }
[data-theme="light"] .text-tech-purple { color: var(--tech-purple); }
[data-theme="light"] .bg-tech-cyan { background-color: var(--tech-cyan); color: #fff; }
[data-theme="light"] .text-tech-cyan { color: var(--tech-cyan); }
