/**
 * ===== 第一部分：框架公共样式（内联自 sunwuAdCMS/css/common.css，保持一致） =====
 * 孙武广告平台 · 公共样式（框架 + 所有子页面共享）
 * 视觉规范对齐 v45（木杉风格）：主色 #C83C3C、导航强调色 #d94343
 */
:root {
  --ad-color-primary: #C83C3C;
  --ad-color-primary-hover: #a83232;
  --ad-color-primary-light: #fdf0f0;
  --ad-color-primary-border: #f5c6c6;
  --ad-text-primary: #1f2937;
  --ad-text-secondary: #667085;
  --ad-text-tertiary: #98a2b3;
  --ad-bg-page: #f5f5f5;
  --ad-bg-card: #ffffff;
  --ad-bg-subtle: #f8fafc;
  --ad-border-subtle: #d9d9d9;
  --ad-radius: 6px;
  --ad-shadow-card: 0 6px 18px rgba(31, 41, 55, 0.06);
  --ad-nav-accent: #d94343;
  --ad-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ad-text-primary); background: var(--ad-bg-page);
  font-family: var(--ad-font); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

/* ===== Topbar（框架） ===== */
.ad-topbar { height: 48px; padding: 0 24px 0 14px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #ececec; position: sticky; top: 0; z-index: 40; }
.ad-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: #252525; }
.ad-brand-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #b93636; color: #fff; font-size: 10px; font-weight: 600; }
.ad-admin { color: #999; font-size: 14px; }
/* 顶部栏 Tab：演示 / 交互卡片 */
.top-tabs { display: flex; gap: 4px; }
.top-tab { height: 30px; padding: 0 18px; border: none; border-radius: 6px; background: transparent; color: #666; font-size: 13px; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 6px; }
.top-tab:hover { color: #da2634; background: #fff1f1; }
.top-tab.on { background: #da2634; color: #fff; font-weight: 500; }
/* 交互卡片总览页 */
.cards-view { display: block; }
.cards-view.hidden { display: none; }
.cv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.cv-head .redline { width: 3px; height: 18px; background: #da2634; border-radius: 2px; flex-shrink: 0; }
.cv-head .text { font-size: 16px; font-weight: 500; color: #262626; }
.cv-head .cv-sub { font-size: 12px; color: #999; }
.cv-item { display: grid; grid-template-columns: minmax(340px, 460px) 1fr; gap: 20px; background: #fff; border: 1px solid #f0f0f0; border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; align-items: start; }
.cv-demo { min-width: 0; }
/* ===== v15 流程图 ===== */
.flow-view .flow-wrap { background: #fff; border-radius: 8px; padding: 24px; overflow-x: auto; }
.flow-stage { display: flex; flex-direction: column; gap: 10px; }
.fs-title { font-size: 15px; font-weight: 600; color: #1f2937; display: flex; align-items: center; gap: 8px; }
.fs-title .no { width: 20px; height: 20px; border-radius: 50%; background: #da2634; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.fs-title .fs-loop { font-size: 11px; color: #da2634; background: #fff1f1; border-radius: 999px; padding: 1px 8px; font-weight: 400; }
.fs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.fnode { border: 1px solid #f0f0f0; border-radius: 8px; padding: 10px 12px; background: #fff; transition: all .15s; }
.fnode:hover { border-color: #ffd6d9; box-shadow: 0 2px 8px rgba(218,38,52,.06); }
.fn-head { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.fn-head::before { content: ""; width: 3px; height: 12px; background: #da2634; border-radius: 2px; }
.fn-body { font-size: 12px; color: #666; line-height: 1.6; }
.flow-wrap { display: flex; align-items: stretch; gap: 0; min-width: 1080px; }
.flow-arrow { display: flex; align-items: center; padding: 0 6px; }
.flow-arrow span { width: 26px; height: 26px; border-radius: 50%; background: #fff1f1; color: #da2634; display: flex; align-items: center; justify-content: center; font-size: 14px; position: relative; flex-shrink: 0; }
.flow-arrow span::after { content: "→"; }
.flow-arrow::before { content: ""; flex: 1; height: 1px; background: #ffd6d9; min-width: 14px; }
.flow-arrow::after { content: ""; flex: 1; height: 1px; background: #ffd6d9; min-width: 14px; }
.flow-stage { flex: 1; min-width: 0; }
/* ===== v17 UML 活动图 ===== */
.uml-wrap { background: #fff; border-radius: 8px; padding: 32px 24px; overflow-x: auto; }
.uml-uml { display: flex; flex-direction: column; align-items: center; min-width: 560px; max-width: 720px; margin: 0 auto; }
.uml-start, .uml-end { font-size: 28px; color: #da2634; line-height: 1; margin: 4px 0; }
.uml-end { color: #374151; }
.uml-arrow-down { width: 2px; height: 24px; background: #d9d9d9; position: relative; }
.uml-arrow-down::after { content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #d9d9d9; }
.uml-act { background: #fff; border: 2px solid #5b8def; border-radius: 8px; padding: 10px 18px; min-width: 280px; max-width: 480px; text-align: center; box-shadow: 0 1px 3px rgba(91,141,239,0.08); }
.uml-act-t { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 3px; }
.uml-act-d { font-size: 12px; color: #666; line-height: 1.5; }
.uml-decision { width: 160px; height: 160px; position: relative; display: flex; align-items: center; justify-content: center; margin: 6px 0; }
.uml-decision::before { content: ""; position: absolute; inset: 0; background: #fffbe6; border: 2px solid #faad14; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.uml-dec-t { position: relative; z-index: 1; font-size: 12px; font-weight: 600; color: #1f2937; padding: 0 30px; text-align: center; line-height: 1.4; max-width: 100px; }
.uml-dec-l, .uml-dec-r { position: absolute; top: 50%; font-size: 11px; font-weight: 600; color: #faad14; z-index: 2; background: #fff; padding: 0 4px; }
.uml-dec-l { left: -8px; transform: translateY(-50%); }
.uml-dec-r { right: -8px; transform: translateY(-50%); }
.uml-branches { display: flex; gap: 80px; align-items: flex-start; justify-content: center; width: 100%; position: relative; }
.uml-branches::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: #d9d9d9; }
.uml-branches::after { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 12px; background: #d9d9d9; transform: translateX(-50%); }
.uml-branch { display: flex; flex-direction: column; align-items: center; flex: 1; max-width: 240px; }
.uml-branch::before { content: ""; width: 2px; height: 12px; background: #d9d9d9; }
.uml-loop-block { background: #f0f7ff; border: 1.5px dashed #5b8def; border-radius: 12px; padding: 14px 18px; width: 100%; max-width: 560px; margin: 4px 0; }
.uml-loop-title { font-size: 13px; font-weight: 600; color: #1d39c4; text-align: center; margin-bottom: 10px; }
.uml-loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.uml-loop-act { min-width: 0; padding: 8px 10px; border-width: 1.5px; }
.uml-loop-act .uml-act-t { font-size: 12px; }
.uml-loop-act .uml-act-d { font-size: 11px; }
.uml-loop-arrow { text-align: center; font-size: 11px; color: #5b8def; margin-top: 10px; font-style: italic; }
.uml-back-act { border-color: #faad14; border-style: dashed; }
/* ===== v21 水平 UML 活动图 ===== */
.uml-h-wrap { background: #fff; border-radius: 8px; padding: 32px 24px; overflow-x: auto; }
.uml-h-flow { display: flex; flex-direction: row; align-items: center; gap: 0; min-width: max-content; padding: 20px 0; }
.uml-h-start, .uml-h-end { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.uml-h-start { background: #da2634; color: #fff; }
.uml-h-end { background: #374151; color: #fff; }
.uml-h-arrow { width: 32px; height: 2px; background: #d9d9d9; position: relative; flex-shrink: 0; }
.uml-h-arrow::after { content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 7px solid #d9d9d9; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.uml-h-act { background: #fff; border: 2px solid #5b8def; border-radius: 8px; padding: 10px 14px; min-width: 130px; max-width: 180px; text-align: center; box-shadow: 0 1px 3px rgba(91,141,239,0.08); flex-shrink: 0; }
.uml-h-act-t { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 3px; }
.uml-h-act-d { font-size: 11px; color: #666; line-height: 1.5; }
.uml-h-decision { width: 100px; height: 100px; position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.uml-h-decision::before { content: ""; position: absolute; inset: 0; background: #fffbe6; border: 2px solid #faad14; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.uml-h-dec-t { position: relative; z-index: 1; font-size: 11px; font-weight: 600; color: #1f2937; text-align: center; line-height: 1.4; max-width: 70px; }
.uml-h-branches { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.uml-h-branch { display: flex; flex-direction: row; align-items: center; gap: 4px; }
.uml-h-br-label { font-size: 11px; font-weight: 600; color: #faad14; white-space: nowrap; }
.uml-h-loop { background: #f0f7ff; border: 1.5px dashed #5b8def; border-radius: 12px; padding: 12px 16px; flex-shrink: 0; }
.uml-h-loop-title { font-size: 13px; font-weight: 600; color: #1d39c4; text-align: center; margin-bottom: 10px; }
.uml-h-loop-grid { display: flex; flex-direction: row; gap: 8px; }
.uml-h-loop-act { min-width: 110px; padding: 8px 10px; border-width: 1.5px; }
.uml-h-loop-act .uml-h-act-t { font-size: 12px; }
.uml-h-loop-act .uml-h-act-d { font-size: 11px; }
.uml-h-loop-arrow { text-align: center; font-size: 11px; color: #5b8def; margin-top: 8px; font-style: italic; }
.uml-h-back-act { border-color: #faad14; border-style: dashed; }
.cv-demo .icard, .cv-demo .icard-confirm, .cv-demo .op-log { margin: 0; }
/* 对话气泡静态演示（总览页）：纵向排列，时间常显 */
.chat-demo { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.chat-demo .msg-time { opacity: 1; }
.cv-info { border-left: 1px dashed #eee; padding-left: 20px; }
.cv-name { font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 8px; }
.cv-block { font-size: 13px; color: #666; line-height: 1.7; margin-bottom: 6px; }
.cv-tag { display: inline-block; font-size: 11px; font-weight: 600; color: #da2634; background: #fff1f1; border-radius: 4px; padding: 1px 7px; margin-right: 8px; vertical-align: 1px; }

/* ===== Shell / Sidebar（框架） ===== */
.ad-shell { display: flex; min-height: calc(100vh - 48px); }
.ad-sidebar { width: 242px; flex: 0 0 242px; background: #fff; border-right: 1px solid #ececec; padding: 10px 8px 24px; position: sticky; top: 48px; align-self: flex-start; height: calc(100vh - 48px); overflow-y: auto; }
.ad-sidebar::-webkit-scrollbar { width: 6px; }
.ad-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.ad-sidebar::-webkit-scrollbar-track { background: transparent; }

.nav-welcome { padding: 6px 16px 14px; color: #777; cursor: pointer; min-height: 38px; display: flex; align-items: center; gap: 8px; border-radius: 6px; }
.nav-welcome .nav-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; flex-shrink: 0; }
.nav-welcome:hover { color: var(--ad-nav-accent); background: #fff6f6; }

.nav-group-head { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: 0 16px; color: #666; cursor: pointer; user-select: none; border-radius: 6px; }
.nav-group-head:hover { color: var(--ad-nav-accent); background: #fff6f6; }
.nav-group.open > .nav-group-head { color: var(--ad-nav-accent); font-weight: 600; }
.nav-group-head .caret { font-size: 14px; color: inherit; flex-shrink: 0; display: flex; align-items: center; }
.nav-group-head .caret .ic { transition: transform .2s; }
.nav-group.open > .nav-group-head .caret .ic { transform: rotate(180deg); }
.nav-sub { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.nav-group.open > .nav-sub { max-height: 600px; }

.nav-item { display: flex; align-items: center; gap: 8px; min-height: 38px; border-radius: 6px; padding: 0 16px 0 32px; margin: 2px 0; color: #666; cursor: pointer; user-select: none; }
.nav-item:hover { background: #fff6f6; color: var(--ad-nav-accent); }
.nav-item.active { background: #fff0f0; color: var(--ad-nav-accent); }
.nav-item-top { padding-left: 16px; }
.nav-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-badge { flex-shrink: 0; font-size: 11px; line-height: 1; padding: 2px 7px; border-radius: 999px; background: var(--ad-nav-accent); color: #fff; font-weight: 500; }

/* ===== Main / 面包屑 / 卡片（框架 + 子页面） ===== */
.ad-main { flex: 1; padding: 26px 38px 40px; min-width: 0; overflow-x: hidden; }
@media (max-width: 1280px) {
  .ad-main { padding: 26px 20px 40px; }
}
.breadcrumb { margin-bottom: 22px; color: #7d7d7d; font-size: 14px; }
.breadcrumb strong { color: #333; font-weight: 500; }

.ad-card { position: relative; background: #fff; border-radius: 6px; overflow: hidden; }
.ad-section { padding: 16px 34px 26px; border-bottom: 1px solid #ededed; }
@media (max-width: 1280px) {
  .ad-section { padding: 16px 20px 26px; }
}
.ad-section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-left: 9px; border-left: 3px solid var(--ad-nav-accent); font-size: 15px; font-weight: 700; }
.ad-collapse { border: 0; background: transparent; color: var(--ad-nav-accent); font-size: 13px; padding: 0; }
.ad-section-body { overflow: hidden; max-height: 2400px; transition: max-height .25s ease; }
.ad-section.collapsed .ad-section-body { max-height: 0; }

/* ===== 表单控件（子页面） ===== */
.ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 60px; }
.ad-field { min-width: 0; }
.ad-field label { display: block; margin-bottom: 8px; color: #333; }
.required::before { content: '*'; color: var(--ad-nav-accent); margin-right: 4px; }
.ad-field.span-2 { grid-column: 1 / -1; }

.ad-input { width: 100%; max-width: 500px; height: 32px; border: 1px solid var(--ad-border-subtle); border-radius: var(--ad-radius); padding: 6px 10px; color: #333; background: #fff; outline: none; transition: border-color .18s, box-shadow .18s; }
.ad-input::placeholder { color: #aaa; }
.ad-input:hover { border-color: var(--ad-color-primary-border); }
.ad-input:focus { border-color: var(--ad-color-primary); box-shadow: 0 0 0 3px rgba(200, 60, 60, .12); }

.ad-select { width: 100%; max-width: 500px; position: relative; }
.ad-select-trigger { height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 1px solid var(--ad-border-subtle); border-radius: var(--ad-radius); background: #fff; cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.ad-select-trigger:hover { border-color: var(--ad-color-primary-border); }
.ad-select-trigger.focused { border-color: var(--ad-color-primary); box-shadow: 0 0 0 3px rgba(200, 60, 60, .12); }
.ad-select-value { font-size: 14px; color: #333; flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-select-placeholder { font-size: 14px; color: #aaa; flex: 1; min-width: 0; text-align: left; }
.ad-select-caret { color: #98a2b3; font-size: 12px; flex-shrink: 0; }
.ad-select-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--ad-border-subtle); border-radius: var(--ad-radius); box-shadow: 0 18px 40px rgba(15, 23, 42, .16); max-height: 256px; overflow-y: auto; z-index: 50; display: none; padding: 4px; }
.ad-select.open .ad-select-dropdown { display: block; }
.ad-select-option { min-height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: 4px; font-size: 13px; color: #344054; cursor: pointer; transition: background .15s; }
.ad-select-option:hover { background: #f8fafc; }
.ad-select-option.selected { background: var(--ad-color-primary-light); color: var(--ad-color-primary); font-weight: 600; }

/* ===== 按钮 ===== */
.ad-btn { min-width: 88px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; border: 1px solid var(--ad-border-subtle); border-radius: var(--ad-radius); background: #fff; color: #374151; font-size: 14px; white-space: nowrap; transition: all .2s; }
.ad-btn:hover { border-color: var(--ad-color-primary-border); color: var(--ad-color-primary); background: var(--ad-color-primary-light); }
.ad-btn-primary { border-color: var(--ad-color-primary); background: var(--ad-color-primary); color: #fff; box-shadow: 0 6px 14px rgba(200, 60, 60, .22); }
.ad-btn-primary:hover { border-color: var(--ad-color-primary-hover); background: var(--ad-color-primary-hover); color: #fff; }
.ad-btn-sm { min-width: 0; min-height: 30px; padding: 0 10px; font-size: 12px; }

/* ===== Toast（框架） ===== */
.ad-toast { position: fixed; z-index: 1300; top: 22px; left: 50%; transform: translate(-50%, -12px); display: none; min-width: 240px; padding: 10px 14px; border-radius: var(--ad-radius); background: #111827; color: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, .24); text-align: center; opacity: 0; transition: opacity .18s, transform .18s; font-size: 14px; }
.ad-toast.show { display: block; opacity: 1; transform: translate(-50%, 0); }

/* ===== 页脚（框架） ===== */
.update-record { height: 120px; display: flex; align-items: center; justify-content: center; color: #98a2b3; font-size: 14px; }

/**
 * ===== 第二部分：列表页（1:1 还原参考页 compilerTable：搜索卡 + 工具栏 + 表格 + 分页） =====
 * 依据 reference/孙武广告平台-AI助手.html 实测：主色 #da2634、middle 表格、横向边框、8 列固定宽
 */
.list-card { background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 16px; min-width: 0; }

/* --- 搜索卡（ant-pro-table-search） --- */
.qf-body { padding: 24px; }
.qf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
.qf-item { display: flex; align-items: center; min-width: 0; }
.qf-item > label { flex: 0 0 94px; color: rgba(0, 0, 0, 0.88); font-size: 14px; white-space: nowrap; }
.qf-ctrl { flex: 1; min-width: 0; }
.qf-input, .qf-select { width: 100%; height: 32px; border: 1px solid #d9d9d9; border-radius: 6px; padding: 4px 11px; color: rgba(0, 0, 0, 0.88); background: #fff; outline: none; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.qf-input::placeholder { color: #bfbfbf; }
.qf-input:hover, .qf-select:hover { border-color: #da2634; }
.qf-input:focus { border-color: #da2634; box-shadow: 0 0 0 2px rgba(218, 38, 52, 0.1); }
.qf-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; user-select: none; }
.qf-select .ph { color: #bfbfbf; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-select .val { color: rgba(0, 0, 0, 0.88); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-select .caret { color: rgba(0, 0, 0, 0.25); font-size: 12px; flex-shrink: 0; }
.qf-select { position: relative; }
.qf-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); z-index: 60; display: none; padding: 4px; max-height: 260px; overflow-y: auto; }
.qf-select.open .qf-dropdown { display: block; }
.qf-option { min-height: 32px; display: flex; align-items: center; padding: 0 12px; border-radius: 4px; font-size: 14px; color: rgba(0, 0, 0, 0.88); cursor: pointer; }
.qf-option:hover { background: #f5f5f5; }
.qf-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.qf-btns { display: flex; gap: 8px; }
.qf-collapse { color: #da2634; font-size: 14px; cursor: pointer; white-space: nowrap; }
.qf-collapse:hover { color: #e64c53; }

/* --- antd 风按钮（32px / 圆角 6px / 主色 #da2634） --- */
.tbtn { height: 32px; padding: 4px 15px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; color: rgba(0, 0, 0, 0.88); font-size: 14px; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02); transition: all .2s; }
.tbtn:hover { border-color: #da2634; color: #da2634; }
.tbtn-primary { border-color: #da2634; background: #da2634; color: #fff; box-shadow: 0 2px 0 rgba(255, 22, 5, 0.06); }
.tbtn-primary:hover { border-color: #e64c53; background: #e64c53; color: #fff; }
.tbtn-dashed { border-style: dashed; }
.tbtn-dashed:hover { border-color: #da2634; background: #fff; }

/* --- 工具栏（红线标题 + 右侧按钮组） --- */
.tbl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; flex-wrap: wrap; }
.tbl-toolbar-title { display: flex; align-items: center; min-width: 0; }
.tbl-toolbar-title .redline { width: 3px; height: 18px; background: #da2634; margin-right: 8px; flex-shrink: 0; }
.tbl-toolbar-title .text { font-size: 16px; font-weight: 500; color: #262626; white-space: nowrap; }
.tbl-toolbar-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* --- 表格（ant-table-middle：padding 12px 8px、仅横向边框、hover #fafafa） --- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; min-width: 1500px; border-collapse: collapse; font-size: 14px; background: #fff; }
.tbl th { position: relative; background: #fafafa; color: rgba(0, 0, 0, 0.88); font-weight: 600; text-align: left; padding: 12px 8px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.tbl th:not(:last-child)::before { content: ""; position: absolute; top: 50%; inset-inline-end: 0; width: 1px; height: 1.6em; background: #f0f0f0; transform: translateY(-50%); }
.tbl td { padding: 12px 8px; border-bottom: 1px solid #f0f0f0; color: rgba(0, 0, 0, 0.88); vertical-align: middle; white-space: nowrap; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover td { background: #fafafa; }
.tbl .sortable { cursor: pointer; user-select: none; }
.tbl .sortable:hover { color: #da2634; }
.tbl .sorter { display: inline-flex; flex-direction: column; vertical-align: middle; margin-left: 4px; line-height: 1; gap: 1px; }
.tbl .sorter .tri { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.tbl .sorter .tri.up { border-bottom: 4px solid rgba(0, 0, 0, 0.29); }
.tbl .sorter .tri.dn { border-top: 4px solid rgba(0, 0, 0, 0.29); }
.tbl td.wrap { white-space: normal; word-break: break-all; }

/* 广告ID 列：ID + 红色 Tag（不在线） */
.id-cell { display: inline-flex; align-items: center; gap: 8px; }
.tag-red { display: inline-block; padding: 0 7px; line-height: 20px; border-radius: 4px; font-size: 12px; color: #cf1322; background: #fff1f0; border: 1px solid #ffa39e; white-space: nowrap; }

/* 广告物料列：缩略图 */
.mat-img { display: block; width: 100px; max-height: 90px; object-fit: contain; }

/* 操作列：右侧固定 + 8 个红色链接 */
.tbl th.opt, .tbl td.opt { position: sticky; right: 0; background: #fafafa; z-index: 2; }
.tbl td.opt { background: #fff; box-shadow: inset -10px 0 8px -8px rgba(5, 5, 5, 0.06); }
.tbl tbody tr:hover td.opt { background: #fafafa; }
.op-links { display: block; white-space: normal; line-height: 1.6; word-break: break-all; min-width: 280px; }
.op-links a { color: #da2634; margin-right: 8px; margin-bottom: 4px; display: inline-block; cursor: pointer; font-size: 14px; }
.op-links a:hover { color: #e64c53; }

/* --- 分页（右对齐：总数 + 页码 + 条/页 + 跳页） --- */
.tbl-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px; flex-wrap: wrap; font-size: 14px; color: rgba(0, 0, 0, 0.88); }
.tbl-pagination .total { margin-right: 8px; color: rgba(0, 0, 0, 0.65); white-space: nowrap; }
.pg-item { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: rgba(0, 0, 0, 0.88); cursor: pointer; white-space: nowrap; transition: all .15s; }
.pg-item:hover { color: #da2634; }
.pg-item.active { border-color: #da2634; background: #fff; color: #da2634; font-weight: 600; }
.pg-item.dots { cursor: default; color: rgba(0, 0, 0, 0.25); }
.pg-item.dots:hover { color: rgba(0, 0, 0, 0.25); }
.pg-size { height: 32px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; cursor: pointer; white-space: nowrap; }
.pg-size:hover { border-color: #da2634; color: #da2634; }
.pg-jump { display: inline-flex; align-items: center; gap: 4px; color: rgba(0, 0, 0, 0.65); white-space: nowrap; }
.pg-jump input { width: 50px; height: 32px; border: 1px solid #d9d9d9; border-radius: 6px; text-align: center; outline: none; font-size: 14px; }
.pg-jump input:focus { border-color: #da2634; box-shadow: 0 0 0 2px rgba(218, 38, 52, 0.1); }

