/* claude-20261019: 电脑版页面的窄屏适配（宽度 < 768px 时才生效）。
   真实手机用户会被跳到 /h5/，所以这里主要服务于搜索引擎的移动端爬虫（百度、Bytespider 等）和窄屏浏览器。
   电脑端不加载本文件（<link media="(max-width: 767px)">），样式也全部包在同一个媒体查询里。 */
@media (max-width: 767px) {
  html, body { min-width: 0 !important; width: 100% !important; overflow-x: hidden !important; -webkit-text-size-adjust: 100%; }

  /* 任何元素都不超过所在容器的宽度（老模板里大量写死 1200px / 905px） */
  body *:not(svg):not(path):not(use) { max-width: 100% !important; box-sizing: border-box; }

  /* 写了最小宽度 1200px 的通栏容器（页头导航、页脚、主体、酒店页二级导航） */
  .big, .nav, .yy-brand, .yy-help, .yy-footer, .yy-link, .fl100, [class*="fl100"] { min-width: 0 !important; }

  /* 横排的标签栏、菜单：允许换行 */
  ul, ol { flex-wrap: wrap !important; }
  /* 面包屑、列表标题原本不换行 */
  .yy-guide, .yy-guide *, .bt, .bt * { white-space: normal !important; }

  /* 写死宽度的居中容器：改为铺满屏幕，取消左右浮动 */
  .wm-1200, .top_mt, .menu, .yy-main-page, .yy-serve, .help-lsit, .yy-foot-menu, .yy-foot-edit, .support, .yy-link-list,
  .yy-car-home-top, .yy-cp-slideTab, .comment-list-box, .yy-payment-way, .inquiry-order-box,
  [class*="wm-1"], [style*="width:1200px"], [style*="width: 1200px"] {
    width: 100% !important; float: none !important; margin-left: 0 !important; margin-right: 0 !important;
  }
  .wm-1200, [class*="wm-1"] { padding-left: 12px !important; padding-right: 12px !important; }

  /* 导航：允许换行，不再固定 44px 高 */
  .nav, .menu { height: auto !important; line-height: 36px !important; }
  .menu .main_nav_list { max-width: 100% !important; }

  /* 图片、视频、表格 */
  img, video, iframe, embed, object { max-width: 100% !important; height: auto !important; }
  table { display: block; max-width: 100% !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  pre, code { white-space: pre-wrap !important; word-break: break-word; }

  /* 正文可读：长英文/网址自动换行 */
  p, li, td, th, dd, dt, h1, h2, h3, h4 { word-break: break-word; overflow-wrap: anywhere; }
  h1 { font-size: 22px !important; line-height: 1.4 !important; }
  h2 { font-size: 19px !important; line-height: 1.4 !important; }

  /* 页头：搜索框原本绝对定位压在 logo 上，改为排在 logo 下方 */
  .top_mt { height: auto !important; }
  .top_mt .logo { float: none !important; }
  .all_search { position: static !important; width: 100% !important; margin: 8px 0 !important; }
  .top_mt, .all_search { display: flow-root !important; }
  .h_phone_num { background: none !important; padding: 4px 0 !important; height: auto !important; text-align: left !important; float: none !important; }

  /* 只在大屏有意义的浮层：右侧固定的联系/菜单栏、返回顶部（页面正文和页脚仍有电话和微信） */
  .yy-side-menu-block, .yy-side-flexible-block,
  .floatmenu, .float-menu, .yy-float-menu, #floatmenu, .backtop, .back-top, .side-bar, .sidebar-fixed { display: none !important; }
}
