:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --blue: #1D4ED8;
  --blue-l: #3B82F6;
  --orange: #EA580C;
  --ink: #1F2937;
  --ink-2: #4B5563;
  --ink-3: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-2: #F8FAFC;
  --bg-3: #F1F5F9;
  --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部 ---------- */
.topbar {
  background: var(--navy);
  color: #CBD5E1;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #CBD5E1; }
.topbar a:hover { color: #fff; }

header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { display: block; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-l));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -0.5px;
}
.logo-txt b { display: block; font-size: 16px; color: var(--navy); line-height: 1.25; }
.logo-txt span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: 0.5px; }

nav { display: flex; gap: 2px; }
nav a {
  padding: 8px 13px; border-radius: 6px; font-size: 14px; color: var(--ink-2);
  transition: all .18s;
}
nav a:hover { color: var(--blue); background: var(--bg-3); }
nav a.on { color: var(--blue); font-weight: 600; background: #EFF6FF; }

.hd-tel {
  display: flex; align-items: center; gap: 8px;
  color: var(--navy); font-weight: 600; font-size: 15px; flex-shrink: 0;
}
.hd-tel svg { color: var(--orange); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1E40AF 100%);
  color: #fff; padding: 72px 0 60px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -80px;
  width: 460px; height: 460px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.05);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: 34px; line-height: 1.35; font-weight: 700; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: #FDBA74; }
.hero p { font-size: 16px; color: #CBD5E1; max-width: 720px; margin-bottom: 26px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hero-tags span {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: 5px 13px; border-radius: 20px; font-size: 13px;
}

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 26px; border-radius: 8px; font-size: 15px; font-weight: 600;
  transition: all .2s; cursor: pointer; border: 0;
}
.btn-1 { background: var(--orange); color: #fff; }
.btn-1:hover { background: #C2410C; transform: translateY(-1px); }
.btn-2 { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-2:hover { background: rgba(255,255,255,.22); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 数据条 ---------- */
.stats { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 10px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 28px; color: var(--navy); font-weight: 700; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--ink-3); }

/* ---------- 通用区块 ---------- */
.sec { padding: 60px 0; }
.sec-alt { background: var(--bg-2); }
.sec-hd { text-align: center; margin-bottom: 38px; }
.sec-hd h2 { font-size: 26px; color: var(--navy); font-weight: 700; margin-bottom: 10px; }
.sec-hd p { color: var(--ink-3); font-size: 14px; max-width: 640px; margin: 0 auto; }
.sec-hd .bar { width: 46px; height: 3px; background: var(--orange); margin: 0 auto 14px; border-radius: 2px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 22px; transition: all .22s;
}
.card:hover {
  border-color: var(--blue-l);
  box-shadow: 0 8px 24px rgba(29,78,216,.1);
  transform: translateY(-2px);
}
.card h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; font-weight: 600; }
.card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

.ico {
  width: 44px; height: 44px; border-radius: 9px;
  background: #EFF6FF; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--blue);
}

/* ---------- 产品条目 ---------- */
.prod {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px;
  transition: all .22s;
}
.prod:hover { border-color: var(--blue-l); box-shadow: 0 6px 18px rgba(29,78,216,.09); }
.prod-img {
  width: 84px; height: 68px; border-radius: 7px; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
}
.prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-txt h3 { font-size: 15.5px; color: var(--navy); margin-bottom: 5px; font-weight: 600; }
.prod-txt p { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.prod-txt .more { font-size: 13px; color: var(--blue); font-weight: 500; }
.prod-txt .more:hover { text-decoration: underline; }

/* ---------- 文章列表 ---------- */
.post {
  display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.post:last-child { border-bottom: 0; }

/* ---------- 文章列表容器 ---------- */
.posts-list {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 26px;
}
.post-img {
  width: 130px; height: 84px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  color: transparent;             /* 隐藏原"技术图解"占位文字 */
  font-size: 12px;                /* 保留以便覆盖兼容 */
}
/* 用齿轮 SVG icon 替代文字占位——视觉中心从文字转向图标，更精致 */
.post-img::before {
  content: '';
  width: 46px; height: 46px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/></svg>") center / contain no-repeat;
  opacity: 0.72;
  position: relative;
  z-index: 1;
}
.post-txt h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; font-weight: 600; }
.post-txt h3 a:hover { color: var(--blue); }
.post-txt p {
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 14px; }

/* ---------- 分页导航 ---------- */
.pager {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px; margin: 30px 0 6px;
}
.pager .pg {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--navy); font-size: 14px; text-decoration: none;
  transition: all .15s ease;
}
.pager .pg:hover { border-color: var(--blue); color: var(--blue); }
.pager .pg.current { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.pager .pg.disabled { color: #c0c4cc; cursor: not-allowed; background: #f7f8fa; }
.pager .pg.gap { border: 0; background: none; min-width: 22px; padding: 0; color: var(--ink-3); }
.pager .pg-nav { font-weight: 600; }
@media (max-width: 560px) {
  /* 移动端分页（v2，2026-09-04 老板真机复测反馈）：
     ①「上一页/下一页」3 字在 32px 宽按钮内被压成两行 + 中间页 9-10 个元素总宽超 viewport，被横滚遮挡。
        → 改 HTML（render_pager）用 SVG chevron icon，宽度从 48px 缩到 32px；
        → 同时缩小数字按钮 + 缩 gap，让中间页 pager 总宽 <350px，永远不溢出（取消 overflow-x）。
     ② CTA navy 渐变阴影贴着 pager 边缘，视觉上像 pager 的下划线。
        → 加 padding-bottom: 20px 拉开间距。
     ③ 【双保险】仍保留 position:static / flex-direction:row 防御，防止 nav 选择器副作用复发。 */
  .pager {
    flex-wrap: nowrap;            /* 关键：禁止换行 */
    justify-content: center;      /* 装得下时居中 */
    align-items: center;
    position: static;             /* 防御：禁止 absolute/fixed 把它浮出文档流 */
    left: auto; right: auto; top: auto;
    flex-direction: row;           /* 防御：禁止 column 反向 */
    gap: 4px;
    margin: 32px 0 20px;          /* padding-bottom 加大与 CTA 间距 */
    padding: 0 4px;               /* 极窄屏留点边距防贴边 */
    /* 注：取消 overflow-x:auto + scrollbar 相关规则（不再需要横滚，总宽已 ≤350px） */
  }
  .pager .pg { min-width: 28px; height: 32px; font-size: 13px; padding: 0 6px; }
  .pager .pg-nav { min-width: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  .pager .pg-nav svg { display: block; }
  .pager .pg.gap { min-width: 14px; padding: 0; font-size: 12px; }
  /* 移动端文章列表：去掉左侧大图占位（v3，2026-09-04 老板反馈：齿轮大蓝块在 390px 屏上占大半屏，视觉失衡）
     【PC 不受影响】只动 560px 以下，>560px 的 .post 仍 row flex + .post-img 仍 130×84。 */
  .post { flex-direction: column; gap: 0; padding: 12px 0; align-items: stretch; }
  .post-img { display: none; }              /* 隐藏大蓝块；同步隐藏 .post-img::before 齿轮 SVG */
  .post-txt h3 { font-size: 15px; margin-bottom: 4px; }
  .post-txt p { font-size: 13px; margin-bottom: 7px; }
  .posts-list { padding: 4px 18px; }        /* 容器左右收紧，留更多阅读宽度 */
}

/* ---------- 优势 ---------- */
.adv {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  text-align: center;
  overflow: hidden;
}
.adv-body { padding: 24px 22px 28px; position: relative; z-index: 2; background: #fff; }
.adv b { display: block; font-size: 15px; color: var(--navy); margin-bottom: 7px; font-weight: 600; }
.adv p { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }

/* 兼容旧版裸结构（无 .adv-body 子层）—— 用于统计数字卡 */
.adv:not(:has(.adv-body)):not(:has(.adv-img)) {
  padding: 24px;
  text-align: center;
}

/* 图片：默认就显示（图片内容往下偏移，避免压住标题）*/
.adv-img {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: var(--navy);
}
.adv-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.tbl th { background: var(--bg-3); color: var(--navy); font-weight: 600; }
.tbl td { color: var(--ink-2); }
.tbl tr:hover td { background: #F8FAFC; }

/* ---------- 面包屑 ---------- */
.crumb { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13px; color: var(--ink-3); }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--blue); }
.crumb span { margin: 0 7px; color: #CBD5E1; }

/* ---------- 文章正文 ---------- */
.article { max-width: 820px; margin: 0 auto; padding: 44px 20px; }
.article h1 { font-size: 27px; color: var(--navy); line-height: 1.45; margin-bottom: 14px; font-weight: 700; }
.article .meta { font-size: 13px; color: var(--ink-3); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article h2 {
  font-size: 20px; color: var(--navy); margin: 34px 0 14px; font-weight: 600;
  padding-left: 12px; border-left: 3px solid var(--blue);
}
.article h3 { font-size: 16.5px; color: var(--navy); margin: 24px 0 10px; font-weight: 600; }
.article p { margin-bottom: 15px; color: var(--ink-2); line-height: 1.85; }
.article ul { margin: 0 0 18px 0; }
.article ul li {
  position: relative; padding-left: 20px; margin-bottom: 9px;
  color: var(--ink-2); line-height: 1.8;
}
.article ul li::before {
  content: ''; position: absolute; left: 4px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue);
}
.article .box {
  background: #EFF6FF; border-left: 3px solid var(--blue);
  padding: 16px 18px; border-radius: 0 8px 8px 0; margin: 22px 0;
}
.article .box b { color: var(--navy); }
.article .box p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--navy), #1E40AF);
  color: #fff; padding: 52px 0; text-align: center;
}
.cta h2 { font-size: 25px; margin-bottom: 10px; font-weight: 700; }
.cta p { color: #CBD5E1; margin-bottom: 24px; font-size: 15px; }

/* ---------- 页脚 ---------- */
footer { background: var(--navy); color: #94A3B8; padding: 46px 0 22px; font-size: 13.5px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; margin-bottom: 30px; }
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 600; }
.foot ul li { margin-bottom: 8px; }
.foot ul li a:hover { color: #fff; }
.foot .about p { line-height: 1.85; margin-bottom: 12px; }
.foot-links { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin-bottom: 20px; line-height: 2.1; font-size: 13px; }
.foot-links .fl-tit { color: #cbd5e1; font-weight: 600; margin-right: 4px; }
.foot-links a { color: #94A3B8; margin-right: 20px; white-space: nowrap; transition: color .15s; }
.foot-links a:hover { color: #fff; }
.foot-bot {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px;
}
.foot-bot a:hover { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* 【精准化】之前用 nav 选择器会同时命中 <nav id="nav"> 和 <nav class="pager">，
     导致移动端分页被 position:absolute + flex-direction:column 误伤，渲染成"页码竖排+浮在 header 下方"。
     现在改用 #nav 只命中汉堡菜单。.pager 块同步加 position:static + flex-direction:row 双保险。 */
  #nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px;
    border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  #nav.show { display: flex; }
  #nav a { padding: 11px 14px; }
  .burger { display: block; }
  .hd-tel { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 14.5px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .g3, .g4, .g2 { grid-template-columns: 1fr; }
  .sec { padding: 42px 0; }
  .sec-hd h2 { font-size: 22px; }
  .post { flex-direction: column; }
  .post-img { width: 100%; height: 150px; }
  .article { padding: 28px 20px; }
  .article h1 { font-size: 22px; }
  .foot { grid-template-columns: 1fr; gap: 24px; }
  .prod { flex-direction: column; }
  .prod-img { width: 100%; height: 140px; }
}

/* ---------- 工厂实景 ---------- */
.factory-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  height: clamp(420px, 52vw, 600px);
  align-items: stretch;
}
.factory-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #0f2742;
  text-decoration: none;
  min-height: 0;
}
.factory-col-right {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
  min-height: 0;
}
.factory-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.factory-item .ft-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(15,39,66,.92) 100%);
  color: #fff;
  pointer-events: none;
}
.factory-item .ft-cap strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: .5px;
}
.factory-item .ft-cap em {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: rgba(255,255,255,.78);
}
@media (max-width: 760px) {
  .factory-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .factory-item.ft-big {
    aspect-ratio: 3 / 2;
  }
  .factory-col-right {
    grid-template-rows: none;
    grid-auto-rows: 200px;
  }
}
