/**
 * 宋向元汝瓷官网 - CSS变量定义
 * 设计理念：极简宋韵 · 雅致留白 · 奢侈品级视觉
 * Slogan: 「雨过天青云破处」
 */

:root {
  /* ═══════════════════════════════════════════════════════════
     品牌主色 · 天青
     源自宋代汝瓷标准釉色，低饱和度、温润质感
  ═══════════════════════════════════════════════════════════ */
  --color-tianqing: #6BA4B8;
  --color-tianqing-dark: #4A7C8C;
  --color-tianqing-light: #8FB8C9;
  --color-tianqing-pale: #B8D4DE;
  --color-cuiqing: #3D5C6A;
  
  /* ═══════════════════════════════════════════════════════════
     强调色 · 古铜金
     呼应汝瓷开片金丝，增添贵气
  ═══════════════════════════════════════════════════════════ */
  --color-gold: #C9A961;
  --color-gold-light: #D4B87A;
  --color-gold-dark: #A68B45;
  --color-bronze: #8B7355;
  
  /* ═══════════════════════════════════════════════════════════
     背景色 · 月白
     取自汝瓷月白釉色，温暖不刺眼
  ═══════════════════════════════════════════════════════════ */
  --color-yuebai: #F9F8F6;
  --color-cream: #FAF9F7;
  --color-fenqing: #F0EDE8;
  --color-sand: #E8E4DC;
  --color-sand-dark: #D4CFC5;
  
  /* ═══════════════════════════════════════════════════════════
     深色区块
     用于页脚、Hero叠加层
  ═══════════════════════════════════════════════════════════ */
  --color-bg-dark: #1C1A18;
  --color-bg-dark-2: #252320;
  --color-bg-dark-3: #2E2B28;
  
  /* ═══════════════════════════════════════════════════════════
     文字色
     温暖棕黑色系，避免纯黑带来的生硬感
  ═══════════════════════════════════════════════════════════ */
  --color-text: #2C2A28;
  --color-text-light: #6B635C;
  --color-text-muted: #7A756F;
  --color-text-inverse: #F9F8F6;
  --color-text-gold: #A68B45;
  
  /* ═══════════════════════════════════════════════════════════
     功能色
     状态提示
  ═══════════════════════════════════════════════════════════ */
  --color-success: #5A9E7E;
  --color-warning: #D4A961;
  --color-error: #B86B6B;
  --color-info: #6BA4B8;
  
  /* ═══════════════════════════════════════════════════════════
     字体系统（100%开源，无版权风险）
     ✅ 所有字体均采用SIL Open Font License开源许可
     ✅ 优先加载本地 fonts/ 目录，回退至 CDN（fonts.loli.net）
     ✅ 全部 fallback 链仅使用通用族名，零系统私有字体依赖
     ✅ 详见根目录 FONTS_LICENSE.md 了解完整许可信息
  ═══════════════════════════════════════════════════════════ */
  
  /* 书法体：用于标题、诗词、Slogan
     Long Cang (龙藏体): SIL Open Font License 1.1
     回退：cursive > 通用衬线 */
  --font-title: 'Long Cang', cursive, serif;
  
  /* 宋体：用于正文内容
     Noto Serif SC (思源宋体): SIL Open Font License 1.1
     回退：Songti SC > 通用衬线 */
  --font-body: 'Noto Serif SC', 'Songti SC', serif;
  
  /* 黑体：用于UI组件、按钮、标签
     Noto Sans SC (思源黑体): SIL Open Font License 1.1
     回退：通用无衬线 */
  --font-sans: 'Noto Sans SC', sans-serif;
  
  /* 西文衬线：用于价格、数字
     Cinzel: SIL Open Font License 1.1
     回退：Georgia > 通用衬线 */
  --font-number: 'Cinzel', 'Georgia', serif;
  
  /* ═══════════════════════════════════════════════════════════
     字体大小（基于1.25比例）
  ═══════════════════════════════════════════════════════════ */
  --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 */
  --text-6xl: 3.75rem;   /* 60px */
  --text-7xl: 4.5rem;    /* 72px */
  --text-hero: clamp(2.5rem, 8vw, 6rem);
  
  /* ═══════════════════════════════════════════════════════════
     行高
  ═══════════════════════════════════════════════════════════ */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* ═══════════════════════════════════════════════════════════
     字间距
  ═══════════════════════════════════════════════════════════ */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* ═══════════════════════════════════════════════════════════
     间距系统（8px基准网格）
  ═══════════════════════════════════════════════════════════ */
  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --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 */
  --space-32: 8rem;      /* 128px */
  
  /* ═══════════════════════════════════════════════════════════
     圆角
  ═══════════════════════════════════════════════════════════ */
  --radius-none: 0;
  --radius-sm: 0.125rem;  /* 2px */
  --radius-md: 0.25rem;   /* 4px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-full: 9999px;
  
  /* ═══════════════════════════════════════════════════════════
     阴影
  ═══════════════════════════════════════════════════════════ */
  --shadow-sm: 0 1px 2px rgba(44, 42, 40, 0.05);
  --shadow-md: 0 4px 6px rgba(44, 42, 40, 0.07);
  --shadow-lg: 0 10px 15px rgba(44, 42, 40, 0.1);
  --shadow-xl: 0 20px 25px rgba(44, 42, 40, 0.12);
  --shadow-2xl: 0 25px 50px rgba(44, 42, 40, 0.15);
  --shadow-gold: 0 0 30px rgba(201, 169, 97, 0.15);
  --shadow-tianqing: 0 0 30px rgba(107, 164, 184, 0.2);
  
  /* ═══════════════════════════════════════════════════════════
     动效缓动曲线
  ═══════════════════════════════════════════════════════════ */
  --ease-luxury: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ═══════════════════════════════════════════════════════════
     动效时长
  ═══════════════════════════════════════════════════════════ */
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 350ms;
  --duration-slower: 500ms;
  --duration-slowest: 1000ms;
  
  /* ═══════════════════════════════════════════════════════════
     布局
  ═══════════════════════════════════════════════════════════ */
  --container-max: 1400px;
  --container-narrow: 900px;
  --container-text: 65ch;
  
  /* ═══════════════════════════════════════════════════════════
     导航高度
  ═══════════════════════════════════════════════════════════ */
  --header-height: 80px;
  --header-height-mobile: 64px;
  
  /* ═══════════════════════════════════════════════════════════
     Z-Index层级
  ═══════════════════════════════════════════════════════════ */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* ═══════════════════════════════════════════════════════════
   深色模式支持（可选）
   用户可手动切换或跟随系统
═══════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    /* 深色模式下可调整的变量 */
  }
}

/* ═══════════════════════════════════════════════════════════
   减少动画模式（无障碍支持）
═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
    --duration-slowest: 0ms;
  }
}

/* ═══════════════════════════════════════════════════════════
   RTL布局支持（阿拉伯语）
═══════════════════════════════════════════════════════════ */
[dir="rtl"] {
  --direction: rtl;
}

[dir="ltr"] {
  --direction: ltr;
}
