/* 万站汇 移动端适配（<=768px） */
@media (max-width: 768px) {
  html, body { width: 100% !important; min-width: 0 !important; overflow-x: hidden; }
  body { background: #eeeeee; }
  img, iframe, video { max-width: 100% !important; height: auto !important; }
  table { max-width: 100%; }
  input, textarea, select { max-width: 100%; box-sizing: border-box; }

  /* ---------- 头部 ---------- */
  .top { width: auto !important; height: auto !important; margin: 0 auto; padding: 0; }
  .menu_box { width: auto !important; height: auto !important; float: none !important; background: #555 !important; }
  nav { display: block; width: 100%; }
  .menu { width: 100% !important; height: auto !important; float: none !important; }
  .menu ul { display: flex; flex-wrap: wrap; width: 100% !important; margin: 0; padding: 0; }
  .menu ul li { width: 25% !important; height: auto !important; float: none !important; line-height: 40px; border-left: 0; border-bottom: 1px solid #606060; }
  .menu a:link, .menu a:visited, .menu a:active, .menu a:hover { width: 100% !important; height: auto !important; line-height: 40px; }

  .denglu_zhuce { width: auto !important; height: auto !important; float: none !important; padding: 6px 0 !important; border-left: 0; text-align: center; }
  .denglu_zhuce_p1, .denglu_zhuce_p2 { width: auto !important; height: auto !important; float: none !important; text-align: center; margin: 0; line-height: 24px; }
  .tb { display: none !important; }

  .logo_box { width: auto !important; height: auto !important; float: none !important; margin: 12px auto 6px !important; text-align: center; }
  .logo { width: auto !important; height: auto !important; float: none !important; display: inline-block; }
  .logo_txt { width: auto !important; height: auto !important; float: none !important; line-height: 24px; }

  #sobox { width: auto !important; height: auto !important; float: none !important; margin: 8px auto 10px !important; padding: 0 12px; }
  .sofrm { width: auto !important; height: 37px !important; position: static !important; top: auto !important; display: flex; align-items: stretch; }
  #selopt { flex: 0 0 88px; width: 88px !important; position: relative; left: 0 !important; top: 0 !important; }
  #cursel { width: 88px !important; }
  .sipt { flex: 1 1 auto; width: auto !important; height: 37px !important; padding: 0 8px !important; border-left: 0; border-right: 0; }
  .sbtn { flex: 0 0 78px; width: 78px !important; height: 37px !important; background-size: 100% 100%; }

  .zhucebtn { width: auto !important; height: auto !important; float: none !important; margin: 8px auto !important; text-align: center; }
  .about { width: auto !important; height: auto !important; float: none !important; margin: 10px auto !important; padding: 0 12px; }
  .about_title, .about_content { width: auto !important; height: auto !important; float: none !important; text-align: center; background: none; white-space: normal !important; word-wrap: break-word; }

  /* ---------- 通用内容容器 ---------- */
  .content, .content_s1, .content_s2, .content_s3, .content_s4, .content_s5 {
    width: auto !important; height: auto !important; margin: 10px auto !important; padding: 0 10px; box-sizing: border-box; overflow: visible;
  }
  .index_adbox, .index_ad1, .index_ad2, .ad_top {
    width: auto !important; height: auto !important; float: none !important; padding: 5px; box-sizing: border-box;
  }
  .index_adbox img, .index_ad1 img, .index_ad2 img, .ad_top img { width: 100% !important; height: auto !important; }

  /* ---------- 首页 ---------- */
  .zztj { width: auto !important; height: auto !important; float: none !important; padding: 12px; background: #fff; box-sizing: border-box; }
  .zztj_title { width: auto !important; height: auto !important; float: none !important; margin-top: 0; }
  .zztj_content { width: auto !important; height: auto !important; float: none !important; padding-left: 0; overflow: visible; }
  .zztj_content ul li { width: 50% !important; float: left; margin-right: 0; box-sizing: border-box; }
  .zztj_btn { width: auto !important; height: auto !important; float: none !important; padding: 0; text-align: center; }

  .zxzx { width: auto !important; height: auto !important; float: none !important; margin-top: 10px; }
  .zxzx_top { width: auto !important; height: auto !important; float: none !important; }
  .zxzx_content { width: auto !important; height: auto !important; float: none !important; padding: 8px 10px; box-sizing: border-box; }
  .zxzx_content ul li { width: auto !important; height: auto !important; float: none !important; padding: 0; }
  .zxzx_content .p1 { width: auto !important; float: none; }

  .wzsj { width: auto !important; height: auto !important; float: none !important; display: flex; }
  .wzsj_s1, .wzsj_s2 { width: 50% !important; height: auto !important; float: none !important; box-sizing: border-box; }
  .wzsj_s1 { border-right: 1px solid #fff; }

  .kswz, .kswz_top, .kswz_content { width: auto !important; height: auto !important; float: none !important; }
  .kswz_top { line-height: 44px; }
  .kswz_top_title, .kswz_top_more { width: auto !important; height: auto !important; float: none; display: inline-block; line-height: 44px; }
  .kswz_top_more { float: right; }
  .kswz_content { display: block !important; overflow: hidden; }
  #demo { width: 100% !important; height: auto !important; overflow-x: auto !important; overflow-y: hidden !important; -webkit-overflow-scrolling: touch; }
  #demo > table, #demo #marquePic1, #demo #marquePic2, #demo #gd, #demo table { width: max-content !important; }
  #demo td { padding-right: 12px !important; vertical-align: top; }
  #demo .kswz_pic { width: 120px !important; height: auto !important; float: none !important; }
  #demo .kswz_pic img { width: 120px !important; height: 90px !important; object-fit: cover; }
  #demo .kswz_txt { width: 120px !important; height: auto !important; float: none !important; padding: 0 !important; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .wzfl { width: auto !important; height: auto !important; float: none !important; margin-top: 10px; box-sizing: border-box; }
  .wzdh { width: auto !important; height: auto !important; float: none !important; margin-top: 10px; box-sizing: border-box; }
  .wzdhlist li span { width: auto !important; min-width: 80px; margin-right: 10px; }

  .zxsr { width: auto !important; height: auto !important; float: none !important; border-right: 0; padding-right: 0; margin-right: 0; }
  .zxsr_title, .zxdr_title, .wztj_title { width: auto !important; height: auto !important; float: none !important; }
  .zxsr_content, .zxdr_content { width: auto !important; height: auto !important; float: none !important; overflow: visible; }
  .zxsr_content ul li { width: auto !important; height: auto !important; float: none !important; line-height: 28px; min-height: 28px; }
  .zxsr_content ul li::after { content: ""; display: block; clear: both; }
  .zxsr_content .p3 { width: auto !important; max-width: 72%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .zxsr_content .p4 { float: right; color: #999; }
  .zxdr { width: auto !important; height: auto !important; float: none !important; margin-top: 10px; }
  .zxdr_content ul li { width: 50% !important; float: left; margin-right: 0; box-sizing: border-box; }
  .wztj { width: auto !important; height: auto !important; float: none !important; margin-top: 10px; }
  .wztj_ad { width: auto !important; height: auto !important; float: none !important; }
  .wztj_content { width: auto !important; height: auto !important; float: none !important; overflow: visible; }
  .wztj_content ul li { width: auto !important; }

  .yqlj_title, .yqlj_content { width: auto !important; height: auto !important; float: none !important; box-sizing: border-box; }
  .yqlj_content ul li { width: auto !important; margin-right: 12px; }

  /* ---------- 列表 / 详情页 ---------- */
  .site { width: auto !important; height: auto !important; }
  .left { width: auto !important; height: auto !important; float: none !important; }
  .left_list { width: auto !important; height: auto !important; box-sizing: border-box; }
  .left_list_content ul li { width: 33.33% !important; float: left; box-sizing: border-box; }
  .listbox, .listbox2, .allcate, .catebox, .catebox h1, .catebox ul, .listbox_zxsl, .left_shujulist_content, .topsitebox, .zzgg, .subbox, .showpage {
    width: auto !important; height: auto !important; box-sizing: border-box;
  }
  .listbox_content li, .artlist li {
    width: auto !important; height: auto !important; min-height: 88px; display: flex; gap: 8px; box-sizing: border-box;
  }
  .listbox_content li .pic { width: 90px !important; height: auto !important; flex: 0 0 90px; float: none !important; }
  .listbox_content li .info { width: auto !important; height: auto !important; flex: 1 1 auto; float: none !important; min-width: 0; }
  .listbox_content li .info h3, .listbox_content li .info p, .listbox_content li .info .xinxi {
    width: auto !important; height: auto !important; white-space: normal; overflow: visible;
  }
  .listbox_content li .info p { line-height: 20px; }

  .right { width: auto !important; height: auto !important; float: none !important; margin-top: 12px; box-sizing: border-box; }
  .right_ad1, .right_ad2, .right_ad3, .right_zixun, .right_web { width: auto !important; height: auto !important; float: none !important; }
  .right_zixun_content, .right_web_content { width: auto !important; height: auto !important; float: none !important; padding: 0 10px; box-sizing: border-box; }
  .right_zixun_content ul li, .right_web_content ul li { width: auto !important; height: auto !important; float: none !important; overflow: hidden; padding: 6px 0; }
  .right_zixun_content ul li::after, .right_web_content ul li::after { content: ""; display: block; clear: both; }
  .right_web_pic { float: left; width: 85px !important; height: auto !important; }
  .right_web_name, .right_web_txt, .right_web_url { width: auto !important; margin-left: 95px; }

  .siteinfo, .siteinfo2, .wdata, .params, .relsite, .rellist, .artinfo, .atitle, .aattr, .artcontent, .aattr_url, .prevnext {
    width: auto !important; height: auto !important; box-sizing: border-box;
  }
  .artlist li h3, .artlist li .p1, .artlist li .time { width: auto !important; height: auto !important; }
  .artinfo img, .artcontent img { max-width: 100% !important; height: auto !important; }
  .rellist li { width: 33.33% !important; height: auto !important; float: left; box-sizing: border-box; }
  .topsite { width: auto !important; float: none !important; }
  .toplist li { width: auto !important; float: none; }
  .content_diy { width: auto !important; padding: 0 10px; box-sizing: border-box; }
  .content_diy_left, .content_diy_right, .content_diy #artinfo, .content_diy .atitle1, .content_diy .diy_content { width: auto !important; float: none !important; }
  .fbform li strong { width: auto !important; display: block; float: none; }

  /* ---------- 底部 ---------- */
  .foot { width: 100% !important; height: auto !important; }
  .foot_top { height: auto !important; }
  .foot_content { width: 100% !important; height: auto !important; padding: 15px 10px; box-sizing: border-box; }

  /* 清除浮动，避免列表高度为 0 与下一区块重叠 */
  .zztj_content ul::after, .zxdr_content ul::after, .yqlj_content ul::after, .zxzx_content ul::after,
  .wzdhlist ul::after, .left_list_content ul::after, .rellist::after, .listbox_content ul::after,
  .right_zixun_content ul::after, .right_web_content ul::after { content: ""; display: block; clear: both; }
}

@media (max-width: 480px) {
  .menu ul li { width: 33.33% !important; }
  .zztj_content ul li { width: 100% !important; }
  .zxdr_content ul li { width: 100% !important; }
  .left_list_content ul li { width: 50% !important; }
  .rellist li { width: 50% !important; }
  .kswz_pic { width: 100% !important; }
  .sipt { width: auto !important; }
}
