/* 公共视觉作用域由header_common设置；原生ranklist容器无需新增ID。 */
/* 未完成PC页面族共用Premium组件；不匹配Header/Footer、Group及既有帖子展示页。 */
@media(min-width:768px){
html.kbh-premium body{--ku-ink:#202824;--ku-muted:#626B65;--ku-line:#E2E6E2;--ku-soft:#F7F8F5;--ku-green:#103928}
html.kbh-premium body :is(#ct, #wp > .ct2_a){box-sizing:border-box;color:var(--ku-ink);font-size:14px;line-height:1.6;min-width:0;background:#fff}
/* 去掉X5宽屏模式的负边距预留；只重建顶层栏位，不改子组件显隐。 */
html.kbh-premium body :is(#ct, #wp > .ct2_a):is(.ct2,.ct2_a){display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin-right:auto!important;background:none}
html.kbh-premium body :is(#ct, #wp > .ct2_a):has(>.appl){grid-template-columns:minmax(160px,18%) minmax(0,1fr)}
html.kbh-premium body :is(#ct, #wp > .ct2_a):has(>.sd){grid-template-columns:minmax(0,1fr) minmax(200px,24%)}
html.kbh-premium body :is(#ct, #wp > .ct2_a)>.mn,html.kbh-premium body :is(#ct, #wp > .ct2_a)>.sd,html.kbh-premium body :is(#ct, #wp > .ct2_a)>.appl{float:none;width:auto;min-width:0;margin:0;box-sizing:border-box}
html.kbh-premium body :is(#ct, #wp > .ct2_a)>.appl{grid-column:1;grid-row:1;border:0;padding:0 20px 0 0;background:none}
html.kbh-premium body :is(#ct, #wp > .ct2_a):has(>.appl)>.mn{grid-column:2;grid-row:1}
html.kbh-premium body :is(#ct, #wp > .ct2_a)>.sd{padding:0;border:0}
html.kbh-premium body :is(#ct, #wp > .ct2_a):before,html.kbh-premium body :is(#ct, #wp > .ct2_a):after{content:none}
html.kbh-premium body :is(#ct, #wp > .ct2_a) :is(.bm,.bml,.bmw){border:0;background:#fff;box-shadow:none;margin-bottom:20px}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .bm_h{height:auto;padding:12px 0;border:0;border-bottom:1px solid var(--ku-line);background:none;color:var(--ku-ink);line-height:1.5}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .bm_c{padding:16px 0}
html.kbh-premium body :is(#ct, #wp > .ct2_a) :is(h1.mt,.bm_h h1){font-size:26px!important;line-height:1.4;margin-bottom:12px}
html.kbh-premium body :is(#ct, #wp > .ct2_a) :is(h2,h3){color:var(--ku-ink)}
html.kbh-premium body :is(#ct, #wp > .ct2_a) :is(.xg1,.xg2){color:var(--ku-muted)}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .xi2,html.kbh-premium body :is(#ct, #wp > .ct2_a) .xi2 a{color:var(--ku-green)}
html.kbh-premium body :is(#ct, #wp > .ct2_a) :is(a,p,td,th,li,dd){word-break:normal;overflow-wrap:anywhere}
html.kbh-premium body :is(#ct, #wp > .ct2_a) a:hover{color:var(--ku-green);text-underline-offset:3px}
html.kbh-premium body :is(#ct, #wp > .ct2_a) :is(.bbda,.bbd,.btda,.btd){border-color:var(--ku-line);border-style:solid}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .tb{padding:0;border-bottom:1px solid var(--ku-line);background:none;line-height:1.5}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .tb li{margin:0 16px 0 0;max-width:100%}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .tb a{height:auto;padding:10px 4px;border:0;border-bottom:2px solid transparent;background:none;color:var(--ku-muted);line-height:1.5;font-weight:500}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .tb .a a,html.kbh-premium body :is(#ct, #wp > .ct2_a) .tb a:hover{color:var(--ku-green);border-bottom-color:#25D366;text-decoration:none}
html.kbh-premium body :is(#ct, #wp > .ct2_a) :is(.pn,.pgsbtn){box-sizing:border-box;height:auto;min-height:36px;max-width:100%;padding:7px 14px;border:1px solid var(--ku-line);border-radius:5px;background:#fff;box-shadow:none;color:var(--ku-ink);line-height:1.5;letter-spacing:normal}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .pn :is(strong,span,em){padding:0;background:none;line-height:inherit}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .pn:hover{background:var(--ku-soft);border-color:#B8C9BD}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .pnc{background:#25D366;border-color:#25D366;color:#103928}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .pnc:hover{background:#21C063;border-color:#21C063}
html.kbh-premium body :is(#ct, #wp > .ct2_a) :is(.px,.pt,.ps){box-sizing:border-box;max-width:100%;border:1px solid #D4DBD5;border-radius:5px;padding:7px 10px;background:#fff;color:var(--ku-ink);font-size:14px;line-height:1.5}
html.kbh-premium body :is(#ct, #wp > .ct2_a) :is(input.px,select.ps){height:auto;min-height:36px}
html.kbh-premium body :is(#ct, #wp > .ct2_a) :is(a,button,input,select,textarea):focus-visible{outline:1px solid #B8C9BD;outline-offset:2px;box-shadow:none}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .tfm{width:100%;max-width:100%}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .tfm th{padding:12px 20px 12px 0;color:var(--ku-muted)}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .tfm td{padding:10px 0}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .tedt{width:auto;max-width:100%;border:1px solid #D4DBD5;border-radius:6px}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .tedt .bar{background:var(--ku-soft);border-color:var(--ku-line)}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .tedt .pt{width:100%;border:0}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .appl :is(h2,h3){padding:12px 10px;border-bottom:1px solid var(--ku-line);background:none}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .appl li{padding:0;border:0;background:none;line-height:1.5}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .appl li a{display:block;padding:10px;border-radius:5px;color:var(--ku-muted)}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .appl li.a a{background:#E9FCE7;color:var(--ku-green)}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .appl li a:hover{background:var(--ku-soft);text-decoration:none}
html.kbh-premium body :is(#ct, #wp > .ct2_a) :is(.tbmu,.tbms){padding:12px;background:var(--ku-soft);border-color:var(--ku-line);border-radius:5px}
html.kbh-premium body :is(#ct, #wp > .ct2_a) :is(.dt,.tl table){width:100%;max-width:100%}
html.kbh-premium body :is(#ct, #wp > .ct2_a) :is(.dt,.tl) :is(th,td){padding-top:12px;padding-bottom:12px;border-color:var(--ku-line)}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .tl .th{background:var(--ku-soft)}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .emp{padding:28px 16px;background:var(--ku-soft);color:var(--ku-muted);border-radius:6px;text-align:center}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .pg :is(a,strong),html.kbh-premium body :is(#ct, #wp > .ct2_a) .pgb a{border-color:var(--ku-line);border-radius:5px;background-color:#fff;color:var(--ku-muted)}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .pg strong{background:#E9FCE7;color:var(--ku-green)}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .avt img{border-radius:6px;border-color:var(--ku-line)}
/* 编辑器按钮精灵、工具栏事件和iframe保持原生，仅统一外框与区域边界。 */
html.kbh-premium body #postform :is(#ct, #wp > .ct2_a){display:block}
html.kbh-premium body #postbox{min-width:0;max-width:100%}
html.kbh-premium body #postbox .edt{max-width:100%;box-sizing:border-box;border:1px solid #D4DBD5;border-radius:6px}
html.kbh-premium body #postbox .edt .bar{background:var(--ku-soft);border-color:var(--ku-line)}
html.kbh-premium body #post_extra{border-top:1px solid var(--ku-line);margin-top:20px}
html.kbh-premium body #post_extra_tb{background:var(--ku-soft);padding:10px;border-radius:5px}
html.kbh-premium body #post_extra_tb label{margin-right:16px}
html.kbh-premium body #post_extra_c{padding:16px 0}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .pbl{max-width:100%;box-sizing:border-box;border-color:var(--ku-line);border-radius:6px}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .pbl li{box-sizing:border-box;width:33.333%;border-color:var(--ku-line)}
/* 浮层只装饰内部，保留X5定位、显隐、尺寸计算和关闭机制。 */
html.kbh-premium body .fwinmask .m_c{background:#fff;border:1px solid var(--ku-line);border-radius:6px;color:var(--ku-ink)}
html.kbh-premium body .fwinmask .flb{padding:16px;border-bottom:1px solid var(--ku-line)}
html.kbh-premium body .fwinmask .flb em{color:var(--ku-ink)}
html.kbh-premium body .fwinmask .o{background:var(--ku-soft);border-color:var(--ku-line)}
}
@media(min-width:768px) and (max-width:1000px){html.kbh-premium body :is(#ct, #wp > .ct2_a):is(.ct2,.ct2_a){grid-template-columns:minmax(0,1fr)}html.kbh-premium body :is(#ct, #wp > .ct2_a)>.appl,html.kbh-premium body :is(#ct, #wp > .ct2_a):has(>.appl)>.mn{grid-column:1;grid-row:auto}html.kbh-premium body :is(#ct, #wp > .ct2_a)>.appl{order:-1;padding:0}html.kbh-premium body :is(#ct, #wp > .ct2_a) .appl li{display:inline-block}}
@media(min-width:768px){
/* 原生ct2_a左内边距原用于浮动导航，Grid已承担栏位，不再保留重复空白。 */
html.kbh-premium body :is(#ct, #wp > .ct2_a):is(.ct2,.ct2_a){padding:0;border:0}
html.kbh-premium body :is(#ct, #wp > .ct2_a)>.mn,html.kbh-premium body :is(#ct, #wp > .ct2_a)>.appl,html.kbh-premium body :is(#ct, #wp > .ct2_a)>.sd{max-width:100%}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .tb .o a{background:#25D366;color:#103928;border-radius:5px}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .mn .mtn img{max-width:100%}
}
@media(min-width:768px){
/* Search未打开公共wp包装，使用既有容器变量和同一安全边距，不另外定义站点宽度。 */
html.kbh-premium body#nv_search :is(#ct, #wp > .ct2_a){width:100%;max-width:var(--kbh-container-max);margin:24px auto;padding:0 32px;min-width:0}
html.kbh-premium body#nv_search :is(#ct, #wp > .ct2_a)>.mw{width:100%;max-width:100%;margin:0;padding:0}
html.kbh-premium body #scform{max-width:100%;box-sizing:border-box}
html.kbh-premium body #scform_form{width:100%;border:1px solid #D4DBD5;border-radius:6px;background:#fff}
html.kbh-premium body #scform_form :is(.td_srchtxt,.td_srchbtn){background:none;border:0}
html.kbh-premium body #scform_srchtxt{box-sizing:border-box;width:100%;max-width:100%;height:42px;padding:8px 12px;border:0;background:none;color:#202824;font-size:14px}
html.kbh-premium body #scform_submit{height:42px;min-width:88px;width:auto;padding:0 18px;border:0;border-radius:0 5px 5px 0;background:#25D366;color:#103928;font-size:14px;text-indent:0}
html.kbh-premium body #scform_submit:before,html.kbh-premium body #scform_submit:after{content:none}
html.kbh-premium body #scform_submit strong{display:inline;font-size:14px;font-weight:500}
html.kbh-premium body #scform_tb a{padding:8px 10px;background:none;border-bottom:2px solid transparent;color:#626B65;line-height:1.5}
html.kbh-premium body #scform_tb a.a{border-bottom-color:#25D366;color:#103928}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .slst .pbw{padding:20px 0!important;border-bottom:1px solid #E2E6E2}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .slst h3{font-size:18px}
html.kbh-premium body #article_content img{max-width:100%;height:auto}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .vw .h{padding:16px 0;border-bottom:1px solid #E2E6E2}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .vw .ph{font-size:28px;line-height:1.4}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .vw .s{padding:16px;background:#F7F8F5;border-radius:6px;border:0}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .vw .d{padding:20px 0;font-size:16px;line-height:1.8}
}
@media(min-width:768px){
/* 原生错误/权限状态保留图标和提示内容，只统一消息承载区。 */
html.kbh-premium body :is(#ct, #wp > .ct2_a) .nfl{max-width:100%;box-sizing:border-box;border:1px solid #E2E6E2;border-radius:6px;background:#fff}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .rfm{max-width:100%;box-sizing:border-box;border-bottom-color:#EEF0EC}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .rfm th{color:#626B65}
html.kbh-premium body :is(#ct, #wp > .ct2_a) .rfm input,html.kbh-premium body :is(#ct, #wp > .ct2_a) .rfm select{max-width:100%;box-sizing:border-box}
html.kbh-premium body .fwinmask .pn{height:auto;padding:7px 14px;border:1px solid #E2E6E2;border-radius:5px;background:#fff;box-shadow:none;color:#202824}
html.kbh-premium body .fwinmask .pnc{background:#25D366;border-color:#25D366;color:#103928}
html.kbh-premium body .fwinmask .pn :is(strong,span){padding:0;background:none;line-height:1.5}
}
@media(min-width:768px){
/* 公开主页的用户身份区属于Home内容，不能改为个人设置导航。 */
html.kbh-premium body #uhd{border:0;border-bottom:1px solid #E2E6E2;background:#fff;padding:20px 0;margin-bottom:24px}
html.kbh-premium body #uhd .tb{background:none;border:0}
html.kbh-premium body #uhd .tb a{background:none;border:0;border-bottom:2px solid transparent;padding:10px 14px;color:#626B65}
html.kbh-premium body #uhd .tb .a a{border-bottom-color:#25D366;color:#103928}
html.kbh-premium body #uhd img{border-radius:6px}
html.kbh-premium body .json-editor{max-width:100%;min-width:0;box-sizing:border-box;color:#202824}
html.kbh-premium body .json-editor .layui-input,html.kbh-premium body .json-editor .layui-textarea{border-color:#D4DBD5;border-radius:5px;font-family:inherit}
html.kbh-premium body .json-editor .layui-btn{border-radius:5px;background:#25D366;color:#103928}
}

@media(min-width:768px){
:is(.kbh-post-dialog,.kbh-ui-dialog){color:#202824;font-family:inherit;max-width:100%;box-sizing:border-box}
:is(.kbh-post-dialog,.kbh-ui-dialog) .flb{padding:16px;border-bottom:1px solid #E2E6E2}
:is(.kbh-post-dialog,.kbh-ui-dialog) .flb em{color:#202824;font-size:16px}
:is(.kbh-post-dialog,.kbh-ui-dialog) .c,:is(.kbh-post-dialog,.kbh-ui-dialog) .p_c{max-width:100%;box-sizing:border-box}
:is(.kbh-post-dialog,.kbh-ui-dialog) .o{background:#F7F8F5;border-top:1px solid #E2E6E2;padding:12px 16px}
:is(.kbh-post-dialog,.kbh-ui-dialog) .pn{height:auto;padding:7px 14px;background:#fff;border:1px solid #E2E6E2;border-radius:5px;color:#202824;line-height:1.5;box-shadow:none}
:is(.kbh-post-dialog,.kbh-ui-dialog) .pn :is(strong,span,em){padding:0;background:none;line-height:inherit}
:is(.kbh-post-dialog,.kbh-ui-dialog) .pnc{background:#25D366;border-color:#25D366;color:#103928}
:is(.kbh-post-dialog,.kbh-ui-dialog) :is(.px,.pt,.ps){box-sizing:border-box;max-width:100%;border:1px solid #D4DBD5;border-radius:5px;padding:7px 10px;background:#fff;color:#202824}
:is(.kbh-post-dialog,.kbh-ui-dialog) :is(input,button,a,textarea):focus-visible{outline:1px solid #B8C9BD;outline-offset:2px}
}
