/* ================================================================
   BOHAN brand layer  —  叠加在 main.css 之上
   只做品牌化与必要修正，不改变原站布局度量
   ================================================================ */

:root{
  --brand:        #086200;
  --brand-hover:  #0a7a00;
  --brand-dark:   #064a00;
  --brand-tint:   #e8f0e4;
  --accent:       #003c92;
  --accent-hover: #004bb5;
  --ink:          #333333;
  --body:         #666666;
}

/* ---------- 1. 首页头部压在亮色大图上：加一层暗色蒙版，保证导航与 logo 可读 ---------- */
.head .heb{
  background: linear-gradient(180deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.58) 70%, rgba(0,0,0,.18) 100%);
}

/* ---------- 2. 内页（白底头部）用彩色 logo 时不会被蒙版影响 ---------- */
.page .heb{ background: transparent; }

/* ---------- 3. CTA 带：正文不压按钮 ---------- */
.main4 .m4n{ padding-right: 250px; }

@media screen and (max-width: 999px){
  .main4 .m4n{ padding-right: 0; }
}

/* ---------- 4. 统计数字：避免 .timer 内联宽度抖动 ---------- */
.m2shu .timer{ display: inline-block; min-width: 1ch; }

/* ---------- 5. 图片懒加载占位底色，避免加载瞬间塌陷 ---------- */
.m1tu, .m5tu, .m2tu{ background: #f2f2f2; }

/* ---------- 6. 辅色（品牌蓝）用法 ---------- */
/* 搜索图标、表单 focus、次级图标 hover */
.suo, .sou1, .search-btn{ color: var(--accent); }
.suo:hover{ color: var(--accent-hover); }

input:focus, textarea:focus, select:focus{
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(0,60,146,.12);
}

/* 面包屑分隔与当前项 */
.mianbao a:hover{ color: var(--accent); }

/* 页脚社交图标 hover 用蓝 */
.foot .heshejiao a:hover, .heshejiao a:hover{
  background: var(--accent); border-color: var(--accent);
}

/* 一级菜单下划线与二级菜单顶部描边保持绿 */
.daohang > li > a:hover, .daohang > li.on > a{ color: var(--brand); }

/* ---------- 7. 移动端溢出修复（原站缺陷：flex 子项 min-width 撑破视口） ---------- */
@media screen and (max-width: 999px){
  .m1lie, .m5lie, .m3lie { min-width: 0; }

  /* 产品卡标题：两行截断，不再把整行撑宽 */
  .m1a{
    white-space: normal !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }

  /* 正文段落允许断词，避免长单词撑破容器 */
  .m2p, .m2p p, .m4p, .m4p p, .prrp, .prrp p{
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .m2rn{ padding-left: 4%; padding-right: 4%; }
  .main4 .m4n{ padding-left: 4%; padding-right: 4%; }
}


/* ---------- 9. 产品详情主图：限制高度，一屏内可看全 ---------- */
.prob-pic .prob-pic-big-img{
  height: clamp(320px, 44vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.prob-pic .prob-pic-big-img img{
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.prob-pic .prob-pic-big-img .zoomPad{
  max-height: 100%;
  display: flex;
  align-items: center;
}

@media screen and (max-width: 767px){
  .prob-pic .prob-pic-big-img{ height: 300px; }
}
