/**
 * 渊渟集团官网 - CSS变量定义
 * 东方禅意极简风格
 */

:root {
  /* ========== 配色方案 ========== */
  /* 主色 */
  --color-rice-paper: #FAF8F5;      /* 宣纸白 - 主背景 */
  --color-ink-black: #1A1A1A;       /* 墨黑 - 主文字 */
  --color-cinnabar: #C45C48;        /* 朱砂 - 点缀/CTA */
  
  /* 辅助色 */
  --color-ink-gray: #4A4A4A;        /* 墨灰 - 次要文字 */
  --color-light-gray: #E8E6E3;      /* 浅灰 - 边框/分隔线 */
  --color-warm-white: #FFFDF9;      /* 暖白 - 卡片背景 */
  --color-cinnabar-light: #E07A68;  /* 浅朱砂 - 悬停状态 */
  --color-cinnabar-dark: #A84A3A;   /* 深朱砂 - 激活状态 */
  
  /* ========== 字体 ========== */
  --font-serif: 'Source Han Serif CN', 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: Georgia, 'Times New Roman', serif;
  
  /* ========== 字号 ========== */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  
  /* ========== 间距 ========== */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  
  /* ========== 布局 ========== */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  
  /* ========== 圆角 ========== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* ========== 阴影 ========== */
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 26, 26, 0.12);
  --shadow-xl: 0 16px 48px rgba(26, 26, 26, 0.16);
  
  /* ========== 过渡时间 ========== */
  --transition-fast: 200ms;
  --transition-normal: 300ms;
  --transition-slow: 500ms;
  --transition-slower: 800ms;
  
  /* ========== 缓动函数 ========== */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* ========== Z-Index层级 ========== */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ========== 响应式变量覆盖 ========== */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
  }
}

/* ========== 减少动画偏好 ========== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
    --transition-slower: 0ms;
  }
}
