/* ==========================================================================
   四川上品智信科技有限公司 官网样式
   风格：深蓝 / 深灰 科技风，简约商务，全端自适应
   ========================================================================== */

:root {
  --brand-900: #041c3f;
  --brand-800: #062b63;
  --brand-700: #0a3d8f;
  --brand-600: #0b4da2;
  --brand-500: #1565c0;
  --brand-400: #2f86e0;
  --brand-300: #6fb2ee;
  --brand-050: #eef5fd;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-050: #f8fafc;

  --accent: #00b4d8;
  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 18px 48px rgba(6, 43, 99, 0.16);

  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1240px;
  --header-h: 76px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-700);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--brand-600); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink-900); font-weight: 700; line-height: 1.35; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.hide { display: none !important; }

/* 键盘可达性：仅聚焦时出现的「跳到主要内容」链接 */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 1200;
  padding: 10px 18px;
  background: var(--brand-600);
  color: #fff;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }
/* main 仅作为语义地标，不参与视觉呈现 */
main { display: block; }
main:focus { outline: none; }

/*
  图标宏 icon() 输出的 <svg> 默认尺寸。
  宏里只写了 viewBox、没写 width/height，而「无内在尺寸的替换元素」在浏览器里
  会退化成 ~300×150 的默认大小 —— 一旦某处没有配到尺寸规则，
  图标就会变成撑满整张卡片的大黑块（首页深色联系区就踩过）。
  这里给一个兜底尺寸；各处更具体的规则（如 .adv-icon svg / .contact-card .ci-icon svg）
  选择器权重更高，照旧覆盖生效。
*/
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ============================ 顶部信息条 ============================ */
.topbar {
  background: var(--brand-900);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  height: 38px;
  line-height: 38px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; gap: 22px; align-items: center; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 14px; height: 14px; fill: var(--brand-300); flex: none; }
.topbar a:hover { color: var(--white); }
.topbar-right { display: flex; gap: 16px; align-items: center; }

/* ============================ 头部导航 ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-200);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 18px;
}
/*
  导航靠右：见下方 `.header-inner > nav` 的 margin-left:auto。
  注意 auto margin 会**先于** justify-content 吸收全部剩余空间，
  所以加了它之后 space-between 实际不再起作用（保留它无副作用，只是失效）。
  左对齐的只剩品牌区，右侧是一组「导航 + 联系电话」。
*/
/* 品牌区可收缩（最后兜底），保证导航永远不会被挤压 */
.brand { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; }
.brand img { height: 43px; width: auto; flex: none; }   /* 头部锁定图：
   43px 高时图内中文≈18px、英文≈10px。改高度请同步看 build_lockups.py 的
   horizontal_header() —— 比例是配合这个显示高度定的。 */
/* ⚠️ 以下 .brand-* 文字样式当前未被模板使用（头部已改用锁定图）。
   保留是为了「图形标记图 + HTML 文字」那套结构能随时回退。 */
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name {
  font-size: 19px; font-weight: 700; color: var(--ink-900); letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-slogan {
  font-size: 11px; color: var(--ink-400); letter-spacing: 2.4px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/*
  导航条：flex:none 表示「不允许被压缩」。
  中文可以在任意两字之间断行，因此 flex 项的 min-width:auto 起不到保护作用，
  一旦被压缩就会逐字折行、把 76px 的头部撑成 152px（表现为导航上下叠成两排）。
  这里改为「不压缩 + 链接内禁止折行」，宽度不足时改由媒体查询逐级收窄，
  最差情况也只是品牌文字省略号截断，不会再破坏头部高度。
*/
/*
  gap 从 2px 提到 12px（+10px）：栏目之间的留白 = gap + 左右 padding，
  即 12 + 13 + 13 = 38px。链接的 ::after 下划线是固定 26px 居中的，
  所以加 gap 只影响留白、不会把下划线拉宽，视觉上就是「栏目之间更松了」。
*/
.nav { display: flex; align-items: center; gap: 12px; flex: none; }

/*
  导航靠右。
  ⚠️ auto margin 必须加在**直接参与 flex 布局的那个元素**上 ——
  这里的 flex 项是 <nav> 包裹层，而不是它里面的 <ul class="nav">。
  加在 ul 上会被完全忽略（ul 不是 .header-inner 的子元素），
  于是 space-between 继续把剩余空间**平均分给左右两侧**，
  表现为「品牌→导航」和「导航→CTA」两个间隙一样宽（各 106px），导航看起来还是居中的。
  加对地方后：右侧两个间隙应为 18px（.header-inner 的 gap），左侧吃掉全部剩余空间。
*/
.header-inner > nav { margin-left: auto; }
.nav > li { position: relative; }
.nav > li > a {
  display: block;
  padding: 0 13px;
  line-height: var(--header-h);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900);
  position: relative;
  white-space: nowrap;
}
.nav > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 0;
  height: 2px;
  background: var(--brand-600);
  transition: width .28s, left .28s;
}
.nav > li > a:hover::after,
.nav > li.active > a::after { width: 26px; left: calc(50% - 13px); }
.nav > li.active > a { color: var(--brand-600); }

.nav-sub {
  position: absolute;
  top: calc(var(--header-h) - 6px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.nav > li:hover .nav-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-sub a {
  display: block;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--ink-700);
  white-space: nowrap;
}
.nav-sub a:hover { background: var(--brand-050); color: var(--brand-600); }

.header-cta { display: flex; align-items: center; gap: 14px; flex: none; }
.header-tel { display: flex; align-items: center; gap: 9px; }
.header-tel svg { width: 20px; height: 20px; fill: var(--brand-600); flex: none; }
/* 文案区改为纵向两行（说明在上、号码在下）。
   原先两个 span 是 inline，会被排成一行「全国服务热线 18683228636」，
   既不好看又白白多占 ~75px 头部宽度。 */
.header-tel > span { display: flex; flex-direction: column; min-width: 0; }
.header-tel .t-label {
  font-size: 11px; color: var(--ink-400); line-height: 1.2; white-space: nowrap;
}
.header-tel .t-num {
  font-size: 16px; font-weight: 700; color: var(--brand-700); line-height: 1.3;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink-900);
  position: relative; transition: background .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink-900);
  transition: transform .25s, top .25s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* 移动端抽屉 */
.mobile-mask {
  position: fixed; inset: 0; background: rgba(4, 28, 63, .5);
  opacity: 0; visibility: hidden; transition: .3s; z-index: 940;
}
.nav-open .mobile-mask { opacity: 1; visibility: visible; }
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 84vw;
  background: var(--white); z-index: 950; padding: 24px 0 40px;
  transform: translateX(102%); transition: transform .32s ease;
  overflow-y: auto; box-shadow: var(--shadow-lg);
}
.nav-open .mobile-nav { transform: translateX(0); }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 18px; border-bottom: 1px solid var(--ink-200); margin-bottom: 8px;
}
.mobile-nav-head img { height: 34px; }
.mobile-close {
  width: 34px; height: 34px; border: 1px solid var(--ink-200); background: var(--white);
  border-radius: 8px; font-size: 20px; line-height: 1; color: var(--ink-500); cursor: pointer;
}
.mobile-nav ul a {
  display: block; padding: 13px 20px; font-size: 16px; color: var(--ink-900);
  border-bottom: 1px solid var(--ink-100);
}
.mobile-nav ul a.active { color: var(--brand-600); font-weight: 600; background: var(--brand-050); }
.mobile-sub a { padding-left: 40px; font-size: 14px; color: var(--ink-500); border-bottom: 0; }
.mobile-nav-foot { padding: 22px 20px 0; }
.mobile-nav-foot .tel { font-size: 19px; font-weight: 700; color: var(--brand-700); }

/* ============================ 首页轮播 ============================ */
.hero { position: relative; overflow: hidden; background: var(--brand-900); }
.hero-track { position: relative; height: 620px; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
/*
  ⚠️ 移动端专用背景必须在这里显式 display:none。
  原先只在 `@media (max-width: 992px)` 里写了 `.hero-bg-mob { display: block }`，
  基态没有规则 —— 于是桌面端它是个「没有高度、看不见」的普通 div，
  但浏览器**照样会下载它的 background-image**。
  实测：桌面端因此多下载了 5 张移动版 banner 共 1437 KB（占首页总下载量的 38%）。
  这类「元素不可见 ⇒ 资源仍下载」的坑，静态分析看不出来，只有真实网络测量能发现。
*/
.hero-bg-mob { display: none; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 28, 63, .93) 0%, rgba(4, 28, 63, .74) 46%, rgba(6, 43, 99, .32) 100%);
}
.hero-slide.active .hero-bg { animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-box { max-width: 660px; color: var(--white); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--brand-300); margin-bottom: 20px;
}
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--brand-300); }
.hero-title {
  font-size: 48px; line-height: 1.22; color: var(--white); margin-bottom: 18px;
  letter-spacing: 1px; font-weight: 700;
}
.hero-sub { font-size: 17px; line-height: 1.9; color: rgba(255, 255, 255, .82); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-slide.active .hero-kicker { animation: heroUp .8s .1s both; }
.hero-slide.active .hero-title { animation: heroUp .8s .22s both; }
.hero-slide.active .hero-sub { animation: heroUp .8s .34s both; }
.hero-slide.active .hero-actions { animation: heroUp .8s .46s both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-ctrl {
  position: absolute; left: 0; right: 0; bottom: 34px; z-index: 5;
}
.hero-ctrl .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dot {
  width: 34px; height: 3px; background: rgba(255, 255, 255, .3); border: 0; padding: 0;
  cursor: pointer; border-radius: 2px; transition: background .3s, width .3s;
}
.hero-dot.active { background: var(--brand-300); width: 54px; }
.hero-arrow { display: flex; gap: 10px; }
.hero-arrow button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08);
  color: var(--white); cursor: pointer; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: .25s;
}
.hero-arrow button:hover { background: var(--brand-600); border-color: var(--brand-600); }

/* ============================ 通用按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 28px; height: 48px; line-height: 48px;
  border-radius: 6px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: .28s; white-space: nowrap;
}
.btn-primary { background: var(--brand-600); color: var(--white); }
.btn-primary:hover { background: var(--brand-700); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 77, 162, .3); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--brand-700); border-color: var(--white); }
.btn-outline { border-color: var(--brand-600); color: var(--brand-600); }
.btn-outline:hover { background: var(--brand-600); color: var(--white); }
.btn-sm { height: 38px; line-height: 38px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================ 内页 Banner ============================ */
.page-banner {
  position: relative; min-height: 340px; display: flex; align-items: center;
  background: var(--brand-900) center/cover no-repeat;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 28, 63, .92), rgba(6, 43, 99, .62));
}
.page-banner .wrap { position: relative; z-index: 2; padding-top: 30px; padding-bottom: 30px; }
.page-banner h1 { color: var(--white); font-size: 38px; letter-spacing: 1px; margin-bottom: 12px; }
.page-banner p { color: rgba(255, 255, 255, .8); font-size: 16px; max-width: 760px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .62); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span.sep { opacity: .5; }

/* ============================ 通用区块 ============================ */
.section { padding: 84px 0; }
.section-sm { padding: 60px 0; }
.section-gray { background: var(--ink-050); }
.section-dark { background: var(--brand-900); color: rgba(255, 255, 255, .78); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--brand-500); font-weight: 600; margin-bottom: 12px;
}
.section-dark .sec-eyebrow { color: var(--brand-300); }
.sec-title { font-size: 34px; letter-spacing: .5px; margin-bottom: 14px; }
.sec-desc { color: var(--ink-500); font-size: 15.5px; max-width: 760px; }
.sec-head.center .sec-desc { margin: 0 auto; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.sec-line { width: 48px; height: 3px; background: var(--brand-600); border-radius: 2px; margin: 18px 0 0; }
.sec-head.center .sec-line { margin-left: auto; margin-right: auto; }

/* ============================ 优势 / 数据条 ============================ */
.stat-strip { background: var(--brand-800); color: var(--white); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); }
.stat-cell { background: var(--brand-800); padding: 36px 24px; text-align: center; }
.stat-value { font-size: 40px; font-weight: 700; color: var(--white); line-height: 1.1; letter-spacing: 1px; }
.stat-value small { font-size: 16px; font-weight: 500; margin-left: 4px; color: var(--brand-300); }
.stat-label { font-size: 14px; color: rgba(255, 255, 255, .68); margin-top: 8px; }

/* ============================ 业务板块卡片 ============================ */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.biz-card {
  position: relative; background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg); overflow: hidden; transition: .32s; display: flex; flex-direction: column;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.biz-thumb { position: relative; height: 210px; overflow: hidden; background: var(--ink-100); }
.biz-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.biz-card:hover .biz-thumb img { transform: scale(1.07); }
.biz-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 28, 63, 0) 40%, rgba(4, 28, 63, .55));
  opacity: 0; transition: opacity .32s;
}
.biz-card:hover .biz-thumb::after { opacity: 1; }
.biz-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.biz-name { font-size: 20px; margin-bottom: 6px; }
.biz-en { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-400); margin-bottom: 14px; }
.biz-sum { font-size: 14.5px; color: var(--ink-500); flex: 1; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.biz-tags span {
  font-size: 12.5px; padding: 4px 10px; border-radius: 4px;
  background: var(--brand-050); color: var(--brand-600);
}
.biz-more { font-size: 14px; color: var(--brand-600); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.biz-more::after { content: "→"; transition: transform .25s; }
.biz-card:hover .biz-more::after { transform: translateX(5px); }

/* ============================ 优势列表 ============================ */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-item {
  padding: 32px 26px; border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--ink-200); transition: .3s;
}
.adv-item:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.adv-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-050); margin-bottom: 18px;
}
.adv-icon svg { width: 26px; height: 26px; fill: var(--brand-600); }
.adv-title { font-size: 17px; margin-bottom: 10px; }
.adv-desc { font-size: 14px; color: var(--ink-500); }

/* ============================ 公司简介 ============================ */
.about-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.about-media .badge {
  position: absolute; left: -18px; bottom: 30px; background: var(--brand-600); color: var(--white);
  padding: 18px 24px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about-media .badge b { display: block; font-size: 26px; line-height: 1.2; }
.about-media .badge span { font-size: 12.5px; opacity: .85; }
.about-body p { color: var(--ink-500); }
.about-points { margin-top: 26px; display: grid; gap: 14px; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-700); }
.about-points li::before {
  content: ""; width: 18px; height: 18px; flex: none; margin-top: 4px; border-radius: 50%;
  background: var(--brand-050) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230b4da2'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ============================ 产品列表 ============================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-bar a {
  padding: 9px 20px; border-radius: 6px; border: 1px solid var(--ink-200);
  font-size: 14px; color: var(--ink-700); background: var(--white);
}
.filter-bar a:hover { border-color: var(--brand-400); color: var(--brand-600); }
.filter-bar a.active { background: var(--brand-600); border-color: var(--brand-600); color: var(--white); }

.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.prod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prod-card {
  background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius);
  overflow: hidden; transition: .3s; display: flex; flex-direction: column;
}
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.prod-thumb { height: 200px; background: var(--ink-100); overflow: hidden; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.prod-card:hover .prod-thumb img { transform: scale(1.08); }
.prod-body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.prod-cat { font-size: 12px; color: var(--brand-500); letter-spacing: 1px; margin-bottom: 8px; }
.prod-name { font-size: 16.5px; margin-bottom: 8px; min-height: 44px; }
.prod-model { font-size: 12.5px; color: var(--ink-400); font-family: ui-monospace, Menlo, monospace; margin-bottom: 10px; }
.prod-sum {
  font-size: 13.5px; color: var(--ink-500); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ink-100); display: flex; justify-content: space-between; align-items: center; }
.prod-foot span { font-size: 13px; color: var(--brand-600); }
.prod-foot span::after { content: " →"; }

/* ============================ 产品详情 ============================ */
.detail-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.gallery-main { border: 1px solid var(--ink-200); border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-050); }
.gallery-main img { width: 100%; height: 440px; object-fit: contain; background: var(--white); }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 84px; height: 68px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; opacity: .68; transition: .25s; background: var(--ink-100);
}
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--brand-600); opacity: 1; }

/* 详情区标题：模板里用 <h2>（本页的 <h1> 在横幅里），
   所以选择器要同时覆盖 h1/h2，否则字号会掉回浏览器默认值。
   全局已有 `h1..h5 { margin: 0 }` 重置，改标签不会带来额外外边距。 */
.detail-info h1, .detail-info h2 { font-size: 30px; margin-bottom: 12px; }
.detail-model { font-family: ui-monospace, Menlo, monospace; color: var(--ink-400); font-size: 14px; margin-bottom: 18px; }
.detail-lead { font-size: 15.5px; color: var(--ink-500); padding-bottom: 22px; border-bottom: 1px solid var(--ink-200); }
.detail-hl { display: grid; gap: 10px; margin: 22px 0 26px; }
.detail-hl li { display: flex; gap: 10px; font-size: 14.5px; }
.detail-hl li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); margin-top: 9px; flex: none; }
.detail-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.content-block { font-size: 15.5px; color: var(--ink-700); line-height: 1.95; }
.content-block h3 { font-size: 20px; margin: 30px 0 14px; padding-left: 14px; border-left: 4px solid var(--brand-600); }
.content-block h3:first-child { margin-top: 0; }
.content-block h4 { font-size: 17px; margin: 22px 0 10px; }
.content-block img { border-radius: var(--radius); margin: 18px 0; }
.content-block ul { margin: 12px 0; }
.content-block ul li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--ink-700); }
.content-block ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); }
.content-block table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.content-block table th, .content-block table td { border: 1px solid var(--ink-200); padding: 11px 14px; text-align: left; }
.content-block table th { background: var(--ink-050); font-weight: 600; }

.param-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.param-table tr { border-bottom: 1px solid var(--ink-200); }
.param-table tr:last-child { border-bottom: 0; }
.param-table th {
  width: 190px; text-align: left; padding: 14px 18px; background: var(--ink-050);
  font-weight: 600; color: var(--ink-900); vertical-align: top;
}
.param-table td { padding: 14px 18px; color: var(--ink-700); }
.param-wrap { border: 1px solid var(--ink-200); border-radius: var(--radius); overflow: hidden; }

.tab-head { display: flex; gap: 4px; border-bottom: 1px solid var(--ink-200); margin-bottom: 30px; flex-wrap: wrap; }
.tab-head button {
  padding: 14px 26px; background: none; border: 0; border-bottom: 2px solid transparent;
  font-size: 16px; color: var(--ink-500); cursor: pointer; font-family: inherit; transition: .25s;
}
.tab-head button.active { color: var(--brand-600); border-bottom-color: var(--brand-600); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .4s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-row span { font-size: 13.5px; padding: 8px 16px; border-radius: 6px; background: var(--ink-050); border: 1px solid var(--ink-200); color: var(--ink-700); }

/* ============================ 案例 ============================ */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-100); display: block; }
.case-card img { width: 100%; height: 290px; object-fit: cover; transition: transform .6s; }
.case-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 28, 63, 0) 32%, rgba(4, 28, 63, .88));
}
.case-card:hover img { transform: scale(1.06); }
.case-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 2; }
.case-info .c-cat { font-size: 12px; color: var(--brand-300); letter-spacing: 1px; margin-bottom: 8px; }
.case-info h3 { color: var(--white); font-size: 18px; margin-bottom: 8px; }
.case-info p { color: rgba(255, 255, 255, .72); font-size: 13.5px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================ 新闻 ============================ */
.news-list { display: grid; gap: 18px; }
.news-item {
  display: grid; grid-template-columns: 250px 1fr; gap: 26px;
  padding: 20px; background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg); transition: .3s;
}
.news-item:hover { box-shadow: var(--shadow-md); border-color: var(--brand-300); transform: translateX(4px); }
.news-thumb { height: 158px; border-radius: var(--radius); overflow: hidden; background: var(--ink-100); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { display: flex; flex-direction: column; justify-content: center; }
.news-meta { display: flex; gap: 16px; font-size: 13px; color: var(--ink-400); margin-bottom: 10px; flex-wrap: wrap; }
.news-meta .n-cat { color: var(--brand-600); background: var(--brand-050); padding: 2px 10px; border-radius: 4px; }
.news-title { font-size: 18px; margin-bottom: 10px; }
.news-sum { font-size: 14px; color: var(--ink-500);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.news-side { position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.side-card h3 { font-size: 17px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-200); }
.side-links li { border-bottom: 1px dashed var(--ink-200); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: block; padding: 11px 0; font-size: 14px; color: var(--ink-700); }
.side-links a:hover { color: var(--brand-600); padding-left: 6px; }
.side-links .date { display: block; font-size: 12px; color: var(--ink-400); }

/* 文章正文 */
.article-head { text-align: center; max-width: 820px; margin: 0 auto 40px; }
/* 同上：模板里文章标题是 <h2>，选择器需覆盖 h1/h2 */
.article-head h1, .article-head h2 { font-size: 30px; margin-bottom: 18px; }
.article-meta { display: flex; gap: 20px; justify-content: center; font-size: 13.5px; color: var(--ink-400); flex-wrap: wrap; }
.article-body { max-width: 880px; margin: 0 auto; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--ink-200); font-size: 14px; flex-wrap: wrap; }
.article-nav a { color: var(--ink-500); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav a:hover { color: var(--brand-600); }

/* ============================ 联系页 ============================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-card {
  display: flex; gap: 16px; padding: 22px; background: var(--white);
  border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
}
.contact-card .ci-icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--brand-050);
  display: flex; align-items: center; justify-content: center;
}
.contact-card .ci-icon svg { width: 22px; height: 22px; fill: var(--brand-600); }
.contact-card h4 { font-size: 15px; margin-bottom: 6px; }
.contact-card p { font-size: 14.5px; color: var(--ink-500); margin: 0; word-break: break-all; }
.contact-card p strong { color: var(--brand-700); font-size: 17px; }

.form-card { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 21px; margin-bottom: 6px; }
.form-card .f-tip { font-size: 13.5px; color: var(--ink-400); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: 13.5px; color: var(--ink-700); font-weight: 500; }
.form-row label em { color: #e5484d; font-style: normal; margin-left: 3px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ink-200); border-radius: 8px;
  font-size: 14.5px; font-family: inherit; color: var(--ink-900); background: var(--white);
  transition: border-color .25s, box-shadow .25s; outline: none;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(21, 101, 192, .1);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-foot { margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-msg { font-size: 14px; }
.form-msg.ok { color: #0f9d58; }
.form-msg.err { color: #e5484d; }

.map-box { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--ink-200); background: var(--ink-050); height: 380px; position: relative; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--ink-400); font-size: 14px; text-align: center; padding: 20px;
  background:
    linear-gradient(90deg, rgba(226,232,240,.6) 1px, transparent 1px) 0 0/46px 46px,
    linear-gradient(0deg, rgba(226,232,240,.6) 1px, transparent 1px) 0 0/46px 46px,
    var(--ink-050);
}
.map-ph .pin { width: 40px; height: 40px; fill: var(--brand-600); }
.map-ph strong { color: var(--ink-900); font-size: 16px; }
/* 配置了位置示意图时：铺满固定高度的地图容器 */
.map-figure { display: block; width: 100%; height: 100%; }
.map-figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.map-figure:hover img { transform: scale(1.03); }

/* 资质证书缩略图（点击查看原图）
   证书是 A4 竖版（宽高比约 0.73），两种做法都不行：
   1) 按卡片宽度铺满 → 635px 高，把整张卡片撑到 900px+，与左侧「业务范围」严重失衡；
   2) 固定高度 + object-fit:cover → 只看到证书上沿，连证书名称都被裁掉，
      再叠一条深色提示条，正好压住「质量管理体系认证证书」几个字。
   改为「居中收窄 + 完整显示」：整张证书都在，像一张真正的证书缩略图；
   提示文字移到图片下方，不遮挡任何内容。 */
.cert-thumb {
  display: block; position: relative;
  margin: 16px auto 0;
  width: 62%; max-width: 250px;
  border: 1px solid var(--ink-200); border-radius: 10px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(4, 28, 63, .10);
  transition: box-shadow .3s, transform .3s;
}
.cert-thumb:hover { box-shadow: 0 12px 28px rgba(4, 28, 63, .18); transform: translateY(-2px); }
.cert-thumb img { width: 100%; height: auto; display: block; }
.cert-hint {
  display: block; text-align: center;
  font-size: 12.5px; font-weight: 500; color: var(--brand-600);
  padding: 9px 6px; border-top: 1px solid var(--ink-100); background: var(--ink-050);
}

/* ============================ 合作 / 客户 ============================ */
.partner-marquee { overflow: hidden; position: relative; padding: 10px 0; }
.partner-track { display: flex; gap: 20px; width: max-content; animation: marquee 38s linear infinite; }
.partner-marquee:hover .partner-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner-item {
  width: 208px; flex: none; height: 92px; background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  padding: 16px; transition: .28s;
}
.partner-item:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.partner-item img { max-height: 48px; width: auto; object-fit: contain; }
.partner-item .p-name { font-size: 15px; font-weight: 600; color: var(--ink-700); text-align: center; }
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

/* ============================ CTA 条 ============================ */
.cta-bar {
  background: linear-gradient(120deg, var(--brand-800), var(--brand-600) 60%, var(--brand-500));
  color: var(--white); padding: 52px 0;
}
.cta-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-bar h3 { color: var(--white); font-size: 26px; margin-bottom: 8px; }
.cta-bar p { color: rgba(255, 255, 255, .78); margin: 0; }

/* ============================ 页脚 ============================ */
.site-footer { background: var(--brand-900); color: rgba(255, 255, 255, .62); padding: 66px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.footer-brand img { height: 42px; margin-bottom: 20px; }
.footer-brand p { font-size: 13.5px; line-height: 1.9; color: rgba(255, 255, 255, .56); margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px; background: rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--brand-600); }
.footer-social svg { width: 18px; height: 18px; fill: rgba(255, 255, 255, .8); }
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--brand-500); }
.footer-col li { margin-bottom: 11px; }
.footer-col a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; line-height: 1.7; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--brand-300); flex: none; margin-top: 5px; }
.footer-contact .fc-tel { color: var(--white); font-size: 18px; font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255, 255, 255, .45);
}
.footer-bottom a:hover { color: var(--white); }

/* ============================ 浮动工具条 ============================ */
.float-bar { position: fixed; right: 18px; bottom: 90px; z-index: 800; display: flex; flex-direction: column; gap: 10px; }
.float-bar a, .float-bar button {
  width: 50px; height: 50px; border-radius: 12px; background: var(--white); border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-md); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; padding: 0; transition: .25s; color: var(--ink-500);
}
.float-bar a:hover, .float-bar button:hover { background: var(--brand-600); border-color: var(--brand-600); color: var(--white); }
.float-bar svg { width: 20px; height: 20px; fill: currentColor; }
.float-bar span { font-size: 10px; line-height: 1; }
.float-bar .float-top { opacity: 0; visibility: hidden; transform: translateY(10px); }
.float-bar .float-top.show { opacity: 1; visibility: visible; transform: none; }

/* ============================ 分页 ============================ */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 40px; height: 40px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--ink-200);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-700);
  background: var(--white);
}
.pager a:hover { border-color: var(--brand-500); color: var(--brand-600); }
.pager .current { background: var(--brand-600); border-color: var(--brand-600); color: var(--white); }
.pager .disabled { opacity: .45; pointer-events: none; }

/* ============================ 空状态 ============================ */
.empty { text-align: center; padding: 80px 20px; color: var(--ink-400); }
.empty svg { width: 64px; height: 64px; fill: var(--ink-200); margin: 0 auto 18px; }

/* ============================ 响应式 ============================ */
@media (max-width: 1180px) {
  .nav > li > a { padding: 0 13px; font-size: 15px; }
  .header-tel { display: none; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; }
}

@media (max-width: 992px) {
  :root { --header-h: 66px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .brand img { height: 37px; }
  .brand-name { font-size: 17px; }

  .hero-track { height: 520px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 15.5px; }

  .page-banner { min-height: 260px; }
  .page-banner h1 { font-size: 28px; }
  .section { padding: 60px 0; }
  .sec-title { font-size: 26px; }

  .about-split { grid-template-columns: 1fr; gap: 36px; }
  .about-media .badge { left: 16px; bottom: -18px; padding: 14px 20px; }
  .detail-split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .topbar { display: none; }

  .hero-bg { display: none; }
  .hero-bg-mob {
    display: block; position: absolute; inset: 0;
    background-size: cover; background-position: center top;
  }
  .hero-bg-mob::after {
    background: linear-gradient(180deg, rgba(4, 28, 63, .72) 0%, rgba(4, 28, 63, .78) 42%, rgba(4, 28, 63, .94) 100%);
  }

  .hero-track { height: 460px; }
  .hero-title { font-size: 26px; letter-spacing: 0; }
  .hero-sub { font-size: 14.5px; margin-bottom: 24px; }
  .hero-actions .btn { height: 42px; line-height: 42px; padding: 0 20px; font-size: 14px; }
  .hero-ctrl { bottom: 18px; }
  .hero-arrow { display: none; }
  .hero-kicker { font-size: 11px; letter-spacing: 2px; margin-bottom: 14px; }

  .page-banner { min-height: 200px; }
  .page-banner h1 { font-size: 22px; }
  .page-banner p { font-size: 14px; }

  .section { padding: 46px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-title { font-size: 22px; }
  .sec-desc { font-size: 14px; }

  .biz-grid, .case-grid, .adv-grid, .prod-grid, .prod-grid.cols-3 { grid-template-columns: 1fr; }
  .biz-thumb { height: 190px; }
  .stat-cell { padding: 24px 14px; }
  .stat-value { font-size: 30px; }

  .news-item { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .news-thumb { height: 190px; }
  .article-head h1, .article-head h2 { font-size: 22px; }
  .article-body { font-size: 15px; }
  .article-nav { flex-direction: column; }

  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .param-table th { width: 118px; padding: 11px 12px; font-size: 13.5px; }
  .param-table td { padding: 11px 12px; font-size: 13.5px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-item { width: 100%; height: 76px; }
  .cta-bar { padding: 36px 0; }
  .cta-bar h3 { font-size: 20px; }
  .float-bar { right: 12px; bottom: 74px; }
  .float-bar a, .float-bar button { width: 44px; height: 44px; }
  .gallery-main img { height: 260px; }
  .detail-info h1 { font-size: 22px; }
  .tab-head button { padding: 12px 16px; font-size: 15px; }
}

@media (max-width: 400px) {
  .brand-slogan { display: none; }
  .hero-track { height: 430px; }
}
