/* ============================================================
   原站样式补丁（site-patch.css）
   ------------------------------------------------------------
   orig.css 是原站 webstyle.css 的原样迁移，负责排版/间距/特效。
   本文件只补三类别处：
     1. 原站依赖 jQuery 实现的特效 → 用原生 CSS 补上等价效果
     2. 图片尺寸兜底（原站写死 1200px 容器，图片缺失时会撑破布局）
     3. 后台富文本产出的标签（table/pre/blockquote）在原站 CSS 里没有样式
   原则：不改变原站的配色、字号、间距、圆角。
   ============================================================ */

/* ---------- 1. 原站文字基线 ---------- */
body{color:#333;background:#fff}

/* 原站 head 里的 logo 用固定高度，避免大图撑破 120px 头部 */
.head_box .fl img{display:block}

/* ---------- 2. 轮播：原站靠 banner.js 平移，这里补过渡与居中 ---------- */
.b-img{transition:left .45s ease-in-out}
.b-img a{background-size:auto 100% !important;background-position:center !important}

/* 数字统计条：原站用 jQuery 做递增动画，这里保留静态数值（无 JS 也不空白） */
.ban_bot .counter-value{font-variant-numeric:tabular-nums}

/* ---------- 3. 原站标签页依赖 jQuery .show()/.hide()，补 CSS 兜底 ---------- */
.pro_box .pro_list[style*="display:block"]{display:block !important}

/* ---------- 4. 内页图片兜底（占位底色，仅用于照片类图片） ----------
   这些位置放的是 jpg 照片，加浅灰底可在图片加载失败时占位。
   注意：绝不能把这条规则套到「关于优方」的图标上 —— 它们是透明 PNG，
   一加底色，透明区域就会透出灰色，看起来像「图标带了灰底/阴影」。 */
.main_pro img,
.main_news img,
.bus_list_pic img,
.news_pic img,
.pro_list img{
  background:#f4f6f9;
  object-fit:cover;
}

/* ---------- 4.1 首页「关于优方」四图标：保留原站方框 ----------
   原站 .about_list 是「1px 浅灰外框 + 每格 1px 竖线」的田字格方框，
   这是版式的一部分，必须保留（曾为避免灰底一并去掉，属于改过头）。
   注意：灰底来自 img 的 background，与这个边框无关，已单独修掉。 */

/* ---------- 4.2 首页「关于优方」简介段 ----------
   原站是 #999，白底上对比度只有 2.85:1（不达 WCAG AA 的 4.5:1），
   加上字号偏小，实际观感发飘、读起来费劲。这里把颜色调到深灰：
     #999 → #4a5663（对比度约 7.5:1）
   排版按中文正文惯例处理：
     · 宽度与版心一致，不再额外收窄（跟随 .container 的 1200px）
     · 首行缩进两个汉字位（text-indent:2em 随字号自动换算，改字号不用改数值）
     · 两端对齐，末行不拉伸
   模板里带 .tc（text-align:center），必须用 justify 覆盖，
   否则长段落居中最影响阅读（每行长短不齐、左右都不齐）。
   （标题下那行口号「倡导"健康饮水、品质生活"的饮水理念」已按需求移除，
     其 .about_tit_text 样式规则一并删除，避免留下死代码。） */
.about_con{
  color:#4a5663;
  text-align:justify;
  text-justify:inter-ideograph;
  text-indent:2em;
  /* 原站自带 padding:30px，会让文字实际宽度只有 1140px（1200-60），
     与版心对不齐。只保留上下留白，横向铺满版心。 */
  padding:30px 0;
  max-width:none;
  margin-left:0;
  margin-right:0;
}

/* ---------- 4.3 首页「关于优方」图标悬停切换 ----------
   线上实测行为（Chrome 计算样式）：
     span  transition = all 0s      → 图片「瞬时切换」，没有滑动过程
     span  margin-top  0 → -140px
     img   transform   none → scale(1.1)，transition 0.3s，origin 70px 70px（居中）
   本地之前用的是 transform + .5s 平滑滑动、且放大原点改成了 top，
   与线上观感不一致，这里按线上改回来。

   唯一保留的修正：原站 span 是 inline，内部 <br> 让行盒高 166px，
   位移 -140px 后仍会露出上一张图 7px 的边。改为 span 常驻 block、
   隐藏 <br>，位移严格等于容器高 140px（切换方式仍是瞬切，不产生缝隙）。

   ⚠ img 改成 display:block 后，祖先的 text-align:center 不再对它生效
     （块级元素不受 text-align 控制），图标会退化成左对齐。
     实测偏差 -79px = (299-140)/2，必须显式 margin:0 auto 重新居中。 */
.about_list_icon span{ display:block; }
.about_list_icon br{ display:none; }
.about_list .about_list_icon span img{
  display:block;
  margin:0 auto;             /* 块级 img 靠 auto 外边距居中，补救 text-align 失效 */
  transform-origin:center;   /* 与线上一致：居中放大 */
}
/* 瞬时切换：清掉上一版加的 .5s 过渡 */
.about_list .about_list_icon span{
  transition:none;
  will-change:auto;
}
.about_list li:hover .about_list_icon span{
  margin-top:0;
  transform:translateY(-140px);
}

/* ---------- 4.4 首页「新闻中心」列表摘要 ----------
   要求：每条摘要显示两行，字体/字号/颜色与「关于优方」正文一致。
   关于优方正文（.about_con）实测：16px / #4a5663。
   原站 .news_list_text 是 {height:50px;line-height:25px}，字体继承 body 的 14px、
   颜色 #333，且摘要只截约 35 个中文字，实际只占 1 行。

   这里改用 -webkit-line-clamp:2 —— 比固定 height 更可靠：
   固定 height 时若某行恰好放不下一个字，会露出半行残影；
   line-clamp 按整行裁切并自动补省略号，无论摘要多长都稳定两行。 */
/* 新闻大标题：20 字，强制一行（超出省略）。
   右侧列表宽 620px、字号 20px 时正好容得下 20 个汉字。 */
.news_list li h3{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.news_list_text{
  height:auto;
  max-height:none;
  font-size:16px;
  line-height:28px;
  color:#4a5663;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  /* 标准属性，供未来浏览器原生支持 */
  line-clamp:2;
}

/* ---------- 4.5 首页「业务领域」卡片正文 ----------
   要求：正文显示两行，字体/字号/颜色与「关于优方」正文一致（16px / #4a5663）。
   原站 .bus_list_text 是 {height:60px;line-height:30px;color:#999}，
   继承 14px 浅灰；且模板里用 Str::limit($summary, 40) 按显示宽度截，
   40 宽度只给约 20 个中文字 —— 在 260px 内宽里只铺满 1 行多，
   第 2 行基本空着，看起来像「文字太短」。

   改为：模板输出完整摘要（home_summary），由 line-clamp 精确裁成 2 行。
   16px / 28px 行高时 2 行 = 56px，卡片高 300px 仍放得下
   （h3 80 + 正文 116 + 按钮 30 + padding 40 = 266px）。 */
/* 项目标题：两行显示，且至少要能看到 25 个字。
   卡片内宽 = 300 - 20×2 = 260px；标题 20px 字号时每行正好 13 个汉字，
   两行合计 26 字 ≥ 25 字，满足「标题至少显示 25 字」的要求。
   - line-clamp:2 按整行裁切并自动补省略号（比固定 height 稳，不会露半行）；
   - min-height 锁死两行高度，保证同一屏卡片里标题只有一行时
     正文与 +MORE 按钮的基线也保持一致，不会上下错位。 */
.bus_list_con h3{
  white-space:normal;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-clamp:2;
  font-size:20px;
  line-height:32px;
  min-height:64px;
  padding:10px 0 12px;
  word-break:break-word;
  overflow-wrap:break-word;
}

.bus_list_text{
  height:auto;               /* 原站固定 60px，会和 line-clamp 打架 */
  font-size:16px;
  line-height:28px;
  color:#4a5663;
  margin:26px 0 32px;            /* 让 +MORE 按钮落在与原站相同的位置（卡内 220–250px） */
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-clamp:2;
}

/* ---------- 5. 详细页正文（原站只给了 .main_con，未含富文本标签样式） ---------- */
.main_con .tupian{line-height:30px;color:#333}
.main_con .tupian img{max-width:100%;height:auto;display:block;margin:10px auto}
.main_con .tupian p{margin:0 0 12px}
.main_con .tupian h2,
.main_con .tupian h3,
.main_con .tupian h4{font-weight:700;margin:18px 0 10px;line-height:1.5}
.main_con .tupian ul,
.main_con .tupian ol{margin:10px 0 10px 22px}
.main_con .tupian ul li{list-style:disc}
.main_con .tupian ol li{list-style:decimal}
.main_con .tupian table{border-collapse:collapse;width:100%;margin:12px 0}
.main_con .tupian th,
.main_con .tupian td{border:1px solid #e2e2e2;padding:8px 10px}
.main_con .tupian blockquote{
  border-left:3px solid #0e96ff;background:#f4faff;
  padding:10px 16px;margin:12px 0;color:#555;
}
.main_con .tupian a{color:#0e96ff}
.main_con .tupian pre{
  background:#f6f8fa;border:1px solid #e2e2e2;border-radius:4px;
  padding:12px;overflow:auto;font-size:13px;
}

/* 文章详情标题与发布信息（原站内联样式，这里补一层保险） */
.main_con .abto h3{font-size:22px;line-height:1.6;font-weight:700;color:#222}
.main_con>div>h5{color:#888;font-size:13px;font-weight:400;margin:8px 0 20px}

/* 上下页导航 */
.main_con .ye{color:#888;font-size:13px;line-height:26px}
.main_con .ye a{color:#0e96ff}

/* ---------- 6. 分页：原站 .main_page 是 a 标签，Laravel 分页输出 <nav><a>，需对齐 ---------- */
.main_page nav{display:inline-block}
.main_page a,
.main_page span{
  display:inline-block;margin:0 5px;border:1px solid #ddd;
  padding:0 15px;height:30px;line-height:30px;color:#333;
}
.main_page span[aria-current="page"]{background:#0e96ff;color:#fff;border-color:#0e96ff}
.main_page a:hover{background:#0e96ff;color:#fff;border-color:#0e96ff}
.main_page .sr-only,
.main_page svg{display:none}
.main_page span.cursor-default{color:#bbb}

/* ---------- 7. 列表为空时的提示 ---------- */
.main_news .empty,
.main_pro .empty{
  padding:60px 0;text-align:center;color:#999;font-size:15px;
}

/* ---------- 8. 侧边栏三层菜单（产品中心）的原站交互 ---------- */
.main_type li:hover .main_type_meau{display:block}
.main_type li.on>a{color:#fff;background:#0e96ff url(/images/orig/sj02.png) no-repeat 250px center}

/* ---------- 9. 业绩地图占位（原站为 jsMap 交互图） ---------- */
.map_box img{max-width:100%;height:auto;display:block;margin:0 auto}

/* ---------- 10. 移动端兜底：见 responsive.css（此处不再限制 overflow-x） ---------- */

/* ============================================================
   业务领域 · 业绩地图
   ------------------------------------------------------------
   底图沿用原站 map.png；交互层是叠加的 SVG 省份多边形：
     · 默认透明，鼠标悬停填充品牌蓝（还原原站 maphilight 效果）
     · 有工程业绩的省份常亮浅蓝，并在图内标出数量
   ============================================================ */
.map-wrap{margin:10px 0 30px}
.map-stage{
  position:relative;width:688px;max-width:100%;margin:0 auto;
  /* 原站地图自带 688×577 画布，按宽度等比缩放 */
}
.map-base{display:block;width:100%;height:auto;user-select:none;-webkit-user-drag:none}
.map-layer{position:absolute;inset:0}
.map-layer svg{display:block;width:100%;height:100%;overflow:visible}

/* 省份默认透明 —— 底图已经有颜色，叠加层只负责交互反馈
   注意：必须显式 pointer-events:fill。
   SVG 默认是 visiblePainted，fill 全透明时视为「未绘制」，
   鼠标悬停根本命中不到填充区，只有描边能触发 —— 这是最容易踩的坑。 */
.china-map-svg .province{
  fill:rgba(255,255,255,0);
  stroke:transparent;
  stroke-width:1.2;
  cursor:pointer;
  pointer-events:fill;
  transition:fill .18s ease,stroke .18s ease;
  outline:none;
}
/* 悬停：品牌蓝半透明填充 + 描边（= 原站 fillOpacity .7 + strokeWidth 3 的等效效果） */
.china-map-svg .province:hover,
.china-map-svg .province:focus-visible{
  fill:rgba(14,150,255,.62);
  stroke:#0878d1;
  stroke-width:2.2;
}
/* 有业绩的省份：常亮浅蓝，提示「这里有点」 */
.china-map-svg .province.has-projects{
  fill:rgba(14,150,255,.26);
  stroke:#0e96ff;
  stroke-width:1.6;
}
.china-map-svg .province.has-projects:hover{
  fill:rgba(14,150,255,.72);
  stroke:#0568b3;
}
/* 当前筛选中的省份：加深并轻微加粗，明确「你正在看这里」 */
.china-map-svg .province.is-active{
  fill:rgba(8,120,209,.78);
  stroke:#074a7d;
  stroke-width:2.4;
}

/* 图例 */
.map-legend{
  display:flex;justify-content:center;flex-wrap:wrap;gap:18px;
  padding:14px 0 4px;font-size:13px;color:#6b7785;
}
.map-legend .lg-item{display:inline-flex;align-items:center;gap:6px}
.map-legend .lg-dot{
  width:14px;height:14px;border-radius:3px;display:inline-block;
  border:1px solid #0e96ff;
}
.map-legend .lg-has{background:rgba(14,150,255,.26)}
.map-legend .lg-hover{background:rgba(14,150,255,.62)}
.map-legend .lg-tip{color:#9aa5b1}

/* 省份快捷筛选胶囊 */
.map-chips{
  display:flex;justify-content:center;flex-wrap:wrap;gap:8px;
  padding:14px 0 0;
}
.map-chips .chip{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 13px;border:1px solid #e2e2e2;border-radius:16px;
  font-size:13px;color:#666;background:#fff;transition:all .2s;
}
.map-chips .chip:hover{border-color:#0e96ff;color:#0e96ff}
.map-chips .chip.on{background:#0e96ff;border-color:#0e96ff;color:#fff}
.map-chips .chip em{
  font-style:normal;font-size:11px;line-height:15px;min-width:15px;
  padding:0 4px;border-radius:8px;background:#eef8ff;color:#0878d1;text-align:center;
}
.map-chips .chip.on em{background:rgba(255,255,255,.28);color:#fff}

/* 案例列表里的省份标签 */
.field_list dt .case-prov{
  font-style:normal;display:inline-block;margin-left:8px;
  padding:0 8px;height:20px;line-height:20px;border-radius:10px;
  font-size:12px;background:#eef8ff;color:#0878d1;vertical-align:middle;
}

@media (max-width:640px){
  .map-legend{gap:10px;font-size:12px}
  .map-legend .lg-tip{display:none}
}

/* ============================================================
   联系我们 · 高德地图
   ------------------------------------------------------------
   原站是百度地图 510px 容器，这里保留同样的高度与边线风格，
   只把底图换成高德（合规白名单内）。Key 由后台配置，
   未配置时不加载任何外部脚本，改走地址卡片 + 一键导航。
   ============================================================ */
.amap-wrap{
  position:relative;width:100%;height:510px;
  border:1px solid #e2e2e2;background:#f4f6f9;overflow:hidden;
}
.amap-container{width:100%;height:100%}

/* 手机端手势激活蒙层：桌面不显示 */
.amap-activate{display:none}

/* InfoWindow 内部排版（高德默认窗口是白底，这里加一点内边距与字色） */
.amap-iw{padding:12px 14px 10px;min-width:200px;max-width:280px;line-height:1.7;text-align:left}
.amap-iw h4{margin:0 0 6px;font-size:15px;font-weight:700;color:#1f2933}
.amap-iw p{margin:0 0 4px;font-size:13px;color:#5a6572}
.amap-iw a{color:#0e96ff}
.amap-iw-nav{
  display:inline-block;margin-top:8px;padding:0 14px;height:30px;line-height:30px;
  background:#0e96ff;color:#fff!important;border-radius:15px;font-size:13px;
}

/* 地图下方的地址/电话条 */
.amap-meta{
  display:flex;flex-wrap:wrap;gap:10px 28px;
  padding:12px 14px;background:#f7fafd;border:1px solid #e2e2e2;border-top:0;
  font-size:14px;color:#5a6572;line-height:1.7;
}
.amap-meta b{
  display:inline-block;margin-right:8px;color:#1f2933;font-weight:600;
}
.amap-meta a{color:#0e96ff}

/* ---------- 未配置 Key 时的降级卡片 ---------- */
.amap-fallback{
  padding:28px 26px;background:#f7fafd;border:1px solid #e2e2e2;
  border-top:3px solid #0e96ff;
}
.amap-fallback-info h3{margin:0 0 10px;font-size:18px;font-weight:700;color:#1f2933}
.amap-fallback-info p{margin:0 0 6px;font-size:14px;color:#5a6572;line-height:1.8}
.amap-fallback-info .amap-addr{color:#33414f}
.amap-fallback-info .amap-coord{font-size:12.5px;color:#9aa5b1;font-family:ui-monospace,Consolas,monospace}
.amap-fallback-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.amap-btn{
  display:inline-block;padding:0 22px;height:38px;line-height:38px;
  background:#0e96ff;color:#fff;border-radius:19px;font-size:14px;
  transition:background-color .18s ease,transform .18s ease;
}
.amap-btn:hover{background:#0878d1;color:#fff;transform:translateY(-1px)}
.amap-btn-ghost{background:#fff;color:#0e96ff;border:1px solid #0e96ff;line-height:36px}
.amap-btn-ghost:hover{background:#eef8ff;color:#0878d1}
.amap-tip{
  margin:14px 0 0;padding-top:12px;border-top:1px dashed #dbe3ec;
  font-size:12.5px;color:#9aa5b1;line-height:1.8;
}
.amap-tip code{
  background:#eef2f7;border-radius:3px;padding:1px 5px;
  font-family:ui-monospace,Consolas,monospace;color:#0b5c94;
}

/* 嵌在地图容器里的兜底卡片：垂直居中，填满 510px 容器 */
.amap-container .amap-fallback-inline{
  height:100%;width:100%;
  display:flex;flex-direction:column;justify-content:center;
  border:0;border-top:3px solid #0e96ff;box-sizing:border-box;
  overflow-y:auto;
}

/* ---------- 6. 站内搜索页（套用原站内页左栏 + main_news 列表） ---------- */
.search_side{margin:0 0 22px}
.search_side input[type=text]{
  width:100%;height:44px;line-height:44px;box-sizing:border-box;
  border:1px solid #e2e2e2;padding:0 14px;font-size:14px;color:#333;
  font-family:inherit;background:#fff;
}
.search_side input[type=text]:focus{border-color:#0e96ff;outline:none}
.search_side button{
  width:100%;height:44px;line-height:44px;margin-top:10px;
  background:#0e96ff;color:#fff;border:0;border-radius:0;
  font-size:15px;font-family:inherit;cursor:pointer;transition:background-color .25s;
}
.search_side button:hover{background:#0878d1}
.search_tip{padding:24px 0 6px;font-size:14px;color:#666;line-height:26px}
.search_group_tit{
  font-size:18px;color:#333;padding:20px 0 12px;margin-top:20px;
  border-bottom:1px solid #eee;
}
/* 搜索页列表复用了 .main_news，去掉它为分页预留的额外上下留白 */
.search_tip + .search_group_tit{margin-top:6px}

/* ---------- 7. 主导航：栏目由 8 个减为 7 个（净水商城下线），均分 800px ----------
   原站 .nav_list{width:800px} + li{width:100px} 正好 8×100=800；
   少一项后右侧会留 100px 空白，导航整体左偏。改为 flex 等分，项数变化也不留缝。 */
.nav_list{display:flex;width:800px}
.nav_list li{flex:1 1 0;width:auto;float:none;text-align:center}

/* ---------- 8. 标题语义化（h1）后的样式对齐 ----------
   原站栏目标题是 <span class="f24">，正文标题是 <h3>。为了 SEO/无障碍改成 h1 后，
   h1 自带的 margin/font-weight 会破坏原站版式，这里全部拉回原值。 */
.main_tit h1.f24{
  font-size:24px;line-height:50px;font-weight:normal;
  margin:0;color:#333;
}
.main_con h1{
  font-size:22px;line-height:1.6;font-weight:700;color:#222;
  margin:0 0 14px;
}

/* 视觉隐藏但保留给读屏/搜索引擎（用于首页缺失的语义主标题） */
.sr-only{
  position:absolute!important;width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* ---------- 9. 正文图片自适应 ----------
   原站富文本里的图片写死 width（如 1024px），在 890px 的右栏里会横向溢出，
   把整页撑出滚动条（/about、/research 实测溢出 14px）。统一限宽。 */
.main_con img{max-width:100%;height:auto}
/* Word 粘贴残留的段落类：默认段落间距为 0，避免正文行距忽大忽小 */
.main_con .MsoNormal{margin:0 0 8px;line-height:30px}

/* ---------- 10. 页脚电话（移动端替代悬浮拨号条） ---------- */
.bot_list .footer-tel{white-space:nowrap}

/* ---------- 11. 产品侧栏：桌面端悬停展开子分类 ----------
   原站用 jQuery $(".main_type li").hover(slideToggle) 实现，
   迁移后只剩移动端的点击展开（.open），桌面端悬停无反应，
   导致二级分类在电脑上点不到。这里用 CSS 补回悬停展开。
   触摸端仍由 responsive.css 的 .open 规则接管。 */
@media (min-width:1025px){
  .main_type li:hover > .main_type_meau,
  .main_type li:focus-within > .main_type_meau{display:block}
}

/* ---------- 12. 页脚链接列：6 列均分 1200 ----------
   原站 7 列（含净水商城）刚好 160×5 + 200×2 = 1200；
   取消商城列后只剩 1040px，右侧空 160px，整块链接会显得左偏。 */
.bot_list{display:flex}
.bot_list li{flex:1 1 0;width:auto!important;float:none}

/* ---------- 13. 富文本「新版工具栏」元素的渲染 ----------
   后台编辑器升级后，正文里可能出现这些结构：
     分栏      <div class="grid-layout" style="--cols: repeat(2, minmax(0,1fr))"> … <div> … </div></div>
     折叠块    <details><summary>…</summary>…</details>
     导语/小号  <p class="lead">…</p> / <small>…</small>
     高亮/字色  <mark>…</mark> / <span style="color:#0e96ff">…</span>
   不加样式的话分栏会全部竖着堆、折叠块没有箭头、导语和小号看不出区别。
   ---------------------------------------------------------------- */

/* 分栏：按编辑器写入的 --cols 变量布局；窄屏强制单列，避免手机上挤成一条线 */
.main_con .grid-layout,
.main_con .tupian .grid-layout{
  display:grid;
  grid-template-columns:var(--cols, repeat(2, minmax(0,1fr)));
  gap:20px;
  margin:16px 0;
}
.main_con .grid-layout > *,
.main_con .tupian .grid-layout > *{min-width:0}
@media (max-width:760px){
  .main_con .grid-layout,
  .main_con .tupian .grid-layout{grid-template-columns:1fr!important;gap:12px}
}

/* 折叠块 */
.main_con details,
.main_con .tupian details{
  border:1px solid #dfe6ee;border-radius:6px;
  padding:10px 14px;margin:14px 0;background:#fafcfe;
}
/* 渲染器会剥掉 <details> 外壳，只留 summary + detailsContent，两种形态都要能看 */
.main_con summary,
.main_con .tupian summary,
.main_con details summary,
.main_con .tupian details summary{
  cursor:pointer;font-weight:600;color:#0b5c94;
  list-style:none;position:relative;padding-left:18px;
}
.main_con details summary::-webkit-details-marker,
.main_con .tupian details summary::-webkit-details-marker{display:none}
.main_con details summary::before,
.main_con .tupian details summary::before{
  content:"▸";position:absolute;left:0;color:#0e96ff;transition:transform .2s;
}
.main_con details[open] summary::before{content:"▾"}
.main_con details[open] summary{margin-bottom:8px}

/* 导语段：比正文略大、略深，用于开篇引导 */
.main_con .lead,
.main_con .tupian .lead{font-size:17px;line-height:1.9;color:#2b3947;margin:12px 0}

/* 小号文本 */
.main_con small,
.main_con .tupian small{font-size:12.5px;color:#7a8794}

/* 高亮与字色：编辑器用的是 inline style，这里只保证不溢出背景色 */
.main_con mark,
.main_con .tupian mark{background:#fff3b0;color:inherit;padding:0 2px;border-radius:2px}

/* 分隔线 */
.main_con hr,
.main_con .tupian hr{border:0;border-top:1px solid #e3e8ef;margin:22px 0}

/* ============================================================
   19. 无障碍：跳转链接 + 主内容焦点
   ------------------------------------------------------------
   .skip-link 平时藏起来（不能 display:none，否则键盘取不到焦点），
   用 Tab 键聚焦时才出现在左上角，回车直接跳到 #main。
   ============================================================ */
.skip-link{
  position:absolute;left:8px;top:-60px;z-index:9999;
  padding:10px 18px;border-radius:0 0 6px 6px;
  background:#0e96ff;color:#fff;font-size:15px;line-height:1.4;
  text-decoration:none;transition:top .18s ease;
}
.skip-link:focus{top:0;color:#fff;outline:2px solid #fff;outline-offset:-4px}
main#main:focus{outline:none}

/* ============================================================
   20. 错误页（404 / 500 / 419）
   ------------------------------------------------------------
   原先 error-page / btn 没有任何样式，404 就是一行裸文字 + 一个
   无底色的链接。这里补成与站点一致的卡片式版式。
   ============================================================ */
.error-page{
  box-sizing:border-box;
  max-width:760px;margin:0 auto;padding:64px 20px 72px;
  text-align:center;
}
.error-code{
  font-size:104px;line-height:1;font-weight:700;letter-spacing:2px;
  color:#0e96ff;margin:0 0 6px;
  font-variant-numeric:tabular-nums;
}
.error-page h1.error-title{
  font-size:24px;line-height:1.5;color:#1d2b3a;font-weight:600;margin:0 0 10px;
}
.error-page p.error-desc{
  font-size:15px;line-height:1.9;color:#5b6875;margin:0 0 26px;
}
.error-actions{
  display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-bottom:30px;
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:132px;height:44px;padding:0 22px;
  border-radius:4px;border:1px solid transparent;
  font-size:15px;line-height:1;text-decoration:none;cursor:pointer;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease;
}
.btn-primary{background:#0e96ff;color:#fff}
.btn-primary:hover,.btn-primary:focus{background:#0878d1;color:#fff}
.btn-ghost{background:#fff;color:#0e96ff;border-color:#9ed3ff}
.btn-ghost:hover,.btn-ghost:focus{background:#eef8ff;color:#0878d1;border-color:#0e96ff}
.error-search{
  display:flex;gap:8px;justify-content:center;max-width:420px;margin:0 auto;
}
.error-search input[type=text]{
  flex:1 1 auto;min-width:0;height:42px;padding:0 14px;
  border:1px solid #d7e0ea;border-radius:4px;font-size:15px;color:#333;
  background:#fff;
}
.error-search input[type=text]:focus{outline:none;border-color:#0e96ff;box-shadow:0 0 0 3px rgba(14,150,255,.14)}
.error-search button{
  flex:0 0 auto;height:42px;padding:0 20px;border:0;border-radius:4px;
  background:#0e96ff;color:#fff;font-size:15px;cursor:pointer;
}
.error-search button:hover{background:#0878d1}
.error-links{
  margin:26px auto 0;padding-top:22px;max-width:560px;
  border-top:1px solid #eef2f7;
  font-size:13.5px;line-height:2;color:#8a97a4;
}
.error-links a{
  display:inline-block;padding:4px 6px;margin:0 2px;
  color:#0e96ff;text-decoration:none;border-radius:3px;
}
.error-links a:hover,.error-links a:focus{background:#eef8ff;text-decoration:underline}

/* ============================================================
   21. 联系我们 · 在线留言表单
   ------------------------------------------------------------
   版式与站点一致：白底卡片、1px 浅灰边框、品牌蓝按钮。
   桌面两列（称呼/电话、公司/邮箱），窄屏一列。
   ============================================================ */
.msg-box{
  margin:26px 0 6px;padding:26px 26px 22px;
  background:#fff;border:1px solid #e6ecf3;border-radius:8px;
}
.msg-title{
  margin:0 0 6px;font-size:20px;line-height:1.5;font-weight:600;color:#1d2b3a;
}
.msg-desc{margin:0 0 18px;font-size:14px;line-height:1.9;color:#66737f}
.msg-desc a{color:#0e96ff}
.msg-alert{
  margin:0 0 16px;padding:10px 14px;border-radius:5px;
  font-size:14px;line-height:1.7;border:1px solid transparent;
}
.msg-alert.is-ok{background:#f0fbf4;border-color:#bfe8cd;color:#1e7a43}
.msg-alert.is-error{background:#fff5f5;border-color:#f6cccc;color:#b42318}

.msg-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin-bottom:14px}
.msg-field{display:block;margin-bottom:14px}
.msg-grid .msg-field{margin-bottom:0}
.msg-label{
  display:block;margin-bottom:6px;
  font-size:13.5px;line-height:1.5;color:#48556a;
}
.msg-label i{color:#e5484d;font-style:normal}
.msg-field input[type=text],
.msg-field input[type=tel],
.msg-field input[type=email],
.msg-field textarea{
  box-sizing:border-box;display:block;width:100%;
  padding:9px 12px;border:1px solid #d7e0ea;border-radius:4px;
  background:#fff;color:#333;font-size:14.5px;line-height:1.6;
  font-family:inherit;
}
.msg-field textarea{resize:vertical;min-height:112px}
.msg-field input:focus,
.msg-field textarea:focus{
  outline:none;border-color:#0e96ff;box-shadow:0 0 0 3px rgba(14,150,255,.14);
}
.msg-field input::placeholder,
.msg-field textarea::placeholder{color:#a8b3bf}

/* 蜜罐：移出可视区而不是 display:none —— 部分机器人只跳过「可见」字段 */
.msg-hp{
  position:absolute;left:-9999px;top:auto;
  width:1px;height:1px;overflow:hidden;
}

.msg-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.msg-actions .btn{min-width:140px}
.msg-note{font-size:12.5px;line-height:1.7;color:#96a1ad;flex:1 1 220px}

@media (max-width:640px){
  .msg-box{padding:18px 16px 16px;margin-top:20px}
  .msg-grid{grid-template-columns:1fr;gap:0}
  .msg-title{font-size:18px}
  .msg-actions .btn{width:100%}
}

/* ---------- 22. 页脚列标题改为 h2 后的样式对齐 ----------
   原来用 h3，语义上是 h1 → h3 跳级（读屏软件会提示层级不连续）。
   标签改成 h2 后，这里把视觉还原成与原来逐像素一致：
   浏览器对 h2 的默认字号/边距更大，必须显式覆盖。 */
.bot_list li h2.bot_tit{
  display:inline-block;
  font-weight:normal;
  font-size:18px;
  line-height:60px;
  margin:0 0 20px;
  border-bottom:3px solid rgba(255,255,255,.3);
  color:inherit;
}

/* 搜索页分组标题改为 h2：清掉浏览器默认 margin，保持原间距 */
h2.search_group_tit{margin:20px 0 0;font-weight:normal}

/* ============================================================
   23. 页脚版权条：版权 + 可点击备案号
   ------------------------------------------------------------
   备案号在合规上需要能点开查验（工信部 / 公安备案查询），
   原来是一行纯文本。这里拆成可换行的若干片，手机上不会挤成一行。
   ============================================================ */
.copyright{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
  column-gap:14px;row-gap:6px;line-height:1.9}
.copyright .cr-line{display:inline-block}
.copyright .cr-item{display:inline-block;white-space:nowrap}
.copyright a{color:inherit;text-decoration:none;border-bottom:1px dotted rgba(255,255,255,.45)}
.copyright a:hover,.copyright a:focus{color:#fff;border-bottom-color:#fff}

/* ============================================================
   24. 资料下载区（产品说明书 / 检测报告 / 新闻附件）
   ------------------------------------------------------------
   原实现只是一个带 ↓ 的普通链接，视觉上跟正文混在一起，
   用户很难看出「这是可下载的文件」。这里做成文件卡片：
   左侧类型标签 + 文件名 + 大小 + 右侧下载按钮。
   ============================================================ */
.attachment-box{
  margin:24px 0 10px;padding:18px 20px 14px;
  border:1px solid #e4eaf1;border-radius:8px;background:#fbfdff;
}
.attachment-title{
  margin:0 0 12px;padding:0 0 10px;
  font-size:17px;line-height:1.5;font-weight:600;color:#1d2b3a;
  border-bottom:1px solid #e9eff5;
}
.attachment-list{list-style:none;margin:0;padding:0}
.attachment-item{margin:0 0 8px}
.attachment-item:last-child{margin-bottom:0}

.attachment-link{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border:1px solid #e4eaf1;border-radius:6px;
  background:#fff;color:#33404d;text-decoration:none;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.attachment-link:hover,
.attachment-link:focus{
  border-color:#9ed3ff;background:#f6fbff;
  box-shadow:0 2px 10px -4px rgba(14,150,255,.35);
}

/* 类型标签：PDF 红、Word 蓝、Excel 绿、其余灰 */
.attachment-kind{
  flex:0 0 auto;min-width:46px;
  padding:3px 7px;border-radius:4px;
  font-size:11px;line-height:1.5;font-weight:600;text-align:center;
  background:#eef2f7;color:#5b6875;
}
.attachment-link[href$=".pdf"] .attachment-kind{background:#fdecec;color:#c0392b}
.attachment-link[href$=".doc"] .attachment-kind,
.attachment-link[href$=".docx"] .attachment-kind{background:#eaf2fd;color:#1b64c4}
.attachment-link[href$=".xls"] .attachment-kind,
.attachment-link[href$=".xlsx"] .attachment-kind{background:#e9f7ef;color:#1e7a43}
.attachment-link[href$=".zip"] .attachment-kind{background:#fff5e6;color:#a15c00}

.attachment-name{
  flex:1 1 auto;min-width:0;
  font-size:14.5px;line-height:1.6;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.attachment-size{
  flex:0 0 auto;font-size:12.5px;color:#8a97a4;
  font-variant-numeric:tabular-nums;
}
.attachment-dl{
  flex:0 0 auto;
  padding:4px 12px;border-radius:4px;
  background:#0e96ff;color:#fff;
  font-size:13px;line-height:1.6;
}
.attachment-link:hover .attachment-dl{background:#0878d1}
.attachment-note{margin:12px 0 0;font-size:12.5px;line-height:1.7;color:#96a1ad}

@media (max-width:640px){
  .attachment-box{padding:14px 12px 10px;margin:18px 0 8px}
  .attachment-title{font-size:16px}
  .attachment-link{padding:9px 10px;gap:8px;flex-wrap:wrap}
  .attachment-name{flex:1 1 100%;order:2;white-space:normal;font-size:14px}
  .attachment-kind{order:1}
  .attachment-size{order:3;margin-left:auto}
  .attachment-dl{order:4}
}

/* ---------- 25. 产品列表「含资料」角标 ----------
   卡片图右上角小标签，让客户在列表层就知道点进去能下载说明书。
   .pro-thumb 只是定位容器，不改变原有图片尺寸（仍由 .main_pro li img 控制）。 */
.pro-thumb{position:relative;display:block;line-height:0}
.pro-doc-badge{
  position:absolute;top:8px;right:8px;z-index:2;
  padding:2px 8px;border-radius:3px;
  background:rgba(14,150,255,.94);color:#fff;
  font-size:11.5px;line-height:18px;font-weight:500;
  box-shadow:0 1px 6px -1px rgba(0,0,0,.25);
  pointer-events:none;
}
@media (max-width:900px){
  .pro-doc-badge{top:6px;right:6px;font-size:11px;line-height:17px;padding:1px 6px}
}

/* ============================================================
   26. 正文图片浮动（文字环绕）
   ------------------------------------------------------------
   后台编辑器「图片左/右浮动」按钮会给图片加 uf-float-left / uf-float-right
   两个类（不用 inline style，因为会和编辑器给图片写的 width style 打架）。
   这里统一实现环绕效果：
     · 浮动图贴边排列，正文自动绕到另一侧
     · 宽度上限 50%，避免文字只剩一两个字宽
     · 标题/表格/列表等块级结构强制清浮动，不被文字挤歪
   ============================================================ */
.main_con .tupian img.uf-float-left,
.main_con img.uf-float-left{
  float:left;
  margin:0 18px 12px 0;
  max-width:50%;
  height:auto;
}
.main_con .tupian img.uf-float-right,
.main_con img.uf-float-right{
  float:right;
  margin:0 0 12px 18px;
  max-width:50%;
  height:auto;
}

/* 兼容早期只有 inline style 的旧内容（编辑器升级前保存的） */
.main_con .tupian img[style*="float:left"],
.main_con .tupian img[style*="float: left"]{
  float:left;margin:0 18px 12px 0;max-width:50%;height:auto;
}
.main_con .tupian img[style*="float:right"],
.main_con .tupian img[style*="float: right"]{
  float:right;margin:0 0 12px 18px;max-width:50%;height:auto;
}

/* 块级结构不允许被文字环绕 */
.main_con .tupian h1,
.main_con .tupian h2,
.main_con .tupian h3,
.main_con .tupian h4,
.main_con .tupian table,
.main_con .tupian ul,
.main_con .tupian ol,
.main_con .tupian blockquote,
.main_con .tupian pre,
.main_con .tupian .grid-layout,
.main_con .tupian details,
.main_con .tupian hr{
  clear:both;
}

/* 正文末尾清一次浮动，避免图片溢出到页脚/侧栏 */
.main_con::after,
.main_con .tupian::after{content:"";display:block;clear:both}

@media (max-width:640px){
  /* 手机上版心仅 ~350px，左右浮动会让文字只剩一条缝，直接改通栏 */
  .main_con .tupian img.uf-float-left,
  .main_con .tupian img.uf-float-right,
  .main_con .tupian img[style*="float"]{
    float:none!important;
    display:block;
    max-width:100%;
    margin:12px auto!important;
  }
}

/* ============================================================
   27. 产品详情页「相关产品」：自适应 4 列
   ------------------------------------------------------------
   问题：列表页的 .main_pro li 固定 width:280px（原站版心 1200 下正好 4 个）。
   但详情页内容区被左侧栏占去一部分，只剩约 890px，
   4×296=1184px 放不下，第 4 个被挤到第二行，右侧留一大片空白。

   解决：详情页相关产品改用 grid 自适应，列宽跟随容器；
   图片高度按 280:260 的原始比例保持，不拉伸变形。
   ============================================================ */
.related-pro{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  padding:20px 0 0;
}
.related-pro li{
  float:none;
  width:auto;
  margin:0;
  position:relative;
}
.related-pro li a{display:block}
.related-pro li img{
  width:100%;
  height:auto;
  /* 保持与原站一致的视觉比例，避免不同长宽比的图把行高撑乱 */
  aspect-ratio:280 / 260;
  object-fit:cover;
  border-radius:2px;
}
.related-pro .main_pro_tit{
  height:34px;
  line-height:34px;
  font-size:13.5px;
  padding:0 8px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* 中等屏：内容区变窄，3 列 */
@media (max-width:1200px){
  .related-pro{grid-template-columns:repeat(3, minmax(0, 1fr))}
}
/* 手机：2 列，标题允许换行避免截断 */
@media (max-width:640px){
  .related-pro{grid-template-columns:repeat(2, minmax(0, 1fr));gap:10px}
  .related-pro .main_pro_tit{
    height:auto;min-height:30px;line-height:1.5;
    padding:4px 6px;white-space:normal;
    font-size:12.5px;
  }
}

/* ============================================================
   28. 文章详情页「同栏目推荐」
   ------------------------------------------------------------
   替代原来的「上一页 / 下一页」（那时没有分类过滤，会跨栏目串联）。
   现在按栏目推荐，用带缩略图的横向卡片，比两行纯文字更有引导力。
   ============================================================ */
.related-articles{margin-top:28px}
.related-articles .main_tit{margin-bottom:14px}

.related-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
.related-list li{margin:0}

.related-list li > a{
  display:flex;
  gap:12px;
  padding:10px;
  border:1px solid #e6ebf1;
  border-radius:6px;
  background:#fff;
  text-decoration:none;
  color:#33404d;
  transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.related-list li > a:hover,
.related-list li > a:focus{
  border-color:#9ed3ff;
  background:#f6fbff;
  box-shadow:0 2px 10px -4px rgba(14,150,255,.35);
}

/* 缩略图：固定比例，缺图时用浅灰占位，保证卡片高度一致 */
.related-list img,
.related-list .related-noimg{
  flex:0 0 92px;
  width:92px;
  height:68px;
  object-fit:cover;
  background:#f0f4f8;
  border-radius:4px;
}

.related-info{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.related-title{
  font-size:14.5px;
  line-height:1.5;
  color:#1f2933;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.related-list li > a:hover .related-title{color:#0e96ff}
.related-summary{
  font-size:12.5px;
  line-height:1.6;
  color:#8a97a4;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.related-date{
  font-size:12px;
  color:#a8b3be;
  font-variant-numeric:tabular-nums;
}

@media (max-width:900px){
  .related-list{grid-template-columns:1fr}
}
@media (max-width:640px){
  .related-articles{margin-top:20px}
  .related-list img,
  .related-list .related-noimg{flex-basis:80px;width:80px;height:60px}
  .related-title{font-size:14px}
  .related-summary{display:none}
}
