/* ==========================================================================
   ZNZBW / Design Tokens
   智能装备网全站改版 · 现代门户 · 清爽蓝白
   布局守恒：板块顺序 / 导航项 / 元素位置不变，仅替换视觉语言
   首页与频道页支持宽幅容器；详情页与功能页保持 1200px 阅读宽度
   ========================================================================== */

:root {
  color-scheme: light;

  /* ---- Neutral: 偏蓝中性色，不使用纯黑纯白 ---- */
  --ink-900: #0d1b2c;
  --ink-800: #1a2c42;
  --ink-700: #2b3f57;
  --ink-600: #425870;
  --ink-500: #566b84;   /* 次要正文，白底对比度 >= 4.5:1 */
  --ink-400: #7d90a6;   /* 辅助信息，仅用于非关键文本 */
  --ink-300: #a6b5c7;

  --canvas:    #f4f8fd;
  --surface:   #ffffff;
  --surface-2: #f7fafd;
  --surface-3: #eef5fd;
  --surface-4: #e6f0fb;
  --line:        #dfe8f2;
  --line-strong: #c9d8ea;

  /* ---- Brand: 单一明亮蓝 ---- */
  --brand-50:  #edf5ff;
  --brand-100: #d9eaff;
  --brand-200: #b7d5ff;
  --brand-300: #8ab9ff;
  --brand-400: #4b93ff;
  --brand-500: #1f6feb;  /* PRIMARY · 白字对比度 ~4.8:1 */
  --brand-600: #1558c9;
  --brand-700: #0f449f;
  --brand-800: #0b3377;
  --brand-ink: #0a2f6b;

  /* ---- Signal: 信号橙，延续老站橙色基因，仅作极小面积点缀 ---- */
  --signal:      #f47b20;
  --signal-soft: #fff2e6;

  /* ---- Semantic ---- */
  --success: #0f8a68;  --success-soft: #e6f6f0;
  --warning: #b8750c;  --warning-soft: #fff5e3;
  --danger:  #cf3b3b;  --danger-soft:  #fdeeee;
  --info:    var(--brand-500);

  /* ---- 会员等级：低饱和，不用霓虹 ---- */
  --tier-diamond: #4c72a8;
  --tier-gold:    #a8802d;
  --tier-silver:  #7d8fa3;
  --tier-bronze:  #a5714c;
  --tier-normal:  #7b8896;

  /* ---- Typography ----
     Bahnschrift / DIN Alternate 是系统自带的 DIN 风格字体，
     用于编号、参数与英文标签，形成工业参数化排版的记忆点；无外网依赖。 */
  --font-sans: "Segoe UI Variable Text", "Segoe UI", "PingFang SC",
               "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "Segoe UI Variable Display",
                  "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Segoe UI", system-ui, sans-serif;

  --fs-12: .75rem;    /* 12 */
  --fs-13: .8125rem;  /* 13 */
  --fs-14: .875rem;   /* 14 */
  --fs-15: .9375rem;  /* 15 */
  --fs-16: 1rem;      /* 16 */
  --fs-18: 1.125rem;  /* 18 */
  --fs-20: 1.25rem;   /* 20 */
  --fs-24: 1.5rem;    /* 24 */
  --fs-28: clamp(1.375rem, 1.2rem + .65vw, 1.75rem);
  --fs-34: clamp(1.625rem, 1.35rem + 1.1vw, 2.125rem);
  --fs-hero: clamp(2rem, 1.5rem + 2.1vw, 3.25rem);

  --lh-tight: 1.22;
  --lh-snug: 1.42;
  --lh-body: 1.68;
  --ls-tight: -.018em;
  --ls-label: .16em;

  /* ---- Spacing: 4px 基准，节奏随层级变化 ---- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-8: 32px;  --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px;
  /* 首页各楼层（板块）之间的垂直间距：按需求收紧到 20px */
  --section-gap: 20px;

  /* ---- Radius ---- */
  --r-4: 4px;  --r-6: 6px;  --r-8: 8px;  --r-12: 12px;
  --r-16: 16px; --r-20: 20px; --r-pill: 999px;

  /* ---- Elevation: 柔和、带蓝调，不用通用黑阴影 ---- */
  --sh-1: 0 1px 2px rgba(13,42,80,.045), 0 2px 10px rgba(13,42,80,.035);
  --sh-2: 0 6px 18px rgba(13,42,80,.075), 0 1px 3px rgba(13,42,80,.04);
  --sh-3: 0 18px 44px rgba(13,42,80,.12);
  --sh-focus: 0 0 0 3px rgba(31,111,235,.22);

  /* ---- Motion: 状态变化动效，指数缓动，不回弹 ---- */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 460ms;

  /* ---- Layout: 结构不变，首页与频道页可切换宽幅 ---- */
  --container: 1200px;       /* 标准栅格：详情页 / 登录 / 导览 / 设计规范 */
  --container-wide: 1680px;  /* 宽幅栅格：首页 + 频道页，由 body[data-wide] 启用 */
  --gutter: 20px;
  --topbar-h: 38px;
  --header-h: 88px;
  --nav-h: 54px;
  --cat-w: 236px;
  --dock-w: 52px;

  /* ---- Breakpoints 说明（CSS 内以 media query 实现）----
     < 640  mobile · 640-1023 tablet · 1024-1279 desktop · >= 1280 large */
}

/* 极淡坐标网格：品牌细节，只在首屏与少量区块出现，绝不铺满全站 */
:root {
  --grid-line: rgba(31,111,235,.055);
  --mesh: linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
          linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
}
