@media screen and (min-width: 1024px) and (max-width: 1260px) {
  .ask_main_container { width: 100%; }
  .wraps { width: 100%; padding: 0 20px; }
  .ask_blacker { background-color: #06102e; height: auto; }
  .ask_topcase { width: 100%; max-width: 1200px; height: auto; min-height: 400px; background-size: cover; background-position: center; display: flex; align-items: center; padding: 20px 0; }
  .ask_casebtn { width: 55%; float: none; height: auto; margin-bottom: 0; }
  .ask_casebtn_flex { padding: 20px 40px; display: flex; flex-direction: column; justify-content: center; }
  .ask_casebtn_flex_top { font-size: 25px; line-height: 1.2; }
  .ask_casebtn_flex_top_p { font-size: 25px; margin: 60px 0 20px 0; }
  .ask_casebtn_flex_banner { margin-top: 25px; gap: 0; }
  .ask_casebtn_flex_banner_rm { width: 55px; height: 48px; }
  .ask_casebtn_flex_banner_rm img { margin-top: 8px; margin-left: 10px; }
  .list_ui { width: 320px; height: 48px; }
  .carousel-wrapper { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 48px; }
  .service-item { height: 48px; padding: 0 6px; }
  .service-item a { font-size: 13px; }
  .ask_casebtn_flex_bou { margin-top: 40px; gap: 40px; }
  .ask_casebtn_flex_bou div { margin-right: 0; }
  .ask_casebtn_flex_p { font-size: 13px; }
  .ask_casebtn_flex_p span { font-size: 24px; }
  .ask_casebtn_flex_but_p { font-size: 13px; margin-top: 12px; }
  .ask_topfrs { width: 45%; float: none; margin-top: 0; padding-right: 40px; }
  .ask_casebtn_rig { height: auto; width: 60%; padding: 30px; background-size: cover; border-radius: 8px; }
  .ask_topfrs .ask_casebtn_rig_top .ps { font-size: 20px; margin-bottom: 15px; }
  .ask_casebtn_rig_top_xz { margin: 15px 0; gap: 12px; }
  .map { gap: 10px; }
  .ask_casebtn_rig_top_xz_one { width: 105px; height: 38px; line-height: 38px; }
  .ask_casebtn_rig_top_xz_one .select1 { width: 105px; height: 38px; font-size: 12px; padding-left: 25px; }
  .ask_casebtn_rig_top_xz_three { width: 105px; height: 38px; line-height: 38px; margin-right: 10px; }
  .ask_casebtn_rig_top_xz_three .select3 { width: 105px; height: 38px; font-size: 12px; padding-left: 25px; }
  .ask_casebtn_rig_top_xz_two { width: 140px; height: 38px; line-height: 38px; }
  .ask_casebtn_rig_top_xz_two .select5 { width: 140px; height: 38px; font-size: 12px; padding-left: 35px; }
  .submit__textarea { width: 100%; height: 110px; font-size: 13px; padding: 10px; }
  .ask_casebtn_rig_top_butt { margin-top: 20px; }
  .ask_casebtn_rig_top_butt a { width: 100%; height: 40px; line-height: 40px; font-size: 16px; border-radius: 20px; }
  .ask_casebtn_rig_top_bonn { margin-top: 15px; width: 100%; font-size: 12px; }
  .ask_casebtn_rig_top_bonn p { font-size: 12px; }
  .ask_casebtn_rig_top_bonn p i { margin: 0 5px; }
  .ask_cont_btom { overflow: hidden; padding-bottom: 40px; display: flex; }
  .consult_fl { width: 68%; float: none; margin-right: 2%; }
  .consult_fr { width: 30%; float: none; margin-top: 0; }
  .gold_medal { padding-right: 0; }
  .gold_title h3 { font-size: 18px; padding: 20px 0 20px 12px; }
  .earnest { padding: 15px; margin-top: 4px; }
  .earnest .imga { width: 80px; height: 80px; }
  .messg { margin-left: 12px; }
  .messg_name { font-size: 15px; }
  .help { margin-top: 12px; font-size: 13px; }
  .specialize { margin-top: 8px; font-size: 12px; line-height: 1.4; }
  .consult { width: 80px; height: 26px; line-height: 26px; font-size: 12px; margin-top: 10px; }
  .erwei { margin-top: 20px; width: 100%; height: auto; }
  .erwei img { width: 100%; height: auto; }
  .hot_title { padding-top: 20px; }
  .hot_title ul li { font-size: 16px; margin-right: 20px; }
  .hot_title ul .character { font-size: 16px; }
  .hot_title_ss { width: 220px; height: 32px; line-height: 32px; }
  .hot_title_ss p { font-size: 12px; margin-left: 10px; }
  .hot_title_ss a i { font-size: 12px; margin-right: 12px; }
  .new_consult_ul ul li { padding: 20px 0; }
  .new_consult_ul ul li .issues { font-size: 15px; line-height: 1.5; }
  .hot_bon { margin-top: 15px; }
  .hot_span { font-size: 11px; padding: 2px 6px; margin-right: 15px; }
  .hot_mind { font-size: 12px; }
  .hot_bon_size { font-size: 12px; }
  .ask_cont_rm { padding-bottom: 40px; width: 100%; }
  .ask_cont_rm_t { height: 50px; }
  .ask_cont_rm_t p { line-height: 50px; }
  .ask_cont_rm_t p span:nth-child(1) { font-size: 18px; }
  .ask_cont_rm_t p span:nth-child(2) { font-size: 12px; }
  .ask_cont_attorney { gap: 20px; }
  .attorneys ul { width: 100%; display: flex; justify-content: space-between; gap: 15px; }
  .attor { width: calc(25% - 12px); height: 282px; padding: 10px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
  .attor_imgs { width: 100%; height: 176px; flex-shrink: 0; }
  .upward { position: absolute; left: 0; right: 0; bottom: 0; height: 106px; padding: 10px; background: #F4F4F4; transition: height 0.3s; display: flex; flex-direction: column; }
  .attor:hover .upward { height: 140px; box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1); }
  .attor_name { font-size: 14px; }
  .particulars { font-size: 12px; margin-top: 5px; height: 36px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .upward > a:last-child { margin-top: auto; }
  .particulars_but { font-size: 12px; margin-left: 0; margin-top: 10px; width: 100%; text-align: center; display: none; }
  .attor:hover .particulars_but { display: block; }
  .relieved { width: 100%; height: auto; padding: 30px 20px; margin-left: 0; margin-top: 20px; }
  .relieved_flex { margin-top: 0; }
  .relieved_three { margin-top: 20px; justify-content: space-around; }
  .consults { padding-bottom: 40px; display: flex; }
  .consults_fl { width: 68%; margin-right: 2%; }
  .consults_property_div { display: flex;width: 100%; }
  .consults_property_domes { display: none;width: 100%; }
}
@media screen and (min-width: 769px) and (max-width: 1023px) {
  .ask_main_container { width: 100%; }
  .wraps { width: 96%; }
  .ask_blacker { background-color: #06102e; height: auto; }
  .ask_topcase { width: 100%; height: auto; min-height: 400px; background-size: cover; background-position: center; display: flex; flex-direction: column; padding: 30px 0; }
  .ask_casebtn { width: 100%; float: none; height: auto; margin-bottom: 30px; }
  .ask_casebtn_flex { padding: 20px 40px; }
  .ask_casebtn_flex_top { font-size: 22px; text-align: center; }
  .ask_casebtn_flex_top_p { font-size: 22px; margin: 40px 0 20px 0; text-align: center; }
  .ask_casebtn_flex_banner { margin-top: 20px; justify-content: center; }
  .list_ui { width: 100%; max-width: 600px; }
  .carousel-wrapper { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 48px; }
  .ask_casebtn_flex_bou { margin-top: 30px; gap: 30px; justify-content: center; flex-direction: row; }
  .ask_casebtn_flex_p { font-size: 14px; }
  .ask_casebtn_flex_p span { font-size: 22px; }
  .ask_topfrs { width: 100%; float: none; margin-top: 0; padding: 0 40px; }
  .ask_casebtn_rig { width: 60%; margin: 0 auto; padding: 30px; background-size: cover; border-radius: 12px; }
  .ask_topfrs .ask_casebtn_rig_top .ps { font-size: 18px; text-align: center; margin-bottom: 20px; }
  .ask_casebtn_rig_top_xz { margin: 20px 0; gap: 15px; flex-direction: row; justify-content: space-between; }
  .map { gap: 15px; flex: 1; display: flex; }
  .ask_casebtn_rig_top_xz_one, .ask_casebtn_rig_top_xz_three { flex: 1; }
  .ask_casebtn_rig_top_xz_two { flex: 1.2; }
  .submit__textarea { width: 100%; height: 120px; font-size: 14px; }
  .ask_cont_btom { flex-direction: column; }
  .consult_fl { width: 100%; margin-right: 0; margin-bottom: 40px; }
  .consult_fr { width: 100%; }
  .attorneys ul { grid-template-columns: repeat(3, 1fr); gap: 20px;width: 100%; }
  .attor { width: 100%; height: 260px; display: flex; flex-direction: column; background: #fff; overflow: hidden; position: relative; }
  .attor_imgs { width: 100%; height: 160px; flex-shrink: 0; }
  .upward { position: absolute; left: 0; right: 0; bottom: 0; height: 100px; padding: 10px; background: #fff; transition: height 0.3s; display: flex; flex-direction: column; }
  .attor:hover .upward { height: 130px; box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1); }
  .particulars { font-size: 12px; margin-top: 5px; height: 36px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .upward > a:last-child { margin-top: auto; }
  .particulars_but { font-size: 12px; margin-left: 0; margin-top: 10px; width: 100%; text-align: center; display: none; }
  .attor:hover .particulars_but { display: block; }
  .consults { flex-direction: column; }
  .consults_fl { width: 100%; margin-right: 0; margin-bottom: 30px; }
  .relieved { width: 100%; margin-left: 0; }
}
@media screen and (max-width: 768px) {
  .ask_main_container { width: 100%; }
  .wraps { width: 100%; padding: 0 15px; }
  .ask_blacker { background-color: #06102e; height: auto; }
  .ask_topcase { width: 100%; height: auto; background-size: cover; background-position: center; display: flex; flex-direction: column; padding: 20px 0; }
  .ask_casebtn { width: 100%; float: none; height: auto; margin-bottom: 20px; }
  .ask_casebtn_flex { padding: 15px; text-align: center; }
  .ask_casebtn_flex_top { font-size: 18px; line-height: 1.3; }
  .ask_casebtn_flex_top_p { font-size: 18px; margin: 30px 0 15px 0; }
  .ask_casebtn_flex_banner { margin-top: 15px; justify-content: center; gap: 0; }
  .list_ui { width: 100%; max-width: 400px; }
  .service-item a { font-size: 12px; }
  .ask_casebtn_flex_bou { margin-top: 20px; gap: 15px; justify-content: center; flex-wrap: wrap; }
  .ask_casebtn_flex_p { font-size: 13px; }
  .ask_casebtn_flex_p span { font-size: 18px; }
  .ask_casebtn_flex_but_p { margin-top: 8px; font-size: 12px; }
  .ask_topfrs { width: 95%; float: none; margin: 0 auto; padding: 0 15px; }
  .ask_casebtn_rig { padding: 20px; background-size: cover; border-radius: 8px; }
  .ask_topfrs .ask_casebtn_rig_top .ps { font-size: 16px; margin-bottom: 15px; text-align: center; }
  .ask_casebtn_rig_top_xz { margin: 15px 0; gap: 10px; flex-direction: column; }
  .map { gap: 10px; flex-direction: row; display: flex; }
  .ask_casebtn_rig_top_xz_one, .ask_casebtn_rig_top_xz_three { flex: 1; }
  .ask_casebtn_rig_top_xz_two { width: 100%; }
  .submit__textarea { width: 100%; height: 100px; font-size: 13px; padding: 8px; }
  .ask_casebtn_rig_top_butt { margin-top: 15px; }
  .ask_casebtn_rig_top_butt a { width: 100%; height: 38px; line-height: 38px; font-size: 14px; border-radius: 19px; }
  .ask_casebtn_rig_top_bonn { margin-top: 10px; flex-wrap: nowrap; justify-content: center; gap: 8px; font-size: 11px; width: auto; }
  .ask_casebtn_rig_top_bonn p { margin-right: 0; font-size: 9px; }
  .ask_cont_btom { flex-direction: column; padding-bottom: 20px; }
  .consult_fl { width: 100%; margin-right: 0; margin-bottom: 25px; }
  .consult_fr { width: 100%; }
  .hot_title { flex-direction: column; gap: 15px; align-items: flex-start; }
  .hot_title_ss { width: 100%; height: 36px; }
  .new_consult_ul ul li { padding: 15px 0; }
  .new_consult_ul ul li .issues { font-size: 14px; }
  .gold_title h3 { font-size: 16px; padding: 15px 0 15px 10px; }
  .earnest .imga { width: 60px; height: 60px; }
  .messg { margin-left: 10px; }
  .messg_name { font-size: 14px; }
  .help { font-size: 12px; margin-top: 8px; }
  .specialize { font-size: 11px; margin-top: 5px; }
  .consult { width: 70px; height: 24px; line-height: 24px; font-size: 11px; }
  /* 热门律师 - 重新设计为四行展示 */
  .ask_cont_rm { padding-bottom: 25px; }
  .attorneys { width: 100%; margin-bottom: 20px; }
  .attorneys ul { grid-template-columns: 1fr; gap: 15px; width: 100%; display: grid; }
  .attor { width: 100%; height: auto; min-height: 100px; display: flex; flex-direction: row; background: #fff; border-radius: 12px; padding: 15px; position: static; overflow: visible; align-items: flex-start; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
  .attor_imgs { width: 80px; height: 80px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
  .attor_imgs img { width: 100%; height: 100%; object-fit: cover; }
  .upward { flex: 1; position: static; display: flex; flex-direction: column; height: auto; padding: 0 0 0 15px; background: transparent; transition: none; }
  .attor:hover .upward { height: auto; box-shadow: none; }
  .attor_name { font-size: 15px; font-weight: bold; color: #333; line-height: 1.2; }
  .particulars { font-size: 13px; margin-top: 6px; height: auto; max-height: 40px; line-height: 20px; color: #666; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .upward > a:last-child { margin-top: 10px; }
  .particulars_but { font-size: 12px; margin: 0; width: 90px; height: 30px; line-height: 30px; background: #1476F9; color: #fff; border-radius: 15px; display: block; text-align: center; }
  .attor:hover .particulars_but { display: block; }
  
  /* 律师活跃榜 */
  .consults { flex-direction: column; }
  .consults_fl { width: 100%; margin-right: 0; margin-bottom: 20px; }
  
  .consults_property_div { display: flex; }
  .consults_property_domes { display: none; gap: 10px; }
  .ask_rm_zx.clear::before, .ask_rm_zx.clear::after, .common__title.clear::before, .common__title.clear::after { content: none; display: none; }
  .ask_rm_zx { width: 100%; padding: 15px; box-sizing: border-box; display: block; }
  .consults_fl_f {flex-direction: column;}
  .consults_rm_li ul { display: flex; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .consults_rm_li ul li { flex-shrink: 0; }
  .consults_rm_li_bou_divs { width: 100%; }
  .consults_rm_li { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 15px; }
  .consults_rm_li ul { display: flex; white-space: nowrap; border-bottom: 1px solid #eee; }
  .consults_rm_li li { padding: 10px 15px; font-size: 14px; flex-shrink: 0; }
  .consults_rm_li_bou { display: grid; grid-template-columns: 1fr; gap: 15px; padding: 0; width: 100%; margin-bottom: 90px; }
  .consults_rm_li_bou_divs { background: #f4f4f4; border-radius: 8px; padding: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
  .consults_rm_li_bou_divs_spans { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .consults_rm_li_bou_divs_spans p { margin: 0; }
  .consults_rm_li_bou_divs_spans a { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 13px; color: #666; }
  .consults_item_wrapper { width: 100%; margin: 0; }

  .relieved {width: 100%;margin-left: 0;}
}
@media screen and (max-width: 480px) {
  .carousel-wrapper { grid-template-columns: repeat(4, 1fr); }
  .attorneys ul { grid-template-columns: 1fr; }
  .map { flex-direction: column; }
  .erwei {width: auto;}
  .ask_casebtn_flex_top { font-size: 16px; }
  .ask_casebtn_flex_top_p { font-size: 16px; }
  .ask_casebtn_flex_bou { flex-direction: row; align-items: center; }
  .ask_casebtn_rig_top_xz { gap: 10px; }
  .ask_casebtn_rig_top {width: 95%;}
  .consults_rg, .consults_property_domes, .consults_property_div {width: 100%;}
}

