.honor-heading {display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.25rem}
.honor-heading h2 {font-size:clamp(1.5rem,3vw,2.25rem);color:#193858;margin:0}
.honor-gallery {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1.25rem}
.honor-gallery figure {margin:0;max-width:25rem}
.honor-gallery img {display:block;width:100%;aspect-ratio:1.6;object-fit:contain;background:#f5f6f8;border-radius:.65rem;padding:.65rem;box-sizing:border-box;cursor:zoom-in}
.honor-gallery figcaption {margin:.65rem 0 .3rem;font-weight:600;color:#243d56;line-height:1.5}
.honor-heading a,.honor-gallery figure>a:last-child {color:#325787;text-decoration:underline}
#honors {scroll-margin-top:6rem}
.honor-gallery .honor-photo {display:grid;place-items:center;aspect-ratio:1.6;background:#f5f6f8;border-radius:.65rem}
.honor-gallery .honor-photo img {width:80%;height:auto;aspect-ratio:1095/785;object-fit:fill;padding:0;border-radius:0}

.honor-photo {width:100%;border:0;padding:0;cursor:zoom-in}
.photo-preview .honor-enlarged {width:min(1095px,100%,calc((100dvh - 7rem)*1.39));height:auto}

[data-honors=ward] .honor-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
[data-honors=ward] .honor-gallery figure{max-width:none;min-width:0}
[data-honors=ward] .honor-gallery figcaption{font-size:14px}
@media(max-width:900px){[data-honors=ward] .honor-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}}
@media(max-width:480px){[data-honors=ward] .honor-gallery{gap:12px}[data-honors=ward] .honor-gallery figcaption{font-size:14px}}

/* 窄屏资质卡不再被右侧快捷入口遮挡，相关展示页沿用同一规则。 */
@media(max-width:760px){body:has([data-honors]) .side-float{position:static;transform:none;display:flex;flex-direction:row;justify-content:center;padding:12px;background:#fff}body:has([data-honors]) .side-float-pop{right:auto;left:0;top:auto;bottom:100%;transform:none}}

:is([data-honors=home],[data-honors=insurance]) .honor-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
:is([data-honors=home],[data-honors=insurance]) .honor-gallery figure{max-width:none;min-width:0}
@media(max-width:900px){:is([data-honors=home],[data-honors=insurance]) .honor-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:480px){:is([data-honors=home],[data-honors=insurance]) .honor-gallery{gap:12px}}

/* 口腔科同时展示医院资质和项目合作，电脑四列、手机两列。 */
.honor-gallery-dental{grid-template-columns:repeat(4,minmax(0,1fr))}.honor-gallery-dental figure{max-width:none;min-width:0}.honor-gallery-dental figcaption{font-size:14px}
@media(max-width:900px){.honor-gallery-dental{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
