/* mobile.css v2 — 手机端适配+美化 (<=767.98px 生效), 由 fix_mobile.py 部署 */
/* 底部快捷栏桌面默认隐藏(仅小屏由下方媒体查询显示) */
.m-bottombar{display:none}
@media (max-width:767.98px){
  /* 全局图片等比缩放: 修复 HTML height 属性与 CSS 宽度压缩冲突导致的变形 */
  img{max-width:100%;height:auto}
  /* 媒体列表大图: 手机端改为图上文下 (原 flex 布局会把大图压扁变形) */
  .media{flex-wrap:wrap}
  .media>img{flex-shrink:0;width:100%!important;height:auto!important;max-height:210px;object-fit:cover;object-position:center;margin:0 0 8px!important}
  .media>.media-body{flex:0 0 100%;width:100%!important}
  /* nurse 视频图卡(健康知识-健康视频等): 手机端两列布局, 尺寸缩小 */
  .card-body .row.mx-0>.col{flex:0 0 50%;max-width:50%}
  .nurse{height:92px}
  /* 隐藏右侧悬浮栏: 功能由底部快捷栏覆盖 */
  .float-share{display:none!important}
  /* 底部固定快捷栏 */
  .m-bottombar{position:fixed;bottom:0;left:0;right:0;height:52px;background:#fff;box-shadow:0 -2px 12px rgba(0,0,0,.1);display:flex;z-index:99998;padding-bottom:env(safe-area-inset-bottom)}
  .m-bottombar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;color:#444;text-decoration:none;line-height:1.2}
  .m-bottombar a svg{width:21px;height:21px;margin-bottom:2px;fill:currentColor}
  .m-bottombar a:active{background:#f2f7fb}
  .m-bottombar .mb-tel{color:#e3342f;font-weight:700}
  body{padding-bottom:calc(52px + env(safe-area-inset-bottom))}
  /* 卡片化: 圆角 + 轻阴影 */
  .card{border-radius:10px;box-shadow:0 2px 10px rgba(0,0,0,.07);border:0;margin-bottom:.9rem}
  .container{padding-left:12px;padding-right:12px}
  .row{margin-left:-6px;margin-right:-6px}
  .row>.col,[class*="col-"]{padding-left:6px;padding-right:6px}
  /* 轮播圆点指示器 */
  .carousel-indicators li{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.45);opacity:1;border:0;margin:0 4px}
  .carousel-indicators li.active{background:#fff;width:8px;height:8px}
  .common-title .title h1{width:auto;padding-left:10px;border-left:4px solid #0072bb;flex:0 0 auto;white-space:nowrap;font-size:20px}
  /* 正文图文自适应: 图片不超宽, 宽表格横向滚动, iframe 不超宽 */
  .card-body img,.tab-content img,.card-text img,.media-body img{max-width:100%;height:auto}
  .card-body iframe,.tab-content iframe{max-width:100%}
  .card-body table{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  /* 优惠活动轮播大图与卡片图恢复等比缩放 */
  .home-huodong-new .carousel-item img{height:auto}
  .home-houdong .card-img-top{height:auto}
  /* 医师/专家卡片高度自适应 */
  #listteam .card,#listteamdetails .card{height:auto;min-height:0}
  #listteam .als-item,#listteamdetails .als-item{min-height:0}
  /* 汉堡菜单: 白底大字号链接 */
  .navbar-color{box-shadow:0 2px 8px rgba(0,0,0,.12)}
  .navbar-collapse{background:#fff;border-radius:10px;padding:0 12px;margin-top:.5rem;box-shadow:0 4px 12px rgba(0,0,0,.1)}
  .navbar-collapse .nav-link{color:#333!important;font-size:16px;padding:.8rem 0;border-bottom:1px solid #f0f0f0}
  .navbar-collapse .nav-item:last-child .nav-link{border-bottom:0}
  .navbar-nav .nav-item:hover,.navbar-nav .nav-link:hover{background:transparent;color:#0072bb!important}
  /* 折叠菜单内的下拉子菜单: 全宽、文档流内展开, 链接三列换行 */
  .navbar-collapse .dropdown-menu.dmenu{position:static;width:calc(100vw - 24px)!important;left:0;right:0;margin:0;border:0;box-shadow:none;padding:.25rem 0;background:#f7fafc}
  .navbar-collapse .dmenu .d-flex{flex-wrap:wrap;padding:0 .25rem}
  .navbar-collapse .dmenu .dropdown-item{width:33.333%;padding:.55rem .4rem;font-size:14px;text-align:center;color:#333}
  .navbar-collapse .dmenu .dropdown-item:active{background:#0072bb;color:#fff}
  .navbar-collapse .dmenu .row{display:none}
  .navbar-collapse .dmenu .card{height:auto}
  .navbar-collapse .dmenu:before{display:none}
  /* 商桥浮窗(aff-im-root/newBridge)与底部栏"在线咨询"功能重复且遮挡内容, 手机端隐藏 */
  #aff-im-root,#newBridge{display:none!important}
}
