/* ============================================================
   wb-mobile-v6 —— 目标站 theme/2020/mobile 手机模板 1:1 复用
   原站手机样式原样见 css/mobile-cms.css（head 内 media 条件加载，仅 <=900px）
   本文件只做：PC 残留清洗 + 内容容器适配 + 原站 DOM 壳显隐
   桌面(>900px) 除隐藏新增元素外完全不生效
   ============================================================ */
.wb6-topbar, #ui-offside-nav, #wb6-footnav { display: none; }
.wb6-banner-img { display: none; }
.wb6-copy-m { display: none; }

@media (max-width: 900px) {
    html, body { max-width: 100%; overflow-x: hidden; }
    body { padding-top: 50px; padding-bottom: 64px; background: #f3f3f3; font-size: 16px; }
    img { max-width: 100%; height: auto; }

    /* ---------- 1. PC 结构整体下线 ---------- */
    .ui-topbar.ui-topbar-gray, .header.width, .nav, .ui-sidebar, .footer, .topsearch { display: none !important; }

    /* ---------- 2. 原站手机 DOM 壳 ---------- */
    /* cms.css 里 .ui-topbar{min-width:1280px}，不覆盖的话汉堡会被挤出 390 视口 */
    .wb6-topbar { display: flex; padding: 6px 14px; height: 50px; box-sizing: border-box;
        width: 100% !important; min-width: 0 !important; max-width: 100% !important; left: 0; right: 0; }
    .wb6-topbar .ui-topbar-logo { min-width: 0; }
    .wb6-topbar .ui-topbar-logo img { width: auto; height: auto; max-height: 36px; max-width: 100%; }
    .wb6-topbar .ui-topbar-right a { display: block; padding: 4px 0 4px 16px; font-size: 24px; line-height: 1; }
    .wb6-topbar .ui-icon-lists { font-size: 26px; }
    /* 内页顶栏：原站 ui-topbar-three = 返回箭头 + 居中标题 + 汉堡 */
    .wb6-topbar3 { padding: 0 10px; }
    .wb6-topbar3 .ui-topbar-left { min-width: 34px; font-size: 20px; line-height: 1; }
    .wb6-topbar3 .ui-topbar-left a { color: #fff; }
    .wb6-topbar3 .ui-topbar-title { flex: 1; min-width: 0; text-align: center; color: #fff; font-size: 17px; font-weight: 500; }
    .wb6-topbar3 .ui-topbar-right { min-width: 34px; text-align: right; }
    #ui-offside-nav { display: block; }
    #wb6-footnav { display: flex; }

    /* 抽屉：宽度/内边距来自原站 mobile-cms.css 的 #ui-offside-nav */
    #ui-offside-nav .ui-form-group { margin-bottom: 12px; }
    #ui-offside-nav .ui-collapse-menu-title { padding-left: 0; }
    #ui-offside-nav .ui-collapse-menu-body ul li { padding: 0 10px; line-height: 42px; }

    /* ---------- 3. 内容容器：对平原站 ui-mwidth / ui-box ui-p-10 白卡片 ---------- */
    .width { min-width: 0; max-width: 100%; padding-left: 10px; padding-right: 10px; box-sizing: border-box; }
    .ui-row { display: block; }
    .ui-row > [class*="ui-col-"] { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; float: none !important; }
    .width.ui-mt-20, .width.ui-mt-20.ui-mb-40 {
        background: #fff; border: 1px solid #f3f3f3;
        box-shadow: 0 0 30px rgba(0,0,0,.1);
        padding: 10px; margin-top: 10px !important; margin-bottom: 10px !important;
    }
    .home-title { margin: 2px 0 14px; }
    .home-title .home-title-more { flex: none; text-align: right; }

    /* ---------- 4. Banner：与原站一致用 <img> 原比例 ---------- */
    /* Banner：原站手机模板用 sd_ad 里 akey='mobile' 的 640x300 专用图，
       新站 PC 轮播是 1200x281 超宽图，直接等比缩会变成 91px 细条。
       这里按原站比例(300/640=46.9vw)用原站手机图做背景，偶数帧换第二张。 */
    .ui-carousel.banner, .ui-carousel.banner .ui-carousel-inner,
    .ui-carousel.banner .ui-carousel-item, .ui-carousel.banner .ui-carousel-item a {
        width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    }
    .ui-carousel.banner .ui-carousel-item a {
        display: block; height: 47vw !important; max-height: 220px !important;
        background: url('/upfile/2024/12/1735097591520.jpg') no-repeat center / cover !important;
    }
    .ui-carousel.banner .ui-carousel-item:nth-child(2n) a {
        background-image: url('/upfile/2024/12/1735097600339.jpg') !important;
    }
    .wb6-banner-img { display: none !important; }

    /* ---------- 5. 卡片 2 列（原站 ui-piclist-col-2 = 48.5%） ---------- */
    .ui-piclist-col-4 .ui-piclist-item, .ui-piclist-col-3 .ui-piclist-item {
        width: 48.5% !important; max-width: 48.5%; flex: 0 0 48.5%;
    }
    .ui-piclist-item { margin: 0 .75% 1.5% .75%; }
    .ui-piclist-title { padding: 0; }
    /* 列表页 PC 结构多一层 .ui-box-body{padding:20px}，目标站列表贴 10px 边 */
    .ui-box-body { padding: 10px; }

    /* ---------- 6. 关于我们：对齐原站 .ui-box + .home-title + .home_block ----------
       原站手机端是「关于我们 About Us 标题 → 宽图 → 16px/28px 正文 → 电话」，
       没有 h4 大标题、没有「查看更多」、图在文上，且正文贴卡片边（x=11）。 */
    .home_about { min-width: 0; padding: 0 0 10px; background: none; }
    .home_about .width {
        background: #fff; padding: 10px; box-sizing: border-box;
        display: flex; flex-direction: column;
    }
    .home_about .ui-col-8 { padding: 0 !important; }
    .home_about h4 { display: none; }
    .home_about .home-title { order: -2; }
    .home_about .ui-col-4 { order: -1; margin-bottom: 10px; }
    .home_about .ui-col-4 img { width: 100%; height: auto; max-height: 230px; object-fit: cover; display: block; }
    .home_about .intro, .home_about .intro p { font-size: 16px; line-height: 28px; color: #666; }
    .home_about .intro p { margin-bottom: 20px; }
    .home_about .more { display: none !important; }
    .home_news_item { width: 100%; margin: 0 0 12px; }
    .partners li { width: 45%; }

    /* ---------- 7. 版权（PC 页脚黑块已下线；字号/padding 沿用原站 16px/15px） ---------- */
    .copyright { min-width: 0; background: transparent; border: 0; line-height: 24px; }
    .copyright a { color: #999; }
    .wb6-copy-m { display: block; }
    .wb6-copy-pc { display: none; }

    /* ---------- 8. 内页 ---------- */
    /* 目标站手机内页顶栏下直接是内容，没有 PC 的 .banner_inner 大色块（标题/描述/面包屑），整块下线 */
    .banner_inner { display: none !important; }
    .banner_inner .width { height: auto; min-height: 0; padding: 20px 14px 14px; box-sizing: border-box; }
    .banner_inner .title { padding-top: 0; font-size: 22px; }
    .banner_inner .title span { font-size: 13px; margin-left: 8px; padding-left: 8px; }
    .banner_inner .intro, .banner_inner .intro p { font-size: 13px; line-height: 1.7; margin: 8px 0 0; max-width: 100%; word-break: break-word; white-space: normal; }
    .banner_inner .position { position: static; margin-top: 12px; padding: 8px 10px; }
    .container-left { display: none; }
    .container-right { width: 100%; }
    .artlist-item { display: block; min-height: 0; padding: 14px 0; }
    .artlist-item-image { width: 100%; margin: 0 0 10px; }
    .artlist-item-image img, .artlist-item-image svg { max-height: 180px; object-fit: cover; }
    .artlist-item-body { padding-right: 0; }
    .artlist-item-body .title { font-size: 17px; line-height: 1.5; }
    .artlist-item-body .desc { font-size: 14px; line-height: 1.7; margin-top: 8px; }
    .artlist-item-date { text-align: left; padding-top: 6px; }
    .proshow .col-left, .proshow .col-right { width: 100%; border-right: 0; padding: 8px 0; }
    .proshow .col-left .big_pic img { max-width: 100%; height: auto; }
    .ui-tabs-nav li a { font-size: 14px; }
    .ui-box-h2, .ui-box-title { font-size: 18px; }
    .pb-pager a, .pb-pager .pb-current, .pb-pager .pb-total { padding: 0 9px; line-height: 32px; font-size: 13px; margin: 0 4px 6px 0; }
    .artshow .content img, .page_content img, .proshow_content img { max-width: 100%; height: auto; }

    /* ---------- 9. 留言弹窗 ---------- */
    .ui-modal {
        position: fixed !important; left: 4% !important; margin-left: 0 !important;
        width: 92% !important; max-width: none !important; top: 8% !important;
        max-height: 84vh; overflow-y: auto; z-index: 1300;
    }
    .ui-modal-mask { z-index: 1250; }
    .ui-modal .ui-col-3, .ui-modal .ui-col-9 { display: block; width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; float: none !important; text-align: left !important; }
    .ui-modal input.ui-form-ip, .ui-modal textarea.ui-form-ip { width: 100%; max-width: 100%; box-sizing: border-box; }
    .ui-modal .ui-codeimg { max-width: 45%; }

    /* ---------- 10. 城市分站聚合页（插件静态输出） ---------- */
    .banner_inner, .citybox, .ui-box { max-width: 100%; }
}
