/* ==========================================================================
   宁波森燚机械制造有限公司 官网样式
   --------------------------------------------------------------------------
   设计原则：
   1. 浅色底 + 白色卡片承载内容，用「层次」替代「大面积色块」；
   2. 深蓝作为主色但只做重点点缀，工业橙只用于按钮与关键数字；
   3. 正文 15~17px、行高 1.75，移动端不缩字号、不横向溢出；
   4. 所有尺寸用 clamp()，一套代码自适应手机到宽屏。
   ========================================================================== */

/* ---------------- 1. 设计变量 ----------------
   工业蓝主题（机加工行业）：
     主色      #0F4C81  深蓝，用于头部、标题、图标、深色区
     高亮按钮  #165DFF  亮蓝，用于主按钮 / 强调 / 链接悬停
     背景浅灰  #F5F7FA  页面底
     正文文字  #333333
     次要文字  #666666
     分割线    #E8E8E8
   ------------------------------------------- */
:root {
  --brand: #0F4C81;
  --brand-2: #165DFF;
  --brand-deep: #0A3559;
  --brand-50: #EFF3F8;
  --brand-100: #D7E2EC;
  --accent: #165DFF;
  --accent-2: #4A88FF;

  --ink: #222222;
  --ink-2: #333333;
  --ink-3: #666666;
  --ink-4: #999999;

  --bg: #F5F7FA;
  --bg-2: #FAFBFC;
  --card: #FFFFFF;
  --line: #E8E8E8;
  --line-2: #F1F2F4;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 40, 66, .04), 0 10px 28px -16px rgba(15, 40, 66, .18);
  --shadow-lg: 0 2px 6px rgba(15, 40, 66, .05), 0 26px 60px -28px rgba(15, 40, 66, .3);

  --head-h: 72px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
          system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "DIN Alternate", "Bahnschrift", "HarmonyOS Sans", var(--font);
}

/* ---------------- 2. 基础 ---------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

/* 锚点定位：给 sticky 页头留出高度，JS 未加载时原生 #hash 跳转也不会被挡住 */
section[id], div[id], aside[id], ul[id], li[id], header[id] { scroll-margin-top: calc(var(--head-h) + 14px); }
a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.35; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- 3. 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1.4; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; box-shadow: 0 8px 22px -10px rgba(22, 93, 255, .85);
}
.btn-accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(22, 93, 255, .95); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; transform: translateY(-2px); }
.btn-line { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .34); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 11px; }
.btn-block { width: 100%; }

/* ---------------- 4. 演示模式提示 ---------------- */
.demo-bar {
  background: #EAF1F9; color: #0F4C81; font-size: 13.5px;
  padding: 9px clamp(16px, 4vw, 32px); text-align: center; line-height: 1.6;
  border-bottom: 1px solid #F5DFB9;
}
.demo-bar b { color: #0A3559; }
.demo-bar a { color: #0F4C81; text-decoration: underline; font-weight: 600; }

/* ---------------- 5. 顶栏 ---------------- */
.topbar {
  background: var(--brand-deep); color: #B6CCDE; font-size: 13.5px;
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 38px; flex-wrap: wrap;
}
.topbar-note { letter-spacing: .2px; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.tb-item { color: #A9C8E4; }
.tb-tel { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; letter-spacing: .3px; }
.tb-tel:hover { color: var(--accent-2); }

/* ---------------- 6. 页头 ---------------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-head.is-stuck { box-shadow: 0 6px 26px -18px rgba(15, 40, 66, .5); }
.head-in { display: flex; align-items: center; gap: 22px; min-height: var(--head-h); }

.brand { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; }
.brand-mark { flex: 0 0 auto; line-height: 0; }
.brand-logo { height: 40px; width: auto; max-width: 220px; border-radius: 6px; object-fit: contain; }
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.brand-txt b {
  font-size: clamp(15px, 1.5vw, 18.5px); color: var(--ink); font-weight: 700;
  letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-txt i {
  font-style: normal; font-size: 10.5px; color: var(--ink-4);
  letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-a {
  position: relative; padding: 10px 14px; border-radius: 8px; color: var(--ink-2);
  font-size: 15.5px; font-weight: 500; white-space: nowrap;
}
.nav-a::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px;
  background: var(--accent); border-radius: 2px; transform: translateX(-50%);
  transition: width .22s ease;
}
.nav-a:hover { color: var(--brand); background: var(--brand-50); }
.nav-a.on { color: var(--brand); font-weight: 700; }
.nav-a.on::after { width: 22px; }

.head-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none; width: 42px; height: 42px; margin-left: auto;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .18s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 7. 首屏 Hero（背景实景轮播） ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  display: flex; flex-direction: column;
  min-height: clamp(540px, 74vh, 720px);
  background: linear-gradient(132deg, #0A3559 0%, #0F4C81 46%, #165DFF 100%);
}

/* 背景轮播层 */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.1s ease;
  will-change: opacity;
}
.hero-slide img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center 44%;
  transform: scale(1.04);
  transition: transform 9s linear;
}
.hero-slide.is-on { opacity: 1; }
.hero-slide.is-on img { transform: scale(1.13); }
/* 脚本未启用时，第一张背景照常显示（不依赖 JS 也能看到图） */
html:not(.js) .hero-slide:first-child { opacity: 1; }

/* 遮罩：左侧压深保证文字清晰，右侧逐步透出照片，兼顾可读性与实景感 */
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(98deg, rgba(6, 24, 60, .94) 0%, rgba(8, 30, 72, .86) 30%, rgba(11, 42, 94, .58) 54%, rgba(14, 54, 116, .24) 78%, rgba(16, 60, 124, .10) 100%),
    linear-gradient(180deg, rgba(6, 22, 54, .52) 0%, rgba(6, 22, 54, .04) 42%, rgba(5, 20, 50, .68) 100%);
}
/* 窄屏文字几乎占满整宽，遮罩改为整体均匀压深 */
@media (max-width: 1024px) {
  .hero-veil {
    background: linear-gradient(176deg, rgba(6, 24, 60, .88) 0%, rgba(7, 30, 70, .78) 44%, rgba(5, 20, 50, .90) 100%);
  }
}
/* 科技感网格 */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2; opacity: .40; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 78%);
}
.hero-in {
  position: relative; z-index: 3;
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 9vh, 104px) clamp(16px, 4vw, 32px) clamp(30px, 4vh, 52px);
}
.hero-text { max-width: min(830px, 100%); }

.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; letter-spacing: .14em; color: #A9C8E4;
  border: 1px solid rgba(159, 216, 238, .42); border-radius: 999px;
  padding: 6px 15px; margin-bottom: 22px;
}
.hero-tag b { width: 7px; height: 7px; border-radius: 50%; background: #3FE2B0; box-shadow: 0 0 0 3px rgba(63, 226, 176, .24); }

.hero h1 {
  color: #fff; font-size: clamp(28px, 4.4vw, 50px); line-height: 1.22;
  letter-spacing: -1px; margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: #8FBCFF; }

.hero-sub {
  font-size: clamp(15px, 1.7vw, 19px); color: #CFDCE8; line-height: 1.85;
  margin-bottom: 22px; letter-spacing: .2px;
}
.hero-sub span { display: inline-block; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 30px;
}
.hero-trust span {
  font-size: 13px; color: #E4EBF3; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  padding: 6px 14px; backdrop-filter: blur(4px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 13.5px; color: #B6CCDE; margin-top: 14px; }

/* 首屏底部：轮播说明 + 切换点 */
.hero-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-top: clamp(24px, 4vh, 44px);
}
.hero-cap { display: inline-flex; align-items: baseline; gap: 10px; }
.hero-cap .hc-no {
  font-family: var(--font-num); font-size: 19px; font-weight: 700;
  color: #8FBCFF; line-height: 1;
}
.hero-cap .hc-total {
  font-style: normal; font-family: var(--font-num); font-size: 12px;
  color: #A9C8E4; margin-left: -6px;
}
.hero-cap .hc-tag {
  font-size: 12.8px; letter-spacing: .06em; color: #CFDCE8;
  padding-left: 11px; border-left: 1px solid rgba(255, 255, 255, .3);
  transition: opacity .3s ease;
}
.hero-cap .hc-tag.is-fade { opacity: 0; }

.hero-dots { display: flex; align-items: center; gap: 8px; }
.hero-dot {
  width: 26px; height: 3px; padding: 0; border: 0; border-radius: 99px;
  background: rgba(255, 255, 255, .3);
  transition: width .3s ease, background .3s ease;
}
.hero-dot.is-on { width: 46px; background: var(--accent); }
.hero-dot:hover { background: rgba(255, 255, 255, .62); }
.hero-dot.is-on:hover { background: var(--accent-2); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide img { transition: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* 首屏底部数据条 */
.hero-strip {
  position: relative; z-index: 4;
  background: rgba(4, 16, 40, .42);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-strip-in {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 20px 0;
}
.hs-item { text-align: center; }
.hs-item b {
  display: block; font-family: var(--font-num); font-size: clamp(22px, 2.6vw, 32px);
  color: #fff; line-height: 1.2; font-weight: 700;
}
.hs-item b i { font-style: normal; font-size: .55em; color: #A9C8E4; margin-left: 3px; }
.hs-item span { font-size: 12.5px; color: #B6CCDE; }

/* ---------------- 8. 通用区块 ---------------- */
.sec { padding: clamp(46px, 6.4vw, 92px) 0; }
.sec-alt { background: var(--bg-2); }
.sec-white { background: #fff; }

.sec-head { max-width: 780px; margin-bottom: clamp(26px, 3.4vw, 46px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 {
  font-size: clamp(22px, 3vw, 34px); letter-spacing: -.6px; line-height: 1.3;
  margin-bottom: 12px; position: relative; padding-bottom: 16px;
}
.sec-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 3px;
}
.sec-head.center h2::after { left: 50%; transform: translateX(-50%); }
.sec-head p { font-size: clamp(14.5px, 1.5vw, 16.5px); color: var(--ink-3); line-height: 1.85; }

/* ---------------- 9. 客户信任墙 ---------------- */
.sec-partners { padding: clamp(30px, 4vw, 52px) 0; background: #fff; border-bottom: 1px solid var(--line-2); }
.partners-title { text-align: center; font-size: 13.5px; color: var(--ink-3); letter-spacing: .12em; margin-bottom: 22px; }
.partners {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.partner {
  display: flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 10px 8px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line-2);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.partner:hover { border-color: var(--brand-100); transform: translateY(-2px); box-shadow: var(--shadow); }
.partner img { max-height: 38px; width: auto; object-fit: contain; }
.partner-txt {
  font-size: 13.5px; color: var(--ink-2); font-weight: 600; text-align: center;
  letter-spacing: -.2px; line-height: 1.4;
}
/* 带LOGO的客户卡：图标在上、名称在下 */
.partner-logo {
  display: grid; justify-items: center; align-content: center; gap: 7px;
  padding: 13px 8px;
}
.partner-logo img { max-height: 42px; max-width: 82%; }
.partner-logo span {
  font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.4;
}
.partners-note { text-align: center; font-size: 12px; color: var(--ink-4); margin-top: 16px; }

/* ---------------- 10. 业务线卡片 ---------------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cap-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 20px; box-shadow: var(--shadow); color: inherit;
  transition: transform .2s ease, box-shadow .24s ease, border-color .2s ease;
  overflow: hidden;
}
.cap-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); color: inherit; }
.cap-card:hover::before { transform: scaleX(1); }
.cap-no {
  font-family: var(--font-num); font-size: 13px; font-weight: 700; color: var(--brand);
  background: var(--brand-50); border-radius: 6px; padding: 2px 9px;
  align-self: flex-start; margin-bottom: 14px; letter-spacing: .06em;
}
.cap-card h3 { font-size: 18.5px; margin-bottom: 8px; letter-spacing: -.2px; }
.cap-card p { font-size: 14px; color: var(--ink-3); line-height: 1.75; margin-bottom: 14px; flex: 1 1 auto; }
.cap-meta { font-size: 12.5px; color: var(--ink-4); margin-bottom: 12px; }
.cap-more {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 600; color: var(--brand);
}
.cap-card:hover .cap-more { color: var(--accent); }
.cap-card:hover .cap-more svg { transform: translateX(3px); }
.cap-more svg { transition: transform .2s ease; }

/* ---------------- 11. 数据与车间 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow); text-align: left;
}
.stat b {
  display: block; font-family: var(--font-num); font-size: clamp(28px, 3.4vw, 40px);
  color: var(--brand); line-height: 1.1; font-weight: 700; letter-spacing: -1px;
}
.stat b i { font-style: normal; font-size: .45em; color: var(--accent); margin-left: 4px; letter-spacing: 0; }
.stat span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }

.ws-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.ws-row { display: grid; grid-template-columns: 130px 1fr 90px; align-items: center; gap: 16px; padding: 9px 0; }
.ws-name { font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.ws-bar { height: 9px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.ws-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.ws-val { font-family: var(--font-num); font-size: 14.5px; color: var(--brand); font-weight: 700; text-align: right; }
.ws-total { font-size: 14px; color: var(--ink-3); margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); }
.ws-total b { color: var(--brand); font-family: var(--font-num); font-size: 17px; }

/* ---------------- 12. 优势 ---------------- */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.adv-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .24s ease;
}
.adv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.adv-no {
  display: inline-block; font-family: var(--font-num); font-size: 26px; font-weight: 700;
  color: var(--brand-100); line-height: 1; margin-bottom: 12px; letter-spacing: -.5px;
}
.adv-card h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: -.2px; }
.adv-card p { font-size: 14.3px; color: var(--ink-3); line-height: 1.85; margin: 0; }

/* ---------------- 13. 行业 ---------------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.ind-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; transition: transform .5s ease; }
.ind-card:hover img { transform: scale(1.05); }
.ind-card span {
  display: block; padding: 14px 18px; font-size: 15.5px; font-weight: 600; color: var(--ink);
  background: #fff; border-top: 1px solid var(--line-2);
}

/* ---------------- 14. 产品 / 案例卡片 ---------------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prod-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); color: inherit;
  transition: transform .2s ease, box-shadow .24s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); color: inherit; }
/* 产品图统一按「完整显示」处理：产品图多是宽幅（约 2.4:1），
   用 cover 会被裁掉近一半，客户看不到零件全貌 —— 因此一律 contain + 白底。 */
.prod-thumb { position: relative; background: #fff; overflow: hidden; }
.prod-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; transition: transform .5s ease; }
.prod-card:hover .prod-thumb img { transform: scale(1.05); }
.prod-badge {
  position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 600;
  background: rgba(20, 69, 158, .92); color: #fff; padding: 3px 10px; border-radius: 6px;
  backdrop-filter: blur(4px);
}
.prod-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.prod-body h3 { font-size: 16.5px; margin-bottom: 8px; letter-spacing: -.2px; }
.prod-spec { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.prod-spec span {
  font-size: 12px; color: var(--ink-3); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 8px;
}
.prod-body p { font-size: 13.5px; color: var(--ink-3); line-height: 1.7; margin: 0; flex: 1 1 auto; }

/* ---------------- 15. 新闻 ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); color: inherit;
  transition: transform .2s ease, box-shadow .24s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.news-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-4); margin-bottom: 10px; }
.news-meta em { font-style: normal; color: var(--brand); background: var(--brand-50); border-radius: 5px; padding: 1px 8px; font-weight: 600; }
.news-body h3 { font-size: 16.5px; line-height: 1.55; margin-bottom: 10px; letter-spacing: -.2px; }
.news-body p { font-size: 13.6px; color: var(--ink-3); line-height: 1.75; margin: 0; flex: 1 1 auto; }

.news-list { display: grid; gap: 10px; }
.news-row {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 17px 22px; color: inherit; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.news-row:hover { border-color: var(--brand-100); transform: translateX(4px); box-shadow: var(--shadow); color: inherit; }
.news-row h3 { font-size: 15.8px; font-weight: 600; margin-bottom: 5px; line-height: 1.55; }
.news-row p { font-size: 13.3px; color: var(--ink-4); margin: 0; }
.news-row .nr-date { font-family: var(--font-num); font-size: 13.5px; color: var(--ink-4); white-space: nowrap; }
.nr-top { display: inline-block; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 6px; margin-right: 7px; vertical-align: 1px; }

/* ---------------- 16. 询价区 ---------------- */
.sec-inquiry {
  background:
    radial-gradient(760px 320px at 90% 0%, rgba(0, 166, 196, .16), transparent 60%),
    linear-gradient(150deg, #0A3559, #0F4C81 60%, #165DFF);
  color: #fff;
}
.sec-inquiry .sec-head { max-width: 720px; }
.sec-inquiry .sec-head h2 { color: #fff; }
.sec-inquiry .sec-head p { color: #C3D1DF; }
.inq-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.inq-left {
  background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-lg); color: var(--ink-2);
}
.inq-left h2 { font-size: clamp(21px, 2.6vw, 29px); margin-bottom: 10px; letter-spacing: -.4px; }
.inq-left > p { color: var(--ink-3); font-size: 15px; margin-bottom: 24px; }
.inq-left > p b { color: var(--brand); }

.inquiry-form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: grid; gap: 7px; }
.label { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.label i { color: var(--accent); font-style: normal; }
.input {
  width: 100%; padding: 12px 15px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder { color: var(--ink-4); }
.input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(36, 103, 211, .14); }
textarea.input { resize: vertical; min-height: 104px; line-height: 1.7; }
.input-file { padding: 9px 12px; font-size: 14px; color: var(--ink-3); }
.input-file::file-selector-button {
  font: inherit; font-size: 13.5px; padding: 6px 13px; margin-right: 11px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--ink-2); cursor: pointer;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form-tip { font-size: 13.5px; color: var(--ink-3); }
.form-tip b { color: var(--brand); font-family: var(--font-num); }

.inq-right { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-lg); padding: 26px 24px; }
.inq-right h3 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.inq-contact { display: grid; gap: 11px; margin-bottom: 20px; }
.inq-contact li { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding-bottom: 11px; border-bottom: 1px dashed rgba(255, 255, 255, .18); }
.inq-contact li:last-child { border-bottom: 0; padding-bottom: 0; }
.inq-contact span { color: #A9C8E4; flex: 0 0 auto; }
.inq-contact b { color: #fff; font-weight: 600; text-align: right; word-break: break-all; }
.inq-note { font-size: 13.8px; color: #C3D1DF; line-height: 1.8; margin-bottom: 16px; }
.inq-qr { width: 148px; margin: 0 auto 16px; border-radius: 10px; background: #fff; padding: 8px; }
.inq-right .btn-line { width: 100%; background: rgba(255, 255, 255, .94); border-color: transparent; }

.qr-ph {
  width: 148px; height: 148px; margin: 0 auto; border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .07);
  display: grid; place-items: center; text-align: center;
  font-size: 12px; color: #A9C8E4; line-height: 1.7; padding: 10px;
}
.qr-ph-lg { width: 158px; height: 158px; margin-bottom: 16px; }
.foot-qr .qr-ph {
  border-color: var(--line); background: var(--bg); color: var(--ink-4);
  width: 132px; height: 132px;
}

/* ---------------- 17. 面包屑 / 页头横幅 ---------------- */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.breadcrumb .container { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-height: 46px; color: var(--ink-4); }
.bc-sep { color: var(--ink-4); opacity: .6; }
.bc-cur { color: var(--ink-2); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand); }

.page-hero {
  background:
    radial-gradient(680px 260px at 88% 0%, rgba(0, 166, 196, .26), transparent 62%),
    linear-gradient(130deg, #0A3559, #0F4C81 55%, #165DFF);
  color: #fff; padding: clamp(34px, 5vw, 62px) 0;
}
.page-hero h1 { color: #fff; font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -.6px; margin-bottom: 10px; }
.page-hero p { color: #C3D1DF; font-size: clamp(14.5px, 1.6vw, 17px); max-width: 840px; margin: 0; line-height: 1.8; }

/* ---------------- 18. 文章正文 ---------------- */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 26px; align-items: start; }
.article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 44px); box-shadow: var(--shadow);
}
.article-head { padding-bottom: 20px; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; }
.article-head h1 { font-size: clamp(21px, 2.8vw, 30px); letter-spacing: -.4px; margin-bottom: 12px; line-height: 1.4; }
/* 子页面内容标题统一字号：企业介绍／设备清单与加工能力／加工说明与案例细节／能力说明 */
.article-head h2 { font-size: 22px; margin: 0; letter-spacing: -.3px; line-height: 1.4; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--ink-4); }
.article-meta em { font-style: normal; color: var(--brand); }
.article-body { font-size: 16px; line-height: 1.95; color: var(--ink-2); word-break: break-word; }
.article-body h2 { font-size: 20px; margin: 32px 0 14px; padding-left: 13px; border-left: 4px solid var(--accent); letter-spacing: -.2px; }
.article-body h3 { font-size: 17.5px; margin: 26px 0 12px; }
.article-body p { margin: 0 0 17px; }
.article-body img { border-radius: 10px; margin: 18px 0; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; list-style: revert; }
.article-body li { margin: 7px 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 16px 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--bg); font-weight: 600; }
.article-body blockquote { margin: 18px 0; padding: 14px 20px; background: var(--brand-50); border-left: 4px solid var(--brand-2); border-radius: 0 8px 8px 0; color: var(--ink-2); }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: 14px; }
.article-nav a { color: var(--ink-3); }
.article-nav a:hover { color: var(--brand); }

/* 侧栏 */
.side { display: grid; gap: 16px; position: sticky; top: calc(var(--head-h) + 16px); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 16px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.side-list { display: grid; gap: 2px; }
.side-list a { display: block; padding: 9px 0; font-size: 14.3px; color: var(--ink-2); border-bottom: 1px dashed var(--line-2); }
.side-list a:last-child { border-bottom: 0; }
.side-list a:hover { color: var(--brand); padding-left: 5px; }
.side-cta { background: linear-gradient(150deg, #0A3559, #0F4C81); color: #fff; border: 0; }
.side-cta h3 { color: #fff; border-bottom-color: rgba(255, 255, 255, .2); }
.side-cta p { font-size: 14px; color: #C3D1DF; margin-bottom: 16px; }
.side-cta .btn { width: 100%; }
.side-tel { display: block; text-align: center; font-family: var(--font-num); font-size: 20px; color: #8FBCFF; font-weight: 700; margin-top: 12px; letter-spacing: .5px; }

/* ---------------- 19. 筛选与分页 ---------------- */
.filter {
  display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.filter a {
  font-size: 14px; padding: 8px 17px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: all .18s ease;
}
.filter a:hover { border-color: var(--brand-2); color: var(--brand); }
.filter a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.pager { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 40px; }
.pg {
  min-width: 40px; height: 40px; padding: 0 13px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  color: var(--ink-2); font-family: var(--font-num);
}
.pg:hover { border-color: var(--brand-2); color: var(--brand); }
.pg-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pg-on:hover { color: #fff; }
.pg-dot { display: inline-flex; align-items: center; padding: 0 5px; color: var(--ink-4); }

.empty {
  text-align: center; padding: 66px 20px; background: #fff;
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-4);
}
.empty b { display: block; color: var(--ink-2); font-size: 16px; margin-bottom: 8px; }

/* ---------------- 20. 提示条 ---------------- */
.alert { padding: 13px 18px; border-radius: 10px; font-size: 14.5px; margin-bottom: 18px; border: 1px solid; }
.alert-success { background: #F1FBF6; border-color: #BEE5D1; color: #137048; }
.alert-error { background: #FFF3F3; border-color: #F5C9C9; color: #B03030; }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }

/* ---------------- 21. 页脚 ---------------- */
.site-foot { background: #0A3559; color: #B9C6D4; margin-top: 0; padding-bottom: 0; }
.foot-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 32px 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.foot-cta b { display: block; color: #fff; font-size: clamp(17px, 2vw, 22px); margin-bottom: 6px; letter-spacing: -.3px; }
.foot-cta span { font-size: 14px; color: #B9C6D4; }

.foot-main {
  display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr 1fr; gap: 30px;
  padding: 44px 0 36px;
}
.foot-logo { color: #fff; font-size: 19px; font-weight: 700; margin-bottom: 14px; letter-spacing: -.2px; }
.foot-desc { font-size: 13.3px; line-height: 1.85; color: #A8B4C2; margin-bottom: 18px; }
.foot-contact { display: grid; gap: 8px; margin: 0; }
.foot-contact > div { display: flex; gap: 10px; font-size: 13.5px; }
.foot-contact dt { color: #9AA7B6; flex: 0 0 48px; margin: 0; }
.foot-contact dd { margin: 0; color: #C6D0DC; word-break: break-all; }
.foot-contact dd a { color: #C6D0DC; }
.foot-contact dd a:hover { color: var(--accent-2); }

.foot-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.foot-col ul { display: grid; gap: 9px; }
.foot-col ul a { font-size: 13.8px; color: #B9C6D4; }
.foot-col ul a:hover { color: #fff; padding-left: 4px; }
/* 写死高度：图片没加载完也占好位置，避免整页内容往下塌、锚点偏位 */
.foot-qr img { width: 132px; height: 132px; object-fit: contain; border-radius: 9px; background: #fff; padding: 6px; }
.qr-tip { font-size: 13px; color: #B9C6D4; margin-top: 10px; }
.qr-tip b { color: #8FBCFF; font-family: var(--font-num); }

.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px;
  text-align: center;
}
.foot-bottom p { margin: 0; }
.foot-bottom a { color: #B9C6D4; }
.foot-bottom a:hover { color: #fff; }

/* ---------------- 22. 移动端底栏 / 回到顶部 ---------------- */
.mobile-bar { display: none; }

.to-top {
  position: fixed; right: 20px; bottom: 26px; z-index: 70;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--brand); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.to-top:hover { background: var(--brand); color: #fff; }

/* 侧边悬浮联系（宽屏） */
.side-fab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 65;
  display: grid; background: #fff; border: 1px solid var(--line);
  border-radius: 12px 0 0 12px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.side-fab a {
  width: 58px; padding: 13px 0; display: grid; place-items: center; gap: 4px;
  font-size: 11.5px; color: var(--ink-2); border-bottom: 1px solid var(--line-2);
  text-align: center; line-height: 1.3;
}
.side-fab a:last-child { border-bottom: 0; }
.side-fab a:hover { background: var(--brand-50); color: var(--brand); }
.side-fab a svg { color: var(--brand); }

/* ---------------- 23. 响应式 ---------------- */
@media (max-width: 1180px) {
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-main { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .foot-qr { grid-column: 1 / -1; }
  .foot-qr img, .foot-qr .qr-ph { width: 118px; height: 118px; }
  .article-wrap { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .head-cta { display: none; }
  .main-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px -26px rgba(15, 40, 66, .5);
    padding: 10px clamp(16px, 4vw, 32px) 20px; margin: 0;
  }
  .nav-a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav-a::after { display: none; }
  .main-nav.is-open .nav-a:last-of-type { border-bottom: 0; }
  .inq-wrap { grid-template-columns: 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
  .side { position: static; }
  .sec-stats .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(4, 1fr); }
  .side-fab { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .sec { padding: 42px 0; }
  .topbar-note { display: none; }
  .topbar-in { justify-content: center; min-height: 36px; }
  .brand-txt i { display: none; }
  .hero { min-height: clamp(500px, 82vh, 640px); }
  .hero-in { padding: 46px clamp(16px, 4vw, 32px) 20px; }
  .hero-foot { margin-top: 20px; }
  .hero-cap .hc-tag { font-size: 12px; }
  .hero-trust span { font-size: 12.3px; padding: 5px 11px; }
  .hero-strip-in { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 16px 0; }
  .cap-grid, .prod-grid, .prod-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .partner { min-height: 52px; }
  .partner-txt { font-size: 12px; }
  .ws-row { grid-template-columns: 96px 1fr 72px; gap: 10px; }
  .ws-name { font-size: 13.3px; }
  .ws-val { font-size: 13px; }
  .ws-list { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .inq-left { padding: 22px 18px; }
  .inq-right { padding: 22px 18px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .form-tip { text-align: center; }
  .news-row { grid-template-columns: 1fr; gap: 8px; padding: 15px 18px; }
  .article-nav { flex-direction: column; gap: 12px; }
  .foot-main { grid-template-columns: 1fr 1fr; gap: 26px; padding: 32px 0 28px; }
  .foot-brand, .foot-qr { grid-column: 1 / -1; }
  .foot-cta { padding: 24px 0; }
  .foot-cta .btn { width: 100%; }
  .foot-bottom { flex-direction: column; align-items: center; padding: 18px 0 20px; text-align: center; }
  .to-top { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); right: 14px; }
  .demo-bar { font-size: 12.5px; }

  /* 移动端固定底栏 */
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 22px -16px rgba(15, 40, 66, .55);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mb-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 62px; padding: 9px 4px; font-size: 12.3px; color: var(--ink-2); border-right: 1px solid var(--line-2);
  }
  .mb-item:last-child { border-right: 0; }
  .mb-item svg { color: var(--brand); }
  .mb-cta { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; }
  .mb-cta svg { color: #fff; }
  .mb-item:active { background: var(--brand-50); }
  .mb-cta:active { background: var(--accent); }
  /* 底部留白必须 ≥ 底栏总高（62px + iPhone 底部安全区），否则滚到底时页脚最后一行会被压住 */
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px) + 12px); }
  .site-foot { margin-bottom: 0; }
}

@media (max-width: 420px) {
  .cap-grid, .prod-grid, .prod-grid.cols-3 { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr; }
  .foot-main { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ---------------- 24. 动效（尊重系统设置） ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

@media print {
  .site-head, .topbar, .mobile-bar, .to-top, .side-fab, .demo-bar { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   25. 页面级组件（加工能力 / 产品详情 / 联系我们 / 证书）
   ========================================================================== */

/* ---------- 25.1 两列布局 ---------- */
.grid-2col { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: start; }

/* ---------- 25.2 证书 ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cert-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); text-align: center;
  transition: transform .2s ease, box-shadow .24s ease;
}
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cert-card img { border-radius: 8px; margin-bottom: 12px; }
.cert-card b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 5px; }
.cert-card span { display: block; font-size: 12.3px; color: var(--ink-4); line-height: 1.6; }
.cert-ph {
  display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 12px;
  border: 1px dashed var(--line); border-radius: 8px; background: var(--bg);
  font-size: 12.5px; color: var(--ink-4); line-height: 1.7;
}
.cert-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.cert-side h3 { font-size: 20px; margin-bottom: 12px; letter-spacing: -.3px; }
.cert-side > p { font-size: 14.6px; color: var(--ink-3); line-height: 1.85; margin-bottom: 18px; }
.cert-points { display: grid; gap: 11px; margin-bottom: 22px; }
.cert-points li {
  position: relative; padding-left: 22px; font-size: 14.3px; color: var(--ink-2); line-height: 1.75;
}
.cert-points li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}

/* ---------- 25.3 加工能力明细 ---------- */
.cap-detail-list { display: grid; gap: 18px; }
.cap-detail {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.cd-left { padding: 28px 26px; border-right: 1px solid var(--line-2); }
.cd-left h3 { font-size: 21px; margin: 12px 0 10px; letter-spacing: -.3px; }
.cd-left p { font-size: 14.6px; color: var(--ink-3); line-height: 1.85; margin-bottom: 20px; }
.cd-right { padding: 20px 24px; background: var(--bg-2); display: grid; align-content: center; }
.cd-empty { font-size: 14px; color: var(--ink-4); margin: 0; }

/* ---------- 25.4 参数表 ---------- */
.param-table { width: 100%; border-collapse: collapse; font-size: 14.2px; }
.param-table th, .param-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.param-table tr:last-child th, .param-table tr:last-child td { border-bottom: 0; }
.param-table th {
  width: 34%; min-width: 92px; color: var(--ink-3); font-weight: 500;
  background: rgba(255, 255, 255, .6); white-space: nowrap;
}
.param-table td { color: var(--ink); font-weight: 500; word-break: break-word; }
.param-table tr:hover td { color: var(--brand); }
.param-note { font-size: 12.5px; color: var(--ink-4); line-height: 1.75; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }

/* ---------- 25.5 搜索与结果提示 ---------- */
.search-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.search-bar .input { flex: 1 1 260px; min-width: 0; }
.result-tip { font-size: 13.8px; color: var(--ink-3); margin-bottom: 20px; }
.result-tip b { color: var(--brand); font-family: var(--font-num); font-size: 16px; }

/* ---------- 25.6 产品详情 ---------- */
.pd-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.pd-gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }

/* 主图：object-fit 用 contain 而不是 cover —— 产品图多为宽幅（约 2.4:1），
   cover 会横向裁掉近一半，客户看不到零件全貌。contain 保证「图面实际大小」完整呈现。 */
.pd-main-box { position: relative; }
.pd-main-link { display: block; position: relative; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.pd-main-link.is-plain { cursor: default; }
.pd-main {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain;
  background: #fff; transition: opacity .2s ease;
}
.pd-main.is-swap { opacity: .3; }
.pd-zoom-hint {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px; background: rgba(12, 18, 30, .55); color: #fff;
  font-size: 12px; line-height: 1.4; letter-spacing: .2px; pointer-events: none;
  backdrop-filter: blur(4px);
}
.pd-main-link:hover .pd-zoom-hint { background: rgba(12, 18, 30, .72); }

/* 列数由 PHP 按张数给出（--pd-cols），保证一行铺满；超过 6 张才换行。 */
.pd-thumbs { display: grid; grid-template-columns: repeat(var(--pd-cols, 4), minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.pd-thumb {
  padding: 0; margin: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 8px;
  overflow: hidden; cursor: pointer; font: inherit; line-height: 0; display: block; width: 100%;
  appearance: none; -webkit-appearance: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.pd-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.pd-thumb:hover { border-color: var(--brand-2); }
.pd-thumb.is-on { border-color: var(--brand-2); box-shadow: 0 0 0 2px var(--brand-100); }
.pd-thumb:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.pd-info h2 { font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 12px; letter-spacing: -.4px; }
.pd-sum { font-size: 15.2px; color: var(--ink-3); line-height: 1.85; margin-bottom: 20px; }
.pd-info .param-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.pd-cta { display: grid; gap: 11px; }
.pd-tip { font-size: 13px; color: var(--ink-4); line-height: 1.75; margin: 4px 0 0; text-align: center; }

/* 产品图放大预览。与证书墙的 .cert-lb 视觉同源，多了左右切换与张数计数。 */
.pd-lb {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  padding: 24px; background: rgba(12, 18, 30, .86);
  opacity: 0; transition: opacity .2s ease;
}
.pd-lb.is-on { opacity: 1; }
.pd-lb img {
  max-width: min(94vw, 1280px); max-height: 84vh; background: #fff;
  padding: 10px; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.pd-lb-close {
  position: absolute; top: 14px; right: 20px; width: 42px; height: 42px;
  font-size: 28px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .14);
  border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  transition: background .18s ease;
}
.pd-lb-close:hover { background: rgba(255, 255, 255, .3); }
.pd-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background .18s ease;
}
.pd-lb-nav:hover { background: rgba(255, 255, 255, .3); }
.pd-lb-prev { left: 18px; }
.pd-lb-next { right: 18px; }
.pd-lb-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  padding: 5px 15px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff;
  font-size: 13px; font-family: var(--font-num); letter-spacing: .5px;
}

/* ---------- 25.7 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.contact-card {
  display: grid; gap: 6px; padding: 24px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  color: inherit; transition: transform .2s ease, box-shadow .24s ease, border-color .2s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); color: inherit; }
.cc-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 6px; }
.contact-card b { font-size: 16px; color: var(--ink); word-break: break-all; line-height: 1.5; }
.contact-card > span:last-child { font-size: 13.3px; color: var(--ink-4); line-height: 1.65; }

.contact-split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.map-box, .qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.map-box h2, .qr-box h2 { font-size: 17.5px; margin-bottom: 14px; }
.map-frame { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--bg); }
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.map-actions .btn { flex: 1 1 46%; }
.map-tip { font-size: 13.3px; color: var(--ink-4); margin: 12px 0 0; }
.qr-box { text-align: center; }
.qr-box img { width: 178px; height: 178px; object-fit: contain; margin: 0 auto 14px; border-radius: 10px; border: 1px solid var(--line-2); padding: 7px; background: #fff; }
.qr-box > p { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.qr-box > p b { color: var(--brand); font-family: var(--font-num); font-size: 16px; }
.qr-note { font-size: 13px !important; color: var(--ink-4) !important; line-height: 1.75; text-align: left; }
.qr-ph-light { border-color: var(--line); background: var(--bg); color: var(--ink-4); width: 178px; height: 178px; margin-bottom: 14px; }

/* ---------- 25.8 其它 ---------- */
.ws-use { font-size: 12.8px; color: var(--ink-4); margin: -4px 0 10px 146px; line-height: 1.6; }
.article-cover { width: 100%; border-radius: 12px; margin-bottom: 22px; }

/* ---------- 25.9 新增组件的响应式 ---------- */
@media (max-width: 1024px) {
  .grid-2col { grid-template-columns: 1fr; }
  .cap-detail { grid-template-columns: 1fr; }
  .cd-left { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .pd-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-split { grid-template-columns: 1fr; }
  .cert-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ws-use { margin-left: 0; }
  .map-frame iframe { height: 300px; }
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .cert-grid, .cert-grid-4 { grid-template-columns: 1fr; }
  .contact-card { padding: 20px 18px; }
  .map-box, .qr-box { padding: 18px; }
  .map-frame iframe { height: 240px; }
  .cd-left, .cd-right { padding: 22px 18px; }
  .param-table th { width: 38%; white-space: normal; }
  /* 手机：缩略图排成一行横滑。网格多行会把竖屏占满，客户往下滚很累；
     一行 96px 的小图可以左右滑、手指点得准。 */
  .pd-thumbs {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  }
  .pd-thumb { flex: 0 0 96px; scroll-snap-align: start; }
  /* 手机：灯箱控件收小、图片尽量占满，留白给触摸操作 */
  .pd-lb { padding: 14px; }
  .pd-lb img { max-width: 94vw; max-height: 78vh; padding: 6px; }
  .pd-lb-nav { width: 42px; height: 42px; font-size: 20px; }
  .pd-lb-prev { left: 8px; }
  .pd-lb-next { right: 8px; }
  .pd-lb-close { top: 10px; right: 12px; width: 38px; height: 38px; font-size: 24px; }
  /* 手机底部有 62px 固定联系栏（+ iPhone 安全区），计数贴底会被压住，抬到它上面 */
  .pd-lb-count { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); font-size: 12.5px; }
  .pd-zoom-hint { font-size: 11.5px; padding: 4px 9px; }
  .pd-zoom-hint svg { width: 12px; height: 12px; }
  .search-bar .btn { flex: 1 1 auto; }
  .cap-detail .btn { width: 100%; }
}


/* ==========================================================================
   25.10 资质证书横向滚动（首页「工厂实景与资质」）
   两份相同内容首尾相接 + 各自平移自身宽度 = 无缝循环；鼠标移上去暂停
   ========================================================================== */
.cert-scroll { position: relative; width: 100%; }
.cert-half { display: flex; gap: 16px; padding-right: 16px; }

.cert-scroll.is-scroll {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.cert-scroll.is-scroll .cert-half {
  flex: 0 0 auto;
  animation: cert-marquee var(--cert-dur, 40s) linear infinite;
}
.cert-scroll.is-scroll:hover .cert-half,
.cert-scroll.is-scroll:focus-within .cert-half { animation-play-state: paused; }

@keyframes cert-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* 滚动态：每张固定宽度，图统一 4:3 留白，横版竖版证书都能看全 */
.cert-scroll.is-scroll .cert-card { flex: 0 0 172px; width: 172px; }
.cert-scroll.is-scroll .cert-card img,
.cert-scroll.is-scroll .cert-card .cert-ph { width: 100%; aspect-ratio: 4 / 3; }

/* 平铺态（后台关掉滚动 / JS 判定不该滚时去掉 is-scroll） */
.cert-scroll:not(.is-scroll) .cert-half {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  padding-right: 0;
}

/* 首页：滚动墙下面紧跟「验厂邀请」卡片 */
.cert-wall + .cert-side { margin-top: 26px; }

/* 统一图片比例，避免证书图高矮不齐 */
.cert-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.cert-scroll.is-scroll .cert-card img { object-fit: contain; }

/* 证书放大层 */
.cert-lb {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  padding: 24px; background: rgba(12, 18, 30, .78); cursor: zoom-out;
  opacity: 0; transition: opacity .18s ease;
}
.cert-lb.is-on { opacity: 1; }
.cert-lb img {
  max-width: min(92vw, 900px); max-height: 86vh; background: #fff;
  padding: 10px; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.cert-lb-close {
  position: absolute; top: 16px; right: 22px; font-size: 30px; line-height: 1;
  color: #fff; background: none; border: 0; cursor: pointer;
}

@media (max-width: 760px) {
  .cert-scroll.is-scroll .cert-card { flex: 0 0 148px; width: 148px; }
  .cert-scroll:not(.is-scroll) .cert-half { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  /* 手机上没有 hover：走马灯停不下来、手指也滑不动（容器是 overflow:hidden），
     客户想看清某张证书非常别扭。改成原生横滑 + 对齐吸附。 */
  .cert-scroll.is-scroll {
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .cert-scroll.is-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .cert-scroll.is-scroll .cert-half { animation: none; transform: none; padding-right: 0; }
  /* 走马灯为了无缝才渲染两份，横滑模式下第二份是重复内容，去掉 */
  .cert-scroll.is-scroll .cert-half + .cert-half { display: none; }
  .cert-scroll.is-scroll .cert-card { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .cert-scroll.is-scroll .cert-half { animation: none; }
}

/* ==========================================================================
   25.11 首页宣传视频位（「工厂实景与资质」右侧，与验厂卡片并排）
   ========================================================================== */
.cert-media-row { align-items: stretch; margin-top: 34px; }   /* 证书滚动墙与下方验厂卡/视频卡拉开间距 */
.video-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
}
.video-card h3 { font-size: 20px; margin-bottom: 12px; letter-spacing: -.3px; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: #0C1424; border: 1px solid var(--line-2);
}
.video-frame video,
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-ph {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 8px;
  text-align: center; padding: 16px;
}
.video-ph b { color: rgba(255, 255, 255, .82); font-size: 14.5px; }
.video-ph span { color: rgba(255, 255, 255, .5); font-size: 12px; }
.video-desc { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); line-height: 1.7; }
/* 视频加载失败（外链过期 / 被墙 / 编码不支持）时隐藏播放器，改显示提示，避免留一个死黑框 */
.video-frame.is-fail video,
.video-frame.is-fail iframe { display: none; }
.video-frame.is-fail { background: linear-gradient(135deg, #16273D 0%, #0C1424 60%, #123A5E 130%); }

/* ==========================================================================
   26. 内容保护（前台）
   --------------------------------------------------------------------------
   目的：防止访客直接复制文字、右键另存图片、拖拽图片到桌面、Ctrl+S 保存网页。
   说明：这是「提高门槛」而不是「绝对防住」——访客仍能看到内容，
        也仍能通过截图、拍照等方式留存，真正的防盗要靠水印与法律手段。
        表单输入框保留正常选择与复制，避免用户填手机号时无法粘贴。
   注意：只作用于前台样式表，后台管理页不受影响（后台未引入本文件）。
   ========================================================================== */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;          /* iOS 长按图片不弹出「存储图像」 */
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img, picture, video, canvas, svg {
  -webkit-user-drag: none;              /* 禁止把图片拖到桌面保存 */
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}
/* 说明：这里不用 img{pointer-events:none}——那样会挡住证书墙点击放大等图片交互。
   图片右键「另存为」由 main.js 的 contextmenu 拦截统一处理。 */

/* 禁止打印：打印预览会直接输出整页内容 */
@media print {
  body * { display: none !important; }
  body::after {
    content: "本页内容受版权保护，暂不支持打印。";
    display: block;
    position: fixed;
    inset: 0;
    padding-top: 42vh;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
  }
}
