/* =================================================================
   广西骏安检测有限公司 · 官方网站
   全站样式表  style.css
   -----------------------------------------------------------------
   设计基调：专业 / 权威 / 可信赖
   主色 深蓝 #0A2342 · 强调 金色 #C9A961 · 背景 白
   说明：本文件分区清晰、注释完整，方便后期自行维护。
   修改主题色只需改下方“设计变量”一处即可全站生效。
   ================================================================= */

/* ============ 0. 自托管字体（latin 子集 · 离线 · OFL） ============
   仅用于拉丁字母/数字层：资质代码、TSG 编号、数据读数、英文标签；
   中文走系统字体（按字形自动回退）。均带系统兜底，字体文件缺失也不影响排版。
   来源与许可见 ../fonts/README.txt */
@font-face {
  font-family: "Saira Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/saira-semicondensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Saira Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/saira-semicondensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibmplexmono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ibmplexmono-600.woff2") format("woff2");
}

/* ============ 1. 设计变量（改这里即可换主题） ============ */
:root {
  /* —— 品牌色 —— */
  --navy-900: #061629;   /* 最深，用于深色区底部渐变 */
  --navy-800: #0A2342;   /* 品牌主色：导航、Hero、Footer */
  --navy-700: #102E54;   /* 次深 */
  --navy-600: #1C4173;   /* 中蓝 */
  --steel:    #2A3F5F;   /* 钢蓝，次要文字/线条（旧，保留兼容） */

  /* —— 技术结构色 · 蓝图层（网格/刻度/规程编号/数据副标/次级图标） —— */
  --steel-blue: #5B7CA3;  /* 蓝图钢：线条、刻度、次级图标 */
  --steel-ink:  #41618A;  /* 蓝图钢（深）：浅底上的规程引用文字，达 WCAG AA */
  --bp-line:      rgba(123,162,205,.16); /* 深色版块上的蓝图网格线 */
  --bp-line-soft: rgba(123,162,205,.07); /* 更淡的蓝图网格线 */
  --bp-line-lt:   rgba(10,35,66,.05);     /* 浅色版块上的极淡网格线 */

  /* —— 强调金：仅用于权威标记 · 仪表弧 · CTA · 激活态 —— */
  --gold:        #C9A961; /* 强调金 */
  --gold-bright: #DEC07E; /* 亮金：hover 提亮 */
  --gold-soft:   rgba(201,169,97,.14); /* 金色薄底 */

  /* —— 中性色 —— */
  --white:  #FFFFFF;
  --paper:  #F6F8FB;     /* 冷调浅灰，版块分隔背景 */
  --paper2: #EDF1F7;
  --ink:    #16202E;     /* 正文深色（带蓝调） */
  --ink-2:  #4A5562;     /* 次要正文 */
  --ink-3:  #8A93A0;     /* 辅助/弱化文字 */
  --line:   #E2E8F0;     /* 发丝分隔线 */
  --line-dk: rgba(255,255,255,.14); /* 深色区分隔线 */

  /* —— 字体 —— */
  --font-cjk: "PingFang SC","Microsoft YaHei UI","Microsoft YaHei",
              "Source Han Sans SC","Noto Sans CJK SC","Hiragino Sans GB",
              sans-serif;
  /* 展示型：工程窄体无衬线，用于大号数字、英文标签（自托管，系统兜底 Oswald/Bahnschrift） */
  --font-display: "Saira Semi Condensed","Oswald","Bahnschrift",var(--font-cjk);
  /* 等宽：资质代码、TSG 编号、日期、数据读数（自托管，兜底 Bahnschrift/系统等宽） */
  --font-mono: "IBM Plex Mono","Bahnschrift","DIN Alternate",ui-monospace,"Cascadia Mono","Consolas",monospace;
  /* 向后兼容旧引用（.num/.stat-num/.eyebrow-code 等统一指向等宽） */
  --font-num: var(--font-mono);

  /* —— 字号（响应式，clamp 自动伸缩） —— */
  --fs-h1: clamp(2.1rem, 1.2rem + 3.6vw, 4rem);     /* ≈34–64px */
  --fs-h2: clamp(1.7rem, 1.1rem + 2.4vw, 2.9rem);   /* ≈27–46px */
  --fs-h3: clamp(1.25rem, 1.05rem + .8vw, 1.85rem); /* ≈20–30px */
  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem); /* ≈16–17px */

  /* —— 布局 —— */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 10px;
  --radius-sm: 6px;

  /* —— 间距刻度（4/8px 节奏，统一卡片/版块内距） —— */
  --sp-1: .25rem; --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem;   --sp-7: 2.5rem; --sp-8: 3rem;

  /* —— 动效 —— */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: .22s;
  --t-mid:  .32s;

  --shadow-sm: 0 2px 8px rgba(10,35,66,.06);
  --shadow-md: 0 12px 30px rgba(10,35,66,.10);
  --shadow-lg: 0 24px 60px rgba(10,35,66,.16);
}

/* ============ 2. 基础重置 ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-cjk);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

/* 数字/编号统一字体 + 等宽数字 */
.num, .stat-num, .eyebrow-code {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ============ 3. 通用布局工具 ============ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.section--paper { background: var(--paper); }
.section--navy  { background: var(--navy-800); color: var(--white); }

/* 版块标题组（眉标 + 主标题 + 引言） */
.head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.head--center { margin-inline: auto; text-align: center; }

/* 眉标：技术规程编号风格（结构即信息） */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold);
}
.head--center .eyebrow { justify-content: center; }
.eyebrow-code { color: var(--gold); font-weight: 600; }

.head h2 {
  font-size: var(--fs-h2); font-weight: 800; line-height: 1.18;
  letter-spacing: -.01em; color: inherit;
}
.section--navy .head h2 { color: var(--white); }
.head .lead {
  margin-top: 1rem; font-size: 1.06rem; color: var(--ink-2);
  line-height: 1.75;
}
.section--navy .head .lead { color: #C8D2E0; }

/* ============ 3.5 签名工具类：钢印铭牌 · 规程引用 · 蓝图网格 ============
   设计母题「测量系统」的可复用零件，均为单类选择器以避免特异性冲突。 */

/* 钢印铭牌：把资质代码 RD2/DD2·DD3 渲染成蚀刻金属牌（深底金字，内凹质感） */
.plate {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-mono); font-weight: 600;
  font-size: .72rem; letter-spacing: .14em; line-height: 1;
  color: var(--gold);
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(201,169,97,.45); border-radius: 4px;
  padding: .42em .62em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 -1px 2px rgba(0,0,0,.32);
  white-space: nowrap;
}
.plate--sm { font-size: .66rem; padding: .34em .5em; letter-spacing: .12em; }

/* 规程引用行：依据 TSG 21 —— 技术中间色 + 等宽，结构即信息 */
.reg-ref {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .03em;
  color: var(--steel-ink);
}
.reg-ref::before { content: ""; width: 14px; height: 1px; background: var(--steel-blue); flex: none; }
.section--navy .reg-ref, .blueprint .reg-ref { color: #9FB6D4; }
.section--navy .reg-ref::before, .blueprint .reg-ref::before { background: var(--steel-blue); }

/* 蓝图坐标网格：纯 CSS 叠加在深色版块上，打破深蓝单调（无图片） */
.blueprint { position: relative; }
.blueprint > * { position: relative; z-index: 1; }
.blueprint::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, var(--bp-line) 0 1px, transparent 1px var(--bp-cell, 60px)),
    repeating-linear-gradient(0deg,  var(--bp-line-soft) 0 1px, transparent 1px var(--bp-cell, 60px));
  -webkit-mask-image: radial-gradient(125% 105% at 50% 0%, #000 32%, transparent 80%);
          mask-image: radial-gradient(125% 105% at 50% 0%, #000 32%, transparent 80%);
}
/* 浅色版块上的极淡网格变体 */
.blueprint--lt::after {
  background-image:
    repeating-linear-gradient(90deg, var(--bp-line-lt) 0 1px, transparent 1px var(--bp-cell, 60px)),
    repeating-linear-gradient(0deg,  var(--bp-line-lt) 0 1px, transparent 1px var(--bp-cell, 60px));
  -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, #000 18%, transparent 72%);
          mask-image: radial-gradient(120% 120% at 50% 0%, #000 18%, transparent 72%);
}

/* ============ 4. 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              filter var(--t-fast) var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }

/* 主按钮：金色 */
.btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 6px 18px rgba(201,169,97,.28); }
.btn--gold:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,169,97,.36); }

/* 次按钮：描边（深色背景上为白边，浅色背景上为蓝边） */
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn--outline:hover { background: var(--navy-800); color: var(--white); transform: translateY(-2px); }

.btn:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }

/* 文字链接 “了解更多 →” */
.link-more {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--navy-600); font-weight: 600; font-size: .96rem;
}
.link-more .arrow { transition: transform var(--t-fast) var(--ease); color: var(--gold); }
.link-more:hover { color: var(--navy-800); }
.link-more:hover .arrow { transform: translateX(4px); }

/* ============ 5. 顶部导航（由 layout.js 注入） ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,35,66,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dk);
  transition: background var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }

.nav { display: flex; align-items: center; gap: 1.5rem; height: 72px; }

/* 品牌 Logo + 名称 */
.brand { display: flex; align-items: center; gap: .7rem; color: var(--white); }
.brand__logo { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-size: 1.12rem; font-weight: 800; letter-spacing: .02em; }
.brand__en   { font-size: .62rem; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; font-family: var(--font-num); }

/* 主菜单 */
.nav__menu { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__link {
  position: relative; padding: .55rem .85rem; color: #D6DEEA; font-weight: 500;
  border-radius: var(--radius-sm); transition: color var(--t-fast) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--white); }

/* 右侧电话 */
.nav__phone {
  display: flex; align-items: center; gap: .55rem; margin-left: 1.25rem;
  padding-left: 1.25rem; border-left: 1px solid var(--line-dk); color: var(--white);
}
.nav__phone svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.nav__phone .label { font-size: .7rem; color: var(--ink-3); display: block; line-height: 1.2; }
.nav__phone .number { font-family: var(--font-num); font-size: 1.18rem; font-weight: 700; letter-spacing: .02em; }

/* 汉堡按钮（移动端） */
.nav__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer; position: relative;
}
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.nav__toggle span:nth-child(1){ top: 14px; }
.nav__toggle span:nth-child(2){ top: 21px; }
.nav__toggle span:nth-child(3){ top: 28px; }
.nav__toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2){ opacity: 0; }
.nav__toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============ 6. Hero 首屏 ============ */
.hero {
  position: relative; min-height: min(88vh, 760px);
  display: flex; align-items: center;
  color: var(--white); text-align: center; overflow: hidden;
  /* 底层为深蓝渐变：即使背景图加载失败也保持专业观感 */
  background:
    linear-gradient(180deg, rgba(6,18,35,.78) 0%, rgba(10,35,66,.82) 55%, rgba(6,18,35,.92) 100%),
    radial-gradient(120% 90% at 70% 0%, var(--navy-600) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
}
/* 背景图层（外链工业实拍图，可在 README 中替换） */
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  /* 与渐变叠加，保证文字可读 */
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,18,35,.62), rgba(10,35,66,.72));
}

/* Hero 底部「校准基线」：主刻度 + 次刻度的精密量尺（签名元素） */
.hero__scale {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42px; z-index: 1;
  background-image:
    repeating-linear-gradient(90deg, rgba(201,169,97,.62) 0 1px, transparent 1px 64px), /* 主刻度 */
    repeating-linear-gradient(90deg, rgba(201,169,97,.30) 0 1px, transparent 1px 16px); /* 次刻度 */
  background-size: 100% 22px, 100% 11px;
  background-position: left bottom, left bottom;
  background-repeat: repeat-x, repeat-x;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 78%);
          mask-image: linear-gradient(180deg, transparent, #000 78%);
}

/* Hero 资质铭牌条：用机构自身的核准代码作「证据」 */
.hero__creds { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; align-items: center; margin-top: var(--sp-6); }
.hero__creds .label {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
  color: #9FB6D4; text-transform: uppercase; margin-right: var(--sp-1);
}

.hero__inner { position: relative; z-index: 2; max-width: 880px; margin-inline: auto; padding-block: 4rem; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .45rem 1rem; border: 1px solid rgba(201,169,97,.5); border-radius: 100px;
  font-size: .82rem; letter-spacing: .16em; color: var(--gold); margin-bottom: 1.6rem;
  font-weight: 600;
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,169,97,.25); }

.hero h1 {
  font-size: var(--fs-h1); font-weight: 800; line-height: 1.12;
  letter-spacing: -.01em; margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--gold); }
.hero__sub {
  font-size: clamp(1rem, .95rem + .5vw, 1.2rem); color: #D2DBE8;
  max-width: 640px; margin: 0 auto 2.25rem; line-height: 1.8;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* 向下滚动提示 */
.hero__scroll { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.55); font-size: .72rem; letter-spacing: .2em; }
.hero__scroll span { display: block; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); margin: .5rem auto 0; }

/* ============ 7. 数据展示区（仪表弧 · 签名元素） ============ */
.stats { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: var(--white); position: relative; }
.stats::before { /* 顶部金色发丝线 */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
/* 四表收紧成一块校准控制盘 */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.4vw, 2rem); max-width: 940px; margin-inline: auto; }
.stat { text-align: center; position: relative; }
.stat-promise { text-align: center; }
.stat-promise__seal { display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; font-size: 2rem; font-weight: 700; color: var(--gold); }
.news-empty { color: var(--ink-3); grid-column: 1 / -1; }
.stat__gauge { position: relative; width: 138px; height: 138px; margin: 0 auto var(--sp-3); }
.stat__gauge svg { width: 100%; height: 100%; transform: rotate(135deg); } /* 起点指向左下，开口270° */
.stat__track { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 6; stroke-linecap: round; }
.stat__arc   { fill: none; stroke: var(--gold);          stroke-width: 6; stroke-linecap: round;
               transition: stroke-dashoffset 1.4s var(--ease); }
/* 刻度环（由 main.js 注入 line 元素，随 svg 一同旋转，与弧对齐） */
.stat__ticks line { stroke: var(--bp-line); stroke-width: 1.4; }
.stat__ticks line.is-major { stroke: rgba(201,169,97,.5); }
.stat__num {
  position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; gap: .08em;
  font-family: var(--font-display); font-weight: 700; font-size: 2.45rem; color: var(--gold); letter-spacing: .01em;
}
.stat__num small { font-family: var(--font-mono); font-weight: 600; font-size: .92rem; color: var(--gold-bright); }
.stat__label { font-size: .96rem; color: #C8D2E0; }
.stat__label strong { display: block; color: var(--white); font-weight: 600; margin-bottom: .15rem; }

/* ============ 8. 检验项目卡片网格（规格条目式） ============ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.svc-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-6) var(--sp-5); overflow: hidden;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.svc-card::before { /* 顶部金条，hover 展开 —— 保留 */
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0; background: var(--gold);
  transition: width var(--t-mid) var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::before { width: 100%; }
/* 顶部：技术图标（钢蓝，左上）+ 资质代码铭牌（金色，右上角，绝对定位） */
.svc-card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(91,124,163,.13); color: var(--steel-ink); margin-bottom: var(--sp-4);
}
.svc-card__icon svg { width: 28px; height: 28px; }
.svc-card__code.plate { position: absolute; top: var(--sp-6); right: var(--sp-5); }
/* 资质代码以 .plate 钢印铭牌呈现（见 3.5）；保留旧类兜底外观 */
.svc-card__code:not(.plate) { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; color: var(--gold); font-weight: 600; }
.svc-card h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 var(--sp-2); color: var(--navy-800); }
.svc-card .reg-ref { margin-bottom: var(--sp-3); }
.svc-card p { color: var(--ink-2); font-size: .96rem; margin: 0 0 var(--sp-5); }
.svc-card .link-more { margin-top: auto; } /* CTA 贴底，卡片等高更整齐 */

/* ============ 9. 优势 / 资质区 ============ */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.feat {
  position: relative; text-align: center; padding: var(--sp-7) var(--sp-5); border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-dk);
  transition: transform var(--t-mid) var(--ease), background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.feat:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); border-color: rgba(201,169,97,.32); }
.feat__icon {
  width: 64px; height: 64px; margin: 0 auto var(--sp-4); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold);
  border: 1.5px solid rgba(201,169,97,.4); background: var(--gold-soft);
}
.feat__icon svg { width: 30px; height: 30px; }
.feat h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: var(--sp-2); }
.feat p  { font-size: .94rem; color: #B9C4D4; }
/* feat 用在浅色版块（如关于页“企业文化”）时反相，避免白字白底 */
.section--paper .feat { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-sm); }
.section--paper .feat:hover { border-color: rgba(201,169,97,.4); }
.section--paper .feat h3 { color: var(--navy-800); }
.section--paper .feat p  { color: var(--ink-2); }

/* ============ 10. 刻度线分隔（签名元素） ============ */
.tick-divider { height: 16px; background-image: repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 26px); opacity: .5; }

/* ============ 11. 通用：CTA 收尾横幅 ============ */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 70%); }
.cta-band h2 { font-size: var(--fs-h2); font-weight: 800; margin-bottom: 1rem; position: relative; }
.cta-band p { color: #C8D2E0; max-width: 560px; margin: 0 auto 2rem; position: relative; }
.cta-band .hero__cta { position: relative; }

/* ============ 12. 内页通用头部（Banner） ============ */
.page-banner {
  position: relative; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  color: var(--white); text-align: center; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, var(--navy-700), var(--navy-900));
}
.page-banner__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: .22; }
.page-banner__inner { position: relative; z-index: 1; }
.page-banner h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.15; margin-bottom: .9rem; }
.page-banner p { color: #C8D2E0; max-width: 620px; margin: 0 auto; }
/* 面包屑 */
.crumbs { position: relative; z-index: 1; margin-top: 1.4rem; font-size: .88rem; color: #9FB0C6; }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 .5rem; color: var(--steel-blue); }

/* ============ 13. 检验项目详情（services.html） ============ */
.svc-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.svc-detail--rev .svc-detail__media { order: 2; }
.svc-detail__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.svc-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail__badge { position: absolute; top: var(--sp-4); left: var(--sp-4); background: linear-gradient(180deg, rgba(16,46,84,.92), rgba(10,35,66,.92)); color: var(--gold); font-family: var(--font-mono); font-weight: 600; font-size: .8rem; letter-spacing: .12em; padding: .4rem .8rem; border-radius: 4px; border: 1px solid rgba(201,169,97,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.svc-detail h2 { font-size: var(--fs-h3); color: var(--navy-800); font-weight: 800; margin: .4rem 0 1rem; }
.svc-detail__list { display: grid; gap: .9rem; margin: 1.25rem 0 1.75rem; }
.svc-detail__list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-2); }
.svc-detail__list svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: .15rem; }
.svc-detail__list strong { color: var(--ink); font-weight: 600; }

/* ============ 14. 关于我们（about.html） ============ */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.about-intro__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5/4; background: linear-gradient(135deg,var(--navy-700),var(--navy-900)); }
.about-intro__media img { width: 100%; height: 100%; object-fit: cover; }

/* 发展历程时间线（真实顺序 → 用编号成立信息） */
.timeline { position: relative; margin-top: 1rem; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), transparent); }
.timeline li { position: relative; padding: 0 0 1.8rem 2.4rem; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--navy-800); border: 2px solid var(--gold); }
.timeline .year { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 1.3rem; letter-spacing: .02em; }
.timeline h4 { color: var(--navy-800); font-size: 1.05rem; margin: .15rem 0 .3rem; }
.timeline p { color: var(--ink-2); font-size: .95rem; }

/* 资质荣誉网格 */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.cert {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-4); text-align: center; transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.cert::before { /* 证书内衬边框（蓝图细线），像一张装裱的证书 */
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--bp-line-lt); border-radius: 6px; pointer-events: none;
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,169,97,.4); }
.cert__seal { width: 56px; height: 56px; margin: 0 auto var(--sp-3); color: var(--gold); position: relative; }
.cert h4 { color: var(--navy-800); font-size: 1.02rem; margin-bottom: var(--sp-1); position: relative; }
.cert p { color: var(--ink-3); font-size: .85rem; position: relative; }
.cert .plate { margin-top: var(--sp-2); position: relative; }

/* 团队 / 设备 通用图卡 */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.media-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease); }
.media-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.media-card__img { aspect-ratio: 4/3; background: linear-gradient(135deg,var(--navy-700),var(--navy-900)); }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; }
.media-card__body { padding: 1.1rem 1.25rem 1.4rem; }
.media-card__body h4 { color: var(--navy-800); font-size: 1.08rem; margin-bottom: .35rem; }
.media-card__body p { color: var(--ink-2); font-size: .92rem; }

/* ============ 15. 新闻动态（news.html / news-detail.html） ============ */
.news-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.news-filter {
  padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 100px;
  background: var(--white); color: var(--ink-2); font-size: .92rem; cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.news-filter:hover { border-color: var(--gold); color: var(--navy-800); }
.news-filter.is-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.news-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.news-card__img { aspect-ratio: 16/10; background: linear-gradient(135deg,var(--navy-700),var(--navy-900)); position: relative; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
/* 分类标签：半透明钢印牌（替代实心金块，呼应铭牌母题） */
.news-card__tag { position: absolute; top: var(--sp-3); left: var(--sp-3);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  color: var(--gold); background: rgba(10,35,66,.74); border: 1px solid rgba(201,169,97,.42);
  padding: .26rem .6rem; border-radius: 4px; }
.news-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
/* 日期即数据：等宽 + 钢蓝，带刻度短线前缀 */
.news-card__date { display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); color: var(--steel-ink); font-size: .8rem; letter-spacing: .04em; margin-bottom: var(--sp-3); }
.news-card__date::before { content: ""; width: 12px; height: 1px; background: var(--steel-blue); }
.news-card h3 { font-size: 1.08rem; line-height: 1.45; color: var(--navy-800); margin-bottom: var(--sp-2); }
.news-card p { font-size: .92rem; color: var(--ink-2); flex: 1; margin-bottom: var(--sp-4);
               display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .link-more { font-size: .9rem; }

/* 新闻详情正文排版 */
.article { max-width: 760px; margin-inline: auto; }
.article__meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; color: var(--ink-3); font-size: .9rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.article__meta .tag { background: var(--gold-soft); color: var(--navy-700); padding: .2rem .7rem; border-radius: 4px; font-weight: 600; }
.article__body { color: var(--ink); line-height: 1.95; }
.article__body h2 { font-size: 1.45rem; color: var(--navy-800); margin: 2rem 0 1rem; }
.article__body p { margin-bottom: 1.2rem; }
.article__body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article__back { margin-top: 2.5rem; }

/* 公正性声明：静态正文不使用 reveal，确保无 JavaScript 时也能阅读。 */
.statement a:not(.btn) { color: var(--steel-ink); text-decoration: underline; text-underline-offset: .2em; }
.statement .statement__signature { margin-top: var(--sp-7); text-align: right; font-weight: 700; color: var(--navy-800); }
.statement-callout { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-6); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); background: var(--white); }
.statement-callout__text { flex: 1 1 280px; }
.statement-callout h2 { color: var(--navy-800); font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.statement-callout p { color: var(--ink-2); }

/* ============ 16. 联系我们（contact.html） ============ */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-7); }
.contact-card { text-align: center; padding: var(--sp-6) var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,169,97,.4); }
.contact-card__icon { width: 56px; height: 56px; margin: 0 auto var(--sp-4); border-radius: 14px; display: grid; place-items: center; background: rgba(91,124,163,.13); color: var(--steel-ink); }
.contact-card__icon svg { width: 28px; height: 28px; }
.contact-card h4 { color: var(--ink-3); font-size: .9rem; font-weight: 600; margin-bottom: var(--sp-1); letter-spacing: .06em; }
.contact-card .value { color: var(--navy-800); font-size: 1.1rem; font-weight: 700; }
.contact-card .value.num { font-size: 1.3rem; }

/* 突出电话条 */
.call-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); color: var(--white);
  border-radius: var(--radius); padding: 1.75rem 2rem; margin-bottom: 2.5rem; }
.call-band__text strong { display: block; font-size: 1.25rem; }
.call-band__text span { color: #C8D2E0; font-size: .95rem; }
.call-band__num { font-family: var(--font-num); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; color: var(--gold); letter-spacing: .03em; }

/* 地图容器 */
.map-directions { padding: var(--sp-6); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); background: var(--paper); }
.map-directions h3 { color: var(--navy-800); margin-bottom: var(--sp-3); }
.map-directions p { color: var(--ink-2); margin-bottom: var(--sp-4); }
.map-directions .hero__cta { justify-content: flex-start; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; background: var(--paper2); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.1); }
.map-note { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255,255,255,.95); border-left: 3px solid var(--gold); padding: .7rem 1rem; border-radius: 4px; font-size: .85rem; color: var(--ink-2); box-shadow: var(--shadow-sm); max-width: 280px; }
.map-note strong { color: var(--navy-800); display: block; }

/* ============ 17. 页脚（由 layout.js 注入） ============ */
.site-footer { background: var(--navy-900); color: #AFBACB; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-block: clamp(3rem,5vw,4.5rem); }
.footer-brand .brand { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; line-height: 1.8; max-width: 320px; }
.footer-col h5 { color: var(--white); font-size: 1rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.footer-col h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--gold); }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a, .footer-col li { font-size: .92rem; color: #C2CCDA; transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .8rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: .2rem; }
.footer-bottom { border-top: 1px solid var(--line-dk); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; color: #9AA8BD; }
.footer-bottom a:hover { color: var(--gold); }

/* ============ 18. 滚动淡入动画（Scroll-driven） ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* 交错延迟：列表项依次进入（每项 80ms） */
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* 移动端菜单遮罩 */
.nav__backdrop { display: none; }

/* ============ 19. 响应式断点 ============ */
/* —— 平板：768–1023px —— */
@media (max-width: 1023px) {
  .svc-grid, .feat-grid, .cert-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .media-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* —— 移动端：<768px —— */
@media (max-width: 767px) {
  .nav { height: 62px; }
  /* 关键：移动端关闭 backdrop-filter，避免其成为 fixed 菜单的包含块导致菜单塌陷 */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__menu {
    position: fixed; top: 62px; right: 0; bottom: 0; width: min(78vw, 320px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-800); padding: 1rem; margin: 0;
    transform: translateX(100%); transition: transform var(--t-mid) var(--ease);
    box-shadow: -12px 0 40px rgba(0,0,0,.4); overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__link { padding: 1rem; border-bottom: 1px solid var(--line-dk); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__phone { margin: 1rem 0 0; padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--line-dk); }
  .nav__toggle { display: block; }
  .nav__backdrop.is-open { display: block; position: fixed; inset: 62px 0 0 0; background: rgba(6,18,35,.5); z-index: 90; }

  /* Hero 标题 32–40px */
  .hero { min-height: 78vh; text-align: center; }
  .hero h1 { font-size: clamp(2rem, 7vw, 2.5rem); }

  /* 数据区 2×2 */
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; max-width: none; }
  .stat__gauge { width: 116px; height: 116px; }
  .stat__num { font-size: 2rem; }

  /* 卡片单列 */
  .svc-grid, .feat-grid, .cert-grid, .contact-grid,
  .news-grid, .media-grid { grid-template-columns: 1fr; }

  /* 详情/关于 改单列 */
  .svc-detail, .about-intro { grid-template-columns: 1fr; }
  .svc-detail--rev .svc-detail__media { order: 0; }

  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: auto; }
  .call-band { flex-direction: column; align-items: flex-start; }
}

/* ============ 20. 无障碍 / 减弱动效 ============ */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 打印（简单优化） */
@media print {
  .site-header, .site-footer, .hero__scroll, .nav__toggle { display: none; }
}
