/* ============================================================
 * 前台移动端响应式适配（窄屏 ≤ 900px 生效）
 * 覆盖 ESPCMS 的 PDV 绝对定位布局 → 流式堆叠
 * 仅影响 ≤900px 视口；桌面版不受影响
 * ============================================================ */

/* ---- 新闻三横幅拆出的独立图区块（8465 医疗信息图 / 8466 最新公告图）：
   桌面隐藏（桌面仍用 7475 三图连排），仅窄屏在列表间插入显示 ---- */
#pdv_8465, #pdv_8466 { display: none !important; }

/* ---- 移动端单图区块（8467）：桌面隐藏，仅移动端显示（替代顶部滚动图） ---- */
#pdv_8467 { display: none !important; }

/* ---- 关于我们文字区块（8468）：桌面隐藏（桌面用 7467 完整板块），仅移动端显示 ---- */
#pdv_8468 { display: none !important; }

/* ---- 关于我们(spdv_7467)：正文区白底，恢复左右蓝色边框线与标题条（与最新动态一致） ---- */
#pdv_7467 .pdv_border { background: #fff url(../../border/014/images/bg_a.gif) repeat-y !important; }
#pdv_7467 .pdv_border > div[style*="bg_a"] { background: url(../../border/014/images/bg_a.gif) right repeat-y !important; }

@media screen and (max-width: 900px) {

  html, body { min-width: 0 !important; }
  body { background: #fff !important; }
  #contain, #top, #content, #bottom { width: 100% !important; max-width: 100% !important; }
  #top, #content, #bottom { height: auto !important; min-height: 0 !important; }

  /* ---- 固定宽度表格 → 全宽 ---- */
  table { max-width: 100% !important; }
  table[width="1200"], table[width="1140"], table[width="1002"], table[width="1000"], table[width="960"], table[width="900"] { width: 100% !important; }

  /* ---- PDV 区块：绝对定位 → 流式堆叠 ---- */
  .pdv_class {
    position: static !important;
    width: auto !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    margin: 0 0 8px !important;
    display: block;
  }
  .pdv_top { overflow: visible !important; height: auto !important; }
  .pdv_border { height: auto !important; margin: 0 !important; padding: 0 !important; }

  /* ---- 图片自适应 ---- */
  img { max-width: 100% !important; height: auto !important; }

  /* ---- 模块内部固定宽度容器收缩 ---- */
  #contain *, #content *, #top *, #bottom * { max-width: 100% !important; box-sizing: border-box; }
  #contain table, #content table { width: 100% !important; }
  #contain td, #content td { word-wrap: break-word; }

  /* ---- flex 子项移动端占满整行（避免 nowrap 右溢） ---- */
  #contain [style*="flex:none"], #content [style*="flex:none"],
  #contain [style*="flex: none"], #content [style*="flex: none"] { width: 100% !important; }
  #contain [style*="display:flex"], #content [style*="display:flex"],
  #contain [style*="display: flex"], #content [style*="display: flex"] { flex-wrap: wrap !important; }

  /* ---- 自写页页头：relative 容器与 absolute 标题静态化 ---- */
  #content div[style*="position:relative"] { width: auto !important; height: auto !important; }
  #content div[style*="position:absolute"] { position: static !important; width: auto !important; height: auto !important; left: auto !important; top: auto !important; }

  /* ---- 首页头部装饰隐藏与简化 ---- */
  .mail, .tel, .lxwm, .topinfo { display: none !important; }
  .logo { float: none !important; margin: 0 !important; text-align: center; display: block !important; }
  .logo img { width: auto !important; max-width: 70% !important; height: auto !important; }
  .all { float: none !important; width: auto !important; margin: 0 !important; }
  .single-header-info { float: none !important; padding-left: 0 !important; text-align: center; }

  /* ---- 导航条（内页 .nav）：静态化 + 横向滚动 ---- */
  .nav { position: static !important; top: auto !important; bottom: auto !important; height: auto !important; overflow-x: auto !important; white-space: nowrap; }
  .nav ul, .nav li { width: auto !important; }
  .nav li { display: inline-block !important; float: none !important; }
  .nav a { padding: 6px 10px !important; font-size: 13px !important; }

  /* ---- 首页 dropdown 菜单：默认折叠，汉堡按钮展开 ---- */
  #mb_nav_btn {
    display: block;
    box-sizing: border-box;
    width: 46px;
    height: 46px;
    margin: 6px auto 4px;
    background: #2562B3;
    color: #fff;
    font-size: 28px;
    line-height: 42px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
  }
  #mb_nav_btn.open { background: #1c4a8c; }
  .dropdownmenu { display: none !important; overflow: visible !important; }
  .dropdownmenu.mb_open { display: block !important; }
  .dropdownmenu > div.dorpmenu { display: block !important; float: none !important; width: 100% !important; }
  .dropdownmenu > div.dorpmenu > a { display: block !important; float: none !important; padding: 8px 12px !important; line-height: 38px !important; }
  div.subdorpmenu { display: block !important; position: static !important; width: auto !important; }
  div.subdorpmenu ul { position: static !important; width: auto !important; }
  div.subdorpmenu li { display: block !important; float: none !important; height: auto !important; line-height: 30px !important; }

  /* ---- 首页顶部装饰横条（1200x24）隐藏 ---- */
  #pdv_7476 { display: none !important; }

  /* ---- 首页顶部滚动图：保持 1200:332 比例，全宽显示 ---- */
  .gundong-target { width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: 1200 / 332; }

  /* ---- 首页新闻区三栏目横幅图（7475）：纵向堆叠全宽 ---- */
  #pdv_7475 table td { display: block !important; width: 100% !important; }
  #pdv_7475 table td > div, #pdv_7475 table td > a { width: 100% !important; margin: 0 auto 8px !important; }

  /* ---- 科室导航（ksdh_nav）：tab 与科室块两列适配 ---- */
  .ksdh-nav .ind_4_cont .r .tabClick a { width: 23% !important; margin-left: 1% !important; margin-right: 0 !important; font-size: 14px !important; line-height: 40px !important; }
  .ksdh-nav .i4-list li { width: 48% !important; margin-left: 2% !important; }
  .ksdh-nav .i4-list li:nth-child(2n) { margin-left: 1% !important; }

  /* ---- 大型医疗设备（shebei）：4列 → 2列 ---- */
  #pdv_7482 table[width="99%"] > tbody > tr > td { width: 50% !important; display: inline-block; vertical-align: top; text-align: center; }

  /* ---- 医院环境（photopic）：2列 ---- */
  .photopic li { width: 50% !important; }

  /* ---- 内容区块内部清理 ---- */
  .pdv_border * { box-sizing: border-box; }
  .pdv_border .box, .pdv_border .more { float: none !important; }

  /* ---- 悬浮客服/漂浮元素隐藏 ---- */
  #kefu2, .cs_qcode { display: none !important; }

  /* ---- 网上预约挂号悬浮窗：右下角缩小显示 ---- */
  #ad div[style*="POSITION: fixed"] {
    top: auto !important;
    bottom: 24px !important;
    right: 4px !important;
    left: auto !important;
    width: 150px !important;
    max-width: 38vw !important;
  }
  #ad div[style*="POSITION: fixed"] img { width: 100% !important; height: auto !important; }
  #ad a[style*="fixed"] {
    top: auto !important;
    bottom: 205px !important;
    right: 6px !important;
    background: rgba(255,255,255,0.8);
    border-radius: 3px;
    padding: 1px 5px;
  }

  /* ---- 区块内浮动多列堆叠 ---- */
  .pdv_border [style*="float:left"], .pdv_border [style*="float: right"],
  .pdv_border [style*="float:right"] { float: none !important; display: block !important; width: auto !important; }

  /* ============ v6 移动端 7 点修复 ============ */

  /* 1. 展开菜单：一级项蓝底白字，子菜单白底 */
  .dropdownmenu > div.dorpmenu > a { background: #2562B3 !important; color: #fff !important; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .dropdownmenu .subdorpmenu a { background: #fff !important; color: #333 !important; border-bottom: 1px solid #f0f0f0; }
  .dropdownmenu .subdorpmenu li:hover a { background: #eaf2fb !important; }

  /* 2. 电话图缩小为容器 30% */
  #pdv_7492 img { width: 30% !important; height: auto !important; }

  /* 3. 滚动图：img 相对 hy-box 定位（修复 transform 包含块导致的超宽裁切）；
        wrapper 需解除 max-width 限制（1000% 轮播宽度不被压缩） */
  .gundong-target .hy-box { position: relative !important; }
  .gundong-target .hy-box img { width: 100% !important; height: 100% !important; }
  .gundong-target .hy-wrapper { max-width: none !important; }
  #contain .gundong-target .hy-wrapper { max-width: none !important; }

  /* 4/5. A014 边框标题条：800px 背景图改纯色全宽 */
  #contain div[style*="top.png"] { background-image: none !important; background-color: #2562B3 !important; }

  /* 6. 新闻三横幅：窄屏只显示第一张（我院新闻），其余由独立区块在列表间插入 */
  #pdv_7475 table tr:nth-child(2) td:nth-child(2),
  #pdv_7475 table tr:nth-child(2) td:nth-child(3) { display: none !important; }
  #pdv_8465, #pdv_8466 { display: block !important; }

  /* 7. 大型医疗设备每行一个 */
  #pdv_7482 table[width="99%"] > tbody > tr > td { width: 100% !important; display: block; }

  /* ============ v7 移动端 16 点修复 ============ */

  /* 1. 展开菜单：一级项全宽（消除右侧透明空白） */
  .dropdownmenu > div.dorpmenu > a { width: 100% !important; box-sizing: border-box !important; }

  /* 2. 电话图：45% 宽，居中 */
  #pdv_7492 { text-align: center !important; }
  #pdv_7492 img { width: 45% !important; height: auto !important; margin: 0 auto !important; }

  /* 3/4. A014 标题条：标题与"更多"同行（flex），蓝底保留 */
  #contain div[style*="top.png"] { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 0 12px !important; }
  #contain div[style*="top.png"] > div { float: none !important; margin: 0 !important; }

  /* 5. 顶部滚动图：只显示第一张，宽高比 4:3，两侧裁切 */
  .gundong-target { aspect-ratio: 4 / 3 !important; }
  .gundong-target .hy-box { display: none !important; }
  .gundong-target .hy-box:first-child { display: block !important; }
  .gundong-target .hy-box img { object-fit: cover !important; width: 100% !important; height: 100% !important; }
  .gundong-target .hy-wrapper { transform: none !important; transition: none !important; }
  .gundong-target .hy-prev, .gundong-target .hy-next, .gundong-target .hy-dot { display: none !important; }

  /* 6. 新闻三横幅图统一尺寸（我院新闻/医疗信息/最新公告） */
  #pdv_7475 img, #pdv_8465 img, #pdv_8466 img { width: 100% !important; height: auto !important; aspect-ratio: 360 / 140 !important; object-fit: cover !important; }

  /* 7. 三个新闻列表下方"更多"：蓝字右对齐（原为白字不可见） */
  #pdv_7489, #pdv_7472, #pdv_7490 { text-align: right !important; }
  #pdv_7489 a, #pdv_7472 a, #pdv_7490 a { color: #2562B3 !important; font-size: 14px !important; }

  /* 8. 大型医疗设备：设备间加大行间距 */
  #pdv_7482 table[width="99%"] td { padding: 24px 0 !important; }

  /* 9. 医院环境：每行 2 张，图自适应 */
  .photopic li { float: left !important; width: 50% !important; box-sizing: border-box !important; margin: 0 0 5px 0 !important; padding: 4px !important; }
  .photopic ul { overflow: hidden !important; }
  .photopic li .fang, .photopic li .picFit { width: 100% !important; height: auto !important; }
  .photopic li img { width: 100% !important; height: auto !important; }

  /* 10. 预约挂号宽图：移动端隐藏 */
  #pdv_7478 { display: none !important; }

  /* 11. 弹窗区块 + 右下悬浮窗：移动端隐藏 */
  #pdv_7785 { display: none !important; }
  #ad { display: none !important; }

  /* 12/13. 设备更多/环境更多：蓝字右对齐（位置由 sorder 控制） */
  #pdv_7466, #pdv_7493 { text-align: right !important; }
  #pdv_7466 a, #pdv_7493 a { color: #2562B3 !important; font-size: 14px !important; }
  #pdv_7465 { display: none !important; }

  /* 15. 顶部欢迎语+日期：移动端隐藏 */
  #pdv_7485 { display: none !important; }

  /* 14. 移动端页脚：纯色背景，隐藏二维码/logo 图片 */
  .footmain { background: #2562B3 !important; background-image: none !important; }
  .footmain img { display: none !important; }

  /* ============ v8 移动端 10 点修改 ============ */

  /* 1. 顶部 logo：完整显示（防窄屏裁剪/压缩） */
  #pdv_7471 { width: 100% !important; }
  #pdv_7471 img { max-width: 100% !important; height: auto !important; display: block !important; }

  /* 2. 联系电话图片：移动端隐藏 */
  #pdv_7492 { display: none !important; }

  /* 3. 菜单按钮：灰色 100% 长条，按钮放右端 */
  #mb_nav_btn {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    background: #e8e8e8 !important;
    color: #333 !important;
    text-align: right !important;
    font-size: 26px !important;
    line-height: 44px !important;
    padding: 0 14px !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }
  #mb_nav_btn.open { background: #e8e8e8 !important; }

  /* 4. 顶部滚动图：移动端隐藏 */
  #pdv_7494 { display: none !important; }

  /* 5. 移动端单图：显示（替代滚动图，数据后台"移动单图管理"） */
  #pdv_8467 { display: block !important; }
  #pdv_8467 img { width: 100% !important; height: auto !important; display: block !important; }

  /* 6. 关于我们：标题条保留蓝色，内容区白色；保留左右蓝色边框线 */
  #pdv_7467 .pdv_border { background: #fff url(../../border/014/images/bg_a.gif) repeat-y !important; }
  #pdv_7467 .pdv_border > div[style*="bg_a"] { background: url(../../border/014/images/bg_a.gif) right repeat-y !important; }
  /* 6b. 关于我们文字：移动端移到板块外（白底独立区块 8468），7467 只留标题条 */
  #pdv_7467 div[style*="margin:0px 3px"] { display: none !important; }
  #pdv_8468 { display: block !important; }
  #pdv_8468 .pdv_border { border: 0 !important; }

  /* 7. 删除"最新动态"空内容 div（margin:0px 3px;padding:0px） */
  #pdv_7469 div[style*="margin:0px 3px;padding:0px"] { display: none !important; }

  /* 9. 大型医疗设备：行距改为 5px */
  #pdv_7482 table[width="99%"] td { padding: 5px 0 !important; }

  /* 10. 页脚：文字完整显示，左右边距 15px */
  .footmain { width: 100% !important; padding: 0 15px !important; box-sizing: border-box !important; }
  .footmain table { width: 100% !important; }
  .footmain td { width: auto !important; display: block !important; text-align: left !important; padding: 0 !important; }

  /* ============ v11 移动端 6 点修改 ============ */

  /* 1. 顶部 logo：图片上下左右边距 15px，完整自适应显示（兼容所有手机浏览器） */
  #pdv_7471 .pdv_border { height: auto !important; background: #fff !important; background-image: none !important; padding: 15px !important; box-sizing: border-box !important; }
  #pdv_7471 .pdv_border img { display: block !important; width: 100% !important; height: auto !important; max-width: none !important; }

  /* 2. 菜单按钮：背景横条改浅蓝 */
  #mb_nav_btn { background: #B3D9F5 !important; }
  #mb_nav_btn.open { background: #B3D9F5 !important; }

  /* 3. 我院新闻横幅：CSS 样式与"最新公告/医疗信息"图片一致（按 360:140 比例随宽度自适应，与另两图高度始终相同，不换图） */
  #pdv_7475 table td > div { width: 100% !important; height: auto !important; margin: 0 auto !important; }
  #pdv_7475 img { width: 100% !important; height: auto !important; aspect-ratio: 360 / 140 !important; object-fit: cover !important; }

  /* 4. 关于我们/最新动态：标题文字字号加大 */
  #pdv_7467 div[style*="float:left"], #pdv_7469 div[style*="float:left"] { font-size: 16px !important; line-height: 33px !important; }

  /* 5. 医院环境：所有缩略图 4:3 显示（可拉伸） */
  #pdv_7495 img { width: 100% !important; height: 138px !important; object-fit: fill !important; }

  /* 6. 页脚文字字号加大 */
  .footmain td { font-size: 14px !important; line-height: 1.8 !important; }

  /* 2/3. foot：文字上下边距 20px；外层高度自适应（原固定 244px 被内嵌文字表格 403px 溢出 159px → 消除底部空白） */
  .footmain > tbody > tr > td { height: auto !important; padding: 20px 0 !important; }

  /* ============ v17 子栏目菜单横排（网页标题/菜单模块，主菜单下方） ============ */

  /* 子栏目菜单区块：清除绝对定位，移到顶部主菜单下方后横排显示 */
  [data-mbsubmenu="1"] {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
  }
  [data-mbsubmenu="1"] .pdv_border { height: auto !important; }
  [data-mbsubmenu="1"] ul.titlemenu_b1 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    padding: 5px 8px !important;
    margin: 0 !important;
    list-style: none !important;
    background: #f5f9fd !important;
  }
  [data-mbsubmenu="1"] ul.titlemenu_b1 li {
    display: inline-block !important;
    float: none !important;
    width: auto !important;
    margin: 2px 3px !important;
  }
  [data-mbsubmenu="1"] ul.titlemenu_b1 li a {
    display: inline-block !important;
    padding: 4px 9px !important;
    font-size: 13px !important;
    line-height: normal !important;
    color: #2562B3 !important;
    background: #fff !important;
    border: 1px solid #dce8f5 !important;
    border-radius: 3px !important;
    text-decoration: none !important;
  }

  /* 子页下端标题（HTML编辑区 44px 大字标题）：移到二级菜单下方后清除定位，居中显示 */
  [data-mbhead="1"] {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
  }
  [data-mbhead="1"] .pdv_border {
    height: auto !important;
    border: 0 !important;
    background: #fff !important;
  }
  [data-mbhead="1"] > div > div > div,
  [data-mbhead="1"] .pdv_content {
    text-align: center !important;
  }

  /* ============ v19 指定模块：标题居中+缩字号 / 隐藏 ============ */

  /* 25.php 医院文化标题 / 81.php 医疗设备标题：文字居中，44px→22px、24px→16px */
  #pdv_4992, #pdv_5785 { text-align: center !important; }
  #pdv_4992 span[style*="44px"], #pdv_5785 span[style*="44px"] { font-size: 22px !important; }
  #pdv_4992 span[style*="24px"], #pdv_5785 span[style*="24px"] { font-size: 16px !important; }

  /* 63.php 隐藏模块 */
  #pdv_5123 { display: none !important; }

  /* ============ v20 领导班子详情页（ldbz 125-131 + ld_detail）移动端适配 ============ */

  /* 1. 删除标题"领导班子 Leadership team"模块（自定内容模块，44px 领导班子文字） */
  .pdv_class[title="自定内容"]:has(span[style*="44px"]) { display: none !important; }

  /* 2. 照片区（k2 蓝色背景）：宽度 100%，高度减 30%（740→518），照片居中 */
  .k2 { width: 100% !important; height: 518px !important; }
  .k3img { display: block !important; margin: 0 auto !important; padding-left: 0 !important; }

  /* 3. 文字区：右侧边距同左侧一致、完整显示、无需横向滚动 */
  .k1 { width: 100% !important; margin-left: 0 !important; }
  .k4 { width: 100% !important; margin-left: 0 !important; float: none !important; }
  .k5p { padding: 0 12px !important; width: auto !important; overflow-wrap: break-word !important; word-break: break-word !important; }
  .k5 { padding-left: 12px !important; padding-right: 12px !important; }

  /* 4. 移动端隐藏详情页顶部图片模块（pdv_8470，ld_detail 页） */
  #pdv_8470 { display: none !important; }
}

/* ============ v22 PC 端规则 ============ */
/* PC 模式隐藏 87.php 二级菜单模块（pdv_8469，移动端保留横排显示） */
@media screen and (min-width: 901px) {
  #pdv_8469 { display: none !important; }
}

/* ============ v23 医生团队页移动端 ============ */
@media screen and (max-width: 900px) {
  /* 82.php：1. 隐藏顶部 图片/FLASH 模块 */
  #pdv_8451 { display: none !important; }
  /* 82.php：2. 标题"医生团队 Doctor team"：44px→22px、24px→16px、居中 */
  #pdv_8450 { top: 20px !important; text-align: center !important; }
  #pdv_8450 span[style*="44px"] { font-size: 22px !important; }
  #pdv_8450 span[style*="24px"] { font-size: 16px !important; }
  /* 82.php：3. 内容区上移 + 消除内部 330px 顶部空白 */
  #pdv_8463 { top: 110px !important; }
  #pdv_8463 .kst-grid { padding-top: 30px !important; }

  /* product/：1. 隐藏顶部 图片/FLASH 模块（同构 pdv_7529） */
  #pdv_7529 { display: none !important; }
  /* product/：2. 标题"医生团队 Doctor team"：44px→22px、24px→16px、居中 */
  #pdv_7530 { top: 20px !important; text-align: center !important; }
  #pdv_7530 span[style*="44px"] { font-size: 22px !important; }
  #pdv_7530 span[style*="24px"] { font-size: 16px !important; }
  /* product/：3. 内容区上移 + 消除内部 330px 顶部空白 */
  #pdv_8464 { top: 110px !important; }
  #pdv_8464 .kst-grid { padding-top: 30px !important; }
}

/* ============ v25 62.php 科室导航页移动端 ============ */
@media screen and (max-width: 900px) {
  /* 标题"科室导航 Department navigation"：44px→22px、24px→16px、顶部居中 */
  #pdv_6455 { left: 0 !important; width: 100% !important; text-align: center !important; }
  #pdv_6455 span[style*="44px"] { font-size: 22px !important; }
  #pdv_6455 span[style*="24px"] { font-size: 16px !important; }
}

/* ============ v26 62.php 标题与菜单留白修复 ============ */
@media screen and (max-width: 900px) {
  /* 隐藏标题上方的顶部图片模块（移动端显示为空白，造成大留白） */
  #pdv_6467 { display: none !important; }
  /* 标题上移到菜单下方 */
  #pdv_6455 { top: 30px !important; }
}

/* ============ v27 科室详情页：医生团队移动端每行2个 ============ */
@media screen and (max-width: 900px) {
  #content .ks-doc-item { width: 50% !important; }
}

/* ============ v28 移动端菜单：取消汉堡，两排8个主栏目，深蓝底白字，点击展开二级 ============ */
@media screen and (max-width: 900px) {
  /* 取消右上角折叠按钮 */
  #mb_nav_btn { display: none !important; }

  /* 主菜单始终显示：两排 4 列网格 */
  .dropdownmenu {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
    height: auto !important;
    background: #2562B3 !important;
    overflow: visible !important;
    white-space: normal !important;
    position: static !important;
    margin: 0 !important;
  }
  .dorpmenu {
    float: none !important;
    width: auto !important;
    border: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-right: 1px solid rgba(255,255,255,.2) !important;
    border-bottom: 1px solid rgba(255,255,255,.2) !important;
  }
  a.dorpmenu:link, a.dorpmenu:visited, a.dorpmenu:active {
    color: #fff !important;
    font-size: 14px !important;
    line-height: 42px !important;
    display: block !important;
    background: transparent !important;
  }
  a.dorpmenu:hover { background: #1b4d8f !important; color: #fff !important; }

  /* 只展示两排指定的 8 个栏目，隐藏其余（健康管理体检/医院党建/纪检监察） */
  #dorpmenu_7, #dorpmenu_9, #dorpmenu_10 { display: none !important; }

  /* 二级菜单：默认隐藏，点击主栏目展开；展开时占整行（grid-column 1/-1），不破坏两排主栏目 */
  div.subdorpmenu {
    position: static !important;
    display: none !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    background: #1b4d8f !important;
    border: 0 !important;
  }
  div.dorpmenu.mb-open + div.subdorpmenu { display: block !important; }
  div.subdorpmenu ul {
    width: 100% !important;
    background: #1b4d8f !important;
    border: 0 !important;
  }
  div.subdorpmenu li {
    height: auto !important;
    line-height: 40px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.15) !important;
  }
  div.subdorpmenu a {
    color: #fff !important;
    font-size: 13px !important;
    line-height: 40px !important;
  }
}

/* ============================================================
 * v30：移动端新闻列表页（news/class/?*.html，文章检索 query）
 * 1) 隐藏顶部图片(5137)、文章分类二级菜单(5118)、标题"新闻动态"(5115)、图片(6694)；显示当前位置(5136)
 * 2) 标题"新闻动态News"(5115)：居中 + 44px→22px / 24px→16px（5115 已隐藏，规则保留兼容）
 * 3) 标题内"更多"链接（float:right）移动端隐藏（pc 端保留原代码）
 * 仅 ≤900px 生效；桌面版不受影响
 * ============================================================ */
@media (max-width: 900px) {
  #pdv_5137, #pdv_5118, #pdv_6694, #pdv_5115 { display: none !important; }
  #pdv_5136 { display: block !important; }
  #pdv_5115 { text-align: center !important; }
  #pdv_5115 span[style*="44px"] { font-size: 22px !important; }
  #pdv_5115 span[style*="24px"] { font-size: 16px !important; }
  #pdv_5115 div[style*="float:right"] { display: none !important; }
}

/* ---- 移动端菜单（后台"移动端菜单" groupid=3，模板 tpl_dropdownmenu_mb.htm）：桌面隐藏 ---- */
.dropdownmenu-mb { display: none !important; }

/* ============================================================
 * v31：新闻列表页文字化 + 新闻详情页移动端调整 + 移动端菜单
 * 1) 新闻列表（5116）：隐藏缩略图，纯标题文字列表
 * 2) 新闻详情页：隐藏当前位置(4288)、本月文章人气榜(5106)；标题行距调低到160%
 * 3) 移动端菜单（mb_ 前缀，后台"移动端菜单" groupid=3）：隐藏第8个栏目以外的保留项
 * 仅 ≤900px 生效；桌面版不受影响
 * ============================================================ */
@media (max-width: 900px) {
  /* 0. 菜单切换：移动端显示移动端菜单、隐藏主站菜单（保持双排 grid 布局） */
  .dropdownmenu-mb { display: grid !important; }
  .dropdownmenu:not(.dropdownmenu-mb) { display: none !important; }

  /* 1. 新闻列表：隐藏图片，标题文字列表 */
  #pdv_5116 #newsmemoquery img { display: none !important; }
  #pdv_5116 #newsmemoquery ul > div {
    width: 100% !important; height: auto !important; min-height: 0 !important;
    background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important;
    float: none !important;
  }
  #pdv_5116 #newsmemoquery ul > div > div {
    float: none !important; width: 100% !important; height: auto !important;
    text-align: left !important; padding: 0 !important; margin: 0 !important;
    border-bottom: 1px dashed #e4e4e4 !important;
  }
  #pdv_5116 #newsmemoquery ul > div > div:last-child { border-bottom: 0 !important; }
  #pdv_5116 #newsmemoquery ul > div a {
    display: block !important; font-size: 15px !important; line-height: 1.7 !important;
    margin: 0 !important; padding: 9px 2px !important; color: #333 !important;
  }

  /* 2. 新闻详情页 */
  #pdv_4288, #pdv_5106 { display: none !important; }
  #pdv_4289 div.newstitle { line-height: 160% !important; }

  /* 3. 移动端菜单：保留第 8 个栏目以外（健康管理体检/医院党建/纪检监察） */
  #mb_dorpmenu_7, #mb_dorpmenu_9, #mb_dorpmenu_10 { display: none !important; }

  /* 4. 图库页（photo/class）：每行 2 张图片、图片比例 4:3 */
  #pdv_4346 #photoquery ul { margin: 0 !important; padding: 0 !important; }
  #pdv_4346 #photoquery ul > li {
    width: 50% !important; box-sizing: border-box !important;
    float: left !important; margin: 0 !important; padding: 4px !important;
    text-align: center !important; list-style: none !important;
  }
  #pdv_4346 #photoquery ul > li .fang {
    width: 100% !important; height: auto !important;
    aspect-ratio: 4 / 3 !important; position: relative !important;
    margin: 0 !important; padding: 0 !important;
  }
  #pdv_4346 #photoquery ul > li .fang .picFit {
    position: absolute !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important; overflow: hidden !important;
  }
  #pdv_4346 #photoquery ul > li .fang .picFit img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
  }
  #pdv_4346 #photoquery ul > li .title {
    font-size: 12px !important; line-height: 1.6 !important;
    overflow: hidden !important; white-space: nowrap !important; text-overflow: ellipsis !important;
  }

  /* 5. 子页顶部横幅隐藏（用户指定 10 页；81 页实际模块为 5784，用户给的 4994 属 25 页） */
  #pdv_4986, #pdv_6423, #pdv_4990, #pdv_4994, #pdv_5784,
  #pdv_4998, #pdv_5010, #pdv_5014, #pdv_5022, #pdv_6729 { display: none !important; }

  /* 6. 医生列表页（product/class）："医生科室""医生列表"标题白字、隐藏"更多>>" */
  #pdv_4305 .pdv_border > div > div > div[style*="float:left"],
  #pdv_4313 .pdv_border > div > div[style*="float:left"] { color: #fff !important; }
  #pdv_4305 .pdv_border > div > div > div[style*="float:right"],
  #pdv_4313 .pdv_border > div > div[style*="float:right"] { display: none !important; }

  /* 7. 特色科室页（page/tszl/71.php）：隐藏顶图、标题居中缩放、板块标题白字且背景全宽 */
  .tszl-head { height: auto !important; }
  .tszl-head img { display: none !important; }
  .tszl-title {
    position: static !important; width: 100% !important; height: auto !important;
    text-align: center !important; padding: 10px 0 !important;
  }
  .tszl-title span[style*="44px"] { font-size: 22px !important; }
  .tszl-title span[style*="24px"] { font-size: 16px !important; }
  .tszl-render { width: 100% !important; }
  .tszl-row { flex-direction: column !important; }
  .tszl-row > div[style*="width:30px"] { display: none !important; }
  .tszl-cell { width: 100% !important; }
  .tszl-tbar { width: 100% !important; background-size: 100% 100% !important; }
  .tszl-tname { color: #fff !important; }

  /* 8. 护士长介绍页（page/sydy/95.php）：隐藏顶部模块(pdv_6662)、图片列表每行两人 */
  #pdv_6662 { display: none !important; }
  #pdv_6664 .pdv_border > div[style*="padding:0px"] { text-align: center !important; }
  #pdv_6664 span[style*="44px"] { font-size: 22px !important; }
  #pdv_6664 span[style*="24px"] { font-size: 16px !important; }
  #pdv_6668 .productlist {
    width: 50% !important; box-sizing: border-box !important;
    float: left !important; margin: 0 !important; padding: 2px !important;
  }
  #pdv_6668 .productlist .fang {
    width: 100% !important; height: auto !important;
    aspect-ratio: 2 / 3 !important; box-sizing: border-box !important;
    position: relative !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
  }
  #pdv_6668 .productlist .fang .picFit {
    position: absolute !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important; overflow: hidden !important;
  }
  #pdv_6668 .productlist .fang .picFit img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
  }
  #pdv_6668 .productlist .fang .title {
    position: absolute !important; bottom: 0 !important; left: 0 !important;
    width: 100% !important; height: auto !important;
    font-size: 13px !important; line-height: 1.8 !important;
    padding: 0 !important; margin: 0 !important; white-space: normal !important;
  }
  #pdv_6668 .productlist .fang .title a,
  #pdv_6668 .productlist .fang .title span {
    display: block !important; line-height: 1.5 !important; position: static !important;
  }
  #pdv_6668 .productlist .fang .title a { font-size: 14px !important; }
  #pdv_6668 .productlist .fang .title span { font-size: 12px !important; }
  #pdv_6668 .productlist .fang .title br { display: none !important; }

  /* 9. 医生详情页（product/html）：医生图片居中、详情文字两侧边距 10px */
  #pdv_6747 .piczone table { margin-left: auto !important; margin-right: auto !important; }
  #pdv_6747 #productcontent_1 { padding: 0 10px !important; box-sizing: border-box !important; }
}

/* 图片详情页：图片详情模块横向 100% 宽度（右侧 4357 模块已隐藏后占满整行） */
#pdv_4356 { width: 100% !important; left: 0 !important; }

