/* KBH 帖子置顶 — 列表注入样式（KBH-STICKY-UI-02）。
 * 蓝色 #0A6CFF「置顶」= 作者本人可购买；橙色 #FF6F12「置顶」= 已置顶状态。统一紧凑圆角矩形，不用药丸形。
 * 位置：PC 版块列表 = 信息行最右侧；其他卡片 = 图片左上角（逻辑属性，AR 自动镜像）。 */
.ks-host{position:relative!important}
.ks-badge,.ks-entry{box-sizing:border-box!important;display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:3px!important;width:auto!important;min-width:0!important;max-width:none!important;height:22px!important;margin:0!important;padding:0 7px!important;border:0!important;border-radius:4px!important;color:#fff!important;font:600 12px/22px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;letter-spacing:0!important;text-align:center!important;text-decoration:none!important;white-space:nowrap!important;overflow:visible!important;box-shadow:0 1px 2px rgba(0,0,0,.18)!important;z-index:4!important}
.ks-entry{background:#0A6CFF!important;cursor:pointer!important}
.ks-entry:hover,.ks-entry:focus-visible{background:#0057D6!important;color:#fff!important}
.ks-badge{background:#FF6F12!important;pointer-events:none!important}
.ks-badge.ks-own{pointer-events:auto!important;cursor:pointer!important}
.ks-badge.ks-own:hover,.ks-badge.ks-own:focus-visible{background:#E85E05!important}
.ks-badge>span,.ks-entry>span{display:inline!important;position:static!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:inherit!important;font:inherit!important;line-height:inherit!important;white-space:nowrap!important;opacity:1!important;transform:none!important}
.ks-badge svg,.ks-entry svg{display:inline-block!important;position:static!important;width:11px!important;height:11px!important;margin:0!important;padding:0!important;fill:none!important;stroke:currentColor!important;flex:none!important}
/* 图片左上角 */
.ks-pos-img{position:absolute!important;top:8px!important;inset-inline-start:8px!important;inset-inline-end:auto!important;bottom:auto!important}
/* PC 版块列表：信息行最右侧（购买前后同一位置；信息较多换行时仍固定在第一行右侧） */
.kbh-fd-meta.ks-meta-host{position:relative!important;padding-inline-end:76px!important}
.ks-pos-meta{position:absolute!important;top:-1px!important;inset-inline-end:0!important;inset-inline-start:auto!important;box-shadow:none!important}
/* PC 版块列表：已置顶状态紧跟帖子标题（KBH-STICKY-UI-03） */
.ks-pos-title{position:static!important;margin-inline-start:8px!important;vertical-align:2px!important;height:20px!important;line-height:20px!important;box-shadow:none!important}
/* PC 版块列表：有效商业置顶不再叠加 X5 原生置顶视觉（浅绿底、隐藏置顶「×」、标题置顶标签）；管理员原生置顶不受影响 */
td.kbh-fd-cell.ks-commercial{background:#fff!important}
td.kbh-fd-cell.ks-commercial .kbh-fd-hidestick{display:none!important}
.ks-hide-native{display:none!important}
/* 购买 / 管理弹窗 */
.ks-modal{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:rgba(17,24,20,.48)}
.ks-sheet{display:flex;flex-direction:column;width:min(560px,94vw);height:min(720px,88vh);background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.ks-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-bottom:1px solid #eef1ef;font:600 15px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#171d19}
.ks-sheet-close{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:50%;background:#f3f5f4;color:#171d19;font-size:20px;line-height:1;cursor:pointer}
.ks-sheet iframe{flex:1 1 auto;width:100%;border:0;background:#fff}
.ks-m .ks-modal{align-items:flex-end}
.ks-m .ks-sheet{width:100%;height:90vh;border-radius:16px 16px 0 0}
.ks-menu-icon{width:20px;height:20px}
/* KBH-STICKY-MOBILE-UI-A2：Mobile 弹窗底部安全区（iframe 内取不到 safe-area，由外层留出；主按钮固定在 iframe 底部） */
.ks-m .ks-sheet{box-sizing:border-box;padding-bottom:env(safe-area-inset-bottom,0px)}
