/* 版块标签管理 - /tags-admin 页面样式（全部类名带 ybt 前缀，不影响站点其它页面） */

body { margin: 0; background: #f3f5f7; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }

.ybt-denied { max-width: 420px; margin: 120px auto; text-align: center; background: #fff; border-radius: 12px; padding: 48px 32px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.ybt-denied i { font-size: 48px; color: #e53935; }
.ybt-denied h2 { margin: 16px 0 8px; }
.ybt-denied p { color: #888; }
.ybt-denied a { color: #336699; }

.ybt-header { background: #fff; border-bottom: 1px solid #e8eaed; padding: 16px 28px; display: flex; align-items: baseline; gap: 16px; }
.ybt-title { font-size: 18px; font-weight: 600; }
.ybt-title i { color: #336699; }
.ybt-header-desc { font-size: 13px; color: #999; }

.ybt-body { display: flex; gap: 20px; padding: 20px 28px; max-width: 1400px; margin: 0 auto; align-items: flex-start; }

.ybt-sidebar { width: 220px; flex-shrink: 0; background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.04); position: sticky; top: 20px; }
.ybt-sidebar-title { font-size: 13px; color: #999; margin-bottom: 10px; }
.ybt-bbs-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.ybt-bbs-item:hover { background: #f0f4f9; }
.ybt-bbs-item.active { background: #336699; color: #fff; }
.ybt-bbs-item.active .ybt-bbs-item-count { color: rgba(255,255,255,.75); }
.ybt-bbs-item-count { font-size: 12px; color: #aaa; }

.ybt-main { flex: 1; min-width: 0; }
.ybt-empty { background: #fff; border-radius: 10px; padding: 80px; text-align: center; color: #aaa; font-size: 15px; }

.ybt-main-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ybt-bbs-name { font-size: 17px; font-weight: 600; }
.ybt-bbs-stats { font-size: 13px; color: #999; margin-left: 8px; }

.ybt-panel { background: #fff; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.ybt-panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #666; margin-bottom: 12px; }
.ybt-panel-head em { color: #999; font-style: normal; }

.ybt-search { border: 1px solid #e0e3e8; border-radius: 6px; padding: 6px 12px; font-size: 13px; width: 200px; outline: none; }
.ybt-search:focus { border-color: #336699; }

.ybt-tag-pool { display: flex; flex-wrap: wrap; gap: 8px; max-height: 340px; overflow-y: auto; }
.ybt-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #e0e3e8; border-radius: 16px; font-size: 13px; cursor: pointer; user-select: none; background: #fff; transition: all .12s; }
.ybt-tag em { font-style: normal; font-size: 11px; color: #bbb; }
.ybt-tag:hover { border-color: #336699; color: #336699; }
.ybt-tag.on { background: #336699; border-color: #336699; color: #fff; }
.ybt-tag.on em { color: rgba(255,255,255,.7); }

.ybt-builder { display: flex; gap: 12px; align-items: center; }
.ybt-cat-input { flex: 1; max-width: 320px; border: 1px solid #e0e3e8; border-radius: 6px; padding: 9px 14px; font-size: 14px; outline: none; }
.ybt-cat-input:focus { border-color: #336699; }

.ybt-btn { border: none; border-radius: 6px; padding: 9px 18px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ybt-btn:disabled { opacity: .6; cursor: not-allowed; }
.ybt-btn-primary { background: #336699; color: #fff; }
.ybt-btn-primary b { font-weight: 600; }
.ybt-btn-ghost { background: #f0f2f5; color: #555; }
.ybt-btn-save { background: #e53935; color: #fff; font-size: 15px; padding: 11px 28px; }

.ybt-cat { border: 1px solid #e8eaed; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.ybt-cat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ybt-cat-head b { font-size: 14px; color: #336699; }
.ybt-cat-del { cursor: pointer; color: #ccc; }
.ybt-cat-del:hover { color: #e53935; }
.ybt-cat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ybt-cat-tag { display: inline-flex; align-items: center; gap: 4px; background: #f0f4f9; border-radius: 12px; padding: 4px 10px; font-size: 12px; color: #555; }
.ybt-cat-tag i { cursor: pointer; color: #bbb; font-size: 12px; }
.ybt-cat-tag i:hover { color: #e53935; }

.ybt-actions { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 10px; padding: 14px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.ybt-row-title-wrap { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #999; }
.ybt-row-title-wrap .ybt-cat-input { max-width: 220px; padding: 7px 12px; font-size: 13px; }

.ybt-msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.ybt-msg.ok { color: #2e7d32; }
.ybt-msg.err { color: #e53935; }

.ybt-loading { color: #aaa; font-size: 13px; padding: 20px; text-align: center; width: 100%; }

@media (max-width: 900px) {
    .ybt-body { flex-direction: column; padding: 12px; }
    .ybt-sidebar { width: 100%; position: static; }
    .ybt-actions { flex-direction: column; gap: 12px; align-items: stretch; }
}
