/* 码泓 · 移动端落地页精简版式（MOBILE-FIT-20261025）
   目标：走微信服务号菜单进入时不显示页眉/页脚，正文占满、信息密度足够。
   仅 ≤640px 生效，桌面端零影响。 */
@media (max-width: 640px) {
  html { -webkit-text-size-adjust: 100%; }

  /* 1) 全局顶栏（topbar.js 注入）与页脚（footer.js / 页面自带） */
  .mhtb-root, .mh-footer, #mhFooter, footer.mh-footer { display: none !important; }

  /* 2) 页面级页眉：内容目录条 / 品牌条 / 站点头部 */
  .za-zdir, .topbar, .site-hd, .subnav { display: none !important; }  /* 注意：.hd 是卡片角标，不在隐藏列表 */

  /* 3) 侧栏 / 左侧目录树 / 右侧锚点目录：移动端收起（避免三栏挤压） */
  .sidebar, .dside, .toc, .sf-side, .sf-sub { display: none !important; }

  /* 4) 主区铺满 */
  .shell, .dwrap, .wrap, .main, .content, .dmain, .mc, .mcw {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 12px 24px !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
  }
  .main > *, .content > *, .dmain > * { max-width: 100% !important; }

  /* 5) 表格与清单：字号下限 + 允许横向滚动，不再挤成一条线 */
  .content table, .main table, .dmain table, table {
    font-size: 12.5px !important;
    display: block !important;
    overflow-x: auto !important;
    white-space: normal;
  }
  .row, .item, .list-row, .prow, .lk { font-size: 12.5px !important; line-height: 1.55 !important; }

  /* 6) 首屏压缩：大标题与超宽横幅不占半屏 */
  .hero, .banner, .jumbotron { padding: 18px 14px !important; margin: 8px 0 12px !important; }
  h1 { font-size: 20px !important; line-height: 1.35 !important; }
  h2 { font-size: 16px !important; }

  /* 7) 卡片与栅格单列化 */
  .grid, .cards, .pkg-grid, .skus { display: block !important; }
  .grid > *, .cards > *, .pkg-grid > * { width: 100% !important; margin-bottom: 10px !important; }

  /* 8) 悬浮客服球不压内容 */
  .mh-fab, .fb-float { transform: scale(.86); transform-origin: bottom right; }
}

/* ===== 追加：等比缩放页（data-mhd-nozoom）单列化 MOBILE-FIT-20261025b ===== */
@media (max-width: 640px) {
  html body { width: 100% !important; min-width: 0 !important; overflow-x: hidden !important; }

  /* 篇章文档中心（.dwrap: dside | dmain | toc）*/
  .dwrap { display: block !important; min-height: 0 !important; }
  .dside, .toc { display: none !important; }
  .dmain { display: block !important; width: 100% !important; max-width: 100% !important;
           padding: 12px 14px 28px !important; overflow: visible !important; box-sizing: border-box !important; }
  .q-sec { max-width: 100% !important; }
  .q-row { font-size: 13px !important; }
  .q-hd, .dtitle { font-size: 17px !important; line-height: 1.4 !important; }

  /* 篇章内容库（.shell: sidebar | main）*/
  .shell { display: block !important; min-height: 0 !important; }
  .shell > main, .shell > .main, .shell > .content, .main, .content {
    display: block !important; width: 100% !important; max-width: 100% !important;
    margin: 0 !important; padding: 10px 12px 24px !important; box-sizing: border-box !important;
  }
  .card, .pcard, .row, .lb-row { max-width: 100% !important; }
}

/* ===== 追加：我的内容库行卡片化 MOBILE-FIT-20261025c ===== */
@media (max-width: 640px) {
  .msec { display: block !important; }
  .msec h1 { margin: 0 0 4px !important; }
  .msec .sub { display: block !important; font-size: 12.5px !important; line-height: 1.6 !important; }
  .msec .tagmod { display: inline-block !important; margin: 8px 0 0 !important; }
  .lb-card {
    display: flex !important; flex-wrap: wrap !important;
    align-items: center !important; gap: 6px 8px !important;
    padding: 12px !important;
  }
  .lb-tt { flex: 1 1 100% !important; min-width: 0 !important; white-space: normal !important; }
  .lb-tt b { display: block !important; font-size: 13.5px !important; line-height: 1.5 !important; word-break: break-word; }
  .lb-tt span { font-size: 11.5px !important; }
  .lb-no, .lb-type, .lb-st, .lb-pt { font-size: 11.5px !important; white-space: nowrap; }
  .lb-acts { margin-left: auto !important; }
  .lb-tabs { overflow-x: auto !important; }
}
