/* Only content detail bodies. Original navigation, cards and banners are untouched. */
.jie-cont img,
.school-text img,
.service-details-left img,
.article-body img {
  display: block !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100%;
  height: auto;
}

/* Wrap all service links without overlapping the next category. */
.service-tags li{height:auto!important;min-height:60px;line-height:40px!important;padding:10px 0;box-sizing:border-box}
.service-list>ul{display:flex;flex-wrap:wrap;align-items:stretch}
.service-list li{float:none!important}
.service-list li .items{height:100%}
.service-list li .text h3{height:auto!important;min-height:40px}

/* Shared service shortcuts, preserving the original mint-green rail. */
.rm-shortcuts{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:1000;width:68px;background:#00AF95;box-shadow:0 2px 12px #0000000d;padding:0 5px;box-sizing:border-box}
.rm-shortcuts a,.rm-shortcuts button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;min-height:72px;padding:10px 0;box-sizing:border-box;background:none;color:white!important;font:11px/1.4 "Microsoft YaHei",sans-serif;text-decoration:none;border:0;border-bottom:1px solid #ffffff70;cursor:pointer;white-space:nowrap}
.rm-shortcuts button{border-bottom:0}.rm-shortcuts span{font-size:26px;line-height:1}.rm-shortcuts a:hover,.rm-shortcuts button:hover{background:#ffffff20}.rm-shortcuts :focus-visible{outline:2px solid white;outline-offset:-3px}
@media(max-height:520px){.rm-shortcuts a,.rm-shortcuts button{min-height:58px;padding:6px 0;gap:3px}.rm-shortcuts span{font-size:20px}}
@media(max-width:640px){.rm-shortcuts{width:64px;padding:0 4px}.rm-shortcuts a,.rm-shortcuts button{font-size:11px;min-height:65px}.rm-shortcuts span{font-size:22px}}

.rm-shortcuts img{display:block;width:28px;height:28px;object-fit:contain;margin:0!important}.rm-shortcuts button img{width:26px;height:22px}

/* Consistent service-specific outline icons. */
.rm-shortcuts a:nth-child(1) img{content:url("/shortcut-icons/screen.svg")}
.rm-shortcuts a:nth-child(2) img{content:url("/shortcut-icons/language.svg")}
.rm-shortcuts a:nth-child(3) img{content:url("/shortcut-icons/consult.svg")}
.rm-shortcuts a:nth-child(4) img{content:url("/shortcut-icons/booking.svg")}
.rm-shortcuts button img{content:url("/shortcut-icons/top.svg");width:26px;height:26px}.rm-shortcuts img{width:27px;height:27px}
/* Service directory uses category links on desktop and mobile. */
body:has(.service-tags) .service-list{display:none!important}

/* Consistent illustration titles and removal of duplicate detail calls to action. */
.kecheng_right>a,.anli_right>a,.zhuanjia_right>a,.jiaoshi_right>a,.fenxiao_right>a{float:none!important;display:block!important;text-align:center!important;width:100%!important}
.kecheng_right .time,.anli_right .time,.zhuanjia_right .time,.jiaoshi_right .time,.fenxiao_right .time{display:none!important}

.teacher-detail-page .ny_right{min-height:0}.teacher-detail-page .jie-cont{padding-bottom:25px}.teacher-detail-page .news_nei_list{margin-bottom:20px}
/* Match the case-detail separator without restoring the empty pagination gap. */
.teacher-detail-page .jie-cont{border-bottom:1px dashed #ccc}
/* White canvas for the service directory on all screen sizes. */
body:has(.service-tags),.combg:has(.service-tags){background-color:#fff!important}

/* Donation picture lists form complete rows regardless of title length. */
@media(min-width:768px){
.pro_list:has(a[href^="/article/"])>ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;width:100%;padding:0;margin:0;align-items:start}
.pro_list:has(a[href^="/article/"])>ul>li{float:none;width:auto;min-width:0;margin:0}
.pro_list:has(a[href^="/article/"]) .pro_img{width:100%;height:200px}
.pro_list:has(a[href^="/article/"]) .pro_img img{display:block;width:100%;height:100%;object-fit:contain;background:#f6f7f6}
.pro_list:has(a[href^="/article/"]) li p{white-space:normal;overflow-wrap:anywhere;line-height:1.7;min-height:54px;margin:0;padding:10px 4px;text-align:center}
}
