/* hb-vis-fix: mobile visual fixes for hb.hazhxf.com (2026-09-30) */
@media (max-width: 768px) {
  /* WeChat group button: dock to bottom as a full-width bar so it never
     covers the page H1 / banner text (was position:fixed top:84px). */
  #wxq-group-btn {
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: auto !important;
    height: 48px !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-top: 2px solid #07c160 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.18) !important;
  }
  #wxq-group-btn br { display: none; }
  body { padding-bottom: 48px !important; }

  /* horizontal overflow: keep the page pinned to the viewport width */
  html, body { overflow-x: hidden !important; max-width: 100%; }
  .header-inner { overflow-x: clip !important; }
  .menu-btn { flex: 0 0 auto !important; box-sizing: border-box !important; margin-right: 12px !important; }
  .menu-btn span { flex: 0 0 auto !important; }

  /* banner title must not be clipped on small screens */
  .page-banner .page-title,
  .page-banner h1 { font-size: 22px !important; line-height: 1.4 !important; }

  /* long tables scroll inside their own box instead of stretching the page */
  .article-content { overflow-x: auto !important; max-width: 100%; }
  .article-content table {
    min-width: 0 !important;
    width: 100% !important;
    display: block;
    overflow-x: auto;
  }
}
