/* ============================================
   LG-NewUi 设计变量系统
   基于 love-really.kikiw.cn 研究成果
   ============================================ */

:root {
  /* ========== 颜色系统 ========== */
  --lg-color-bg: #ffffff;
  --lg-color-bg-light: #f8f9fa;
  --lg-color-bg-dark: #1a1a2e;
  --lg-color-black: #000000;
  --lg-color-white: #ffffff;
  --lg-color-text: #333333;
  --lg-color-text-muted: #666666;
  --lg-color-text-subtle: #999999;
  --lg-color-border: #e5e7eb;
  --lg-color-border-light: #f3f4f6;

  /* 主题色 */
  --lg-color-rose: #e11d48;
  --lg-color-rose-light: #fff1f2;
  --lg-color-rose-dark: #be123c;
  --lg-color-purple: #7c3aed;
  --lg-color-purple-light: #ede9fe;
  --lg-color-blue: #3b82f6;
  --lg-color-blue-light: #eff6ff;
  --lg-color-green: #10b981;
  --lg-color-green-light: #ecfdf5;
  --lg-color-orange: #f59e0b;
  --lg-color-orange-light: #fffbeb;
  --lg-color-red: #ef4444;
  --lg-color-red-light: #fef2f2;
  --lg-color-cyan: #06b6d4;
  --lg-color-cyan-light: #ecfeff;

  /* ========== 渐变系统（18个） ========== */
  --lg-grad-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --lg-grad-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --lg-grad-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --lg-grad-cyan: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --lg-grad-orange: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --lg-grad-red: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  --lg-grad-rose: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  --lg-grad-moon: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --lg-grad-sunset: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --lg-grad-ocean: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --lg-grad-forest: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --lg-grad-night: linear-gradient(135deg, #0c0c1d 0%, #1a1a2e 100%);

  /* 字体渐变 */
  --lg-grad-font-purple: linear-gradient(135deg, #667eea, #764ba2);
  --lg-grad-font-rose: linear-gradient(135deg, #e11d48, #f43f5e);
  --lg-grad-font-blue: linear-gradient(135deg, #3b82f6, #60a5fa);
  --lg-grad-font-orange: linear-gradient(135deg, #f59e0b, #fbbf24);

  /* ========== 字体系统 ========== */
  --lg-font-main: 'Noto Serif SC', 'Georgia', serif;
  --lg-font-body: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  --lg-font-sans: 'Inter', 'Noto Sans SC', sans-serif;
  --lg-font-serif: 'Playfair Display', 'Noto Serif SC', serif;
  --lg-font-display: 'Dancing Script', cursive;
  --lg-font-mono: 'Fira Code', 'Consolas', monospace;

  /* ========== 间距系统 ========== */
  --lg-space-xs: 0.25rem;
  --lg-space-sm: 0.5rem;
  --lg-space-md: 1rem;
  --lg-space-lg: 1.5rem;
  --lg-space-xl: 2rem;
  --lg-space-2xl: 3rem;
  --lg-space-3xl: 4rem;

  /* ========== 圆角系统 ========== */
  --lg-radius-sm: 0.375rem;
  --lg-radius-md: 0.5rem;
  --lg-radius-lg: 0.75rem;
  --lg-radius-xl: 1rem;
  --lg-radius-2xl: 1.25rem;
  --lg-radius-3xl: 1.5rem;
  --lg-radius-full: 9999px;

  /* ========== 阴影系统（5级） ========== */
  --lg-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --lg-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --lg-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --lg-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --lg-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --lg-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* 彩色阴影 */
  --lg-shadow-rose: 0 4px 14px 0 rgba(225, 29, 72, 0.39);
  --lg-shadow-purple: 0 4px 14px 0 rgba(124, 58, 237, 0.39);
  --lg-shadow-blue: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
  --lg-shadow-green: 0 4px 14px 0 rgba(16, 185, 129, 0.39);

  /* ========== 过渡系统 ========== */
  --lg-transition-fast: 150ms ease;
  --lg-transition-normal: 300ms ease;
  --lg-transition-slow: 500ms ease;
  --lg-transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* 缓动函数（11种） */
  --lg-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --lg-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --lg-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --lg-ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --lg-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --lg-ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
  --lg-ease-elastic: cubic-bezier(0.16, 1, 0.3, 1);

  /* ========== Z-Index系统 ========== */
  --lg-z-dropdown: 1000;
  --lg-z-sticky: 1020;
  --lg-z-fixed: 1030;
  --lg-z-modal-backdrop: 1040;
  --lg-z-modal: 1050;
  --lg-z-popover: 1060;
  --lg-z-tooltip: 1070;
  --lg-z-toast: 1080;

  /* ========== 断点系统 ========== */
  --lg-breakpoint-sm: 640px;
  --lg-breakpoint-md: 768px;
  --lg-breakpoint-lg: 1024px;
  --lg-breakpoint-xl: 1280px;
  --lg-breakpoint-2xl: 1536px;

  /* ========== 导航栏变量 ========== */
  --lg-header-glass-bg: rgba(255, 255, 255, 0.65);
  --lg-header-glass-blur: saturate(180%) blur(20px);
  --lg-header-capsule-bg: rgba(255, 255, 255, 0.85);
  --lg-header-capsule-border: rgba(255, 255, 255, 0.9);
  --lg-header-icon-bg: rgba(0, 0, 0, 0.06);
  --lg-header-text-primary: #1f2937;
  --lg-header-text-secondary: #6b7280;

  /* ========== 留言系统变量 ========== */
  --lgmsg-primary: #007aff;
  --lgmsg-text-main: #1d1d1f;
  --lgmsg-text-muted: #98989d;
  --lgmsg-radius-round: 100px;
  --lgmsg-spring: cubic-bezier(0.32, 0.72, 0, 1);

  /* ========== 移动端变量 ========== */
  --lgnewui-glass-bg: rgba(255, 255, 255, 0.65);
  --lgnewui-glass-blur: saturate(180%) blur(25px);
  --lgnewui-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  --lgnewui-spring: cubic-bezier(0.175, 0.885, 0.32, 1.15);
  --lgnewui-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== 暗色模式（可选） ========== */
@media (prefers-color-scheme: dark) {
  :root {
    --lg-color-bg: #1a1a2e;
    --lg-color-bg-light: #16213e;
    --lg-color-text: #e5e5e5;
    --lg-color-text-muted: #a3a3a3;
    --lg-color-border: #374151;
  }
}
