/* Responsive layer shared by all EmpireCMS templates. */
html { -webkit-text-size-adjust: 100%; }
body { min-width: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

@media (max-width: 767px) {
  body { font-size: 15px; }
  .main, .tag_con { width: auto; max-width: none;  }
  .fl, .fr { float: none; }
  .bj_mt40 { margin-top: 24px; }
  .bj_mt60 { margin-top: 32px; }
  .bj_pt60 { padding-top: 32px; }

  /* Header and navigation */
  .header_bg { height: auto; padding-bottom: 16px; }
  .header2 { height: auto; padding: 16px 0; }
  .header2 .main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .header2 .logo { flex: 0 0 auto; }
  .header2 .logo img, .ar_header .logo img { max-height: 32px; width: auto; }
  .header2 .search { position: relative; left: auto; margin: 0; order: 3; width: 100%; }
  .header2 .search_f, .header_bg .search_f, .search_f { width: 100%; }
  .header2 .search_text, .header_bg .search_text, .search_text { width: calc(100% - 105px); box-sizing: border-box; }
  .header_bg .search { width: 100%; }
  .search_hot { width: 100%; }
  .header2 .login, .header2 .logged { margin-left: auto; }
  .nav2, .ar_header { height: auto; }
  .in_nav, .nav2 .nav_wrap, .ar_header .nav_wrap { height: auto; line-height: normal; }
  .nav_wrap { display: flex; flex-wrap: wrap; align-items: stretch; }
  .nav_item { margin: 0; flex: 0 0 auto; }
  .nav_mobile{display:none;}
  .nav_item span a, .nav2 .nav_item span a, .ar_header .nav3 li > a { padding: 10px 12px; line-height: 24px; font-size: 14px; }
  .nav_item_r, .sub { display: none !important; }
  .ar_header .main { margin: 0 16px; display: flex; align-items: center; flex-wrap: wrap; }
  .ar_header .logo { margin: 10px 0; }
  .ar_header .nav3 { width: calc(100% - 64px); margin: 0 0 0 12px; overflow-x: auto; }
  .ar_header .nav_wrap { flex-wrap: nowrap; white-space: nowrap; }
  .ar_search { width: 100%; margin: 0 0 12px; }
  .ar_search .search_f { width: 100%; }
  .ar_search .search_text { width: calc(100% - 40px); }

  /* Home */
  .in_header { width: auto; height: auto; margin: 0; padding: 0; }
  .con_ban { height: auto; padding-top: 16px; }
  .in_ban { position: static; }
  .ban_l, .ban_r { width: 100%; height: auto; padding: 0; }
  .tempWrap,body .ban_push .f16{padding: 12px;}
  .ban_r { margin-top: 16px; }
  .ban_picture, .banner, .banner .bd li { width: 100%; height: auto; }
  .banner .bd li { aspect-ratio: 2 / 1; }
  .banner img { min-height: 0; height: 100%; object-fit: cover; }
  .banner .bd li p { width: 100%; padding: 14px; height: auto; line-height: 22px; }
  .ban_zt, .ban_lm { height: auto; overflow: hidden; padding-bottom: 4px; }
  .ban_lm .bd { width: 100%; overflow: hidden; }
  .ban_zt .zt_itme, .ban_lm .lm_itme { width: 160px; margin-right: 10px; height: auto; }
  .ban_push { width: 100%; height: auto; }
  .lm, .fink_wrap { width: auto; margin: 16px; padding: 18px; }
  .lm_rwap { height: auto; }
  .lm_rwap .lm_nav2, .lm_article { width: 100%; height: auto; margin: 0 0 20px; }
  .lm_nwes { width: 100%; margin-bottom: 18px; }
  .lm_article .pic_lb1, .lm_article .pic_lb2, .pic_rwap .pic_lb2 { width: 100%; margin: 0 0 16px; }
  .lm_nav1 { max-width: 100%; overflow-x: auto; white-space: nowrap; }
  .lm_title { height: auto; padding-bottom: 12px; }
  .lm_title h3 { float: none; margin-bottom: 10px; }
  .lm_hot { width: 100%; }
  .pic { padding: 18px; }
  .pic_rwap .pic_lb2 .lb_img { height: auto; aspect-ratio: 16 / 9; }

  /* Lists and channels */
  .position { margin: 12px 0; }
  .con_l, .con_r, .con_l.fl, .con_r.fr { width: 100%; }
  .con_l { padding: 18px; }
  .con_r { margin-top: 16px; }
  .list_ms { padding: 0; height: auto; }
  .list_top, .ch_nav, .ch_tag { padding: 18px; }
  .ms_img { position: static; margin-top: 16px; }
  .ch_nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ch_nav .nav_li { width: auto; height: auto; min-height: 96px; margin: 0; padding: 12px 0; }
  .ch_ban, .ch_tag { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
  .ch_ban { padding: 18px; overflow: hidden; }
  .ch_ban .ban_l, .ch_ban .ban_r, .ch_ban .r_hot { width: 100%; }
  .ch_ban .ban_r { margin-top: 20px; }
  .ch_ban .list_tui .lb_4 { width: 100%; margin: 10px 0 0; }
  .ch_ban .list_ms, .ch_ban .ms_rwap { width: 100%; min-width: 0; }
  .ch_ban .ms_img img { max-width: 100%; height: auto; }
  .ch_tag { padding: 18px; overflow: hidden; }
  .ch_tag .tag_title, .ch_tag .tag_rwap { width: 100%; min-width: 0; box-sizing: border-box; }
  .ch_tag .tag_title { height: auto; min-height: 30px; }
  .ch_tag .tag_itme { height: auto; min-height: 36px; overflow: visible; display: flex; flex-wrap: wrap; align-items: flex-start; }
  .ch_tag .tag_itme .tag_bt { width: 100%; margin: 0 0 8px; }
  .ch_tag .tag_itme a { margin: 0 8px 8px 0; }
  .lm_te .lm_article { padding-top: 0; }
  .lm_te .lm_jx { position: static; margin-bottom: 18px; }
  .lm_jx li, .lm_jx .lb_4, .lm_jx .lb_5 { width: 100%; padding-right: 50px; float: none; box-sizing: border-box; }
  .lm_jx .lb_4 { height: 30px; }
  .lm_jx .lb_4 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lm_jx .lb_4 time, .lm_jx .lb_5 time { right: 0; }
  .list_hot .lb_3, .con_l .lb_4, .con_l .lb_5, .list_tui .lb_4, .lm_itme { width: 100%; float: none; margin-right: 0; }
  .list_itme, .list_itme2 { padding-right: 0; }
  .list_itme .cz_nr { position: static; margin-top: 10px; }
  .list_itme2::after { width: 100%; }
  .list_itme2 time { display: none; }
  .list_itme2 .itme_bt { position: relative; display: inline; }
  .tag_bt { position: static; width: 100%; padding: 8px; border-radius: 0; }
  .tag_rwap { height: auto; padding: 14px; }
  .list_tag { overflow: visible; }
  .ch_con .pic_lb1, .pic_lb1 { width: 100%; }

  /* Article */
  .ar_con { width: 100%; padding: 20px 16px; }
  .ar_title { margin: 8px 0 20px; }
  .ar_title h1 { font-size: 23px; line-height: 1.4; letter-spacing: 0; }
  .ar_title_b { margin-top: 14px; height: auto; }
  .sub_title { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; }
  .sub_title span { margin: 0; }
  .con_article { font-size: 16px; line-height: 1.8; }
  .con_article p, .con_article div { line-height: 1.8; text-indent: 0; }
  .con_article img { margin-left: 0; }
  .con_article iframe { height: auto !important; aspect-ratio: 16 / 9; }
  .ar_related, .ar_pic { padding: 18px; }
  .list_pic .pic_lb1 { width: 100%; }
  .con_prev { height: auto; }
  .con_prev p { max-width: 100%; float: none; margin: 8px 0; }

  .footer_wrap { padding: 28px 16px; }
  .footer_r { margin: 20px 0 0; }
  .footer_ewm { margin: 20px 0 0; }
  .fink_nr a { margin-right: 14px; }
}

@media (min-width: 768px) and (max-width: 1239px) {
  body { min-width: 0; }
  .main, .tag_con { width: calc(100% - 48px); }
  .con_l { width: calc(100% - 320px); }
  .con_r { width: 300px; }
  .header2 .search { left: 52%; }
  .in_header { width: 700px; padding-right: 0; }
  .lm, .fink_wrap { width: calc(100% - 48px); }
  .rc_nav { display: none; }
}
