/* ============================================================
 * override.css —— gz-cms 现有机制样式补充 + 响应式覆盖
 * 在 skin style/page/common.css 之后加载；不改动参考站桌面基准观感
 * ============================================================ */

/* ---------- 基础兜底 ---------- */
body { line-height: 1.6; }
img { max-width: 100%; }
/* banner 横幅图按蓝本 1920px 居中铺满，不受全局 max-width 收缩 */
.banner li img { max-width: none; }
.clearfix::after { content: ""; display: block; clear: both; }

/* 视觉隐藏但保留在 DOM 中，供 SEO / 无障碍读取的唯一 H1 等标题使用 */
.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; }

/* 移动端固定底部拨号条：桌面默认隐藏，仅在窄屏媒体查询内显示 */
.m-call-bar { display: none; }
.top .toprig .it4 .tel a,
.footer .p2 a { color: inherit; text-decoration: none; }
.top .toprig .it4 .tel a:hover,
.footer .p2 a:hover { color: #0aa6f7; }

/* ---------- 内页左右栏基准宽度（w1200=1200，左栏 245，右栏 920，中间留 35px 间距） ---------- */
.submian .subright { width: 920px; }

/* 顶部热线：去掉“全国咨询热线”小字后号码与前面三个信息项同行，垂直居中对齐 */
.top .toprig .it4 { width: 230px; padding-top: 12px; text-align: right; }
.top .toprig .it4 .tel { font-size: 30px; line-height: 40px; }

/* ---------- 侧栏推荐产品：图片等高裁剪，标题单行显示省略 ---------- */
.leftprocomt li img { width: 117px; height: 87px; object-fit: cover; border-radius: 6px; display: block; }
.leftprocomt li p {
  font-size: 12px; line-height: 20px; height: 20px; margin: 6px 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 分页（现有 paginate() 输出 .my_page，对齐参考站 pglist 视觉） ---------- */
.my_page { text-align: center; padding: 20px 0 30px; width: 100%; clear: both; }
.my_page li { display: inline-block; margin: 0 3px; vertical-align: middle; }
.my_page li a,
.my_page li strong {
  display: inline-block; min-width: 33px; line-height: 33px; padding: 0 12px;
  border: 1px solid #ddd; background: #fff; color: #666; border-radius: 2px; font-size: 14px;
}
.my_page li strong { color: #fff; background: #0aa6f7; border-color: #0aa6f7; }
.my_page li a:hover { border-color: #0aa6f7; color: #0aa6f7; }

/* ---------- 主色统一：覆盖 skin 残留织梦红（参考站主体为亮蓝 #0aa6f7） ---------- */
.pglist a:hover { border-color: #0aa6f7; }
.pglist .hover { background: #0aa6f7; border-color: #0aa6f7; }
.submian .sobtitle a.now { color: #0aa6f7; }

/* ---------- 留言表单补充（参考站 formData / form_book） ---------- */
.formData textarea {
  width: 100%; box-sizing: border-box; min-height: 120px; resize: vertical;
  border: 1px solid #ddd; border-radius: 2px; padding: 10px; font-family: inherit; font-size: 14px; color: #333;
}
.formData .item.liuyan label { vertical-align: top; }
.msg-ok {
  background: #eaf6ff; color: #0a7fc4; border: 1px solid #bfe6fb;
  border-radius: 3px; padding: 10px 12px; margin-bottom: 12px;
}

/* ---------- 详情页单图与正文兜底 ---------- */
.MainBg #OriginalPic img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.ArticleTencont p { margin: 10px 0; }
.ArticleTencont img { max-width: 100%; height: auto; }

/* ---------- 产品/案例卡片标题单行省略，避免长标题撑高浮动错位 ---------- */
.ipro .item a.txt { overflow: hidden; }
.ipro .item h3 { line-height: 68px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 三列网格：每排第三列去掉右间距，保证三张卡片在 920px 右栏内排满一行 */
.submian .subright .ipro .item:nth-child(3n) { margin-right: 0; }

/* 首页案例卡片：标题两行内、摘要两行内裁剪，给底部"详情"按钮预留位置，避免文字压按钮 */
.index .textlist li h3 { height: 80px; overflow: hidden; }
.index .textlist .desc { height: 48px; overflow: hidden; }

/* ---------- 详情页静态分享条（结构对齐蓝本 bdshare，不引入第三方脚本） ---------- */
.share.bdsharebuttonbox { margin: 15px 0; font-size: 13px; color: #666; }
.share.bdsharebuttonbox a { display: inline-block; vertical-align: middle; margin-right: 10px; }
.share.bdsharebuttonbox .bds_more { color: #666; margin-right: 6px; }
.share.bdsharebuttonbox .bds_qzone,
.share.bdsharebuttonbox .bds_weixin,
.share.bdsharebuttonbox .bds_sqq,
.share.bdsharebuttonbox .bds_tsina,
.share.bdsharebuttonbox .bds_tqq { width: 16px; height: 16px; background: #e6e6e6; border-radius: 2px; }
.share.bdsharebuttonbox .bds_qzone:hover,
.share.bdsharebuttonbox .bds_weixin:hover,
.share.bdsharebuttonbox .bds_sqq:hover,
.share.bdsharebuttonbox .bds_tsina:hover,
.share.bdsharebuttonbox .bds_tqq:hover { background: #0aa6f7; }

/* ---------- 页脚友情链接（深色 footer 底部一行） ---------- */
.footer-links { padding: 18px 0 6px; border-top: 1px solid #333; margin-top: 10px; line-height: 26px; font-size: 13px; }
.footer-links .flabel { color: #999; margin-right: 6px; }
.footer-links a { color: #ccc; display: inline-block; margin: 0 2px; }
.footer-links a:hover { color: #0aa6f7; }
.footer-links i { color: #555; font-style: normal; padding: 0 4px; }
.footer-links i:last-child { display: none; }

/* ---------- 组合 LOGO：图标 + 动态公司名/英文（后台改站点名即跟随显示） ---------- */
.top_main .logo.logo-combo { display: inline-flex; align-items: center; gap: 14px; margin-top: 16px; }
.logo-combo .logo-mark { width: 58px; height: auto; display: block; flex: none; }
.logo-combo .logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.logo-combo .logo-name { font-size: 22px; font-weight: 700; color: #1d1d1d; white-space: nowrap; line-height: 1.2; }
.logo-combo .logo-en { font-size: 12px; color: #777; margin-top: 6px; white-space: nowrap; line-height: 1.2; }

/* ============================================================
 * 响应式（参考站为固定宽桌面站，以下为现有 CMS 响应式机制补充）
 * ============================================================ */
@media (max-width: 1024px) {
  html { min-width: 0 !important; }
  .w1200 { width: 100%; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
  .submian .subright { width: auto !important; }
}

@media (max-width: 768px) {
  /* 窄屏彻底解除桌面 1200px 最小宽度，锁死文档宽度=视口，避免 fixed 条按宽文档定位被裁 */
  html, body { min-width: 0 !important; width: 100% !important; max-width: 100% !important; overflow-x: hidden !important; }
  /* 容器与内页左右栏堆叠 */
  .w1200 { padding-left: 12px; padding-right: 12px; }
  .submian .subleft,
  .submian .subright { width: 100% !important; float: none !important; }
  .submian .subleft { margin-bottom: 20px; }

  /* 固定底部拨号条：为条高预留底部空间，避免版权信息被遮挡 */
  body { padding-bottom: 56px; overflow-x: hidden; }
  .m-call-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    height: 52px; box-sizing: border-box;
    background: linear-gradient(90deg, #0aa6f7, #0a86d8); color: #fff; text-decoration: none;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  }
  .m-call-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; flex: none; }
  .m-call-label { position: absolute; left: 44px; top: 50%; transform: translateY(-50%); font-size: 13px; white-space: nowrap; }
  .m-call-num { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; }

  /* 顶部口号条目隐藏，热线堆叠到 logo 下方 */
  .top .logo { float: none !important; display: block; }
  .top .toprig { width: 100% !important; float: none !important; display: block; }
  .top .toprig .item.it1,
  .top .toprig .item.it2,
  .top .toprig .item.it3 { display: none !important; }
  .top .toprig .item.it4 { float: none !important; width: 100% !important; text-align: left; margin: 8px 0 0; }
  .logo-combo .logo-name { font-size: 18px; }
  .logo-combo .logo-en { white-space: normal; }
  .logo-combo { margin-top: 0; }

  /* 内页移动端：面包屑 → 正文 → 侧栏，避免用户先看到分类/推荐才看到内容 */
  .submian .w1200 { display: flex; flex-direction: column; }
  .submian .sobtitle { order: -2; }
  .submian .subright { order: -1; }
  .submian .subleft { order: 0; }

  /* 首页板块英文副标题窄屏允许换行、缩字号，避免右侧裁切 */
  .index .title p { font-size: 12px !important; white-space: normal !important; overflow-wrap: break-word; word-break: break-word; padding-top: 10px; }

  /* 首页轮播与内页大图降高、去掉最小宽度 */
  #banner_main .banner { height: 240px !important; }
  #banner { min-width: 0 !important; }
  .banner li img { width: 100% !important; left: 0 !important; margin-left: 0 !important; height: 240px !important; object-fit: cover; }
  .nybanner { height: 150px !important; }
  .nybanner img { height: 150px !important; object-fit: cover; }

  /* 导航横向滚动，避免下拉挤压换行 */
  .nav_main { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  #nav { width: auto !important; }
  #nav .navlist { white-space: nowrap; }
  #nav .navlist li { float: none; display: inline-block; }
  #nav .navlist .subnav { position: static; opacity: 1; visibility: visible; display: none; }
  #nav .navlist li:hover .subnav { display: block; }

  /* 首页案例/产品网格两列：覆盖 skin 固定 386px 内部图宽 */
  .index .icase .list { width: 100% !important; }
  .index .icase .list li,
  .submian .subright .ipro .item { width: calc(50% - 13px) !important; margin-right: 13px !important; }
  .index .icase .list li:nth-child(2n),
  .submian .subright .ipro .item:nth-child(2n) { margin-right: 0 !important; }
  .index .icase .list li .img,
  .index .icase .list li .img img { width: 100% !important; height: auto !important; }
  .index .icase .list li .p { width: 100% !important; }

  /* 新闻图文列表堆叠：图在上、文在下 */
  .submian .subright .thumblist .item a .img,
  .submian .subright .thumblist .item a .txt { float: none !important; width: 100% !important; }
  .submian .subright .thumblist .item a .img { margin-bottom: 10px; }

  /* 案例/资讯两栏堆叠 */
  .floor_4 .textlist .list li,
  .indnews .cont .newsBox,
  .indnews .cont .txtlistbox { float: none !important; width: 100% !important; }
  .floor_4 .textlist .list li { height: auto !important; }
  .floor_4 .textlist li h3,
  .floor_4 .textlist .desc { height: auto !important; }
  .floor_4 .textlist li span { position: static; margin-top: 10px; }
  .indnews .cont .newsBox { margin-bottom: 16px; }

  /* 解除首页横滑插件注入的固定轨道宽度：窄屏服务流程两步一行、案例单列堆叠，隐藏翻页箭头 */
  #liuc .tempWrap, #ichoose .tempWrap { width: 100% !important; }
  #liuc .bd ul, #ichoose .bd ul { width: 100% !important; left: 0 !important; }
  #liuc .prev, #liuc .next, #ichoose .hd .prev, #ichoose .hd .next { display: none !important; }
  #liuc li.item { float: left !important; width: 50% !important; margin-bottom: 18px; }
  #liuc li .jtou { display: none !important; }
  .iabout .iaboutbox .txt,
  .iabout .iaboutbox .img { float: none !important; width: 100% !important; }
}

@media (max-width: 480px) {
  /* 单列网格 */
  .index .icase .list li,
  .submian .subright .ipro .item { width: 100% !important; margin-right: 0 !important; }
  .index .icase .list li .img,
  .index .icase .list li .img img { width: 100% !important; height: auto !important; }

  /* 表单两列收为一列 */
  .formData .item,
  .formData .item.mr0 { width: 100% !important; margin-right: 0 !important; }

  /* 轮播高度再降 */
  #banner_main .banner { height: 190px !important; }
  .banner li img { height: 190px !important; margin-left: 0 !important; }
}
