/* ============================================================
   fix-v12.css — 老模板遗留固定宽度 / 排版的统一覆盖层
   最后加载，优先级最高；只处理"老模板固定宽度导致溢出/错位"的问题。
   ============================================================ */

@media screen and (min-width: 1024px) {

  /* 1. 正文容器：about.css 里 .abouttext 1122px / .conttitle 1100px */
  .abouttext {
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .abouttext .conttitle,
  .js1 .conttitle {
    width: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* 2. 列表分页：.nextpage 原为 width:1090px 固定宽 */
  .nextpage {
    width: 100% !important;
    height: auto !important;
    padding: 44px 0 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    clear: both;
  }
  .nextpage a,
  .nextpage span {
    float: none !important;
    width: auto !important;
    min-width: 36px;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500;
    text-align: center;
    transition: all .2s ease;
  }
  .nextpage a { background: #EEF3F9 !important; color: #37536E !important; }
  .nextpage a:hover { background: #0A3D7A !important; color: #fff !important; }
  .nextpage a.current,
  .nextpage span { background: #0A3D7A !important; color: #fff !important; font-weight: 600; }
  .nextpage strong { color: #0A3D7A !important; }

  /* 3. 栏目/详情页标题条：面包屑过长用省略号，不要被右边缘硬切 */
  .rttitle em {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 124px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 4. 证书/资质卡片：li 固定 272px + 图片内联 height:194px，4 列会右溢 */
  .xgyw > li,
  .xgyw1 > li {
    width: auto !important;
    height: auto !important;
    float: none !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #E6EDF5;
  }
  .xgyw > li > div,
  .xgyw1 > li > div { width: 100% !important; height: auto !important; }
  .xgyw > li > div a.entry-cover,
  .xgyw1 > li > div a.entry-cover {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    position: relative;
    overflow: hidden;
  }
  .xgyw > li > div img,
  .xgyw1 > li > div img {
    display: block;
    width: 100% !important;
    height: 236px !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #fff;
    margin: 0 !important;
  }
  .xgyw > li > div span,
  .xgyw1 > li > div span {
    position: absolute !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: auto !important;
    height: 34px !important;
    line-height: 34px !important;
    text-align: center;
    font-size: 13px;
    background: rgba(10, 45, 90, .82) !important;
    color: #fff !important;
  }
}

@media screen and (min-width: 1024px) {
  /* ============================================================
     正文页底部「相关校准服务」：老模板 dl.qa 单列 121px/条，
     四条占掉 480px 且行距过松；改为双列紧凑卡片。
     ============================================================ */
  #container .rightbar dl.qa {
    padding: 16px 22px !important;
    box-sizing: border-box;
    width: 100% !important;
    margin: 0 0 12px !important;
    border: 1px solid #E6EDF5 !important;
    border-radius: 10px;
    background: #fff;
  }
  #container .rightbar dl.qa { height: auto !important; }
  #container .rightbar dl.qa dt.t1 {
    width: auto !important;
    height: auto !important;
    line-height: 1.5 !important;
    margin: 0 0 4px !important;
    font-size: 15px !important;
    /* 问题行与正文同为 15px 时只靠颜色区分不够，加粗到 600 才有层级 */
    font-weight: 600 !important;
  }
  #container .rightbar dl.qa dd.text {
    width: auto !important;
    height: auto !important;
    padding-left: 0 !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    font-size: 13px !important;
    color: #6B7F94 !important;
    /* 摘要只占一行，超出部分省略，避免两条摘要长短不一 */
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* 容器：把连续的 dl.qa 收成两列 */
  #container .rightbar:has(dl.qa) .rttitle + dl.qa ~ dl.qa { margin-top: 0 !important; }
}

/* ==========================================================================
   列表分页 v13（2026-11-29）
   原样式：每个元素都是浅灰通栏块，「16条」也做成按钮，视觉噪音大。
   新样式：条数降为说明文字；页码去底色；上一页/下一页改描边按钮；
           当前页深蓝实心。选择器带 #container 前缀，用于压过 pc-v6.css
           里 #container .nextpage a 的同名规则。
   ========================================================================== */
#container .nextpage {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  height: auto !important;
  padding: 40px 0 4px !important;
  margin: 0 !important;
  box-sizing: border-box;
  clear: both;
}
#container .nextpage > a,
#container .nextpage > span {
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 36px;
  height: 36px !important;
  line-height: 1 !important;
  padding: 0 12px !important;
  margin: 0 !important;
  border: 1px solid transparent;
  border-radius: 9px !important;
  background: transparent !important;
  color: #37536E !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

/* 条数：纯说明文字，不参与按钮序列 */
#container .nextpage > a.a1:first-child {
  min-width: 0 !important;
  padding: 0 18px 0 0 !important;
  border: 0 !important;
  background: none !important;
  color: #8FA3B8 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  cursor: default;
  pointer-events: none;
}
#container .nextpage > a.a1:first-child::before { content: "共 "; }

/* 上一页 / 下一页：描边按钮 */
#container .nextpage > a.a1:nth-child(2),
#container .nextpage > a.a1:last-child {
  padding: 0 15px !important;
  border-color: #DCE6F1 !important;
  background: #fff !important;
}
/* 翻页键与页码组之间留一道缝，避免看起来像一串 */
#container .nextpage > a.a1:nth-child(2) { margin-right: 6px !important; }
#container .nextpage > a.a1:last-child { margin-left: 6px !important; }
#container .nextpage > a.a1:nth-child(2):hover,
#container .nextpage > a.a1:last-child:hover {
  border-color: #0A3D7A !important;
  color: #0A3D7A !important;
  background: #F6F9FD !important;
}

/* 首/末页时不可用的那一侧 */
#container .nextpage > a.a1:not([href]):not(:first-child) {
  border-color: #E8EEF5 !important;
  background: #F7F9FC !important;
  color: #A9B9CB !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* 页码 */
#container .nextpage > a:not(.a1) {
  min-width: 34px;
  padding: 0 !important;
  color: #4A6076 !important;
  border-color: transparent !important;
}
#container .nextpage > a:not(.a1):hover {
  background: #EEF3F9 !important;
  color: #0A3D7A !important;
}

/* 当前页 */
#container .nextpage > span {
  min-width: 36px;
  padding: 0 !important;
  border-color: #0A3D7A !important;
  background: #0A3D7A !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 10px rgba(10, 61, 122, .18);
  cursor: default;
}
#container .nextpage strong { color: #0A3D7A !important; }

/* ==========================================================================
   栏目列表：分页条位置固定（2026-12-06）
   公司新闻只有 3 条、计量知识第 3 页 4 条，条目一少，分页条就被顶到半空，
   三个栏目来回切换时分页条的位置各不相同。这里把右栏拉到「6 条列表」的高度，
   分页条用 margin-top:auto 贴底，多出来的空白留在列表下方，分页条始终同高。
   637px 是 1280 宽下 6 条列表时右栏的实际高度，改每页条数时要同步。
   ========================================================================== */
@media screen and (min-width: 1024px) {
  body.hz-list #container .rightbar {
    display: flex !important;
    flex-direction: column;
    min-height: 637px !important;
  }
  body.hz-list #container .rightbar > .nextpage { margin-top: auto !important; }
}

@media (max-width: 1023px) {
  #container .nextpage {
    gap: 6px;
    padding: 26px 0 2px !important;
  }
  #container .nextpage > a,
  #container .nextpage > span {
    min-width: 34px;
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 12.5px !important;
    border-radius: 8px !important;
    box-shadow: none;
  }
  #container .nextpage > a:not(.a1) { padding: 0 !important; min-width: 28px; }
  #container .nextpage > span { padding: 0 !important; min-width: 32px; }
  /* 细分屏放不下 7 个元素，条数让位（列表头部另有「共收录 N 条」） */
  #container .nextpage > a.a1:first-child { display: none !important; }
  #container .nextpage > a.a1:nth-child(2),
  #container .nextpage > a.a1:last-child { padding: 0 12px !important; }
  #container .nextpage > a.a1:nth-child(2) { margin-right: 4px !important; }
  #container .nextpage > a.a1:last-child { margin-left: 4px !important; }
}

/* ============================================================
   v12.2 企业资质证书卡片（2026-11-30）
   限定 body.hz-certs（仅 list-catid-29），其余 28 页 .xgyw 是业务配图，不受影响。

   原来三处毛病：
     ① li 宽 auto → 卡片宽度跟着图片宽度走，竖版窄横版宽，一行四张参差不齐
     ② 标签条 absolute 压在图片底部，营业执照的登记机关、日期被盖住
     ③ 竖版证书比例 0.71~0.77，塞进 272:202 的横框用 cover，左右被裁；
        横版营业执照 1.40 塞同一个框，左右各裁掉约 40%
   现在：等宽卡片 + 3:4 竖框 contain（不裁不变形）+ 标签条落到图片下方
   ============================================================ */
@media screen and (min-width: 1024px) {
  .hz-certs #container .rightbar .xgyw,
  .hz-certs #container .rightbar .xgyw1 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
  /* 卡片：li 底部固定留 46px 给标签，标签用 absolute 落在这一条里。
     图片区完全独立于标签，图片再高也碰不到文字。
     46px 而非 40px：1024 档卡片压到 190px 宽，「配热电偶用温度仪表检定
     装置」这类长名称会折成两行，40px 只够一行，第二行被裁掉。 */
  .hz-certs #container .rightbar .xgyw > li,
  .hz-certs #container .rightbar .xgyw1 > li {
    width: 100% !important;
    display: block !important;
    position: relative !important;
    padding: 0 0 46px !important;
    background: #fff;
    border: 1px solid #E6EDF5;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    transition: box-shadow .3s;
  }
  .hz-certs #container .rightbar .xgyw > li:hover,
  .hz-certs #container .rightbar .xgyw1 > li:hover {
    box-shadow: 0 10px 26px rgba(10, 61, 122, .13);
  }
  .hz-certs #container .rightbar .xgyw > li > div,
  .hz-certs #container .rightbar .xgyw1 > li > div { width: 100% !important; height: auto !important; }

  /* 图片位用 padding-bottom 撑出 3:4。不依赖 aspect-ratio —— 部分手机内置
     浏览器（旧内核）不认 aspect-ratio，图片会按原图比例高出框几个百分点，
     下沿压到标签上，这就是「放上去有一点点放大、挡住下面文字」的来源。 */
  .hz-certs #container .rightbar .xgyw > li > div a.entry-cover,
  .hz-certs #container .rightbar .xgyw1 > li > div a.entry-cover {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding: 0 0 133.33% !important;
    overflow: visible;
    box-sizing: content-box !important;
    cursor: default;
  }
  /* hover 遮罩与「>>」会盖住证书正文，资质卡片一律不要 */
  .hz-certs #container .rightbar .xgyw > li > div a.entry-cover:before,
  .hz-certs #container .rightbar .xgyw > li > div a.entry-cover:after,
  .hz-certs #container .rightbar .xgyw1 > li > div a.entry-cover:before,
  .hz-certs #container .rightbar .xgyw1 > li > div a.entry-cover:after {
    display: none !important;
    content: none !important;
  }

  .hz-certs #container .rightbar .xgyw > li > div img,
  .hz-certs #container .rightbar .xgyw1 > li > div img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
  }
  .hz-certs #container .rightbar .xgyw > li > div span,
  .hz-certs #container .rightbar .xgyw1 > li > div span {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -46px !important;
    width: auto !important;
    height: 46px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-sizing: border-box;
    line-height: 1.3 !important;
    font-size: 13px !important;
    letter-spacing: .3px;
    background: #0A3D7A !important;
    color: #fff !important;
    text-align: center;
    z-index: 3;
  }

  /* 横版证书（营业执照 1.40）：竖框里上下空白太多，改为跨两列。
     跨列后宽度≈2×列宽+间距，用 14:9 让高度与竖版卡片齐平（不用写死像素）。 */
  .hz-certs #container .rightbar .xgyw > li.hz-land,
  .hz-certs #container .rightbar .xgyw1 > li.hz-land {
    grid-column: span 2 !important;
  }
  .hz-certs #container .rightbar .xgyw > li.hz-land > div a.entry-cover,
  .hz-certs #container .rightbar .xgyw1 > li.hz-land > div a.entry-cover {
    padding: 0 0 64.29% !important;
  }
  .hz-certs #container .rightbar .xgyw > li.hz-land > div img,
  .hz-certs #container .rightbar .xgyw1 > li.hz-land > div img {
    padding: 12px 20px;
  }
  /* 2026-12-05：营业执照副本下线后资质区只剩 4 张（CNAS 中/英 + CMA + 营业执照）。
     4 张时取消营业执照跨两列，四张等宽排一行，与首页「我们的资质」一致；
     5 张及以上仍按上面的跨列方案。 */
  .hz-certs #container .rightbar .xgyw:has(> li:nth-child(4):last-child) > li.hz-land,
  .hz-certs #container .rightbar .xgyw1:has(> li:nth-child(4):last-child) > li.hz-land {
    grid-column: auto !important;
  }
  .hz-certs #container .rightbar .xgyw:has(> li:nth-child(4):last-child) > li.hz-land > div a.entry-cover,
  .hz-certs #container .rightbar .xgyw1:has(> li:nth-child(4):last-child) > li.hz-land > div a.entry-cover {
    padding: 0 0 133.33% !important;
  }
  .hz-certs #container .rightbar .xgyw:has(> li:nth-child(4):last-child) > li.hz-land > div img,
  .hz-certs #container .rightbar .xgyw1:has(> li:nth-child(4):last-child) > li.hz-land > div img {
    padding: 4px 6px;
  }
}

@media (max-width: 1023px) {
  .hz-certs .xgyw li,
  .hz-certs .xgyw1 li {
    width: 48.5% !important;
    position: relative !important;
    display: block !important;
    padding: 0 0 30px !important;
    background: #fff;
    border: 1px solid #E6EDF5;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
  }
  /* 同 PC：padding-bottom 撑 3:4，图片绝对定位填满，标签单独占底部 30px。 */
  .hz-certs .xgyw li a,
  .hz-certs .xgyw1 li a {
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    padding: 0 0 133.33% !important;
    position: relative;
    overflow: visible;
    box-sizing: content-box !important;
    cursor: default;
  }
  .hz-certs .xgyw li a:before,
  .hz-certs .xgyw li a:after,
  .hz-certs .xgyw1 li a:before,
  .hz-certs .xgyw1 li a:after { display: none !important; content: none !important; }
  .hz-certs .xgyw li img,
  .hz-certs .xgyw1 li img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #fff;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 0 !important;
    transform: none !important;
  }
  .hz-certs .xgyw li a span,
  .hz-certs .xgyw1 li a span {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -30px !important;
    display: block !important;
    width: auto !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 12px !important;
    padding: 0 4px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #0A3D7A !important;
    color: #fff !important;
    border-radius: 0 !important;
    z-index: 3;
  }

  /* 横版证书在移动端占满一整行（这里父级是 flex，不是 grid） */
  .hz-certs .xgyw li.hz-land,
  .hz-certs .xgyw1 li.hz-land { width: 100% !important; }
  .hz-certs .xgyw li.hz-land a,
  .hz-certs .xgyw1 li.hz-land a { padding: 0 0 64.29% !important; }
  .hz-certs .xgyw li.hz-land img,
  .hz-certs .xgyw1 li.hz-land img {
    padding: 8px 12px;
  }
}

/* 资质证书不做放大查看，但也不让人轻易保存：
   禁长按菜单、禁拖拽出图、禁选中。配合全站 hz-nocopy.js 一起生效。 */
.hz-certs .xgyw a.entry-cover,
.hz-certs .xgyw1 a.entry-cover {
  cursor: default !important;
}
.hz-certs .xgyw img,
.hz-certs .xgyw1 img {
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  user-select: none !important;
  pointer-events: none !important;
}

/* ==========================================================================
   联系我们：地图按钮文字被正文链接色压掉（2026-11-30）
   pc-v6.css:2563 的 `#container .rightbar .js1 a{color:#0A5CB8 !important}`
   带 !important 且是 ID 选择器，把 .mapbtn 的白色文字盖成深蓝，
   深蓝字压在深蓝底上几乎看不见，还多出一条 1px 下划线把按钮撑到 39px。
   这里用更高特异性还原按钮配色，只针对 .mapbox 内的按钮。
   ========================================================================== */
#container .rightbar .js1 .mapbox a.mapbtn {
  color: #fff !important;
  background: #09479c !important;
  border-bottom: 0 !important;
  text-decoration: none !important;
}
#container .rightbar .js1 .mapbox a.mapbtn:hover {
  color: #fff !important;
  background: #0d5ac4 !important;
  border-bottom: 0 !important;
}
#container .rightbar .js1 .mapbox a.mapbtn.ghost {
  color: #09479c !important;
  background: #fff !important;
  border: 1px solid #b9cbe6 !important;
}
#container .rightbar .js1 .mapbox a.mapbtn.ghost:hover {
  color: #09479c !important;
  background: #f2f6fc !important;
  border-color: #09479c !important;
}

/* ==========================================================================
   触屏防双击缩放（2026-11-30）
   手机浏览器双击页面会做一次「智能缩放」，视图放大几个百分点后，
   证书图看起来就像自己放大了一点、下沿压住标签文字。
   touch-action: manipulation 关掉双击缩放，滚动、单击、表单输入都不受影响。
   捏合缩放由 hz-nozoom.js 的 gesturestart / touchmove 兜住。
   ========================================================================== */
html,
body { touch-action: manipulation; -ms-touch-action: manipulation; }
a,
img,
button,
.xgyw li { touch-action: manipulation; }

/* ==========================================================================
   首页行业服务：完整十个行业入口条（2026-11-30）
   首页纵向只能放 8 张卡，另外两个行业在行业服务总览页，
   这里给一条横跨整行的入口，避免在首页再加卡把网格撑成奇数行。
   颜色写死，不用 pc-v6 的 CSS 变量——那套变量只在 >=1024px 定义，
   手机端取不到值，背景和边框会全部落空。
   ========================================================================== */
#ywdis-ind .hz-moreind {
  grid-column: 1 / -1;
  clear: both;
  width: 100% !important;
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px 20px;
  margin: 4px 0 0; padding: 15px 22px;
  border: 1px solid #E7ECF3; border-radius: 12px;
  background: #F6F8FB;
  font-size: 14px; line-height: 1.7; color: #3D4A5C;
  text-decoration: none;
  transition: background .3s, border-color .3s, color .3s;
}
#ywdis-ind .hz-moreind b { font-weight: 600; color: #0E1B2E; }
#ywdis-ind .hz-moreind .hz-moreind-a { color: #1657A8; white-space: nowrap; }
#ywdis-ind .hz-moreind:hover,
#ywdis-ind .hz-moreind:active { background: #EAF1FA; border-color: #CFDDF0; color: #1657A8; }

@media screen and (max-width: 1023px) {
  #ywdis-ind .hz-moreind {
    flex-direction: column; align-items: flex-start; gap: 6px;
    margin: 18px 0 0; padding: 14px 14px 13px;
    font-size: 13px; line-height: 1.75;
  }
  #ywdis-ind .hz-moreind .hz-moreind-a { font-size: 13px; }
}

/* ==========================================================================
   全站正文排版统一（2026-11-30）
   起因：全站正文实际存在四套颜色 —— 关于我们用 #37536E（蓝灰），
   服务/文章/行业页用 #33404F（中性深灰），问答答案用 #4A5568，
   手机端简介与 body 继承 #403F3E（暖灰）；另外手机端 body 字体来自
   about.css 的「微软雅黑」，PC 端来自 pc-v6 的系统字体栈，两端不一致。
   统一口径以「关于我们」为基准：正文 #37536E、强调 #22345C、
   主标题 #0F2440、辅助 #7C8FA4；正文 15.5px（手机 15px）/ 行高 1.95。
   ========================================================================== */

:root {
  --hz-ff: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
           "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --hz-text: #37536E;   /* 正文 */
  --hz-emph: #0F2440;   /* 加粗 / 小标题 / 问答提问 */
  --hz-title: #0F2440;  /* 章节主标题 */
  --hz-muted: #7C8FA4;  /* 日期 / 辅助信息 */
}

/* 字体栈与默认正文色：接管 about.css 留在手机端的「微软雅黑」与暖灰 #403F3E */
body {
  font-family: var(--hz-ff);
  color: var(--hz-text);
  -webkit-font-smoothing: antialiased;
}

/* 页内大标题：栏目标题与文章标题同一层级色 ----------------------------- */
#container .rightbar .abouttext .about-hero-txt h2,
#container .rightbar .rttitle h1,
#container .rightbar .conttitle,
#container .rightbar .js1 .conttitle,
.abouttext .conttitle {
  color: var(--hz-title) !important;
  font-family: var(--hz-ff) !important;
  letter-spacing: 0 !important;
}

/* 1. 正文：颜色、字体、字距一处收口 ------------------------------------- */
#container .rightbar .js1 p,
#container .rightbar .js1 li,
#container .rightbar .js1 dd,
#container .rightbar .js1 td,
#container .rightbar .js1 th,
#container .rightbar .js1 blockquote,
#container .rightbar .js1 figcaption,
#container .rightbar .rightwz,
#container .rightbar .rightwz p,
#container .rightbar .rightwz .fy,
#container .rightbar .abouttext > p,
#container .rightbar .abouttext > div:not(.js1):not(.newssmtt):not(.ab-stats) {
  color: var(--hz-text) !important;
  font-family: var(--hz-ff) !important;
  letter-spacing: 0 !important;
}

/* 2. 标题与加粗：同色系的三个层级 --------------------------------------- */
#container .rightbar .js1 h2 {
  color: var(--hz-title) !important;
  font-family: var(--hz-ff) !important;
  letter-spacing: 0 !important;
}
#container .rightbar .js1 h3,
#container .rightbar .js1 strong,
#container .rightbar .abouttext strong,
#container .rightbar .abouttext b {
  color: var(--hz-emph) !important;
}

/* 3. 问答：29 个页面里原先被 h3 规则改写成 16.5px 带左侧竖线，
      与另一批 15.5px 无竖线的页面并存，此处统一 ------------------------ */
#container .rightbar .js1 .svc-faq h3.svc-faq-q,
#container .rightbar .js1 .svc-faq .svc-faq-q,
#container .rightbar .svc-faq .svc-faq-q,
.svc-faq .svc-faq-q {
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-size: 15.5px !important;
  font-weight: 600 !important;
  line-height: 1.65 !important;
  color: var(--hz-emph) !important;
  border: 0 !important;
  border-left: 0 !important;
  background: none !important;
}
.svc-faq .svc-faq-a {
  font-size: 15.5px !important;
  line-height: 1.95 !important;
  color: var(--hz-text) !important;
}

/* 4. 日期与辅助信息 ----------------------------------------------------- */
.js1 .newssmtt,
.abouttext .newssmtt {
  color: var(--hz-muted) !important;
  font-size: 13px !important;
}

/* 5. 引言块（浅色底小卡片）与正文同色 ----------------------------------- */
.js1 .scope-intro,
.js1 .scope-intro p {
  color: var(--hz-text) !important;
}

/* 6. 数据条数字保留品牌蓝，作为视觉重点 -------------------------------- */
#container .rightbar .abouttext .ab-stat b { color: #0A3D7A !important; }

/* 7. 企业文化页卡片：原 #12283F / #5B6B80 并入同一色系 ------------------ */
.hzcul .hzcul-main { color: var(--hz-emph) !important; }
.hzcul .hzcul-sub { color: var(--hz-text) !important; }

/* 7. 手机端：字号落回 15px，问答不再比正文小一号 ------------------------ */
@media screen and (max-width: 1023px) {
  #container .rightbar .js1 p,
  #container .rightbar .js1 li,
  #container .rightbar .js1 dd,
  #container .rightbar .js1 td,
  #container .rightbar .rightwz,
  #container .rightbar .rightwz .fy,
  #container .rightbar .abouttext > p,
  #container .rightbar .abouttext > div:not(.js1):not(.newssmtt):not(.ab-stats) {
    font-size: 15px !important;
    line-height: 1.9 !important;
  }
  #container .rightbar .js1 .svc-faq .svc-faq-q,
  #container .rightbar .svc-faq .svc-faq-q,
  .svc-faq .svc-faq-q { font-size: 15px !important; }
  .svc-faq .svc-faq-a { font-size: 15px !important; line-height: 1.85 !important; }
  .js1 .newssmtt, .abouttext .newssmtt { font-size: 12.5px !important; }
}

/* ==========================================================================
   2026-12-04 领域页「相关文章」
   46 篇文章按专业领域归位：一篇文章只挂在它所属的领域页上，
   行业新闻／常见问题列表与文章页的内链结构不变。
   ========================================================================== */
#container .rightbar .hz-relart {
  display: grid !important;
  /* 固定两列：不随条目数或屏宽变列数。此前三段规则（自适应 + 三条排满一行）
     让 3 条页挤成三窄列、2 条页各占半宽，同一区块在不同页宽度不一致。 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0 0 24px !important;
  padding: 14px 20px !important;
  list-style: none !important;
  border: 1px solid #E6EDF5;
  border-radius: 10px;
  background: #FBFDFF;
}
#container .rightbar .hz-relart li {
  position: relative;
  margin: 0 !important;
  padding: 8px 0 8px 13px !important;
  list-style: none !important;
  font-size: 14.5px;
  line-height: 1.65;
  color: #37536E;
}
#container .rightbar .hz-relart li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9DB3D0;
}
#container .rightbar .hz-relart a { color: #37536E; text-decoration: none; }
#container .rightbar .hz-relart a:hover { color: #0B4A8F; }
/* 只有一条时占满一行，不空出右半 */
#container .rightbar .hz-relart:has(> li:only-child) { grid-template-columns: minmax(0, 1fr); }
@media screen and (max-width: 1023px) {
  #container .rightbar .hz-relart,
  #container .rightbar .hz-relart:has(> li:only-child) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0;
    padding: 12px 16px !important;
  }
  #container .rightbar .hz-relart li { font-size: 14.5px; padding: 7px 0 7px 12px !important; }
}

/* ==========================================================================
   2026-12-04 15:40 首页摘要一行 + 内页小标题对齐
   1) #news 的 dd.text 上 -webkit-line-clamp 在部分 Chrome 上被算成 flow-root，
      截断失效、摘要撑到两行。改用 nowrap + ellipsis，一行且带省略号。
   2) 内页 h2.rttitle 在手机上被 align-items:center 居中，与左对齐的正文不齐；
      改为 flex-start，并与上方内容留出 26px。
   3) 只有栏目名、没有 h1 与面包屑的旧式分隔条（详情介绍/相关校准服务/相关业务），
      手机端整块隐藏，避免隐藏文字后留下 10px 空条与一条多余细线。
   ========================================================================== */
/* 首页新闻摘要：桌面与手机都只留一行，超出省略 */
#news dl.qa dd.text,
#news .leftbar dl.qa dd.text,
#news .rightbar dl.qa dd.text {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: 0 !important;
  height: auto !important;
}

@media screen and (max-width: 1023px) {
  #news dl.qa dd.text,
  #news .leftbar dl.qa dd.text,
  #news .rightbar dl.qa dd.text {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.6 !important;
    padding: 4px 0 0 !important;
  }
  #container .rightbar h2.rttitle {
    align-items: flex-start !important;
    margin: 26px 0 12px !important;
  }
  #container .rightbar .rttitle:has(em) + h2.rttitle {
    margin-top: 14px !important;
  }
  #container .rightbar div.rttitle:not(:has(h1)):not(:has(em)) {
    display: none !important;
  }

  /* 面包屑块：手机端 H1 与正文同左对齐（原先被居中，跟下面的正文错开） */
  #container .rightbar .rttitle {
    align-items: flex-start !important;
  }
}

/* 2026-12-04 16:20 校准能力查询：导语与按钮之间在手机上留下的两行空行
   原先上传说明用 <br> 环绕，说明块在手机端下架后，<br> 仍占两行高。 */
#container .rightbar .rightwz .nlt-pcup {
  margin: 0 0 18px !important;
  line-height: 1.9;
}
@media screen and (max-width: 1023px) {
  #container .rightbar .rightwz .nlt-pcup { display: none !important; margin: 0 !important; }
  /* 按钮原为 inline-block 插在段落尾，margin-top 把所在行撑高 67px，
     「其中 214 项可安排下厂」被挤成两行、中间空一整行。手机上独占一行居中。 */
  #container .rightbar .rightwz .fy > a[data-hz-lead] {
    display: block !important;
    width: -webkit-fit-content;
    width: fit-content;
    margin: 16px auto 0 !important;
    padding: 12px 22px !important;
    text-align: center;
  }
}

@media screen and (max-width: 1023px) {
  /* 统计卡两行等高：第二行有「全国 / 免费下厂…」两行文案，不拉齐会高出一截 */
  #container .rightbar .nlt-stats { grid-auto-rows: 1fr; }
}

/* ============================================================
   2026-12-04 领域页版式：导语块原先继承 about.css 的 height:380px，
   正文只有一百多字时，下方留下两百多像素空白；图册 100% 宽后
   导语也无需再让位给浮动栏。
   ============================================================ */
#container .rightbar .rightwz {
  height: auto !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  float: none !important;
  width: 100% !important;
}
#container .rightbar .flam { margin-bottom: 18px !important; }
#container .rightbar .rightwz .fy { margin: 0 0 4px !important; }
/* 导语下按钮与详情介绍之间：统一 18px，PC 端不留大块空档 */
#container .rightbar .rightwz .fy > a[data-hz-lead] { margin-top: 18px !important; }
#container .rightbar .rightwz + h2.rttitle { margin-top: 22px !important; }
@media screen and (max-width: 1023px) {
  #container .rightbar .rightwz + h2.rttitle { margin-top: 18px !important; }
}

/* ============================================================
   2026-12-04 领域页「各器具校准项目与量程」：单列长清单改双列，
   19 条从 1300px 压到 700px；单条页面不套网格。
   ============================================================ */
@media screen and (min-width: 1024px) {
  #container .rightbar .hz-qa2 {
    display: grid;
    /* 必须是 minmax(0,1fr)：纯 1fr 的隐式下限是 max-content，
       长句会把列撑宽（实测 654/770），整块超出容器，右列被裁。 */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    align-items: stretch;
  }
  #container .rightbar .hz-qa2 > dl.qa {
    margin: 0 !important;
    height: 100% !important;
    padding: 13px 18px !important;
  }
  #container .rightbar .hz-qa2 > dl.qa dt.t1 {
    font-size: 14.5px !important;
    font-weight: 600 !important;
  }
  /* 摘要统一一行：卡片等高，不会出现「有的两行有的一行」参差。
     超出按省略号收尾，卡片信息仍以标题与详情页为准。 */
  #container .rightbar .hz-qa2 > dl.qa dd.text {
    font-size: 12.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
  }
  #container .rightbar .hz-qa2 > dl.qa:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* 双列清单之后接区块标题：补回卡片 margin 被清零后丢掉的上间距 */
@media screen and (min-width: 1024px) {
  #container .rightbar .hz-qa2 + h2.rttitle { margin-top: 26px !important; }
}

/* ============================================================
   2026-12-04 列表页（新闻/问答/公司新闻）：条目误用了详情页的
   「白底圆角卡片 + 12px 外边距」，一行摘要被撑成 28px 空隙。
   列表页特征是有分页条，改为细分隔线的紧凑列表。
   ============================================================ */
#container .rightbar:has(.nextpage) dl.qa,
#container .rightbar:has(.nextpage) dl.news1 {
  border: 0 !important;
  border-bottom: 1px solid #EEF3F9 !important;
  border-radius: 0 !important;
  background: none !important;
  margin: 0 !important;
  padding: 14px 0 !important;
}
#container .rightbar:has(.nextpage) dl.qa:last-of-type { border-bottom: 0 !important; }
#container .rightbar:has(.nextpage) dl.qa dt.t1,
#container .rightbar:has(.nextpage) dl.qa dt.t1 a {
  font-size: 15.5px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
}
#container .rightbar:has(.nextpage) dl.qa dd.text {
  font-size: 13.5px !important;
  margin-top: 5px !important;
}
@media screen and (max-width: 1023px) {
  #container .rightbar:has(.nextpage) dl.qa { padding: 12px 0 !important; }
  #container .rightbar:has(.nextpage) dl.qa dt.t1,
  #container .rightbar:has(.nextpage) dl.qa dt.t1 a { font-size: 15px !important; }
}

/* ============================================================
   2026-12-04 文章页标题层级：H1 21px 与 H2 18px 只差 3px，
   正文 15.5px 跟着挤在一起，三段几乎同重。标题提到 24px。
   ============================================================ */
#container .rightbar .conttitle {
  font-size: 24px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
}
@media screen and (max-width: 1023px) {
  #container .rightbar .conttitle { font-size: 19px !important; line-height: 1.45 !important; }
}

/* ============================================================
   2026-12-04 首页「热门校准项目」：标签恢复「XX校准」全称。
   末尾不再挂「全部 278 项」（与标题右侧「更多」重复，且窄屏会孤立成行）。
   1024~1279 缩字号，靠字号保证一行排下、不横滑。
   ============================================================ */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  :is(#service1,#service1b).svc-cal .sttitle .righttt a {
    font-size: 11.5px !important; padding: 4px 3px !important;
  }
  :is(#service1,#service1b).svc-cal .sttitle > .rt-lab { font-size: 11.5px !important; }
}

/* ============================================================
   2026-12-04 导语区 CTA「咨询报价 / 按清单核对报价」：
   原来是 display:inline，上下 padding 与 margin-top 都不占位，
   按钮底部会压到下一个区块（能力查询页与 278 卡片直接贴住）。
   改为 inline-block 占位、单行不折，并补底部间距。
   ============================================================ */
@media screen and (min-width: 1024px) {
  #container .rightbar .rightwz .fy > a {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.25;
    margin: 18px 0 16px;
    box-sizing: border-box;
  }
}

/* ============================================================
   清单标题字重：桌面 600 只写在 min-width:1024 里，
   手机端 mobile.css 仍是 500，同一站在手机上看层级就塌了。
   这里不分断点补齐，桌面（已是 600）不受影响。
   ============================================================ */
#container dl.qa dt.t1,
#container dl.qa dt.t1 a,
#container .rightbar .hz-qa2 > dl.qa dt.t1 a {
  font-weight: 600 !important;
}

/* ============================================================
   手机端清单标题字号：mobile.css 给 dl.qa dt.t1 定了 16px，
   而正文段落与 h2.rttitle 都是 15px —— 标题比正文和区块标题都大，
   层级是倒的（领域页「各器具校准项目与量程」最明显）。
   统一压到 15px，与正文同号，靠 600 字重和深色区分。
   列表页（有分页条）另由 15.5px 规则接管，不受此条影响。
   ============================================================ */
@media screen and (max-width: 1023px) {
  #container .rightbar dl.qa dt.t1,
  #container .rightbar dl.qa dt.t1 a {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
}

/* ============================================================
   手机端宽表：mobile.css 把 #container table 改成 display:block
   + width:100%，四列表格在 330px 里被压成竖条（依据条款折两行、
   限制列只剩「≤35 / kV」）。恢复表格布局并给最小宽度，由父级横滑。
   ============================================================ */
@media screen and (max-width: 767px) {
  /* 「检测能力」四列表在 390px 下：后两列被平分成 147px 撑到 444px。
     手机端收成三列（限制值改由表上注记说明），宽度交给内容，
     固定列宽会让标准号溢出屏幕。 */
  #container .cn-det {
    display: table !important;
    table-layout: auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  #container .cn-det th,
  #container .cn-det td { white-space: normal !important; padding: 9px 6px !important; }
  /* 第一列有 rowspan，后续行只有 3 个 td，nth-child(4) 选不全；
     限制列永远在一行末尾，用 last-child 才管得住。 */
  #container .cn-det th:last-child,
  #container .cn-det td:last-child { display: none !important; }
  /* 检测项目最长 4 字，按内容收缩 */
  #container .cn-det th:nth-child(2),
  #container .cn-det td:nth-child(2) {
    width: 1% !important;
    min-width: 5.4em !important;
    white-space: nowrap !important;
  }
}
}
}
}

/* 计量标准考核证书清单（list-catid-29，2026-12-05）
   20 张过期纸质证书下线后，改用深圳市市场监管局公示的 10 项有效计量标准，
   编号 + 装置名逐条列出，随证书复查换版只改数据不动版式。 */
.std-certs { margin: 34px 0 14px; }
.std-certs h2 { font-size: 20px; font-weight: 700; color: #0F2440; margin: 0 0 10px; line-height: 1.5; }
.std-certs .std-lead { font-size: 15px; line-height: 1.9; color: #37536E; margin: 0 0 16px; }
.std-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; padding: 0; list-style: none; }
.std-list li { display: flex; flex-direction: column; gap: 5px; padding: 13px 16px; background: #F6F9FD; border-left: 3px solid #0A3D7A; border-radius: 0 8px 8px 0; box-sizing: border-box; min-width: 0; }
.std-list li b { font-size: 13px; font-weight: 600; color: #0A3D7A; letter-spacing: .2px; }
.std-list li span { font-size: 15px; color: #1B3452; line-height: 1.5; }
@media (max-width: 1023px) {
  .std-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .std-certs h2 { font-size: 18px; }
  .std-certs .std-lead { font-size: 14px; line-height: 1.8; }
}
