/* Locally hosted web fonts keep the same typography on devices without installed fonts. */
@font-face {
  font-family: 'ElementUnified';
  src: url('../assets/fonts/MiSansLatin-Thin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF;
}

@font-face {
  font-family: 'ElementUnified';
  src: url('../assets/fonts/MiSansLatin-ExtraLight.woff2') format('woff2');
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF;
}

@font-face {
  font-family: 'ElementUnified';
  src: url('../assets/fonts/MiSansLatin-Light.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF;
}

@font-face {
  font-family: 'ElementUnified';
  src: url('../assets/fonts/MiSansLatin-Normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 350;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF;
}

@font-face {
  font-family: 'ElementUnified';
  src: url('../assets/fonts/MiSansLatin-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF;
}

@font-face {
  font-family: 'ElementUnified';
  src: url('../assets/fonts/MiSansLatin-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF;
}

@font-face {
  font-family: 'ElementUnified';
  src: url('../assets/fonts/MiSansLatin-Semibold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF;
}

@font-face {
  font-family: 'ElementUnified';
  src: url('../assets/fonts/MiSansLatin-Demibold.woff2') format('woff2');
  font-style: normal;
  font-weight: 650;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF;
}

@font-face {
  font-family: 'ElementUnified';
  src: url('../assets/fonts/MiSansLatin-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF;
}

@font-face {
  font-family: 'ElementUnified';
  src: url('../assets/fonts/MiSansLatin-Heavy.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF;
}

@font-face {
  font-family: 'Element Source Han Sans';
  src: url('../assets/fonts/SourceHanSansCN.woff2') format('woff2');
  font-style: normal;
  font-weight: 250 900;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+20000-323AF;
}

:root {
  /* ==================== 品牌核心色彩系统（取自 IDML 原色板） ==================== */
  /* 主视觉暗灰底色（R=34 G=34 B=34） */
  --color-bg-dark: #222222;
  /* About 品牌简介纯黑通栏底色 */
  --color-bg-black: #000000;
  /* 实景案例浅石材画框底色（R=246 G=245 B=243） */
  --color-bg-light-card: #f6f5f3;
  /* 页脚暖石米灰底色（R=214 G=211 B=196） */
  --color-bg-footer: #d6d3c4;
  /* 弹窗与抽屉深色玻璃底 */
  --color-bg-modal: #1a1a1a;

  /* 品牌点缀朱红色（c10m100y80k20，用于中文标题句号“。”及页脚红线） */
  --color-brand-red: #b32025;
  /* 首屏 Classic Design 森林绿高亮条（c85m38y100k2） */
  --color-brand-green: #2c6d35;

  /* ==================== 文字层级色彩 ==================== */
  --color-text-white: #ffffff;
  --color-text-white-soft: rgba(255, 255, 255, 0.88);
  /* 暗底导语柔灰（基于 IDML R=97 G=97 B=99 微调以兼顾屏幕可读性） */
  --color-text-muted-dark: #747477;
  /* 浅底导语暖灰（还原 IDML u99a 浅石色视觉层次） */
  --color-text-muted-light: #a7a498;
  --color-text-dark: #222222;
  --color-text-dark-secondary: #4a4a48;

  /* ==================== 边框与分割线 ==================== */
  --color-border-light: rgba(255, 255, 255, 0.58);
  --color-border-light-subtle: rgba(255, 255, 255, 0.38);
  --color-border-dark: rgba(34, 34, 34, 0.68);
  --color-divider-footer: rgba(34, 34, 34, 0.55);

  /* ==================== 统一字体令牌（中文思源黑体 + 英文 MiSans） ==================== */
  /* 全局混排字体栈：英文与数字命中 MiSans，中文命中思源黑体，无障碍降级至系统无衬线 */
  --font-family-unified: 'ElementUnified', 'Element Source Han Sans', 'Source Han Sans CN', '思源黑体 CN',
    'Noto Sans SC', 'PingFang SC', sans-serif;
  /* 纯英文标题/数字显式栈（确保即便在仅安装 MiSans 环境下也精确命中 MiSans） */
  --font-family-en: var(--font-family-unified);

  /* 统一字重梯度（仅以粗细区分全站排版层级） */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* ==================== 1440px 基准网格与精确留白 ==================== */
  /* 1440px 下左右边距严格对齐 x = 86px，核心版心宽度 1268px */
  --container-max-width: 1268px;
  --container-gutter: clamp(20px, 6vw, 86px);
  /* 顶栏左右外边距对齐 x = 61px */
  --header-gutter: clamp(18px, 4.25vw, 61px);

  /* ==================== 圆角与层级 (Z-Index) ==================== */
  --radius-pill: 999px;
  --radius-sm: 4px;
  --radius-md: 8px;

  --z-base: 1;
  --z-overlay: 10;
  --z-header: 100;
  --z-drawer: 200;
  --z-modal: 300;

  /* ==================== 动效曲线与时长 ==================== */
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 220ms;
  --duration-normal: 420ms;
  --duration-slow: 720ms;
}
