/* ============================================================================
   首页 · 手机端版面压缩（hm- 命名空间，仅首页引入）
   原则：桌面端（>=721px）折叠层完全透明，内容与改造前逐字节一致；
        仅 max-width:720px 折叠/收紧；不删任何正文、链接、图片、H 标签。
   ============================================================================ */

/* ---------- 桌面端：details 自带 open，只隐藏折叠按钮，内容与改造前一致 ----------
   注意：Chrome 对未 open 的 details 用 content-visibility 裁剪内容，CSS 无法覆盖，
   因此初始状态由 HTML 的 open 提供，桌面端不做任何显示覆盖。 */
.hm-fold{margin:0;padding:0;border:0;background:none;}
.hm-fold>.hm-body{display:block;}
@media (min-width:721px){
  .hm-fold>summary{display:none !important;}
}

/* ---------- 手机端：折叠条通用样式 ---------- */
@media (max-width:720px){
  .hm-fold{
    margin:0 0 10px;border:1px solid #e4ebf3;border-left:4px solid #0a4d8c;
    border-radius:12px;background:#fff;overflow:hidden;
  }
  .hm-fold>summary{
    display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;
    padding:11px 13px;cursor:pointer;list-style:none;text-align:left;
    background:#f7fbff;transition:background .2s;
  }
  .hm-fold>summary::-webkit-details-marker{display:none;}
  .hm-fold>summary:focus-visible{outline:2px solid #0a4d8c;outline-offset:2px;}
  .hm-t{flex:1 1 auto;font-size:14px;font-weight:700;color:#0b1a2b;line-height:1.4;}
  .hm-s{flex:1 1 100%;font-size:11.5px;line-height:1.45;color:#566b80;}
  .hm-hint{
    margin-left:auto;padding:4px 10px;border-radius:999px;
    background:#eef6fd;color:#0a4d8c;font-size:11px;font-weight:700;white-space:nowrap;
  }
  .hm-fold[open]>summary{border-bottom:1px solid #e4ebf3;background:#fff;}
  .hm-fold[open]>summary .hm-hint{background:#0a4d8c;color:#fff;}
  .hm-body{padding:0;}
  /* 展开后强制显示懒加载动画元素，避免空白 */
  .hm-fold[open] .reveal,
  .hm-fold[open] [data-stagger]>*{opacity:1 !important;transform:none !important;visibility:visible !important;}

  /* 图1 · 设备图片声明：折起后清掉原卡片外边距，不留白 */
  .hm-notice{margin:14px 0 10px;}
  .hm-notice .notice-card{
    margin-top:0 !important;border:0;border-left:0;border-radius:0;
    padding:12px 14px;font-size:13px;line-height:1.7;
  }

  /* 图2 · 深色「流程与保障」：折叠条深色配色 + section 留白收紧 */
  #process-assure .hm-fold{
    margin:12px 0 0;border-color:rgba(255,255,255,.22);border-left-color:#f5a524;
    background:rgba(255,255,255,.03);
  }
  #process-assure .hm-fold>summary{background:rgba(255,255,255,.07);}
  #process-assure .hm-fold[open]>summary{background:rgba(255,255,255,.04);border-bottom-color:rgba(255,255,255,.14);}
  #process-assure .hm-t{color:#fff;}
  #process-assure .hm-s{color:#cfe6fa;}
  #process-assure .hm-hint{background:rgba(245,165,36,.18);color:#ffd27a;}
  #process-assure .hm-fold[open]>summary .hm-hint{background:#f5a524;color:#061524;}
  .page-home #process-assure{padding-top:30px !important;padding-bottom:30px !important;}
  .page-home #process-assure .section-head{margin-bottom:14px !important;}
  .page-home #process-assure .section-sub{font-size:12.5px;line-height:1.55;}
  .page-home #process-assure .pw-foot{margin-top:14px !important;}

  /* 图3 · 核心优势 5 卡：整体折叠，底部转化带保持常显 */
  .page-home .adv-strip{padding-top:16px !important;padding-bottom:16px !important;}
  .hm-adv{margin-bottom:10px;}
  .hm-adv[open] .adv-grid{padding-top:8px;}
  .hm-adv[open] .adv-item{padding:12px;}
  .flow-band{margin-top:12px !important;}

  /* ---------- 第二批 · 意向分流（3 张大卡折起，标题常显） ---------- */
  .page-home #intent-entry{padding-top:26px !important;padding-bottom:26px !important;}
  .page-home #intent-entry .section-head{margin-bottom:14px !important;}
  .hm-intent{margin:0;}
  .hm-intent[open] .is-grid{padding-top:8px;}

  /* ---------- 第二批 · 工程案例（卡组折起，行业筛选/转化条/查看全部常显） ---------- */
  .page-home #home-cases-sec{padding-top:26px !important;padding-bottom:26px !important;}
  .page-home #home-cases-sec .section-head{margin-bottom:14px !important;}
  .hm-cases{margin:12px 0;}
  .hm-cases[open] #home-cases{padding-top:8px;}
  #home-cases-sec .ind-chips{gap:6px;}
  #home-cases-sec .ind-note{font-size:11.5px;line-height:1.55;}
  #home-cases-sec .tap-bar{margin-top:14px;}
  #home-cases-sec > .container > div[style*="margin-top:42px"]{margin-top:16px !important;}

  /* ---------- 第三批 · 视频区「关于这些视频」声明（手机端收进折叠标签） ---------- */
  .hm-vidnote{margin:14px 0 4px;}
  .hm-vidnote>summary{padding:8px 12px;gap:2px 8px;}
  .hm-vidnote .hm-t{font-size:13px;}
  .hm-vidnote .hm-s{display:none;}  /* 标签只留一行，副标题在点开后的正文中已完整表述 */
  .hm-vidnote .hm-hint{font-size:10.5px;padding:3px 8px;}
  .hm-vidnote .vid-note{
    margin-top:0 !important;border:0;border-radius:0;
    background:transparent;padding:12px 14px;font-size:12.5px;line-height:1.7;
  }

  /* ---------- 第二批 · 页脚（纯 CSS 收紧，不动 static:footer-seo 结构、不删任何链接） ---------- */
  .page-home .site-footer{padding-top:24px !important;padding-bottom:calc(72px + 30px + env(safe-area-inset-bottom,0px)) !important;}
  .page-home .footer-top{gap:14px;}
  .page-home .footer-about{font-size:11.5px;line-height:1.6;}
  .page-home .footer-h{font-size:13px;margin-bottom:6px;}
  .page-home .footer-col a{padding-block:2px;font-size:11.5px;}
  .page-home .footer-col li{font-size:11.5px;line-height:1.55;}
  .page-home .footer-legal p{font-size:11px;line-height:1.5;}
  .page-home .footer-mailnote{font-size:11px !important;}
  .page-home .foot-updated{font-size:11px;}
}

@media (prefers-reduced-motion:reduce){
  .hm-fold>summary{transition:none;}
}
