/* V5.2.6 微信/手机端兜底适配：只在窄屏生效，不改变桌面端。 */
@media (max-width: 768px){
  html,body{max-width:100%;overflow-x:hidden!important}
  body{font-size:16px;-webkit-text-size-adjust:100%}
  .container{width:auto!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;padding-left:16px!important;padding-right:16px!important}
  main,section,article,aside{max-width:100%}
  img,picture,video,iframe,canvas,svg{max-width:100%!important}
  .bhmz-floating-tools{display:none!important}

  /* 内容详情/文章：PC 双栏在手机端统一单栏。 */
  .content-detail-page .detail-main-section .detail-content-grid,
  .bhmz-id-article .bhmz-article-layout,
  .about-v5-contact-grid,.about-company-grid,.hi-grid,.hi-profile-grid,
  .dr31-explore-grid,.dr31-bottom-grid,.dining-room-grid,.hall-detail-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important
  }
  .bhmz-id-article .bhmz-article-sidebar,
  .content-detail-page .detail-sidebar{position:static!important;top:auto!important;width:auto!important;max-width:none!important;max-height:none!important;overflow:visible!important;margin-top:18px!important}
  .bhmz-id-article .bhmz-article-sidebar-shell{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  .article-detail-card,.article-detail-content,.content-detail-page .article-detail-card{padding:18px!important;border-radius:18px!important}
  .article-detail-content,.article-content,.rich-content,.page-content{font-size:17px!important;line-height:1.86!important;word-break:break-word!important;overflow-wrap:anywhere!important}
  .article-detail-content p,.article-content p,.rich-content p,.page-content p{margin:0 0 1.15em!important}
  .article-detail-content h1,.article-content h1{font-size:28px!important;line-height:1.3!important}
  .article-detail-content h2,.article-content h2,.rich-content h2{font-size:23px!important;line-height:1.4!important;margin:1.4em 0 .65em!important}
  .article-detail-content h3,.article-content h3,.rich-content h3{font-size:20px!important;line-height:1.45!important}
  .article-detail-content img,.article-content img,.rich-content img,.detail-content img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;margin:14px auto!important;border-radius:12px!important}
  .article-detail-content table,.article-content table,.rich-content table{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}

  /* 首屏在手机端降低高度，避免图片/标题过大。 */
  .page-hero,.content-hero,.records-hero,.information-hero{min-height:300px!important;height:auto!important;padding-top:76px!important;padding-bottom:42px!important;background-position:center!important}
  .hi-hero,.hd10-hero,.halls-hero,.dining-hero{min-height:460px!important;height:auto!important;padding-top:76px!important;padding-bottom:42px!important;background-position:center!important}
  .page-hero h1,.content-hero h1,.hi-hero h1,.hd10-hero h1,.halls-hero h1,.dining-hero h1,.records-hero h1{font-size:clamp(30px,8vw,40px)!important;line-height:1.2!important;max-width:100%!important;word-break:keep-all}
  .page-hero p,.content-hero p,.hi-hero p,.hd10-hero p,.halls-hero p,.dining-hero p,.records-hero p{font-size:16px!important;line-height:1.75!important;max-width:100%!important}

  /* 卡片与列表 */
  .cards-grid,.article-grid,.records-grid,.halls-grid,.dining-grid,.room-grid,.activity-grid,.hi-card-grid{grid-template-columns:1fr!important;gap:16px!important}
  .article-card,.record-card,.hall-card,.activity-card,.dining-card{border-radius:18px!important}
  .article-cover,.record-cover,.hall-cover,.activity-cover{aspect-ratio:16/9!important;height:auto!important}

  /* 手机按钮和表单 */
  .primary-btn,.secondary-btn,.outline-btn,button,input,select,textarea{max-width:100%}
  .primary-btn,.secondary-btn,.outline-btn,.booking-btn{min-height:44px!important}
  input,select,textarea{font-size:16px!important}
  .booking-inquiry-form,.dining-booking-form{grid-template-columns:1fr!important}

  /* 避免旧固定宽度造成左右晃动。 */
  [style*="width: 1180"],[style*="width:1180"],[style*="width: 1550"],[style*="width:1550"],
  [style*="min-width: 900"],[style*="min-width:900"]{width:100%!important;min-width:0!important;max-width:100%!important}
}
