/* ===== Talkpod Hub 前台主题变量（单一来源） =====
 * 瑞士工业极客风 / 品牌色：拓朋红 #E2231A
 * 修改本文件即可全局换肤（light/dark + 字体），无需重新编译 Vite（CSS 变量运行时生效）
 * 加载顺序：必须在 @vite 编译产物之后（layouts/app.blade.php、layouts/doc.blade.php 已配置）
 */

/* ---- 本地字体（不依赖 Google Fonts，全球加载稳定） ---- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-normal-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-normal-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-normal-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-normal-500.woff2') format('woff2'); }

:root {
    /* 字体（中文自动回退系统字体） */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;

    /* 字号体系（瑞士工业风：偏宽松、字重对比强；改字号只改这） */
    --text-display: 2.25rem;
    --text-h1: 1.875rem;
    --text-h2: 1.5rem;
    --text-h3: 1.25rem;
    --text-body: 0.9375rem;
    --text-sm: 0.875rem;
    --text-caption: 0.75rem;

    /* 行高（瑞士风偏宽松可读） */
    --leading-tight: 1.25;
    --leading-snug: 1.4;
    --leading-body: 1.625;
    --leading-relaxed: 1.75;

    /* 明亮模式 */
    --bg: #F8F9FA;
    --surface: #FFFFFF;
    --border: #E5E7EB;
    --text: #121212;
    --muted: #8E8E93;
    --accent: #E2231A;
    --accent-soft: rgba(226, 35, 26, 0.1);
}

.dark {
    /* 暗黑模式 */
    --bg: #121212;
    --surface: #1A1A1E;
    --border: #2A2A2E;
    --text: #E5E7EB;
    --muted: #8E8E93;
    --accent: #E2231A;
}
