/* ═══════════════════════════════════════════════════════════════
   EduPlatform 统一设计 Token（唯一颜色/尺度来源）
   视觉方向：高端渐变紫蓝（#667eea → #764ba2）
   后台与门户共享同一套 token 值；门户另存 main/css/design-system.css 副本。
   改配色请只改这里 + 同步门户 design-system.css。
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* ── 品牌渐变端点 ── */
    --brand-a: #667eea;   /* indigo 渐变起 */
    --brand-b: #764ba2;   /* violet 渐变终 */
    --gradient-brand: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-sidebar: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);

    /* ── 主色：indigo 色阶（主操作、链接、选中态）── */
    --primary-50:  #eef1fe;
    --primary-100: #e2e6fe;
    --primary-200: #c6cefc;
    --primary-300: #a4b0f7;
    --primary-400: #8391f0;
    --primary-500: #667eea;   /* 主色 */
    --primary-600: #5664d8;   /* 悬停/文字用深一档 */
    --primary-700: #4a51b8;
    --primary-800: #3c4092;
    --primary-900: #2f3370;

    /* ── 辅色：violet 色阶（渐变第二端、强调）── */
    --secondary-50:  #f5effb;
    --secondary-100: #ece0f7;
    --secondary-200: #d8c1ee;
    --secondary-300: #c2a1e3;
    --secondary-400: #a97fd0;
    --secondary-500: #764ba2;  /* 辅色 */
    --secondary-600: #643e8c;
    --secondary-700: #533373;
    --secondary-800: #42285a;
    --secondary-900: #321e44;

    /* ── 强调色：玫瑰（产品亮点，慎用）── */
    --accent-50:  #fef2f5;
    --accent-100: #fde3ea;
    --accent-200: #fbc7d5;
    --accent-300: #f79dba;
    --accent-400: #f26d9a;
    --accent-500: #ec4d7d;
    --accent-600: #d63a68;
    --accent-700: #b02d53;
    --accent-800: #8a2241;
    --accent-900: #641831;

    /* ── 中性色：slate 蓝灰色阶（背景/边框/文字）── */
    --neutral-0:   #ffffff;
    --neutral-50:  #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    /* ── 语义色 ── */
    --success-50:  #eafaf3;
    --success-500: #36b37e;
    --success-600: #2c9a6a;
    --success-700: #1f8a63;

    --warning-50:  #fff8ec;
    --warning-500: #f5a623;
    --warning-600: #d9921d;
    --warning-700: #b5761a;

    --danger-50:   #fef2f2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;

    --info-50:  #eef1fe;
    --info-500: #667eea;
    --info-700: #4a51b8;

    /* ── 字体 ── */
    --font-family-primary: -apple-system, 'Microsoft YaHei', 'PingFang SC',
        'Helvetica Neue', Arial, 'Segoe UI', sans-serif;
    --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono',
        Consolas, 'Courier New', monospace;

    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.8125rem;  /* 13px */
    --text-base: 0.875rem; /* 14px - 管理系统正文 */
    --text-md: 0.9375rem;  /* 15px */
    --text-lg: 1.0625rem;  /* 17px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */

    --leading-tight: 1.25;
    --leading-snug: 1.4;
    --leading-normal: 1.55;
    --leading-relaxed: 1.7;

    /* ── 间距 ── */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* ── 圆角（卡片 12-16px，控件 8-10px）── */
    --radius-sm: 0.375rem;  /* 6px */
    --radius-base: 0.5rem;  /* 8px */
    --radius-md: 0.625rem;  /* 10px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px - 卡片 */
    --radius-full: 9999px;

    /* ── 阴影（带偏移 + 柔和模糊）── */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 16px -4px rgba(15, 23, 42, 0.12), 0 2px 6px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 16px 32px -8px rgba(15, 23, 42, 0.16), 0 4px 10px -4px rgba(15, 23, 42, 0.08);
    --shadow-brand: 0 10px 24px -8px rgba(102, 126, 234, 0.35);

    /* ── 过渡 ── */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 260ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 420ms cubic-bezier(0.4, 0, 0.2, 1);

    /* ── 层级 ── */
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}
