/* ============================================================================
   2026-11-11 · 第十一轮视觉整改（末位加载，选择器全部限定，零删减）
   仅由含对应区块的 5 个页面引入：index.html / services.html / about.html /
   cases.html / warranty.html。放在 footer-compact.css 之后，确保不被后加载
   规则覆盖；所有规则带业务类名前缀，不影响其余 220 页。

   ① 首页数字条字号层级收敛
   ③ .section-deep FAQ 区「白字压亮机组照」反光修复
   ④ 首页企业微信按钮 → 点击原地弹出 240px 大码弹层
   ============================================================================ */

/* ---------------------------------------------------------------------------
   ① 数字条：原桌面 clamp(25,2.7vw,33)=33px、手机 26px，与 H1 26px 等大，
   明显盖过主 CTA 15px / 机型按钮 13.2px。收敛到 24 / 20px，只改字号。
   --------------------------------------------------------------------------- */
.page-home .hx-stats .st b{ font-size:24px !important; }
@media (max-width:560px){
  .page-home .hx-stats .st b{ font-size:20px !important; }
}

/* ---------------------------------------------------------------------------
   ③ FAQ 反光：线上实测 .section-deep 的深色渐变底被后加载规则覆盖成透明，
   只剩 opacity:.3 的亮机组照 + 半透明白卡 + 76% 白字，对比度约 1.3:1。
   补回深色底、压低背景图、卡片改深色高对比，机组照仍保留质感。
   --------------------------------------------------------------------------- */
.section-deep,
details.hm-fold.section-deep{
  background:linear-gradient(168deg,#061524 0%,#082036 46%,#061a2d 100%) !important;
  color:#fff !important;
}
.section-deep .bg-layer img{ opacity:.16 !important; }
.section-deep .bg-grid{ opacity:.18 !important; }
.section-deep .bg-layer::after{
  background:linear-gradient(180deg,rgba(5,18,32,.55),rgba(5,18,32,.68)) !important;
}
.section-deep .notice-card{
  background:rgba(7,26,44,.74) !important;
  border-color:rgba(120,190,240,.28) !important;
  border-left-color:#4a9bd8 !important;
  color:#eaf5ff !important;
  backdrop-filter:blur(2px);
}
.section-deep .notice-card b,
.section-deep .notice-card strong{ color:#fff !important; }
.section-deep .hm-t,
.section-deep h2,
.section-deep .section-title,
.section-deep .section-head{
  color:#fff !important;
  text-shadow:0 1px 8px rgba(0,0,0,.65);
}

/* ---------------------------------------------------------------------------
   ④ 点击原地弹码：默认不占位、不撑高首屏；无 JS 时原 <a href> 正常跳联系页。
   二维码 240 CSS px、严格 1:1、白底留边 12px（源图 396×396，DPR2 足够）。
   --------------------------------------------------------------------------- */
.wecom-modal{ display:none; position:fixed; inset:0; z-index:9999;
  align-items:center; justify-content:center; padding:20px; }
.wecom-modal[hidden]{ display:none !important; }
.wecom-modal.is-open{ display:flex; }
.wecom-modal-mask{ position:absolute; inset:0; background:rgba(4,16,29,.46);
  backdrop-filter:blur(1px); }
.wecom-modal-card{
  position:relative; z-index:1; width:min(340px,100%); box-sizing:border-box;
  padding:22px 20px 18px; border-radius:18px; background:#fff; text-align:center;
  box-shadow:0 24px 70px rgba(0,0,0,.38);
  animation:wecomModalIn .18s ease-out;
}
@keyframes wecomModalIn{ from{opacity:0;transform:translateY(8px) scale(.97)} to{opacity:1;transform:none} }
.wecom-modal-x{
  position:absolute; top:8px; right:10px; width:32px; height:32px;
  border:0; border-radius:50%; background:#f0f4f8; color:#33465b;
  font-size:22px; line-height:1; cursor:pointer;
}
.wecom-modal-x:hover,.wecom-modal-x:focus-visible{ background:#e2ecf5; outline:2px solid #0a4d8c; }
.wecom-modal-card h2{ margin:2px 26px 6px; font-size:17px; line-height:1.4; color:#0b1a2b; }
.wecom-modal-sub{ margin:0 0 14px; font-size:12.5px; line-height:1.55; color:#566b80; }
.wecom-modal-qr{
  display:inline-block; padding:12px; background:#fff; border:1px solid #e4ebf3;
  border-radius:14px; box-shadow:0 4px 14px rgba(10,40,80,.10);
}
.wecom-modal-qr img{
  display:block; width:240px; height:240px; max-width:68vw; max-height:68vw;
  -webkit-touch-callout:default; user-select:auto;
}
.wecom-modal-tip{ margin:13px 0 10px; font-size:12px; line-height:1.5; color:#6b8096; }
.wecom-modal-more{
  display:inline-block; font-size:12.5px; font-weight:700;
  color:#0a4d8c; text-decoration:none; padding:3px 4px;
}
.wecom-modal-more:hover,.wecom-modal-more:focus-visible{ text-decoration:underline; }
/* 第十六轮：弹层不再锁页面滚动。这里刻意「不设置任何 overflow」，
   保留站点 body 原有的 overflow-x:hidden / overflow-y:auto，避免覆盖后
   出现横向滚动条。脚本只给 body 加 .wecom-modal-open 作状态标记。 */
@media (max-width:400px){
  .wecom-modal-card{ padding:20px 14px 16px; }
  .wecom-modal-card h2{ font-size:16px; }
  .wecom-modal-qr{ padding:10px; }
}

/* ============================================================================
   2026-11-11 · 第十五轮（第 13 / 14 项取优落地，末位覆盖、零删减）
   A. 数字条「两行并一带」：数字与 3 秒直达四格同级，数字条 + 承诺条合一
   B. PC 悬停浮码：保留亮绿按钮，hover / focus 浮出 112px 白底码（零增高）
   C. 手机端：值班电话优先、绿按钮降级、副标题换成分端文案（零增高）
   D. 弹层：三态文案 + 保存二维码 / 先打电话，高度受限可滚动
   规则全部带 .page-home 或 .wecom-modal 前缀，不影响其余 220 页。
   ============================================================================ */

/* ---------------------------------------------------------------------------
   A · 原桌面 24px / 手机 20px 仍盖过主入口 13.5 / 12.5px；实测数字条 89px
   + 承诺条 48px = 137px（手机 222px）。收敛后桌面 72px / 手机 154px，
   8 项数据一条不删，手机端 4 条承诺由「折叠不可见」改为常显。
   --------------------------------------------------------------------------- */
.page-home .hx-stats{background:#f7fbff!important;border-bottom:0!important;}
.page-home .hx-stats-in{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
.page-home .hx-stats .st{display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;
  gap:1px 7px!important;padding:9px 14px 8px!important;border-left:1px solid #e4ebf3!important;
  border-top:0!important;min-width:0!important;}
.page-home .hx-stats .st:first-child{border-left:0!important;padding-left:0!important;}
.page-home .hx-stats .st b{display:inline!important;font-size:13.5px!important;line-height:1.35!important;
  font-weight:800!important;color:#0a4d8c!important;letter-spacing:0!important;}
.page-home .hx-stats .st b i{font-size:11px!important;margin-left:1px!important;}
.page-home .hx-stats .st>span{display:inline!important;margin:0!important;font-size:11.5px!important;
  line-height:1.4!important;color:#566b80!important;}
.page-home .hb-trustline{margin:0!important;padding:0!important;background:#f7fbff!important;
  border:0!important;border-radius:0!important;overflow:visible!important;}
.page-home .hb-trustline>summary{display:none!important;}
.page-home .hb-trustline>.hm-body{padding:0!important;display:block!important;}
.page-home .hx-trust{background:#f7fbff!important;border-top:1px dashed #e4ebf3!important;
  border-bottom:1px solid #dce9f6!important;}
.page-home .hx-trust-in{padding-top:6px!important;padding-bottom:9px!important;
  font-size:11px!important;gap:3px 16px!important;color:#6b8096!important;}
.page-home .hx-trust-in span{gap:4px!important;}
.page-home .hx-trust-in i{font-size:11px!important;}
@media (max-width:960px){
  .page-home .hx-stats-in{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .page-home .hx-stats .st{border-left:0!important;border-top:1px solid #e4ebf3!important;padding:7px 8px!important;}
  .page-home .hx-stats .st:nth-child(1),.page-home .hx-stats .st:nth-child(2){border-top:0!important;}
  .page-home .hx-stats .st:nth-child(even){border-left:1px solid #e4ebf3!important;padding-left:12px!important;}
  .page-home .hx-stats .st:first-child{padding-left:0!important;}
  .page-home .hx-stats .st b{font-size:12.5px!important;}
  .page-home .hx-stats .st b i{font-size:10.5px!important;}
  .page-home .hx-stats .st>span{font-size:11px!important;}
  .page-home .hx-trust-in{gap:2px 10px!important;font-size:10.5px!important;
    padding-top:5px!important;padding-bottom:8px!important;}
  .page-home .hx-trust-in i{font-size:10.5px!important;}
}

/* ---------------------------------------------------------------------------
   B · 第十六轮改为「常显可点缩略码」入口：把按钮左侧的 SVG 扫码图标换成
   一张真实的白底二维码缩略图，右下角放大角标明确「点开看大码」。
   取消 hover 浮码（悬停误触挡内容、触屏根本看不到），点整块原地弹 240px 大码。
   缩略码只作入口、不用于扫码，按钮仅增高约 8px，首屏代价极小。
   --------------------------------------------------------------------------- */
.page-home .hx-duty .hx-wecom{position:relative;padding:8px 13px!important;}
.page-home .hx-duty .hx-wecom-sub-m{display:none;}
.page-home .hx-duty .hx-wecom-ic{width:46px!important;height:46px!important;
  border-radius:9px!important;position:relative;}
.page-home .hx-wecom-qr{display:block;width:44px;height:44px;object-fit:contain;
  background:#fff;border-radius:6px;}
.page-home .hx-wecom-zoom{position:absolute;right:-6px;bottom:-6px;
  width:18px;height:18px;line-height:16px;text-align:center;border-radius:50%;
  background:#0a4d8c;color:#fff;border:2px solid #fff;box-sizing:content-box;
  font-size:14px;font-weight:800;}

/* ---------------------------------------------------------------------------
   C · 手机扫不了自己屏幕：值班电话放大并保持一键拨号，绿按钮降为次级，
   副标题改成分端文案（写进原有 <i>，不新增段落）。实测值班卡 323→319px。
   --------------------------------------------------------------------------- */
@media (max-width:720px){
  .page-home .hx-duty .num b{font-size:27px!important;}
  .page-home .hx-duty .hx-wecom{padding:7px 11px!important;
    background:rgba(7,193,96,.14)!important;border-color:rgba(7,193,96,.55)!important;
    animation:none!important;box-shadow:none!important;margin-bottom:12px!important;}
  .page-home .hx-duty .hx-wecom-ic{width:40px!important;height:40px!important;}
  .page-home .hx-wecom-qr{width:38px;height:38px;}
  .page-home .hx-wecom-zoom{width:16px;height:16px;line-height:14px;font-size:13px;}
  .page-home .hx-duty .hx-wecom-tx b{font-size:12.5px!important;}
  .page-home .hx-duty .hx-wecom-tx i{font-size:10.5px!important;color:rgba(255,255,255,.86)!important;}
  .page-home .hx-duty .hx-wecom-tx .hx-wecom-sub-d{display:none!important;}
  .page-home .hx-duty .hx-wecom-tx .hx-wecom-sub-m{display:block!important;}
}

/* ---------------------------------------------------------------------------
   D · 弹层三态：桌面（直接扫）/ 手机普通浏览器（保存→相册）/ 微信内（长按）。
   静态三套节点 + CSS 切换，无 JS 时桌面与手机版仍正确；JS 只负责微信内。
   增高内容用 max-height + 内部滚动兜住，避免小屏溢出。
   --------------------------------------------------------------------------- */
.wecom-modal-card{max-height:calc(100vh - 32px);overflow-y:auto;}
.wecom-modal-tip[data-env],.wecom-modal-steps[data-env]{display:none;}
.wecom-modal-tip[data-env="desktop"],.wecom-modal-steps[data-env="desktop"]{display:block;}
.wecom-modal-steps{margin:0 0 10px;padding:9px 11px;border-radius:10px;
  background:#f5f9fd;font-size:11.5px;line-height:1.65;color:#33465b;text-align:left;}
.wecom-modal-actions{display:none;gap:8px;justify-content:center;flex-wrap:wrap;margin:0 0 10px;}
.wecom-modal-download{display:inline-block;padding:8px 12px;border-radius:999px;
  background:#eef6ff;color:#0a4d8c;font-size:12px;font-weight:700;text-decoration:none;}
.wecom-modal-download:hover,.wecom-modal-download:focus-visible{background:#dcecf9;text-decoration:none;outline:2px solid #0a4d8c;}
@media (max-width:720px){
  .wecom-modal-tip[data-env="desktop"],.wecom-modal-steps[data-env="desktop"]{display:none;}
  .wecom-modal-tip[data-env="mobile"],.wecom-modal-steps[data-env="mobile"]{display:block;}
  .wecom-modal-actions{display:flex;}
}
body.wx-in .wecom-modal-tip[data-env],
body.wx-in .wecom-modal-steps[data-env]{display:none!important;}
body.wx-in .wecom-modal-tip[data-env="wechat"],
body.wx-in .wecom-modal-steps[data-env="wechat"]{display:block!important;}

/* ============================================================================
   2026-11-11 · 第十六轮（交互改动，末位覆盖、零删减）
   E. 大码本体可点：手机普通浏览器点二维码即保存，再走微信「扫一扫 → 相册」；
      桌面点码不下载（直接扫屏幕），微信内点码不下载（长按识别）。
   F. 弹层不阻断浏览：body 不锁滚动、遮罩减淡、卡片 overscroll-behavior:contain；
      页面下滑 > 60px 由脚本自动收起，扫码完可直接看后面的内容。
   ============================================================================ */
a.wecom-modal-qr{ text-decoration:none; cursor:zoom-in; }
.wecom-modal-qr-hint{ display:none; margin-top:8px; font-size:11.5px;
  font-weight:700; color:#0a4d8c; letter-spacing:0; }
.wecom-modal-dismiss{ margin:9px 0 0; font-size:11px; line-height:1.5; color:#8496a8; }
@media (max-width:720px){
  a.wecom-modal-qr{ cursor:pointer; }
  .wecom-modal-qr-hint[data-env="mobile"]{ display:block; }
}
body.wx-in .wecom-modal-qr-hint{ display:none!important; }
body.wx-in .wecom-modal-qr-hint[data-env="wechat"]{ display:block!important; }
/* 微信内下载按钮无效（正确路径是长按大码识别），只留「先打电话」。 */
body.wx-in .wecom-modal-download[download]{ display:none!important; }
/* 卡片内部滚动不带动页面，避免看说明时误触发「下滑收起」。 */
.wecom-modal-card{ overscroll-behavior:contain; }
/* 375×667 等小屏：把码收敛到 200px（仍可反解）、压紧留白，
   让二维码 / 保存按钮 / 关闭提示一屏全见，不必在卡片里再滚一次。 */
@media (max-width:720px) and (max-height:700px){
  .wecom-modal-card{ padding:16px 14px 12px; }
  .wecom-modal-card h2{ font-size:15px; margin-bottom:4px; }
  .wecom-modal-sub{ margin-bottom:9px; font-size:11.5px; }
  .wecom-modal-qr{ padding:8px; }
  .wecom-modal-qr img{ width:200px; height:200px; max-width:54vw; max-height:54vw; }
  .wecom-modal-qr-hint{ margin-top:6px; }
  .wecom-modal-tip{ margin:9px 0 7px; font-size:11px; }
  .wecom-modal-steps{ margin-bottom:7px; padding:6px 9px; font-size:11px; }
  .wecom-modal-actions{ margin-bottom:7px; }
  .wecom-modal-download{ padding:7px 10px; font-size:11.5px; }
  .wecom-modal-dismiss{ margin-top:6px; }
}

/* ==== R18:B2F:BEGIN ==== */
/* 第十八轮 · 首页「按机组找服务」≤389px 由单列改双列精简。
   只作用于末位覆盖表的 @media (max-width:389px)：390 / 412 / 768 / 1280
   与改动前逐像素一致；home-a.css 的其它断点一律不动。
   图片 96px、标题 11.5px、故障描述 2 行（≤340px 放宽 3 行）、
   「在线报修」32px 触控高度且占满列宽、详情链接单独一行；
   4 张卡共 12 条链接一条不删。仅 index.html 含 .ha-grid。
   ============================================================================ */
@media (max-width:389px){
  .ha-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  .ha-card-media{height:96px!important;}
  .ha-card-name{font-size:11.5px!important;left:8px!important;right:8px!important;
    bottom:7px!important;line-height:1.25!important;}
  .ha-card-tag{font-size:9px!important;padding:2px 5px!important;top:6px!important;left:6px!important;}
  .ha-card-body{padding:7px 8px 8px!important;}
  .ha-card-body p{font-size:10px!important;line-height:1.42!important;margin-bottom:6px!important;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  .ha-card-cta{flex-wrap:wrap!important;gap:4px 6px!important;}
  .ha-book{flex:1 1 100%!important;min-height:32px!important;font-size:11px!important;
    padding:5px 6px!important;}
  .ha-more{font-size:10px!important;min-height:20px!important;display:inline-flex!important;
    align-items:center!important;}
}
@media (max-width:340px){
  /* 抵消基础样式的 +0.192px 正字距：320px 下描述由 3 行收成 2 行，
     消除末行孤字，卡高与 340/360/375/389 统一为 215px（实测 0 截断）。 */
  .ha-card-body p{-webkit-line-clamp:3!important;letter-spacing:-0.3px!important;}
  .ha-card-name{font-size:11px!important;}
}
/* ==== R18:B2F:END ==== */

/* R58 · 弹窗首屏身份提示：与页脚 / 联系页 / 故障码品牌卡同一口径，绿底突出、不增高首屏 */
.wecom-modal-sub{color:#0b7a45!important;font-weight:600;background:#f4fbf6;
  border:1px solid #d8efdf;border-radius:9px;padding:7px 10px;margin-bottom:10px!important}
