body.ts-blog{--ts-ink:#24332e;--ts-muted:#748078;--ts-accent:#315d51;--ts-line:#e2e8e4;--ts-paper:#fff}
/* TechSir 部落: editorial reading layer, scoped to this independent theme. */
body.ts-blog.ts-portal{--ts-ink:#24332e;--ts-muted:#748078;--ts-accent:#315d51;--ts-line:#e2e8e4;--ts-paper:#fff;--dz-color:#315d51;background:#f5f6f7;color:var(--ts-ink);font-family:Manrope,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:20px}
body.ts-portal{background:#f0f5ef}
.ts-portal a{transition:color .2s cubic-bezier(.32,.72,0,1),background .2s cubic-bezier(.32,.72,0,1)}
.ts-portal a:hover{color:#24674e}.ts-portal a:focus-visible,.ts-portal button:focus-visible{outline:2px solid #39785d;outline-offset:4px}
.ts-portal h1,.ts-portal h2,.ts-portal h3{text-wrap:balance;font-weight:600}.ts-portal p{text-wrap:pretty}
.ts-blog .ts-skip{position:absolute;left:16px;top:-80px;background:#fff;padding:12px 16px;z-index:99999;border:1px solid var(--ts-line);border-radius:8px}.ts-blog .ts-skip:focus{top:16px}
.ts-portal .wp{max-width:1200px;width:calc(100% - 48px)}
.ts-blog .ts-kicker{display:block;color:var(--ts-accent);font-size:12px;line-height:16px;letter-spacing:.12em;font-weight:600;margin-bottom:16px}
.ts-community-intro{padding:32px 0 24px}.ts-community-intro h1{font-size:30px;line-height:36px;margin:0 0 8px}.ts-community-intro p{color:var(--ts-muted);font-size:16px;line-height:24px}
.ts-blog .ts-panel{padding:24px;background:var(--ts-paper);border:1px solid var(--ts-line);border-radius:16px;margin-bottom:24px;box-shadow:none}
.ts-blog .ts-panel-title{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:24px}.ts-panel-title h2{font-size:18px;line-height:28px;margin:0}.ts-panel-title>span{font-size:12px;line-height:16px;color:var(--ts-muted)}
.ts-blog .ts-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}
.ts-blog .ts-member{display:flex;align-items:center;flex-direction:column;gap:8px;min-width:0;text-align:center;font-size:14px;line-height:20px}.ts-member>span:last-child{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ts-blog .ts-member-avatar img{display:block;width:48px;height:48px;object-fit:cover;border-radius:50%}.ts-member-avatar{display:block;width:48px;height:48px}
.ts-blog .ts-empty{color:var(--ts-muted);padding:24px;font-size:14px;line-height:20px}.ts-empty h2{color:var(--ts-ink);font-size:20px;line-height:28px;margin-bottom:12px}.ts-empty a{display:inline-block;color:var(--ts-accent);margin-top:16px}
.ts-blog .ts-editorial-head{padding:48px 0 32px}.ts-editorial-head h1{font-size:48px;line-height:1;max-width:680px;letter-spacing:-.03em;margin:0 0 24px}.ts-editorial-head>p{font-size:18px;line-height:28px;color:var(--ts-muted);margin-bottom:32px}
.ts-blog .ts-channels{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.ts-channels a{display:inline-flex;padding:8px 16px;border:1px solid #d8e3d8;border-radius:9999px;color:#446251;background:#f7faf6;font-size:14px;line-height:20px}.ts-channels a:hover{background:#e2eddf}.ts-channels .ts-community-link{margin-left:auto;border-color:transparent;background:transparent}
.ts-blog .ts-editorial-layout{display:grid;grid-template-columns:minmax(0,1fr) 288px;gap:32px;align-items:start;padding-bottom:64px}
.ts-blog .ts-section-title{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:16px;gap:16px}.ts-section-title h2{font-size:20px;line-height:28px}.ts-section-title>span{font-size:12px;line-height:16px;color:var(--ts-muted)}
.ts-blog .ts-story{display:flex;align-items:center;gap:24px;padding:32px;background:#fff;border:1px solid var(--ts-line);border-radius:16px;margin-bottom:16px;min-width:0}
.ts-blog .ts-story-copy{flex:1;min-width:0}.ts-story-category{font-size:12px;line-height:16px;color:var(--ts-accent)}.ts-story h2{font-size:24px;line-height:32px;margin:8px 0 12px}.ts-story h2 a{color:var(--ts-ink)}.ts-story p{font-size:14px;line-height:20px;color:var(--ts-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:16px}.ts-story-date{color:var(--ts-muted);font-size:12px;line-height:16px}
.ts-blog .ts-story-image{flex:0 0 192px;max-width:32%;aspect-ratio:4/3;border-radius:8px;background:#f3f6f2;overflow:hidden}.ts-story-image img{display:block;width:100%;height:100%;object-fit:contain}
.ts-blog .ts-intro{background:#e7efe3}.ts-intro h2{font-size:24px;line-height:32px;margin-bottom:16px}.ts-intro p{font-size:14px;line-height:20px;color:#677966;margin-bottom:24px}.ts-intro>a{font-size:14px;line-height:20px;color:#315d51;font-weight:600}
/* Preserve native portal data/actions and give lists/content the same reading surface. */
body.ts-portal #pt{background:transparent;border:0;color:var(--ts-muted);margin-top:24px;margin-bottom:24px;font-size:12px;line-height:16px}
.ts-portal .ts-portal-native{display:grid;grid-template-columns:minmax(0,1fr) 288px;gap:32px;overflow:visible;padding-bottom:48px}.ts-portal-native:after{display:none}.ts-portal-native>.mn,.ts-portal-native>.sd{float:none;width:auto;min-width:0;margin:0}
.ts-portal .bm{border:1px solid var(--ts-line);border-radius:16px;background:#fff;box-shadow:none;margin-bottom:24px;overflow:hidden}.ts-portal .bm_h{height:auto;padding:24px 32px;background:#fff;border:0}.ts-portal .bm_h h1,.ts-portal .bm_h h2{font-size:24px;line-height:32px;font-weight:600}.ts-portal .bm_c{padding:24px 32px}
.ts-portal .xld dl{padding:24px 0;border-color:var(--ts-line)}.ts-portal .xld dt{font-size:24px;line-height:32px;font-weight:600;margin-bottom:12px}.ts-portal .xld dd{font-size:16px;line-height:24px;color:var(--ts-muted)}.ts-portal .xld .atc img{width:160px;height:120px;object-fit:contain;background:#f4f7f2;border:0;border-radius:8px}
.ts-portal .vw .h{padding:40px 40px 24px;border:0;text-align:left;background:#fff}.ts-portal .vw .ph{font-size:36px;line-height:40px;font-weight:600;margin-bottom:24px;letter-spacing:-.02em}.ts-portal .vw .h p{font-size:12px;line-height:20px;color:var(--ts-muted)}.ts-portal .vw .s{margin:0 40px 24px;padding:24px;background:#f0f5ed;border:0;border-radius:8px;color:#63715e;font-size:16px;line-height:24px}.ts-portal .vw .d{padding:0 40px 40px}.ts-portal #article_content{font-size:18px;line-height:1.8;color:#334238;overflow-wrap:anywhere}.ts-portal #article_content p{margin-bottom:24px}.ts-portal #article_content img{max-width:100%;height:auto;object-fit:contain}.ts-portal #article_content pre{overflow:auto;max-width:100%}.ts-portal .vwtb{table-layout:fixed;width:100%}
/* Community attachments are documents/screenshots, not mandatory cropped covers. */
.ts-blog .sg-thread-hero{background:#fff!important;min-height:0!important;color:var(--ts-ink)!important}.ts-blog .sg-thread-hero__media,.ts-blog .sg-thread-hero__shade{display:none!important}.ts-blog .sg-thread-hero .ts-no-cover{background:none}.ts-blog .sg-thread-hero h1,.ts-blog .sg-thread-hero a{color:var(--ts-ink)!important;text-shadow:none!important}
.ts-blog .kmimg_onebox{max-width:100%;width:auto!important;max-height:320px;overflow:hidden;border-radius:8px;background:#f0f2ef}.ts-blog .kmimg_onebox img{max-width:100%;max-height:320px;width:auto!important;height:auto!important;object-fit:contain!important}.ts-blog .kmimg_box img{object-fit:contain!important;background:#f0f2ef}
/* Legacy decorations never become the new theme's editorial identity. */
.ts-blog .sg-diy-about,.ts-blog .date-card,.ts-blog .date_card,.ts-blog .sg-date-card,.ts-blog .sg-diy-date{display:none!important}
@media(max-width:960px){.ts-portal .wp{width:calc(100% - 32px)}.ts-blog .ts-editorial-layout,.ts-portal .ts-portal-native{grid-template-columns:minmax(0,1fr)}.ts-blog .ts-sidebar,.ts-portal-native>.sd{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ts-blog .ts-story{padding:24px}.ts-blog .ts-story-image{flex-basis:160px}.ts-blog .ts-editorial-head h1{font-size:36px;line-height:40px}.ts-blog .ts-channels .ts-community-link{margin-left:0}}
@media(max-width:600px){.ts-blog .ts-editorial-head{padding:32px 0 24px}.ts-blog .ts-story{gap:16px;padding:24px 16px}.ts-story h2{font-size:20px;line-height:28px}.ts-blog .ts-story-image{flex-basis:96px;max-width:28%}.ts-blog .ts-sidebar,.ts-portal-native>.sd{display:block}.ts-blog .ts-panel{padding:24px}.ts-portal .vw .h{padding:24px 16px}.ts-portal .vw .ph{font-size:30px;line-height:36px}.ts-portal .vw .s{margin:0 16px 24px;padding:16px}.ts-portal .vw .d{padding:0 16px 24px}.ts-portal .bm_c,.ts-portal .bm_h{padding:24px 16px}.ts-portal .xld .atc{float:none;margin:16px 0}.ts-portal .xld .atc img{width:100%;height:auto;max-height:200px}.ts-blog .ts-editorial-layout{padding-bottom:32px}}
@media(prefers-reduced-motion:reduce){.ts-blog *{transition:none!important;animation:none!important}}
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero{height:auto;min-height:0;background:#fff;border:1px solid var(--ts-line);border-radius:16px;margin-bottom:24px}
body.ts-blog.discuzx5 .sg-thread-hero__content{position:relative;inset:auto;padding:32px;color:var(--ts-ink)}
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .plc{padding:0}
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .ts{font-family:inherit;font-size:36px!important;line-height:40px;margin:16px 0 24px}
body.ts-blog.discuzx5 .sg-thread-hero__tag{background:#e8efeb;color:#315d51!important;font-size:12px;line-height:16px;border-radius:4px}
body.ts-blog.discuzx5 .sg-thread-hero__meta{color:var(--ts-muted)}
@media(max-width:600px){body.ts-blog.discuzx5 .sg-thread-hero__content{padding:24px 16px}body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .ts{font-size:30px!important;line-height:36px}}
body.ts-blog .dzlogo{background:none!important}body.ts-blog .dzlogo img{display:block!important;max-width:184px;max-height:40px;height:auto}

/* Preserve upstream aggregate slideshow and side modules. */
body.ts-blog .sg-diy-member-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
/* Thread header and reply composer: explicit covers only, natural empty height. */
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero{border:0;border-radius:0;margin:0;box-sizing:border-box;background:#fff!important}
body.ts-blog.discuzx5 #postlist.pl{overflow:hidden}
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .plc{height:auto!important;min-height:0!important;overflow:visible}
body.ts-blog.discuzx5 .sg-thread-hero__content{padding:32px;min-height:0;box-sizing:border-box}
body.ts-blog.discuzx5 .sg-thread-hero__content>.xg1{display:inline-block;margin:0 0 16px;font-size:14px}
body.ts-blog.discuzx5 .sg-thread-hero__meta{flex-wrap:wrap;gap:16px}
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero.has-cover .plc{min-height:320px!important;display:flex;align-items:flex-end}
body.ts-blog.discuzx5 .sg-thread-hero.has-cover .sg-thread-hero__media{display:block!important;object-fit:cover;object-position:center}
body.ts-blog.discuzx5 .sg-thread-hero.has-cover .sg-thread-hero__shade{display:block!important;background:rgba(9,22,18,.64)}
body.ts-blog.discuzx5 .sg-thread-hero.has-cover .sg-thread-hero__content{width:100%;color:#fff!important}
body.ts-blog.discuzx5 .sg-thread-hero.has-cover h1,body.ts-blog.discuzx5 .sg-thread-hero.has-cover a,body.ts-blog.discuzx5 .sg-thread-hero.has-cover .sg-thread-hero__meta{color:#fff!important}
body.ts-blog.discuzx5 .ts-cover-manager{font-size:14px;margin-left:auto}
body.ts-blog.discuzx5 .ts-cover-manager summary{cursor:pointer;text-decoration:underline}
body.ts-blog.discuzx5 .ts-cover-manager[open]{flex-basis:100%;margin-left:0}
body.ts-blog.discuzx5 .ts-cover-manager form{background:#fff;color:#23342d;padding:16px;margin-top:16px;border:1px solid var(--ts-line);border-radius:8px}
body.ts-blog.discuzx5 .ts-cover-manager input[type=url]{display:block;box-sizing:border-box;width:100%;padding:8px;margin-top:8px;border:1px solid var(--ts-line)}
body.ts-blog.discuzx5 .ts-cover-manager button{padding:8px 16px;cursor:pointer}
body.ts-blog.discuzx5 #newspecialtmp,body.ts-blog.discuzx5 #post_replytmp{display:none!important}
body.ts-blog.discuzx5 #f_pst .pls{border:0!important;background:transparent!important;width:96px!important;padding:24px 0 24px 24px;vertical-align:top}
body.ts-blog.discuzx5 #f_pst .pls .avatar{margin:0!important;padding:0!important}
body.ts-blog.discuzx5 #f_pst .pls .avatar img{width:56px!important;height:56px!important;border-radius:50%}
body.ts-blog.discuzx5 #f_pst .plc{border:0!important;background:transparent!important;padding:24px!important}
body.ts-blog.discuzx5 #f_pst #fastposteditor{margin:0!important;width:auto!important}
body.ts-blog.discuzx5 #f_pst .pnpost{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
body.ts-blog.discuzx5 #fastpostsubmit{order:10;margin-left:auto;float:none}
body.ts-blog.discuzx5 #f_pst .pnpost>a.y{float:none;font-size:12px}
@media(max-width:600px){body.ts-blog.discuzx5 #f_pst .pls{display:none}body.ts-blog.discuzx5 #f_pst .plc{padding:16px!important}body.ts-blog.discuzx5 .sg-thread-hero__content{padding:24px 16px}body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero.has-cover .plc{min-height:256px!important}}
/* Consistent white reading surfaces. */
body.ts-blog.discuzx5 .sg-viewthread-main #postlist,
body.ts-blog.discuzx5 .sg-viewthread-main .plhin,
body.ts-blog.discuzx5 .sg-viewthread-main .plhin>tbody>tr>td,
body.ts-blog.discuzx5 .sg-viewthread-main #f_pst,
body.ts-blog.discuzx5 #f_pst .plc,
body.ts-blog.discuzx5 #f_pst .pls,
body.ts-blog.discuzx5 #f_pst .tedt .area,
body.ts-blog.discuzx5 #f_pst .tedt textarea,
body.ts-blog.discuzx5 .sg-viewthread-sidebar .block,
body.ts-blog.discuzx5 .sg-viewthread-sidebar .frame,
body.ts-blog.discuzx5 .sg-viewthread-sidebar .sg-viewthread-recommend{background:#fff!important;background-image:none!important}
body.ts-blog.discuzx5 .sg-viewthread-sidebar .frame{box-shadow:none}
body.ts-blog.discuzx5 .ts-thread-topline{display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px}
body.ts-blog.discuzx5 .ts-thread-topline>.sg-thread-hero__tag{justify-self:start}
body.ts-blog.discuzx5 .ts-thread-topline>.ts-cover-manager{display:contents}
body.ts-blog.discuzx5 .ts-thread-topline .ts-cover-manager summary{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin:0;padding:0;list-style:none;border:1px solid var(--ts-line);border-radius:8px;color:var(--ts-muted);text-decoration:none;cursor:pointer}
body.ts-blog.discuzx5 .ts-cover-manager summary::-webkit-details-marker{display:none}
body.ts-blog.discuzx5 .ts-thread-topline .ts-cover-manager form{grid-column:1/-1;grid-row:2;margin:0;font-size:14px}
body.ts-blog.discuzx5 .ts-cover-manager:not([open])>form{display:none}
body.ts-blog.discuzx5 .ts-tool-icon svg,body.ts-blog.discuzx5 .ts-cover-manager summary svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.ts-blog.discuzx5 .ts-thread-tools{margin-left:auto;display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--ts-muted);font-size:12px}
body.ts-blog.discuzx5 .ts-tool-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;border:1px solid var(--ts-line);text-decoration:none}
body.ts-blog.discuzx5 .ts-tool-icon:hover,body.ts-blog.discuzx5 .ts-cover-manager summary:hover{background:#f1f5f3;color:#315d51}
body.ts-blog.discuzx5 .ts-tool-icon:focus-visible,body.ts-blog.discuzx5 .ts-cover-manager summary:focus-visible{outline:2px solid #315d51;outline-offset:2px}
body.ts-blog.discuzx5 .ts-thread-tools #fj{display:flex;align-items:center;gap:4px;float:none}
body.ts-blog.discuzx5 .ts-thread-tools #fj label{display:none}
body.ts-blog.discuzx5 .ts-thread-tools #fj input{box-sizing:border-box;width:36px;height:28px;border-radius:6px;margin:0}
body.ts-blog.discuzx5 .ts-thread-tools .ts-meta-floor{font-weight:400;margin:0 4px;float:none}
body.ts-blog.discuzx5 .ts-first-header-moved .pipe.show{display:none!important}
body.ts-blog.discuzx5 .ts-first-header-moved{height:auto!important;min-height:0!important;padding-top:0!important;padding-bottom:0!important}
@media(max-width:600px){body.ts-blog.discuzx5 .ts-thread-tools{width:100%;margin-left:0}body.ts-blog.discuzx5 .sg-thread-hero__meta{gap:12px}}
/* Forum identity: optional icon, native introduction and moderators. */
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading{background:#fff;min-height:0;padding:32px;display:grid;grid-template-columns:minmax(0,1fr);gap:16px 24px}
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading.ts-forum-has-icon{grid-template-columns:120px minmax(0,1fr)}
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading>img{grid-column:1/-1;max-width:100%;height:auto;border-radius:8px}
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading>.ts-forum-heading-icon{grid-column:1;grid-row:2/span 2;align-self:start}
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading:not(:has(>img))>.ts-forum-heading-icon{grid-row:1/span 2}
body.ts-blog.discuzx5 .ts-forum-heading-icon img{display:block;width:120px;height:120px;object-fit:contain;border-radius:12px;overflow:hidden}
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading>.bm_h.sg-forum-page-heading__content{padding:0;min-height:0;grid-column:1;overflow:visible}
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading.ts-forum-has-icon>.bm_h.sg-forum-page-heading__content,
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading.ts-forum-has-icon>.sg-forum-page-heading__meta{grid-column:2}
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading>.sg-forum-page-heading__meta{padding:0;margin:0;grid-column:1;background:transparent;border:0}
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading h1{margin:16px 0;font-size:36px;line-height:1.3;overflow-wrap:anywhere}
body.ts-blog.discuzx5 .sg-forum-page-heading__intro{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:16px;line-height:1.7}
body.ts-blog.discuzx5 .sg-forum-page-heading__intro>div{min-width:0}
body.ts-blog.discuzx5 .sg-forum-page-heading__extra{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px;line-height:1.7}
body.ts-blog.discuzx5 .ts-forum-meta-icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;color:#638076;margin-top:3px}
body.ts-blog.discuzx5 .sg-forum-page-heading__rules-link .ts-forum-meta-icon{margin:0 6px 0 0}
@media(max-width:600px){body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading{padding:24px 16px;gap:12px}body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading.ts-forum-has-icon{grid-template-columns:64px minmax(0,1fr)}body.ts-blog.discuzx5 .ts-forum-heading-icon img{width:64px;height:64px;border-radius:8px}body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading h1{font-size:24px;line-height:1.4;margin:12px 0}body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading.ts-forum-has-icon>.sg-forum-page-heading__meta{grid-column:1/-1}}

/* Reset inherited Discuz bm_h dimensions and old absolute header controls. */
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading{height:auto!important;max-height:none!important;overflow:visible;align-items:start;grid-auto-rows:auto}
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading>.bm_h.sg-forum-page-heading__content{height:auto!important;max-height:none!important;min-height:0!important;line-height:normal!important;display:flow-root;float:none;white-space:normal}
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading h1{font-family:inherit;font-size:36px!important;line-height:1.35!important;height:auto!important;float:none!important;white-space:normal;margin:16px 0!important}
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading h1 a{white-space:normal;overflow-wrap:anywhere}
body.ts-blog.discuzx5 .sg-forum-page-heading__intro{overflow:visible;-webkit-line-clamp:unset;max-width:none}
body.ts-blog.discuzx5 .sg-forum-page-heading__intro>div{display:block}
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading>.sg-forum-page-heading__meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;position:static;height:auto!important;margin:0!important;padding:0!important;float:none}
body.ts-blog.discuzx5 .sg-forum-page-heading__rules-link{position:static!important;inset:auto!important;flex:none;align-self:center;margin:0!important}
body.ts-blog.discuzx5 .sg-forum-rules-panel{flex-basis:100%;min-width:0}
@media(max-width:600px){body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading h1{font-size:24px!important}}

/* Compact board identity with a quiet, icon-only rules control. */
body.ts-blog.discuzx5 .ts-forum-heading-icon img{border-radius:20px}
body.ts-blog.discuzx5 .ts-forum-title-row{display:flex;align-items:center;gap:16px;min-width:0;margin-bottom:16px}
body.ts-blog.discuzx5 .boardnav .ts-forum-title-row h1{flex:1;min-width:0;margin:0!important}
body.ts-blog.discuzx5 .ts-forum-title-row>.sg-forum-page-heading__rules-link{margin-left:auto!important;display:inline-flex;width:32px;height:32px;flex:0 0 32px;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:#858c88;border-radius:8px}
body.ts-blog.discuzx5 .ts-forum-title-row>.sg-forum-page-heading__rules-link .ts-forum-meta-icon{color:inherit;margin:0;width:20px;height:20px}
body.ts-blog.discuzx5 .ts-forum-title-row>.sg-forum-page-heading__rules-link:hover{color:#465d53;background:#f2f5f3}
body.ts-blog.discuzx5 .ts-forum-title-row>.sg-forum-page-heading__rules-link:focus-visible{outline:2px solid #638076;outline-offset:2px}
@media(max-width:600px){body.ts-blog.discuzx5 .ts-forum-heading-icon img{border-radius:12px}body.ts-blog.discuzx5 .ts-forum-title-row{gap:8px;margin-bottom:12px}}

/* Smaller board logo and supporting icons. */
body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading.ts-forum-has-icon{grid-template-columns:80px minmax(0,1fr)}
body.ts-blog.discuzx5 .ts-forum-heading-icon img{width:80px;height:80px;border-radius:16px}
body.ts-blog.discuzx5 .ts-forum-meta-icon{width:16px;height:16px}
body.ts-blog.discuzx5 .ts-forum-title-row>.sg-forum-page-heading__rules-link .ts-forum-meta-icon{width:16px;height:16px}
@media(max-width:600px){body.ts-blog.discuzx5 .boardnav .sg-forum-page-heading.ts-forum-has-icon{grid-template-columns:48px minmax(0,1fr)}body.ts-blog.discuzx5 .ts-forum-heading-icon img{width:48px;height:48px;border-radius:10px}}

/* Remove inherited cover-era title width and keep metadata tools compact. */
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .ts{max-width:none!important;width:100%!important;box-sizing:border-box;text-wrap:wrap!important;font-size:32px!important;line-height:1.4!important;margin:20px 0 24px!important}
body.ts-blog.discuzx5 .sg-thread-hero__content{height:auto!important;min-height:0!important}
body.ts-blog.discuzx5 .sg-thread-hero__meta{line-height:1.5!important;gap:12px!important;align-items:center}
body.ts-blog.discuzx5 .ts-thread-tools{width:auto!important;flex:0 0 auto;flex-wrap:nowrap!important;gap:6px;line-height:1.5}
body.ts-blog.discuzx5 .ts-thread-tools #fj{margin:0!important;padding:0!important;width:auto!important;white-space:nowrap}
body.ts-blog.discuzx5 .ts-thread-tools .ts-tool-icon{width:28px;height:28px}
body.ts-blog.discuzx5 .ts-thread-tools .ts-tool-icon svg{width:16px;height:16px}
body.ts-blog.discuzx5 .ts-cover-manager summary{width:28px!important;height:28px!important}
body.ts-blog.discuzx5 .ts-cover-manager summary svg{width:16px!important;height:16px!important}
@media(max-width:600px){body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .ts{font-size:24px!important}body.ts-blog.discuzx5 .ts-thread-tools{margin-left:0;flex-basis:100%}}

body.ts-blog.discuzx5 .ts-first-header-moved .pdbt:empty{display:none}

/* Full-width, modest title; align tools to the same right reading edge. */
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .plc{width:100%!important;max-width:none!important}
body.ts-blog.discuzx5 .sg-thread-hero__content{width:100%!important;max-width:none!important;inset:auto!important;padding:24px!important}
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .ts{font-size:28px!important;max-width:none!important;text-wrap:initial!important;white-space:normal!important;word-break:normal;overflow-wrap:break-word;letter-spacing:normal}
body.ts-blog.discuzx5 #thread_subject{max-width:none!important;white-space:normal!important}
body.ts-blog.discuzx5 .ts-thread-topline,body.ts-blog.discuzx5 .sg-thread-hero__meta{width:100%;max-width:none;box-sizing:border-box}
body.ts-blog.discuzx5 .ts-thread-tools{margin-left:auto!important;justify-content:flex-end}
body.ts-blog.discuzx5 .ts-cover-manager summary::marker{content:''}
body.ts-blog.discuzx5 .ts-first-header-moved[hidden]{display:none!important}
@media(max-width:600px){body.ts-blog.discuzx5 .sg-thread-hero__content{padding:20px 16px!important}body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .ts{font-size:22px!important}}

/* Separate the thread title from its author and reading tools. */
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .ts{padding-bottom:20px!important;margin-bottom:20px!important;border-bottom:1px solid #e8ece9}
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero.has-cover .ts{border-bottom-color:rgba(255,255,255,.28)}
@media(max-width:600px){body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .ts{padding-bottom:16px!important;margin-bottom:16px!important}}

/* Compact header, category hanging from the top border, clean sidebar cards. */
body.ts-blog.discuzx5 .sg-thread-hero__content{padding:0 16px 12px!important}
body.ts-blog.discuzx5 .ts-thread-topline{min-height:32px;align-items:start;margin:0}
body.ts-blog.discuzx5 .sg-thread-hero__tag{display:inline-flex;align-items:center;position:relative;top:-1px;margin:0;padding:5px 12px;min-height:0;border-radius:0 0 6px 6px!important;border:1px solid #dce7e1;border-top:0;font-size:12px!important;line-height:20px;box-sizing:border-box}
body.ts-blog.discuzx5 .ts-thread-topline .ts-cover-manager summary{margin-top:8px!important;justify-self:end}
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .ts{margin:10px 0 12px!important;padding:0 0 12px!important;line-height:1.4!important}
body.ts-blog.discuzx5 .sg-thread-hero__meta{margin:0!important;padding:0!important;min-height:32px!important;line-height:1.4!important}
body.ts-blog.discuzx5 .sg-thread-hero__avatar{width:28px!important;height:28px!important}
body.ts-blog.discuzx5 .ts-thread-tools{margin-right:0!important}
body.ts-blog.discuzx5 .ts-thread-tools #fj input{height:26px;width:30px}
body.ts-blog.discuzx5 .sg-viewthread-sidebar .frame,
body.ts-blog.discuzx5 .sg-viewthread-sidebar .column,
body.ts-blog.discuzx5 .sg-viewthread-sidebar .column>.cl,
body.ts-blog.discuzx5 .sg-viewthread-sidebar .area{background:transparent!important;background-image:none!important;box-shadow:none!important;border:0}
body.ts-blog.discuzx5 .sg-viewthread-sidebar .block{background:#fff!important;background-image:none!important;box-shadow:none!important;border:1px solid #e6eae7;border-radius:12px;overflow:hidden;margin-bottom:20px}
body.ts-blog.discuzx5 .sg-viewthread-sidebar .block .title,
body.ts-blog.discuzx5 .sg-viewthread-sidebar .block .dxb_bc,
body.ts-blog.discuzx5 .sg-viewthread-sidebar .block .module{background:transparent!important;background-image:none!important;box-shadow:none!important}
body.ts-blog.discuzx5 #vfastpostform{display:none!important}
@media(max-width:600px){body.ts-blog.discuzx5 .sg-thread-hero__content{padding:0 12px 12px!important}body.ts-blog.discuzx5 .ts-thread-tools{flex-basis:auto!important;margin-left:auto!important}}

/* Let the header share exactly the same reading width as the post body. */
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero>tbody,
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero>tbody>tr,
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .plc{display:block!important;width:100%!important;max-width:none!important;box-sizing:border-box;padding:0!important}
body.ts-blog.discuzx5 .sg-thread-hero__content{width:100%!important;max-width:none!important;padding:0 20px 12px!important;box-sizing:border-box;left:auto!important;right:auto!important}
body.ts-blog.discuzx5 #postlist .posthead.sg-thread-hero .ts{margin:8px 0 10px!important;padding-bottom:10px!important;min-height:0!important}
body.ts-blog.discuzx5 .sg-thread-hero__meta{min-height:32px!important;line-height:1.4!important;row-gap:8px!important}
body.ts-blog.discuzx5 .sg-thread-hero__author{flex:0 0 auto;gap:10px;line-height:1.4!important}
body.ts-blog.discuzx5 .sg-thread-hero__avatar{display:block!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;aspect-ratio:1;object-fit:cover;border-radius:50%;flex:0 0 32px!important;box-sizing:border-box}
body.ts-blog.discuzx5 .ts-thread-topline,body.ts-blog.discuzx5 .ts-thread-tools{max-width:none!important;margin-right:0!important}
@media(max-width:600px){body.ts-blog.discuzx5 .sg-thread-hero__content{padding:0 16px 12px!important}}

/* Forum listing: explicit sibling tracks instead of legacy floated widths. */
body.ts-blog.discuzx5 .boardnav>#ct.sg-forumdisplay-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start;width:calc(100% - 32px)!important;max-width:1440px;margin:34px auto 0!important;box-sizing:border-box;overflow:visible}
body.ts-blog.discuzx5 .boardnav>#ct.sg-forumdisplay-layout.ts-has-left-nav{grid-template-columns:160px minmax(0,1fr) 280px}
body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout::before,
body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout::after{display:none!important;content:none!important}
body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout>.mn,
body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout>.sd,
body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout>.dz_bdl{float:none!important;clear:none!important;position:relative!important;inset:auto!important;width:auto!important;min-width:0;max-width:100%;margin:0!important;box-sizing:border-box;align-self:start}
body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout>.mn{grid-column:1;grid-row:1}
body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout>.sd{grid-column:2;grid-row:1}
body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout.ts-has-left-nav>.dz_bdl{grid-column:1;grid-row:1}
body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout.ts-has-left-nav>.mn{grid-column:2;grid-row:1}
body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout.ts-has-left-nav>.sd{grid-column:3;grid-row:1}
body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout>.sd .drag,
body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout>.sd .area{min-width:0;max-width:100%}
@media(min-width:1024px) and (max-width:1200px){body.ts-blog.discuzx5 .boardnav>#ct.sg-forumdisplay-layout{gap:16px;grid-template-columns:minmax(0,1fr) 240px}body.ts-blog.discuzx5 .boardnav>#ct.sg-forumdisplay-layout.ts-has-left-nav{grid-template-columns:140px minmax(0,1fr) 240px}}
@media(max-width:1023px){body.ts-blog.discuzx5 .boardnav>#ct.sg-forumdisplay-layout{grid-template-columns:minmax(0,1fr)}body.ts-blog.discuzx5 .boardnav>#ct.sg-forumdisplay-layout.ts-has-left-nav{grid-template-columns:140px minmax(0,1fr)}body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout>.sd{grid-column:1;grid-row:2}body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout.ts-has-left-nav>.sd{grid-column:2;grid-row:2}}
@media(max-width:760px){body.ts-blog.discuzx5 .boardnav>#ct.sg-forumdisplay-layout,body.ts-blog.discuzx5 .boardnav>#ct.sg-forumdisplay-layout.ts-has-left-nav{grid-template-columns:minmax(0,1fr);gap:16px;width:calc(100% - 24px)!important}body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout.ts-has-left-nav>.dz_bdl{grid-column:1;grid-row:1;max-height:240px;overflow:auto}body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout.ts-has-left-nav>.mn{grid-column:1;grid-row:2}body.ts-blog.discuzx5 #ct.sg-forumdisplay-layout.ts-has-left-nav>.sd{grid-column:1;grid-row:3}}

/* Shared wide desktop frame; retain narrow-screen gutters. */
body.ts-blog.discuzx5{--ts-site-max:1320px;--ts-site-gutter:48px}
body.ts-blog.discuzx5 .wp,
body.ts-blog.discuzx5.dz_wide .wp,
body.ts-blog.discuzx5 .dz_btm_layer{width:calc(100% - var(--ts-site-gutter))!important;min-width:0!important;max-width:var(--ts-site-max)!important;margin-left:auto;margin-right:auto;box-sizing:border-box}
body.ts-blog.discuzx5 .wp .wp{width:100%!important;max-width:none!important}
body.ts-blog.discuzx5 .boardnav>#ct.sg-forumdisplay-layout{width:calc(100% - var(--ts-site-gutter))!important;max-width:var(--ts-site-max)!important}
@media(max-width:960px){body.ts-blog.discuzx5{--ts-site-gutter:32px}}
@media(max-width:600px){body.ts-blog.discuzx5{--ts-site-gutter:24px}}

/* The aggregated home lives outside .wp and needs the same outer frame. */
body.ts-blog.discuzx5 .portal_container{width:calc(100% - var(--ts-site-gutter))!important;max-width:var(--ts-site-max)!important;min-width:0;box-sizing:border-box;margin-left:auto;margin-right:auto}
body.ts-blog.discuzx5 .portal_container_wrap{width:100%;max-width:none;box-sizing:border-box}
body.ts-blog.discuzx5 .portal_container .timeline_container,
body.ts-blog.discuzx5 .portal_container .timeline_content,
body.ts-blog.discuzx5 .portal_container .timeline_entry_list_container{min-width:0;max-width:none;box-sizing:border-box}

/* Replace the old DIY member statistics card with public avatars and names. */
body.ts-blog.discuzx5 .sg-forumdisplay-sidebar .block:has(.sg-diy-members),
body.ts-blog.discuzx5 .sg-forumdisplay-sidebar .sg-diy-members{display:none!important}
body.ts-blog.discuzx5 .sg-forumdisplay-sidebar>.ts-member-panel{margin-bottom:20px}

/* Title honors are a shallow decorative edge, never a cover image. */
body.ts-blog.discuzx5 .sg-thread-hero{position:relative}
body.ts-blog.discuzx5 .sg-thread-hero::before{content:'';position:absolute;z-index:3;inset:0 54px auto 160px;height:28px;background-repeat:repeat-x;background-position:center top;pointer-events:none;opacity:.7}
body.ts-blog.discuzx5 .sg-thread-hero.ts-honor-flowers::before,body.ts-blog.discuzx5 .ts-honor-preview.ts-honor-flowers{background-image:url(../honor/flowers-real.png)}
body.ts-blog.discuzx5 .sg-thread-hero.ts-honor-flame::before,body.ts-blog.discuzx5 .ts-honor-preview.ts-honor-flame{background-image:url(../honor/flame-real.png)}
body.ts-blog.discuzx5 .sg-thread-hero.ts-honor-branches::before,body.ts-blog.discuzx5 .ts-honor-preview.ts-honor-branches{background-image:url(../honor/branches-real.png)}
body.ts-blog.discuzx5 .sg-thread-hero.ts-honor-bamboo::before,body.ts-blog.discuzx5 .ts-honor-preview.ts-honor-bamboo{background-image:url(../honor/bamboo-real.png)}

.ts-honor-open{justify-self:end;margin-top:6px;background:#fff;border:1px solid #e4e9e6;border-radius:8px;width:28px;height:28px;padding:5px;cursor:pointer;color:#7d8982}
.ts-honor-open svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.ts-honor-dialog{box-sizing:border-box;width:560px;max-width:calc(100% - 32px);max-height:85vh;overflow:auto;border:1px solid #e1e8e3;border-radius:12px;padding:24px;color:#263c32;background:#fff}
.ts-honor-dialog::backdrop{background:rgba(20,30,24,.35)}
.ts-honor-dialog-head{display:flex;justify-content:space-between;align-items:center}.ts-honor-dialog-head h2{font-size:20px}.ts-honor-dialog-head button{border:0;background:none;font-size:24px;cursor:pointer}
.ts-honor-dialog p{font-size:14px;color:#748078;margin:12px 0 20px}.ts-honor-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ts-honor-options label{display:block;border:1px solid #e1e8e3;padding:12px;border-radius:8px;cursor:pointer}.ts-honor-options label:has(input:checked){border-color:#638875;background:#f5f9f6}.ts-honor-preview{display:flex;height:60px;align-items:end;margin:8px 0;background-repeat:repeat-x;background-position:center top;background-size:auto 24px}.ts-honor-preview span{font-size:14px;padding-bottom:4px}.ts-honor-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.ts-honor-actions button{padding:8px 16px;cursor:pointer;border:1px solid #ccd8d0;border-radius:6px;background:#fff}.ts-honor-actions button[type=submit]{background:#315e4c;color:#fff}

/* Natural photographic cutouts: one composition, never a tiled icon pattern. */
body.ts-blog.discuzx5 .sg-thread-hero::before{inset:0 52px auto 152px;height:52px;background-size:auto 132px;background-repeat:no-repeat;background-position:right top;opacity:.94;mask-image:linear-gradient(#000 0 36px,transparent 52px);-webkit-mask-image:linear-gradient(#000 0 36px,transparent 52px)}
body.ts-blog.discuzx5 .ts-honor-preview{height:92px;background-size:100% auto;background-repeat:no-repeat;background-position:center top}
body.ts-blog.discuzx5 .ts-honor-preview>span{padding-top:64px;align-self:end}
@media(max-width:600px){body.ts-blog.discuzx5 .sg-thread-hero::before{left:116px;right:40px;background-size:auto 90px;height:36px;mask-image:linear-gradient(#000 0 24px,transparent 36px);-webkit-mask-image:linear-gradient(#000 0 24px,transparent 36px)}}

/* The home container is already inside #wp: avoid subtracting gutters twice. */
body.ts-blog.discuzx5 #wp>.portal_container{width:100%!important;max-width:none!important;margin-left:0;margin-right:0;padding:0}
@media(min-width:961px){
body.ts-blog.discuzx5 #wp .portal_container_wrap,
body.ts-blog.discuzx5 #wp #diy1 .sg-diy-feature-grid:has(.sg-diy-feature-item--6){grid-template-columns:minmax(0,2fr) minmax(280px,1fr);column-gap:20px}
}
body.ts-blog.discuzx5 #wp .portal_container_wrap>.timeline_container,
body.ts-blog.discuzx5 #wp .portal_container_wrap>.sidebar{width:auto;min-width:0;margin-left:0!important;margin-right:0!important;padding-left:0;padding-right:0;box-sizing:border-box}

/* Home list thumbnails: center the actual image inside a compact 4:3 slot. */
body.ts-blog.discuzx5 .portal_container .forumportal_listc li.kmlist>.kmimg_onebox,
body.ts-blog.discuzx5 .portal_container .forumportal_listc li.kmlist>.kmimg_box{display:block!important;width:180px!important;height:135px!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;border-radius:8px;background:#f4f4f0;align-self:start;box-sizing:border-box}
body.ts-blog.discuzx5 .portal_container .forumportal_listc li.kmlist>.kmimg_onebox .kmimg,
body.ts-blog.discuzx5 .portal_container .forumportal_listc li.kmlist>.kmimg_box .kmshowimg:first-child{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;background:transparent;box-sizing:border-box;overflow:hidden}
body.ts-blog.discuzx5 .portal_container .forumportal_listc li.kmlist>.kmimg_onebox img,
body.ts-blog.discuzx5 .portal_container .forumportal_listc li.kmlist>.kmimg_box img{display:block!important;position:static!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;object-fit:contain!important;object-position:center!important;transform:none!important;border-radius:0}
@media(min-width:601px){body.ts-blog.discuzx5 .portal_container .forumportal_listc li.kmlist:has(>.kmimg_onebox,>.kmimg_box){grid-template-columns:180px minmax(0,1fr);column-gap:24px;min-height:135px}}
@media(max-width:600px){body.ts-blog.discuzx5 .portal_container .forumportal_listc li.kmlist>.kmimg_onebox,body.ts-blog.discuzx5 .portal_container .forumportal_listc li.kmlist>.kmimg_box{width:100%!important;height:180px!important;margin-bottom:16px!important}}
