/* 媒介发稿平台 - UI 样式（对齐 Naive UI 视觉规格） */
:root {
  --primary: #FF6633;
  --primary-hover: #FF8A5C;
  --primary-pressed: #D94821;
  --primary-weak: #FFF3ED;
  --primary-border: #FFD2BA;
  --success: #52C41A;
  --warning: #FAAD14;
  --error: #F5222D;
  --info: #D94821;
  --text: #333639;
  --text-2: #666A71;
  --text-3: #9CA0A6;
  --border: #E5E7EB;
  --border-2: #EEEFF2;
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, .12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }
.sider {
  width: 216px; background: #fff; border-right: 1px solid var(--border-2);
  display: flex; flex-direction: column; flex-shrink: 0; transition: width .2s;
}
.sider.collapsed { width: 64px; }
.logo {
  height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 18px;
  font-size: 18px; font-weight: 700; color: var(--primary); border-bottom: 1px solid var(--border-2);
  white-space: nowrap; overflow: hidden;
}
.logo img { width: 28px; height: 28px; }
.menu { flex: 1; overflow-y: auto; padding: 8px 0; }
.menu-group-title {
  padding: 12px 18px 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden;
}
.menu-item {
  display: flex; align-items: center; gap: 10px; height: 40px; margin: 2px 8px; padding: 0 10px;
  border-radius: 6px; cursor: pointer; color: var(--text-2); font-size: 14px; white-space: nowrap; overflow: hidden;
}
.menu-item:hover { background: #F6F7F9; color: var(--text); }
.menu-item.active { background: var(--primary-weak); color: var(--primary); font-weight: 600; }
.menu-item .mi-icon { width: 18px; height: 18px; flex-shrink: 0; }
.sider.collapsed .menu-group-title, .sider.collapsed .menu-item span { display: none; }

.header {
  height: 56px; background: #fff; border-bottom: 1px solid var(--border-2);
  display: flex; align-items: center; padding: 0 16px; gap: 16px; flex-shrink: 0;
}
.header .h-left { display: flex; align-items: center; gap: 12px; }
.header .h-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2);
}
.icon-btn:hover { background: #F3F4F6; color: var(--primary); }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.content { flex: 1; padding: 16px; overflow-y: auto; }

/* 页面切换过渡：轻淡入（仅 opacity，不用 transform——避免影响 fixed 定位与滚动） */
.page-anim { animation: pageIn .16s ease; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .page-anim { animation: none; } }

/* 点击微反馈：按下有轻微回缩，操作更有手感 */
.btn:active { transform: scale(.96); }
.menu-item { transition: background .15s, color .15s; }
.icon-btn { transition: background .15s, color .15s; }

/* 重点引导按钮：主色实底 + 呼吸光晕，便于快速定位 */
.btn-glow { animation: btnGlow 2.2s ease infinite; }
@keyframes btnGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 102, 51, .4); }
  70% { box-shadow: 0 0 0 9px rgba(255, 102, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 102, 51, 0); }
}
@media (prefers-reduced-motion: reduce) { .btn-glow { animation: none; } }

/* 面包屑 */
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.crumb b { color: var(--text); font-weight: 500; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px;
}
.card-title {
  font-size: 15px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.card-title::before { content: ''; width: 3px; height: 14px; background: var(--primary); border-radius: 2px; }
.card-title .extra { margin-left: auto; font-weight: 400; font-size: 13px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: 14px; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-primary:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-text { border: none; background: transparent; color: var(--primary); padding: 0 6px; height: auto; }
.btn-text:hover { background: transparent; opacity: .8; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 40px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-danger { color: var(--error); border-color: #FFCCC7; }
.btn-danger:hover { border-color: var(--error); color: var(--error); }

/* ---------- 表单 ---------- */
.field { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.field label { width: 72px; text-align: right; color: var(--text-2); font-size: 14px; flex-shrink: 0; }
.input, .select, .textarea {
  height: 34px; border: 1px solid var(--border); border-radius: 6px; padding: 0 12px; font-size: 14px;
  color: var(--text); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; min-width: 180px;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 2px rgba(255, 102, 51, .12);
}
.textarea { height: auto; padding: 8px 12px; line-height: 1.6; width: 100%; min-height: 100px; resize: vertical; }
.input.sm { height: 30px; }
.form-item { margin-bottom: 16px; }
.form-item > .fi-label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-2); }
.form-item .input, .form-item .select { width: 100%; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th {
  background: #FAFAFA; font-weight: 600; color: var(--text-2); text-align: left;
  padding: 10px 12px; border-bottom: 1px solid var(--border-2); white-space: nowrap;
}
table.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
/* 表格操作列按钮间距（含换行后的行距） */
table.tbl td .btn { margin: 2px 6px 2px 0; }
table.tbl tbody tr:hover { background: #FAFBFC; }
table.tbl .ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 60px 0; text-align: center; color: var(--text-3); }
.empty svg { opacity: .4; margin-bottom: 8px; }

/* ---------- 标签 / 徽标 ---------- */
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px;
  font-size: 12px; background: #F1F2F4; color: var(--text-2); margin: 0 4px 4px 0;
}
.tag-primary { background: var(--primary-weak); color: var(--primary); border: 1px solid var(--primary-border); }
.tag-success { background: #F0F9EB; color: var(--success); border: 1px solid #D1EDC4; }
.tag-warning { background: #FDF6EC; color: #E6A23C; border: 1px solid #F5DAB1; }
.tag-error { background: #FEF0F0; color: var(--error); border: 1px solid #FBC4C4; }
.tag-info { background: #EAF2FE; color: #2F6FED; border: 1px solid #C6DBFB; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; border-bottom: 1px solid var(--border-2); margin-bottom: 14px; gap: 4px; }
.tab {
  padding: 8px 16px; cursor: pointer; color: var(--text-2); font-size: 14px; position: relative; border-radius: 6px 6px 0 0;
}
.tab:hover { color: var(--primary); background: #FAFAFA; }
.tab.active { color: var(--primary); font-weight: 600; }
.tab.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px;
}
.tab .badge { background: var(--error); color: #fff; border-radius: 8px; font-size: 11px; padding: 0 5px; margin-left: 4px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0 4px; }
.pager .pg-item {
  min-width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 6px; display: flex;
  align-items: center; justify-content: center; cursor: pointer; font-size: 13px; background: #fff;
}
.pager .pg-item:hover { border-color: var(--primary); color: var(--primary); }
.pager .pg-item.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .pg-item.disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.stat-card .sc-icon {
  width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card .sc-num { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat-card .sc-label { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.quick-item {
  background: #FAFBFC; border-radius: var(--radius); padding: 16px 8px; text-align: center; cursor: pointer; transition: all .15s;
}
.quick-item:hover { background: var(--primary-weak); transform: translateY(-2px); }
.quick-item .qi-icon { width: 26px; height: 26px; margin: 0 auto 8px; color: var(--primary); }
.quick-item .qi-text { font-size: 13px; color: var(--text-2); }

/* ---------- 筛选标签组 ---------- */
.filter-box { border: 1px solid var(--border-2); border-radius: var(--radius); padding: 4px 16px; margin-bottom: 16px; background: #fff; }
.filter-row { display: flex; padding: 10px 0; border-bottom: 1px dashed var(--border-2); }
.filter-row:last-child { border-bottom: none; }
.filter-row .fr-label {
  width: 84px; flex-shrink: 0; color: var(--text-3); font-size: 13px; padding-top: 4px;
}
.filter-row .fr-items { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.filter-row .fr-item {
  padding: 4px 12px; border-radius: 4px; cursor: pointer; font-size: 13px; color: var(--text-2); white-space: nowrap;
}
.filter-row .fr-item:hover { color: var(--primary); }
.filter-row .fr-item.active { background: var(--primary-weak); color: var(--primary); font-weight: 500; }
/* 后台停用的字典选项：表单区置灰不可选（报价页筛选条直接隐藏） */
.filter-row .fr-item.disabled { color: #C3C7CF; background: #F7F8FA; cursor: not-allowed; }
.filter-row .fr-item.disabled:hover { color: #C3C7CF; }
.filter-more { text-align: center; padding: 8px 0; color: var(--primary); cursor: pointer; font-size: 13px; }

/* ---------- 报价页排序条 / 收藏拉黑导出 ---------- */
.qsort-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.qsort-group { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qsort-btn { padding: 0 16px; height: 32px; line-height: 32px; font-size: 13px; cursor: pointer; background: #fff; border-right: 1px solid var(--border); user-select: none; white-space: nowrap; transition: all .15s; }
.qsort-btn:last-child { border-right: none; }
.qsort-btn:hover { color: var(--primary); }
.qsort-btn.active { background: var(--primary); color: #fff; font-weight: 500; }
.qsort-btn i { font-style: normal; font-size: 12px; }
.geo-g { display: inline-block; margin-left: 6px; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 4px; background: #2F6FED; color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.mini-tag { display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 4px; font-size: 11px; background: #F2F3F5; color: #86909C; vertical-align: 1px; }
.mini-tag.mt-green { background: #F0F9EB; color: #52C41A; }
.mini-tag.mt-red { background: #FEF0F0; color: #F5222D; }
.btn-fav { background: #FEF0F0; border-color: #FBCACA; color: #F5222D; }
.btn-fav.active { background: #F5222D; border-color: #F5222D; color: #fff; }
.btn-black { background: #FEF0F0; border-color: #FBCACA; color: #F5222D; }
.btn-black.active { background: #F5222D; border-color: #F5222D; color: #fff; }
.btn-export { background: #F0F9EB; border-color: #B7EB8F; color: #52C41A; }
.btn-export:hover { background: #52C41A; border-color: #52C41A; color: #fff; }
.op-cell { white-space: nowrap; }
.op-cell .btn { margin: 2px 4px 2px 0; }
.fav-on { background: #FFF7E6; border-color: #FFD591; color: #FA8C16; }
.black-on { background: #FEF0F0; border-color: #FBCACA; color: #F5222D; }

/* 收藏夹下拉面板 */
.fav-pop { position: absolute; top: calc(100% + 6px); right: 0; width: 210px; background: #fff; border: 1px solid var(--border-2); border-radius: 10px; box-shadow: var(--shadow-2); z-index: 60; overflow: hidden; }
.fav-pop .fp-item { position: relative; padding: 10px 34px 10px 14px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #F5F6F8; display: flex; align-items: center; gap: 8px; }
.fav-pop .fp-item:hover { background: #FFF8F5; }
.fav-pop .fp-item.active { color: var(--primary); font-weight: 500; background: #FFF3ED; }
.fav-pop .fp-item .muted { margin-left: auto; }
.fav-pop .fp-del { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; line-height: 16px; text-align: center; border-radius: 50%; color: #C9CDD4; font-size: 14px; }
.fav-pop .fp-del:hover { background: #FEF0F0; color: #F5222D; }
.fav-pop .fp-create { display: flex; gap: 6px; padding: 10px; }
.fav-pop .fp-create .input { flex: 1; min-width: 0; height: 30px; font-size: 12px; }

/* 收藏夹/黑名单视图筛选条件条（标签可 × 移除） */
.cond-bar { display: flex; align-items: center; gap: 10px; background: #FFF9F5; border: 1px solid #FFE3D1; border-radius: 8px; padding: 10px 16px; margin-bottom: 12px; font-size: 14px; flex-wrap: wrap; }
.cond-label { color: #8C4A1F; flex-shrink: 0; font-weight: 600; }
.cond-tag { display: inline-flex; align-items: center; gap: 7px; background: #FFEBDD; color: #F55522; border-radius: 6px; padding: 6px 12px; font-size: 14px; line-height: 1.2; }
.cond-x { cursor: pointer; font-style: normal; width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 50%; background: #FF6633; color: #fff; font-size: 13px; flex-shrink: 0; }
.cond-x:hover { background: #F55522; }
.cond-toggle { margin-left: auto; color: #FF6633; font-size: 13px; cursor: pointer; flex-shrink: 0; user-select: none; }
.cond-toggle:hover { color: #F55522; }

/* 公告编辑器（后台弹窗内） */
.notice-editor { border: 1px solid #DDD; border-radius: 6px; z-index: 100; background: #fff; }
.notice-editor .w-e-toolbar { background: #FAFAFA; border-radius: 6px 6px 0 0; }
.notice-editor .w-e-text-container { border-radius: 0 0 6px 6px; }
.notice-detail img { max-width: 100%; }

/* ---------- 推广中心 ---------- */
.promo-hero { display: flex; gap: 24px; background: #FFF9F5; border: 1px solid #FFE3D1; border-radius: 8px; padding: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.promo-hero .ph-code { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 180px; }
.promo-hero .ph-link { flex: 1; min-width: 260px; }
.promo-tips { color: #666A71; line-height: 2; margin-bottom: 4px; }
.promo-stats { display: flex; gap: 16px; margin-bottom: 14px; }
.promo-stats .ps-item { flex: 1; background: #FFF9F5; border: 1px solid #FFE3D1; border-radius: 8px; padding: 14px; text-align: center; }
.promo-stats .ps-num { font-size: 24px; font-weight: 700; color: #333; margin-bottom: 4px; }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal {
  background: #fff; border-radius: var(--radius); width: 560px; max-width: 92vw; max-height: 86vh; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-2);
  animation: modalIn .18s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  padding: 16px 20px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--border-2);
  display: flex; align-items: center;
}
.modal-head .close { margin-left: auto; cursor: pointer; color: var(--text-3); }
.modal-body { padding: 20px; overflow-y: auto; overflow-x: hidden; }
/* 弹窗内表单控件允许收缩，避免多列布局溢出错位 */
.modal-body .input, .modal-body .select, .modal-body .textarea { min-width: 0; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--border-2); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 消息提示 ---------- */
.toasts { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
/* 登录成功右下角欢迎弹窗（后台「右下角欢迎弹窗」开关控制） */
.welcome-pop { position: fixed; right: 20px; bottom: 20px; z-index: 2100; width: 300px; background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.13); padding: 14px 16px; }
.welcome-pop .wp-head { display: flex; align-items: center; gap: 8px; }
.welcome-pop .wp-icon { width: 22px; height: 22px; border-radius: 50%; background: #52C41A; display: flex; align-items: center; justify-content: center; flex: none; }
.welcome-pop .wp-close { margin-left: auto; color: #999; font-size: 16px; cursor: pointer; line-height: 1; }
.welcome-pop .wp-close:hover { color: #666; }
.welcome-pop .wp-body { margin-top: 8px; font-size: 13px; color: #555; }
.wp-fade-enter-active, .wp-fade-leave-active { transition: all .3s ease; }
.wp-fade-enter-from, .wp-fade-leave-to { opacity: 0; transform: translateY(12px); }
.toast {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 10px 16px;
  display: flex; align-items: center; gap: 8px; font-size: 14px; animation: slideIn .2s;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ---------- 登录页 ---------- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FF7A47 0%, #FF6633 45%, #F04E23 100%); position: relative; overflow: hidden;
}
.login-page::before {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); top: -160px; right: -120px;
}
.login-page::after {
  content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); bottom: -120px; left: -80px;
}
.login-box {
  display: flex; width: 900px; max-width: 94vw; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18); position: relative; z-index: 2;
}
.login-left {
  flex: 1; padding: 48px 44px; color: #fff; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(160deg, #FF8A5C, #FF6633 60%, #E8461C);
}
.login-left h1 { font-size: 30px; margin-bottom: 14px; font-weight: 700; }
.login-left p { opacity: .92; line-height: 1.9; font-size: 14px; }
.login-left .ll-list { margin-top: 22px; }
.login-left .ll-list div { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; opacity: .95; }
.login-right { width: 380px; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.login-right h2 { font-size: 22px; margin-bottom: 6px; }
.login-right .lr-title { font-size: 20px; font-weight: 700; color: var(--text-1, #262626); margin-bottom: 8px; }
.login-right .lr-sub { color: var(--text-3); font-size: 13px; margin-bottom: 26px; }
.login-right .input, .login-right .btn { width: 100%; }
.login-right .input { height: 42px; margin-bottom: 16px; }
.login-right .btn-lg { height: 42px; margin-top: 6px; }
.login-third { display: flex; justify-content: center; gap: 18px; margin-top: 22px; }
.login-third .lt-item {
  width: 38px; height: 38px; border-radius: 50%; background: #F5F6F8; display: flex; align-items: center;
  justify-content: center; cursor: pointer; color: var(--text-2);
}
.login-third .lt-item:hover { background: var(--primary-weak); color: var(--primary); }
.login-tip {
  margin-top: 18px; padding: 10px 12px; background: #FFF9F5; border: 1px dashed var(--primary-border);
  border-radius: 6px; font-size: 12px; color: #A2603F; line-height: 1.7;
}
.lr-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--text-3); }
.lr-links span { cursor: pointer; }
.lr-links span:hover { color: var(--primary); }

/* ---------- 编辑器 ---------- */
.editor-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.editor-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--border-2); background: #FAFBFC; flex-wrap: wrap;
}
.editor-bar .eb-btn {
  height: 28px; padding: 0 10px; border-radius: 4px; cursor: pointer; font-size: 13px; color: var(--text-2);
  display: flex; align-items: center; gap: 4px;
}
.editor-bar .eb-btn:hover { background: #EEF0F2; color: var(--primary); }
.editor-body { min-height: 320px; padding: 16px; outline: none; line-height: 1.8; font-size: 14px; }
.editor-body:empty::before { content: attr(data-placeholder); color: var(--text-3); }

/* ---------- 已选资源悬浮栏 ---------- */
.cart-bar {
  position: fixed; bottom: 0; left: 216px; right: 0; background: #fff; border-top: 1px solid var(--border-2);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .06); padding: 12px 20px; display: flex; align-items: center; gap: 16px; z-index: 50;
}
.cart-list { display: flex; gap: 8px; flex: 1; overflow-x: auto; }
.cart-item {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--primary-weak);
  border: 1px solid var(--primary-border); border-radius: 6px; font-size: 13px; white-space: nowrap;
}
.cart-item .ci-del { cursor: pointer; color: var(--text-3); }
.cart-item .ci-del:hover { color: var(--error); }

/* ---------- 杂项 ---------- */
.row { display: flex; gap: 16px; }
.row .col { flex: 1; min-width: 0; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.right { text-align: right; } .center { text-align: center; }
.flex { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.link { color: var(--primary); cursor: pointer; }
.link:hover { opacity: .8; }
.money { color: var(--primary); font-weight: 600; }
.notice-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border-2); font-size: 13px; }
.notice-item:last-child { border-bottom: none; }
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 120px; padding-top: 10px; }
.bar-chart .bc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar-chart .bc-bar { width: 26px; background: linear-gradient(180deg, #FF8A5C, #FF6633); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar-chart .bc-label { font-size: 12px; color: var(--text-3); }
.switch {
  width: 40px; height: 22px; border-radius: 11px; background: #D9DCE1; position: relative; cursor: pointer; transition: background .2s;
}
.switch.on { background: var(--primary); }
.switch::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  top: 2px; left: 2px; transition: left .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.switch.on::after { left: 20px; }
.skeleton { background: linear-gradient(90deg, #f2f3f5 25%, #e9eaec 37%, #f2f3f5 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 顶部横向导航（门户风格） */
.topnav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--text-2); }
.topnav .tn-item { cursor: pointer; padding: 4px 0; position: relative; }
.topnav .tn-item:hover, .topnav .tn-item.active { color: var(--primary); }
.topnav .tn-item.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--primary); border-radius: 2px; }
.user-pop { position: absolute; right: 0; top: 40px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 8px 0; min-width: 150px; z-index: 100; }
.user-pop .up-item { padding: 8px 16px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.user-pop .up-item:hover { background: #F6F7F9; color: var(--primary); }

/* 顶部消息下拉 */
.msg-badge { position: absolute; top: -2px; right: -2px; background: #F5222D; color: #fff; font-size: 10px; line-height: 1.4; padding: 1px 5px; border-radius: 9px; min-width: 16px; text-align: center; }
.msg-pop { right: -30px; width: 320px; padding: 0; overflow: hidden; }
.msg-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.msg-link { color: var(--primary); cursor: pointer; font-size: 12px; }
.msg-pop-list { max-height: 320px; overflow: auto; }
.msg-item { padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.msg-item:last-child { border-bottom: none; }
.msg-item:hover { background: #F6F7F9; }
.msg-item.is-unread { background: #FFF9F5; }
.msg-item.is-unread > div:first-child::after { content: "未读"; font-size: 10px; color: #F5222D; background: #FFF1F0; border-radius: 4px; padding: 1px 5px; margin-left: 6px; font-weight: 400; }
.r-title.clickable { cursor: pointer; }
.r-title.clickable:hover { color: #FF6633; text-decoration: underline; }
/* 报价列表独立收藏星标列（短视频/自媒体） */
.fav-star { cursor: pointer; font-size: 20px; line-height: 1; color: #C4C9D0; user-select: none; }
.fav-star:hover { color: #FFB300; }
.fav-star.on { color: #FFB300; }
