/* ============================================================
   RLB Steel — Global Design System Tokens
   ─────────────────────────────────────────────────────────
   全站唯一色值/字体/间距/圆角/阴影/动画变量源头。
   所有CSS模块必须引用变量，禁止硬编码字面量。
   后续开发页面严禁私自修改此文件中的色值、尺寸、字体规范。
   ============================================================ */

:root {

  /* ═══════════════════════════════════════════════════
     1. COLOR — 重工业深色风格，无高饱和刺眼配色
     ═══════════════════════════════════════════════════ */

  /* 主色 */
  --color-dark:            #222831;   /* 深空灰 — 标题/正文/深色区块底色 */
  --color-dark-light:      #393E46;   /* 浅碳灰 — 次要文字/muted标题 */
  --color-primary:         #0F52BA;   /* 金属蓝 — CTA/链接/强调色 */
  --color-primary-dark:    #0A3D8F;   /* 深金属蓝 — hover/active状态 */
  --color-primary-light:   #E8F0FE;   /* 冰蓝淡底 — 浅色区块/标签背景 */
  --color-gray:            #D6D6D6;   /* 中性银灰 — 边框/分割线 */
  --color-gray-light:      #F5F5F5;   /* 浅银灰 — 交替区块背景 */
  --color-white:           #FFFFFF;

  /* 语义色（仅用于表单校验等场景，非品牌色） */
  --color-success:         #2E7D32;
  --color-error:           #C62828;
  --color-warning:         #F9A825;

  /* 透明度变体 */
  --color-dark-90:         rgba(34,40,49,0.90);
  --color-dark-80:         rgba(34,40,49,0.80);
  --color-dark-60:         rgba(34,40,49,0.60);
  --color-white-10:        rgba(255,255,255,0.10);
  --color-white-20:        rgba(255,255,255,0.20);
  --color-white-50:        rgba(255,255,255,0.50);
  --color-white-80:        rgba(255,255,255,0.80);
  --color-overlay:         rgba(0,0,0,0.55);

  /* ═══════════════════════════════════════════════════
     2. TYPOGRAPHY — Montserrat 全站统一
     ═══════════════════════════════════════════════════ */

  --font-primary:          'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-cjk:              'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 字号阶梯 */
  --font-size-xs:          0.75rem;    /* 12px */
  --font-size-sm:          0.875rem;   /* 14px */
  --font-size-md:          1rem;       /* 16px */
  --font-size-lg:          1.125rem;   /* 18px */
  --font-size-xl:          1.5rem;     /* 24px */
  --font-size-2xl:         2rem;       /* 32px */
  --font-size-3xl:         2.5rem;     /* 40px */
  --font-size-4xl:         3rem;       /* 48px */
  --font-size-5xl:         3.5rem;     /* 56px */

  /* 字重 — Montserrat支持300~800 */
  --font-weight-light:     300;
  --font-weight-regular:   400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-extrabold: 800;

  /* 行高 */
  --line-height-tight:     1.25;
  --line-height-normal:    1.6;
  --line-height-loose:     1.8;

  /* 字间距 */
  --letter-spacing-tight:  -0.5px;
  --letter-spacing-normal: 0;
  --letter-spacing-wide:   1px;
  --letter-spacing-wider:  2px;

  /* ═══════════════════════════════════════════════════
     3. SPACING — 8px 基础网格
     ═══════════════════════════════════════════════════ */

  --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 */

  /* ═══════════════════════════════════════════════════
     4. BORDER RADIUS — 卡片统一8px
     ═══════════════════════════════════════════════════ */

  --radius-sm:             4px;
  --radius-md:             8px;        /* 标准卡片/按钮圆角 */
  --radius-lg:             12px;
  --radius-xl:             16px;
  --radius-full:           9999px;     /* 胶囊形 */

  /* ═══════════════════════════════════════════════════
     5. SHADOW — 轻微柔和投影
     ═══════════════════════════════════════════════════ */

  --shadow-sm:             0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:             0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:             0 8px 24px rgba(0,0,0,0.10);
  --shadow-xl:             0 12px 40px rgba(0,0,0,0.14);
  --shadow-inner:          inset 0 1px 3px rgba(0,0,0,0.06);

  /* ═══════════════════════════════════════════════════
     6. TRANSITION — 平缓过渡
     ═══════════════════════════════════════════════════ */

  --transition-fast:       150ms ease;
  --transition-base:       250ms ease;
  --transition-slow:       400ms ease;
  --transition-bounce:     400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth:     300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ═══════════════════════════════════════════════════
     7. LAYOUT
     ═══════════════════════════════════════════════════ */

  --container-max:         1200px;
  --container-wide:        1400px;
  --top-contact-height:    32px;
  --header-height:         72px;
  --header-height-scroll:  60px;
  --sidebar-width:         280px;

  /* ═══════════════════════════════════════════════════
     8. Z-INDEX SCALE
     ═══════════════════════════════════════════════════ */

  --z-dropdown:            100;
  --z-sticky:              200;
  --z-overlay:             300;
  --z-modal:               400;
  --z-toast:               500;

  /* ═══════════════════════════════════════════════════
     9. DIVIDER — 纤细分割线
     ═══════════════════════════════════════════════════ */

  --divider-color:         var(--color-gray);
  --divider-width:         1px;

  /* ═══════════════════════════════════════════════════
     10. TEXTURE — SVG钢材轧制纹理（低调背景装饰）
     ═══════════════════════════════════════════════════ */

  --texture-rolling:       url("../images/textures/steel-rolling.svg");
  --texture-cutting:       url("../images/textures/steel-cutting.svg");
  --texture-opacity:       0.03;       /* 极低透明度，不抢占主体视觉 */
}
