/**
 * 设计令牌 - Python 编程助手
 * 统一品牌色（青绿 + 暖橙）、字体、圆角、阴影与动效
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* 品牌色 */
  --color-primary: #0d9488;
  --color-primary-hover: #0f766e;
  --color-primary-light: rgba(13, 148, 136, 0.12);
  --color-primary-border: rgba(13, 148, 136, 0.35);
  --color-accent: #ea580c;
  --color-accent-light: rgba(234, 88, 12, 0.12);

  /* 中性色 */
  --color-bg: #f8fafb;
  --color-bg-elevated: #ffffff;
  --color-surface: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-text: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;

  /* 语义色 */
  --color-success: #059669;
  --color-success-bg: #d1fae5;
  --color-error: #dc2626;
  --color-error-bg: #fee2e2;
  --color-link: var(--color-primary);
  --color-link-hover: var(--color-primary-hover);

  /* 侧边栏（与主色协调） */
  --sidebar-bg: #f1f5f9;
  --sidebar-border: #e2e8f0;
  --sidebar-text: #334155;
  --sidebar-hover: rgba(13, 148, 136, 0.08);
  --sidebar-active-bg: rgba(13, 148, 136, 0.14);
  --sidebar-active-text: var(--color-primary);

  /* 字体 */
  --font-sans: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'Consolas', 'Monaco', monospace;

  /* 字号 */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 20px;
  --text-3xl: 24px;
  --text-hero: 28px;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-focus: 0 0 0 3px var(--color-primary-light);

  /* 动效 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 减少动画（尊重用户偏好） */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01s;
    --transition-base: 0.01s;
    --transition-smooth: 0.01s;
  }
}
