/* 首页、版块页与帖子页共用 PC 的视觉覆盖：不改变 X5 搜索、账号和导航的运行契约。 */
@media (min-width: 768px) {
body.kbh-pc #kbh-header,body.kbh-pc #kbh-navbar{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#202824;--kbh-border:#E2E6E2;--kbh-ink:#202824;--kbh-ink-2:#626B65}
body.kbh-pc #kbh-header{background:#fff;border-bottom:1px solid #E2E6E2;box-shadow:none}
body.kbh-pc .header-inner{height:86px;gap:24px}
body.kbh-pc .brand{gap:10px;min-width:170px}
body.kbh-pc .brand-mark{width:32px;height:34px;border-radius:5px;background:#103928;color:#25D366;font-size:21px;font-weight:700}
body.kbh-pc .brand-name{color:#202824;font-size:22px;font-weight:750;letter-spacing:-.7px}
body.kbh-pc #scbar{height:44px;border:1px solid #E2E6E2;border-radius:5px;padding:0 3px 0 14px;background:#fff}
body.kbh-pc #scbar:focus-within{border-color:#8BAA95;outline:0;box-shadow:none}
body.kbh-pc #scbar #scbar_txt{height:36px;font-size:14px;color:#202824}
body.kbh-pc #scbar #scbar_txt::placeholder{color:#626B65}
body.kbh-pc #scbar #scbar_type{height:28px;font-size:13px;color:#626B65!important;border-color:#E2E6E2;padding:0 10px}
body.kbh-pc #scbar #scbar_btn{height:36px;width:auto;min-width:88px;margin:0;border-radius:5px;padding:0 20px;background:#25D366;font-size:13px;line-height:1;font-weight:600;box-sizing:border-box}
body.kbh-pc #scbar #scbar_btn strong{display:block;color:#103928;font:inherit;line-height:1}
body.kbh-pc .header-actions{gap:12px}
body.kbh-pc .btn-post{height:40px;padding:0 16px;border-radius:5px;margin-left:-12px;background:#25D366;color:#103928;font-weight:600}
body.kbh-pc #scbar #scbar_btn:hover,body.kbh-pc .btn-post:hover{background:#21C063;text-decoration:none}
body.kbh-pc .kbh-login-link,body.kbh-pc .kbh-pending-user,body.kbh-pc .kbh-username{color:#202824;font-size:14px}
body.kbh-pc .kbh-hd-sep{color:#E2E6E2}
body.kbh-pc #i18n-switch{height:40px!important;border:1px solid #E2E6E2!important;border-radius:5px!important;color:#202824!important;padding:0 10px!important;font-weight:500}
body.kbh-pc #i18n-switch:hover,body.kbh-pc .kbh-account-trigger:hover{background:#F7F8F5!important}
body.kbh-pc .kbh-account-trigger{height:40px;border-radius:5px;gap:8px}
body.kbh-pc .kbh-avatar{background:#EDF6EF}
body.kbh-pc .kbh-dropdown-panel,body.kbh-pc #i18n-switch_menu,body.kbh-pc #scbar_type_menu{border:1px solid #E2E6E2;border-radius:5px;box-shadow:0 5px 16px #2028240d}
body.kbh-pc .kbh-dropdown-panel .kbh-menu-item,body.kbh-pc .kbh-dropdown-panel .kbh-menu-link{border-radius:5px;min-height:38px}
body.kbh-pc #kbh-header a:focus-visible,body.kbh-pc #kbh-header button:focus-visible,body.kbh-pc #kbh-navbar a:focus-visible,body.kbh-pc .kbh-home-nav-menu a:focus-visible{outline:1px solid #8BAA95;outline-offset:2px}
body.kbh-pc #kbh-navbar{border-bottom:1px solid #E2E6E2}
body.kbh-pc #kbh-navbar .kbh-nv>ul{gap:32px;flex-wrap:nowrap}
body.kbh-pc #kbh-navbar .kbh-nv>ul>li>a{font-size:19px;font-weight:600;line-height:1.4;padding:9px 2px;color:#202824!important;white-space:nowrap}
body.kbh-pc #kbh-navbar .kbh-nv>ul>li>a::after{height:2px;border-radius:0;background:#25D366;bottom:0}
body.kbh-pc #kbh-navbar .kbh-nv>ul>li>a:hover,body.kbh-pc #kbh-navbar .kbh-nv>ul>li.a>a{color:#103928!important}
/* 菜单由 showMenu 控制 display 与文档坐标；不覆盖开关，只让子项横向流动。 */
body.kbh-pc .kbh-home-nav-menu{padding:8px;border:1px solid #E2E6E2;border-radius:5px;background:#fff;box-shadow:0 5px 16px #2028240d;columns:auto;grid-template-columns:none;white-space:normal}
body.kbh-pc .kbh-home-nav-menu>li{display:inline-block;float:none;width:auto;margin:0 4px 0 0;vertical-align:top}
body.kbh-pc .kbh-home-nav-menu>li>a{display:inline-flex;align-items:center;min-height:36px;padding:7px 12px;border:0;border-radius:5px;white-space:nowrap;font-size:14px;font-weight:500;line-height:1.5;color:#202824}
body.kbh-pc .kbh-home-nav-menu>li>a:hover,body.kbh-pc .kbh-home-nav-menu>li.a>a,body.kbh-pc .kbh-subnav a:hover,body.kbh-pc .kbh-subnav .a>a{background:#E9FCE7;color:#103928;text-decoration:none}
body.kbh-pc .kbh-subnav{flex-flow:row wrap;gap:4px}
body.kbh-pc .kbh-subnav>li{float:none;display:inline-block;width:auto}
body.kbh-pc .kbh-subnav>li>a{font-size:14px;padding:7px 12px;border-radius:5px;color:#626B65}
}

/* 顶部收口：与主体共用左右内边界，搜索吸收剩余宽度，菜单保持原生开关。 */
@media(min-width:768px){
body.kbh-pc .header-search{max-width:none;flex:1 1 0;min-width:100px}
body.kbh-pc .header-inner{align-items:center}
body.kbh-pc .btn-post{margin-left:0;flex-shrink:0;justify-content:center;box-sizing:border-box}
body.kbh-pc #scbar::after{display:none}
body.kbh-pc #scbar_form{margin:0;align-items:center}
body.kbh-pc #scbar_type::before,body.kbh-pc #i18n-switch::before{display:none!important}
body.kbh-pc #scbar_type{background-image:none!important;border-left:1px solid #E2E6E2;box-shadow:none;margin:0;line-height:1}
body.kbh-pc #scbar_type::after{content:'▾';position:static;border:0;display:inline-block;font:10px/1 Arial;color:#626B65}
body.kbh-pc #i18n-switch{display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;height:40px!important;line-height:1!important;background-image:none!important;text-indent:0;gap:7px}
body.kbh-pc #i18n-switch::after{content:'▾';position:static!important;width:auto;height:auto;border:0!important;display:inline-block;font:10px/1 Arial;margin:0;transform:none}
body.kbh-pc .kbh-account-trigger{box-sizing:border-box;align-items:center}
body.kbh-pc #kbh-navbar .kbh-nv>ul{gap:32px}
/* 只接管展开区几何；display、事件和链接仍由 showMenu/navShow 管理。 */
body.kbh-pc .kbh-home-nav-menu{box-sizing:border-box;left:var(--home-menu-left)!important;top:var(--home-menu-top)!important;width:var(--home-menu-width)!important;max-width:none;min-width:0;margin:0!important;padding:16px var(--home-menu-padding,32px);border-radius:0;box-shadow:0 6px 12px #20282408;z-index:130}
body.kbh-pc #mu.kbh-mu{position:absolute;top:100%;left:0;right:0;z-index:130}
body.kbh-pc .kbh-subnav{padding:16px var(--home-menu-padding,32px);background:white;border-block:1px solid #E2E6E2;border-radius:0}
body.kbh-pc :is(.kbh-dropdown-panel,#i18n-switch_menu,#scbar_type_menu,#qmenu_menu){font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5;color:#202824;border-color:#E2E6E2;border-radius:6px;background:white;box-shadow:0 5px 16px #2028240d}
body.kbh-pc :is(#i18n-switch_menu,#scbar_type_menu,#qmenu_menu) a{font-size:14px;line-height:1.5;color:#202824;border:0;border-radius:5px;padding:8px 12px;min-height:36px;box-sizing:border-box;background-image:none}
body.kbh-pc :is(#i18n-switch_menu,#scbar_type_menu,#qmenu_menu) a:hover,body.kbh-pc :is(#i18n-switch_menu,#scbar_type_menu) .curtype{background:#E9FCE7;color:#103928;text-decoration:none}
body.kbh-pc :is(#i18n-switch_menu,#scbar_type_menu,#qmenu_menu,.kbh-dropdown-panel) a:focus-visible{outline:1px solid #8BAA95;outline-offset:2px}
body.kbh-pc .kbh-panel-head{padding:12px;border-color:#E2E6E2;gap:12px}
body.kbh-pc .kbh-panel-username{font-size:15px;font-weight:650;color:#202824;line-height:1.4}
body.kbh-pc .kbh-panel-usergroup{font-size:12px;color:#626B65;line-height:1.5}
body.kbh-pc .kbh-panel-divider{background:#E2E6E2;margin:6px 0}
body.kbh-pc .kbh-panel-section{color:#626B65;font-size:11px;letter-spacing:.06em}
body.kbh-pc .kbh-credit-row{font-size:13px;color:#626B65}
body.kbh-pc .kbh-count{font-size:11px;line-height:18px;font-weight:600;min-width:18px;text-align:center;padding:0 5px;border-radius:5px}
body.kbh-pc .kbh-mgmt-tile{border-radius:5px;border-color:#E2E6E2;font-size:13px;background:#fff}
body.kbh-pc .kbh-mgmt-tile:hover{background:#E9FCE7;border-color:#c7ddcd}
}

/* HOME-TOP-FINAL：只改变首页、版块页与帖子页 PC 顶部展示，不接管 X5 提交或菜单开关。 */
@media (min-width:768px) {
/* 原生按钮只为 28px 图标设计；取消字形生成，文字使用真实 DOM，禁止遮挡补丁。 */
body.kbh-pc #scbar #scbar_btn::before,
body.kbh-pc #scbar #scbar_btn::after {content:none;display:none}
body.kbh-pc #scbar_form {gap:8px}
body.kbh-pc #scbar {transition:border-color .15s}
body.kbh-pc #scbar :is(input,a,button) {font-family:inherit}
/* 组件用恒定 1px 边框表达焦点；键盘聚焦类型/提交时仅加细内描边。 */
body.kbh-pc #scbar :is(a,button):focus-visible {outline:1px solid #8BAA95;outline-offset:-2px;box-shadow:none}
body.kbh-pc #scbar #scbar_type:hover {background:#F7F8F5;color:#103928!important}
body.kbh-pc #scbar #scbar_btn:active,body.kbh-pc .btn-post:active {background:#1DB65B}
body.kbh-pc .header-inner {justify-content:flex-start}
body.kbh-pc .header-actions {flex-shrink:0}
body.kbh-pc .brand {max-width:none}
/* subnav 以外层导航 Shell 为包含块，绝不以 1350px 内层内容框为背景宽度。 */
body.kbh-pc #kbh-navbar {position:relative}
body.kbh-pc .kbh-navbar-inner {position:static}
body.kbh-pc #kbh-navbar .kbh-nv>ul>li.hover>a::after {right:0}
body.kbh-pc #kbh-navbar .kbh-nv>ul>li>a:active {color:#103928!important}
body.kbh-pc .kbh-home-nav-menu {border-inline:0;border-radius:0;font-family:inherit;line-height:1.5}
body.kbh-pc :is(.kbh-home-nav-menu,.kbh-subnav)>li>a {white-space:normal;word-break:normal;overflow-wrap:break-word}
/* showMenu 会将菜单挂到 body；用具体 Header 菜单 ID 限定，不影响正文浮层。 */
body.kbh-pc :is(.kbh-dropdown-panel,#i18n-switch_menu,#scbar_type_menu,#qmenu_menu) {padding:8px;box-sizing:border-box}
body.kbh-pc .kbh-dropdown-panel :is(.kbh-menu-item,.kbh-menu-link) {box-sizing:border-box;min-height:38px;padding:8px 12px;font-size:14px;line-height:1.5;color:#202824;border-radius:5px}
body.kbh-pc :is(.kbh-dropdown-panel,#i18n-switch_menu,#scbar_type_menu,#qmenu_menu) a:active {background:#D8F3DF;color:#103928}
body.kbh-pc :is(#i18n-switch_menu,#scbar_type_menu) a {display:flex;align-items:center;min-height:38px}
body.kbh-pc .kbh-credit-val {font-variant-numeric:tabular-nums;font-weight:600;color:#103928}
body.kbh-pc .kbh-count {font-variant-numeric:tabular-nums}
body.kbh-pc .kbh-avatar-lg,body.kbh-pc .kbh-avatar-lg img {width:40px;height:40px}
body.kbh-pc #fwin_login .m_c {background:#fff;border:1px solid #E2E6E2;border-radius:8px;box-shadow:0 5px 16px #2028240d;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#202824}
body.kbh-pc #fwin_login :is(.t_l,.t_c,.t_r,.m_l,.m_r,.b_l,.b_c,.b_r) {background:none;opacity:1}
body.kbh-pc #fwin_login .flb {padding:16px 20px;border-bottom:1px solid #E2E6E2}
body.kbh-pc #fwin_login :is(.px,.pn) {border-radius:5px;box-shadow:none}
body.kbh-pc #fwin_login :is(a,input,button):focus-visible {outline:1px solid #8BAA95;outline-offset:2px}
}

/* 全站公共占位：Header与导航都留在正常文档流，不使用每页top/padding补偿。 */
@media (min-width:768px) {
 body.kbh-pc #kbh-site-header {position:relative;background:#fff;opacity:1;isolation:isolate;z-index:100}
 body.kbh-pc #kbh-header {position:relative;top:auto;background:#fff;opacity:1}
 body.kbh-pc #kbh-navbar {position:relative;top:auto;background:#fff;opacity:1}
 body.kbh-pc #kbh-navbar .kbh-nv {position:static;opacity:1;padding:0;background:#fff}
 /* 搜索/个人空间的原生CSS会限定.wp，公共顶部内部宽度独立于主体容器。 */
 body.kbh-pc #kbh-site-header .wp {width:auto;max-width:1350px;margin:0 auto;padding-left:32px;padding-right:32px;box-sizing:border-box}
 body.kbh-pc #kbh-site-header .header-inner {display:flex;min-height:86px;height:auto;padding-top:0;padding-bottom:0}
 body.kbh-pc #kbh-navbar .kbh-nv>ul>li {float:none;height:auto;line-height:inherit;padding:0}
}

@media(min-width:768px){
html.kbh-menu-pointer body :is(.p_pop,.kbh-profile-admin-menu,.kbh-home-nav-menu,.kbh-dropdown-panel) a:focus{outline:none!important;box-shadow:none!important}
}

#kbh-header .kbh-header-notice{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:50%;color:#19382b;text-decoration:none;transition:background .15s}
#kbh-header .kbh-header-notice:hover{background:#edf7ef;color:#128c4b}
#kbh-header .kbh-header-notice:focus-visible{outline:2px solid #408a54;outline-offset:3px}
#kbh-header .kbh-header-notice svg{display:block}
#kbh-header .kbh-header-notice-count{position:absolute;right:-1px;top:0;min-width:16px;height:16px;padding:0 3px;box-sizing:border-box;border:2px solid #fff;border-radius:10px;background:#d94848;color:#fff;font-size:10px;font-weight:600;line-height:12px;text-align:center}
@media(max-width:767px){#kbh-header .kbh-header-notice{display:none}}
