/* friend_links */
.friend-links-card{order:999}.friend-links-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.friend-links-title a{font-size:var(--font-size-sm);font-weight:400}.friend-links-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;margin:0}.friend-links-list li{min-width:0;border-bottom:none}.friend-links-list a{min-width:0;color:var(--text-muted);font-size:var(--font-size-sm)}.friend-links-list a:before{flex:0 0 6px}.friend-links-list a>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.friend-links-list a:hover{color:var(--brand)}.friend-links-empty{margin:0;color:var(--text-subtle);font-size:var(--font-size-sm)}.friend-links-submit>p{color:var(--text-muted)}@media(max-width:600px){.friend-links-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* nb_editor_dream */
.nb-editor-dream-field{position:relative;display:grid;row-gap:0;margin:8px 0}
.reply-panel .nb-editor-dream-field{margin:0}
.nb-editor-dream-field>.grid{display:contents}
.nb-editor-dream-field>.grid>span{order:1;margin-bottom:6px;padding-top:0}
.nb-editor-dream-field>.nb-editor-dream{order:2}
/* 正文框固定白底，和主题色工具栏拉开层次；高度仍交给核心按场景决定。 */
.nb-editor-dream-field>.grid>textarea[name=body]{order:3;border-top:0;border-radius:0 0 var(--radius-sm) var(--radius-sm);background:var(--panel);resize:vertical}
/* 分栏预览：左边写 Markdown，右边常驻渲染结果，随输入更新。 */
.nb-editor-dream-field.nb-editor-dream-live{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.nb-editor-dream-field.nb-editor-dream-live>.grid>span,.nb-editor-dream-field.nb-editor-dream-live>.nb-editor-dream{grid-column:1/-1}
.nb-editor-dream-field.nb-editor-dream-live>.grid>textarea[name=body]{grid-column:1;border-bottom-right-radius:0}
.nb-editor-dream-field.nb-editor-dream-live>.nb-editor-dream-preview{grid-column:2;max-height:60vh;overflow:auto;border-left:0;border-bottom-left-radius:0}
.nb-editor-dream-field{--nb-editor-dream-inset:12px;--nb-editor-dream-gap:8px;--nb-editor-dream-fast:160ms;--nb-editor-dream-plus-size:26px;min-width:0}
.nb-editor-dream-field .nb-editor-dream-source{position:absolute;width:1px;min-width:0;height:1px;min-height:0;margin:0;padding:0;opacity:0;pointer-events:none;clip-path:inset(50%)}
.nb-editor-dream-field>.nb-editor-dream-surface{order:3;min-width:0;min-height:240px;padding:var(--nb-editor-dream-inset);border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius-sm) var(--radius-sm);background:var(--panel)}
.nb-editor-dream-field>.nb-editor-dream-surface[hidden]{display:none}
.nb-editor-dream-field:focus-within>.nb-editor-dream-surface{border-color:var(--brand)}
.nb-editor-dream-surface .nb-editor-dream-text,.nb-editor-dream-surface .nb-editor-dream-cell{box-sizing:border-box;display:block;min-width:0;width:100%;min-height:36px;margin:0;padding:6px 8px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--text);font-family:inherit;font-size:var(--font-size-md);line-height:1.65;resize:none;overflow:hidden}
.nb-editor-dream-surface .nb-editor-dream-text:focus{outline:none;box-shadow:none}
.nb-editor-dream-surface .nb-editor-dream-cell:focus{outline:2px solid var(--focus-ring);outline-offset:-2px;box-shadow:none;background:var(--brand-soft)}
.nb-editor-dream-table-block{position:relative;min-width:0;margin:var(--nb-editor-dream-gap) var(--nb-editor-dream-inset) calc(var(--nb-editor-dream-plus-size) / 2 + var(--nb-editor-dream-gap)) 0}
.nb-editor-dream-table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius-sm)}
.nb-editor-dream-table{width:100%;border-collapse:collapse;table-layout:fixed;background:var(--panel);color:var(--text)}
/* 单元格不设最小宽度：表格始终贴合编辑栏，AI 生成的多列表格靠换行和增高显示，不会横向撑出编辑区。 */
.nb-editor-dream-table th,.nb-editor-dream-table td{min-width:0;padding:0;border:1px solid var(--line);vertical-align:top;text-align:left}
.nb-editor-dream-table th{background:var(--brand-soft);font-weight:600}
.nb-editor-dream-table tr:first-child th{border-top:0}
.nb-editor-dream-table tr:last-child td{border-bottom:0}
.nb-editor-dream-table tr>:first-child{border-left:0}
.nb-editor-dream-table tr>:last-child{border-right:0}
.nb-editor-dream-table-block .nb-editor-dream-table-add{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;width:var(--nb-editor-dream-plus-size);height:var(--nb-editor-dream-plus-size);min-height:var(--nb-editor-dream-plus-size);padding:0;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--brand);cursor:pointer;opacity:0;pointer-events:none;transition:opacity var(--nb-editor-dream-fast),background var(--nb-editor-dream-fast),border-color var(--nb-editor-dream-fast)}
.nb-editor-dream-table-block .nb-editor-dream-table-add svg{display:block;width:14px;height:14px}
.nb-editor-dream-table-block .nb-editor-dream-table-remove{position:absolute;right:0;bottom:-27px;min-height:24px;padding:2px 4px;border:0;background:transparent;color:var(--text-subtle);font-size:var(--font-size-sm);cursor:pointer;visibility:hidden}
.nb-editor-dream-table-block:hover .nb-editor-dream-table-remove,.nb-editor-dream-table-block:focus-within .nb-editor-dream-table-remove{visibility:visible}
.nb-editor-dream-table-block .nb-editor-dream-table-remove:hover{color:var(--danger)}
.nb-editor-dream-table-add-row{left:50%;bottom:0;transform:translate(-50%,50%)}
.nb-editor-dream-table-add-column{right:0;top:50%;transform:translate(50%,-50%)}
.nb-editor-dream-table-last-row .nb-editor-dream-table-add-row,.nb-editor-dream-table-last-column .nb-editor-dream-table-add-column,.nb-editor-dream-table-block:focus-within .nb-editor-dream-table-add{opacity:1;pointer-events:auto}
.nb-editor-dream-table-block .nb-editor-dream-table-add:hover{background:var(--brand);border-color:var(--brand);color:var(--inverse-text)}
.nb-editor-dream-table-block .nb-editor-dream-table-add:focus-visible{opacity:1;pointer-events:auto;outline:2px solid var(--focus-ring);outline-offset:2px}
.nb-editor-dream-table-picker{--nb-editor-dream-inset:12px;--nb-editor-dream-gap:4px;--nb-editor-dream-fast:160ms;max-height:calc(100vh - 16px);padding:var(--nb-editor-dream-inset);box-sizing:border-box;overflow:auto;box-shadow:0 1px 2px var(--shadow-base),0 12px 32px var(--shadow-medium)}
.nb-editor-dream-table-title{margin-bottom:var(--nb-editor-dream-inset);color:var(--text);font-size:var(--font-size-md);font-weight:600;line-height:1.5;font-variant-numeric:tabular-nums}
.nb-editor-dream-table-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:var(--nb-editor-dream-gap)}
.nb-editor-dream .nb-editor-dream-table-size{width:100%;min-width:0;min-height:0;aspect-ratio:1;padding:0;border:1px solid var(--line);border-radius:2px;background:var(--bg);cursor:pointer;transition:background var(--nb-editor-dream-fast),border-color var(--nb-editor-dream-fast)}
.nb-editor-dream .nb-editor-dream-table-size.nb-editor-dream-table-selected{border-color:var(--brand);background:var(--brand-soft)}
.nb-editor-dream .nb-editor-dream-table-size:focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px}
.nb-editor-dream-table-hint{margin-top:var(--nb-editor-dream-inset);color:var(--text-subtle);font-size:var(--font-size-sm);line-height:1.6}
.nb-editor-dream-field.nb-editor-dream-live>.nb-editor-dream-surface{grid-column:1;border-bottom-right-radius:0}
/* 分栏预览时正文区和预览同高：超出部分在正文区内滚动，避免左栏把整行撑高、右侧留下大片空白。 */
@media(min-width:821px){.nb-editor-dream-field.nb-editor-dream-live:not(.nb-editor-dream-full)>.nb-editor-dream-surface{max-height:60vh;overflow:auto}}
.nb-editor-dream-field.nb-editor-dream-full>.nb-editor-dream-surface{height:calc(100vh - 150px);min-height:0;max-height:calc(100vh - 150px);overflow:auto}
@media(max-width:820px){.nb-editor-dream-field.nb-editor-dream-live>.nb-editor-dream-surface{grid-column:1;border-radius:0}}
@media(hover:none){.nb-editor-dream-table-block .nb-editor-dream-table-add{opacity:1;pointer-events:auto}}
@media(prefers-reduced-motion:reduce){.nb-editor-dream-table-block .nb-editor-dream-table-add,.nb-editor-dream .nb-editor-dream-table-size{transition:none}}
.nb-editor-dream{min-width:0}
/* 工具栏跟随站点主题色，不写死中性灰。 */
.nb-editor-dream-bar{display:flex;align-items:center;flex-wrap:wrap;gap:2px;padding:4px 6px;border:1px solid var(--line);border-bottom:0;border-radius:var(--radius-sm) var(--radius-sm) 0 0;background:var(--brand-soft)}
.nb-editor-dream-field:focus-within>.nb-editor-dream>.nb-editor-dream-bar{border-color:var(--brand)}
/* 选择器带上根容器，避免被 .reply-panel button 之类的核心规则按特异性压过。 */
.nb-editor-dream .nb-editor-dream-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;min-width:30px;min-height:28px;height:28px;padding:0;border:1px solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--brand-hover);cursor:pointer}
.nb-editor-dream .nb-editor-dream-btn svg{width:16px;height:16px}
.nb-editor-dream .nb-editor-dream-btn:hover{border-color:var(--line);background:var(--panel);color:var(--brand-hover)}
.nb-editor-dream .nb-editor-dream-btn:focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px}
.nb-editor-dream .nb-editor-dream-btn.nb-editor-dream-btn-active{border-color:var(--brand);background:var(--panel);color:var(--brand-hover)}
.nb-editor-dream-split{width:1px;height:16px;margin:0 4px;background:var(--line)}
.nb-editor-dream-space{flex:1 1 auto;min-width:0}
/* 面板用 fixed 浮层：既不挤占正文框空间，也不会被祖先的 overflow:hidden 裁掉。位置由 JS 计算，优先向上弹。 */
.nb-editor-dream-panel{position:fixed;z-index:60;display:flex;flex-direction:column;width:min(360px,100%);max-height:min(60vh,340px);border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:0 12px 32px var(--shadow-medium);overflow:hidden}
.nb-editor-dream-panel[hidden]{display:none}
.nb-editor-dream-items{flex:1 1 auto;min-height:0;display:flex;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:3px;margin:0;padding:8px 10px;overflow-y:auto;list-style:none}
.nb-editor-dream-items[hidden]{display:none}
.nb-editor-dream-items li{padding:4px 7px;border-radius:var(--radius-sm);color:var(--text);font-size:var(--font-size-sm);line-height:1.4;cursor:pointer;user-select:none}
.nb-editor-dream-items li:hover{background:var(--bg)}
.nb-editor-dream-items-emoji li{padding:2px 5px;font-size:var(--font-size-xl)}
.nb-editor-dream-tabs{flex:0 0 auto;display:flex;align-items:stretch;flex-wrap:wrap;border-top:1px solid var(--line);background:var(--brand-soft)}
.nb-editor-dream .nb-editor-dream-tab{min-width:0;min-height:34px;padding:0 12px;border:0;border-radius:0;background:transparent;color:var(--text-muted);font-size:var(--font-size-sm);font-weight:400;cursor:pointer}
.nb-editor-dream .nb-editor-dream-tab:hover{background:var(--panel);color:var(--text)}
.nb-editor-dream .nb-editor-dream-tab.nb-editor-dream-tab-active{background:var(--panel);color:var(--brand-hover);font-weight:500}
/* 预览框借用核心 .post-content 的排版，但要去掉它的 margin-top，否则与正文框差 2px。 */
.nb-editor-dream-preview{order:4;margin-top:0;min-height:120px;padding:12px 14px;border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius-sm) var(--radius-sm);background:var(--panel)}
.nb-editor-dream-preview[hidden]{display:none}
/* 预览表格和编辑器保持一致：等宽列、表头浅主题色底配正文色文字；长内容换行，表格不再横向溢出预览栏。 */
.nb-editor-dream-preview.post-content .markdown-table-wrap table{table-layout:fixed}
.nb-editor-dream-preview.post-content .markdown-table-wrap th,.nb-editor-dream-preview.post-content .markdown-table-wrap td{min-width:0;overflow-wrap:anywhere}
.nb-editor-dream-preview.post-content th{background:var(--brand-soft);color:var(--text);font-weight:600}
.nb-editor-dream-preview-empty{color:var(--text-subtle);font-size:var(--font-size-sm)}
/* 草稿提示条跟在编辑区容器之后，和正文框同宽，紧贴编辑器下方。 */
.nb-editor-dream-field.nb-editor-dream-has-draft{margin-bottom:0}
.nb-editor-dream-draft{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;width:100%;min-width:0;margin:6px 0 0;padding:6px 9px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel);color:var(--text-muted);font-size:var(--font-size-sm);line-height:1.5}
.nb-editor-dream-draft[hidden]{display:none}
.reply-panel .nb-editor-dream-draft{margin-top:0}
.nb-editor-dream-draft-text{flex:1 1 180px;min-width:0;overflow-wrap:anywhere}
.nb-editor-dream-draft-actions{display:flex;gap:6px;margin-left:auto}
.nb-editor-dream-status{order:2;padding:6px 10px;border:1px solid var(--line);border-top:0;background:var(--brand-soft);color:var(--text-muted);font-size:var(--font-size-sm);line-height:1.5;overflow-wrap:anywhere}
.nb-editor-dream-status[hidden]{display:none}
.nb-editor-dream-draft .nb-editor-dream-draft-action{min-width:0;min-height:28px;padding:2px 9px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);font-size:var(--font-size-sm);font-weight:400;cursor:pointer}
.nb-editor-dream-draft .nb-editor-dream-draft-action:enabled:hover{border-color:var(--brand);color:var(--brand-hover)}
.nb-editor-dream-draft .nb-editor-dream-draft-action:disabled{color:var(--text-disabled);cursor:default}
.nb-editor-dream-draft .nb-editor-dream-draft-action:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
/* 与核心 .post-content ul 的缩进保持一致，否则有序列表会多缩进一截。 */
.nb-editor-dream-ol{margin:4px 0 8px 18px;padding:0}
/* 重点标记：颜色由行内自定义属性传入，后台改颜色立刻生效，不用重建资源文件。 */
.nb-editor-dream-mark{border-radius:3px;background:transparent;color:var(--nb-editor-dream-mark-color,var(--danger));font-weight:600}
.nb-editor-dream-mark-soft{padding:0 4px;background:var(--warning-soft);background:color-mix(in srgb,var(--nb-editor-dream-mark-color,var(--danger)) 16%,transparent)}
.nb-editor-dream-mark-solid{padding:0 5px;background:var(--nb-editor-dream-mark-color,var(--danger));color:var(--inverse-text)}
.nb-editor-dream-field.nb-editor-dream-full{position:fixed;inset:0;z-index:60;align-content:start;margin:0;padding:14px;background:var(--panel);overflow:auto}
/* 核心提示弹窗在页面末尾、层级更低，全屏正文层会整块盖住它，所以插入链接和插入图片的弹窗看不见；
   弹窗打开期间把全屏层降到弹窗下面，关闭后立刻恢复，全屏本身不退出。 */
.nb-editor-dream-field.nb-editor-dream-full.nb-editor-dream-full-dialog{z-index:30}
/* 全屏时正文和预览各自限定高度、在内部滚动：工具栏始终留在屏幕顶部，AI 生成的长文不会把整层撑出视口。 */
.nb-editor-dream-field.nb-editor-dream-full>.grid>textarea[name=body]{height:calc(100vh - 150px);min-height:0;max-height:calc(100vh - 150px);overflow:auto}
.nb-editor-dream-field.nb-editor-dream-full>.nb-editor-dream-preview{height:calc(100vh - 150px);min-height:0;max-height:none;overflow:auto}
.nb-editor-dream-field.nb-editor-dream-full.nb-editor-dream-live>.nb-editor-dream-preview{max-height:none}
/* 桌面全屏：正文区和预览占满工具栏以下的全部视口高度，底部不再留出固定空带。 */
@media(min-width:821px){
.nb-editor-dream-field.nb-editor-dream-full{grid-template-rows:auto auto minmax(0,1fr);align-content:stretch;overflow:hidden}
.nb-editor-dream-field.nb-editor-dream-full.nb-editor-dream-live{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.nb-editor-dream-field.nb-editor-dream-full>.grid>span{grid-row:1;grid-column:1/-1}
.nb-editor-dream-field.nb-editor-dream-full>.nb-editor-dream{grid-row:2;grid-column:1/-1}
.nb-editor-dream-field.nb-editor-dream-full>.grid>textarea[name=body],.nb-editor-dream-field.nb-editor-dream-full>.nb-editor-dream-surface{grid-row:3;grid-column:1;height:100%;min-height:0;max-height:none;overflow:auto}
.nb-editor-dream-field.nb-editor-dream-full>.nb-editor-dream-preview{grid-row:3;grid-column:2;height:100%;min-height:0;max-height:none;overflow:auto}
.nb-editor-dream-field.nb-editor-dream-full>.nb-editor-dream-status{position:absolute;left:14px;right:14px;bottom:14px;z-index:2}
}
.nb-editor-dream-dialog-field{display:grid;gap:5px;color:var(--text-muted);font-size:var(--font-size-sm)}
.nb-editor-dream-dialog-field .prompt-input{box-sizing:border-box}
.nb-editor-dream-video-status{color:var(--text-muted);font-size:var(--font-size-sm);line-height:1.6;overflow-wrap:anywhere}
.nb-editor-dream-upload{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:-4px 0 0}
.nb-editor-dream-upload .nb-editor-dream-upload-pick{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel);color:var(--text);font-size:var(--font-size-sm);font-weight:500;white-space:normal;cursor:pointer}
.nb-editor-dream-upload .nb-editor-dream-upload-pick:hover{border-color:var(--brand);color:var(--brand-hover)}
.nb-editor-dream-upload .nb-editor-dream-upload-pick.is-busy{opacity:.6;pointer-events:none}
.nb-editor-dream-upload-status{flex:1 1 auto;min-width:0;color:var(--text-muted);font-size:var(--font-size-sm);overflow-wrap:anywhere}
/* 窄屏放不下两栏，预览改到正文框下方，仍然实时更新。 */
@media(max-width:820px){
.nb-editor-dream-field.nb-editor-dream-live{grid-template-columns:minmax(0,1fr)}
.nb-editor-dream-field.nb-editor-dream-live>.grid>textarea[name=body]{grid-column:1;border-radius:0}
.nb-editor-dream-field.nb-editor-dream-live>.nb-editor-dream-preview{grid-column:1;max-height:50vh;border-left:1px solid var(--line);border-radius:0 0 var(--radius-sm) var(--radius-sm)}
}
/* 预览里的网址卡片：圆角矩形，标题是域名，下面标注来源，不加载外部内容。 */
.nb-editor-dream-preview .nb-editor-dream-card-hint{display:flex;gap:12px;align-items:flex-start;box-sizing:border-box;max-width:100%;margin:10px 0;padding:12px 14px;border:1px solid var(--text-subtle);border-color:color-mix(in srgb,var(--line) 45%,var(--text-subtle));border-radius:var(--radius-sm);background:var(--panel)}
.nb-editor-dream-preview .nb-editor-dream-card-hint-main{flex:1 1 auto;min-width:0;display:block}
.nb-editor-dream-preview .nb-editor-dream-card-hint-title{display:block;color:var(--text);font-size:var(--font-size-md);font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.nb-editor-dream-preview .nb-editor-dream-card-hint-url{display:block;margin-top:5px;color:var(--text-subtle);font-size:var(--font-size-sm);line-height:1.5;overflow-wrap:anywhere}
.nb-editor-dream-preview .nb-editor-dream-card-hint-go{flex:0 0 auto;display:block;color:var(--text-subtle);line-height:0}
.nb-editor-dream-preview .nb-editor-dream-card-hint-go svg{width:16px;height:16px}
/* 实时预览里的视频占位：浅灰长方形 + 居中播放图标，不加载播放器；发布后正文仍显示视频。 */
.nb-editor-dream-preview .nb-editor-dream-video-placeholder{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;aspect-ratio:16/9;margin:10px 0;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg);color:var(--text-subtle)}
.nb-editor-dream-preview .nb-editor-dream-video-placeholder svg{width:34px;height:34px}
/* 插入链接窗口里的插入方式选择：始终水平排列并整体居中，勾选状态显示对勾。 */
.nb-editor-dream-card-mode{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:28px;max-width:100%;overflow-x:auto}
.nb-editor-dream-card-mode label{display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;color:var(--text);font-size:var(--font-size-sm);line-height:1.5;white-space:nowrap;cursor:pointer}
.nb-editor-dream-card-mode input{-webkit-appearance:none;appearance:none;box-sizing:border-box;display:block;flex:0 0 16px;width:16px;min-width:16px;height:16px;margin:0;border:1px solid var(--line);border-radius:3px;background-color:var(--panel);background-repeat:no-repeat;background-position:center;background-size:10px 10px;cursor:pointer}
.nb-editor-dream-card-mode input:checked{border-color:var(--brand);background-color:var(--brand);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3.1 3.1 6-6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.nb-editor-dream-card-mode input:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
@media(max-width:480px){
.nb-editor-dream-bar{gap:1px;padding:4px}
.nb-editor-dream .nb-editor-dream-btn{width:28px;min-width:28px}
.nb-editor-dream-split{margin:0 2px}
}
/* 后台设置页：分组区块 + 开关卡片 + 效果预览，与 Dream 页脚后台保持一致的阅读节奏。 */
.nb-editor-dream-admin{display:grid;gap:26px;min-width:0}
.nb-editor-dream-admin .nb-editor-dream-admin-form{display:grid;gap:22px;min-width:0;margin:0}
.nb-editor-dream-admin .nb-editor-dream-admin-section{display:grid;gap:12px;min-width:0}
.nb-editor-dream-admin .nb-editor-dream-admin-section+.nb-editor-dream-admin-section{padding-top:22px;border-top:1px solid var(--line-soft)}
.nb-editor-dream-admin .nb-editor-dream-admin-head{display:grid;gap:4px;min-width:0}
.nb-editor-dream-admin h3{margin:0;color:var(--text);font-size:var(--font-size-md);font-weight:600;line-height:1.5}
.nb-editor-dream-admin .nb-editor-dream-admin-help{margin:0;color:var(--text-muted);font-size:var(--font-size-sm);line-height:1.7;overflow-wrap:anywhere}
.nb-editor-dream-admin .nb-editor-dream-admin-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.nb-editor-dream-admin .nb-editor-dream-admin-toggle{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg);cursor:pointer}
.nb-editor-dream-admin .nb-editor-dream-admin-toggle:hover{border-color:var(--brand)}
.nb-editor-dream-admin .nb-editor-dream-admin-toggle input{flex:0 0 38px;width:38px;min-width:38px;height:22px;min-height:22px;margin:4px 0 0;padding:0;cursor:pointer}
.nb-editor-dream-admin .nb-editor-dream-admin-toggle>span{display:grid;gap:2px;min-width:0}
.nb-editor-dream-admin .nb-editor-dream-admin-toggle strong{color:var(--text);font-size:var(--font-size-sm);font-weight:600;line-height:1.6}
.nb-editor-dream-admin .nb-editor-dream-admin-toggle small{color:var(--text-muted);font-size:var(--font-size-sm);font-weight:400;line-height:1.7;overflow-wrap:anywhere}
.nb-editor-dream-admin .nb-editor-dream-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;min-width:0}
.nb-editor-dream-admin .nb-editor-dream-admin-grid .grid{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0;margin:0}
.nb-editor-dream-admin .nb-editor-dream-admin-grid .grid>span{padding-top:0;font-size:var(--font-size-sm)}
.nb-editor-dream-admin .nb-editor-dream-admin-grid .grid>span small{display:block;margin-top:3px;font-size:var(--font-size-sm);font-weight:400;line-height:1.7}
.nb-editor-dream-admin .nb-editor-dream-admin-color{display:flex;align-items:center;gap:8px;min-width:0;padding-top:0}
.nb-editor-dream-admin .nb-editor-dream-admin-color input{flex:1 1 auto;min-width:0}
.nb-editor-dream-admin .nb-editor-dream-admin-swatch{flex:0 0 26px;width:26px;height:26px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--nb-editor-dream-mark-color,var(--danger))}
.nb-editor-dream-admin .nb-editor-dream-admin-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-width:0}
.nb-editor-dream-admin .nb-editor-dream-admin-actions button{min-height:42px;margin:0}
.nb-editor-dream-admin .nb-editor-dream-admin-actions span{color:var(--text-muted);font-size:var(--font-size-sm)}
.nb-editor-dream-admin .nb-editor-dream-admin-preview-section{display:grid;gap:12px;min-width:0;padding-top:24px;border-top:1px solid var(--line-soft)}
.nb-editor-dream-admin .nb-editor-dream-admin-preview{display:grid;gap:14px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg)}
.nb-editor-dream-admin .nb-editor-dream-admin-toolbar .nb-editor-dream-bar{border:1px solid var(--line);border-radius:var(--radius-sm)}
.nb-editor-dream-admin .nb-editor-dream-admin-tool{display:inline-flex;align-items:center;justify-content:center;width:30px;min-width:30px;height:28px;border:1px solid transparent;border-radius:var(--radius-sm);color:var(--brand-hover)}
.nb-editor-dream-admin .nb-editor-dream-admin-tool svg{display:block;width:16px;height:16px}
.nb-editor-dream-admin .nb-editor-dream-admin-draft{margin:0;max-width:100%}
.nb-editor-dream-admin .nb-editor-dream-admin-draft .nb-editor-dream-draft-action{width:auto}
.nb-editor-dream-admin .nb-editor-dream-admin-draft-off .nb-editor-dream-draft-action{display:none}
.nb-editor-dream-admin .nb-editor-dream-admin-marks{display:flex;flex-wrap:wrap;gap:10px 18px;min-width:0}
.nb-editor-dream-admin .nb-editor-dream-admin-mark{display:inline-flex;align-items:center;gap:8px;min-width:0}
.nb-editor-dream-admin .nb-editor-dream-admin-mark small{color:var(--text-muted);font-size:var(--font-size-sm);line-height:1.5}
@media(max-width:720px){
.nb-editor-dream-admin .nb-editor-dream-admin-options,.nb-editor-dream-admin .nb-editor-dream-admin-grid{grid-template-columns:minmax(0,1fr)}
}
/* tieba_style */
:root{--tieba-style-font-10:10px;--tieba-style-font-10_5:10.5px;--tieba-style-font-11:11px;--tieba-style-font-11_5:11.5px;--tieba-style-font-12:12px;--tieba-style-font-12_5:12.5px;--tieba-style-font-13:13px;--tieba-style-font-13_5:13.5px;--tieba-style-font-14:14px;--tieba-style-font-14_5:14.5px;--tieba-style-font-15:15px;--tieba-style-font-16:16px;--tieba-style-font-16_5:16.5px;--tieba-style-font-17:17px;--tieba-style-font-18:18px;--tieba-style-font-19:19px;--tieba-style-font-20:20px;--tieba-style-font-22:22px;--tieba-style-font-24:24px;--tieba-style-font-28:28px}

/* ===== 贴吧风格前台模板（还原 tieba.baidu.com 现行版） ===== */
.tieba-style-body{--tieba-style-bg:#f5f6f7;--tieba-style-card:#fff;--tieba-style-title:#1f2126;--tieba-style-text:#3d4045;--tieba-style-muted:#9498a0;--tieba-style-line:#ebeef2;--tieba-style-blue:#3b6ef5;--tieba-style-blue-dark:#2f5fe0;--tieba-style-link:#2f6bd8;--tieba-style-soft:#f2f4f7;--tieba-style-active:#e8f1ff;min-height:100vh;background:var(--tieba-style-bg);color:var(--tieba-style-text);font-size:var(--tieba-style-font-14);font-weight:400;letter-spacing:.1px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
/* 主题色：内核默认绿（--brand 家族）在本模板内统一换成贴吧蓝。
   内核按钮、.icon-action、NB 编辑器工具条、快速回复按钮等都走 --brand，
   这里用 body 选择器 + !important 压过「色系切换」插件写在 :root 上的绿色。 */
body.tieba-style-body{--brand:var(--tieba-style-blue)!important;--brand-hover:var(--tieba-style-blue-dark)!important;--brand-soft:var(--tieba-style-active)!important;--success:var(--tieba-style-blue)!important;--success-soft:var(--tieba-style-active)!important}
.tieba-style-body main.tieba-style-page{padding:0;max-width:none;margin:0;background:transparent}
/* 版权行：浅灰圆角框，与中间列/右栏同一条基线。
   .tieba-style-cols 是 max-width:1600 的居中容器，宽屏时整行右移 (100% - 1600px)/2，
   所以左右外边距都用 max()：窄屏取固定值（230 / 20），宽屏自动跟随居中偏移，
   否则宽屏下版权框会比正文列靠左一大截（错位）。
   注：230 = 左栏 210 + 正文左内边距 20；(W-1600)/2+230 合并写成 (W-1140)/2，右侧 (W-1560)/2。 */
.tieba-style-body .footer{margin:0 20px 28px 230px;margin-left:max(230px,calc((100% - 1140px)/2));margin-right:max(20px,calc((100% - 1560px)/2));max-width:none;padding:12px 18px;border-radius:12px;background:var(--tieba-style-soft);color:#9aa0ab;font-size:var(--tieba-style-font-13)}
.tieba-style-icon{width:20px;height:20px;flex:0 0 auto;display:block}

/* ---------- 顶栏 ---------- */
/* 顶栏层级要高：移动端列表里的视频 / 浏览器接管的播放器浮层往上滑时不能盖住导航 */
.tieba-style-top{position:sticky;top:0;z-index:900;background:var(--tieba-style-card);border-bottom:1px solid var(--tieba-style-line)}
.tieba-style-top-inner{max-width:1600px;margin:0 auto;padding:0 20px;height:56px;display:flex;align-items:center;gap:14px}
.tieba-style-brand{display:flex;align-items:center;gap:8px;flex:0 0 auto;text-decoration:none}
.tieba-style-mark{width:32px;height:32px;border-radius:10px;background:#3b6ef5;color:#fff;font-size:var(--tieba-style-font-17);font-weight:600;display:flex;align-items:center;justify-content:center;line-height:1}
.tieba-style-brand-text{font-size:var(--tieba-style-font-18);font-weight:600;color:var(--tieba-style-title);white-space:nowrap}
/* 站点 Logo：日间图默认显示，深色界面换成夜间图（缺夜间图时只输出一张，不受影响） */
.tieba-style-brand .tieba-style-logo{display:block;flex:0 0 auto;height:var(--tieba-style-logo-h,32px);width:auto;max-width:220px;object-fit:contain;border-radius:6px}
.tieba-style-brand .tieba-style-logo-night{display:none}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-brand .tieba-style-logo-day{display:none}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-brand .tieba-style-logo-night{display:block}
.tieba-style-search{flex:0 1 340px;min-width:140px;max-width:440px;height:36px;display:flex;align-items:center;gap:8px;padding:0 5px 0 14px;border-radius:999px;background:var(--tieba-style-soft);transition:background .15s}
.tieba-style-search:focus-within{background:var(--tieba-style-card);box-shadow:0 0 0 1px var(--tieba-style-blue) inset}
.tieba-style-search-icon{width:16px;height:16px;color:var(--tieba-style-muted)}
/* 移动端「进搜索页」入口：桌面端不出现（桌面直接用顶栏内联输入框） */
.tieba-style-search-link{display:none}
.tieba-style-chip{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;max-width:130px;padding:2px 9px;border-radius:999px;background:var(--tieba-style-card);color:var(--tieba-style-title);font-size:var(--tieba-style-font-13);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tieba-style-chip a{color:var(--tieba-style-muted);text-decoration:none;font-size:var(--tieba-style-font-14);line-height:1}
.tieba-style-search input[type=search]{flex:1 1 auto;min-width:0;height:34px;border:0;background:none;color:var(--tieba-style-title);font-size:var(--tieba-style-font-14);font-family:inherit}
.tieba-style-search input[type=search]:focus{outline:none}
.tieba-style-post{flex:0 0 auto;margin-left:auto;display:flex;align-items:center;gap:4px;height:36px;padding:0 18px;border:0;border-radius:999px;background:var(--tieba-style-blue);color:#fff;font-size:var(--tieba-style-font-14);font-weight:600;text-decoration:none;cursor:pointer;font-family:inherit;transition:background .15s}
.tieba-style-post:hover{background:var(--tieba-style-blue-dark);color:#fff}
.tieba-style-post .tieba-style-icon{width:16px;height:16px}
.tieba-style-tools{flex:0 0 auto;display:flex;align-items:center;gap:6px}
.tieba-style-tool{position:relative;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:var(--tieba-style-text);text-decoration:none}
.tieba-style-tool .tieba-style-icon{width:20px;height:20px}
/* 顶栏「签到」按钮（NB 签到插件启用时才有）。
   内核 button{background:var(--brand)} 特异度 0,1,1，单类名选择器盖不过它，
   所以这里统一用「父类 + 类名」两级写（含 :hover / :disabled 态）。 */
.tieba-style-top .tieba-style-ckentry{flex:0 0 auto;display:flex;align-items:center;gap:4px;height:36px;padding:0 14px;border:1px solid var(--tieba-style-line);border-radius:999px;background:var(--tieba-style-card);color:var(--tieba-style-text);font-family:inherit;font-size:var(--tieba-style-font-14);font-weight:600;line-height:1;white-space:nowrap;cursor:pointer;transition:color .15s,border-color .15s,background-color .15s}
.tieba-style-top .tieba-style-ckentry:hover{border-color:var(--tieba-style-blue);background:var(--tieba-style-active);color:var(--tieba-style-blue)}
.tieba-style-top .tieba-style-ckentry .tieba-style-icon{width:16px;height:16px}
.tieba-style-top .tieba-style-ckentry.is-done,.tieba-style-top .tieba-style-ckentry.is-done:hover{border-color:var(--tieba-style-line);background:var(--tieba-style-soft);color:var(--tieba-style-muted);cursor:default}
.tieba-style-tool:hover{background:var(--tieba-style-soft);color:var(--tieba-style-title)}
/* 黑夜 / 白日模式切换按钮 */
.tieba-style-theme{border:0;background:transparent;min-height:0;padding:0;cursor:pointer}
.tieba-style-theme .tieba-style-icon{width:20px;height:20px}
.tieba-style-theme-moon{display:none}
.tieba-style-theme.is-dark .tieba-style-theme-sun{display:none}
.tieba-style-theme.is-dark .tieba-style-theme-moon{display:block}
.tieba-style-dot{position:absolute;top:1px;right:0;min-width:15px;height:15px;padding:0 4px;border-radius:8px;background:#f2504b;color:#fff;font-size:var(--tieba-style-font-10);line-height:15px;text-align:center}
.tieba-style-acct{position:relative;flex:0 0 auto;margin-left:6px}
.tieba-style-me{display:block;width:36px;height:36px;padding:0;border:0;border-radius:50%;overflow:hidden;background:var(--tieba-style-soft);cursor:pointer}
.tieba-style-me img{width:100%;height:100%;display:block;object-fit:cover}
/* 顶栏 / 账号菜单 / 卡片里的头像只是装饰图：关掉指针事件，
   否则 UC 等移动浏览器容易把「点头像」当成「点图片」，直接弹大图/幻灯模式。 */
.tieba-style-me img,.tieba-style-menu-avatar img,.tieba-style-card-avatar img,.tieba-style-profile-avatar img,.tieba-style-avatar img,.post-avatar img,.avatar-img{pointer-events:none;-webkit-user-drag:none;user-select:none}
.tieba-style-menu{position:absolute;right:0;top:calc(100% + 10px);width:320px;padding:16px 16px 14px;background:var(--tieba-style-card);border:1px solid var(--tieba-style-line);border-radius:14px;box-shadow:0 16px 40px rgba(15,23,42,.16);display:none;z-index:120}
.tieba-style-menu.is-open{display:block}
/* 卡片头：头像 + 昵称 + 组别·积分 */
.tieba-style-menu-head{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--tieba-style-line)}
.tieba-style-menu-avatar{flex:0 0 auto;width:52px;height:52px;border-radius:50%;overflow:hidden;background:var(--tieba-style-soft)}
.tieba-style-menu-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.tieba-style-menu-id{display:flex;flex-direction:column;gap:3px;min-width:0}
.tieba-style-menu-name{display:flex;align-items:center;gap:8px;min-width:0}
.tieba-style-menu-id b{flex:0 1 auto;min-width:0;color:var(--tieba-style-title);font-size:var(--tieba-style-font-17);font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 用户名后面的 UID 小胶囊（账号卡片里一眼看到自己的 UID） */
.tieba-style-menu-uid{flex:0 0 auto;height:19px;padding:0 8px;border-radius:999px;background:var(--tieba-style-soft);color:var(--tieba-style-muted);font-size:var(--tieba-style-font-11_5);font-style:normal;font-weight:400;line-height:19px;white-space:nowrap}
.tieba-style-menu-id em{color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);font-style:normal}
/* 两列快捷入口 */
.tieba-style-menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px;padding:10px 0}
.tieba-style-menu-item{display:flex;align-items:center;gap:9px;height:40px;padding:0 8px;border-radius:8px;color:var(--tieba-style-title);font-size:var(--tieba-style-font-14_5);font-weight:400;text-decoration:none}
.tieba-style-menu-item .tieba-style-icon{flex:0 0 auto;width:18px;height:18px;color:var(--tieba-style-muted)}
.tieba-style-menu-item:hover{background:var(--tieba-style-soft);color:var(--tieba-style-blue)}
.tieba-style-menu-item:hover .tieba-style-icon{color:var(--tieba-style-blue)}
/* 快捷入口直接取自内核个人卡片的 .user-links：内核锚点（svg.meta-icon 图标）按同一套观感渲染，
   插件往 user.menu_links 加的新入口无需改主题即可自动出现并套用此样式 */
.tieba-style-menu-grid a:not(.tieba-style-menu-item){display:flex;align-items:center;gap:9px;height:40px;padding:0 8px;border-radius:8px;color:var(--tieba-style-title);font-size:var(--tieba-style-font-14_5);font-weight:400;text-decoration:none;overflow:hidden;white-space:nowrap}
.tieba-style-menu-grid a:not(.tieba-style-menu-item) .meta-icon{flex:0 0 auto;width:17px;height:17px;color:var(--tieba-style-muted)}
.tieba-style-menu-grid a:not(.tieba-style-menu-item):hover{background:var(--tieba-style-soft);color:var(--tieba-style-blue)}
.tieba-style-menu-grid a:not(.tieba-style-menu-item):hover .meta-icon{color:var(--tieba-style-blue)}
.tieba-style-menu-grid .notify-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;margin-left:2px;padding:0 5px;border-radius:9px;background:#f2504b;color:#fff;font-size:var(--tieba-style-font-11);font-weight:600;font-style:normal}
/* 底部整宽退出登录 */
.tieba-style-menu-exit{margin:0;padding-top:12px;border-top:1px solid var(--tieba-style-line)}
.tieba-style-menu-exit button{display:block;width:100%;height:42px;border:0;border-radius:10px;background:var(--tieba-style-soft);color:var(--tieba-style-title);font-size:var(--tieba-style-font-15);font-weight:500;font-family:inherit;cursor:pointer}
.tieba-style-menu-exit button:hover{background:#e6eaf2;color:var(--tieba-style-blue)}
.tieba-style-login{flex:0 0 auto;margin-left:6px;color:var(--tieba-style-blue);font-size:var(--tieba-style-font-14);font-weight:600;text-decoration:none;white-space:nowrap}

/* ---------- 发帖弹窗（紧凑面板） ---------- */
.tieba-style-modal{position:fixed;inset:0;z-index:400;display:flex;align-items:center;justify-content:center;padding:24px}
.tieba-style-modal[hidden]{display:none}
.tieba-style-modal-mask{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.tieba-style-modal-panel{position:relative;width:100%;max-width:720px;max-height:88vh;overflow:auto;padding:20px 24px 18px;background:var(--tieba-style-card);border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.2)}
.tieba-style-modal-x{position:absolute;right:12px;top:10px;width:30px;height:30px;min-width:30px;min-height:0;padding:0;border:0;border-radius:8px;background:transparent;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-24);line-height:1;cursor:pointer;font-family:inherit;transition:background .15s ease,color .15s ease}
.tieba-style-modal-x:hover{background:#d0d4da;color:#fff}
.tieba-style-modal-tabs{display:flex;align-items:center;gap:20px;margin-bottom:14px;padding:0 40px 10px 0;border-bottom:1px solid var(--tieba-style-line)}
.tieba-style-modal-tabs span{position:relative;padding:0 0 10px;font-size:var(--tieba-style-font-17);font-weight:600;color:var(--tieba-style-title)}
.tieba-style-modal-tabs span.is-active::after{content:"";position:absolute;left:0;width:24px;bottom:-1px;height:3px;border-radius:2px;background:var(--tieba-style-blue)}
.tieba-style-modal-more{margin-left:auto;display:inline-flex;align-items:center;gap:2px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);text-decoration:none}
.tieba-style-modal-more:hover{color:var(--tieba-style-blue)}
.tieba-style-modal-more .tieba-style-icon.is-arrow{width:14px;height:14px;transform:rotate(-90deg)}
.tieba-style-mrow{display:flex;align-items:center;gap:12px;margin-bottom:12px;font-size:var(--tieba-style-font-14);color:var(--tieba-style-title)}
.tieba-style-mrow.is-inline>span{flex:0 0 auto;white-space:nowrap}
.tieba-style-mlabel{color:var(--tieba-style-text)}
.tieba-style-mhint{color:var(--tieba-style-muted);font-size:var(--tieba-style-font-12)}
.tieba-style-mrow .tieba-style-mselect{flex:0 0 auto;width:220px}
.tieba-style-mselect{position:relative;flex:0 0 220px;max-width:100%;min-width:0;height:38px;border-radius:8px;background:var(--tieba-style-soft)}
.tieba-style-mselect::after{content:"";position:absolute;right:14px;top:50%;width:7px;height:7px;margin-top:-5px;border-right:1.5px solid var(--tieba-style-muted);border-bottom:1.5px solid var(--tieba-style-muted);transform:rotate(45deg);pointer-events:none}
.tieba-style-mselect select{width:100%;height:100%;padding:0 34px 0 14px;border:0;border-radius:8px;background:transparent;color:var(--tieba-style-title);font-size:var(--tieba-style-font-14);font-family:inherit;appearance:none;-webkit-appearance:none;cursor:pointer}
.tieba-style-mselect select:focus{outline:none;box-shadow:0 0 0 1px var(--tieba-style-blue) inset}
.tieba-style-minput{width:100%;height:44px;margin-bottom:12px;padding:0 14px;border:0;border-radius:8px;background:var(--tieba-style-soft);color:var(--tieba-style-title);font-size:var(--tieba-style-font-15);font-family:inherit}
.tieba-style-minput:focus,.tieba-style-mtext:focus{outline:none;box-shadow:0 0 0 1px var(--tieba-style-blue) inset;background:var(--tieba-style-card)}
.tieba-style-minput::placeholder,.tieba-style-mtext::placeholder{color:var(--tieba-style-muted)}
.tieba-style-mfield{position:relative;border:1px solid var(--tieba-style-line);border-radius:8px;background:var(--tieba-style-card);overflow:hidden}
/* 正文框单独一层：附件上传插件的浮动上传按钮以 textarea 父元素定位，包一层后按钮正好在正文框右下角 */
.tieba-style-mtextarea{position:relative}
.tieba-style-mfield:focus-within{border-color:var(--tieba-style-blue);box-shadow:none;background:var(--tieba-style-card)}
.tieba-style-mtext{display:block;width:100%;min-height:168px;max-height:46vh;padding:12px 14px;border:0;border-radius:8px 8px 0 0;background:transparent;color:var(--tieba-style-title);font-size:var(--tieba-style-font-15);line-height:1.7;font-family:inherit;resize:vertical}
.tieba-style-mtext:focus{box-shadow:none;background:transparent}
.tieba-style-mtext.is-drop{box-shadow:0 0 0 2px var(--tieba-style-blue) inset}
/* 附件上传（发帖弹窗）：内核上传区会在正文框右下角浮出上传按钮，这里统一成贴吧风格 */
.tieba-style-modal .attachment-drop-float{right:10px!important;bottom:18px!important;border-radius:8px!important;background:var(--tieba-style-soft)!important;border:1px solid var(--tieba-style-line)!important;color:var(--tieba-style-muted)!important}
.tieba-style-modal .attachment-drop-float:hover{border-color:var(--tieba-style-blue)!important;color:var(--tieba-style-blue)!important}
.tieba-style-modal .attachment-list{margin-top:10px;border-radius:8px;overflow:hidden}
.tieba-style-modal .attachment-item{border-radius:8px}
/* 工具条：表情 / @用户 / #话题 / 图片，全部真实可用（白底 + 灰字，悬停才变蓝） */
.tieba-style-mtools{display:flex;align-items:center;gap:4px;padding:5px 8px;border-top:1px solid var(--tieba-style-line);background:var(--tieba-style-card)}
/* 内核 button{background:var(--brand)} 特异度 (0,1,1)，这里用「父类 + 类名」复位 */
.tieba-style-mtools .tieba-style-mtool{display:inline-flex;align-items:center;gap:5px;height:28px;min-height:0;padding:0 9px;border:0;border-radius:6px;background:transparent;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);font-weight:400;letter-spacing:.3px;font-family:inherit;cursor:pointer}
.tieba-style-mtool .tieba-style-icon{width:16px;height:16px;stroke-width:1.5}
.tieba-style-mtools .tieba-style-mtool:hover{background:var(--tieba-style-soft);color:var(--tieba-style-blue)}
.tieba-style-mspace{flex:1 1 auto;min-width:0}
.tieba-style-mstatus{font-size:var(--tieba-style-font-12);color:var(--tieba-style-muted)}
.tieba-style-mstatus.is-error{color:#d33}
.tieba-style-mpop{position:absolute;z-index:20;border:1px solid var(--tieba-style-line);border-radius:10px;background:var(--tieba-style-card);box-shadow:0 12px 30px rgba(15,23,42,.14)}
.tieba-style-mpop[hidden],.tieba-style-mpop.is-emoji[hidden],.tieba-style-mpop.is-at[hidden]{display:none!important}
.tieba-style-mpop.is-emoji{bottom:40px;left:8px;width:288px;padding:8px;display:flex;flex-wrap:wrap;gap:2px}
.tieba-style-memoji{width:32px;height:32px;border:0;border-radius:6px;background:transparent;font-size:var(--tieba-style-font-19);line-height:1;cursor:pointer}
.tieba-style-memoji:hover{background:var(--tieba-style-soft)}
.tieba-style-mpop.is-at{bottom:40px;left:8px;right:8px;max-height:220px;overflow:auto;padding:4px}
.tieba-style-muser{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border:0;border-radius:6px;background:transparent;color:var(--tieba-style-title);font-size:var(--tieba-style-font-13);text-align:left;cursor:pointer;font-family:inherit}
.tieba-style-muser img{width:24px;height:24px;border-radius:50%;flex:0 0 auto;background:var(--tieba-style-soft)}
.tieba-style-muser b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-muser:hover,.tieba-style-muser.is-on{background:var(--tieba-style-soft);color:var(--tieba-style-blue)}
.tieba-style-mpop-empty{padding:10px 12px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13)}
.tieba-style-mfoot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px}
.tieba-style-mcount{color:var(--tieba-style-muted);font-size:var(--tieba-style-font-12)}
.tieba-style-mpublish{height:38px;min-width:96px;padding:0 24px;border:0;border-radius:999px;background:var(--tieba-style-blue);color:#fff;font-size:var(--tieba-style-font-15);font-weight:600;cursor:pointer;font-family:inherit}
.tieba-style-mpublish:hover{background:var(--tieba-style-blue-dark)}

/* ---------- 回到顶部 ---------- */
.tieba-style-topbtn{position:fixed;left:22px;bottom:26px;z-index:60;width:40px;height:40px;border:1px solid var(--tieba-style-line);border-radius:50%;background:var(--tieba-style-card);color:var(--tieba-style-text);display:none;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.tieba-style-topbtn.is-on{display:flex}
.tieba-style-topbtn svg{transform:rotate(180deg)}

/* ---------- 三栏骨架（全屏铺满，左栏白底带分隔线） ---------- */
.tieba-style-cols{width:100%;max-width:1600px;margin:0 auto;display:grid;grid-template-columns:210px minmax(0,1fr) 340px;align-items:start}
.tieba-style-cols.no-side{grid-template-columns:210px minmax(0,1fr)}
/* 关键：左栏是 position:fixed，脱离文档流后就不再占据网格轨道，
   正文与右栏会被自动排布左移一列（正文被挤进 210px 窄列、右栏占了中间列）——
   必须给它们显式指定列号，固定左栏才不会带偏整行。 */
.tieba-style-cols>.tieba-style-center{grid-column:2}
.tieba-style-cols>.tieba-style-right{grid-column:3}
.tieba-style-body.is-narrow .tieba-style-cols{max-width:1280px;margin:0}
/* 侧栏收缩：左栏留 62px 图标轨道（含展开按钮），右栏收起，正文撑满 */
.tieba-style-body.is-rail .tieba-style-cols,
.tieba-style-body.is-rail .tieba-style-cols.no-side{grid-template-columns:62px minmax(0,1fr)}
.tieba-style-body.is-rail .tieba-style-right{display:none}
.tieba-style-body.is-rail .tieba-style-left{padding:14px 6px 28px}
.tieba-style-body.is-rail .tieba-style-left-nav,.tieba-style-body.is-rail .tieba-style-left-group{margin-bottom:12px}
.tieba-style-body.is-rail .tieba-style-left-group{padding-top:12px;border-top:1px solid var(--tieba-style-line)}
.tieba-style-body.is-rail .tieba-style-left-item,
.tieba-style-body.is-rail .tieba-style-left-forum{justify-content:center;gap:0;padding:0}
.tieba-style-body.is-rail .tieba-style-left-item>span:not(.tieba-style-left-ico),
.tieba-style-body.is-rail .tieba-style-left-forum>span:not(.tieba-style-fdot),
.tieba-style-body.is-rail .tieba-style-left-group>h3{display:none}
.tieba-style-body.is-rail .tieba-style-left-ico{width:34px;height:34px}

/* 非贴吧自绘页面（登录 / 注册 / 通知 / 关注列表 / 搜索结果 等）的统一容器 */
.tieba-style-plain{background:var(--tieba-style-card);border-radius:14px;padding:20px 22px 26px}
.tieba-style-plain>*:first-child{margin-top:0}
.tieba-style-plain>*:last-child{margin-bottom:0}
.tieba-style-plain h1,.tieba-style-plain h2,.tieba-style-plain h3,.tieba-style-plain strong{color:var(--tieba-style-title)}
.tieba-style-plain input[type=text],.tieba-style-plain input[type=password],.tieba-style-plain input[type=email],.tieba-style-plain input[type=search],.tieba-style-plain textarea,.tieba-style-plain select{border-radius:8px}
.tieba-style-plain table{width:100%;border-collapse:collapse}
.tieba-style-plain .card,.tieba-style-plain .panel,.tieba-style-plain .box{border-radius:12px}
/* 内容列建独立层叠上下文：列内任何东西（视频、播放器控件、浮层）都盖不到顶栏 */
.tieba-style-center{position:relative;z-index:0;min-width:0;padding:14px 20px 40px}
.tieba-style-right{min-width:0;display:flex;flex-direction:column;gap:12px;position:sticky;top:56px;padding:14px 20px 40px 0}

/* ---------- 左侧导航 ---------- */
/* 左栏固定（贴吧同款）：不随页面滚动——position:fixed 不受任何祖先 overflow/滚动影响，绝无「跑上去」的可能。
   水平位置 = 居中列容器的左缘：max(0px,calc((100% - 1600px)/2))（与 .tieba-style-cols 的
   max-width:1600 + margin:0 auto 完全同式）；--tieba-style-left-x 是 JS 实测值，存在时优先用实测值。
   注意：fixed 元素脱离网格流、不再占据第 1 列，正文/右栏必须显式 grid-column（见上方三栏骨架）。 */
.tieba-style-left{position:fixed;top:56px;bottom:0;left:var(--tieba-style-left-x,max(0px,calc((100% - 1600px)/2)));width:210px;z-index:30;display:flex;flex-direction:column;padding:14px 12px 18px;border-right:1px solid var(--tieba-style-line);background:var(--tieba-style-card)}
.tieba-style-body.is-rail .tieba-style-left{width:62px;padding:14px 6px 18px}
.tieba-style-left-stick{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(120,130,150,.35) transparent}
.tieba-style-left-stick::-webkit-scrollbar{width:6px}
.tieba-style-left-stick::-webkit-scrollbar-thumb{border-radius:3px;background:rgba(120,130,150,.35)}
.tieba-style-left-stick::-webkit-scrollbar-track{background:transparent}
/* 折叠按钮：骑在右侧分隔线上（与「我的」一行齐平），圆形不变形
   （内核 button{min-height:32px} 会把 28px 高的按钮撑成椭圆，这里用 min-height:0 抵消） */
.tieba-style-left-rail{position:absolute;top:75px;right:-14px;z-index:31;display:flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;min-height:0;padding:0;border:1px solid var(--tieba-style-line);border-radius:50%;background:var(--tieba-style-card);color:var(--tieba-style-muted);cursor:pointer;box-shadow:0 2px 8px rgba(15,23,42,.10)}
.tieba-style-left-rail .tieba-style-icon{width:16px;height:16px}
/* 悬停：内核 button:hover{background:var(--brand)} 特异度 (0,1,1) 会把这个圆形按钮染成品牌色，
   图标又同时变蓝 → 蓝字压在蓝底上看不清。这里用「父类 + 类名」提高到 (0,2,1) 保持白底 + 蓝图标。 */
.tieba-style-left .tieba-style-left-rail:hover{background:var(--tieba-style-card);color:var(--tieba-style-blue);border-color:#b9c8f5;box-shadow:0 4px 14px rgba(59,110,245,.18)}
/* 悬停提示：折叠导航栏 / 展开导航栏 */
.tieba-style-left-rail::before{content:"";position:absolute;left:calc(100% + 4px);top:50%;width:10px;height:10px;margin-top:-5px;border-radius:2px;background:rgba(40,44,52,.92);transform:rotate(45deg);opacity:0;visibility:hidden;transition:opacity .16s ease;pointer-events:none}
.tieba-style-left-rail::after{content:"折叠导航栏";position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%);padding:7px 12px;border-radius:8px;background:rgba(40,44,52,.92);color:#fff;font-size:var(--tieba-style-font-13);line-height:1;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .16s ease;pointer-events:none}
.tieba-style-left-rail:hover::before,.tieba-style-left-rail:hover::after{opacity:1;visibility:visible}
.tieba-style-body.is-rail .tieba-style-left-rail::after{content:"展开导航栏"}
.tieba-style-left-nav{display:flex;flex-direction:column;gap:6px;margin-bottom:22px}
.tieba-style-left-item{display:flex;align-items:center;gap:12px;height:46px;padding:0 30px 0 14px;border-radius:10px;color:var(--tieba-style-title);font-size:var(--tieba-style-font-15);text-decoration:none}
.tieba-style-left-ico{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:30px;height:30px;color:var(--tieba-style-title)}
.tieba-style-left-ico .tieba-style-icon{width:20px;height:20px}
.tieba-style-left-item:hover{background:var(--tieba-style-soft)}
.tieba-style-left-item:hover .tieba-style-left-ico{color:var(--tieba-style-text)}
/* 当前位置：淡蓝底 + 黑色文字与实心图标（同参考图） */
.tieba-style-left-item.is-active{background:var(--tieba-style-active);color:var(--tieba-style-title);font-weight:600}
.tieba-style-left-item.is-active .tieba-style-left-ico{color:var(--tieba-style-title)}
/* 分组之间加一条灰色分隔线（同贴吧：导航分区之间有细线） */
.tieba-style-left-group{margin-bottom:18px;padding-top:14px;border-top:1px solid var(--tieba-style-line)}
.tieba-style-left-group h3{margin:0 0 6px;padding:0 14px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);font-weight:400}
.tieba-style-left-forum{display:flex;align-items:center;gap:10px;height:42px;padding:0 30px 0 14px;border-radius:10px;color:var(--tieba-style-text);font-size:var(--tieba-style-font-14);text-decoration:none}
.tieba-style-left-forum span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-left-forum:hover{background:var(--tieba-style-soft)}
.tieba-style-left-forum.is-active{background:var(--tieba-style-soft);font-weight:600}
/* 左侧栏话题标签云：固定两列网格，每行恒 2 个；长标签（is-sm）自动降字号，行与行数量一致 */
.tieba-style-tagcloud{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;padding:2px 12px 4px}
.tieba-style-tagchip{display:flex;align-items:center;justify-content:center;min-width:0;padding:4px 6px;border:1px solid var(--tieba-style-line);border-radius:8px;background:var(--tieba-style-card);font-size:var(--tieba-style-font-12);line-height:1.5;color:var(--tieba-style-text);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:border-color .15s ease,color .15s ease,background .15s ease}
.tieba-style-tagchip.is-sm{font-size:var(--tieba-style-font-10_5);padding:4px 4px}
.tieba-style-tagchip:hover{border-color:var(--tieba-style-blue);color:var(--tieba-style-blue);background:var(--tieba-style-active)}
/* 「更多标签」：复用右侧 tieba-style-more（灰底蓝字全宽胶囊），在网格里占满整行 */
.tieba-style-tagmore{grid-column:1/-1;margin-top:6px}
/* 标签选择弹窗：盖在发帖弹窗之上，窄面板居中（移动端沿用 modal 的底部抽屉样式） */
.tieba-style-modal.is-tags{z-index:410}
.tieba-style-modal-panel.is-tags{max-width:480px}
.tieba-style-tagsfield{display:block;margin-top:14px}
.tieba-style-tagsfield .topic-tags-input-row{display:flex;gap:8px;align-items:center}
.tieba-style-tagsfield .topic-tags-input-row input{flex:1;min-width:0}
.tieba-style-tagsfield .topic-tags-picker{margin-top:10px}
.tieba-style-fdot{flex:0 0 auto;width:26px;height:26px;border-radius:9px;border:1px solid rgba(15,23,42,.12);color:#fff;font-size:var(--tieba-style-font-12);font-weight:600;display:flex;align-items:center;justify-content:center;line-height:1;overflow:hidden}
.tieba-style-fdot.is-sm{width:22px;height:22px;font-size:var(--tieba-style-font-11);border-radius:7px}
.tieba-style-fdot.is-img{color:transparent;border-color:var(--tieba-style-line)}
.tieba-style-fdot.is-img img{width:100%;height:100%;display:block;object-fit:cover}
.tieba-style-fdot.is-lg{width:48px;height:48px;font-size:var(--tieba-style-font-16);border-radius:14px}
.tieba-style-fdot.is-lg.is-img{border-radius:14px}
.tieba-style-fdot.is-hero{width:46px;height:46px;font-size:var(--tieba-style-font-17);border-radius:12px;border-color:rgba(255,255,255,.55)}
.tieba-style-fdot.is-hero.is-img{border-radius:12px}

/* ---------- 吧页大图 ---------- */
.tieba-style-hero{position:relative;min-height:78px;border-radius:12px;overflow:hidden;background-size:cover;background-position:center;display:flex;align-items:center;margin-bottom:12px}
.tieba-style-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.26))}
.tieba-style-hero-dawn{background-image:linear-gradient(135deg,#f6a86b,#e8734f 45%,#5b6bb5)}
.tieba-style-hero-ocean{background-image:linear-gradient(135deg,#4f8ef7,#2a5fd0 55%,#16357a)}
.tieba-style-hero-forest{background-image:linear-gradient(135deg,#78c98f,#3f9e78 50%,#1f5f52)}
.tieba-style-hero-violet{background-image:linear-gradient(135deg,#a98bf5,#6f52d8 55%,#38266f)}
.tieba-style-hero-graphite{background-image:linear-gradient(135deg,#6d7481,#41464f 55%,#22252b)}
.tieba-style-hero-body{position:relative;z-index:2;width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px}
.tieba-style-hero-main{display:flex;align-items:center;gap:12px;min-width:0}
.tieba-style-hero-text{min-width:0;color:#fff}
.tieba-style-hero-text h1{margin:0;font-size:var(--tieba-style-font-18);font-weight:600;line-height:1.3;text-shadow:0 1px 5px rgba(0,0,0,.3);word-break:break-word}
.tieba-style-hero-text p{margin:3px 0 0;font-size:var(--tieba-style-font-12_5);color:rgba(255,255,255,.88);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-hero-ops{flex:0 0 auto;display:flex;align-items:center;gap:8px}
.tieba-style-hero-desc{max-width:520px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-hero-btn{flex:0 0 auto;display:flex;align-items:center;gap:4px;height:34px;padding:0 18px;border-radius:999px;background:rgba(255,255,255,.94);color:var(--tieba-style-title);font-size:var(--tieba-style-font-13_5);font-weight:500;text-decoration:none}
.tieba-style-hero-btn:hover{background:#fff;color:var(--tieba-style-blue)}
.tieba-style-hero-btn .tieba-style-icon{width:16px;height:16px}

/* ---------- 列表工具条：排序胶囊（新评论 / 新帖子）+ 大图 / 小图切换 ---------- */
.tieba-style-listbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:8px 12px;background:var(--tieba-style-card);border-radius:12px}
.tieba-style-sortseg{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:999px;background:var(--tieba-style-soft)}
.tieba-style-sortseg-btn{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 16px;border-radius:999px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);font-weight:500;text-decoration:none;white-space:nowrap}
.tieba-style-sortseg-btn:hover{color:var(--tieba-style-blue)}
.tieba-style-sortseg-btn.is-active{background:var(--tieba-style-blue);color:#fff;font-weight:600}
.tieba-style-viewseg{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:999px;background:var(--tieba-style-soft)}
/* 内核 button{background:var(--brand)} 特异度 (0,1,1) 会盖住单类名，这里用「父类 + 类名」提高特异度复位 */
.tieba-style-viewseg .tieba-style-viewseg-btn{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);font-family:inherit;cursor:pointer;white-space:nowrap}
.tieba-style-viewseg .tieba-style-viewseg-btn:hover{background:var(--tieba-style-card);color:var(--tieba-style-blue)}
.tieba-style-viewseg .tieba-style-viewseg-btn.is-active{background:var(--tieba-style-card);color:var(--tieba-style-blue);font-weight:600;box-shadow:0 1px 3px rgba(15,23,42,.1)}

/* ---------- 吧页帖子行 ---------- */
.tieba-style-feed{background:var(--tieba-style-card);border-radius:0 0 14px 14px;padding:0 20px 6px}
.tieba-style-feed.tieba-style-feed-home{background:none;border-radius:0;padding:0;display:flex;flex-direction:column;gap:12px}
/* 首页小图模式：整列换成与板块页一致的帖子行（白底块 + 分隔线）；大图模式仍是卡片流 */
.tieba-style-feed-home .tieba-style-feed-cards{display:flex;flex-direction:column;gap:12px}
.tieba-style-feed-home .tieba-style-feed-rows{display:none}
.tieba-style-feed-home[data-tieba-style-viewmode="row"] .tieba-style-feed-cards{display:none}
.tieba-style-feed-home[data-tieba-style-viewmode="row"] .tieba-style-feed-rows{display:block;background:var(--tieba-style-card);border-radius:14px;padding:0 20px 6px}
/* 首屏就按用户记住的模式显示：列表渲染前的那段内联脚本会先把这个值写到 <html> 上 */
html[data-tieba-style-view-init="row"] .tieba-style-feed-home>.tieba-style-feed-cards{display:none}
html[data-tieba-style-view-init="row"] .tieba-style-feed-home>.tieba-style-feed-rows{display:block;background:var(--tieba-style-card);border-radius:14px;padding:0 20px 6px}
/* 帖子行：三块 = 文字 / 缩略图 / 操作条。小图模式「文字+操作条」在左、缩略图在右侧跨两行；
   板块页「大图」模式（[data-tieba-style-viewmode="grid"]）改成竖排：文字 → 图片 → 操作条，分享栏整块落在图片下面。 */
.tieba-style-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"main thumbs" "ops thumbs";align-items:start;column-gap:14px;padding:16px 0;border-bottom:1px solid var(--tieba-style-line)}
.tieba-style-row.is-nothumb{grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "ops"}
.tieba-style-row:last-child{border-bottom:0}
.tieba-style-row-main{grid-area:main;min-width:0}
.tieba-style-row>.tieba-style-thumbs{grid-area:thumbs;align-self:start;justify-self:end;min-width:84px;max-width:46%}
.tieba-style-row>.tieba-style-row-ops{grid-area:ops;margin-top:10px}
.tieba-style-row-head{display:flex;align-items:center;gap:10px}
.tieba-style-avatar{flex:0 0 auto;width:36px;height:36px;border-radius:50%;overflow:hidden;background:var(--tieba-style-soft);display:flex;align-items:center;justify-content:center;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);text-decoration:none}
.tieba-style-avatar img{width:100%;height:100%;object-fit:cover;display:block}
/* 作者信息两排：上一排 用户名 / VIP / 用户组 / 勋章，下一排 版块名 / 时间 */
.tieba-style-row-who{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1 1 auto}
.tieba-style-row-line,.tieba-style-card-line{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap;line-height:1.3}
.tieba-style-row-sub,.tieba-style-card-sub{display:flex;align-items:center;gap:10px;min-width:0;font-size:var(--tieba-style-font-12_5);color:var(--tieba-style-muted);flex-wrap:wrap}
.tieba-style-row-forum,.tieba-style-card-forum{color:var(--tieba-style-muted);font-size:var(--tieba-style-font-12_5);text-decoration:none;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-row-forum:hover,.tieba-style-card-forum:hover{color:var(--tieba-style-blue)}
.tieba-style-card-who{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 auto}
/* 勋章墙：由 tieba_style.author_medals 钩子输出，图片按行高自动缩放 */
.tieba-style-medals{display:inline-flex;align-items:center;gap:4px;flex:0 1 auto;min-width:0;overflow:hidden}
.tieba-style-medals img{display:block;height:20px;min-width:14px;width:auto;max-width:96px;object-fit:contain}
.tieba-style-medals>span,.tieba-style-medals>i,.tieba-style-medals>a{display:inline-flex;align-items:center;flex:0 0 auto;text-decoration:none}
/* VIP 标志位（用户名之后、用户组之前）；样式自带兜底，vip 插件的 CSS 万一没加载也不会变形 */
.tieba-style-vipmark{display:inline-flex;align-items:center;flex:0 0 auto;line-height:1;font-size:0}
.tieba-style-vipmark .vip-badge{display:inline-flex;align-items:center;gap:3px;margin:0;padding:1px 8px;border-radius:999px;background:#d96a2b;color:#fff;font-size:var(--tieba-style-font-11);font-weight:700;line-height:16px;white-space:nowrap}
.tieba-style-vipmark .vip-badge svg,.tieba-style-vipmark .vip-crown{width:13px;height:13px;flex:0 0 auto}
/* UID 一律不显示：user_uid_badge / plain_uid 等插件注入的徽标 */
.tieba-style-body .user-uid-badge,.tieba-style-body .post-user-group.user-uid-badge{display:none!important}
.tieba-style-row-name{color:var(--tieba-style-title);font-size:var(--tieba-style-font-14);font-weight:600;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-row-when{color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13)}
/* 帖子行标题行：标题 + 页码 + 插件后缀（只读…）同行流式排布，后缀紧跟标题最后一个字 */
.tieba-style-row-title{margin:8px 0 0;font-size:var(--tieba-style-font-16);line-height:1.6;font-weight:400;color:var(--tieba-style-title);word-break:break-word}
.tieba-style-row-suffix{display:inline;margin-left:2px;max-width:100%;font-size:var(--tieba-style-font-13);line-height:1}
.tieba-style-row-suffix>*{display:inline-flex !important;align-items:center;vertical-align:middle;position:relative;top:-2px;width:auto !important;max-width:100%}
/* 徽章自身左右有内边距，这里控制它与标题末字的额外间距（不能用负值，会压到标题文字上） */
.tieba-style-row-suffix>*:first-child{margin-left:0 !important}
.tieba-style-row-title>a{color:var(--tieba-style-title);text-decoration:none}
.tieba-style-row-title>a:hover{color:var(--tieba-style-link)}
.tieba-style-row-ops{display:flex;align-items:center;gap:44px;margin-top:10px}
.tieba-style-op{display:inline-flex;align-items:center;gap:8px;color:var(--tieba-style-text);font-size:var(--tieba-style-font-14);font-weight:400;text-decoration:none;background:none;border:0;padding:0;font-family:inherit;cursor:pointer}
.tieba-style-op .tieba-style-icon{width:19px;height:19px}
.tieba-style-op:hover{color:var(--tieba-style-blue)}
.tieba-style-rowpick{display:inline-flex;align-items:center;gap:4px;margin-right:6px;vertical-align:middle}
.tieba-style-tag{display:inline-block;margin-right:6px;padding:1px 6px;border-radius:4px;background:#eef2ff;color:var(--tieba-style-blue);font-size:var(--tieba-style-font-12);font-weight:600;vertical-align:middle}
.tieba-style-tag.is-pin{background:#fdecea;color:#e0504b}
/* 标题前的帖子类型标签：视频 / 图文 / 文字 / 综合（细边框小胶囊，白底蓝字，不用实心底色） */
.tieba-style-kind{display:inline-block;margin-right:6px;padding:0 6px;height:20px;line-height:18px;border:1px solid rgba(45,108,223,.38);border-radius:5px;background:transparent;color:var(--tieba-style-blue);font-size:var(--tieba-style-font-12);font-weight:400;vertical-align:1px;white-space:nowrap}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-kind{border-color:rgba(107,159,255,.42);color:#8db4ff}

/* ---------- 首页卡片流 ---------- */
.tieba-style-card{background:var(--tieba-style-card);border-radius:14px;padding:20px}
.tieba-style-card-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tieba-style-card-forum{display:inline-flex;align-items:center;gap:6px;color:var(--tieba-style-text);font-size:var(--tieba-style-font-14);font-weight:600;text-decoration:none}
.tieba-style-card-forum span{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-card-forum:hover{color:var(--tieba-style-blue)}
/* 卡片头：作者头像 + 用户名 + 管理组，右侧关注按钮 */
.tieba-style-card-user{display:inline-flex;align-items:center;gap:8px;min-width:0;color:var(--tieba-style-title);text-decoration:none}
.tieba-style-card-avatar{flex:0 0 auto;width:28px;height:28px;border-radius:50%;overflow:hidden;background:var(--tieba-style-soft)}
.tieba-style-card-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.tieba-style-card-name{font-size:var(--tieba-style-font-14);font-weight:500;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-card-user:hover .tieba-style-card-name{color:var(--tieba-style-blue)}
/* 用户组胶囊：管理组（版主/管理员等）黑色渐变白字，普通组（含会员）蓝色浅底 */
.tieba-style-group{flex:0 0 auto;font-style:normal;font-weight:600;margin-left:1px;padding:2px 5px;font-size:var(--tieba-style-font-11_5);line-height:15px;vertical-align:1px;border-radius:999px;background:#e8f0fe;color:#2f6fe4;white-space:nowrap}
.tieba-style-group.is-staff{background:linear-gradient(135deg,#454b57,#14161b);color:#fff;box-shadow:0 2px 6px -2px rgb(15 23 42/.45)}
.tieba-style-group.is-member{background:#e8f0fe;color:#2f6fe4}
/* 贴内楼层的用户组（内核 post-user-group）：同一套胶囊，排除通知类型标签 */
.tieba-style-body .post-user-group:not(.notification-kind){display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border-radius:999px;font-size:var(--tieba-style-font-12);font-weight:600;line-height:17px;background:#e8f0fe;color:#2f6fe4;text-decoration:none;white-space:nowrap}
.tieba-style-body .post-user-group:not(.notification-kind) .post-user-group-icon{display:none}
.tieba-style-body .post-user-group.is-staff{background:linear-gradient(135deg,#454b57,#14161b);color:#fff;box-shadow:0 2px 6px -2px rgb(15 23 42/.45)}
.tieba-style-body .post-user-group.is-member{background:#e8f0fe;color:#2f6fe4}
.tieba-style-body .post-info .tieba-style-group{margin-left:1px;padding:2px 5px;font-size:var(--tieba-style-font-11_5);line-height:15px;vertical-align:1px}
.tieba-style-card-forum-mini{font-size:var(--tieba-style-font-12_5);color:var(--tieba-style-muted);text-decoration:none;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-card-forum-mini:hover{color:var(--tieba-style-blue)}
.tieba-style-vbadge{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;background:var(--tieba-style-blue);color:#fff;font-style:normal}
.tieba-style-vbadge svg{width:9px;height:9px;stroke-width:3.4}
.tieba-style-card-cnt{color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13)}
.tieba-style-card-pick{margin-left:auto}
/* 标题行：标题是行内元素，插件注入的后缀标签（只读 / 精华…）紧跟在标题最后一个字后面；
   放不下时随文字一起换行，始终贴着最后一个字，不会被顶到行尾或掉到标题下方独占一行。 */
.tieba-style-card-headline{margin:10px 0 0}
.tieba-style-card-title{display:inline;margin:0;font-size:var(--tieba-style-font-17);line-height:1.55;font-weight:400;color:var(--tieba-style-title);text-decoration:none;word-break:break-word}
/* 标题后的插件标签（只读 / 精华…）：外层用 inline 而不是 inline-flex。
   inline-flex 是个「不可拆分」的原子盒，浏览器算行宽时按它的 max-content 算，
   一旦插件徽章里带了 width:100% 之类的样式，盒子宽度就会撑得很大，
   即使右边还空着也会被挤到下一行。改成 inline 后，标签直接参与行内文字流，
   永远紧跟在标题最后一个字后面。 */
.tieba-style-card-suffix{display:inline;margin-left:2px;max-width:100%;font-size:var(--tieba-style-font-13);line-height:1}
/* 关键：强制把插件徽章变成行内内容宽（有些徽章是块级标签或带 width:100%，会把整行撑满导致换行），
   并整体上移 2px，让徽章与标题字形看起来在同一水平中线上。 */
.tieba-style-card-suffix>*{display:inline-flex !important;align-items:center;vertical-align:middle;position:relative;top:-2px;width:auto !important;max-width:100%}
/* 徽章自身左右有内边距，这里控制它与标题末字的额外间距。
   注意不能用负值：徽章自身内边距较小时，负偏移会让边框压到标题文字上（看起来叠字）。 */
.tieba-style-card-suffix>*:first-child{margin-left:0 !important}
.tieba-style-card-title:hover{color:var(--tieba-style-link)}
.tieba-style-card-meta{margin-top:8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:var(--tieba-style-font-13);color:var(--tieba-style-muted)}
.tieba-style-card-meta a{color:var(--tieba-style-muted);text-decoration:none}
.tieba-style-card-meta .topic-pages{display:inline-flex;align-items:center;gap:3px}
.tieba-style-card-text{margin:8px 0 0;color:var(--tieba-style-text);font-size:var(--tieba-style-font-15);line-height:1.75;word-break:break-word}
/* 摘要也做成链接：标题、置顶标签、摘要整块都能点进帖子 */
a.tieba-style-card-text{display:block;color:var(--tieba-style-text);text-decoration:none}
a.tieba-style-card-text:hover{color:var(--tieba-style-link)}
.tieba-style-card-img{display:block;width:240px;max-width:100%;height:165px;margin-top:12px;border-radius:10px;overflow:hidden;background:var(--tieba-style-soft)}
.tieba-style-card-img img{display:block;width:100%;height:100%;object-fit:cover}
.tieba-style-card-ops{display:flex;align-items:center;gap:56px;margin-top:14px}
/* 版块名放在卡片右下角：靠右、淡色小胶囊，与分享/评论/浏览同一排 */
.tieba-style-card-ops>.tieba-style-card-forum{margin-left:auto;height:20px;padding:0 9px;border-radius:999px;background:var(--tieba-style-soft);color:var(--tieba-style-muted);font-size:var(--tieba-style-font-12);font-weight:400;line-height:20px;text-decoration:none;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-card-ops>.tieba-style-card-forum:hover{color:var(--tieba-style-blue)}

/* ---------- 列表缩略图：首页卡片与吧页帖子行共用 ----------
   布局由外层容器的 data-tieba-style-viewmode 决定：
   grid = 大图（图片与「进入看图模式」入口格一起均分整行）
   row  = 小图（紧凑小方图横排，入口格只留图标 + 数量） */
.tieba-style-thumbs{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap;min-width:0}
.tieba-style-thumbcell{position:relative;display:block;width:112px;height:80px;border-radius:8px;overflow:hidden;background:var(--tieba-style-soft);text-decoration:none}
.tieba-style-thumbcell img{display:block;width:100%;height:100%;object-fit:cover}
/* 大图模式：图片与入口格一起均分整行（auto-fit 放不下时自动换行） */
[data-tieba-style-viewmode="grid"] .tieba-style-thumbs.is-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px}
[data-tieba-style-viewmode="grid"] .tieba-style-thumbs.is-list .tieba-style-thumbcell{width:auto;max-width:none;height:auto;aspect-ratio:4/3;border-radius:8px}
[data-tieba-style-viewmode="grid"] .tieba-style-thumbs.is-list.is-single{grid-template-columns:minmax(0,240px)}
[data-tieba-style-viewmode="grid"] .tieba-style-thumbs.is-list.is-single .tieba-style-thumbcell{width:100%;height:auto;aspect-ratio:4/3}
/* 吧页帖子行：大图模式下改成竖排 —— 文字 → 整行缩略图 → 操作条（分享栏在图片下面） */
[data-tieba-style-viewmode="grid"] .tieba-style-row{display:flex;flex-wrap:wrap;column-gap:0}
[data-tieba-style-viewmode="grid"] .tieba-style-row>.tieba-style-row-main{flex:1 0 100%}
[data-tieba-style-viewmode="grid"] .tieba-style-row>.tieba-style-thumbs{order:2;width:100%;margin-top:2px;justify-self:auto}
[data-tieba-style-viewmode="grid"] .tieba-style-row>.tieba-style-row-ops{order:3;width:100%;margin-top:10px}
/* ---------- 列表里的视频：视频卡片组（每视频一张卡），整卡进内页播放 ----------
   封面帧只展示不播放；真正的播放发生在帖子内页 */
.tieba-style-vcards{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;min-width:0}
.tieba-style-vcard{display:block;margin:0;flex:0 0 auto;text-decoration:none;color:inherit;cursor:pointer}
/* 媒体区尺寸与图片缩略图（.tieba-style-thumbcell 112×80 圆角 8）完全一致 */
.tieba-style-vcard .tieba-style-vcard-media{position:relative;display:block;width:112px;height:80px;overflow:hidden;border-radius:8px;background:#000}
.tieba-style-vcard .tieba-style-vcard-cover{pointer-events:none}
.tieba-style-vcard .tieba-style-vcard-tag{position:absolute;top:5px;left:5px;z-index:2;padding:1px 6px;border-radius:999px;background:#ffd83d;color:#7a5200;font-size:var(--tieba-style-font-10_5);font-weight:600;line-height:1.5}
.tieba-style-vcard .tieba-style-vcard-dur{position:absolute;top:5px;right:5px;z-index:2;padding:1px 5px;border-radius:4px;background:rgba(0,0,0,.55);color:#fff;font-size:var(--tieba-style-font-10_5);font-weight:500;line-height:1.5;font-variant-numeric:tabular-nums}
/* 播放按钮：蓝色渐变圆 + 外圈光晕 + 脉冲扩散环，hover 放大发光（更醒目炫酷） */
.tieba-style-vcard .tieba-style-vcard-play{position:absolute;top:50%;left:50%;z-index:2;width:42px;height:42px;margin:-21px 0 0 -21px;border-radius:50%;background:linear-gradient(135deg,#3f8cff,#1467d2);box-shadow:0 0 0 6px rgba(20,103,210,.22),0 4px 16px rgba(15,23,42,.35);transition:transform .2s ease,box-shadow .2s ease}
.tieba-style-vcard .tieba-style-vcard-play::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-32%,-50%);border-left:14px solid #fff;border-top:9px solid transparent;border-bottom:9px solid transparent;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}
.tieba-style-vcard .tieba-style-vcard-play::before{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid rgba(255,255,255,.55);opacity:0;animation:tieba-style-vcard-pulse 2.4s ease-out infinite}
@keyframes tieba-style-vcard-pulse{0%{transform:scale(.9);opacity:.6}70%{opacity:0}100%{transform:scale(1.7);opacity:0}}
.tieba-style-vcard:hover .tieba-style-vcard-play{transform:scale(1.12);box-shadow:0 0 0 9px rgba(20,103,210,.3),0 6px 24px rgba(15,23,42,.45)}
.tieba-style-vcard-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.tieba-style-vcard-sub{min-width:0;font-size:var(--tieba-style-font-12_5);color:var(--tieba-style-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-vcard-btn{flex:0 0 auto;padding:5px 14px;border:1px solid #1467d2;border-radius:999px;background:#fff;color:#1467d2;font-size:var(--tieba-style-font-12_5);font-weight:600;text-decoration:none;transition:background .18s ease,color .18s ease}
.tieba-style-vcard-btn:hover{background:#1467d2;color:#fff}
/* 尺寸完全跟随图片缩略图的三种模式：
   大图（viewmode=grid）＝网格均分、4:3；小图（viewmode=row）＝52×52 紧凑格并排 */
[data-tieba-style-viewmode="grid"] .tieba-style-vcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;margin-top:10px}
/* 单视频与图片单图同规格：一列 240px、4:3，不再撑满整行 */
[data-tieba-style-viewmode="grid"] .tieba-style-vcards.is-single{grid-template-columns:minmax(0,240px)}
[data-tieba-style-viewmode="grid"] .tieba-style-vcards .tieba-style-vcard{width:auto;max-width:none;flex:none}
[data-tieba-style-viewmode="grid"] .tieba-style-vcards .tieba-style-vcard-media{width:100%;max-width:none;height:auto;aspect-ratio:4/3}
[data-tieba-style-viewmode="grid"] .tieba-style-vcards .tieba-style-vcard-play{width:40px;height:40px;margin:-20px 0 0 -20px}
[data-tieba-style-viewmode="grid"] .tieba-style-vcards .tieba-style-vcard-play::after{border-left:13px solid #fff;border-top:8.5px solid transparent;border-bottom:8.5px solid transparent}
[data-tieba-style-viewmode="grid"] .tieba-style-vcards.is-single .tieba-style-vcard-play{width:58px;height:58px;margin:-29px 0 0 -29px}
[data-tieba-style-viewmode="grid"] .tieba-style-vcards.is-single .tieba-style-vcard-play::after{border-left:19px solid #fff;border-top:12px solid transparent;border-bottom:12px solid transparent}
[data-tieba-style-viewmode="row"] .tieba-style-vcards{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
[data-tieba-style-viewmode="row"] .tieba-style-vcards .tieba-style-vcard{margin:0}
[data-tieba-style-viewmode="row"] .tieba-style-vcards .tieba-style-vcard-media{width:52px;height:52px;border-radius:6px}
[data-tieba-style-viewmode="row"] .tieba-style-vcards .tieba-style-vcard-tag,[data-tieba-style-viewmode="row"] .tieba-style-vcards .tieba-style-vcard-dur{display:none}
[data-tieba-style-viewmode="row"] .tieba-style-vcards .tieba-style-vcard-play{width:24px;height:24px;margin:-12px 0 0 -12px}
[data-tieba-style-viewmode="row"] .tieba-style-vcards .tieba-style-vcard-play::after{border-left:7px solid #fff;border-top:4.5px solid transparent;border-bottom:4.5px solid transparent}
[data-tieba-style-viewmode="row"] .tieba-style-vcards .tieba-style-vcard-play::before{display:none}
/* 旧结构类占位（当前模板已不输出） */
.tieba-style-videos{display:block;margin-top:10px;min-width:0}
.tieba-style-video{display:block;width:100%;max-width:360px;max-height:min(56vh,360px);aspect-ratio:16/9;border-radius:10px;background:#000;object-fit:contain}
/* 小图模式：整行竖排，缩略图移到标题下面（不再在右侧），摘要不显示，缩略图缩小 */
[data-tieba-style-viewmode="row"] .tieba-style-row{display:block}
[data-tieba-style-viewmode="row"] .tieba-style-row-summary,
[data-tieba-style-viewmode="row"] .tieba-style-card-text{display:none}
[data-tieba-style-viewmode="row"] .tieba-style-row>.tieba-style-thumbs{grid-area:auto;align-self:auto;justify-self:start;width:auto;max-width:100%;margin:8px 0 0}
[data-tieba-style-viewmode="row"] .tieba-style-thumbs.is-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
[data-tieba-style-viewmode="row"] .tieba-style-thumbs.is-list .tieba-style-thumbcell{width:52px;height:52px;border-radius:6px;flex:0 0 52px}
[data-tieba-style-viewmode="row"] .tieba-style-thumbs.is-list .tieba-style-thumbcell.is-more{width:52px;height:52px}
[data-tieba-style-viewmode="row"] .tieba-style-thumbs.is-list.is-row{margin-top:2px}
/* 「进入看图模式」入口格：蓝色图标 + 文字（字与图标都放大） */
.tieba-style-thumbcell.is-more{background:var(--tieba-style-soft);border:1px solid var(--tieba-style-line)}
.tieba-style-thumbcell.is-more:hover{background:var(--tieba-style-active);border-color:var(--tieba-style-blue)}
.tieba-style-thumbmore{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:6px;color:var(--tieba-style-blue);font-size:var(--tieba-style-font-13);line-height:1.3;text-align:center}
.tieba-style-thumbmore .tieba-style-icon{width:30px;height:30px;color:var(--tieba-style-blue);stroke-width:1.5}
.tieba-style-thumbmore-tx{display:flex;flex-direction:column;align-items:center;gap:2px}
.tieba-style-thumbmore-tx b{font-weight:600;font-size:var(--tieba-style-font-14);color:var(--tieba-style-blue);white-space:nowrap}
.tieba-style-thumbmore-tx i{font-style:normal;font-size:var(--tieba-style-font-12);color:var(--tieba-style-muted)}
/* 小图模式下入口格只显示图标 + 数量 */
[data-tieba-style-viewmode="row"] .tieba-style-thumbmore{gap:1px}
[data-tieba-style-viewmode="row"] .tieba-style-thumbmore .tieba-style-icon{width:20px;height:20px}
[data-tieba-style-viewmode="row"] .tieba-style-thumbmore-tx b{display:none}
[data-tieba-style-viewmode="row"] .tieba-style-thumbmore-tx i{font-size:var(--tieba-style-font-12);font-weight:600;color:var(--tieba-style-blue)}

/* ---------- 空态 / 分页 ---------- */
.tieba-style-empty{padding:40px 16px;text-align:center;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-14);background:var(--tieba-style-card);border-radius:14px}

/* ---------- 贴内图片条：一屏两张，超过 3 张末尾给灰色箭头进图集内页 ---------- */
/* 贴内图片条：两列瀑布流。默认是普通两列网格（禁用 JS 也能看），
   JS 加上 .is-masonry 后改成绝对定位，两列各自独立，长图下方的空位由后面的图补满。 */
.tieba-style-imgstrip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start;margin:10px 0 2px;--tieba-style-masonry-gap:8px;--tieba-style-masonry-cols:2}
.tieba-style-imgstrip.is-masonry{position:relative;display:block;height:0}
.tieba-style-imgstrip.is-masonry>.tieba-style-imgcell{position:absolute;top:0;left:0}
.tieba-style-imgcell{display:block;border-radius:10px;overflow:hidden;background:var(--tieba-style-soft);text-decoration:none}
.tieba-style-imgcell img{display:block;width:100%;height:auto;aspect-ratio:auto}
/* 内核给加载中的图加 is-loading-img（aspect-ratio:4/3 占位），进了图片条必须恢复原始比例，否则瀑布流按比例算的高度和实际渲染高度对不上，会留空位 */
.tieba-style-imgcell img.is-loading-img{aspect-ratio:auto;background:none;object-fit:fill}
.tieba-style-replies .post-content .tieba-style-imgcell img.is-loading-img{aspect-ratio:auto;background:none;object-fit:fill}
.tieba-style-imgcell.is-more{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:120px;background:linear-gradient(135deg,#f8fafd,#eef2f9);border:1px solid #e4eaf6;color:var(--tieba-style-blue);font-size:var(--tieba-style-font-13);font-weight:600}
.tieba-style-imgcell.is-more:hover{background:linear-gradient(135deg,#eef4fd,#e6eefc);border-color:#ccdaf4}
.tieba-style-imgcell.is-more .tieba-style-icon{width:28px;height:28px;stroke-width:1.5}
.tieba-style-imgcell.is-more span{letter-spacing:.3px}

/* ---------- 正文底部操作条：分享 / 评论 / 点赞 / 收藏 / 更多 ---------- */
.tieba-style-postbar{display:flex;align-items:center;justify-content:space-between;gap:0;width:100%;margin-top:16px;padding-top:12px;border-top:1px solid var(--tieba-style-line)}
.tieba-style-pb{display:inline-flex;align-items:center;gap:6px;padding:0 2px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-14);text-decoration:none;background:none;border:0;font-family:inherit;cursor:pointer}
.tieba-style-pb:hover{color:var(--tieba-style-blue)}
.tieba-style-pb .tieba-style-icon{width:19px;height:19px}
.tieba-style-pb-num{font-size:var(--tieba-style-font-14);line-height:1}
.tieba-style-postbar .post-action-form{display:inline-flex;align-items:center;margin:0}
.tieba-style-postbar .like-coin-label{display:none}
.tieba-style-postbar .like-coin-action,.tieba-style-postbar .fav-btn{display:inline-flex;align-items:center;gap:6px;padding:0 2px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-14);background:none;border:0;font-family:inherit;cursor:pointer}
.tieba-style-postbar .like-coin-action:hover,.tieba-style-postbar .fav-btn:hover{color:var(--tieba-style-blue)}
.tieba-style-postbar .like-coin-icon{width:19px;height:19px}
.tieba-style-postbar .fav-btn.active{color:#f0a13c}
.tieba-style-postbar .fav-btn.active .tieba-style-icon{fill:currentColor}
.tieba-style-pb-more{margin-left:auto;display:inline-flex;align-items:center}
/* 正文操作条：「回复」推到右侧、紧挨 ⋮ 前面（分享/评论/点赞/收藏靠左）。
   回复存在时用兄弟选择器关掉 ⋮ 自己的 auto 外边距，避免两个 auto 平分空隙。 */
.tieba-style-postbar .quote-reply{margin-left:auto}
.tieba-style-postbar .quote-reply ~ .tieba-style-pb-more{margin-left:0}
.tieba-style-pb-more .post-ops-toggle{width:28px;height:28px;min-height:0;padding:0;border:0;border-radius:6px;background:transparent;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-15);cursor:pointer}
.tieba-style-pb-more .post-ops-toggle:hover{background:var(--tieba-style-soft);color:var(--tieba-style-blue)}

/* ---------- 分享面板 ---------- */
/* 分享浮层：从按钮下方展开的贴吧样式（不再是居中弹窗） */
.tieba-style-share{position:absolute;z-index:120;left:0;top:0}
.tieba-style-share[hidden]{display:none}
.tieba-style-share.is-loading{opacity:.6}
.tieba-style-share-card{position:relative;display:flex;align-items:center;gap:18px;padding:16px 18px;border-radius:14px;background:var(--tieba-style-card);border:1px solid var(--tieba-style-line);box-shadow:0 12px 32px rgba(15,23,42,.16)}
.tieba-style-share-card::before{content:"";position:absolute;top:-7px;left:20px;width:12px;height:12px;background:var(--tieba-style-card);border-left:1px solid var(--tieba-style-line);border-top:1px solid var(--tieba-style-line);transform:rotate(45deg)}
.tieba-style-share-qr{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);text-align:center}
.tieba-style-share-qr svg{width:120px;height:120px;padding:8px;border-radius:10px;background:#fff}
.tieba-style-share-qr.is-text{gap:6px}
.tieba-style-share-qr.is-text strong{color:var(--tieba-style-title);font-size:var(--tieba-style-font-14)}
.tieba-style-share-qr.is-text span{max-width:150px;word-break:break-all;font-size:var(--tieba-style-font-12)}
.tieba-style-share-ops{display:flex;flex-direction:column;gap:12px;padding-left:18px;border-left:1px solid var(--tieba-style-line)}
.tieba-style-share-item{display:flex;align-items:center;gap:10px;padding:0;color:var(--tieba-style-title);font-size:var(--tieba-style-font-15);text-decoration:none;background:none;border:0;font-family:inherit;cursor:pointer}
.tieba-style-share-item:hover{color:var(--tieba-style-blue)}
.tieba-style-share-ico{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;color:#fff;font-size:var(--tieba-style-font-12)}
.tieba-style-share-ico.is-weibo{background:#e6162d}
.tieba-style-share-ico.is-link{background:#2b6cb0}
/* 关闭按钮：内核 button{min-height:32px;padding:7px 13px} 会把 26px 的圆按钮撑成竖椭圆，
   这里 box-sizing + min-height:0 + 固定宽高 + flex 居中，保证永远正圆、× 居中。 */
.tieba-style-share-x{position:absolute;top:6px;right:8px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:26px;height:26px;min-width:26px;min-height:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-16);line-height:1;cursor:pointer}
.tieba-style-share-x:hover{background:var(--tieba-style-soft);color:var(--tieba-style-title)}
/* 内核 button{background:var(--brand)}（特异度 0,1,1）会把这些透明底按钮染成蓝底，
   文字又是蓝色，图标文字糊成一片看不清。这里用更高的特异度复位。 */
.tieba-style-share-ops .tieba-style-share-item,.tieba-style-share-card .tieba-style-share-x{background:none;border:0;padding:0;color:var(--tieba-style-title)}
.tieba-style-share-ops .tieba-style-share-item:hover{background:none;color:var(--tieba-style-blue)}
.tieba-style-share-card .tieba-style-share-x:hover{background:var(--tieba-style-soft);color:var(--tieba-style-title)}
/* 操作按钮复位：内核 button{background:var(--brand)} 特异度 (0,1,1)，这里用「父类 + 类名」提高特异度。
   文字用 --tieba-style-text（比 muted 深一档），分享按钮才看得清。 */
.tieba-style-card-ops .tieba-style-op,.tieba-style-row-ops .tieba-style-op{background:none;border:0;padding:0 2px;color:var(--tieba-style-text)}
.tieba-style-postbar .tieba-style-pb{background:none;border:0;padding:0 2px;color:var(--tieba-style-muted)}
.tieba-style-card-ops .tieba-style-op:hover,.tieba-style-row-ops .tieba-style-op:hover,.tieba-style-postbar .tieba-style-pb:hover{background:none;color:var(--tieba-style-blue)}
.tieba-style-postbar .tieba-style-pb-btn{min-height:0;height:28px;padding:0 2px}

/* ---------- 幻灯模式（大图浏览） ---------- */
.tieba-style-lightbox{position:fixed;inset:0;z-index:130;display:flex;align-items:center;justify-content:center}
.tieba-style-lightbox[hidden]{display:none}
.tieba-style-lb-mask{position:absolute;inset:0;background:rgba(8,12,20,.88)}
.tieba-style-lb-stage{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;max-width:86vw;max-height:76vh;overflow:auto}
.tieba-style-lb-img{max-width:86vw;max-height:76vh;object-fit:contain;transition:transform .18s ease}
.tieba-style-lb-btn{position:absolute;z-index:3;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:var(--tieba-style-font-22);line-height:1;cursor:pointer}
.tieba-style-lb-btn:hover{background:rgba(255,255,255,.28)}
.tieba-style-lb-btn.is-close{top:18px;right:18px}
.tieba-style-lb-btn.is-prev{left:16px;top:50%;transform:translateY(-50%)}
.tieba-style-lb-btn.is-next{right:16px;top:50%;transform:translateY(-50%)}
.tieba-style-lightbox.is-single .is-prev,.tieba-style-lightbox.is-single .is-next{display:none}
.tieba-style-lb-bar{position:absolute;z-index:3;left:50%;bottom:22px;transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:6px 10px;border-radius:24px;background:rgba(20,24,32,.72);color:#fff;font-size:var(--tieba-style-font-13)}
.tieba-style-lb-bar button,.tieba-style-lb-bar a{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#fff;font-size:var(--tieba-style-font-15);text-decoration:none;cursor:pointer}
.tieba-style-lb-bar button:hover,.tieba-style-lb-bar a:hover{background:rgba(255,255,255,.16)}
.tieba-style-lb-count{padding:0 6px}
.tieba-style-lightbox.is-full{background:#000}
.tieba-style-lightbox.is-full .tieba-style-lb-stage{max-width:100vw;max-height:100vh}
.tieba-style-lightbox.is-full .tieba-style-lb-img{max-width:100vw;max-height:100vh}

/* ---------- 图集内页 ---------- */
.tieba-style-gallery-wrap{max-width:1080px;margin:0 auto;padding:18px 20px 40px}
.tieba-style-gallery-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
/* 返回箭头：去掉下外边距（margin 会让按钮在 flex 居中时整体上移 4px，箭头就比标题高），
   这样箭头图标中心与标题文字中心在同一水平线上 */
.tieba-style-gallery-head .tieba-style-back{margin-bottom:0}
.tieba-style-gallery-head h1{margin:0;font-size:var(--tieba-style-font-18);color:var(--tieba-style-title)}
.tieba-style-gallery-head span{color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13)}
/* 图集内页：每行 3 张（原来 2 张空位太大），容器也加宽 */
.tieba-style-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:start;--tieba-style-masonry-gap:10px;--tieba-style-masonry-cols:3}
.tieba-style-gallery.is-masonry{position:relative;display:block;height:0}
.tieba-style-gallery.is-masonry>.tieba-style-gallery-cell{position:absolute;top:0;left:0}
.tieba-style-gallery-cell{position:relative;display:block;border-radius:10px;overflow:hidden;background:var(--tieba-style-soft)}
.tieba-style-gallery-img{display:block}
.tieba-style-gallery-cell img{display:block;width:100%;height:auto}
/* 每张图右上角的下载按钮：PC 悬停显示，触摸设备常显，点了直接下载原图 */
.tieba-style-gallery-dl{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:rgba(12,16,24,.5);color:#fff;text-decoration:none;opacity:0;transition:opacity .15s ease,background .15s ease}
.tieba-style-gallery-cell:hover .tieba-style-gallery-dl{opacity:1}
.tieba-style-gallery-dl:hover{background:rgba(12,16,24,.75)}
.tieba-style-gallery-dl .tieba-style-icon{width:15px;height:15px}
@media (hover:none){.tieba-style-gallery-dl{opacity:1}}
/* 图片流末尾：返回正文 */
.tieba-style-gallery-back{display:inline-flex;align-items:center;gap:6px;margin-top:18px;padding:9px 18px;border-radius:999px;background:var(--tieba-style-card);color:var(--tieba-style-blue);font-size:var(--tieba-style-font-14);font-weight:500;text-decoration:none;box-shadow:0 1px 3px rgba(15,20,30,.07)}
.tieba-style-gallery-back:hover{background:var(--tieba-style-soft);color:var(--tieba-style-blue)}
.tieba-style-gallery-back .tieba-style-icon{width:17px;height:17px}
/* 楼层列表为空时的提示（放在内核回帖锚点 <ul> 内部，回帖成功后由内核移除） */
.tieba-style-floor-list .tieba-style-empty-hint{padding:40px 16px;text-align:center;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-14);list-style:none}
.tieba-style-pager{margin-top:12px;padding:14px 16px;background:var(--tieba-style-card);border-radius:14px;display:flex;justify-content:center}
.tieba-style-pager .pagination{margin:0}
.tieba-style-pager .pagination ul{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.tieba-style-pager .pagination li a,.tieba-style-pager .pagination li span{display:block;min-width:34px;height:34px;line-height:32px;padding:0 10px;text-align:center;border-radius:8px;background:var(--tieba-style-soft);color:var(--tieba-style-text);font-size:var(--tieba-style-font-14);text-decoration:none}
.tieba-style-pager .pagination li a:hover{background:#e6eaf2;color:var(--tieba-style-blue)}
.tieba-style-pager .pagination li.active a{background:var(--tieba-style-blue);color:#fff;font-weight:600}

/* ---------- 右栏卡片 ---------- */
.tieba-style-sidecard{background:var(--tieba-style-card);border-radius:14px;padding:18px}
.tieba-style-sidehead{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.tieba-style-sidehead h2{margin:0;font-size:var(--tieba-style-font-16);font-weight:600;color:var(--tieba-style-title)}
.tieba-style-rank{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.tieba-style-rank li{display:flex;align-items:center;gap:10px;padding:7px 0;min-width:0}
/* 排名序号：前三名紫蓝三色（1 深 / 2 中 / 3 浅），第 4 名往后统一灰底 */
.tieba-style-rank-no{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:6px;background:#e8eaef;color:#6b7280;font-size:var(--tieba-style-font-13);font-weight:600;line-height:1;text-align:center}
.tieba-style-rank-no.is-1{background:#5457e6;color:#fff}
.tieba-style-rank-no.is-2{background:#8b5cf6;color:#fff}
.tieba-style-rank-no.is-3{background:#a78bfa;color:#fff}
.tieba-style-rank a{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--tieba-style-title);font-size:var(--tieba-style-font-14);text-decoration:none}
.tieba-style-rank a:hover{color:var(--tieba-style-link)}
.tieba-style-rank-num{flex:0 0 auto;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-12);padding:1px 5px;border-radius:4px;background:var(--tieba-style-soft)}
.tieba-style-rank-empty{color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13)}
.tieba-style-more{display:block;margin-top:12px;height:36px;line-height:36px;text-align:center;border-radius:8px;background:var(--tieba-style-soft);color:var(--tieba-style-blue);font-size:var(--tieba-style-font-13);text-decoration:none}
.tieba-style-more:hover{background:#e9ecf4;color:var(--tieba-style-blue-dark)}
/* 「最有料热点」的「查看更多」是 AJAX 按钮：内核 button{background:var(--brand)} 特异度 (0,1,1)，
   这里用「父类 + 类名」两级复位，保证还是灰底蓝字的胶囊按钮 */
.tieba-style-sidecard button.tieba-style-more{display:block;width:100%;height:36px;min-height:36px;margin-top:12px;padding:0;border:0;border-radius:8px;background:var(--tieba-style-soft);color:var(--tieba-style-blue);font-size:var(--tieba-style-font-13);font-family:inherit;line-height:36px;text-align:center;cursor:pointer}
.tieba-style-sidecard button.tieba-style-more:hover{background:#e9ecf4;color:var(--tieba-style-blue-dark)}
.tieba-style-sidecard button.tieba-style-more.is-loading{opacity:.6;cursor:default}

/* ---------- 吧信息卡 ---------- */
.tieba-style-fcard-head{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.tieba-style-fcard-head h3{margin:0;font-size:var(--tieba-style-font-17);font-weight:600;color:var(--tieba-style-title);line-height:1.4;word-break:break-word}
.tieba-style-fcard-head p{margin:3px 0 0;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13)}
.tieba-style-fcard-line{display:flex;align-items:center;gap:6px;margin:0 0 12px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-14)}
.tieba-style-fcard-line .tieba-style-icon{width:16px;height:16px}
.tieba-style-fcard-desc{margin:0 0 14px;color:var(--tieba-style-text);font-size:var(--tieba-style-font-14);line-height:1.8;word-break:break-word}
.tieba-style-fcard-mods{margin:0 0 14px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-14)}
.tieba-style-fcard-mods a{color:var(--tieba-style-link);text-decoration:none;margin-right:6px}
.tieba-style-fcard-btn{display:flex;align-items:center;justify-content:center;gap:4px;height:44px;border-radius:999px;background:var(--tieba-style-blue);color:#fff;font-size:var(--tieba-style-font-15);font-weight:600;text-decoration:none}
.tieba-style-fcard-btn:hover{background:var(--tieba-style-blue-dark);color:#fff}
.tieba-style-fcard-btn .tieba-style-icon{width:17px;height:17px}
.tieba-style-fcard-title{margin:0 0 8px;font-size:var(--tieba-style-font-14);font-weight:600;color:var(--tieba-style-title)}

/* ---------- 帖子页 ---------- */
.tieba-style-back{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;margin-bottom:8px;border-radius:50%;background:var(--tieba-style-card);color:var(--tieba-style-muted);text-decoration:none}
.tieba-style-back:hover{color:var(--tieba-style-blue)}
.tieba-style-back .tieba-style-icon{width:19px;height:19px}
/* 帖子页顶排：返回箭头在左，「看图模式」切换按钮在右 */
.tieba-style-topic-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tieba-style-imgtoggle{display:inline-flex;align-items:center;gap:6px;height:34px;margin-bottom:8px;padding:0 16px;border:1px solid var(--tieba-style-line);border-radius:999px;background:var(--tieba-style-card);color:var(--tieba-style-blue);font-size:var(--tieba-style-font-13);font-weight:600;font-family:inherit;cursor:pointer;white-space:nowrap}
/* hover 显式声明文字色，避免被全局 button:hover 规则盖成白色看不清 */
.tieba-style-imgtoggle:hover,.tieba-style-imgtoggle:focus-visible{background:#e8f0fe;border-color:#bfd3f5;color:#2f6fe4}
.tieba-style-imgtoggle .tieba-style-icon{width:16px;height:16px}
.tieba-style-imgtoggle.is-active,.tieba-style-imgtoggle.is-active:hover{background:var(--tieba-style-blue);border-color:var(--tieba-style-blue);color:#fff}
.tieba-style-topic{display:flex;flex-direction:column;gap:14px}
.tieba-style-replies{background:var(--tieba-style-card);border-radius:14px;padding:0 20px 8px}
.tieba-style-list-wrap{list-style:none;margin:0;padding:0}
.tieba-style-main-list{padding-top:20px;border-bottom:0}
/* 楼层：头像+作者一行 → 标题（仅主楼）→ 正文。所有楼层统一带 title 行，空行高度为 0。
   上下内边距 10px：相邻两层之间约 21px，与头像左侧留白（20px）一致。 */
.tieba-style-replies .post-entry{display:grid;grid-template-areas:"avatar body" "title title" "content content";column-gap:12px;row-gap:4px;padding:10px 0;border-bottom:1px solid var(--tieba-style-line);border-radius:0;background:none;min-height:0;position:relative}
/* 插件注入到楼层里的额外块（排序切换、徽章列表等）整行铺开，避免被挤进头像列。 */
.tieba-style-replies .post-entry>*:not(.post-avatar):not(.post-body):not(.post-content):not(.tieba-style-topic-title){grid-column:1 / -1}
.tieba-style-replies .post-entry:last-child{border-bottom:0}
.tieba-style-mainpost{padding-bottom:18px}
.tieba-style-replies .post-avatar{width:44px;height:44px;margin:0;border-radius:50%;background:var(--tieba-style-soft);overflow:hidden}
.tieba-style-replies .post-avatar .avatar-profile-link{border-radius:50%}
/* 作者行与第二排（管理员/版块/时间）之间不留缝：内核 grid 默认间距在这里显得分得太开 */
.tieba-style-replies .post-body{justify-items:start;text-align:left;gap:0}
/* 楼层头部：内核 post-head 是 grid(1fr auto)，插进去的关注按钮会占掉 1fr，
   作者信息被挤到右侧、中间空出一大段 —— 这里整体改成 flex 行。 */
.tieba-style-replies .post-head{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;flex-wrap:wrap}
.tieba-style-replies .post-info{order:1;flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tieba-style-replies .post-title.post-author{font-size:var(--tieba-style-font-15);font-weight:600;color:var(--tieba-style-title)}
.tieba-style-replies .post-time{color:var(--tieba-style-muted);font-size:var(--tieba-style-font-12_5);white-space:nowrap}
/* 关注 / 回复 固定在用户名那一排的最右 */
.tieba-style-replies .post-head>.tieba-style-follow,
.tieba-style-replies .post-head>.tieba-style-followform{order:2;flex:0 0 auto;margin-left:auto}
/* 第二排：管理员 → 版块名（仅主楼）→ 发帖时间，紧挨着排 */
.tieba-style-replies .post-meta{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:0 8px;margin:0;line-height:1.35;font-size:var(--tieba-style-font-12_5);color:var(--tieba-style-muted)}
/* 回帖楼层第二排只有「管理员」时，没有内容就彻底不占高度 */
.tieba-style-replies .post-meta:empty{display:none}
.tieba-style-replies .post-meta .post-time{color:var(--tieba-style-muted);font-size:var(--tieba-style-font-12_5)}
.tieba-style-replies .post-meta .tieba-style-floor-forum{color:var(--tieba-style-muted);font-size:var(--tieba-style-font-12_5);text-decoration:none;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-replies .post-meta .tieba-style-floor-forum:hover{color:var(--tieba-style-blue)}
.tieba-style-replies .post-content{padding:6px 0 0;min-width:0;position:static;font-size:var(--tieba-style-font-16);line-height:1.85;color:var(--tieba-style-text)}
.tieba-style-replies .post-ops{display:flex;align-items:center;justify-content:flex-end;gap:14px;row-gap:8px;flex-wrap:wrap;margin-top:12px}
/* 楼层操作条里的插件控件（排序切换等）不允许被压缩成竖排文字。 */
.tieba-style-replies .post-ops>*{flex:0 0 auto;white-space:nowrap}
.tieba-style-replies .post-ops select{width:auto;max-width:120px}
.tieba-style-replies .post-ops label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
/* 操作条：「第2楼」贴最左，「回复」紧跟其后（margin-right:auto 把点赞等其余操作推到右边）。
   移动端无单独覆盖，同一套规则生效。 */
.tieba-style-replies .post-ops>.post-floor{order:-2;margin-left:0;margin-right:0;line-height:18px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);text-decoration:none}
/* 楼层操作条：第N楼 + 点赞/收藏 靠左，「回复」靠右、⋮ 之前（与正文操作条一致） */
.tieba-style-replies .post-ops>.post-action-form{order:-1}
.tieba-style-replies .post-ops>.icon-quote.quote-reply{order:1;margin-right:auto}
.tieba-style-replies .post-ops>.post-ops-toggle{order:2}
.tieba-style-mainpost .post-ops>.post-floor{display:none}
.tieba-style-replies .post-ops .icon-action span{font-size:var(--tieba-style-font-14)}
/* 操作条里的按钮（「更多操作 ⋮」、插件注入的「设为只读」等）统一成 26px 小胶囊：
   内核 .btn,button{min-height:32px;padding:7px 13px} 会把行撑高、行内元素底色被压掉一半，这里整体复位 */
.tieba-style-replies .post-ops>button,
.tieba-style-replies .post-ops>form,
.tieba-style-replies .post-ops>form>button{display:inline-flex;align-items:center;justify-content:center;min-height:0;height:26px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);line-height:26px;font-weight:400;opacity:1;box-shadow:none;cursor:pointer}
.tieba-style-replies .post-ops>button:hover,
.tieba-style-replies .post-ops>form>button:hover{background:var(--tieba-style-soft);color:var(--tieba-style-blue)}
/* 「更多操作」三点按钮保持方形，悬停底色完整铺满整个按钮 */
.tieba-style-replies .post-ops>.post-ops-toggle{width:26px;height:26px;min-height:0;padding:0;border-radius:6px;background:transparent;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);line-height:1}
.tieba-style-replies .post-ops>.post-ops-toggle:hover{background:var(--tieba-style-soft);color:var(--tieba-style-blue)}
/* 插件的三点管理菜单（topic-manage-kebab）保持在操作条里同样的小胶囊 */
.tieba-style-replies .post-ops .topic-manage-kebab{margin-right:0}
.tieba-style-replies .post-ops .topic-manage-kebab-summary{width:26px;height:26px;min-height:0;border-radius:6px;background:transparent;color:var(--tieba-style-muted)}
.tieba-style-replies .post-ops .topic-manage-kebab-summary:hover{background:var(--tieba-style-soft);color:var(--tieba-style-blue)}
.tieba-style-topic-title{grid-area:title;margin:6px 0 4px}
.tieba-style-topic-title h1{margin:0;font-size:var(--tieba-style-font-20);line-height:1.55;font-weight:400;color:var(--tieba-style-title);word-break:break-word}
.tieba-style-follow{order:99;margin-left:auto;display:inline-flex;align-items:center;height:30px;padding:0 16px;border-radius:999px;background:var(--tieba-style-soft);color:var(--tieba-style-blue);font-size:var(--tieba-style-font-13);font-weight:600;text-decoration:none}
.tieba-style-follow:hover{background:#e9ecf4;color:var(--tieba-style-blue-dark)}
/* 关注按钮（复用 user_follow 表单）：浅蓝胶囊，已关注变灰。 */
.tieba-style-followform{order:99;margin:0 0 0 auto;flex:0 0 auto}
.tieba-style-followbtn{display:inline-flex;align-items:center;justify-content:center;height:30px;padding:0 16px;border:0;border-radius:999px;background:#eef3ff;color:var(--tieba-style-blue);font-size:var(--tieba-style-font-13);font-weight:600;font-family:inherit;cursor:pointer;transition:background .15s}
.tieba-style-followbtn:hover{background:#e2ebff}
.tieba-style-followbtn[data-user-follow-following="1"]{background:var(--tieba-style-soft);color:var(--tieba-style-muted)}
.tieba-style-followbtn[disabled]{opacity:.6;cursor:wait}
.tieba-style-followbtn.is-lg{height:34px;padding:0 22px;font-size:var(--tieba-style-font-14)}
/* 回复头：全部回复 (N) + 只看楼主 + 正序/倒序胶囊 */
.tieba-style-replyhead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 0;border-bottom:1px solid var(--tieba-style-line)}
.tieba-style-replyhead-l{display:flex;align-items:flex-end;gap:24px;min-width:0}
.tieba-style-replyhead h2{position:relative;margin:0;padding-bottom:12px;font-size:var(--tieba-style-font-16);font-weight:600;color:var(--tieba-style-title);white-space:nowrap}
.tieba-style-replyhead h2 span{color:var(--tieba-style-muted);font-weight:400}
.tieba-style-replyhead h2::after{content:"";position:absolute;left:0;bottom:0;width:36px;height:2px;border-radius:2px;background:var(--tieba-style-blue)}
/* 只看楼主：纯文字按钮。内核 button:hover{background:var(--brand)} 会把按钮染成系统绿，
   而且 padding-bottom 让绿色底色整体偏低，这里把按钮彻底复位成文字样式 */
.tieba-style-replyhead button.tieba-style-onlylz,
.tieba-style-onlylz:hover,.tieba-style-onlylz:focus,.tieba-style-onlylz:active{min-height:0;padding:0 0 12px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-15);line-height:1.35;font-weight:400;font-family:inherit;cursor:pointer;white-space:nowrap;position:relative}
.tieba-style-onlylz:hover{color:var(--tieba-style-title)}
.tieba-style-onlylz.is-active{color:var(--tieba-style-title);font-weight:600}
.tieba-style-onlylz.is-active::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:2px;background:var(--tieba-style-blue)}
.tieba-style-ro{display:inline-flex;flex:0 0 auto;gap:2px;padding:3px;border-radius:999px;background:var(--tieba-style-soft)}
.tieba-style-ro a{height:28px;line-height:28px;padding:0 16px;border-radius:999px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);text-decoration:none}
.tieba-style-ro a.is-active{background:var(--tieba-style-card);color:var(--tieba-style-title);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.1)}
/* 提示条 / 结束线 */
.tieba-style-hint{display:flex;align-items:center;gap:8px;margin:14px 0 2px;padding:6px 14px 6px 6px;border-radius:999px;background:var(--tieba-style-soft);color:var(--tieba-style-muted);font-size:var(--tieba-style-font-14)}
.tieba-style-hint-dot{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--tieba-style-card);color:var(--tieba-style-muted)}
.tieba-style-hint-dot .tieba-style-icon{width:17px;height:17px}
.tieba-style-end{position:relative;padding:20px 0 8px;text-align:center;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-14)}
.tieba-style-end::before,.tieba-style-end::after{content:"";position:absolute;top:50%;width:56px;height:1px;background:var(--tieba-style-line)}
.tieba-style-end::before{right:calc(50% + 46px)}
.tieba-style-end::after{left:calc(50% + 46px)}
/* 只看楼主 */
.tieba-style-replies.is-only-lz .post-entry:not(.is-lz):not(.tieba-style-mainpost){display:none}
/* 插件自带的排序条已被贴吧式胶囊取代 */
.tieba-style-replies .reply-order-switcher{display:none}

/* ---------- 回复框 ---------- */
.tieba-style-editor{background:var(--tieba-style-card);border-radius:14px;padding:16px 20px}
.tieba-style-editor .ajax-reply-form textarea{width:100%;min-height:100px;padding:14px 16px;border:1px solid var(--tieba-style-line);border-radius:8px;background:var(--tieba-style-card);color:var(--tieba-style-title);font-size:var(--tieba-style-font-15);line-height:1.75;font-family:inherit;resize:vertical}
.tieba-style-editor .ajax-reply-form textarea:focus{outline:none;border-color:var(--tieba-style-blue);box-shadow:none;background:var(--tieba-style-card)}
/* NB 编辑器：描边画在整块编辑器容器上，工具条与正文框各占一半 */
.tieba-style-editor .ajax-reply-form .nb-editor-field{border:1px solid var(--tieba-style-line);border-radius:8px;overflow:hidden;background:var(--tieba-style-card)}
.tieba-style-editor .ajax-reply-form .nb-editor-field>.grid>textarea[name=body]{border:0;border-radius:0;background:var(--tieba-style-card);color:var(--tieba-style-title);box-shadow:none}
.tieba-style-editor .ajax-reply-form .nb-editor-field:has(.nb-editor-bar)>.grid>textarea[name=body]{border-radius:0 0 8px 8px}
.tieba-style-editor .ajax-reply-form .nb-editor-bar{border:0;border-bottom:1px solid var(--tieba-style-line);border-radius:0;background:var(--tieba-style-soft);padding:4px 6px}
.tieba-style-editor .ajax-reply-form .nb-editor-btn{color:var(--tieba-style-blue)}
.tieba-style-editor .ajax-reply-form .nb-editor-btn:hover{border-color:transparent;background:var(--tieba-style-card);color:var(--tieba-style-blue-dark)}
.tieba-style-editor .ajax-reply-form .nb-editor-split{background:var(--tieba-style-line)}
/* 发帖页 / 编辑主题页（内核 .form-panel）：编辑器也统一成「工具条 + 灰色分隔线 + 白色输入区」 */
.tieba-style-body .form-panel .nb-editor-field{border:1px solid var(--tieba-style-line);border-radius:8px;overflow:hidden;background:var(--tieba-style-card)}
.tieba-style-body .form-panel .nb-editor-bar{border:0;border-bottom:1px solid var(--tieba-style-line);border-radius:0;background:var(--tieba-style-soft);padding:4px 6px}
.tieba-style-body .form-panel .nb-editor-field>.grid>textarea[name=body]{border:0;border-radius:0;background:var(--tieba-style-card);color:var(--tieba-style-text)}
.tieba-style-body .form-panel .nb-editor .nb-editor-btn{color:var(--tieba-style-blue)}
.tieba-style-body .form-panel .nb-editor-split{background:var(--tieba-style-line)}
/* 去掉编辑器上方多余的「内容」标签（内核 label.grid 里包着的第一个 span，删掉后 textarea 占满整行） */
.tieba-style-body .nb-editor-field>label>span:first-child{display:none}
/* nb_editor 初始化前 textarea 还没被包进 .nb-editor-field，上面的规则来不及生效，
   刷新时会先闪出一个「内容」。这里直接命中「含正文 textarea 的 label」，首屏就不渲染它。 */
.tieba-style-body label.grid:has(>textarea[name="body"])>span:first-child{display:none}
/* 附件上传区：内核 .grid 是「标签 + 输入」两列，单独一行时会被压成 98px 窄条（上传记录挤成竖排），这里恢复整行 */
.tieba-style-body .grid.attachment-field{display:block}
.tieba-style-body .grid.attachment-field .attachment-uploader,
.tieba-style-body .grid.attachment-field .attachment-upload-list{width:100%}
/* 正文图片：加载完成前按 4:3 占位，避免图片撑开时把下方内容顶下去（发布后「跳一下」） */
.tieba-style-replies .post-content img.is-loading-img{aspect-ratio:4/3;height:auto;object-fit:cover;background:var(--tieba-style-soft);border-radius:8px}
/* 快速回复（quick_reply 插件）：输入框去掉描边，按钮走贴吧蓝 */
.tieba-style-replies .quick-reply-main-action input{border:0;border-radius:8px;background:var(--tieba-style-soft);color:var(--tieba-style-muted)}
.tieba-style-replies .quick-reply-main-action input:focus{border-color:transparent;outline:none;background:var(--tieba-style-card);box-shadow:0 0 0 1px var(--tieba-style-blue) inset}
.tieba-style-replies .quick-reply-main-action button{min-height:0;height:34px;padding:0 16px;border:0;border-radius:8px;background:var(--tieba-style-blue);color:#fff;font-size:var(--tieba-style-font-13)}
.tieba-style-replies .quick-reply-main-action button:hover{background:var(--tieba-style-blue-dark)}
.tieba-style-editor-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.tieba-style-editor-tip{color:var(--tieba-style-muted);font-size:var(--tieba-style-font-14)}
.tieba-style-editor .ajax-reply-form button[type=submit]{height:40px;padding:0 28px;border:0;border-radius:999px;background:var(--tieba-style-blue);color:#fff;font-size:var(--tieba-style-font-14);font-weight:600;cursor:pointer;font-family:inherit}
.tieba-style-editor .ajax-reply-form button[type=submit]:hover{background:var(--tieba-style-blue-dark)}
.tieba-style-editor-login{height:36px;padding:0 22px;border-radius:999px;background:var(--tieba-style-blue);color:#fff;font-size:var(--tieba-style-font-14);font-weight:600;text-decoration:none;display:inline-flex;align-items:center}
.tieba-style-editor-login:hover{background:var(--tieba-style-blue-dark);color:#fff}

/* ---------- 底部自定义 ---------- */
.tieba-style-foot{max-width:1600px;margin:0 auto;padding:0 20px 26px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13)}

/* ---------- 个人主页（我的 / TA的） ---------- */
.tieba-style-profile{position:relative;display:flex;align-items:flex-start;gap:18px;background:var(--tieba-style-card);border-radius:14px;padding:22px}
.tieba-style-profile-avatar{flex:0 0 auto;display:block;width:76px;height:76px;border-radius:50%;overflow:hidden;background:var(--tieba-style-soft)}
.tieba-style-profile-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.tieba-style-profile-info{flex:1 1 auto;min-width:0}
.tieba-style-profile-name{display:flex;align-items:center;gap:8px;font-size:var(--tieba-style-font-20);font-weight:600;color:var(--tieba-style-title);word-break:break-word}
.tieba-style-profile-self{flex:0 0 auto;padding:1px 8px;border-radius:999px;background:var(--tieba-style-soft);color:var(--tieba-style-blue);font-size:var(--tieba-style-font-12);font-weight:600}
.tieba-style-profile-meta{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:8px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13)}
.tieba-style-profile-meta a,.tieba-style-profile-meta span{color:var(--tieba-style-muted);text-decoration:none}
.tieba-style-profile-meta a:hover{color:var(--tieba-style-blue)}
.tieba-style-profile-meta b{color:var(--tieba-style-title);font-weight:600}
.tieba-style-profile-bio{margin:10px 0 0;color:var(--tieba-style-text);font-size:var(--tieba-style-font-14);line-height:1.6;word-break:break-word}
.tieba-style-profile-actions{flex:0 0 auto;display:flex;align-items:center;gap:10px}
.tieba-style-profile-btn{display:inline-flex;align-items:center;height:34px;padding:0 20px;border:1px solid var(--tieba-style-line);border-radius:999px;background:var(--tieba-style-card);color:var(--tieba-style-title);font-size:var(--tieba-style-font-14);font-weight:600;text-decoration:none}
.tieba-style-profile-btn:hover{border-color:var(--tieba-style-blue);color:var(--tieba-style-blue)}
.tieba-style-ptabs{display:flex;align-items:center;gap:26px;height:52px;margin:12px 0 0;padding:0 20px;background:var(--tieba-style-card);border-radius:14px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tieba-style-ptabs::-webkit-scrollbar{display:none}
.tieba-style-ptab{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;white-space:nowrap;height:52px;color:var(--tieba-style-text);font-size:var(--tieba-style-font-15);font-weight:600;text-decoration:none}
.tieba-style-ptab:hover{color:var(--tieba-style-blue)}
.tieba-style-ptab.is-active{color:var(--tieba-style-blue)}
.tieba-style-ptab.is-active::after{content:"";position:absolute;left:50%;bottom:8px;width:22px;height:3px;margin-left:-11px;border-radius:2px;background:var(--tieba-style-blue)}
.tieba-style-ptabs+.tieba-style-feed{margin-top:12px;border-radius:14px}
/* 勋章 Tab 嵌入：标题区与面板顶部的间距对齐其他 tab 的列表首行 */
.tieba-style-feed .badge-wall-head{padding-top:16px}
/* 勋章 Tab 嵌入：底部间距与顶部（标题上方 16px）保持一致。
   注意：本模板是把 badge_wall_render 的输出直接放进 feed（无 .badge-wall-profile-block 包裹），
   所以选择器必须命中 .badge-wall 本身才有效。 */
.tieba-style-feed .badge-wall{margin-bottom:16px;gap:12px}
/* 移动端：勋章墙按钮收进「我的勋章」标题右侧，统计三格固定一排 */
@media (max-width:820px){
  .tieba-style-feed .badge-wall-head{flex-wrap:nowrap;align-items:flex-start;gap:10px}
  .tieba-style-feed .badge-wall-head-text{flex:1;min-width:0}
  .tieba-style-feed .badge-wall-switch{margin-top:0;padding:5px 13px;font-size:var(--tieba-style-font-12_5);line-height:1.3}
  .tieba-style-feed .badge-wall-stats{grid-template-columns:repeat(3,1fr);gap:10px}
  .tieba-style-feed .badge-wall-stat{padding:14px 8px 12px}
  .tieba-style-feed .badge-wall-stat b{font-size:var(--tieba-style-font-22)}
}
/* 个人设置页（贴吧框架内）：表单与上方 tab 栏同宽对齐，顶部留 14px 间距 */
.tieba-style-settings{margin-top:14px}
/* /profile：表单容器统一白底圆角大卡；账户信息卡白底描边（去灰底）；输入框同风格 */
.tieba-style-settings .form-panel{max-width:none;margin:0 0 14px;background:var(--tieba-style-card);border-radius:14px;padding:18px;box-shadow:0 1px 4px rgba(15,23,42,.04)}
.tieba-style-settings .form-panel:last-child{margin-bottom:0}
.tieba-style-settings .profile-account-grid{gap:10px}
.tieba-style-settings .profile-account-card{background:var(--tieba-style-card);border:1px solid var(--tieba-style-line);border-radius:10px}
.tieba-style-settings .profile-account-card>span{color:var(--tieba-style-muted)}
.tieba-style-settings .grid input,.tieba-style-settings .grid textarea{background:var(--tieba-style-card);border-color:var(--tieba-style-line);color:var(--tieba-style-text)}
.tieba-style-sidecard-line{margin:0 0 8px;color:var(--tieba-style-text);font-size:var(--tieba-style-font-13);line-height:1.6}
.tieba-style-sidecard-line:last-child{margin-bottom:0}

/* ---------- 关注/粉丝列表：对齐主题列表行风格（大白卡内分隔线行，压掉插件自带的小卡边框） ---------- */
.tieba-style-feed .user-follow-list{display:block;list-style:none;margin:0;padding:6px 0}
.tieba-style-feed .user-follow-list .empty-state{color:var(--tieba-style-muted);text-align:center;padding:40px 0;font-size:var(--tieba-style-font-14)}
.tieba-style-feed .user-follow-item{display:flex;align-items:center;gap:12px;min-width:0;padding:12px 0;border:0;border-bottom:1px solid var(--tieba-style-line);border-radius:0;background:transparent}
.tieba-style-feed .user-follow-item:last-child{border-bottom:0}
.tieba-style-feed .user-follow-item-avatar{flex:none;width:46px;height:46px;border-radius:50%;overflow:hidden;background:var(--tieba-style-soft)}
.tieba-style-feed .user-follow-item-avatar img{width:46px;height:46px;border-radius:50%;object-fit:cover;display:block}
.tieba-style-feed .user-follow-item-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.tieba-style-feed .user-follow-item-name{font-size:var(--tieba-style-font-15);font-weight:600;color:var(--tieba-style-text);text-decoration:none}
.tieba-style-feed .user-follow-item-name:hover{color:var(--tieba-style-blue)}
.tieba-style-feed .user-follow-item-meta{font-size:var(--tieba-style-font-12_5);color:var(--tieba-style-muted)}
.tieba-style-feed .user-follow-item-action{flex:none}
.tieba-style-feed .user-follow-item .user-follow-item-btn{font-size:var(--tieba-style-font-13);padding:6px 16px;border-radius:18px;border:1px solid var(--tieba-style-blue);background:var(--tieba-style-blue);color:#fff;cursor:pointer}
.tieba-style-feed .user-follow-item .user-follow-item-btn:hover{opacity:.9}
.tieba-style-feed .user-follow-item .user-follow-item-btn[data-user-follow-following="1"]{background:var(--tieba-style-soft);color:var(--tieba-style-muted);border-color:var(--tieba-style-line)}
.tieba-style-feed .user-follow-item-self{font-size:var(--tieba-style-font-13);color:var(--tieba-style-muted)}
.tieba-style-feed .user-follow-list + .pagination-bar{padding:16px 0;text-align:center}
/* ---------- 「我的点赞」页（like_coin 插件）：三栏框架内容区，贴吧风卡片流重绘 ----------
   注意：内核默认 .post-item 是连排分隔线列表；like_coin 插件自身还给了
   .like-coin-likes-page{display:grid;gap:12px} 和 .like-coin-likes-head{flex;...} 等默认样式，
   下面用更高特异 + !important 把它们全部覆盖，避免“系统默认感”和 grid 布局干扰 */
.tieba-style-page .tieba-style-feed>.like-coin-likes-list{min-width:0}
/* feed 卡 padding 顶部为 0（本为 tab 列表设计），标题区顶部空间由上方 24px 提供 */
.tieba-style-page .like-coin-likes-head{display:flex!important;align-items:baseline;justify-content:flex-start!important;gap:10px;margin:0!important;padding:32px 10px 15px!important;border-bottom:1px solid var(--tieba-style-line)!important}
/* 兜底：内核外壳剥离失败时，点赞列表会带着内核 home-shell 与侧栏整包进框架——
   此时隐藏内核侧栏菜单卡、让 home-shell 透明融入贴吧白卡（正常接管时中间列没有这些元素，规则空转） */
.tieba-style-center .home-shell{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0}
.tieba-style-center .home-shell>aside,.tieba-style-center .home-shell aside.sidebar{display:none}
.tieba-style-page .like-coin-likes-head h1{margin:0;padding-left:11px;border-left:4px solid #1467d2;border-radius:1px;font-size:var(--tieba-style-font-17);font-weight:650;line-height:1.35;color:var(--tieba-style-title)}
.tieba-style-page .like-coin-likes-head .like-coin-likes-total{font-size:var(--tieba-style-font-12_5);color:var(--tieba-style-muted)}
.tieba-style-page .like-coin-likes-list{margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
/* 帖子行：独立卡片——白底+细边+轻投影，行间距 10px，hover 投影加深并轻微上浮，
   彻底告别内核连排分隔线列表 */
.tieba-style-page .like-coin-likes-list li{display:flex;align-items:flex-start;gap:14px;margin:0;padding:16px 14px;border:1px solid var(--tieba-style-line);border-radius:14px;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.05);transition:box-shadow .18s ease,transform .18s ease}
.tieba-style-page .like-coin-likes-list li:hover{box-shadow:0 6px 18px rgba(15,23,42,.10);transform:translateY(-1px)}
.tieba-style-page .like-coin-likes-list .post-avatar{flex:none;width:50px;height:50px;border-radius:50%}
.tieba-style-page .like-coin-likes-list .post-avatar img,.tieba-style-page .like-coin-likes-list .post-avatar .tieba-style-avatar{width:50px;height:50px;border-radius:50%;box-shadow:0 2px 6px rgba(15,23,42,.12)}
.tieba-style-page .like-coin-likes-list .post-body{flex:1;min-width:0}
.tieba-style-page .like-coin-likes-list .post-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.tieba-style-page .like-coin-likes-list .post-title{font-size:var(--tieba-style-font-16_5);font-weight:700;color:#1f2329;transition:color .18s ease}
.tieba-style-page .like-coin-likes-list .post-item:hover .post-title{color:#1467d2}
.tieba-style-page .like-coin-likes-list .post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:8px;font-size:var(--tieba-style-font-13);color:#8a94a6}
.tieba-style-page .like-coin-likes-list .post-meta a{color:#5b7395;transition:color .18s ease}
.tieba-style-page .like-coin-likes-list .post-meta a:hover{color:#1467d2}
.tieba-style-page .like-coin-likes-list .post-meta svg{width:15px;height:15px;vertical-align:-2.5px;margin-right:3px;color:#a8b3c4}
/* 行尾的「…」更多操作按钮：圆形 hover 灰底，融入卡片 */
.tieba-style-page .like-coin-likes-list li button,.tieba-style-page .like-coin-likes-list li [class*="topic-quick-actions"]{flex:none;align-self:flex-start;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;background:transparent;color:#9aa6b8;cursor:pointer;transition:background .15s ease,color .15s ease}
.tieba-style-page .like-coin-likes-list li button:hover,.tieba-style-page .like-coin-likes-list li [class*="topic-quick-actions"]:hover{background:#eef1f5;color:#5b7395}
.tieba-style-page .like-coin-likes-list .post-tag.post-forum-badge{flex:none;align-self:center;margin-left:auto;padding:4px 12px;border:0;border-radius:999px;background:#eaf2ff;font-size:var(--tieba-style-font-12);font-weight:600;color:#3f7ce8;text-decoration:none;transition:background .18s ease,color .18s ease}
.tieba-style-page .like-coin-likes-list .post-tag.post-forum-badge:hover{background:#d8e7ff;color:#1467d2}
.tieba-style-page .tieba-style-feed>.pagination-bar{margin:14px 0 0;padding:8px 0 4px;border:0;text-align:center}

/* ---------- 发帖弹窗内的 NB编辑器 ---------- */
.tieba-style-modal .nb-editor-field{margin:0 0 16px}
.tieba-style-modal .nb-editor-field>.grid>textarea[name=body]{background:var(--tieba-style-soft);border-radius:0 0 8px 8px}
.tieba-style-modal .tieba-style-mfield .nb-editor-bar{border-radius:8px 8px 0 0}
.tieba-style-modal .nb-editor-panel,.tieba-style-modal .nb-editor-field.nb-editor-full{z-index:460}

@media (max-width:640px){
  /* 信息头窄屏保持「头像左、文字右」，仅按钮独占下一行：
     文字区 flex-basis:0，不按内容宽度参与断行（否则头像与文字会被拆成两行竖排） */
  .tieba-style-profile{flex-wrap:wrap;padding:14px}
  .tieba-style-profile-avatar{width:60px;height:60px}
  .tieba-style-profile-info{flex:1 1 0;min-width:0}
  .tieba-style-profile-name{font-size:var(--tieba-style-font-18)}
  /* 编辑资料按钮收进信息头右上角，与用户名同一排 */
  .tieba-style-profile-actions{position:absolute;top:12px;right:12px}
  .tieba-style-profile-actions .tieba-style-profile-btn{height:30px;padding:0 14px;font-size:var(--tieba-style-font-13)}
  .tieba-style-ptabs{padding:0 14px;gap:20px}
}

/* ---------- 黑夜模式适配（跟随「色系切换」插件的 data-color-scheme-dark-mode-theme） ---------- */
/* 核心：内核容器（.home-shell / .main-panel / .card / .box）用的都是 var(--panel)，
   色系插件切暗色时靠 JS 给 html 写行内变量；这里的纯 CSS 兜底同样把变量切暗，
   这样即使色系脚本没加载，发帖页等内核页面也不会留下白底。 */
html[data-color-scheme-dark-mode-theme="dark"]{--bg:#0f121a!important;--panel:#171b27!important;--line:#262b3b!important;--line-soft:#1e2332!important;--text:#e2e5ed!important;--text-muted:#9399ab!important;--text-subtle:#636a80!important;--text-disabled:#4a5066!important;--brand-soft:#1f2937!important;--success-soft:#19211d!important;--danger-soft:#241b20!important;--warning-soft:#252019!important;--info-soft:#19212a!important;--inverse:#0b0f14!important;--inverse-border:#2b313b!important;--inverse-text:#f1f5f9!important;--backdrop:rgba(15,18,26,.48)!important;--shadow-base:rgba(0,0,0,.38)!important;--shadow-medium:rgba(0,0,0,.52)!important}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body{--tieba-style-bg:#0f121a;--tieba-style-card:#171b27;--tieba-style-title:#e2e5ed;--tieba-style-text:#c3c8d6;--tieba-style-muted:#9399ab;--tieba-style-line:#262b3b;--tieba-style-soft:#1e2332;--tieba-style-active:#1d2a44;--tieba-style-blue:#5b9bff;--tieba-style-blue-dark:#4a86e8;--tieba-style-link:#7cc0ff;background:var(--tieba-style-bg);color:var(--tieba-style-text)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .footer{color:#636a80}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-hero-btn{background:rgba(23,27,39,.92);color:var(--tieba-style-title)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-search:focus-within{background:var(--tieba-style-card)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-menu-exit button:hover{background:#2a2f3a}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-rank-no{background:#2a2f3a;color:#8b91a0}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-rank-no.is-1{background:#5457e6}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-rank-no.is-2{background:#7c4ddb}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-rank-no.is-3{background:#8f6fe0}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-modal-panel{box-shadow:0 18px 50px rgba(0,0,0,.6)}
/* 黑夜模式：发帖页 / 回帖区 / 编辑器都要跟着变暗（否则整页白底刺眼） */
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .form-panel,
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .reply-panel,
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .reply-edit-panel{background:var(--tieba-style-card);color:var(--tieba-style-text)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .nb-editor-bar{background:var(--tieba-style-soft);border-bottom-color:var(--tieba-style-line)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .nb-editor-field>.grid>textarea[name=body]{background:var(--tieba-style-soft);color:var(--tieba-style-text)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .form-panel input,
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .form-panel select,
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .form-panel textarea{background:var(--tieba-style-soft);color:var(--tieba-style-text);border-color:var(--tieba-style-line)}
/* 黑夜模式：内核的布局容器与侧栏卡片也要变暗（发帖页整块白底的元凶） */
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .home-shell,
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .main-panel,
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .card,
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .box,
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .panel{background:var(--tieba-style-card);color:var(--tieba-style-text);border-color:var(--tieba-style-line)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .card input,
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .card textarea,
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .card select,
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .box input,
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .box textarea{background:var(--tieba-style-soft);color:var(--tieba-style-text);border-color:var(--tieba-style-line)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .attachment-drop-float{background:var(--tieba-style-soft)!important;color:var(--tieba-style-muted)!important;border-color:var(--tieba-style-line)!important}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .topic-extension-card{background:var(--tieba-style-soft);color:var(--tieba-style-text);border-color:var(--tieba-style-line)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .tieba-style-mfile,
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .attachment-input{background:var(--tieba-style-soft);color:var(--tieba-style-text);border-color:var(--tieba-style-line)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .tieba-style-mfield{background:var(--tieba-style-card);color:var(--tieba-style-text)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .tieba-style-minput{background:var(--tieba-style-soft);color:var(--tieba-style-text)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-body .tieba-style-mtools{background:var(--tieba-style-card);border-top-color:var(--tieba-style-line)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-topbtn{box-shadow:0 2px 10px rgba(0,0,0,.5)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-left-rail{box-shadow:0 2px 8px rgba(0,0,0,.45)}
html[data-color-scheme-dark-mode-theme="dark"] .tieba-style-fdot.is-hero{border-color:rgba(255,255,255,.35)}

/* ---------- 窄屏：收起左右栏，卡片贴边 ---------- */
@media (max-width:1000px){
  .tieba-style-cols,.tieba-style-cols.no-side{grid-template-columns:210px minmax(0,1fr)}
  .tieba-style-right{display:none}
}
/* ---------- 移动端底部导航：首页 / 板块 / 发帖 / 通知 / 我的 ---------- */
.tieba-style-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:90;display:none;align-items:center;height:58px;padding:0 4px;background:var(--tieba-style-card);border-top:1px solid var(--tieba-style-line);box-shadow:0 -1px 8px rgba(15,23,42,.04)}
.tieba-style-tabbar-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex:1 1 0;height:100%;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-11);text-decoration:none}
.tieba-style-tabbar-item .tieba-style-icon{width:21px;height:21px}
.tieba-style-tabbar-item.is-active{color:var(--tieba-style-blue)}
.tieba-style-tabbar-post{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:44px;height:44px;margin:0 6px;border:0;border-radius:50%;background:var(--tieba-style-blue);color:#fff;box-shadow:0 4px 12px rgba(59,110,245,.32);cursor:pointer}
.tieba-style-tabbar-post:hover{background:var(--tieba-style-blue-dark);color:#fff}
.tieba-style-tabbar-post .tieba-style-icon{width:24px;height:24px;stroke-width:2}
/* 板块列表页 */
/* 全部版块页：铺满内容区宽度（原先限宽 1080 居中，左右留白太大） */
.tieba-style-forums-page{max-width:none;margin:0}
/* 外层不再套大白卡 + 内容区左右内边距收紧：整页版块列表贴住内容区，左右空位从 ~60px 降到 ~28px */
.tieba-style-center.tieba-style-center-flush{padding:10px 12px 32px}
.tieba-style-plain.tieba-style-plain-flush{background:transparent;padding:0;border-radius:0}
.tieba-style-forums-title{margin:0 0 2px;grid-column:1 / -1;font-size:var(--tieba-style-font-18);color:var(--tieba-style-title);font-weight:700}
.tieba-style-forums-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;padding:16px;background:var(--tieba-style-card);border:1px solid var(--tieba-style-line);border-radius:14px}
/* 全部版块页的版块卡片：图标 + 名称 + 主题/回帖，下方浅色简介框 */
.tieba-style-ftile{display:block;padding:16px 18px;background:var(--tieba-style-card);border:1px solid var(--tieba-style-line);border-radius:14px;text-decoration:none;color:inherit;transition:box-shadow .15s ease,transform .15s ease}
.tieba-style-ftile:hover{box-shadow:0 8px 20px rgba(15,23,42,.08);transform:translateY(-1px)}
.tieba-style-ftile-head{display:flex;align-items:center;gap:14px;min-width:0}
.tieba-style-ftile .tieba-style-fdot{width:56px;height:56px;border-radius:12px;font-size:var(--tieba-style-font-22)}
.tieba-style-ftile-main{min-width:0;flex:1 1 auto}
.tieba-style-ftile-name{margin:0;font-size:var(--tieba-style-font-17);font-weight:700;color:var(--tieba-style-title);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tieba-style-ftile-stat{margin:6px 0 0;display:flex;gap:18px;font-size:var(--tieba-style-font-13_5);color:var(--tieba-style-muted)}
.tieba-style-ftile-desc{margin-top:14px;padding:12px 14px;border-radius:10px;background:var(--tieba-style-soft);color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13_5);line-height:1.6}
/* 版块列表：左侧「全部版块」一块、右侧「本版热门」一块，各自成卡；窄屏自动堆成一列 */
.tieba-style-forums-cols{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.tieba-style-forums-side{min-width:0;padding:16px;background:var(--tieba-style-card);border:1px solid var(--tieba-style-line);border-radius:14px}
.tieba-style-forums-side .tieba-style-hotcard{margin-top:0;background:transparent;border-radius:0;padding:0}
.tieba-style-forums-side .tieba-style-hothead{margin-bottom:4px}
@media (max-width:1080px){
  .tieba-style-forums-cols{grid-template-columns:minmax(0,1fr)}
  .tieba-style-forums-side .tieba-style-hotcard{margin-top:0}
}
/* 右栏里位置窄：藏掉多余的版块名、压缩切换按钮，保证标题和作者不被挤掉 */
.tieba-style-right .tieba-style-pitem-forum{display:none}
.tieba-style-right .tieba-style-hottab{padding:0 9px;font-size:var(--tieba-style-font-12_5)}
.tieba-style-right .tieba-style-hothead{gap:8px}
.tieba-style-right .tieba-style-hotcard{padding:14px 14px 4px}
/* ---------- 首页右侧「每日签到」卡 ---------- */
/* 签到卡在右栏是第一张卡：去掉外边距，顶部与板块/内容页的右栏首卡对齐（列内间距交给 gap） */
.tieba-style-ckcard{background:var(--tieba-style-card);border-radius:14px;padding:16px 18px}
.tieba-style-ckhead{display:flex;align-items:center;gap:10px}
.tieba-style-ckhead h2{margin:0;font-size:var(--tieba-style-font-17);color:var(--tieba-style-title)}
.tieba-style-ck-avas{display:inline-flex;margin-left:auto}
.tieba-style-ck-ava{display:block;width:30px;height:30px;border-radius:50%;overflow:hidden;margin-left:-9px;border:2px solid var(--tieba-style-card);background:transparent;transition:transform .12s ease}
.tieba-style-ck-ava:first-child{margin-left:0}
.tieba-style-ck-ava:hover{transform:translateY(-2px);background:transparent}
.tieba-style-ck-ava img{display:block;width:100%;height:100%;object-fit:cover}
.tieba-style-ck-sub{margin:6px 0 0;font-size:var(--tieba-style-font-13_5);color:var(--tieba-style-muted)}
.tieba-style-ck-sub b{color:var(--tieba-style-blue)}
/* 连签阶梯：每天一张小卡（第N天 + 礼物圆标 + 积分），当天高亮成蓝框浅蓝底、圆标换成对勾 */
.tieba-style-ck-ladder{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
.tieba-style-ck-day{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px 10px;border:1px dashed var(--tieba-style-line);border-radius:12px;background:var(--tieba-style-soft);text-align:center}
.tieba-style-ck-day b{font-size:var(--tieba-style-font-13);color:var(--tieba-style-title);white-space:nowrap}
.tieba-style-ck-ic{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--tieba-style-card);border:1px solid var(--tieba-style-line)}
.tieba-style-ck-ic .tieba-style-icon{width:17px;height:17px;color:var(--tieba-style-muted)}
.tieba-style-ck-pts{font-size:var(--tieba-style-font-11_5);color:var(--tieba-style-muted);white-space:nowrap}
.tieba-style-ck-day.is-now{border-style:solid;border-color:var(--tieba-style-blue);background:var(--tieba-style-active)}
.tieba-style-ck-day.is-now .tieba-style-ck-ic{background:var(--tieba-style-card);border-color:transparent}
.tieba-style-ck-day.is-now .tieba-style-ck-ic .tieba-style-icon{color:var(--tieba-style-blue)}
.tieba-style-ck-day.is-now b,.tieba-style-ck-day.is-now .tieba-style-ck-pts{color:var(--tieba-style-blue)}
.tieba-style-ck-btn{display:flex;align-items:center;justify-content:center;width:100%;height:44px;margin-top:14px;border:0;border-radius:12px;background:var(--tieba-style-blue);color:#fff;font-family:inherit;font-size:var(--tieba-style-font-15);font-weight:600;cursor:pointer;text-decoration:none}
.tieba-style-ck-btn:hover{background:#2a63d0;color:#fff!important}
.tieba-style-ck-btn:disabled{background:#c9d6f2;cursor:default}
/* 「本版热门」：标题 + 最新/阅读量/回帖量切换 + 帖子条目（左小图 + 标题，下方作者与阅读/回帖） */
.tieba-style-hotcard{margin-top:16px;background:var(--tieba-style-card);border-radius:14px;padding:16px 18px 8px}
.tieba-style-hothead{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.tieba-style-hothead h2{margin:0;font-size:var(--tieba-style-font-16);color:var(--tieba-style-title)}
.tieba-style-hottabs{display:inline-flex;align-items:center;gap:2px;margin-left:auto;padding:3px;border-radius:999px;background:var(--tieba-style-soft)}
.tieba-style-hottab{display:inline-flex;align-items:center;height:26px;padding:0 12px;border-radius:999px;color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);text-decoration:none;white-space:nowrap}
.tieba-style-hottab:hover{color:var(--tieba-style-blue)}
.tieba-style-hottab.is-active{background:var(--tieba-style-card);color:var(--tieba-style-blue);font-weight:600;box-shadow:0 1px 3px rgba(15,23,42,.1)}
/* 热门帖子：标题卡内的一条条列表（不再拆成独立卡片） */
.tieba-style-plist{display:flex;flex-direction:column}
.tieba-style-pitem{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-bottom:1px solid var(--tieba-style-line);text-decoration:none;color:inherit}
.tieba-style-pitem:last-child{border-bottom:0}
/* 图片在上、标题在下；没图时这个元素整个不输出，只剩标题 */
.tieba-style-pitem-thumb{flex:0 0 auto;display:block;width:100%;aspect-ratio:16/9;max-height:180px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#e8efff,#f3f6ff)}
.tieba-style-pitem-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.tieba-style-pitem-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:8px}
.tieba-style-pitem-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--tieba-style-font-15);line-height:1.5;font-weight:400;color:var(--tieba-style-title);word-break:break-word}
/* 管理组加粗的主题：热门列表 / 侧栏榜里的标题一起加粗（800） */
.tieba-style-pitem-title.is-bold{font-weight:800}
.tieba-style-pitem:hover .tieba-style-pitem-title{color:var(--tieba-style-blue)}
.tieba-style-pitem-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:var(--tieba-style-font-12_5);color:var(--tieba-style-muted)}
.tieba-style-pitem-who{display:inline-flex;align-items:center;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-pitem-ava{flex:0 0 auto;display:block;width:18px;height:18px;border-radius:50%;overflow:hidden;background:var(--tieba-style-soft)}
.tieba-style-pitem-ava img{width:100%;height:100%;object-fit:cover;display:block}
.tieba-style-pitem-forum{font-style:normal;color:var(--tieba-style-muted);max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-pitem-nums{margin-left:auto;display:inline-flex;align-items:center;gap:14px}
.tieba-style-pitem-num{display:inline-flex;align-items:center;gap:4px;font-style:normal}
.tieba-style-pitem-num .tieba-style-icon{width:15px;height:15px}
/* 搜索页：大搜索框 + 范围切换 + 贴吧帖子行结果 */
.tieba-style-searchpage{max-width:1080px;margin:0 auto}
.tieba-style-sform{display:flex;align-items:center;gap:8px;padding:0 6px 0 14px;height:44px;border-radius:999px;background:var(--tieba-style-card);border:1px solid var(--tieba-style-line)}
.tieba-style-sform:focus-within{border-color:var(--tieba-style-blue);box-shadow:0 0 0 3px rgba(59,110,245,.12)}
.tieba-style-sform input[type=search]{flex:1 1 auto;min-width:0;height:42px;border:0;background:none;color:var(--tieba-style-title);font-size:var(--tieba-style-font-15);font-family:inherit}
.tieba-style-sform input[type=search]:focus{outline:none}
/* 搜索框内的蓝色「搜索」按钮：与 X 一样，空输入时 hidden（脚本控制），有内容才出现 */
.tieba-style-sbtn{flex:0 0 auto;height:30px;min-height:0;padding:0 16px;border:0;border-radius:999px;background:var(--tieba-style-blue);color:#fff;font-size:var(--tieba-style-font-13_5);font-family:inherit;cursor:pointer}
.tieba-style-sbtn:hover{background:var(--tieba-style-blue-dark)}
.tieba-style-sbtn[hidden]{display:none!important}
/* 结果页大搜索框（44px 高）：按钮 32px 高，上下留 6px、右侧留 6px，与上下间隙一致 */
.tieba-style-sform .tieba-style-sbtn{height:32px}
/* 顶栏胶囊（36px 高）：按钮矮一档 */
.tieba-style-search .tieba-style-sbtn{height:26px;padding:0 13px;font-size:var(--tieba-style-font-13)}
/* 搜索框内的「× 清空关键词」按钮：无底细线样式（任何状态下都无背景色，保持灰色 ×），
   输入关键词后才显示（脚本控制 hidden） */
.tieba-style-sclear{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;min-height:0;padding:0;border:0;border-radius:50%;background:none!important;color:var(--tieba-style-muted);cursor:pointer;box-shadow:none;outline:none}
.tieba-style-sclear:hover{background:none!important;color:var(--tieba-style-title)}
.tieba-style-sclear:focus,.tieba-style-sclear:focus-visible,.tieba-style-sclear:active{background:none!important;outline:none;box-shadow:none}
/* 关键：自定义 display 会覆盖 hidden 属性的 UA 默认 display:none，必须显式补回，
   否则空输入框时 X 也会一直显示（hidden 失效） */
.tieba-style-sclear[hidden]{display:none!important}
.tieba-style-sclear:hover{color:var(--tieba-style-title)}
.tieba-style-sclear .tieba-style-icon{width:16px;height:16px}
.tieba-style-sform button:hover{background:var(--tieba-style-blue-dark)}
/* 搜索结果页的帖子行：不用首页那种「文字左、缩略图右」两列 grid（窄屏会挤压错位），
   统一纵排：作者/标题在上，图片横排一行在标题下面，操作条在最后 */
.tieba-style-searchpage .tieba-style-row{display:block}
.tieba-style-searchpage .tieba-style-row>.tieba-style-thumbs{width:auto;max-width:100%;margin:8px 0 0;justify-self:auto;align-self:auto}
.tieba-style-sfields{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0;padding:0;border:0}
.tieba-style-sradio{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:var(--tieba-style-card);border:1px solid var(--tieba-style-line);color:var(--tieba-style-text);font-size:var(--tieba-style-font-13);cursor:pointer;user-select:none;white-space:nowrap}
.tieba-style-sradio:hover{color:var(--tieba-style-blue);border-color:var(--tieba-style-blue)}
.tieba-style-sradio:has(input:checked){background:var(--tieba-style-blue);border-color:var(--tieba-style-blue);color:#fff}
.tieba-style-sradio input[type=radio]{margin:0;accent-color:var(--tieba-style-blue);cursor:pointer}
.tieba-style-sfield{padding:5px 14px;border-radius:999px;background:var(--tieba-style-card);color:var(--tieba-style-text);font-size:var(--tieba-style-font-13);text-decoration:none}
.tieba-style-sfield:hover{color:var(--tieba-style-blue)}
.tieba-style-sfield.is-active{background:var(--tieba-style-blue);color:#fff}
.tieba-style-shead{margin:4px 0 10px;font-size:var(--tieba-style-font-13);color:var(--tieba-style-muted)}
.tieba-style-spager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.tieba-style-spager a{display:inline-flex;align-items:center;height:34px;padding:0 18px;border-radius:999px;background:var(--tieba-style-card);color:var(--tieba-style-blue);font-size:var(--tieba-style-font-14);text-decoration:none}
.tieba-style-spager a:hover{background:var(--tieba-style-active)}
@media (max-width:820px){
  .tieba-style-pitem-thumb{width:100%;max-height:150px}
  .tieba-style-hotcard{padding:12px 12px 4px;border-radius:12px}
  .tieba-style-sform{height:40px}
  /* 看图模式：移动端每行 2 张，别太窄 */
  .tieba-style-gallery{grid-template-columns:repeat(2,minmax(0,1fr));--tieba-style-masonry-cols:2}
  .tieba-style-gallery-wrap{padding:12px 14px 30px}
}
@media (max-width:820px){
  .tieba-style-body{background:var(--tieba-style-bg)}
  .tieba-style-cols,.tieba-style-cols.no-side{grid-template-columns:minmax(0,1fr)}
  .tieba-style-left{display:none}
  .tieba-style-cols>.tieba-style-center{grid-column:1}
  .tieba-style-center{padding:10px 10px 28px}
  .tieba-style-body .footer{margin:0 10px 20px}
  /* 底部导航：只在移动端出现，并给页面留出高度避免遮挡内容 */
  .tieba-style-tabbar{display:flex}
  body.tieba-style-body{padding-bottom:58px}
  .tieba-style-topbtn{bottom:70px}
  .tieba-style-top-inner{height:50px;gap:8px;padding:0 10px}
  .tieba-style-brand-text{display:none}
  .tieba-style-mark{width:28px;height:28px;font-size:var(--tieba-style-font-15)}
  /* 手机端 Logo 最高 30px，且不让它挤掉搜索框 */
  .tieba-style-brand .tieba-style-logo{height:min(30px,var(--tieba-style-logo-h,30px));max-width:140px}
  /* 手机端作者行：字号与勋章再收一点，保证「用户名 + 用户组 + 勋章」能挤在一行 */
  .tieba-style-row-line,.tieba-style-card-line{gap:5px}
  .tieba-style-row-sub,.tieba-style-card-sub{gap:8px;font-size:var(--tieba-style-font-12)}
  .tieba-style-row-name{font-size:var(--tieba-style-font-13_5)}
  .tieba-style-group{padding:2px 5px}
  .tieba-style-medals img{height:18px;max-width:72px}
  /* 移动端小图模式：缩略图固定在右侧列，超出自动换行堆叠，绝不会压到左侧用户名 */
  /* 移动端小图模式：整行竖排已由上面的 [data-tieba-style-viewmode="row"] 规则统一处理，这里只把缩略图左对齐 */
  .tieba-style-row>.tieba-style-thumbs{max-width:100%}
  [data-tieba-style-viewmode="row"] .tieba-style-thumbs.is-list{flex-wrap:wrap;justify-content:flex-start}
  /* 移动端顶栏不再内联输入：整块换成跳转 /search 的按钮，点击进搜索页再输入 */
  .tieba-style-search{display:none}
  .tieba-style-search-link{flex:0 1 auto;display:inline-flex;align-items:center;gap:7px;min-width:150px;height:32px;padding:0 18px;border-radius:999px;background:var(--tieba-style-soft);color:var(--tieba-style-muted);font-size:var(--tieba-style-font-13);text-decoration:none}
  .tieba-style-search-link:active{background:var(--tieba-style-line)}
  .tieba-style-search-link .tieba-style-search-icon{width:15px;height:15px}
  .tieba-style-post{height:32px;padding:0 12px;font-size:var(--tieba-style-font-13)}
  .tieba-style-post span{display:none}
  .tieba-style-post .tieba-style-icon{width:17px;height:17px}
  .tieba-style-tools{display:none}
  /* 移动端保留签到入口（不放进被隐藏的 tools），只留图标、收成小圆角块 */
  .tieba-style-top .tieba-style-ckentry{height:32px;padding:0 9px;font-size:var(--tieba-style-font-13)}
  .tieba-style-top .tieba-style-ckentry span{display:none}
  .tieba-style-me{width:32px;height:32px}
  .tieba-style-menu{width:min(320px,calc(100vw - 24px));right:-6px;padding:14px 12px 12px}
  .tieba-style-hero{height:150px;border-radius:10px}
  .tieba-style-hero-text h1{font-size:var(--tieba-style-font-17)}
  .tieba-style-hero-body{padding:12px}
  .tieba-style-hero-btn{height:30px;padding:0 14px;font-size:var(--tieba-style-font-13)}
  .tieba-style-listbar{padding:6px 10px;border-radius:10px}
  .tieba-style-sortseg-btn{padding:0 12px;font-size:var(--tieba-style-font-12_5)}
  .tieba-style-viewseg .tieba-style-viewseg-btn{padding:0 11px;font-size:var(--tieba-style-font-12_5)}
  .tieba-style-feed{padding:0 14px 4px}
  .tieba-style-feed-home{gap:10px;padding:0}
  .tieba-style-card,.tieba-style-replies,.tieba-style-editor,.tieba-style-sidecard,.tieba-style-pager,.tieba-style-empty{border-radius:10px}
  .tieba-style-card{padding:14px}
  .tieba-style-card-title{font-size:var(--tieba-style-font-16)}
  /* 全部版块页：移动端单列，图标与字号放大一档 */
  .tieba-style-forums-grid{grid-template-columns:minmax(0,1fr);gap:12px;padding:14px}
  .tieba-style-ftile{padding:18px}
  .tieba-style-ftile .tieba-style-fdot{width:76px;height:76px;border-radius:16px;font-size:var(--tieba-style-font-28)}
  .tieba-style-ftile-name{font-size:var(--tieba-style-font-20)}
  .tieba-style-ftile-stat{margin-top:8px;font-size:var(--tieba-style-font-15);gap:20px}
  .tieba-style-ftile-desc{margin-top:16px;padding:14px 16px;border-radius:12px;font-size:var(--tieba-style-font-15)}
  .tieba-style-card-text{font-size:var(--tieba-style-font-14)}
  .tieba-style-card-ops,.tieba-style-row-ops{gap:0;justify-content:space-between}
  .tieba-style-card-img{width:100%;height:190px}
  [data-tieba-style-viewmode="grid"] .tieba-style-thumbs.is-list.is-single{grid-template-columns:minmax(0,100%)}
  /* 移动端单视频与单图同规格：全宽、4:3 */
  [data-tieba-style-viewmode="grid"] .tieba-style-vcards.is-single{grid-template-columns:minmax(0,100%)}
  [data-tieba-style-viewmode="row"] .tieba-style-thumbs.is-list .tieba-style-thumbcell{width:56px;flex:0 1 56px}
  /* 移动端视频卡片与图片缩略图同步 56px */
  [data-tieba-style-viewmode="row"] .tieba-style-vcards .tieba-style-vcard-media{width:56px;height:56px}
  .tieba-style-row-title{font-size:var(--tieba-style-font-15)}
  /* 移动端：标题后的徽章与标题末字贴得更近一些 */
  .tieba-style-card-suffix,.tieba-style-row-suffix{margin-left:2px}
  /* 小图模式地方更窄：类型标签收一点，好让徽章还能贴在标题最后一个字后面 */
  [data-tieba-style-viewmode="row"] .tieba-style-kind{padding:0 4px;font-size:var(--tieba-style-font-11);margin-right:4px}
  [data-tieba-style-viewmode="row"] .tieba-style-tag{padding:0 4px;font-size:var(--tieba-style-font-11);margin-right:4px}
  .tieba-style-replies{padding:0 14px 4px}
  /* 移动端左右留白与吧页一致（正文起始位置都是 24px） */
  .tieba-style-profile,.tieba-style-plain{padding:14px}
  .tieba-style-main-list{padding-top:14px}
  .tieba-style-replies .post-avatar{width:36px;height:36px}
  .tieba-style-replies .post-content{font-size:var(--tieba-style-font-15)}
  .tieba-style-topic-title h1{font-size:var(--tieba-style-font-17)}
  .tieba-style-replyhead-l{gap:16px}
  .tieba-style-replyhead h2{font-size:var(--tieba-style-font-15)}
  .tieba-style-onlylz{font-size:var(--tieba-style-font-14)}
  .tieba-style-editor{padding:12px 14px}
  .tieba-style-modal{padding:0;align-items:flex-end}
  .tieba-style-modal-panel{max-width:none;max-height:92vh;border-radius:14px 14px 0 0;padding:16px 14px 14px}
  .tieba-style-mrow{flex-direction:column;align-items:stretch;gap:8px}
  .tieba-style-mselect{flex:1 1 auto;width:100%}
  .tieba-style-mrow .tieba-style-mselect{width:100%}
  .tieba-style-mhint{display:none}
  .tieba-style-mtext{min-height:150px}
  .tieba-style-mpop.is-emoji,.tieba-style-mpop.is-at{left:0;right:0;width:auto}
  .tieba-style-mtool span{display:none}
  .tieba-style-mfoot{flex-direction:column;align-items:stretch;gap:10px}
  .tieba-style-mpublish{width:100%}
  .tieba-style-topbtn{left:12px;bottom:70px;width:36px;height:36px}
}

/* ---------- 后台：版块图标 ---------- */
.tieba-style-admin-forum{margin:18px 0 4px;padding-top:16px;border-top:1px solid var(--line,#ebeef2)}
.tieba-style-admin-forum h3{margin:0 0 6px;font-size:var(--tieba-style-font-15)}
.tieba-style-admin-forum .muted{margin:0 0 12px;font-size:var(--tieba-style-font-13);color:var(--text-subtle,#9498a0);line-height:1.6}
.tieba-style-forum-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-top:1px solid var(--line-soft,#f0f2f5)}
.tieba-style-forum-row:first-of-type{border-top:0}
.tieba-style-forum-prev{flex:0 0 auto;width:40px;height:40px;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#eef2ff;color:#3b6ef5;font-size:var(--tieba-style-font-15);font-weight:600}
.tieba-style-forum-prev img{width:100%;height:100%;object-fit:cover;display:block}
.tieba-style-forum-name{flex:0 0 140px;min-width:0;color:var(--text,#1f2126);font-size:var(--tieba-style-font-14);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tieba-style-forum-row input[type=file]{flex:1 1 auto;min-width:0;font-size:var(--tieba-style-font-13)}
.tieba-style-forum-clear{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;color:var(--text-subtle,#9498a0);font-size:var(--tieba-style-font-13);white-space:nowrap;cursor:pointer}
/* 后台：站点 Logo / Favicon 上传行 */
.tieba-style-logo-row{display:flex;align-items:flex-start;gap:14px;padding:12px 0;border-top:1px solid var(--line-soft,#f0f2f5)}
.tieba-style-logo-row:first-of-type{border-top:0}
.tieba-style-logo-prev{flex:0 0 auto;width:120px;height:60px;border-radius:8px;border:1px solid var(--line,#ebeef2);background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.tieba-style-logo-prev.is-favicon{width:64px;height:64px}
.tieba-style-logo-prev img{display:block;max-width:100%;max-height:100%}
.tieba-style-logo-prev span{font-size:var(--tieba-style-font-12);color:var(--text-subtle,#9498a0)}
.tieba-style-logo-meta{flex:1 1 auto;min-width:0;display:grid;gap:6px;font-size:var(--tieba-style-font-13)}
.tieba-style-logo-meta b{font-size:var(--tieba-style-font-14);color:var(--text,#1f2126)}
.tieba-style-logo-meta small{color:var(--text-subtle,#9498a0);line-height:1.6}
.tieba-style-logo-meta input[type=file]{font-size:var(--tieba-style-font-13)}

.tieba-style-vcard-cover{display:block;width:100%;height:100%;object-fit:cover;background:#000}
.tieba-style-gallery-dl{cursor:pointer}
/* video_player */
.bbs-video-wrap{
    margin:16px 0;
}
/* PC端：高度固定400px */
.bbs-video-player{
    width:100%;
    height:400px;
    border-radius:8px;
    background:#000000;
    object-fit:contain;
}
.bbs-video-iframe-wrap{
    position:relative;
    width:100%;
    height:400px;
    margin:16px 0;
    border-radius:8px;
    overflow:hidden;
}
.bbs-video-iframe-wrap iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:0;
}
/* YouTube 点击加载占位 */
.bbs-youtube-placeholder{
    position:relative;
    width:100%;
    height:400px;
    margin:16px 0;
    border-radius:8px;
    overflow:hidden;
    background:#000000;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#ffffff;
    cursor:pointer;
    user-select:none;
}
.bbs-youtube-placeholder:focus{
    outline:2px solid #4a9eff;
    outline-offset:-2px;
}
.bbs-youtube-placeholder .bbs-youtube-icon{
    width:64px;
    height:64px;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    line-height:1;
}
.bbs-youtube-placeholder .bbs-youtube-text{
    font-size:14px;
    color:#dddddd;
}
.bbs-youtube-placeholder .bbs-youtube-tip{
    font-size:12px;
    color:#999999;
}
.bbs-youtube-placeholder iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:0;
    background:#000000;
}
.bbs-youtube-placeholder.is-ready{
    cursor:default;
}
/* 移动端：高度固定350px */
@media(max-width:768px){
    .bbs-video-player{
        width:100%;
        height:350px;
    }
    .bbs-video-iframe-wrap{
        width:100%;
        height:350px;
    }
    .bbs-youtube-placeholder{
        width:100%;
        height:350px;
    }
}

.douyin-video{display:block;width:324px;max-width:100%;height:672px;margin:12px 0;border-radius:var(--radius-sm);overflow:hidden}
.douyin-video.is-ready{position:relative;background:var(--inverse)}
.douyin-video-frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0;background:var(--inverse)}
.douyin-video-loading{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;height:100%;padding:0 12px;color:var(--text-muted);font-size:var(--font-size-sm)}
.douyin-video-fallback{color:var(--text-muted);font-size:var(--font-size-sm);text-decoration:none;opacity:.6}
.douyin-video-fallback:hover{opacity:1;color:var(--brand)}
.douyin-video.is-ready .douyin-video-loading{display:none}
