/* ============== v0.7.0 主题（参考 linkfox 专业风格）==============
   设计语言：柔和渐变 + 大圆角 + 软阴影 + 蓝色主色 + 流畅过渡
   ============================================================ */
:root,
[data-theme="light"] {
  /* 主色：linkfox 风格的蓝紫渐变 */
  --primary: #5b8def;
  --primary-dark: #4368d8;
  --primary-light: #e8efff;
  --primary-gradient: linear-gradient(135deg, #5b8def 0%, #7a5cf0 100%);
  --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --warning-gradient: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
  --danger-gradient: linear-gradient(135deg, #f5576c 0%, #ff6e7f 100%);
  --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --cyan-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --orange-gradient: linear-gradient(135deg, #fa8b16 0%, #fd5c63 100%);

  /* 中性色 - 浅色 */
  --success: #43e97b;
  --warning: #fa8b16;
  --danger: #f5576c;
  --info: #909399;
  --bg: #f0f2f5;
  --bg-page: linear-gradient(180deg, #f5f7fa 0%, #ebeef5 100%);
  --bg-card: #ffffff;
  --bg-soft: #fafbfc;
  --bg-sidebar: linear-gradient(180deg, #1a2540 0%, #0f1729 100%);
  --bg-topbar: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: #f5f7fa;
  --text: #1f2329;
  --text-secondary: #4e5969;
  --text-muted: #86909c;
  --text-inverse: #ffffff;
  --border: #e5e6eb;
  --border-light: #f2f3f5;
  --border-dark: #d6d8db;

  /* 阴影：浅色 - 更柔和、多层 */
  --shadow-xs: 0 1px 2px rgba(31,35,41,.04);
  --shadow-sm: 0 2px 8px rgba(31,35,41,.06);
  --shadow: 0 4px 16px rgba(31,35,41,.08);
  --shadow-lg: 0 8px 24px rgba(31,35,41,.10);
  --shadow-xl: 0 12px 32px rgba(31,35,41,.12);
  --shadow-primary: 0 4px 16px rgba(91,141,239,.20);

  /* 圆角：更大 */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

/* ============== 深色模式（Notion / Linear 风格）============== */
[data-theme="dark"] {
  /* 主色：保持品牌色但稍亮 */
  --primary: #6b9cff;
  --primary-dark: #5b8def;
  --primary-light: #2a3a5e;
  --primary-gradient: linear-gradient(135deg, #6b9cff 0%, #8a6cff 100%);
  --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --warning-gradient: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
  --danger-gradient: linear-gradient(135deg, #f5576c 0%, #ff6e7f 100%);
  --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --cyan-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --orange-gradient: linear-gradient(135deg, #fa8b16 0%, #fd5c63 100%);

  /* 中性色 - 深色 */
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #94a3b8;
  --bg: #0a0e1a;
  --bg-page: linear-gradient(180deg, #0f1421 0%, #0a0e1a 100%);
  --bg-card: #1a1f2e;
  --bg-soft: #232a3d;
  --bg-sidebar: linear-gradient(180deg, #0a0e1a 0%, #060912 100%);
  --bg-topbar: #11151f;
  --bg-input: #232a3d;
  --bg-hover: #2d3548;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f1421;
  --border: #2d3548;
  --border-light: #232a3d;
  --border-dark: #1a1f2e;

  /* 阴影：深色 - 更深 */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.5);
  --shadow: 0 4px 16px rgba(0,0,0,.55);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.6);
  --shadow-xl: 0 12px 32px rgba(0,0,0,.65);
  --shadow-primary: 0 4px 16px rgba(91,141,239,.4);
}

* { box-sizing: border-box; }
html, body { background: #f5f7fa; } /* v-show blocks 固定位置 */ div[v-show], div { /* 所有 v-show div 走 fixed */ } overflow: auto; overflow-x: hidden;
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-page);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ============== 侧边栏 ============== */
.sidebar {
  background: linear-gradient(180deg, #1a2540 0%, #0f1729 100%);
  color: #fff;
  position: relative;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0,0,0,.08);
  transition: width .25s ease;
}
.sidebar .logo {
  color: #fff;
  padding: 20px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.logo-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #5b8def, #36cbcb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex; align-items: center; gap: 6px;
}
.logo-sub { font-size: 11px; color: #8b95a9; margin-top: 4px; }
.side-menu { background: transparent !important; border: none !important; padding-top: 6px; }
.side-menu .el-sub-menu__title,
.side-menu .el-menu-item {
  color: #c9d1d9 !important;
  font-size: 14px;
  height: 42px;
  line-height: 42px;
}
.side-menu .el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(91,141,239,.22), transparent) !important;
  color: #fff !important;
  border-left: 3px solid var(--primary);
}
.side-menu .el-sub-menu .el-menu { background: rgba(0,0,0,.2) !important; }
.side-menu .el-sub-menu .el-menu-item { padding-left: 50px !important; font-size: 13px; }
.mi { margin-right: 6px; font-size: 15px; }
.footer-tip {
  position: sticky; bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  text-align: center;
  color: #6c7793;
  font-size: 11px;
  background: rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ============== 顶栏 ============== */
.topbar {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  padding: 0 24px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.page-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--primary-gradient);
  border-radius: 2px;
}
.breadcrumb { color: var(--text-muted); font-size: 13px; }

/* ============== 主区 ============== */
.main { position: fixed; top: 0; right: 0; bottom: 0; left: 220px; overflow-y: auto; padding: 20px 24px;
  padding: 20px 24px;
  background: transparent;
  min-height: calc(100vh - 60px);
}

/* ============== 欢迎横幅（dashboard 顶部）============== */
.welcome-banner {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-primary);
}
.welcome-banner::before {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,.10);
  border-radius: 50%;
}
.welcome-banner::after {
  content: '';
  position: absolute;
  right: 80px; bottom: -60px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.welcome-title { font-size: 22px; font-weight: 700; position: relative; z-index: 1; }
.welcome-sub { font-size: 14px; opacity: .92; margin-top: 6px; position: relative; z-index: 1; }
.welcome-actions { position: relative; z-index: 1; margin-top: 16px; display: flex; gap: 10px; }
.welcome-actions .el-button {
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.30);
  color: #fff;
  backdrop-filter: blur(10px);
}
.welcome-actions .el-button:hover { background: rgba(255,255,255,.30); border-color: rgba(255,255,255,.50); }

/* ============== 流程指引横幅 ============== */
.flow-guide {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.flow-guide-icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.flow-guide-content { flex: 1; }
.flow-guide-title { font-weight: 600; font-size: 14px; color: var(--text); }
.flow-guide-desc { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.6; }

/* ============== 快捷操作卡 ============== */
.quick-card {
  cursor: pointer;
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border-light);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.quick-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}
.quick-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.quick-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.quick-card::after {
  content: '›';
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity .2s;
}
.quick-card:hover::after { opacity: 1; color: var(--primary); }

/* ============== 步骤条 ============== */
.steps-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.steps-card .el-steps { padding: 0 4px; }

/* ============== 统计卡片 ============== */
.kpi-card, .drag-card {
  transition: all .25s ease;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: #fff;
}
.kpi-card:hover, .drag-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg) !important;
  border-color: transparent;
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.stat-num { font-size: 28px; font-weight: 700; color: var(--text); margin-top: 4px; line-height: 1.2; }
.stat-num-sm { font-size: 18px; font-weight: 700; color: var(--text); }
.stat-label { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.stat-label-sm { color: var(--text-muted); font-size: 11px; margin-top: 2px; }
.text-primary { color: var(--primary); font-weight: 600; }
.text-danger { color: var(--danger); font-weight: 600; }
.text-success { color: var(--success); font-weight: 600; }
.text-warning { color: var(--warning); font-weight: 600; }

/* ============== 卡片 ============== */
.el-card {
  margin-bottom: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
  transition: all .2s;
}
.el-card:hover { box-shadow: var(--shadow-sm); }
.el-card__header {
  font-weight: 600;
  padding: 14px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.el-card.is-hover-shadow:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* ============== 表格 ============== */
.el-card { width: 100%; }
.el-button { font-size: 13px !important; }
.el-table {
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 100% !important;
}
.el-table .el-table__inner-wrapper { width: 100% !important; }
.el-table .el-table__header,
.el-table .el-table__body { width: 100% !important; }
.el-table .el-table__header col,
.el-table .el-table__body col { width: auto !important; }
.el-table th, .el-table td { white-space: nowrap; }

/* ============== 深色模式 - Element Plus 组件覆盖 ============== */
[data-theme="dark"] .el-card,
[data-theme="dark"] .el-table,
[data-theme="dark"] .el-table tr,
[data-theme="dark"] .el-table td.el-table__cell,
[data-theme="dark"] .el-table th.el-table__cell {
  background-color: var(--bg-card) !important;
  color: var(--text) !important;
  border-color: var(--border-light) !important;
}
[data-theme="dark"] .el-table--striped .el-table__body tr.el-table__row--striped td {
  background-color: var(--bg-soft) !important;
}
[data-theme="dark"] .el-input__wrapper,
[data-theme="dark"] .el-textarea__inner {
  background-color: var(--bg-input) !important;
  color: var(--text) !important;
  box-shadow: 0 0 0 1px var(--border) inset !important;
}
[data-theme="dark"] .el-tabs__item {
  color: var(--text-secondary) !important;
}
[data-theme="dark"] .el-tabs__item.is-active {
  color: var(--primary) !important;
}
[data-theme="dark"] .el-tabs__active-bar {
  background-color: var(--primary) !important;
}
[data-theme="dark"] .el-dialog {
  background-color: var(--bg-card) !important;
}
[data-theme="dark"] .el-drawer__body {
  background-color: var(--bg-card) !important;
}
.el-table th {
  background: var(--bg-soft) !important;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
}
.el-table td { font-size: 13px; }

/* ============== 标签 ============== */
.el-tag { border-radius: 12px; }

/* ============== 按钮 ============== */
.el-button { border-radius: var(--radius-sm); font-weight: 500; transition: all .2s; }
.el-button--primary {
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(91,141,239,.25);
}
.el-button--primary:hover {
  background: var(--primary-gradient);
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91,141,239,.35);
}
.el-button--success { background: var(--success-gradient); border-color: transparent; color: #fff; }
.el-button--warning { background: var(--warning-gradient); border-color: transparent; color: #fff; }
.el-button--danger { background: var(--danger-gradient); border-color: transparent; color: #fff; }

/* ============== 商品卡 / 达人卡 ============== */
.prod-card, .talent-card {
  transition: all .2s;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: #fff;
  overflow: hidden;
}
.prod-card:hover, .talent-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.prod-title {
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
}
.prod-price { color: var(--danger); font-size: 18px; font-weight: 700; margin: 6px 0; }
.prod-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.talent-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.talent-nick { font-size: 16px; font-weight: 600; }
.talent-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }

/* ============== 预警卡 ============== */
.alert-card {
  border-left: 4px solid var(--info);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
}
.alert-card.warning { border-left-color: var(--warning); }
.alert-card.critical { border-left-color: var(--danger); }
.alert-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.alert-type { font-size: 12px; color: var(--text-muted); }
.alert-msg { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.alert-action {
  font-size: 12px;
  color: var(--text-secondary);
  background: #fafbfc;
  padding: 6px 10px;
  border-radius: 4px;
}

/* ============== 飞鸽对话 ============== */
.chat-window {
  padding: 12px;
  background: var(--bg-page);
  border-radius: var(--radius);
  min-height: 400px;
}
.msg { margin: 10px 0; }
.msg.out { text-align: right; }
.msg-sender { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.ai-badge {
  background: var(--primary-gradient);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  margin-left: 4px;
}
.msg-bubble {
  display: inline-block;
  max-width: 70%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  box-shadow: var(--shadow-xs);
}
.msg.in .msg-bubble { background: var(--bg-card); color: var(--text); }
.msg.out .msg-bubble { background: var(--primary-gradient); color: #fff; }

/* ============== 拖拽 ============== */
.sortable-ghost { opacity: 0.3; background: rgba(91,141,239,.2) !important; }

/* ============== KPI 行 ============== */
.kpi-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.kpi-line:last-child { border-bottom: none; }
.kpi-line span { font-weight: 600; color: var(--text); }

/* ============== 杂项 ============== */
pre {
  background: var(--bg-soft);
  padding: 12px;
  border-radius: var(--radius-sm);
  max-height: 400px;
  overflow: auto;
  font-size: 12px;
  border: 1px solid var(--border-light);
}
code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 3px;
  color: #d63384;
  font-family: Consolas, monospace;
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* 洞察卡片 */
.insight-card {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border-left: 4px solid var(--info);
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
}
.insight-card.warning { border-left-color: var(--warning); }
.insight-card.critical { border-left-color: var(--danger); }
.insight-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.insight-title { font-weight: 600; font-size: 14px; }
.insight-desc { color: var(--text-secondary); font-size: 13px; margin-bottom: 6px; }
.insight-action {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--primary-light);
  padding: 6px 10px;
  border-radius: 4px;
}

/* ============== AI 助手抽屉 ============== */
.ai-drawer-content { padding: 8px 4px; }
.ai-msg {
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
}
.ai-msg .ai-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.ai-msg .ai-text {
  background: #f5f7fa;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  max-width: 90%;
}
.ai-msg.user { flex-direction: row-reverse; }
.ai-msg.user .ai-avatar { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.ai-msg.user .ai-text { background: var(--primary-light); }

/* ============== 空状态 ============== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.empty-state-text { font-size: 14px; }

/* ============== 端点行 ============== */
.ep-row {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: all .15s;
  border: 1px solid transparent;
}
.ep-row:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}
.ep-row.active {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}
.ep-path {
  font-family: Consolas, monospace;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.ep-summary {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* 平台市场卡片 */
.platform-card { padding: 12px; background: var(--bg-card); border-radius: 10px; border: 1px solid #e5e6eb; transition: all .2s; }
.platform-card:hover { box-shadow: 0 6px 16px rgba(31,35,41,.10); transform: translateY(-2px); border-color: var(--primary); }

/* ===== v0.9.0 Linkfox 风格 ===== */
.lf-hero { position: relative; padding: 40px 32px; border-radius: 16px; background: linear-gradient(135deg, #5b8def 0%, #7a5cf0 50%, #f5576c 100%); color: #fff; margin-bottom: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(91,141,239,0.25); }
.lf-hero-bg { position: absolute; right: -100px; top: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 60%); border-radius: 50%; }
.lf-hero-content { position: relative; z-index: 1; }
.lf-hero-title { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.lf-hero-sub { font-size: 14px; opacity: 0.9; margin-bottom: 20px; }
.lf-hero-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.lf-btn-primary { background: rgba(255,255,255,0.95); color: var(--primary); border: none; font-weight: 600; padding: 12px 28px; font-size: 15px; }
.lf-btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.lf-btn-secondary { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 12px 24px; }
.lf-btn-secondary:hover { background: rgba(255,255,255,0.25); }
.lf-hero-stats { display: flex; gap: 32px; }
.lf-hero-stats > div { display: flex; flex-direction: column; }
.lf-hero-stats b { font-size: 22px; font-weight: 700; }
.lf-hero-stats span { font-size: 12px; opacity: 0.85; }

.lf-section-title { font-size: 16px; font-weight: 600; color: var(--text); margin: 16px 0 12px; display: flex; align-items: center; }
.lf-section-title::before { content: ''; width: 3px; height: 16px; background: var(--primary-gradient); margin-right: 8px; border-radius: 2px; }

.lf-engine-card { position: relative; padding: 24px 20px; background: var(--bg-card); border-radius: 14px; border: 1px solid var(--border); cursor: pointer; transition: all 0.25s; overflow: hidden; }
.lf-engine-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(91,141,239,0.18); border-color: transparent; }
.lf-engine-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 60%, rgba(91,141,239,0.04)); pointer-events: none; }
.lf-engine-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; margin-bottom: 14px; box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.lf-engine-name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.lf-engine-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; min-height: 36px; }
.lf-engine-tag { position: absolute; top: 12px; right: 12px; padding: 2px 8px; background: linear-gradient(135deg, #f5576c, #fbd437); color: #fff; font-size: 10px; font-weight: 700; border-radius: 8px; }

.lf-tool { padding: 16px 8px; text-align: center; background: var(--bg-card); border-radius: 10px; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; }
.lf-tool:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 6px 16px rgba(91,141,239,0.12); }
.lf-tool-icon { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; margin-bottom: 8px; }
.lf-tool-name { font-size: 12px; color: var(--text-secondary); }

/* ===== v0.9 Linkfox 创作工具页 ===== */
.lf-page-header { padding: 16px 0 20px; }
.lf-page-title { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.lf-page-sub { font-size: 13px; color: var(--text-muted); }
.lf-side-card { border-radius: 14px; }
.lf-section-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.lf-btn-gen { background: linear-gradient(135deg, #5b8def, #7a5cf0); color: #fff; border: none; font-weight: 600; }
.lf-btn-gen:hover { filter: brightness(1.08); }
.lf-btn-gen:disabled { background: #c0c4cc; }
.lf-btn-primary-big { width: 100%; padding: 14px 0; background: linear-gradient(135deg, #5b8def, #7a5cf0); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; margin-top: 20px; cursor: pointer; transition: all 0.2s; }
.lf-btn-primary-big:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(91,141,239,0.3); }
.lf-btn-primary-big:disabled { background: #d0d4dc; cursor: not-allowed; }
.lf-cost-hint { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 8px; }

.lf-result-card { border-radius: 14px; min-height: 600px; }
.lf-image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lf-image-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f5f7fa; cursor: pointer; }
.lf-image-item img { width: 100%; height: 100%; object-fit: cover; }
.lf-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f7fa, #ebeef5); color: #909399; font-size: 13px; }
.lf-image-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: opacity 0.2s; }
.lf-image-item:hover .lf-image-overlay { opacity: 1; }
.lf-overlay-btn { background: rgba(255,255,255,0.95); color: #7a5cf0; border: none; }

/* ============== v0.8 补充样式 ============== */
.ai-btn {
  background: var(--primary-gradient) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(91,141,239,0.3);
}
.ai-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.avatar-grad { background: var(--primary-gradient) !important; color: #fff !important; font-weight: 600; }

.ai-tip {
  background: linear-gradient(135deg, #e8efff, #f3eeff);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
  border-left: 3px solid var(--primary);
}
.ai-messages {
  min-height: 360px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px 0;
}
.ai-msg { margin-bottom: 14px; }
.ai-msg-sender { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.ai-msg.user .ai-msg-sender { text-align: right; color: var(--primary); }
.ai-msg-bubble {
  display: inline-block;
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  background: #f5f7fa;
  color: var(--text);
  box-shadow: var(--shadow-xs);
}
.ai-msg.user .ai-msg-bubble { background: var(--primary-gradient); color: #fff; float: right; }
.ai-msg.user::after { content: ''; display: block; clear: both; }
.ai-empty { text-align: center; color: var(--text-muted); padding: 40px 0; font-size: 14px; }
.ai-input-bar { position: sticky; bottom: 0; padding-top: 12px; background: var(--bg-card); border-top: 1px solid var(--border-light); margin-top: 16px; }
.ai-msg-time { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-left: 8px; }
.ai-msg-actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 90%; }
.ai-quick-prompts { padding: 8px 0; }
.ai-quick-title { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; font-weight: 500; }
.ai-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ai-quick-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--border-light); border-radius: 8px; cursor: pointer; transition: all 0.2s; font-size: 13px; color: var(--text); }
.ai-quick-item:hover { background: var(--primary-light); border-color: var(--primary); transform: translateY(-1px); }
.ai-quick-icon { font-size: 18px; }
.ai-quick-text { flex: 1; }
.ai-bar-extra { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 0 4px; font-size: 12px; color: var(--text-muted); }

/* ============== 命令面板（Ctrl+K）============== */
.cmd-palette { background: var(--bg-card); border-radius: 12px; overflow: hidden; }
.cmd-input-wrap { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cmd-input { flex: 1; border: none; outline: none; background: transparent; font-size: 15px; color: var(--text); }
.cmd-input::placeholder { color: var(--text-muted); }
.cmd-kbd { display: inline-flex; align-items: center; padding: 2px 6px; font-size: 11px; background: var(--bg-soft); color: var(--text-secondary); border: 1px solid var(--border); border-radius: 4px; font-family: Consolas, monospace; }
.cmd-item { display: flex; align-items: center; padding: 10px 16px; cursor: pointer; gap: 12px; border-bottom: 1px solid var(--border-light); }
.cmd-item:last-child { border-bottom: none; }
.cmd-item.cmd-active { background: var(--primary-light); }
.cmd-icon { font-size: 18px; width: 24px; text-align: center; }
.cmd-name { flex: 1; font-size: 14px; color: var(--text); }
.cmd-group { font-size: 11px; color: var(--text-muted); padding: 2px 8px; background: var(--bg-soft); border-radius: 10px; }
.cmd-footer { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); background: var(--bg-soft); }

.text-success { color: var(--success); font-weight: 600; }
.text-danger { color: var(--danger); font-weight: 600; }
.text-warning { color: var(--warning); font-weight: 600; }
.text-muted { color: var(--text-muted); }

.insight-title { font-weight: 600; font-size: 14px; }



/* ============== v0.9 linkfox decorations ============== */
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all .25s ease;
  border: 1px solid var(--border-light);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card.gradient { border: none; box-shadow: var(--shadow-primary); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  flex-shrink: 0;
}
.stat-num {
  font-size: 26px; font-weight: 700; line-height: 1.2;
  color: var(--text);
  font-family: -apple-system, sans-serif;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.section-title {
  font-size: 16px; font-weight: 600; color: var(--text);
  margin: 24px 0 12px; display: flex; align-items: center;
}
.quick-title { font-size: 14px; font-weight: 600; margin-top: 12px; color: var(--text); }
.quick-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 40px; margin-bottom: 8px; }
.empty-state-text { font-size: 13px; }

.funnel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.funnel-label { width: 200px; font-size: 13px; flex-shrink: 0; }
.funnel-bar { flex: 1; height: 28px; background: #f0f2f5; border-radius: 6px; overflow: hidden; position: relative; }
.funnel-fill { height: 100%; border-radius: 6px; display: flex; align-items: center; padding-left: 8px; color: #fff; font-size: 12px; font-weight: 600; min-width: 30px; transition: width .4s; }
.funnel-count { width: 100px; text-align: right; font-size: 13px; color: var(--text-secondary); }

.abc-card {
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}
.abc-num { font-size: 36px; font-weight: 700; }
.abc-name { font-size: 14px; opacity: .95; margin-top: 4px; }
.abc-info { font-size: 12px; opacity: .85; margin-top: 6px; }
.abc-desc { font-size: 11px; opacity: .8; margin-top: 8px; padding: 6px 10px; background: rgba(255,255,255,.18); border-radius: 6px; }

.warning-card { border-left: 3px solid var(--warning); }

.podium-card {
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.podium-card.gold { background: linear-gradient(135deg, #FFD700, #FFA500); }
.podium-card.silver { background: linear-gradient(135deg, #C0C0C0, #808080); }
.podium-card.bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); }
.podium-medal { font-size: 56px; }
.podium-name { font-size: 22px; font-weight: 700; margin: 8px 0; }
.podium-role { font-size: 12px; opacity: .9; }
.podium-profit { font-size: 28px; font-weight: 700; margin-top: 12px; }
.podium-label { font-size: 12px; opacity: .85; }

.reason-row { margin-bottom: 16px; }
.reason-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.reason-tip { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.progress-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.progress-item { min-width: 100px; }
.progress-label { font-size: 12px; color: var(--text-muted); }
.progress-value { font-size: 18px; font-weight: 600; margin-top: 4px; }
.progress-bar-wrap { flex: 1; min-width: 200px; }

.sop-card {
  background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
  border: 1px solid var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.sop-title { font-weight: 600; font-size: 14px; color: var(--text); }
.sop-meta { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.sop-kpi { font-size: 12px; color: var(--primary); margin-top: 4px; font-weight: 500; }
.sop-detail-head { display: flex; justify-content: space-between; align-items: center; }

.insight-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--info);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.insight-card.critical { border-left-color: var(--danger); background: #fef5f5; }
.insight-card.warning { border-left-color: var(--warning); background: #fffaf2; }
.insight-card.success { border-left-color: var(--success); background: #f0fdf4; }
.insight-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.insight-desc { font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.insight-tip { font-size: 12px; color: var(--primary); margin-top: 4px; font-weight: 500; }

.workzone-placeholder {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.workzone-icon { font-size: 64px; opacity: .5; margin-bottom: 12px; }
.workzone-text { font-size: 18px; font-weight: 600; color: var(--text-secondary); }
.workzone-sub { font-size: 12px; margin-top: 8px; }

.data-status { display: flex; flex-direction: column; gap: 8px; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border-light); }
.status-label { font-size: 13px; color: var(--text-secondary); }


.menu-group { padding: 6px 0; }
.menu-group-title { padding: 8px 18px; font-size: 12px; color: #8b95a9; font-weight: 600; display: flex; align-items: center; letter-spacing: .5px; }
.menu-group-title .mi { color: var(--primary); font-size: 14px; margin-right: 6px; }
.side-menu .menu-group .el-menu-item { padding-left: 36px !important; font-size: 12px; height: 34px; line-height: 34px; color: #c9d1d9; }
.side-menu .el-menu-item.single-item { padding-left: 18px !important; }
.side-menu .el-menu-item.is-active { background: linear-gradient(90deg, rgba(91,141,239,.22), transparent) !important; color: #fff !important; border-left: 3px solid var(--primary); }


/* v0.9 强制覆盖 - sidebar 深蓝 */
aside.el-aside.sidebar, .el-aside.sidebar {
  background: linear-gradient(180deg, #1a2540 0%, #0f1729 100%) !important;
  color: #fff !important;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar .logo, .sidebar .logo-title, .sidebar .logo-sub { color: #fff !important; }
.sidebar .menu-group-title { color: #8b95a9 !important; }
.sidebar .menu-group-title .mi { color: #5b8def !important; }
.side-menu .el-menu-item { color: #c9d1d9 !important; }
.side-menu .el-menu-item:hover { background: rgba(255,255,255,.05) !important; color: #fff !important; }
.side-menu .el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(91,141,239,.30), transparent) !important;
  color: #fff !important;
  border-left: 3px solid #5b8def !important;
}


/* v0.9 新增工作区样式 */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.chat-window { min-height: 360px; max-height: 500px; overflow-y: auto; padding: 12px; background: var(--bg-soft); border-radius: 8px; }
.chat-msg { margin-bottom: 12px; }
.chat-msg.right { text-align: right; }
.chat-msg.left .chat-bubble { background: #fff; border: 1px solid var(--border-light); display: inline-block; padding: 8px 12px; border-radius: 8px; max-width: 70%; }
.chat-msg.right .chat-bubble { background: var(--primary-gradient); color: #fff; display: inline-block; padding: 8px 12px; border-radius: 8px; max-width: 70%; }
.chat-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.chat-input { margin-top: 12px; }
.quick-reply { padding: 6px 12px; margin: 4px; background: var(--bg-soft); border-radius: 4px; cursor: pointer; font-size: 13px; }
.quick-reply:hover { background: var(--primary-light); color: var(--primary); }
.level-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.level-row span { width: 60px; font-size: 13px; }
.cost-summary { padding: 12px; }
.cost-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border-light); }
.resource-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.resource-row span { width: 50px; font-size: 13px; }
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.template-item { background: var(--bg-soft); border-radius: 8px; padding: 10px; text-align: center; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; }
.template-item:hover { background: #eef2ff; border-color: #5b8def; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(91,141,239,0.18); }
.template-item.active { background: linear-gradient(135deg, #eef2ff, #f3e8ff); border-color: #5b8def; box-shadow: 0 0 0 3px rgba(91,141,239,0.2); }
.template-img { font-size: 32px; margin-bottom: 4px; }
.template-name { font-size: 13px; font-weight: 500; }
.template-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.tag-stats { padding: 4px 0; }
.tag-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.kb-answer-title { font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.kb-answer-body { line-height: 1.7; }
.kb-ref-row { display: flex; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border-light); }
.search-bar { }
.asset-preview { width: 48px; height: 48px; background: var(--primary-light); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.live-cal-cell { text-align: center; padding: 4px; }

/* 媒体库 */
.source-card{display:flex;align-items:center;gap:12px;padding:14px;border:2px solid;border-radius:10px;cursor:pointer;background:#fff;transition:all 0.2s;}
.source-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(91,141,239,0.18);}
.src-emoji{width:48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:26px;color:#fff;}
.src-body{flex:1;min-width:0;}
.src-name{font-size:15px;font-weight:600;color:#303133;}
.src-desc{font-size:12px;color:#909399;margin-top:2px;}

.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;}
.media-card{background:#fff;border:1px solid #ebeef5;border-radius:10px;overflow:hidden;cursor:pointer;transition:all 0.2s;display:flex;flex-direction:column;}
.media-card:hover{transform:translateY(-3px);box-shadow:0 6px 20px rgba(91,141,239,0.15);border-color:#5b8def;}
.media-preview{height:140px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f0f4ff,#e8eaff);position:relative;font-size:64px;}
.media-preview.type-video{background:linear-gradient(135deg,#fff7e6,#ffe7ba);}
.media-preview.type-text{background:linear-gradient(135deg,#f0f9ff,#d6eaff);}
.media-preview.type-image{background:linear-gradient(135deg,#fdf6ff,#f0e6ff);}
.preview-emoji{font-size:72px;line-height:1;filter:drop-shadow(0 2px 6px rgba(0,0,0,0.1));}
.preview-type{position:absolute;top:8px;left:8px;background:rgba(0,0,0,0.6);color:#fff;padding:2px 8px;border-radius:4px;font-size:11px;}
.preview-source{position:absolute;top:8px;right:8px;background:rgba(255,255,255,0.9);padding:2px 6px;border-radius:4px;font-size:16px;}
.media-body{padding:10px 12px;flex:1;display:flex;flex-direction:column;gap:6px;}
.media-name{font-size:13px;font-weight:600;color:#303133;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.media-tags{display:flex;flex-wrap:wrap;gap:2px;}
.media-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:11px;color:#909399;}
.meta-size{background:#f5f7fa;padding:1px 6px;border-radius:3px;}
.meta-ratio{background:#ecf5ff;padding:1px 6px;border-radius:3px;color:#5b8def;}
.meta-dur{background:#fdf6ec;padding:1px 6px;border-radius:3px;color:#e6a23c;}
.meta-used{color:#67c23a;}
.media-actions{padding:8px 12px;border-top:1px solid #f5f7fa;display:flex;justify-content:flex-end;gap:6px;}
.empty-tip{padding:60px 20px;text-align:center;color:#909399;font-size:14px;background:#fafbfc;border-radius:8px;border:1px dashed #dcdfe6;}
.media-detail{display:flex;gap:16px;}
.detail-preview-large{width:200px;height:200px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:120px;background:linear-gradient(135deg,#f0f4ff,#e8eaff);flex-shrink:0;}

.stat-card-clickable { cursor: pointer; transition: all 0.25s; position: relative; }
.stat-card-clickable:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(99,102,241,0.25); border: 1px solid rgba(99,102,241,0.3); }
.stat-card-clickable:active { transform: translateY(-2px); }
.stat-card-clickable .stat-hint { font-size: 11px; color: #909399; margin-top: 4px; opacity: 0; transition: opacity 0.2s; }
.stat-card-clickable:hover .stat-hint { opacity: 1; }


/* ============== 工作台 v0.9.2 ============== */
.dash-hero { position: relative; padding: 32px 40px; border-radius: 20px; overflow: hidden; margin-bottom: 24px; background: linear-gradient(135deg, #5b8def 0%, #7a5cf0 50%, #ec4899 100%); color: #fff; }
.dash-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.dash-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; }
.dash-orb-1 { width: 300px; height: 300px; background: #fff; top: -100px; right: -50px; }
.dash-orb-2 { width: 250px; height: 250px; background: #ffd700; bottom: -80px; left: 30%; opacity: 0.2; }
.dash-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.dash-title { font-size: 32px; font-weight: 800; margin: 0 0 8px; }
.dash-subtitle { font-size: 16px; margin: 0; opacity: 0.95; }
.dash-sub-strong { background: rgba(255,255,255,0.25); padding: 2px 10px; border-radius: 12px; font-weight: 700; }
.dash-hero-actions .el-button { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: #fff; margin-left: 8px; }
.dash-hero-actions .el-button:hover { background: rgba(255,255,255,0.3); }
.dash-hero-actions .el-button.el-button--primary { background: #fff; color: #5b8def; border: 0; font-weight: 700; }

.dash-kpi { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.2s; height: 100%; }
.dash-kpi:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(91,141,239,0.2); border: 1px solid rgba(91,141,239,0.2); }
.dash-kpi-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.dash-kpi-body { flex: 1; min-width: 0; min-width: 100px; }
.dash-kpi-label { font-size: 14px; font-weight: 600; color: #1f2937; margin-top: 4px; word-break: keep-all; }
.dash-kpi-hint { font-size: 11px; color: #6b7280; margin-top: 4px; line-height: 1.4; word-break: keep-all; }
.dash-kpi-arrow { font-size: 11px; color: #5b8def; margin-top: 6px; font-weight: 600; }
.dash-kpi-num { font-size: 32px; font-weight: 800; line-height: 1.1; }
.dash-kpi-label { font-size: 14px; color: #303133; font-weight: 600; margin-top: 2px; }
.dash-kpi-hint { font-size: 12px; color: #909399; margin-top: 4px; }
.dash-kpi-arrow { font-size: 11px; color: #5b8def; margin-top: 6px; font-weight: 600; }

.dash-card { border-radius: 14px; height: 100%; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; }
.dash-card-title { font-weight: 700; font-size: 15px; }

.dash-task-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f8fafd; border-radius: 8px; margin-bottom: 8px; }
.dash-task-time { font-size: 12px; color: #909399; min-width: 40px; font-family: monospace; }
.dash-task-body { flex: 1; }
.dash-task-title { font-size: 13px; font-weight: 600; }
.dash-task-desc { font-size: 12px; color: #606266; margin-top: 2px; }

.dash-todo { }
.dash-todo-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: all 0.2s; margin-bottom: 4px; }
.dash-todo-item:hover { background: #f5f7fa; transform: translateX(4px); }
.dash-todo-item.danger { background: #fef0f0; }
.dash-todo-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dash-todo-text { flex: 1; font-size: 13px; }

.dash-section-head { margin: 24px 0 16px; }
.dash-section-head h2 { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: #303133; }
.dash-section-head p { color: #909399; font-size: 13px; margin: 0; }

.dash-feature { display: flex; gap: 14px; padding: 20px; background: #fff; border: 1px solid #f0f2f5; border-radius: 14px; cursor: pointer; transition: all 0.2s; height: 100%; }
.dash-feature:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: rgba(91,141,239,0.3); }
.dash-feature-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; color: #fff; }
.dash-feature-body { flex: 1; min-width: 0; }
.dash-feature-title { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.dash-feature-desc { font-size: 12px; color: #909399; margin-bottom: 8px; }
.dash-feature-data { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.dash-feature-num { font-size: 20px; font-weight: 800; }
.dash-feature-tag { font-size: 11px; color: #909399; }
.dash-feature-tip { font-size: 11px; color: #5b8def; padding-top: 6px; border-top: 1px dashed #e0e3e8; }

.dash-bottom { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fafbfc; border: 1px solid #f0f2f5; border-radius: 12px; cursor: pointer; transition: all 0.2s; height: 100%; }
.dash-bottom:hover { background: #f0f4ff; border-color: #5b8def; transform: translateX(4px); }
.dash-bottom-icon { font-size: 28px; }
.dash-bottom-title { font-size: 15px; font-weight: 700; }
.dash-bottom-desc { font-size: 12px; color: #909399; }





/* ============ 工作台 v0.9.3 紧凑布局 ============ */
.dash-list-card { border-radius: 12px; }
.dash-list-card .el-card__body { padding: 14px 18px; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 15px; }

/* 时间线：紧凑横向单行布局 */
.dash-timeline { display: flex; flex-direction: column; gap: 0; }
.dash-tl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f2f5;
}
.dash-tl-item:last-child { border-bottom: 0; }
.dash-tl-time {
  font-size: 11px;
  color: #909399;
  font-weight: 600;
  min-width: 38px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  text-align: right;
  flex-shrink: 0;
}
.dash-tl-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.dash-tl-title { font-size: 13px; font-weight: 700; color: #1f2937; flex-shrink: 0; min-width: 110px; }
.dash-tl-desc { font-size: 12px; color: #4b5563; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-tl-tag { flex-shrink: 0; }

/* 待处理：紧凑横向布局 */
.dash-pending { display: flex; flex-direction: column; gap: 0; }
.dash-pend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f5;
}
.dash-pend-item:last-child { border-bottom: 0; }
.dash-pend-num {
  font-size: 24px;
  font-weight: 800;
  min-width: 36px;
  text-align: right;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  flex-shrink: 0;
}
.dash-pend-title { font-size: 13px; color: #1f2937; flex: 1; min-width: 0; }

/* 业务深度卡片 */
.dash-deep-tip { font-size: 12px; color: #6b7280; margin: 4px 0 12px; padding: 8px 12px; background: #f5f7fa; border-radius: 8px; }
.dash-deep-card {
  padding: 12px;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  height: 100%;
}
.dash-deep-card:hover { border-color: #5b8def; box-shadow: 0 4px 12px rgba(91,141,239,0.12); transform: translateY(-2px); }
.dash-deep-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.dash-deep-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  line-height: 1;
}
.dash-deep-title { font-size: 13px; font-weight: 700; color: #1f2937; }
.dash-deep-sub { font-size: 11px; color: #6b7280; margin-bottom: 6px; }
.dash-deep-kpi { font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.dash-deep-tip2 { font-size: 10px; color: #9ca3af; }


/* ============ 类目管理 ============ */
.cat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.cat-dot-lg { display: inline-block; width: 24px; height: 24px; border-radius: 6px; vertical-align: middle; }

/* 类目颜色选择器 */
.cat-color-picker { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.cat-color-block { width: 28px; height: 28px; border-radius: 6px; cursor: pointer; transition: all 0.15s; border: 2px solid transparent; box-sizing: border-box; }
.cat-color-block:hover { transform: scale(1.15); }
.cat-color-block.selected { border-color: #1f2937; transform: scale(1.15); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1f2937; }

/* 类目图标行 */
.cat-icon-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-icon-preview { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.cat-icon-emoji { font-size: 24px; line-height: 1; }


/* ============ 平台规则 ============ */
.rules-platform-block { background: #fff; border: 1px solid #eef0f5; border-radius: 12px; margin-bottom: 16px; padding: 16px 20px; }
.rules-platform-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed #eef0f5; }
.rules-platform-emoji { font-size: 22px; }
.rules-platform-name { font-size: 16px; font-weight: 700; color: #1f2937; }
.rules-platform-count { font-size: 12px; color: #909399; margin-left: auto; }
.rules-list { display: flex; flex-direction: column; gap: 8px; }
.rule-item { display: flex; align-items: flex-start; gap: 12px; padding: 8px 10px; border-radius: 6px; transition: background 0.15s; }
.rule-item:hover { background: #f9fafb; }
.rule-bullet { width: 6px; height: 6px; border-radius: 50%; margin-top: 8px; flex-shrink: 0; }
.rule-danger .rule-bullet { background: #ef4444; }
.rule-warning .rule-bullet { background: #f59e0b; }
.rule-info .rule-bullet { background: #5b8def; }
.rule-body { flex: 1; min-width: 0; }
.rule-title { font-size: 14px; font-weight: 600; color: #1f2937; margin-bottom: 2px; }
.rule-desc { font-size: 12px; color: #6b7280; line-height: 1.5; }


/* 模板使用弹窗 */
.template-dialog { display: flex; gap: 16px; }
.td-left { width: 200px; min-width: 200px; height: 220px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.td-emoji { font-size: 80px; line-height: 1; }
.td-ratio { font-size: 22px; font-weight: 800; margin-top: 8px; }
.td-right { flex: 1; min-width: 0; }
.td-title { font-size: 18px; font-weight: 700; color: #1f2937; margin-bottom: 10px; }
.td-meta { display: flex; gap: 6px; margin-bottom: 14px; }
.td-prompt-label { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.td-prompt { background: #f5f7fa; border: 1px solid #e5e7eb; border-radius: 6px; padding: 10px; font-size: 12px; color: #374151; line-height: 1.6; max-height: 130px; overflow-y: auto; white-space: pre-wrap; }


/* 蓝海选品 · 数据来源徽章 */
.src-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 12px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.src-emoji { font-size: 14px; }
.src-taobao { background: #fff1f0; color: #ff4400; }
.src-pdd { background: #f6ffed; color: #e02e24; }
.src-douyin { background: #fff0f4; color: #fe2c55; }
.src-xhs { background: #fff0f2; color: #ff2442; }

/* 选品详情弹窗 */
.sel-detail { padding: 4px 0; }
.sd-head { display: flex; align-items: center; gap: 8px; }
.sd-name { font-size: 18px; font-weight: 700; color: #1f2937; flex: 1; }
.sd-kpi { background: #f9fafb; border-radius: 8px; padding: 10px; text-align: center; }
.sd-kpi-num { font-size: 20px; font-weight: 800; }
.sd-kpi-label { font-size: 12px; color: #6b7280; margin-top: 2px; }
.sd-section-title { font-size: 13px; font-weight: 600; color: #1f2937; margin-top: 16px; margin-bottom: 8px; }
.sd-source { padding: 4px 0; }
.sd-tip { font-size: 13px; color: #4b5563; line-height: 1.6; padding: 10px 12px; background: linear-gradient(90deg, #fef3c7, #fde68a); border-radius: 6px; }


/* 表格列对齐修正 */
.el-table .cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-table th .cell { font-weight: 600; }
.el-button + .el-button { margin-left: 4px; }

.src-text { font-size: 12px; font-weight: 600; }


/* 强制 el-table 列填满容器：覆盖 element-plus 默认 table-layout auto */
.el-table { display: block; width: 100%; }
.el-table__inner-wrapper { display: table; width: 100% !important; table-layout: fixed !important; }
.el-table__header-wrapper table, .el-table__body-wrapper table { width: 100% !important; table-layout: fixed !important; }
.el-table table { display: table !important; width: 100% !important; table-layout: fixed !important; border-collapse: collapse; }
.el-table .el-table__body { width: 100% !important; max-width: 100% !important; }
.el-table__header-wrapper, .el-table__body-wrapper { width: 100% !important; overflow: visible !important; }
.el-table__body-wrapper .el-scrollbar__wrap { overflow-x: auto !important; }
.el-table__body-wrapper .el-scrollbar__view { display: block !important; width: max-content !important; min-width: 100% !important; }
.el-table col { width: auto !important; }
.el-table col[name] { display: table-column !important; }
.el-table td, .el-table th { box-sizing: border-box; }
/* 强制 el-table cell 不撑大容器（覆盖 show-overflow-tooltip） */
.el-table .cell { max-width: 100% !important; min-width: 0 !important; }
.el-table table { table-layout: fixed !important; }
.el-table col { width: auto !important; }

/* === 全局 el-table 列对齐 === */
.el-table .cell { border-right: 1px solid #ebeef5 !important; padding: 0 10px; min-height: 28px; display: flex; align-items: center; }
.el-table .cell { box-sizing: border-box; }
.el-table th .cell { background: #f5f7fa !important; font-weight: 600; color: #303133; }
.el-table td { border: 0 !important; }
.el-table .cell:last-child { border-right: 0 !important; }
.el-table td, .el-table th { border-right: 1px solid #ebeef5 !important; }
.el-table tr td:first-child, .el-table tr th:first-child { border-left: 1px solid #ebeef5 !important; }
.el-table th { background: #f5f7fa !important; font-weight: 600; padding: 10px 14px !important; color: #303133; }
.el-table td { padding: 10px 14px !important; }
.el-table--small th { padding: 6px 10px !important; }
.el-table--small td { padding: 6px 10px !important; }
.el-table--enable-row-hover .el-table__body tr:hover > td { background: #f0f5ff !important; }
/* === end === */

.el-table__body-wrapper > .el-scrollbar__wrap > .el-scrollbar__view > table,
.el-table__header-wrapper > table { max-width: 100% !important; width: 100% !important; }
.el-table__body-wrapper, .el-table__header-wrapper { width: 100% !important; overflow: visible !important; }
.el-table__body-wrapper > *,
.el-table__header-wrapper > * { width: 100% !important; }
.el-table .el-scrollbar__view { display: block !important; min-width: 100% !important; max-width: 100% !important; width: 100% !important; }
.el-table__body-wrapper table,
.el-table__header-wrapper table { width: 100% !important; min-width: 100% !important; max-width: 100% !important; }
.news-cover-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.news-cover-preview { width:48px; height:48px; border-radius:6px; object-fit:cover; border:1px solid #ebeef5; }
.news-cover-emoji { font-size:32px; line-height:1; }
.news-editor-toolbar { display:flex; gap:8px; align-items:center; margin-bottom:8px; flex-wrap:wrap; }
.w-e-toolbar { background:#fafbfc !important; }
.w-e-text-container { min-height:280px !important; }

.news-list-cover { width:48px; height:48px; border-radius:4px; object-fit:cover; border:1px solid #ebeef5; }

.news-cards-wrap { margin-bottom:24px; }
.news-card-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.news-card-item { background:#0f172a; color:#fff; border-radius:10px; padding:16px; cursor:pointer; transition:transform .2s; box-shadow:0 4px 12px rgba(0,0,0,.08); display:flex; flex-direction:column; min-height:180px; }
.news-card-item:hover { transform:translateY(-3px); box-shadow:0 8px 20px rgba(0,0,0,.15); }
.news-card-cover { height:64px; display:flex; align-items:center; justify-content:flex-start; margin-bottom:12px; overflow:hidden; }
.news-card-cover img { max-width:64px; max-height:64px; border-radius:6px; object-fit:cover; }
.news-card-emoji { font-size:48px; line-height:1; }
.news-card-cat { margin-bottom:8px; }
.news-card-cat .el-tag { font-size:11px; }
.news-card-title { font-size:16px; font-weight:600; line-height:1.4; margin-bottom:12px; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.news-card-meta { display:flex; justify-content:space-between; font-size:12px; color:#94a3b8; margin-bottom:12px; padding-top:12px; border-top:1px solid rgba(255,255,255,.1); }
.news-card-foot { font-size:13px; color:#60a5fa; margin-top:auto; }

.status-light { display:inline-block; width:10px; height:10px; border-radius:50%; vertical-align:middle; box-shadow:0 0 4px currentColor; }
.light-green { background:#22c55e; color:#22c55e; animation: pulse-green 2s ease-in-out infinite; }
.light-red { background:#ef4444; color:#ef4444; animation: pulse-red 1.2s ease-in-out infinite; }
.light-gray { background:#9ca3af; color:#9ca3af; opacity:0.5; }
.light-yellow { background:#eab308; color:#eab308; animation: pulse-yellow 1.5s ease-in-out infinite; }
@keyframes pulse-green { 0%,100% { box-shadow:0 0 4px #22c55e; } 50% { box-shadow:0 0 12px #22c55e; } }
@keyframes pulse-red { 0%,100% { box-shadow:0 0 4px #ef4444; } 50% { box-shadow:0 0 12px #ef4444; } }
@keyframes pulse-yellow { 0%,100% { box-shadow:0 0 4px #eab308; } 50% { box-shadow:0 0 12px #eab308; } }


/* === 数字人主播形象选择器 === */
.avatar-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.avatar-card { width: 90px; padding: 8px 4px; border: 2px solid #ebeef5; border-radius: 10px; text-align: center; cursor: pointer; transition: all .2s; background: #fff; }
.avatar-card:hover { border-color: #c6d4ff; transform: translateY(-2px); }
.avatar-card.active { border-color: #5b8def; box-shadow: 0 4px 12px rgba(91,141,239,.25); }
.avatar-face { width: 48px; height: 48px; margin: 0 auto 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; }
.avatar-name { font-size: 12px; font-weight: 600; color: #303133; }
.avatar-style { font-size: 11px; color: #909399; margin-top: 1px; }
