@charset "UTF-8";
/* ==========================================================================
   宏鼎五金 · 设计令牌与基础层  base.css
   --------------------------------------------------------------------------
   设计方向：Tempered Steel（回火钢）
   - 主调：冷调银灰金属体系，模拟不锈钢/电镀件的冷色中性
   - 强调：钢材回火色（低饱和橙），仅用于询价按钮与关键数据，面积 < 3%
   - 语言：硬边直角、精密刻度线、拉丝金属质感，拒绝圆角卡片堆叠
   加载顺序：base.css -> layout.css -> components.css -> pages.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
  /* 中性色阶（冷调，微弱偏蓝，模拟不锈钢反射） */
  --c-0:    #ffffff;
  --c-25:   #fafbfc;
  --c-50:   #f3f5f7;
  --c-100:  #eaeef1;
  --c-200:  #dde2e7;
  --c-300:  #c6ccd4;
  --c-400:  #a5adb7;
  --c-500:  #7d858f;
  --c-600:  #5b636d;
  --c-700:  #3f464f;
  --c-800:  #2b3138;
  --c-850:  #22272e;
  --c-900:  #181c22;
  --c-950:  #0f1216;

  /* 语义化映射 —— 浅色区 */
  --bg-page:    var(--c-25);
  --bg-sunken:  var(--c-50);
  --bg-surface: var(--c-0);
  --bg-invert:  var(--c-900);

  --ink-strong: var(--c-900);   /* 标题        - 21:1 对白 */
  --ink:        var(--c-700);   /* 正文        - 9.4:1 对白 */
  --ink-soft:   var(--c-600);   /* 次要正文    - 7.1:1 对白 */
  --ink-mute:   var(--c-500);   /* 弱化说明    - 4.6:1 对白 */

  /* 语义化映射 —— 深色区 */
  --on-invert-strong: #f6f8fa;
  --on-invert:        #c3cad2;
  --on-invert-mute:   #8b939d;

  /* 描边 */
  --line:        var(--c-200);
  --line-soft:   var(--c-100);
  --line-strong: var(--c-300);
  --line-invert: rgba(255, 255, 255, .14);

  /* 回火橙 —— 全站唯一强调色 */
  --temper:        #b04a18;   /* 浅底使用，对白 5.5:1 AA */
  --temper-hover:  #963d11;
  --temper-bright: #e8823c;   /* 深底使用，对深灰 6.3:1 AA */
  --temper-wash:   rgba(176, 74, 24, .08);

  --focus: #1f6feb;

  /* 金属质感
     注意：拉丝纹理周期必须 ≥6px。使用 4px 以下的细周期在大面积深色底上
     会与屏幕像素网格产生拍频，出现刺眼的摩尔纹干扰，因此仅用于小面积元素。 */
  --metal-face: linear-gradient(
    158deg,
    #fdfefe 0%, #e6eaee 16%, #ccd2d9 38%,
    #f2f4f6 52%, #c3cad2 72%, #e9ecef 88%, #d3d9df 100%
  );
  --metal-brushed:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.22) 0 1px,
      rgba(0,0,0,.05) 1px 3px,
      rgba(255,255,255,0) 3px 5px,
      rgba(0,0,0,.025) 5px 6px);

  /* 阴影 —— 冷调、低饱和，不使用纯黑 */
  --shadow-xs: 0 1px 2px rgba(15, 18, 22, .05);
  --shadow-sm: 0 2px 6px -1px rgba(15, 18, 22, .07), 0 1px 2px rgba(15, 18, 22, .05);
  --shadow-md: 0 12px 26px -12px rgba(15, 18, 22, .22), 0 2px 6px rgba(15, 18, 22, .06);
  --shadow-lg: 0 28px 56px -24px rgba(15, 18, 22, .3), 0 4px 12px rgba(15, 18, 22, .07);

  /* 字体：正文走系统中文黑体，技术数据走 DIN 系窄体 */
  --font-sans: "PingFang SC", "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei",
               "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC",
               system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-tech: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Oswald",
               "Arial Narrow", var(--font-sans);

  /* 流体字号 */
  --fs-display: clamp(2.15rem, 1.35rem + 3.4vw, 4rem);
  --fs-h2:      clamp(1.6rem, 1.15rem + 1.75vw, 2.4rem);
  --fs-h3:      clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  --fs-h4:      1.0625rem;
  --fs-body:    .9375rem;
  --fs-sm:      .875rem;
  --fs-xs:      .8125rem;
  --fs-2xs:     .75rem;

  --lh-tight: 1.12;
  --lh-snug:  1.34;
  --lh-body:  1.72;

  /* 间距（4px 基数） */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  --section-y: clamp(56px, 5.6vw, 104px);
  --shell: 1280px;
  --gutter: clamp(18px, 3.6vw, 40px);

  /* 动效 */
  --ease-out-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-out-expo:  cubic-bezier(.16, 1, .3, 1);
  --t-fast: 140ms;
  --t-base: 260ms;
  --t-slow: 480ms;
}

/* --------------------------------------------------------------------------
   2. 重置
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  /* 移动端抽屉导航停在视口右侧待机（transform: translateX(100%)），
     它会撑大文档的横向滚动区域，导致手机上可以左右拖动页面。
     这里裁掉横向溢出：先写 hidden 兜底，再用 clip 覆盖 ——
     clip 不创建滚动容器，不会破坏吸顶导航的 position: sticky。 */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

/* 键盘可达性 */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 1px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; top: -100px; left: var(--gutter); z-index: 200;
  padding: 10px 18px; background: var(--c-900); color: var(--c-0);
  font-size: var(--fs-sm); transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. 排版
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--ink-strong);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: -.015em; }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); letter-spacing: -.01em; }

p { text-wrap: pretty; }

strong { font-weight: 600; color: var(--ink-strong); }

/* 技术数据：型号、编号、统计数字统一用窄体 */
.tech {
  font-family: var(--font-tech);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* --------------------------------------------------------------------------
   4. 工具类
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 940px; }

.section { padding-block: var(--section-y); }.section--sunken { background: var(--bg-sunken); }
.section--surface { background: var(--bg-surface); }
.section--invert { background: var(--bg-invert); color: var(--on-invert); }
.section--invert h2, .section--invert h3, .section--invert h4 { color: var(--on-invert-strong); }

/* 区块头：只有一个承载信息的标题 + 一句引导，不做装饰性小标题 */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 3vw, 48px);
}
.section-head__text { max-width: 62ch; }
.section-head p {
  margin-top: var(--sp-3);
  color: var(--ink-soft);
  font-size: var(--fs-body);
  max-width: 58ch;
}
.section--invert .section-head p { color: var(--on-invert); }
.section-head__aside { flex-shrink: 0; padding-bottom: 4px; }

/* 精密刻度线 —— 全站视觉母题，钢尺式长短刻度 */
.ruler {
  height: 11px;
  color: var(--line-strong);
  background:
    repeating-linear-gradient(to right, currentColor 0 1px, transparent 1px 10px) 0 100% / 100% 5px no-repeat,
    repeating-linear-gradient(to right, currentColor 0 1px, transparent 1px 50px) 0 100% / 100% 11px no-repeat;
}
.ruler--invert { color: rgba(255, 255, 255, .2); }
.ruler--tight { opacity: .75; }

/* 拉丝金属面 */
.metal {
  background: var(--metal-face);
  position: relative;
}
.metal::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--metal-brushed);
  opacity: .5;
  pointer-events: none;
}

/* 文本 */
.lead { font-size: 1.0625rem; line-height: 1.66; color: var(--ink-soft); }
.muted { color: var(--ink-mute); }
.temper { color: var(--temper); }
.nowrap { white-space: nowrap; }   /* 防止中文术语在换行处被拆开 */

.grid { display: grid; gap: var(--sp-6); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.divider { height: 1px; background: var(--line); border: 0; }
.divider--invert { background: var(--line-invert); }

/* --------------------------------------------------------------------------
   5. 滚动入场（尊重减少动效偏好）
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow) var(--ease-out-quart),
              transform var(--t-slow) var(--ease-out-quart);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   6. 响应式断点收敛
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --lh-body: 1.7; }
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: flex-start; flex-direction: column; gap: var(--sp-4); }
  .section-head__aside { padding-bottom: 0; }
}
