/* ============================================================
   德天地兴 · DETIANDIXING — Design System
   深蓝白企业展示主题

   配色来源：老站 www.detiandixing.com 实测主色
     #0857b0（全站出现 35 次，绝对主色）= hsl(212 91% 36%)
     #004490 = hsl(212 100% 28%)　#073eac = hsl(220 92% 35%)
     中性灰 #f8f8f8 / #e9e9e9 / #666666 / #2d2d2d

   设计原则：主体色板收敛到 212°–220° 单一蓝色相族，靠明度与
   饱和度拉层次，不引入青色（老站无青色）。变量名沿用上一版的
   navy / blue / cyan 命名以免改动几十处引用，但 cyan-* 已改成与主色
   同色相（212°）的亮蓝，且只用于深底上的文字。
   全站不用渐变文字、不用径向光晕、不用彩色辉光投影 —— 这三样合起来
   就是「蓝怎么都泛着光」的观感，而老站是纯 #0857b0 平涂，一点光不带。
   全站唯一暖色是 --cta-*（深红，定义见下），只出现在悬浮咨询
   按钮与表单校验态上，面积不足一屏 1%，依据是老站自己的用色
   习惯——它的红色也专门留给联系与留言入口。
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* 深底：页头 / 深色 section / footer（HSL channels） */
  --navy-950: 220 62% 7%;
  --navy-900: 219 60% 10%;
  --navy-850: 218 58% 13%;
  --navy-800: 216 60% 17%;
  --navy-700: 214 70% 24%;
  --navy-600: 213 82% 30%;

  /* 品牌主色阶 */
  --blue-600: 212 91% 36%;   /* ★ 老站主色 #0857b0 精确还原，白底对比 6.9:1 */
  --blue-500: 212 91% 42%;   /* 交互态 / 白底小字，对比 5.6:1 */
  --blue-400: 210 92% 57%;   /* 亮蓝，深底上的次级高光 */

  /* 高光（原青色位）：只承担「深底上的亮字」这一件事，不再做任何发光。
     色相从 206°/204° 收到 212°，跟主色 --blue-600 完全同一个色相。
     这不是吹毛求疵：差一个色相档，人眼读到的就是「另一种颜色在发光」，
     而不是「同一个蓝变亮了」——上一版「蓝泛着光」的观感有一半来自这里。 */
  --cyan-400: 212 88% 62%;   /* 深底主高光 = 主色提亮，navy-900 上对比 6.2:1 */
  --cyan-300: 212 76% 78%;   /* 深底柔高光，navy-900 上对比 9.4:1 */

  /* 转化强调色（CTA）—— 全站唯一暖色
     溯源：老站把红色专门留给联系与留言入口（templates/main/css/style.css 里
     .h-top a.red = #c00725、.pro-tips a.meesage 边框 #c40000 配底 #ffeded）；
     实测老站全站没有橙色渐变，基线站 .fab 的橙色属于自由发挥，已收回。
     为什么这里不用蓝：hero / page-hero / footer 都是 navy-900 深底，蓝色按钮
     浮上去会沉进背景失去可点击感；350° 红与 212° 蓝互为补色，识别度最高，
     且只占一个悬浮胶囊的面积，主体观感仍是深蓝白。
     若要收成纯蓝站：把下面三行换成 blue-500 / blue-600 / paper，其余 CSS
     一行都不用动——所有引用都走这三个变量。 */
  --cta-400: 352 90% 52%;    /* 渐变亮端，navy-900 上对比 4.4:1 */
  --cta-500: 350 93% 39%;    /* = 老站 #c00725，白底对比 6.1:1 */
  --cta-050: 350 82% 96%;    /* = 老站 #ffeded，错误提示底色 */

  /* Neutrals（带蓝调的灰，冷暖与品牌色统一） */
  --paper: 212 45% 98%;      /* 页面底，对齐老站 #f8f8f8 */
  --surface: 0 0% 100%;      /* 卡片纯白 */
  --white: 0 0% 100%;        /* 纯白叠加基色：深底上的半透明描边/底色都由它派生 */
  --line: 212 28% 90%;       /* 分隔线，对齐老站 #e9e9e9 */
  --line-2: 212 22% 81%;     /* 强分隔，对齐老站 #cfcfcf */
  --ink: 215 45% 13%;        /* 正文，对齐老站 #2d2d2d 但带蓝调 */
  --muted: 213 16% 42%;      /* 次要文字，对齐老站 #666666 */
  --muted-2: 213 14% 58%;

  /* Semantic */
  --bg: hsl(var(--paper));
  --bg-elev: hsl(var(--surface));
  --text: hsl(var(--ink));
  --text-soft: hsl(var(--muted));
  --brand: hsl(var(--blue-600));        /* ★ 由 navy-700（过深过灰）改为老站主色 */
  --brand-strong: hsl(var(--navy-900));
  --brand-deep: hsl(var(--navy-600));       /* 深色强调，对应老站 #004490 的层级 */
  --accent: hsl(var(--blue-500));
  --accent-bright: hsl(var(--cyan-400));
  --border: hsl(var(--line));
  --border-strong: hsl(var(--line-2));

  /* Gradients —— 名字还叫 grad-*，但已经全是「同色相明度过渡」或干脆纯色。
     上一版这里塞了三样东西，是「蓝泛着光」的直接原因，现已全部拿掉：
       1. 跨色相渐变（120deg 从亮蓝滑到亮青）——用在主按钮上，最扎眼
       2. 径向青色光晕（radial-gradient 叠在深底上）——整块背景在发亮
       3. 渐变文字（background-clip:text）——数字和标题带彩色描边感
     老站的做法是 #0857b0 直接平涂在白底上，一点光都不带。这里跟它对齐：
     深底只靠 navy-850 → navy-950 的同色相明度差拉层次。 */
  --grad-brand: linear-gradient(180deg, hsl(var(--navy-850)), hsl(var(--navy-900)));
  --grad-accent: hsl(var(--blue-600));   /* 已不是渐变：就是老站主色平涂 */
  --grad-deep: linear-gradient(180deg, hsl(var(--navy-850)), hsl(var(--navy-950)));

  /* Shadows */
  --shadow-sm: 0 1px 2px hsl(var(--navy-900) / .06), 0 1px 3px hsl(var(--navy-900) / .08);
  --shadow-md: 0 10px 30px -12px hsl(var(--navy-900) / .22);
  --shadow-lg: 0 30px 60px -25px hsl(var(--navy-900) / .35);
  /* --shadow-glow 已删：彩色辉光投影是「泛光」的另一半来源。
     变量名留着不定义会让引用它的规则整条失效（CSS 的 var() 无兜底时该声明被丢弃），
     所以下面所有原引用处都已改成 --shadow-md 或直接去掉。 */

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Layout */
  --maxw: 1220px;
  --gutter: clamp(18px, 4vw, 44px);
  --header-h: 74px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .18s var(--ease);
  --t-med: .32s var(--ease);

  /* Type —— 零网络字体请求（详见 perf/PERF-BUDGET.md）
     老站的 Inter/Sora 靠 Google Fonts 加载，在国内会因渲染阻塞而卡住首屏，
     且超时后根本不会生效。改用系统字体栈，中文逐字符 fallback 到苹方/雅黑，
     现代感靠字重梯度、负字距与表格数字对齐补足。 */
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-display: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: ui-rounded, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  /* 大字号下收紧字距，系统字体也能有 Sora 那种紧凑现代感 */
  letter-spacing: -.022em;
  color: var(--text);
  text-wrap: balance;   /* 标题多行自动配重，避免末行孤字；不支持则自动忽略 */
}
p { text-wrap: pretty; }   /* 正文避免孤行，渐进增强 */
::selection { background: hsl(var(--cyan-400) / .28); color: hsl(var(--navy-900)); }

/* 大号数字（hero 统计 / 数据带 / 徽章 / 薪资 / 日期）统一等宽对齐，
   这是没了 Sora/Inter 之后保住「数据感」的关键细节 */
.hero__stat b, .stats-band b, .split__badge b, .pillar__num,
.job__pay, .news-item__date b, .card__index, .step__num {
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -.02em;
}

/* scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: hsl(var(--navy-700) / .35); border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--navy-700) / .6); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(60px, 9vw, 118px); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--light { background: var(--bg); }
.section--white { background: var(--bg-elev); }
.section--navy { background: var(--grad-deep); color: #eaf3fb; }
.section--navy h2, .section--navy h3 { color: #fff; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
/* h1 里那半句的强调色。原本叫 .text-grad、做的是渐变文字（background-clip:text），
   那是「蓝泛着光」的其中一个源头，现已改成纯色；类名也跟着改掉了——
   一个叫 text-grad 却不做渐变的类，下一个人改配色时一定会被它误导。 */
.hero__accent { color: hsl(var(--cyan-300)); }

/* ---------- Section heading ---------- */
.head { max-width: 720px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-accent); border-radius: 2px; }
.head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--grad-accent); border-radius: 2px; }
.head h2 { font-size: clamp(26px, 3.6vw, 42px); margin: 14px 0 0; }
.head p { margin-top: 16px; color: var(--text-soft); font-size: clamp(15px, 1.4vw, 17px); }
.section--navy .head p { color: hsl(210 30% 82%); }

/* ---------- Buttons ---------- */
.btn {
  --pad: 13px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad); border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform var(--t-fast), box-shadow var(--t-med), background var(--t-med), color var(--t-med);
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
/* 主按钮：蓝底白字，老站就是这个做法。
   上一版是亮青渐变底 + navy 深字 + 彩色辉光投影，在白底上看起来像在发光，
   而且亮底深字的对比度（3.1:1）还不如蓝底白字（6.9:1）。 */
.btn--primary { background: var(--grad-accent); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { transform: translateY(-2px); background: hsl(var(--blue-500)); box-shadow: var(--shadow-lg); }
.btn--ghost { background: #fff; color: var(--brand); box-shadow: var(--shadow-md); }
.btn--ghost:hover { transform: translateY(-2px); }
.btn--outline { border: 1.5px solid hsl(var(--cyan-300) / .5); color: #fff; }
.btn--outline:hover { background: hsl(var(--cyan-400) / .14); border-color: var(--cyan-300); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--brand-strong); transform: translateY(-2px); }
.btn--sm { --pad: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); transition: gap var(--t-fast); }
.link-more svg { width: 18px; height: 18px; transition: transform var(--t-fast); }
.link-more:hover { gap: 12px; }
.link-more:hover svg { transform: translateX(3px); }

/* ---------- Tags / badges ---------- */
.tag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: hsl(var(--blue-500) / .1); color: var(--accent); }
.section--navy .tag { background: hsl(var(--cyan-400) / .14); color: hsl(var(--cyan-300)); }
.chip { font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-soft); background: #fff; transition: all var(--t-fast); cursor: pointer; }
.chip:hover, .chip.is-active { border-color: transparent; background: var(--brand); color: #fff; }

/* ============================================================
   Header / Navigation
   ============================================================ */
/* 顶栏（.topbar）已整条删除：那一行放的是电话 + 邮箱 + 地址 + 一句宣言，
   客户要求页面顶端不要这条。相关规则一并清掉，不留死 CSS。
   信息没丢：电话在页头 .header__tel 与页脚 .footer__contact，邮箱与地址在页脚，
   完整的六条联系方式在 about.html 的「联系我们」区。 */

.header { position: sticky; top: 0; z-index: 100; background: hsl(var(--navy-900)); transition: background var(--t-med), box-shadow var(--t-med), backdrop-filter var(--t-med); }
.header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
/* 白色底板：靠 UI 补色把公司原色 logo（深蓝 #325aab + 近黑 #231f20）托出来，logo 本身配色不变 */
.brand__badge { display: grid; place-items: center; width: 52px; height: 42px; flex: none; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px hsl(var(--navy-950) / .5); transition: box-shadow var(--t-med), transform var(--t-med); }
.brand:hover .brand__badge { transform: translateY(-1px); box-shadow: 0 8px 22px hsl(var(--navy-950) / .62); }
.brand__logo { width: 40px; height: auto; display: block; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1; color: #fff; letter-spacing: .5px; }
.brand__sub { font-size: 10.5px; line-height: 1; letter-spacing: .28em; color: hsl(210 30% 80%); text-transform: uppercase; }

/* 导航从 9 项降到 7 项（服务体系与联系我们已合进关于我们），腾出的宽度把
   字号从上一版的 14.5px 放回 15px、内边距放回 12px——字大一点更好点，
   观感也更接近老站。算一下满宽要多少：
     导航：「首页」2×15+24 = 54，6 个四字项 ×(4×15+24) = 504，6 个 gap = 24 → 582px
     品牌：白底板 52 + 间距 12 + 文字（DTDX THERMAL 带 .28em 字距约 111px）→ 175px
     咨询热线：号码 12 字 × 约 10.5 + 图标 17 + 间距 7 + 左内边距 20 + 分隔线 → 171px
     两个 24px flex 间距 → 48px
     合计 976px，容器可用 1220 - 2×44 = 1132px，余 156px。
   余量比 9 项那版（只剩 33px）宽裕多了，所以下面 Responsive 段的断点能往窄推。 */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 9px 12px; font-size: 15px; font-weight: 500; color: #fff; border-radius: 10px; transition: color var(--t-fast), background var(--t-fast); white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: hsl(var(--cyan-300)); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform var(--t-med); }
.nav a:hover { color: #fff; background: hsl(var(--white) / .07); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: #fff; }

/* 页头右侧的咨询热线（取代了原来的「获取方案」胶囊按钮）。
   分两行：上行小字说明，下行号码，跟老站页头的写法一致。 */
.header__tel { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; padding-left: 20px; border-left: 1px solid hsl(var(--white) / .14); transition: opacity var(--t-fast); }
.header__tel:hover { opacity: .82; }
.header__tel-label { font-size: 11.5px; color: hsl(210 28% 74%); letter-spacing: .04em; }
.header__tel-num { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #fff; letter-spacing: .01em; font-variant-numeric: tabular-nums lining-nums; }
.header__tel-num svg { width: 17px; height: 17px; color: hsl(var(--cyan-300)); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; color: #fff; }
.nav-toggle svg { width: 26px; height: 26px; margin-inline: auto; }

/* scrolled state -> solid */
.header.is-scrolled { background: hsl(var(--navy-900) / .9); backdrop-filter: blur(14px); box-shadow: 0 1px 0 hsl(var(--white) / .06), var(--shadow-md); }
.header.is-solid { background: hsl(var(--navy-900)); }

/* ============================================================
   Hero (home banner)
   ============================================================ */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(90deg, hsl(var(--navy-950) / .96) 0%, hsl(var(--navy-900) / .86) 42%, hsl(var(--navy-800) / .45) 75%, hsl(var(--navy-900) / .6) 100%); }
.hero h1 { color: #fff; }
.page-hero h1 { color: #fff; }
/* 网格线叠加已删（原 .hero__grid-lines）：青色细线阵叠在背景图上，是「泛光」里
   最像科技风、也最不像老站的一笔。HTML 里如果还留着这个空 div，它现在没有任何
   样式，不占位也不绘制，不影响布局。 */
.hero .container { padding-block: clamp(90px, 14vh, 160px); }
.hero__content { max-width: 680px; }
.hero .eyebrow { color: hsl(var(--cyan-300)); }
.hero h1 { font-size: clamp(34px, 5.6vw, 66px); line-height: 1.06; margin: 20px 0 0; font-weight: 800; letter-spacing: -0.02em; }
.hero__lead { margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: hsl(210 30% 86%); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 60px); margin-top: 52px; padding-top: 30px; border-top: 1px solid hsl(var(--white) / .12); }
.hero__stat b { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; display: block; color: hsl(var(--cyan-300)); }
.hero__stat span { font-size: 13.5px; color: hsl(210 25% 74%); }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: hsl(210 30% 80%); font-size: 12px; letter-spacing: .1em; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(hsl(var(--cyan-300)), transparent); animation: scrolldot 2s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: scaleY(0); transform-origin: top; } 40% { opacity: 1; transform: scaleY(1);} 100% { opacity: 0; transform: scaleY(1) translateY(40px);} }

/* ---------- Page hero (inner pages) ---------- */
/* page-hero 的网格线叠加已删，理由同 .hero__grid-lines */
.page-hero { position: relative; background: var(--grad-deep); color: #fff; overflow: hidden; }

/* 合并页的页内跳转。「服务体系」与「联系我们」合进「关于我们」之后这一页很长，
   不给入口的话，从老站 /system 301 过来的访客得一路滚到底才找到服务承诺。
   做成半透胶囊，跟深色 page-hero 一套；没直接用 .chip 是因为那个是白底深色字，
   放存深底上会成一排白光斑。 */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.jump a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px; border: 1px solid hsl(var(--white) / .22); background: hsl(var(--white) / .07); color: #fff; font-size: 14px; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.jump a:hover, .jump a:focus-visible { background: #fff; border-color: #fff; color: hsl(var(--navy-900)); }

/* 锚点分区要预留 sticky 页头的高度，否则跳过去标题会被页头压住。
   不用给每个 id 写一条，挂个类就行。 */
.anchor { scroll-margin-top: calc(var(--header-h) + 18px); }
.page-hero .container { position: relative; z-index: 1; padding-block: clamp(70px, 12vh, 128px) clamp(40px, 6vh, 64px); }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 52px); margin-top: 14px; }
.page-hero p { margin-top: 16px; max-width: 640px; color: hsl(210 30% 82%); font-size: clamp(15px, 1.5vw, 17px); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: hsl(210 25% 70%); margin-bottom: 6px; }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }

/* ============================================================
   Cards
   ============================================================ */
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: hsl(var(--blue-400) / .4); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, hsl(var(--navy-800)), hsl(var(--blue-600))); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__index { position: absolute; top: 14px; left: 14px; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: #fff; background: hsl(var(--navy-900) / .55); backdrop-filter: blur(6px); padding: 5px 11px; border-radius: 8px; border: 1px solid hsl(var(--white) / .15); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
/* ❗ 卡片里的文字颜色必须在这里收回来，不能让它继承所在区块的。
   首页的工程案例区是全站唯一一处深蓝底区块（.section--navy），而案例卡
   自己是白底（.card 的 background 是 --surface，值 0 0% 100% = 纯白）。
   深蓝区那两条规则——.section--navy h3 { color:#fff }（上面第 175 行）与
   .section--navy .tag { color: hsl(var(--cyan-300)) }（第 226 行）——
   是为「文字直接压在深蓝底上」写的，套进白底卡片里就出事了：
   纯白标题压纯白底，案例名字整个看不见；浅蓝标签压纯白底对比度只有 1.9:1，
   分类也基本看不见。地点（.card__place）与描述（.card__body p）本来就写了
   自己的颜色，所以只有标题和标签中招。
   两组选择器特异性相同（.card__body h3 与 .section--navy h3 都是 0,1,1；
   .card__body .tag 与 .section--navy .tag 都是 0,2,0），全靠这一段写在后面
   才盖得住——别把它挪到第 175/226 行之前，挪了就又变白字。 */
.card__body, .card__body h3 { color: var(--text); }
.card__body .tag { background: hsl(var(--blue-500) / .1); color: var(--accent); }
.card__body h3 { font-size: 19px; }
.card__body p { color: var(--text-soft); font-size: 14.5px; flex: 1; }
.card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
/* 案例卡的地点。原来这个样式是写在 main.js 的内联 style 里的，但手机端需要
   改它的字号与截断行为，内联样式优先级最高、盖不住，只能靠 !important 硬压。
   所以提成一个类：既去了内联样式这个坏味道，也让下面 560px 那段例外规则
   能正常生效。目前只有案例卡用它——产品卡与方案卡的 .card__meta 里放的是
   「查看详情」链接（.card__link），不是地点。 */
.card__place { font-size: 13px; color: var(--text-soft); }
/* ❗ 案例卡把地点推到底部。删掉 desc 之后这一条是必需的：
   .card__body 是 flex column 且 flex:1，原来靠 .card__body p { flex: 1 } 把
   「查看详情」那一行顶到底部，卡片因此等高。案例卡没有 p 了，不补这一条
   地点就会紧贴标题，下面留一大块空白（网格等高，.card 会被拉到跟同行
   最高的那张一样高）。margin-top: auto 在 flex column 里的作用就是把元素
   推到末尾，同时盖掉 .card__meta 自带的 margin-top: 6px。 */
.case-card .card__meta { margin-top: auto; }
.card__link { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.card__link svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.card:hover .card__link svg { transform: translateX(4px); }
.card__tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* Product cards */
.products-grid { grid-template-columns: repeat(3, 1fr); }
.product-card .card__media { aspect-ratio: 4 / 3; background: radial-gradient(120% 120% at 50% 0%, #fff, #eef3f9); }
.product-card .card__media img { object-fit: contain; padding: 18px; }

/* Feature rows (solutions preview) */
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, hsl(var(--navy-950) / .9)); }
.feature:hover img { transform: scale(1.07); }
.feature__body { padding: 26px; }
.feature__body .tag { margin-bottom: 12px; }
.feature__body h3 { font-size: 21px; color: #fff; }
.feature__body p { color: hsl(210 25% 84%); font-size: 14.5px; margin-top: 8px; }

/* Cases */
.case-grid { grid-template-columns: repeat(3, 1fr); }

/* News */
.news-grid { grid-template-columns: 1.1fr 1fr; gap: 34px; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item { display: flex; gap: 18px; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--border); background: #fff; transition: all var(--t-med); align-items: center; }
.news-item:hover { transform: translateX(5px); border-color: hsl(var(--blue-400) / .5); box-shadow: var(--shadow-md); }
.news-item__date { flex: none; width: 66px; text-align: center; border-right: 1px solid var(--border); padding-right: 14px; }
.news-item__date b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--brand); line-height: 1; }
.news-item__date span { font-size: 12px; color: var(--muted-2); }
.news-item__body h4 { font-size: 16px; font-family: var(--font-sans); font-weight: 600; }
.news-item__body p { font-size: 13.5px; color: var(--text-soft); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   About / split section
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.split__media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3.1; object-fit: cover; }
.split__badge { position: absolute; bottom: 22px; left: 22px; background: hsl(var(--navy-900) / .82); backdrop-filter: blur(8px); color: #fff; padding: 18px 22px; border-radius: var(--r-md); border: 1px solid hsl(var(--white) / .12); }
.split__badge b { font-family: var(--font-display); font-size: 30px; display: block; color: hsl(var(--cyan-300)); }
.split__badge span { font-size: 13px; color: hsl(210 25% 78%); }
.split h2 { font-size: clamp(24px, 3.2vw, 38px); }
.split .lead { color: var(--text-soft); margin-top: 18px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 26px 0 30px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; }
.checklist svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }

/* value pillars */
.pillars { grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.pillar { padding: 26px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); transition: all var(--t-med); }
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: hsl(var(--blue-400) / .4); }
.pillar__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-accent); display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h4 { font-size: 17px; font-family: var(--font-sans); }
.pillar p { font-size: 14px; color: var(--text-soft); margin-top: 8px; }

/* 名称释义 / 公司宗旨 这类引言块。左边一条主色竖线 + 浅蓝底，
   不用引号大字装饰——老站的行文很朴素，排得太花反而不像同一家公司。 */
.quote { padding: 28px 32px 28px 30px; border-left: 3px solid hsl(var(--blue-600)); background: hsl(212 60% 97%); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.quote p { font-size: 16px; line-height: 1.95; color: var(--text); }
.quote p + p { margin-top: 12px; }
.quote b { color: hsl(var(--blue-600)); }

/* Stats band */
.stats-band { background: var(--grad-brand); color: #fff; border-radius: var(--r-xl); padding: clamp(34px, 5vw, 56px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
/* 右上角的径向青色光晕已删（原 .stats-band::after） */
.stat b { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 800; display: block; }
.stat span { color: hsl(210 30% 82%); font-size: 14px; }

/* Advantages (navy) */
.adv-grid { grid-template-columns: repeat(3, 1fr); }
.adv { padding: 30px 26px; border-radius: var(--r-lg); background: hsl(var(--white) / .04); border: 1px solid hsl(var(--white) / .1); backdrop-filter: blur(4px); transition: all var(--t-med); }
.adv:hover { background: hsl(var(--white) / .07); border-color: hsl(var(--cyan-400) / .5); transform: translateY(-5px); }
.adv__num { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: hsl(var(--cyan-300)); opacity: .9; }
.adv h3 { color: #fff; font-size: 19px; margin: 10px 0 8px; }
.adv p { color: hsl(210 25% 80%); font-size: 14.5px; }

/* Process steps */
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
/* 关于我们页的大事记只有三条（能核到年份的就三件事），用四列网格会空出一格，
   看着像漏做了。不往里凑第四条编的，而是改成三列。 */
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 30px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); }
.step__n { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-accent); color: #fff; font-weight: 800; font-family: var(--font-display); display: grid; place-items: center; font-size: 18px; margin-bottom: 16px; }
.step h4 { font-size: 17px; font-family: var(--font-sans); }
.step p { font-size: 14px; color: var(--text-soft); margin-top: 8px; }

/* CTA band */
.cta { background: var(--grad-deep); color: #fff; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
/* 顶部的径向青色光晕已删（原 .cta::after） */
.cta h2 { position: relative; color: #fff; font-size: clamp(24px, 3.4vw, 40px); }
.cta p { position: relative; margin: 16px auto 30px; max-width: 560px; color: hsl(210 30% 82%); }
.cta__actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Detail pages
   ============================================================ */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.detail__media { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); background: radial-gradient(120% 120% at 50% 0%, #fff, #eaf0f7); box-shadow: var(--shadow-md); position: sticky; top: calc(var(--header-h) + 20px); }
.detail__media img { width: 100%; aspect-ratio: 1/1; object-fit: contain; padding: 30px; }
.detail h1 { font-size: clamp(26px, 3.6vw, 40px); }
.detail .lead { margin: 18px 0; color: var(--text-soft); font-size: 16px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.spec-table th { width: 40%; background: hsl(var(--navy-800)); color: #fff; font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.feature-list { display: grid; gap: 12px; margin: 22px 0; }
.feature-list li { display: flex; gap: 11px; font-size: 15px; align-items: flex-start; }
.feature-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.prose h3 { margin: 30px 0 12px; font-size: 20px; }
.prose p { color: var(--text-soft); margin-bottom: 14px; }

/* article body (news) */
.article { max-width: 760px; margin-inline: auto; }
.article__meta { display: flex; gap: 18px; align-items: center; color: var(--muted-2); font-size: 14px; margin-bottom: 24px; }
.article img.cover { width: 100%; border-radius: var(--r-lg); margin-bottom: 28px; aspect-ratio: 16/9; object-fit: cover; }
.article figure { margin: 28px 0; }
.article figure img { width: 100%; border-radius: var(--r-md); display: block; }
.article p img { display: block; width: 100%; margin: 22px 0; border-radius: var(--r-md); }
.article figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted-2); }
.article p { color: var(--text-soft); line-height: 1.9; margin-bottom: 16px; font-size: 15.5px; }
.article h2 { font-family: var(--font-display); font-size: 21px; margin: 34px 0 14px; color: var(--text); }
.article h3 { font-family: var(--font-display); font-size: 17.5px; margin: 26px 0 12px; color: var(--text); }
.article ul { margin: 4px 0 18px; padding-left: 22px; }
.article li { color: var(--text-soft); line-height: 1.85; margin: 7px 0; font-size: 15.5px; }
.article li::marker { color: var(--accent); }
.article blockquote { margin: 24px 0; padding: 16px 22px; border-left: 3px solid var(--accent); background: hsl(var(--navy-950) / .045); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--text-soft); font-size: 15.5px; line-height: 1.85; }
.article strong { color: var(--text); }
.article a { color: var(--accent-deep, var(--brand)); text-decoration: underline; text-underline-offset: 3px; }

/* Careers */
.jobs { display: grid; gap: 16px; }
/* align-items 从 center 改成 flex-start：岗位卡现在带任职要求清单，左列会比右列高很多，
   居中会让薪资和投递按钮浮在卡片正中间、两边大片留白。 */
.job { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding: 26px 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); transition: all var(--t-med); flex-wrap: wrap; }
.job:hover { border-color: hsl(var(--blue-400) / .5); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.job__info { flex: 1 1 420px; min-width: 0; }
.job__info h3 { font-size: 20px; font-family: var(--font-sans); }
.job__tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.job__tags span { font-size: 13px; color: var(--text-soft); display: inline-flex; align-items: center; gap: 6px; }
.job__tags svg { width: 15px; height: 15px; color: var(--accent); }
/* 工作地点与联系电话（老站招聘页真实有这两项，西安那个岗位） */
.job__where { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.job__where span { font-size: 13.5px; color: var(--text-soft); display: inline-flex; align-items: flex-start; gap: 7px; }
.job__where svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 2px; }
.job__req { margin-top: 16px; }
.job__req h4 { font-size: 14px; font-family: var(--font-sans); color: var(--text); letter-spacing: .02em; margin-bottom: 10px; }
.job__req ul { display: grid; gap: 8px; }
.job__req li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--text-soft); }
.job__req svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 3px; }
.job__side { text-align: right; flex: none; }
.job__pay { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--accent); }

/* 详情页拿不到数据时的空态。不抛错、不留白屏，给一句人话加一个回首页的链接。 */
.empty { padding: clamp(50px, 9vw, 110px) 20px; text-align: center; color: var(--text-soft); font-size: 16px; }
.empty a { color: var(--brand); font-weight: 600; text-decoration: underline; margin-inline: 4px; }
.benefits { grid-template-columns: repeat(4, 1fr); margin-top: 34px; }
.benefit { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; padding: 24px 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); }
.benefit svg { width: 30px; height: 30px; color: var(--accent); }
.benefit span { font-size: 14.5px; font-weight: 600; }

/* ============================================================
   Inquiry form (联系我们表单)
   ============================================================ */
.inq { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.inq__info { display: flex; flex-direction: column; }
.inq__info li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.inq__info li:first-child { padding-top: 0; }
.inq__info svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.inq__info b { display: block; font-size: 16px; font-family: var(--font-display); }
.inq__info span { color: var(--text-soft); font-size: 13.5px; }
.inq-form { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-md); display: grid; gap: 18px; }
.inq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field label em { color: hsl(var(--cta-500)); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font: inherit; font-size: 15px; color: var(--text); background: hsl(210 30% 99%);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px hsl(var(--blue-500) / .16); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field textarea { resize: vertical; min-height: 116px; }
.form-msg { display: none; font-size: 14px; line-height: 1.5; padding: 12px 16px; border-radius: var(--r-sm); }
.form-msg.is-show { display: block; }
/* 成功绿收到 162° 偏青一侧，与带蓝调的中性灰处于同一冷暖区，不与主色打架；
   错误态改用 --cta-*，与悬浮咨询按钮同源，全站只有一种红。 */
.form-msg.is-ok { background: hsl(162 48% 94%); color: hsl(168 62% 22%); border: 1px solid hsl(162 38% 82%); }
.form-msg.is-err { background: hsl(var(--cta-050)); color: hsl(var(--cta-500)); border: 1px solid hsl(var(--cta-500) / .28); }
/* 中性提示：既不是成功也不是失败，比如询盘还没接上后台时的「请直接来电」。
   不能用 is-ok 的绿也不能用 is-err 的红——那两种颜色会让人以为自己操作
   对了或错了，而这里只是功能还没接上，用主色的浅底最诚实。 */
.form-msg.is-note { background: hsl(var(--blue-500) / .07); color: hsl(var(--blue-600)); border: 1px solid hsl(var(--blue-500) / .22); }
/* 三种状态里的链接都跟随文字颜色，不用浏览器默认的那个蓝——
   它跟主色不同色相，在已经上了色的提示条里会多出一个抢眼的颜色。 */
.form-msg a { text-decoration: underline; font-weight: 600; color: inherit; }
.inq-note { font-size: 12.5px; color: var(--muted-2); text-align: center; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none !important; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: hsl(var(--navy-950)); color: hsl(210 25% 72%); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(48px, 6vw, 74px); }
.footer .brand__name, .footer h4 { color: #fff; }
.footer__about p { margin: 18px 0; font-size: 14px; max-width: 320px; }
.footer h4 { font-size: 15px; font-family: var(--font-sans); margin-bottom: 18px; letter-spacing: .02em; }
.footer__links a { display: block; padding: 6px 0; font-size: 14px; transition: color var(--t-fast), padding var(--t-fast); }
.footer__links a:hover { color: var(--cyan-300); padding-left: 6px; }
.footer__contact li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; padding: 7px 0; }
.footer__contact svg { width: 18px; height: 18px; color: hsl(var(--cyan-400)); flex: none; margin-top: 2px; }
.footer__contact a:hover { color: #fff; text-decoration: underline; }
/* 手机号跟在座机下面，小一号、暗一档 */
.footer__contact em { font-style: normal; font-size: 13px; color: hsl(210 18% 58%); }

/* 版权行：上下两行居中——上行公司全称 + 年份，下行备案号。
   2026-09-25 客户要求备案号从右下角移到正中央。改的是布局（列方向 + 居中），
   没有动 HTML：静态页脚（backend PageRender.cs 生成进每个页面）与 main.js
   运行时注入的页脚共用这两个类，所以这一处 CSS 全站生效，C# 与页面都不用重出。 */
.footer__bottom { border-top: 1px solid hsl(var(--white) / .08); padding-block: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 13px; color: hsl(210 18% 55%); }

/* 备案号。ICP 要求站点底部展示备案号并链到工信部，这一行不能省。
   2026-09-25 起独占版权行下方一行、居中显示（原来在右下角）。 */
.footer__icp { color: hsl(210 18% 62%); transition: color var(--t-fast); }
.footer__icp:hover { color: #fff; text-decoration: underline; }

/* ---------- 页脚二维码（微信 / 抖音）---------- */
/* 2026-09-24 页脚删除简介段后，原来撑间距的那段 <p> 没了，上边距移到这里补回。 */
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
/* .qr 是定位上下文，浮层往上弹。不能用 overflow:hidden 裁，否则浮层会被切掉。 */
.qr { position: relative; }
.qr__btn { width: 36px; height: 36px; border-radius: 9px; background: hsl(var(--white) / .06); color: inherit; display: grid; place-items: center; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); cursor: pointer; }
.qr__btn:hover, .qr.is-open .qr__btn { background: var(--accent); color: #fff; transform: translateY(-2px); }
.qr__btn svg { width: 18px; height: 18px; }
/* 三种触发方式：鼠标悬停、键盘聚焦到按钮（:focus-within）、触屏点击（.is-open）。
   visibility 跟 opacity 一起过渡，而不是用 display:none —— 后者无法做动画，
   而且会让浮层里的图片在显示前就不加载。 */
/* 浮层左对齐到按钮，不居中。居中看着更整齐，但撑不住窄屏，而且这里踩过两次坑：
   第一版 left:50% + translateX(-50%)，390 宽时浮层跑到 x=-42，二维码被切 23%；
   第二版改成 margin-left:-78px 居中 + max-width:1231px 左对齐，阈值又算错了两层：
     ① 算式本身解错。(V-1220)/2 + gutter44 + 按钮中心18 - 左半截78 ≥ 0
        → (V-1220)/2 ≥ 16 → V ≥ 1252，当时写成了 1232，差 20px。
     ② 漏了滚动条。媒体查询按 innerWidth 匹配、布局按 clientWidth 计算，
        11px 的纵向滚动条把真实阈值再推到 innerWidth ≥ 1263，合计偏 31px。
   两头不靠的结果：1232~1262 这一段仍被切（实测 1232 宽时浮层 left=-15.5、
   二维码 left=-3.5），而 scrollWidth 仍等于 clientWidth——用户连横向滚动条都拿不到。
   结论：任何写死的阈值都会被滚动条宽度、gutter 的 clamp、按钮在页脚里的位置
   三个变量带偏，算对了也只是当下这一版布局对。所以不再算，一律左对齐。
   代价是宽屏下浮层不居中了（1440 宽时落在 148.5→304.5），但它本来就只在
   悬停那一瞬出现，对齐到按钮反而更好找；箭头 18px 对准按钮中心（按钮宽 36）。 */
.qr__pop { position: absolute; bottom: calc(100% + 12px); left: 0; width: 156px; padding: 12px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-lg); text-align: center; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast); z-index: 120; }
.qr:hover .qr__pop, .qr:focus-within .qr__pop, .qr.is-open .qr__pop { opacity: 1; visibility: visible; transform: translateY(0); }
/* 小三角，指向下面那个图标按钮 */
.qr__pop::after { content: ""; position: absolute; top: 100%; left: 18px; border: 7px solid transparent; border-top-color: #fff; }
.qr__pop img { display: block; width: 132px; height: 132px; margin: 0 auto; border-radius: 6px; object-fit: contain; background: #fff; }
.qr__cap { display: block; margin-top: 9px; font-size: 13px; font-weight: 600; color: hsl(var(--ink)); }
/* 图没到位时的占位框。默认隐藏，靠 img 的 onerror 加 .is-missing 后用相邻兄弟
   选择器把它显出来——这样浏览器那个裂图图标就不会露给用户看。
   尺寸跟真图一致，避免图一到位页脚就跳一下。 */
.qr__missing { display: none; width: 132px; height: 132px; margin: 0 auto; border-radius: 6px; border: 1px dashed hsl(var(--line-2)); background: hsl(212 30% 97%); color: hsl(var(--muted)); font-size: 12.5px; line-height: 1.6; place-items: center; text-align: center; }
.qr__pop img.is-missing { display: none; }
.qr__pop img.is-missing + .qr__missing { display: grid; }
/* 图压根没配（data.js 里 img 留空）的情况：main.js 不会输出 <img>，
   上面那条相邻兄弟规则没了左边的 img 就不生效，占位框会一直隐着。
   所以另给一个显式开关，由 JS 挂上。两种降级路径分开走，比把空 src 的
   <img> 发出去等它 404 干净——那会在每个页面的控制台留一条红字。 */
.qr__missing--on { display: grid; }
/* 窄屏左对齐的媒体查询已删。理由写在上面 .qr__pop 的注释里：
   左对齐现在是默认行为，不再需要分宽屏 / 窄屏两套。 */

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* back to top */
.to-top { position: fixed; right: 22px; bottom: 92px; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(12px); transition: all var(--t-med); z-index: 90; }
.to-top.is-show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 22px; height: 22px; }

/* floating consult button (悬浮咨询按钮) */
/* 双缘投影：白色发丝环负责在 navy 深底上托出边界，深色投影负责在白底上托出边界，
   彩色辉光负责品牌感。悬浮按钮会飘过 hero / footer 的深底与内容区的白底，
   单一投影在其中一种底色上必然失效，所以两边都要给。 */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 96; display: inline-flex; align-items: center; gap: 10px; padding: 17px 30px; border-radius: 999px; background: linear-gradient(135deg, hsl(var(--cta-400)), hsl(var(--cta-500)) 78%); color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .05em; box-shadow: 0 0 0 1px hsl(var(--white) / .22), 0 16px 34px -10px hsl(var(--navy-950) / .55), 0 6px 18px -6px hsl(var(--cta-500) / .5); transition: transform var(--t-fast), box-shadow var(--t-med), opacity var(--t-med); }
.fab svg { width: 21px; height: 21px; }
.fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 0 1px hsl(var(--white) / .3), 0 24px 46px -10px hsl(var(--navy-950) / .6), 0 10px 26px -6px hsl(var(--cta-500) / .6); }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: fab-pulse 2s var(--ease) infinite; }
.fab.is-hide { opacity: 0; pointer-events: none; transform: translateY(10px); }
@keyframes fab-pulse {
  0% { box-shadow: 0 0 0 0 hsl(var(--cta-400) / .5); }
  70% { box-shadow: 0 0 0 20px hsl(var(--cta-400) / 0); }
  100% { box-shadow: 0 0 0 0 hsl(var(--cta-400) / 0); }
}
@media (max-width: 560px) {
  .fab { right: 16px; bottom: 16px; padding: 14px 22px; font-size: 15.5px; }
  .to-top { right: 16px; bottom: 88px; }
}
/* 锚点的 scroll-margin-top 统一由 .anchor 类给（见上面），这里不再单独给 #inquiry 写一条。
   原来这里是 calc(var(--header-h) + 12px)，ID 选择器的特异性压过 .anchor 类的 +18px，
   结果 about.html 同一页三个锚点两种余量（92/92/86），看着像漏改。
   index.html 的 #inquiry 也挂上 .anchor 类了，全站锚点余量归一。 */

/* ============================================================
   Responsive
   ============================================================ */
/* 页头是「品牌 / 7 项导航 / 咨询热线」三段横排，满宽 976px（账见 .nav 上方），
   比 9 项那版少了 123px，所以三个断点都能往窄推一档：
   ≤1080px 先收咨询热线（原来 1200）。推算是：容器可用 = V - 88（V≥1100 时）
             或 0.92V，要 ≥ 976 就得 V ≥ 1064，取 1080 留点余量。
             号码并没有丢——页脚和 about.html 里都还有。
   ≤980px  导航降半档字号、内边距收到 9px、gap 收到 2px（腾出约 68px）。
   ≤860px  导航整体换汉堡菜单（原来 960）。7 项横排加品牌只要 781px，
             0.92V ≥ 781 → V ≥ 849，而 980 那档收窄后只需 713px → V ≥ 775，
             所以 860 这个断点很安全，还能跟下面 .inq / .split 的断点对齐。
   上一版把汉堡菜单定在 960 是因为 9 项导航太宽；7 项后没必要那么早收。 */
@media (max-width: 1080px) {
  .header__tel { display: none; }
}
@media (max-width: 980px) {
  .nav { gap: 2px; }
  .nav a { padding: 9px 9px; font-size: 14px; }
  .nav a::after { left: 9px; right: 9px; }
}
@media (max-width: 1024px) {
  .products-grid, .feature-grid, .case-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars, .benefits, .steps, .stats-band { grid-template-columns: repeat(2, 1fr); }
  /* 三项排两列会在右下剩一个孤位，让末项横跨两列补满（.steps--3 降到两列时同样适用） */
  .steps > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .nav, .header__tel { display: none; }
  .nav-toggle { display: block; }
  .header.is-open .nav { display: flex; position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; background: hsl(var(--navy-900)); padding: 16px var(--gutter) 26px; box-shadow: var(--shadow-lg); }
  .header.is-open .nav a { padding: 14px; font-size: 16px; border-radius: 10px; }
  .header.is-open .nav a::after { display: none; }
  .header.is-open .nav a:hover { background: hsl(var(--white) / .06); }
  .inq { grid-template-columns: 1fr; }
  .split, .detail, .news-grid { grid-template-columns: 1fr; }
  .detail__media { position: static; }
  .news-grid { gap: 26px; }
}
@media (max-width: 560px) {
  /* 内容型卡片在手机保持 2 列——这是响应式图片能真正省流量的前提：
     单列全宽约 444px，乘 DPR2 = 888，浏览器会去选最大档（每张 100KB+）；
     2 列后每列约 212px，乘 DPR2 = 424，命中 480 档（每张约 25KB）。
     首页 12 张卡片图的下发量因此降到约四分之一。
     代价是窄卡片塞不下描述，靠下面的规则收成「图 + 标题」。 */
  .products-grid, .feature-grid, .case-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* 3 项的网格排 2 列会在右下剩一个孤位，让末项横跨两列补满 */
  .feature-grid > :last-child:nth-child(odd),
  .case-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  .adv-grid, .pillars, .benefits, .steps, .footer__top, .checklist { grid-template-columns: 1fr; }
  /* 数据带是纯数字，2 列比竖着堆四条紧凑得多；4vw 下字号被 clamp 锁在 30px，
     170px 的列宽放得下，所以不必跟着降到 1 列 */
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 28px 22px; }

  .hero__stats { gap: 22px 30px; }

  /* 窄卡片精简：只留图 + 标题，标签 / 描述 / 「查看详情」全部收掉 */
  .card__body { padding: 13px 14px 15px; gap: 7px; }
  .card__body h3 { font-size: 15px; line-height: 1.34; }
  .card__tags, .card__body p, .card__meta { display: none; }
  .card__index { top: 9px; left: 9px; font-size: 11.5px; padding: 3px 8px; }

  /* ❗ 案例卡是上面那条规则的例外，必须把地点放回来。
     原因：产品与方案都有详情页，手机上收成「图 + 标题」只是把信息挪到了
     下一跳，点进去照样看得到；而案例没有详情页（客户说案例没有详细介绍，
     case.html 已删），cases.html 这一页就是终点——地点在手机上收掉了，
     访客就永远看不到这个案例在哪做的，等于四项要求少了一项。
     分类不受影响：案例卡的分类是裸 .tag，不在 .card__tags 里，上面那条规则
     本来就管不到它。
     为什么不改成手机单列让卡片变宽：单列全宽约 444px，乘 DPR2 = 888，浏览器
     会去选 1080 档（每张 216KB），22 个案例就是 4.7MB——在 2M 带宽（256KB/s）
     的服务器上要下 18 秒。2 列命中 480 档（每张约 25KB）才是能接受的。
     地点压到 12px 单行省略：2 列时每列约 212px，放不下完整地址，但
     「华东 · 某市」这种短地点放得下；真实数据里若有长地址，省略号截断也比
     换行好——网格是等高的，一张卡撑高整行都跟着变。
     这里只重写 display，不写 margin-top：上面桌面端那条 margin-top: auto 要
     继续生效，同一行两张卡标题字数不一样时（一行 vs 两行），地点才能对齐在
     底部而不是一个紧贴标题、一个垂在下面。 */
  .case-card .card__meta { display: block; }
  .case-card .card__place { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .feature { min-height: 200px; }
  .feature__body { padding: 14px; }
  .feature__body h3 { font-size: 15px; line-height: 1.34; }
  .feature__body .tag { margin-bottom: 7px; font-size: 11px; padding: 3px 8px; }
  .feature__body p, .feature__body .card__link { display: none; }

  .inq-row { grid-template-columns: 1fr; }
}
