/* ===== 前台插件补充样式：预约小插件 + 动态页通用 ===== */

/* 原站已隐藏 .form_mod，这里按需显示（后台可一键关闭） */
.form_mod{display:block !important;}

/* ===== 首页幻灯（.fullSlide）加载即占位，避免图片加载完成后整页跳动 =====
 * 原版 style.css 里 `.bd li img{width:90%;height:90%}` 的百分比高度无效，
 * 图片未下载完时容器只剩 min-height:300px，图片一到就撑到 425/566px，整页内容被推下去。
 * 这里按原图（1300×426）比例预留宽高，图片没下载完也不会塌陷，视觉与原版一致。 */
.fullSlide .bd li img{width:90%;height:auto;aspect-ratio:1300/426;object-fit:cover;}

/* 滚动条常驻预留：页面图片陆续加载变长时，不会因滚动条突然出现把可视宽度挤窄 15px，
 * 从而避免幻灯单元宽度与容器宽度不一致造成的横向错位。 */
html{scrollbar-gutter:stable;}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll;}}

/* 分站地区入口：放在页眉顶部信息条（.topbar）左侧，显示「当前地区 | 切换地区」 */
.cms-region-entry{float:left;display:inline-block;height:20px;line-height:18px;margin:5px 0 0 14px;padding:0 9px;
  border:1px solid rgba(255,255,255,.6);border-radius:2px;color:#fff;font-size:12px;text-decoration:none;}
.cms-region-entry b{font-weight:normal;color:#fff;}
.cms-region-entry i{font-style:normal;margin:0 5px;color:rgba(255,255,255,.5);}
.cms-region-entry span{color:#dce9fb;}
.cms-region-entry:hover{background:#fff;border-color:#fff;color:#04479E;text-decoration:none;}
.cms-region-entry:hover b,.cms-region-entry:hover i,.cms-region-entry:hover span{color:#04479E;}

/* 栏目内容：仅在后台填写后出现，不改动原版列表结构 */
.cms-category-content{clear:both;overflow:hidden;line-height:1.9;color:#444;font-size:14px;margin:8px 0 18px;}
.cms-category-content p{margin:0 0 12px;}
.cms-category-content img,.cms-category-content video{max-width:100%;height:auto;}
.cms-category-content table{border-collapse:collapse;width:100%;}
.cms-category-content td,.cms-category-content th{border:1px solid #ddd;padding:6px 8px;}

/* 内容图片右下角LOGO水印（使用原站 water.gif，叠在图片上不影响原图） */
.cms-wm{position:relative;display:inline-block;max-width:100%;line-height:0;}
.cms-wm::after{content:"";position:absolute;right:0;bottom:0;width:117px;height:36px;background:url('/images/default/water.gif') no-repeat right bottom;opacity:.72;pointer-events:none;z-index:2;}
.cms-wm img{max-width:100%;height:auto;}

/* 预约表单在窄屏下的兜底，保持原版桌面外观不变 */
@media (max-width: 1000px){
  .form_mod .leftinfo{width:100%;float:none;padding:16px 20px 0;}
  .form_mod .form_box{width:100%;float:none;}
}

/* 移动端：页眉顶条左侧标语可能很长，截断以免与右侧地区入口重叠 */
@media (max-width: 900px){
  .topbar .lft{max-width:calc(100% - 152px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .cms-region-entry{float:right;margin:5px 8px 0 0;padding:0 7px;}
}

/* ===== 列表项没有可用图片时的占位 =====
 * 之前产品/图集列表无图会显示 /images/default/nopic.jpg（灰底空框），
 * 或者把页头 logo 拉伸成竖条纹，看起来很坏。现在改为一个浅色虚线占位块。 */
.pro_l_c ul li.cms-noimg .cms-noimg-box{
  display:block;width:268px;height:220px;margin:5px 0;box-sizing:border-box;
  background:#f7f9fc;border:1px dashed #e2e9f1;border-radius:3px;
  color:#b8c4d1;font-size:13px;line-height:220px;text-align:center;overflow:hidden;
}
.ptn_div ul li.cms-noimg .cms-noimg-box{
  display:block;width:224px;height:100px;margin:0 0 5px;box-sizing:border-box;
  background:#f7f9fc;border:1px dashed #e2e9f1;border-radius:3px;
  color:#b8c4d1;font-size:12px;line-height:100px;text-align:center;overflow:hidden;
}
@media (max-width:900px){
  .pro_l_c ul li.cms-noimg .cms-noimg-box{width:100%;height:10rem;line-height:10rem;}
  .ptn_div ul li.cms-noimg .cms-noimg-box{width:100%;height:6rem;line-height:6rem;}
}

/* ===== 列表标题改为 h2（SEO：一页只保留一个 h1）=====
 * 原站栏目列表把每条文章标题都写成 h1，一页 20 个 h1；
 * 改成 h2 后样式与原 h1 完全一致（字体/行高/字号/颜色），版面不变。 */
.s_list_data h2{font-family:"Microsoft YaHei","微软雅黑",sans-serif;line-height:45px;color:#333;font-size:30px;overflow:hidden;}
@media (max-width:900px){
  .s_list_data h2{font-size:1rem;line-height:200%;}
}

/* ===== 分站页（/region/xxx/）内容样式 =====
 * 这些 section（region-hero / region-channels / region-news）原本没有任何样式，
 * 标题、地址、16 个区链接、栏目列表全部挤成一段纯文字，PC 和手机上都难辨认。 */
.region-hero{padding:6px 0 18px;}
.region-hero h1{font-size:24px;color:#04479E;font-weight:bold;line-height:1.4;margin-bottom:10px;font-family:"Microsoft YaHei",sans-serif;}
.region-hero p{font-size:13px;color:#666;line-height:1.9;}
.region-sub{font-size:13px;color:#888;margin-bottom:4px;}
.region-badge{display:inline-block;padding:1px 7px;margin-right:6px;background:#e8f1fc;color:#04479E;border-radius:2px;font-size:12px;}
.region-brand{font-size:15px;color:#333;font-weight:bold;margin:8px 0 2px;}
.region-tel{color:#04479E;}
.region-switcher{margin-top:12px;padding:10px 12px;background:#f5f9fe;border:1px solid #e4edf8;line-height:2.4;font-size:13px;}
.region-switcher span{color:#04479E;font-weight:bold;margin-right:4px;}
.region-switcher a{display:inline-block;padding:2px 10px;margin:0 6px 4px 0;background:#fff;border:1px solid #dbe5f1;border-radius:2px;color:#3a5a86;text-decoration:none;}
.region-switcher a:hover{border-color:#04479E;color:#04479E;}
.region-switcher a.active{background:#04479E;border-color:#04479E;color:#fff;}
.region-switcher .rg-main-tag{font-style:normal;font-size:11px;color:#f0a500;margin-left:2px;}
.region-switcher a.active .rg-main-tag{color:#ffe08a;}
.region-switcher .rg-more{color:#04479E;border-style:dashed;}

.region-channels{margin:24px 0 10px;}
.region-channels h2{font-size:18px;color:#04479E;font-weight:bold;padding-left:10px;border-left:3px solid #04479E;line-height:1.2;margin-bottom:12px;font-family:"Microsoft YaHei",sans-serif;}
.region-cat-list{display:flex;flex-wrap:wrap;}
.region-cat{display:inline-block;width:calc(20% - 10px);margin:0 10px 10px 0;padding:8px 10px;background:#f7fafd;border:1px solid #e4edf8;border-radius:2px;font-size:13px;color:#33507a;text-decoration:none;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.region-cat:hover{background:#04479E;border-color:#04479E;color:#fff;}

.region-news{margin:10px 0 24px;}
.region-news-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4edf8;padding-bottom:8px;margin-bottom:6px;}
.region-news-head h2{font-size:18px;color:#04479E;font-weight:bold;font-family:"Microsoft YaHei",sans-serif;}
.region-more{font-size:13px;color:#888;text-decoration:none;}
.region-news-item{padding:8px 0;border-bottom:1px dashed #eef2f7;font-size:14px;line-height:1.7;}
.region-news-item a{color:#33507a;text-decoration:none;}
.region-news-item a:hover{color:#04479E;}

@media (max-width:900px){
  .region-hero h1{font-size:19px;}
  .region-cat{width:calc(50% - 8px);margin:0 8px 8px 0;}
  .region-switcher{line-height:2.6;padding:8px 10px;}
  .region-switcher span{display:block;margin-bottom:2px;}
  .region-switcher a{padding:3px 8px;margin:0 4px 4px 0;font-size:12px;}
}

/* ===== 服务区域（分站链接）：放在页脚上方，PC 与手机都可见 ===== */
.cms-region-links{background:#f4f8fd;border-top:1px solid #e2eaf4;}
.cms-region-links .wrapper{padding:14px 0 10px;line-height:2;}
.cms-region-links .t{display:inline-block;color:#04479E;font-size:13px;font-weight:bold;margin-right:6px;}
.cms-region-links .ls a{display:inline-block;margin:0 12px 4px 0;font-size:13px;color:#3a5a86;text-decoration:none;}
.cms-region-links .ls a:hover{color:#04479E;text-decoration:underline;}

/* ===== 移动端（≤900px）版面修复 =====
 * 原站模板有一半模块是 PC 定宽写死的：.form_mod .leftinfo 宽 770px、.bd 左内边距 310px、
 * 客户数数字 66px，「累计已有 3895 名客户」这类内容在 390px 屏上会被挤成竖排并溢出屏幕。
 * 这里改成流式宽度，PC 端（>900px）完全不受影响。 */
@media (max-width:900px){
  /* 1. 全局：禁止横向溢出，媒体自适应 */
  html,body{max-width:100%;overflow-x:hidden;}
  img,video,iframe{max-width:100%;height:auto;}
  .wrapper{width:100%!important;max-width:100%!important;box-sizing:border-box;}
  body{padding-bottom:56px;} /* 给底部固定工具条让位 */

  /* 2. 页眉：保留「昆西空压机…」标语，地区入口靠右；标语超宽自动省略 */
  .topbar .wrapper{display:flex;align-items:center;height:30px;line-height:30px;padding:0 10px;box-sizing:border-box;}
  .topbar .lft{display:block;flex:1 1 auto;min-width:0;max-width:none;float:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;}
  .topbar .lft .h5toptel{display:none;}
  .topbar ul,.topbar .bdsharebuttonbox{display:none;}
  .cms-region-entry{float:none!important;flex:0 0 auto;margin:0 0 0 6px!important;height:20px;line-height:18px;padding:0 7px;position:relative;z-index:1002;}

  /* 3. 首页幻灯：满宽显示，按 1300×426 原图比例撑高，不再左右各留 5% 白边 */
  .fullSlide{margin-top:96px;min-height:0;}
  .fullSlide .bd li img{width:100%;height:auto;aspect-ratio:1300/426;object-fit:cover;}

  /* 4. 预约 / 客户数模块：定宽 + 大内边距是竖排溢出的根因 */
  .form_mod{height:auto;min-height:0;padding-bottom:18px;background-size:cover;background-position:center top;}
  .form_mod .leftinfo{width:100%!important;float:none;padding:18px 14px 0;box-sizing:border-box;}
  .form_mod .leftinfo h3{font-size:16px;line-height:1.6;margin-bottom:6px;}
  .form_mod .leftinfo h5{font-size:15px;line-height:1.6;}
  .form_mod .leftinfo .txt1{font-size:14px;line-height:1.8;}
  .form_mod .leftinfo .txt1 strong{font-size:26px;}
  .form_mod .leftinfo .txt1 strong span{margin:0 3px;}
  .form_mod .leftinfo .bd{padding-left:0!important;font-size:14px;line-height:1.8;}
  .form_mod .leftinfo .bd dt{font-size:17px;height:auto;line-height:1.8;background-position:left .45em;padding-left:22px;}
  .form_mod .leftinfo .bd dd{font-size:13px;padding-bottom:4px;}
  .form_mod .form_box{width:100%!important;float:none;height:auto;padding-bottom:14px;box-sizing:border-box;}
  .form_mod .form_box h3{font-size:16px;}
  .form_mod .form_box .list li{height:auto;margin-bottom:8px;}
  .form_mod .form_box .list li label{width:78px;line-height:32px;font-size:13px;}
  .form_mod .form_box .list li .text{width:calc(100% - 88px);height:32px;box-sizing:border-box;}

  /* 5. 服务区域链接：手机上两列排布，点击热区够大 */
  .cms-region-links .wrapper{padding:12px 14px 6px;}
  .cms-region-links .t{display:block;margin:0 0 6px;font-size:13px;}
  .cms-region-links .ls a{display:inline-block;min-width:44%;padding:6px 10px;margin:0 4px 8px 0;
    font-size:13px;background:#fff;border:1px solid #dbe5f1;border-radius:2px;box-sizing:border-box;}
}
