/**
 * /txzd.html /txzdusm.html 天下之道 手机适配层（2026-11-12，"快速建页模式"：布局齐 + 不串 ID）。
 *
 * 桌面版式在共享 layout.css（.header-nav flex 导航）+ /static/txzd/css/txzd.css
 * （1180 壳、1150×954 名山拼贴、#sw 300 轮播、816×506 视频区）。骨架是烘焙 HTML，
 * 拼贴的格子尺寸全是<b>内联 px</b>（无 !important，CSS !important 可压）；hero 内联
 * !important 已由组件 body.replace 摘旗（TourismTxzdPage.vue，桌面像素不变）。
 * ⚠️ 页内三段 <style> 的提取物 tourism-txzd.css 当前<b>未挂载</b>（SFC 里 import 被注释，
 *   用户 2026-11-12 现状，不动）——本层只对照实际生效的 layout.css + static/txzd.css。
 *
 * ⚠️ 选择器全部双类/双 id 锚定（同为作者全局层，平头会撞平分听顺序）。
 * 区块：hero(head.jpg 1920×600) / header-nav(5 锚) / 导言(.content) / #pwms 拼贴 /
 *       #xsss #sw 热门轮播 / #tfsj 视频+推荐列表 / #ysgl(遗留 display:none，跳过) / SiteFooter(全局)。
 */
@media (max-width: 750px) {
  /* ---------- hero：等比 600/1920 = 31.25vw（内联 height:600 无旗标，!important 可压） ---------- */
  .txzdHero.txzdHero {
    height: 41.25vw !important;
    background-size: 140% auto !important;
    background-position: center 0;
  }
  .header-nav{
    display: none;
  }

  /* ---------- 壳：1180/1150/1260 定宽全部放开 ---------- */
  .getWidthBox.getWidthBox {
    width: auto;
    padding-top:12px;
  }
  .getWidth.getWidth {
    width: auto;
    min-width: 0;
  }
  .mountain.mountain,
  .mountain_1.mountain_1 {
    margin: 20px 0;
  }
  .mountain_1.mountain_1 {
    padding: 20px 0;
  }

  /* ---------- 锚导航：layout.css 已 flex:1 均分，5 条 6 字标题压字号即可一排放下 ---------- */
  .header-nav .clearfix.clearfix {
    width: auto;
  }
  .header-nav.header-nav ul li a {
    font-size: 13px;
  }

  /* ---------- 导言块 ---------- */
  .content.content {
    padding: 20px 16px;
    font-size: 14px;
  }
  .content.content img {
    max-width: 100%;
    height: auto;
    
  }

  /* ---------- 艺术题图（ti_1..4 是 870 宽烘焙字图，只能整体缩，无 DOM 文本可救） ---------- */
  .moun_ti.moun_ti img {
    width: 85%;
    height: auto;
  }

  /* ---------- #pwms 名山拼贴 → 定高两行「横向拼接」胶片条 ----------
     用户 2026-11-13 手稿（pair 1×1 / 葛仙山 1×2 / 青城·大道之合 2×2 大块混排）+ 自带
     grid-template-areas 现状的补全：两行×九列轨道全定尺 138px（沿用其数值），
     总宽 9×138+8×5=1282 → overflow-x 横滚，一屏约 2.6 列。
     13 个网格子项 = p×6（ms,lhs,ts,wds,hms,jh）、<a>×3（gxs,qcs,sqs 由叶子
     div.flexBoxDiv contents 化后透出）、li×4 —— 类型混排，nth 链一处断全错位，
     落位统一 :has(img[src*="/xxx.jpg"]) 按文件名锚定；格尺寸不写死，
     全靠轨道 stretch（2×2 块自然得到 281×281），内联 px/margin 用 !important 摘。
     ⚠️ 图 object-fit:cover 填满定高格 —— 手稿就是拼满效果；ms/lhs/sqs 近方裁切轻微，
        qcs(453×230)/ts(342×230) 这类横图进方格/大块是刻意裁中。
     ⚠️ ts.jpg 那张 <img> 自己挂着 flexBoxDiv 类 —— contents 只给 div.flexBoxDiv。
     ⚠️ mounTop 本身也带 .flexBox 类，行级 :not(.mounTop) 排除。 */
  .mounBox.mounBox {
    display: grid;
    grid-template-rows: 128px 128px;
    grid-template-columns: 138px 138px 308px 200px 138px 120px 200px 138px;
    grid-template-areas:
      "i1 i3 i4 i5 i7 i9 i9 i12"
      "i2 i3 i4 i6 i8 i10 i11 i13";
    gap: 5px;
    width: auto !important;
    height: auto !important;
    overflow-x: auto !important; /* 内联 overflow:hidden 无旗标，!important 可压 */
    overflow-y: hidden;
  }
  .mounBox .mounTop.mounTop,
  .mounBox .mounTop > div,
  .mounBox .flexBox.flexBox:not(.mounTop),
  .mounBox div.flexBoxDiv,
  .mounBox .mounBotton.mounBotton,
  .mounBox .mounBottonUl.mounBottonUl {
    display: contents;
  }
  /* 格本身：压掉内联 220/228/342/452/461/225/265/380 那套 px 与手动缝距，尺寸交给轨道拉伸 */
  .mounBox .mounTop p,
  .mounBox .mounTop > div > a,
  .mounBox .mounTop > div > .flexBox > div.flexBoxDiv:not(:has(p)) > a,
  .mounBox .mounBottonUl li {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    float: none;
  }
  /* 落位表（areas 名 ↔ 文件名，13 条；:has 同时命中格子和格内的 a，非子项无害） */
  .mounBox :is(p, li, a):has(img[src*="/ms.jpg"])  { grid-area: i1; }
  .mounBox :is(p, li, a):has(img[src*="/lhs.jpg"]) { grid-area: i2; }
  .mounBox :is(p, li, a):has(img[src*="/gxs.jpg"]) { grid-area: i3; }
  .mounBox :is(p, li, a):has(img[src*="/qcs.jpg"]) { grid-area: i9; }
  .mounBox :is(p, li, a):has(img[src*="/ts.jpg"])  { grid-area: i5; }
  .mounBox :is(p, li, a):has(img[src*="/wds.jpg"]) { grid-area: i6; }
  .mounBox :is(p, li, a):has(img[src*="/sqs.jpg"]) { grid-area: i4; }
  .mounBox :is(p, li, a):has(img[src*="/hms.jpg"]) { grid-area: i8; }
  .mounBox :is(p, li, a):has(img[src*="/jh.jpg"])  { grid-area: i7; }
  .mounBox :is(p, li, a):has(img[src*="/lfs.jpg"]) { grid-area: i10; }
  .mounBox :is(p, li, a):has(img[src*="/qys.jpg"]) { grid-area: i12; }
  .mounBox :is(p, li, a):has(img[src*="/kls.jpg"]) { grid-area: i13; }
  .mounBox :is(p, li, a):has(img[src*="/ljs.jpg"]) { grid-area: i11; }
  .mounBox.mounBox img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    display: block;
  }

  /* ---------- #xsss 热门轮播（组件已按断点收 1 列，这里拆横排卡片为上图下文） ---------- */
  #sw#sw {
    height: auto;
    width: auto;
    padding: 0 12px;
  }
  #sw .swBox.swBox {
    height: auto;
    flex-direction: column;
  }
  #sw .swBox_1.swBox_1 {
    width: auto;
    min-width: 0;
    height: 180px;
    border-radius: 8px 8px 0 0;
  }
  #sw .swBox_1 img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    display: block;
  }
  #sw .swBox_2.swBox_2 {
    max-width: 100%;
    padding: 12px;
  }
  #sw .sw-pagination.sw-pagination {
    position: static !important; /* layout.css 的绝对定位：卡片已纵排，圆点落到卡下 */
    margin-top: 8px;
  }

  /* ---------- #tfsj 视频区：816×506 主视频 + 右 25.7% 推荐列 → 纵排 ----------
     ⚠️ main-left 必须一起拆：layout.css:938 `.main-left{width:71.5%;float:left}`（0,1,0）
     只关了 main-right 时，main-right 的 width:auto 会被左浮动压成 98px 残列（实测），
     视频也跟着只有 247 宽。两个 float 都 none、width 都 auto 才是真纵排。 */
  .main-left.main-left {
    float: none;
    width: auto;
  }
  #main-left#main-left video {
    width: 100% !important; /* 内联 816×506 */
    height: auto !important;
  }
  .main-right.main-right {
    float: none;
    width: auto;
    height: auto;
    overflow: visible; /* txzd.css:224 的 overflow-y:auto 是给定高 490 滚动盒的，高度放开后不需要 */
    margin-top: 16px;
    padding-bottom: 0;
  }
  #video-recommend#video-recommend {
    overflow: visible !important; /* 内联 overflow-y:auto（定高 490 的滚动盒）手机上改页面滚动 */
    height: auto;
  }
  #video-recommend#video-recommend ul{
    display: flex;
    flex-wrap: nowrap;
    gap:12px;
    overflow-x: scroll;
  }
  #video-recommend#video-recommend ul li{
    min-width:120px;
    padding:0;
  }
  /* .video-recommend img */
  .video-recommend.video-recommend img {
    width: 120px;
  }
  .video-recommend .info{
    height:auto;
  }
  .swBox_2 p{
     line-clamp: 2 !important;
    -webkit-line-clamp:2!important;
  }
}
