/* 自托管字体 */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('/images/fonts/Inter-400-latin.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    src: url('/images/fonts/Inter-500-latin.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('/images/fonts/Inter-600-latin.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('/images/fonts/Inter-700-latin.ttf') format('truetype');
}

@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 400;
    src: url('/images/fonts/NotoSansSC-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 500;
    src: url('/images/fonts/NotoSansSC-500.ttf') format('truetype');
}
@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 700;
    src: url('/images/fonts/NotoSansSC-700.ttf') format('truetype');
}

/* CSS变量定义 */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2128;
    --bg-hover: #252c35;
    --accent: #58a6ff;
    --accent-secondary: #7c3aed;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --border: #30363d;
    --success: #3fb950;
    --warning: #d29922;
    --logo-grad-1: var(--text-primary);
    --logo-grad-2: var(--accent);
    --logo-grad-3: var(--accent);
    --glass-bg: rgba(28, 33, 40, 0.72);
    --glass-border: rgba(48, 54, 61, 0.3);
    --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

:root.light {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-card: #ffffff;
    --bg-hover: #f3f4f6;
    --accent: #0969da;
    --accent-secondary: #7c3aed;
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --border: #d0d7de;
    --success: #1a7f37;
    --warning: #9a6700;
    --logo-grad-1: var(--text-primary);
    --logo-grad-2: var(--accent);
    --logo-grad-3: var(--accent);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(208, 215, 222, 0.55);
    --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* 浅色主题：更强的背景渐变 */
:root.light body::after {
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(9, 105, 218, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(9, 105, 218, 0.08) 0%, transparent 50%);
}

:root.light body::before {
    opacity: 0.025;
}

:root {
    --nav-height: 64px;
    --footer-height: auto;
}