/* Shared refinements; retain the original theme and CMS markup. */
:root{--template-accent:#2879bb}
body{line-height:1.7;-webkit-text-size-adjust:100%}
a,button,input{touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--template-accent);outline-offset:3px}
img{max-width:100%}
.article-content{overflow-wrap:anywhere;line-height:1.9}
.article-content img,.article-content video{max-width:100%;height:auto}
.article-content iframe{max-width:100%}
.article-content pre{max-width:100%;overflow-x:auto;white-space:pre}
.article-content table{display:block;max-width:100%;overflow-x:auto}
.article-title,.excerpt h2,.pagecontent{overflow-wrap:anywhere}
.excerpt{transition:box-shadow .18s ease}
.excerpt:hover{box-shadow:0 4px 18px rgba(0,0,0,.04)}
.site-search{visibility:hidden;pointer-events:none}
body.template-search-open .site-search{visibility:visible;pointer-events:auto;top:0;opacity:1;z-index:1001}
.site-search-form{display:flex}.site-search-form .search-input{flex:1;min-width:0}.site-search-form .search-btn{flex-shrink:0}
.m-icon-nav{border:0;background:transparent;color:inherit;cursor:pointer}
.site-navbar a[aria-current=page]{color:var(--template-accent)}
.site-navbar li:focus-within>.sub-menu{display:block;visibility:visible;opacity:1}
.footer p{line-height:1.8;margin:8px 0}
@media(max-width:767px){
body.template-nav-open .site-navbar{display:block!important;position:fixed;top:60px;left:12px;right:12px;bottom:auto;max-height:75vh;overflow:auto;z-index:1000;padding:12px;background:var(--tb--white,#fff);box-shadow:0 8px 32px #0002;transform:none;visibility:visible;opacity:1;width:auto}
body.template-nav-open .site-navbar>li{display:block;float:none;margin:0}
body.template-nav-open .site-navbar a{display:block;padding:10px 14px;line-height:1.5}
body.template-nav-open .site-navbar .sub-menu{display:block;position:static;width:auto;opacity:1;visibility:visible;box-shadow:none;padding-left:14px}
.article-title{font-size:24px;line-height:1.5}.article-meta{line-height:1.8}.article-nav{display:flex;flex-wrap:wrap;gap:12px}.article-nav>span{float:none;width:100%;text-align:left}
.article-content{font-size:16px}.container{max-width:100%}.pagecontent{padding:20px 16px}.shares{height:auto;min-height:36px}.karbar{right:6px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Article sharing: preserve original icons, support keyboard and touch. */
.shares{height:auto;display:flex;flex-wrap:wrap;align-items:center;gap:6px;overflow:visible}
.shares>dfn,.shares>a{float:none;margin-right:0}
.shares .share-weixin{position:relative}
.shares .share-weixin .share-popover{display:none;z-index:20}
.shares .share-weixin:hover .share-popover,.shares .share-weixin:focus-visible .share-popover,.shares .share-weixin.share-qr-open .share-popover{display:block}
#weixin-qrcode{box-sizing:content-box;min-width:80px;min-height:80px;padding:12px;background:#fff;color:#333;line-height:1.5;font-size:12px}
#weixin-qrcode canvas,#weixin-qrcode img{width:80px;height:80px;max-width:none;margin:0}
/* Related articles: compact image-and-title grid matching the supplied reference. */
.relates-cards{margin:30px 0 24px}
.relates-cards>.title{margin:0 0 22px;padding:0;border:0;background:none}
.relates-cards>.title h3{position:relative;margin:0;padding:0 0 0 16px;border:0;font-size:18px;font-weight:700;line-height:1.5;color:inherit;background:none}
.relates-cards>.title h3::before{content:"";position:absolute;left:0;top:5px;bottom:5px;width:4px;border-radius:2px;background:#1684ff}
.relates-cards ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:20px;row-gap:24px;margin:0;padding:0;list-style:none;overflow:visible;align-items:start}
.relates-cards li{display:block;min-width:0;width:auto;margin:0;padding:0}
.relates-cards li::before{display:none}
.relates-cards .related-card{display:block;min-width:0;text-decoration:none;border:0;border-radius:0;box-shadow:none;background:none;color:inherit}
.relates-cards .related-card-image{display:flex;align-items:center;justify-content:center;aspect-ratio:3/2;overflow:hidden;box-sizing:border-box;padding:0;border:0;border-radius:6px;background:#f7f9fc}
.relates-cards .related-card-image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;margin:0;padding:0;border:0;border-radius:0}
.relates-cards .related-card-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;overflow-wrap:anywhere;line-height:1.55;margin:9px 0 0;padding:0;color:inherit;font-size:14px;font-weight:400;transition:color .18s ease}
.relates-cards .related-card:hover .related-card-title,.relates-cards .related-card:focus-visible .related-card-title{color:var(--template-accent)}
@media(max-width:640px){.relates-cards ul{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:20px}.relates-cards>.title{margin-bottom:16px}.relates-cards>.title h3{font-size:17px}.relates-cards .related-card-title{font-size:14px}}
