/* FORUMDISPLAY-PREMIUM：只修饰 PC 版块页；保持原生网格、表格节点、权限与交互契约。 */
@media (min-width:768px) {
body#nv_forum.pg_forumdisplay #wp,
body#nv_forum.pg_forumdisplay :is(.p_pop,.p_pof,.fwinmask,#content_menu,#modlayer) {
  --kbh-ink:#202824;--kbh-ink-2:#626B65;--kbh-ink-3:#748078;
  --kbh-border:#E2E6E2;--kbh-border-2:#EEF0EC;--kbh-surface-2:#F7F8F5;
  --kbh-deep-green:#103928;--kbh-radius:8px;--kbh-radius-sm:5px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:#202824;font-size:14px;line-height:1.5;
}
/* 长英文按词换行，修复原生全局 break-all 导致标题和作者从词中间断开。 */
body#nv_forum.pg_forumdisplay #wp :is(a,p,h1,h2,h3,span,li,button,label),
body#nv_forum.pg_forumdisplay :is(.p_pop,.p_pof,.fwinmask) {word-break:normal;overflow-wrap:anywhere}
body#nv_forum.pg_forumdisplay #pt {font-size:12px;color:#626B65;background:none;border:0}
body#nv_forum.pg_forumdisplay #pt a {color:#626B65}
body#nv_forum.pg_forumdisplay #pt a:hover {color:#103928}
body#nv_forum.pg_forumdisplay .kbh-fd-head {margin-top:16px;margin-bottom:6px}
body#nv_forum.pg_forumdisplay .kbh-fd-head .bm_h {padding:0;flex-wrap:wrap;align-items:center}
body#nv_forum.pg_forumdisplay .kbh-fd-head h1.xs2 {font-size:30px!important;line-height:1.2;font-weight:650;letter-spacing:-.5px}
body#nv_forum.pg_forumdisplay .kbh-fd-head h1.xs2 .i {margin-top:10px;font-size:12px;line-height:1.5;letter-spacing:0;color:#626B65}
body#nv_forum.pg_forumdisplay .kbh-fd-head .xi1 {color:#103928;font-weight:600}
body#nv_forum.pg_forumdisplay .kbh-fd-head .bm_h .y {font-size:13px;gap:12px}
body#nv_forum.pg_forumdisplay .kbh-fd-head .bm_h .y a {color:#626B65}
body#nv_forum.pg_forumdisplay .kbh-fd-head .bm_h .y a:hover {color:#103928}
body#nv_forum.pg_forumdisplay .kbh-fd-head .bm_c {font-size:13px;color:#626B65;line-height:1.65}
body#nv_forum.pg_forumdisplay .kbh-fd-toolbar {background:#F7F8F5;border-radius:6px;padding:12px 14px;margin-bottom:16px}
body#nv_forum.pg_forumdisplay :is(.kbh-fd-filter,.kbh-fd-sortbtn,.kbh-fd-morebtn) {box-sizing:border-box;height:40px;border:1px solid #E2E6E2;border-radius:5px;font-size:13px;font-weight:500;background:#fff;color:#202824;gap:8px}
/* 这些触发器已有真实 caret 子节点，取消原生 showmenu 伪元素，避免双箭头。 */
body#nv_forum.pg_forumdisplay :is(.kbh-fd-filter,.kbh-fd-sortbtn,.kbh-fd-morebtn,.kbh-fd-btn-post).showmenu::after {content:none;display:none}
body#nv_forum.pg_forumdisplay :is(.kbh-fd-filter,.kbh-fd-sortbtn,.kbh-fd-morebtn):hover {border-color:#B8C9BD;background:#F7F8F5;color:#103928;text-decoration:none}
body#nv_forum.pg_forumdisplay .kbh-fd-filter.kbh-fd-on {background:#E9FCE7;border-color:#BCD9C4;color:#103928}
body#nv_forum.pg_forumdisplay .kbh-fd-refresh {display:inline-flex;align-items:center;width:36px;height:36px;border-radius:5px}
body#nv_forum.pg_forumdisplay .kbh-fd-refresh:hover {background:#E9FCE7;text-decoration:none}
body#nv_forum.pg_forumdisplay #thread_types li a {font-size:14px;padding:9px 12px;font-weight:500}
body#nv_forum.pg_forumdisplay #thread_types li:is(.a,.xw1) a {font-weight:600;border-bottom-color:#25D366}
body#nv_forum.pg_forumdisplay #thread_types li a:hover {border-bottom-color:#25D366}
/* 分类区用分隔与留白组织层级，不再套一层描边卡片。 */
body#nv_forum.pg_forumdisplay .kbh-fd-catnav {border:0;border-radius:0;padding:0 16px 16px 0;box-shadow:none}
body#nv_forum.pg_forumdisplay .kbh-fd-catnav-title {font-size:15px;font-weight:600;padding:8px 0 12px;border-bottom:1px solid #E2E6E2;color:#202824}
body#nv_forum.pg_forumdisplay .kbh-fd-catnav-list {padding-top:8px}
body#nv_forum.pg_forumdisplay .kbh-fd-catnav-item {min-height:40px;border-radius:5px}
body#nv_forum.pg_forumdisplay .kbh-fd-catnav-item a {padding:9px 10px;font-size:14px;line-height:1.5;color:#626B65;border-radius:5px}
body#nv_forum.pg_forumdisplay .kbh-fd-catnav-item:hover {background:#F7F8F5}
body#nv_forum.pg_forumdisplay .kbh-fd-catnav-item a:hover {color:#103928;text-decoration:none}
body#nv_forum.pg_forumdisplay .kbh-fd-catnav-cur {background:#E9FCE7;box-shadow:inset 2px 0 #25D366}
body#nv_forum.pg_forumdisplay .kbh-fd-catnav-cur a {color:#103928;font-weight:600}
body#nv_forum.pg_forumdisplay .kbh-fd-catnav-num {color:#748078;font-size:12px;font-variant-numeric:tabular-nums}
body#nv_forum.pg_forumdisplay .kbh-fd-catnav-more {min-height:36px;font-family:inherit;font-size:13px;font-weight:500;line-height:1.5;color:#103928;border-radius:5px}
/* 保留一帖一行及原图片比例；仅减轻边框、圆角和信息密度。 */
body#nv_forum.pg_forumdisplay .kbh-fd #threadlisttableid>tbody>tr>td.kbh-fd-cell {border:1px solid #E2E6E2;border-radius:8px;padding:16px;background:#fff;box-shadow:none}
body#nv_forum.pg_forumdisplay .kbh-fd #threadlisttableid>tbody>tr.kbh-fd-row:hover>td.kbh-fd-cell {border-color:#C5D2C8;background:#fff}
body#nv_forum.pg_forumdisplay .kbh-fd #threadlisttableid>tbody>tr.kbh-fd-row--pinned>td.kbh-fd-cell {background:#F4FAF3;border-color:#C5DFC9}
body#nv_forum.pg_forumdisplay .kbh-fd-item {gap:16px}
body#nv_forum.pg_forumdisplay .kbh-fd-thumb {border-radius:6px;background:#F7F8F5}
body#nv_forum.pg_forumdisplay .kbh-fd-thumb-fb {background:#F7F8F5}
body#nv_forum.pg_forumdisplay .kbh-fd-title {font-size:16px;font-weight:600;line-height:1.5;margin-bottom:8px;padding-right:16px}
body#nv_forum.pg_forumdisplay .kbh-fd-title-link {color:#202824}
body#nv_forum.pg_forumdisplay .kbh-fd-title-link:hover {color:#103928;text-decoration:underline;text-underline-offset:3px}
body#nv_forum.pg_forumdisplay .kbh-fd-preview {font-size:14px;line-height:1.65;color:#626B65;margin-bottom:12px}
body#nv_forum.pg_forumdisplay .kbh-fd-meta {gap:6px 12px;font-size:12px;line-height:1.5;color:#748078}
body#nv_forum.pg_forumdisplay .kbh-fd-meta .kbh-fd-author a {font-size:13px;font-weight:600;color:#202824}
body#nv_forum.pg_forumdisplay .kbh-fd-meta :is(.kbh-fd-views,.kbh-fd-replies) {color:#748078;font-variant-numeric:tabular-nums}
body#nv_forum.pg_forumdisplay :is(.kbh-fd-pin,.kbh-fd-badge,.kbh-fd-title .kbh-fd-new) {border-radius:5px;padding:2px 6px;font-size:11px;line-height:16px;font-weight:500;vertical-align:1px}
body#nv_forum.pg_forumdisplay .kbh-fd-title .kbh-fd-new {background:#E9FCE7;color:#103928}
body#nv_forum.pg_forumdisplay .kbh-fd-badge {background:#F0F3EE;color:#626B65}
/* 仅当 X5 实际输出操作菜单时才显示触发器；不补造菜单或扩大权限。 */
body#nv_forum.pg_forumdisplay:has(#content_menu) .kbh-fd-menu {display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:5px;color:#626B65;text-decoration:none}
body#nv_forum.pg_forumdisplay:has(#content_menu) .kbh-fd-menu::before {content:'⋯';font:20px/1 Arial,sans-serif}
body#nv_forum.pg_forumdisplay .kbh-fd-menu:hover {background:#E9FCE7}
body#nv_forum.pg_forumdisplay .kbh-fd-preview-link {font-size:12px;color:#626B65;border-radius:5px}
/* 原生 setatarget 会重写 class，保留 ID 选择器以稳定切换后的展示。 */
body#nv_forum.pg_forumdisplay .kbh-fd :is(.kbh-fd-btn,#atarget,.pgb a.kbh-fd-btn-back) {box-sizing:border-box;height:36px;padding:0 12px;border:1px solid #E2E6E2;border-radius:5px;background:#fff;color:#202824;font-size:13px;font-weight:500;box-shadow:none}
body#nv_forum.pg_forumdisplay .kbh-fd :is(.kbh-fd-btn,#atarget):hover {background:#F7F8F5;border-color:#B8C9BD;color:#103928;text-decoration:none}
body#nv_forum.pg_forumdisplay #wp .kbh-fd .kbh-fd-btn-post {background:#25D366;border-color:#25D366;color:#103928;font-weight:600}
body#nv_forum.pg_forumdisplay #wp .kbh-fd .kbh-fd-btn-post:hover {background:#21C063;border-color:#21C063}
body#nv_forum.pg_forumdisplay .kbh-fd #atarget.atarget_1,
body#nv_forum.pg_forumdisplay .kbh-fd:has(#atarget.atarget_1) #kbh-fd-atarget-top {background:#E9FCE7;border-color:#BCD9C4;color:#103928}
body#nv_forum.pg_forumdisplay .kbh-fd .pg :is(a,strong) {height:30px;min-width:30px;border-radius:5px;font-size:13px;color:#626B65}
body#nv_forum.pg_forumdisplay .kbh-fd .pg strong {background:#E9FCE7;color:#103928;font-weight:600;box-shadow:inset 0 -2px #25D366}
body#nv_forum.pg_forumdisplay .kbh-fd .pg a:hover {background:#F0F3EE;color:#103928}
body#nv_forum.pg_forumdisplay :is(#autopbn,.pgbtn a) {box-sizing:border-box;padding:12px 16px;height:auto;background:#F7F8F5;border:1px solid #E2E6E2;border-radius:5px;font-size:14px;font-weight:500;color:#103928;box-shadow:none}
body#nv_forum.pg_forumdisplay :is(#autopbn,.pgbtn a):hover {background:#E9FCE7;text-decoration:none}
body#nv_forum.pg_forumdisplay .kbh-fd #threadlisttableid>tbody.bw0_all>tr>td.kbh-fd-cell {border:0;background:#F7F8F5;padding:32px 24px}
body#nv_forum.pg_forumdisplay .kbh-fd .emp {padding:16px;font-size:14px;line-height:1.65;color:#626B65;text-align:center}
/* 右栏只装饰现有模块，空 DIY 区不添加内容或占位卡片。 */
body#nv_forum.pg_forumdisplay :is(.kbh-fd-side,#kbh-fd-rail) .bm {border:0;border-radius:0;box-shadow:none;background:#fff}
body#nv_forum.pg_forumdisplay :is(.kbh-fd-side,#kbh-fd-rail) .bm_h {background:none;border:0;border-bottom:1px solid #E2E6E2;padding:12px 0;font-size:15px;color:#202824}
body#nv_forum.pg_forumdisplay :is(.kbh-fd-side,#kbh-fd-rail) .bm_c {padding:12px 0;font-size:13px;line-height:1.65}
body#nv_forum.pg_forumdisplay #kbh-fd-rail img {max-width:100%;border-radius:6px}
/* body 级弹层由 X5 定位；只设外观，不能覆盖 display/top/left 或事件。 */
body#nv_forum.pg_forumdisplay :is(.p_pop,.p_pof):not(.h_pop):not(#qmenu_menu):not(#scbar_type_menu),
body#nv_forum.pg_forumdisplay #content_menu {border:1px solid #E2E6E2;border-radius:6px;padding:8px;background:#fff;box-shadow:0 5px 16px #2028240d}
body#nv_forum.pg_forumdisplay :is(.p_pop,.p_pof):not(.h_pop):not(#qmenu_menu):not(#scbar_type_menu) a,
body#nv_forum.pg_forumdisplay #content_menu a {box-sizing:border-box;min-height:36px;padding:8px 12px;border:0;border-radius:5px;font-size:13px;line-height:1.5;color:#202824;background-color:transparent}
body#nv_forum.pg_forumdisplay :is(.p_pop,.p_pof):not(.h_pop):not(#qmenu_menu):not(#scbar_type_menu) a:hover,
body#nv_forum.pg_forumdisplay #content_menu a:hover {background-color:#E9FCE7;color:#103928;text-decoration:none}
body#nv_forum.pg_forumdisplay :is(.p_pop,.p_pof) :is(a.xw1,li.a>a,a.a) {background-color:#E9FCE7;color:#103928;font-weight:600}
body#nv_forum.pg_forumdisplay #filter_dateline_menu .pop_moremenu>li {padding:8px 4px;border-bottom:1px solid #E2E6E2;font-size:12px;color:#626B65}
body#nv_forum.pg_forumdisplay #filter_dateline_menu .pop_moremenu>li:last-child {border-bottom:0}
body#nv_forum.pg_forumdisplay #filter_dateline_menu a {display:inline-flex;align-items:center}
body#nv_forum.pg_forumdisplay #filter_dateline_menu .pipe {color:#E2E6E2}
body#nv_forum.pg_forumdisplay :is(#wp,.p_pop,.p_pof,.fwinmask,#modlayer) :is(.px,.pt,.ps,select) {box-sizing:border-box;border:1px solid #E2E6E2;border-radius:5px;background-color:#fff;background-image:none;color:#202824;font-family:inherit;font-size:13px;box-shadow:none}
body#nv_forum.pg_forumdisplay :is(#wp,.p_pop,.p_pof,.fwinmask) :is(input.px,select,.ps) {min-height:36px;padding:6px 10px}
body#nv_forum.pg_forumdisplay :is(#wp,.p_pop,.p_pof,.fwinmask,#modlayer) .pn {box-sizing:border-box;height:36px;padding:0 12px;border:1px solid #E2E6E2;border-radius:5px;background:#fff;color:#202824;font-size:13px;box-shadow:none}
body#nv_forum.pg_forumdisplay :is(#wp,.p_pop,.p_pof,.fwinmask,#modlayer) .pnc {background:#25D366;border-color:#25D366;color:#103928}
body#nv_forum.pg_forumdisplay :is(#wp,.p_pop,.p_pof,.fwinmask,#modlayer) .pn:hover {background:#E9FCE7}
body#nv_forum.pg_forumdisplay :is(#wp,.p_pop,.p_pof,.fwinmask,#modlayer) .pnc:hover {background:#21C063}
body#nv_forum.pg_forumdisplay .fwinmask .m_c {background:#fff;border:1px solid #E2E6E2;border-radius:8px;box-shadow:0 5px 16px #2028240d}
body#nv_forum.pg_forumdisplay .fwinmask :is(.t_l,.t_c,.t_r,.m_l,.m_r,.b_l,.b_c,.b_r) {background:none;opacity:1}
body#nv_forum.pg_forumdisplay .fwinmask .flb {padding:16px 20px;border-bottom:1px solid #E2E6E2}
body#nv_forum.pg_forumdisplay .fwinmask .flb em {font-size:16px;font-weight:600;color:#202824}
body#nv_forum.pg_forumdisplay :is(#wp,.p_pop,.p_pof,.fwinmask,#modlayer) :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
body#nv_forum.pg_forumdisplay .kbh-fd #atarget:focus-visible {outline:1px solid #8BAA95;outline-offset:2px;box-shadow:none}
body#nv_forum.pg_forumdisplay :is(#wp,.p_pop,.p_pof,.fwinmask) :is(button,input,select,textarea):disabled {opacity:.45;cursor:not-allowed}
body#nv_forum.pg_forumdisplay :is(.kbh-fd-btn,.kbh-fd-filter,.kbh-fd-sortbtn,.kbh-fd-morebtn):active {background:#D8F3DF}
}

@media(min-width:768px){
body#nv_forum.pg_forumdisplay .kbh-fd :is(.ico_fall,.ico_increase){display:inline-flex;align-items:center;justify-content:center;position:static;width:16px;height:20px;line-height:20px;vertical-align:middle;transform:none;margin:0 5px;font-size:14px}
body#nv_forum.pg_forumdisplay .kbh-fd :is(.ico_fall,.ico_increase):before{position:static;display:block;line-height:20px;transform:none;margin:0}
}
