/* Desktop portal: preserve the original information hierarchy as available space changes. */
body .top_search .sidebar-search { grid-template-columns:minmax(0,1fr) 110px; }
body .top_search .sidebar-search :is(select,.ipt-search,.ipt-wrap,.search-form-con,.btn-search) { height:52px!important; box-sizing:border-box!important; margin:0!important; vertical-align:top; }
body .top_search .sidebar-search .ipt-search { display:block; }
body .top_search .sidebar-search .btn-search { width:100%!important; }
body .top_banner.box { display:grid!important; grid-template-columns:minmax(250px,26%) minmax(0,1fr); align-items:stretch!important; gap:14px; }
body .top_banner.box>.clear, body .top_banner.box::after { display:none!important; }
body .top_banner.box>.top_left,body .top_banner.box>.top_right { float:none!important; min-width:0; width:auto!important; height:auto!important; margin:0!important; box-sizing:border-box; }
body .top_banner.box>.top_right { display:flex; align-items:center; padding:0!important; }
body .top_banner .top_left .catgory-menu { height:auto!important; min-height:0; }
body .top_banner .top_right .advert { width:100%!important; height:auto!important; }
body .top_right .advert .imgscroll2 { width:100%!important; height:auto!important; aspect-ratio:900/430; }
body .top_right .advert .imglist,body .top_right .advert .imglist li,body .top_right .advert .imglist li a { width:100%!important; height:100%!important; }
body .top_right .advert .imglist img { width:100%!important; height:100%!important; object-fit:contain; }
body .jobsshow>.r .share-box { width:auto!important; max-width:100%; box-sizing:border-box; }
body .jobsshow>.r .share-box>div { max-width:100%; display:flex; flex-wrap:wrap; justify-content:center; gap:5px; }
body .jobsshow>.r .share-box :is(a,button) { max-width:100%; margin:0!important; }
body .so_condition { box-sizing:border-box!important; width:calc(100% - 48px)!important; max-width:1200px!important; }
body .so_condition>.so_condition_box { box-sizing:border-box!important; width:100%!important; margin:0!important; }
body .job-list,body .pl,body .job-list>ul,body .qspage { box-sizing:border-box; max-width:100%; }
body .category-grid .category-nav { align-self:start; }
@media(max-width:1199px) {
    html, html body { min-width:0!important; }
    body #mainNav .header { height:auto!important; min-width:0!important; }
    body #mainNav .header .wrap { box-sizing:border-box; width:calc(100% - 28px)!important; max-width:1200px; min-width:0!important; display:grid!important; grid-template-columns:minmax(0,1fr) auto auto; grid-template-areas:"logo account publish" "nav nav nav"; height:auto!important; align-items:center!important; gap:2px 12px; padding-top:6px; }
    body #mainNav .wrap::before,body #mainNav .wrap::after { display:none!important; }
    body #mainNav .header .logo { grid-area:logo; }
    body #mainNav .header .user-nav { grid-area:account; display:flex!important; align-items:center; }
    body #mainNav .header .header-publish-standalone { grid-area:publish; }
    body #mainNav .header .nav { grid-area:nav; width:100%!important; height:auto!important; padding:0; }
    body #mainNav .header .nav ul { width:auto!important; display:flex!important; flex-wrap:wrap; justify-content:flex-start; column-gap:4px; }
    body #mainNav .header .nav li,body #mainNav .header .nav li a { height:36px!important; line-height:36px!important; }
    body .box,body .wrap,body .w1000,body .w1200,body .pl,body .jobsshow,body .pc-list-banner,body .dushi-page-title,body .container:has(.category-grid) { min-width:0!important; width:calc(100% - 28px)!important; max-width:1200px!important; margin-left:auto!important; margin-right:auto!important; box-sizing:border-box; }
    body .so_condition { width:calc(100% - 28px)!important; min-width:0!important; margin-left:auto!important; margin-right:auto!important; }
    body .top_search .box { align-items:center!important; gap:16px; }
    body .top_search .hero-welcome { min-width:0; margin-bottom:0!important; }
    body .top_search .search-box,body .top_search .search-form { width:auto!important; min-width:0!important; }
    body .top_search .search-box { flex:1 1 320px; }
    body .top_search .new-right { display:none!important; }
    body .web_foot,body .web_foot_bt,body .web_foot_bt_c { min-width:0!important; width:100%!important; box-sizing:border-box; }
    body .web_foot>.w1000 { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; }
    body .web_foot .web_foot_wt,body .web_foot .web_foot_wh { float:none; min-width:0; width:auto; }
    body .web_foot .web_foot_wt { flex:1 1 540px; }
    body .web_foot .web_foot_wh { display:flex; flex-wrap:wrap; }
    body .web_foot .web_foot_wh dl { box-sizing:border-box; flex:1 1 110px; min-width:0; }
    body .web_foot .web_foot_wx { float:none; margin:0; }
    body .pl .job-list,body .pl .job-list>ul,body .pl .toptitle,body .pl .qspage { width:100%!important; min-width:0!important; margin-left:0!important; margin-right:0!important; }
    body .jobsshow { display:grid; grid-template-columns:minmax(0,3fr) minmax(220px,1fr); gap:20px; }
    body .jobsshow>.clear { display:none; }
    body .jobsshow>.l,body .jobsshow>.r,body .jobsshow .main { float:none!important; width:auto!important; box-sizing:border-box; min-width:0; }
    body .position-head .box { display:flex; flex-wrap:wrap; align-items:flex-start; gap:12px; }
    body .position-head .position-l,body .position-head .position-r { width:auto!important; min-width:0; }
    body .position-head .position-l { flex:1 1 360px; }
    body .position-head .job-name { height:auto; white-space:normal; overflow-wrap:anywhere; }
}
body .app-category-panel.box { grid-template-columns:repeat(9,minmax(0,1fr))!important; }
@media(min-width:640px) and (max-width:1023px) {
    body .app-category-panel.box { grid-template-columns:repeat(10,minmax(0,1fr))!important; }
    body .app-category-panel .app-category-item { grid-column:span 2; }
    body .app-category-panel .app-category-item:nth-child(6):nth-last-child(4) { grid-column:2 / span 2; }
}
@media(max-width:899px) {
    body .top_search .box { align-items:stretch!important; flex-direction:column; }
    body .top_search .search-box { flex:none; width:100%!important; }
    body .top_banner.box { grid-template-columns:minmax(210px,34%) minmax(0,1fr); }
    body .top_banner .top_left .catgory-menu { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr)); }
    body .top_banner .catgory-item { min-width:0; width:auto!important; }
    body .jobsshow { grid-template-columns:minmax(0,1fr); }
    body .position-head .job_request,body .jobsshow .main,body .jobsshow .describe { overflow-wrap:anywhere; }
    body .container .category-grid { display:grid; grid-template-columns:minmax(110px,22%) minmax(0,1fr); }
    body .container .category-content,body .container .category-nav { min-width:0; width:auto!important; box-sizing:border-box; }
    body .container .category-content { padding:16px; }
    body .box[style*="display:flex"]:has(>div:nth-child(2)) { flex-wrap:wrap!important; }
    body .box[style*="display:flex"]:has(>div:nth-child(2))>div { flex:1 1 320px!important; min-width:0; }
}
@media(max-width:639px) {
    body .top_banner.box,.category-section .category-grid { grid-template-columns:minmax(0,1fr); }
    body .top_banner .top_left .catgory-menu { grid-template-columns:repeat(4,minmax(0,1fr)); }
    body .top_search .sidebar-search { grid-template-columns:minmax(0,1fr) 60px; }
    body .top_search .sidebar-search .search-form-con { grid-template-columns:82px minmax(0,1fr); }
    body .top_search .sidebar-search .ipt-search { padding:0 8px!important; }
    body .top_search .sidebar-search select { padding:0 4px; }
    body .app-category-panel.box { grid-template-columns:repeat(3,minmax(0,1fr))!important; }
    body .area-links.box { gap:4px!important; }
    body .jobsshow>.l :is(.describe,.comjobs,.main),body .jobsshow .job-name,body .position-head .job_request { width:100%!important; min-width:0; box-sizing:border-box; }
    body .so_condition { padding:8px!important; }
    body .so_condition .so_condition_box { padding:5px!important; }
    body .so_condition .rs_list { display:flex; flex-wrap:wrap; align-items:baseline; }
    body .so_condition .rs_list>.rs { width:auto!important; min-width:0; flex:1 1 180px; height:auto!important; max-width:100%; }
    body .so_condition .rs_list>.lefttit { width:auto!important; margin-right:5px; }
    body .container .category-grid { display:block; }
    body .container .category-nav { display:flex; align-items:center; flex-wrap:wrap; gap:2px; padding:6px; }
    body .container .category-nav>* { flex:0 1 auto; width:auto!important; }
    body .web_foot .web_foot_wh dl { flex-basis:42%; height:auto!important; }
    body .web_foot .web_foot_wx { width:auto; }
    body .qspage { white-space:normal; height:auto!important; }
}
body .top_search .box { align-items:center!important; }
body .top_search .hero-welcome { margin-bottom:0!important; }
body .top_search .new-right { padding-top:0!important; }
body .top_search .sidebar-search .btn-search { min-width:0!important; }
body .category-grid .category-nav { position:sticky; top:12px; max-height:calc(100vh - 24px); overflow:auto; }
body .jobsshow .comjobs .listbox { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:10px; width:100%!important; padding:0; box-sizing:border-box; }
body .jobsshow .comjobs .listbox .list { float:none; width:auto!important; min-width:0; margin:0!important; box-sizing:border-box; }
body .jobsshow .comjobs .listbox .txt_top,body .jobsshow .comjobs .listbox .jobname { min-width:0; max-width:100%; }
body .jobsshow .comjobs .listbox .jobname { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body .pl>.toptitle,body .pl>.job-list>ul>li,body .pl .job-primary { box-sizing:border-box; }
@media(max-width:899px) {
    body .exchange-rate-calculator-pc .calculator-body { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:8px; }
    body .exchange-rate-calculator-pc .input-group,body .exchange-rate-calculator-pc .input-group input { width:100%!important; box-sizing:border-box; min-width:0; }
    body .company_list .new_sy_tit { height:auto!important; padding-bottom:6px; }
    body .company_list .new_sy_tit .ntab-w { width:auto!important; max-width:100%; display:flex!important; gap:2px; flex-wrap:wrap; float:none; }
    body .company_list .new_sy_tit .ntab { box-sizing:border-box; min-width:0; height:auto; }
    body .company_list .new_sy_tit .new_sy_tit_more { position:static!important; margin:0; }
    body .company_list .job_list { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
@media(max-width:639px) {
    body .top_search .box { align-items:stretch!important; }
    body .box>div>div[style*="grid-template-columns"] { grid-template-columns:repeat(auto-fit,minmax(65px,1fr))!important; }
    body .company_list .job_list { grid-template-columns:minmax(0,1fr)!important; }
    body .company_list .job_list>li { box-sizing:border-box; width:auto!important; }
    body .pl>.toptitle { height:auto!important; min-height:0; padding:4px!important; }
    body .pl>.toptitle .ltype { position:static!important; width:auto!important; min-width:0; float:none; height:auto!important; flex-wrap:wrap; }
    body .pl>.toptitle .ltype .typeli { margin:0!important; padding:0 8px; }
    body .pl>.toptitle .ts { width:auto!important; height:auto; }
    body .pl .job-list>ul li { padding:10px!important; width:100%!important; box-sizing:border-box; }
    body .pl .job-primary { display:flex; flex-direction:column; align-items:stretch; gap:5px; width:100%!important; padding:4px!important; }
    body .pl .job-primary .info-primary,body .pl .job-primary .info-company,body .pl .job-primary .company-text,body .pl .job-primary .name,body .pl .job-primary .res-tag { float:none!important; width:100%!important; max-width:100%; min-width:0; box-sizing:border-box; height:auto!important; }
    body .pl .job-primary .name .jtitle { float:none; width:100%!important; height:auto!important; line-height:1.45; white-space:normal!important; overflow-wrap:anywhere; }
    body .pl .job-primary .job-title-link { white-space:normal; }
    body .pl .job-primary .res_btnBox { position:static; width:auto!important; align-self:flex-start; }
    body .so_condition .rs_list .rs { display:flex; flex-wrap:wrap; gap:2px; }
    body .so_condition .rs_list .rs>.li { width:auto; float:none; margin:0!important; }
    body .container .category-grid .category-nav { position:static; max-height:none; }
    body .category-grid .category-nav ul { width:100%!important; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; position:static; }
    body .category-grid .category-nav li,body .category-grid .category-nav li a { margin:0; width:100%!important; box-sizing:border-box; min-width:0; }
    body .category-grid .category-nav li a { height:auto; padding:6px 1px; }
    body .category-content .sub-categories-grid { grid-template-columns:repeat(auto-fill,minmax(78px,1fr)); gap:5px; }
}
@media(max-width:639px) {
    /* The two oversized background circles extend beyond small viewports. */
    body .top_search::before,body .top_search::after { content:none!important; }
}
