/* ============== 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, #f5576c 0%, #ff6e7f 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: #f5576c;
  --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, #f5576c 0%, #ff6e7f 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: #f87171;
  --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: #fef2f2; }
.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; }


/* ============== v1.3 智能修图 ============== */
.image-edit-panel { padding: 12px 4px 4px; }
.ie-section-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }

/* 上传区：1:1 方形占位 */
.image-edit-uploader { display: block; width: 100%; }
.image-edit-uploader .el-upload { display: block; width: 100%; }
.ie-upload-placeholder {
  width: 100%; height: 260px; border: 2px dashed var(--border-dark); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fafbff, #f5f7ff); transition: all 0.2s;
  cursor: pointer;
}
.ie-upload-placeholder:hover { border-color: var(--primary); background: linear-gradient(135deg, #eef2ff, #e8eaff); transform: translateY(-1px); }
.ie-uploaded-img { width: 100%; max-height: 280px; object-fit: contain; border-radius: 12px; border: 1px solid var(--border); }

/* 结果区 */
.ie-result-empty { height: 260px; border: 2px dashed var(--border-light); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg-soft); }
.ie-result-item { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.ie-result-item img { width: 100%; max-height: 320px; object-fit: contain; background: #f8f9fb; }
.ie-result-actions { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity 0.2s; }
.ie-result-item:hover .ie-result-actions { opacity: 1; }

/* 历史缩略图网格 */
.ie-history-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ie-history-item { aspect-ratio: 1; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--bg-soft); border: 1px solid var(--border-light); transition: all 0.2s; }
.ie-history-item:hover { border-color: var(--primary); transform: scale(1.05); box-shadow: 0 4px 12px rgba(91,141,239,0.2); }
.ie-history-item img { width: 100%; height: 100%; object-fit: cover; }
.ie-history-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--text-muted); }

/* pack-recent 加 has-image 时的真图显示 */
.pack-recent-thumb.has-image { background: transparent; padding: 0; overflow: hidden; }
.pack-recent-thumb.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pack-recent-thumb { transition: transform 0.2s; }
.pack-recent-thumb:hover { transform: scale(1.05); }


/* 蓝海选品 · 数据来源徽章 */
.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; }


/* ============== v1.6 水晶质感重做（liquid glass + 紧凑布局）============== */

/* 0. body + #app 背景：极光渐变打底（v1.7 修复 #app 容器盖住 body 背景的问题） */
body, #app { background: linear-gradient(135deg, #f5f7ff 0%, #f0e6ff 50%, #fff0f6 100%) !important; background-attachment: fixed !important; }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at top left, rgba(118,75,162,0.10) 0%, transparent 50%), radial-gradient(ellipse at bottom right, rgba(245,87,108,0.10) 0%, transparent 50%); pointer-events: none; z-index: 0; }
#app > * { position: relative; z-index: 1; }

/* muted 文本 */
.muted-text { color: var(--text-muted); font-weight: normal; }

/* 1. HERO（紧凑 + 棱彩渐变 + 顶部反光） */
.pack-hero { position: relative; background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 60%, #f5576c 100%); border-radius: 20px; padding: 20px 28px; margin-bottom: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(118,75,162,0.30), inset 0 1px 0 rgba(255,255,255,0.4); }
.pack-hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%); pointer-events: none; }
.pack-hero-content { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; z-index: 1; }
.pack-hero-left { flex: 1; min-width: 0; }
.pack-hero-tag { display: inline-block; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; margin-bottom: 12px; }
.pack-hero-title { color: #fff; font-size: 28px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.pack-hero-desc { color: rgba(255,255,255,0.9); font-size: 14px; margin: 0; }
.pack-hero-stats { display: flex; align-items: center; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border-radius: 12px; padding: 16px 20px; gap: 4px; }
.phs-item { padding: 0 18px; text-align: center; }
.phs-num { color: #fff; font-size: 26px; font-weight: 700; line-height: 1.2; }
.phs-label { color: rgba(255,255,255,0.85); font-size: 12px; margin-top: 2px; }
.phs-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.2); }

/* 2. 步骤指示器（玻璃药丸） */
.pack-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 12px; padding: 4px 0; }
.pack-step { display: flex; align-items: center; gap: 6px; opacity: 0.5; transition: all 0.3s; padding: 4px 10px; border-radius: 20px; }
.pack-step.active { opacity: 1; background: rgba(255,255,255,0.6); backdrop-filter: blur(10px); box-shadow: 0 2px 8px rgba(118,75,162,0.15); }
.pack-step.done { opacity: 0.7; }
.pack-step.done .pack-step-num { background: linear-gradient(135deg, #f5576c, #ff6e7f); color: #fff; }
.pack-step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--border); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; transition: all 0.3s; }
.pack-step.active .pack-step-num { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; box-shadow: 0 0 0 3px rgba(118,75,162,0.2); }
.pack-step-label { color: var(--text); font-size: 13px; font-weight: 500; }
.pack-step-line { width: 40px; height: 2px; background: var(--border); margin: 0 4px; transition: all 0.3s; }
.pack-step-line.active { background: linear-gradient(90deg, #667eea, #764ba2); }

/* 3. 通用 section 标题 + 玻璃卡片 */
.pack-card { border: none !important; background: rgba(255,255,255,0.55) !important; backdrop-filter: blur(20px) saturate(180%) !important; -webkit-backdrop-filter: blur(20px) saturate(180%) !important; box-shadow: 0 4px 24px rgba(99,102,241,0.08), 0 1px 2px rgba(99,102,241,0.04), inset 0 1px 0 rgba(255,255,255,0.6) !important; border-radius: 16px !important; border: 1px solid rgba(255,255,255,0.4) !important; }
.pack-card .el-card__body { padding: 16px 20px !important; }
.pack-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(99,102,241,0.08); }
.pack-section-num { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0; box-shadow: 0 2px 6px rgba(99,102,241,0.25), inset 0 1px 0 rgba(255,255,255,0.4); }
.pack-section-num-1 { background: linear-gradient(135deg, #5b8def, #7a5cf0); }
.pack-section-num-2 { background: linear-gradient(135deg, #f5576c, #ff6e7f); }
.pack-section-num-3 { background: linear-gradient(135deg, #fa8b16, #fd5c63); }
.pack-section-text { flex: 1; min-width: 0; }
.pack-section-h { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }
.pack-section-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* 4. 空状态 */
.pack-empty { padding: 32px 20px; text-align: center; }
.pack-empty-icon { font-size: 40px; opacity: 0.3; margin-bottom: 8px; }
.pack-empty-text { color: var(--text-muted); font-size: 13px; }

/* 5. 类目卡片（紧凑 8 列网格，缩小一半） */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.cat-card { position: relative; background: rgba(255,255,255,0.6); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.4); border-radius: 8px; padding: 8px 4px; text-align: center; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 6px rgba(99,102,241,0.04), inset 0 1px 0 rgba(255,255,255,0.5); }
.cat-card:hover { background: linear-gradient(135deg, rgba(238,242,255,0.9), rgba(243,232,255,0.9)); border-color: rgba(91,141,239,0.4); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(91,141,239,0.2), inset 0 1px 0 rgba(255,255,255,0.7); }
.cat-card.active { background: linear-gradient(135deg, rgba(238,242,255,0.95), rgba(243,232,255,0.95)); border-color: var(--primary); box-shadow: 0 0 0 2px rgba(91,141,239,0.25), inset 0 1px 0 rgba(255,255,255,0.7); }
.cat-emoji-large { font-size: 18px; margin-bottom: 2px; line-height: 1; }
.cat-name { font-size: 11px; font-weight: 600; color: var(--text); }
.cat-sub { display: none; }  /* 缩小后副标题隐藏（太挤） */
.cat-checkmark { position: absolute; top: 3px; right: 3px; background: linear-gradient(135deg, #5b8def, #7a5cf0); color: #fff; width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; box-shadow: 0 1px 4px rgba(91,141,239,0.4); }

/* 6. 模板卡片（紧凑 8 列网格，缩小一半 + 支持真图预览） */
.tpl-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.tpl-card { position: relative; background: rgba(255,255,255,0.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.4); border-radius: 8px; padding: 4px; cursor: pointer; transition: all 0.2s; overflow: hidden; box-shadow: 0 2px 6px rgba(99,102,241,0.04), inset 0 1px 0 rgba(255,255,255,0.5); }
.tpl-card:hover { border-color: rgba(91,141,239,0.4); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(91,141,239,0.18), inset 0 1px 0 rgba(255,255,255,0.7); }
.tpl-card.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(91,141,239,0.25), 0 4px 12px rgba(91,141,239,0.2), inset 0 1px 0 rgba(255,255,255,0.7); }
.tpl-preview { position: relative; aspect-ratio: 1; border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; overflow: hidden; background-size: cover; background-position: center; }
.tpl-preview.has-image { background-color: #f0f0f0; }
.tpl-emoji-large { font-size: 24px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); transition: transform 0.3s; }
.tpl-card:hover .tpl-emoji-large { transform: scale(1.15) rotate(-3deg); }
/* 不用 tpl-type-badge / tpl-ratio-badge（小角标，用户让去掉） */
.tpl-name { font-size: 10px; font-weight: 500; color: var(--text); text-align: center; line-height: 1.2; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-meta { display: none; }  /* 隐藏原 ratio 文字（badge 去掉后这行也多余） */
.tpl-checkmark { position: absolute; top: 3px; right: 3px; background: linear-gradient(135deg, #5b8def, #7a5cf0); color: #fff; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; box-shadow: 0 2px 6px rgba(91,141,239,0.4); z-index: 2; }

/* v2.5 模板预览图上传按钮（hover 显示在卡片右下角） */
.tpl-upload-btn { position: absolute; bottom: 4px; right: 4px; opacity: 0; transition: opacity 0.2s; z-index: 3; }
.tpl-card:hover .tpl-upload-btn { opacity: 1; }
.tpl-upload-btn .el-button { padding: 2px 6px !important; font-size: 10px !important; border-radius: 4px !important; background: rgba(255,255,255,0.95) !important; border: 1px solid rgba(99,102,241,0.2) !important; color: var(--primary) !important; }

/* v3.0：模板卡片内的"角度变体多选" */
.tpl-variants {
  padding: 8px 8px 10px;
  background: linear-gradient(180deg, rgba(91, 141, 239, 0.04), rgba(118, 75, 162, 0.04));
  border-top: 1px solid rgba(99, 102, 241, 0.15);
}
.tpl-variants-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.tpl-variants-cb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
}
.tpl-variants-cb-item {
  margin-right: 0 !important;
  flex: 1 0 auto;
}
.tpl-variants-cb-item .el-checkbox__label {
  font-size: 11px !important;
  padding-left: 4px !important;
  padding-right: 8px !important;
}
.tpl-variants-cb-text {
  font-size: 11px;
  color: var(--text);
}

/* v0.9.8：模板卡片内"立即生成"按钮的下方提示（商品名空时显示） */
.tpl-gen-hint {
  font-size: 10px;
  color: #f5576c;
  margin-top: 4px;
  text-align: center;
  line-height: 1.4;
}

/* v0.9.8：类目卡片"已选"标记（蓝框 + 右上角勾，跟模板卡片一致） */
.cat-card {
  position: relative;
}
.cat-card.active {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(91,141,239,0.25), 0 4px 12px rgba(91,141,239,0.2) !important;
}
.cat-card .cat-checkmark {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(91, 141, 239, 0.4);
  z-index: 2;
}

/* v3.2：类目编辑弹窗里的"高级设置"折叠区 */
.cat-advanced {
  margin-top: 12px;
  border: 1px solid rgba(99, 102, 241, 0.15) !important;
  border-radius: 8px !important;
}
.cat-advanced :deep(.el-collapse-item__header) {
  font-size: 13px;
  font-weight: 500;
  background: rgba(91, 141, 239, 0.04);
}
.cat-advanced-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
  padding: 6px 8px;
  background: rgba(245, 87, 108, 0.06);
  border-radius: 4px;
}
.cat-advanced-section {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  margin: 8px 0;
}
.cat-scenes-cb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cat-scenes-cb :deep(.el-checkbox) {
  margin-right: 0 !important;
}
.cat-scenes-cb :deep(.el-checkbox__label) {
  font-size: 11px !important;
  padding-left: 4px !important;
  padding-right: 8px !important;
}

/* v3.3：核心卖点 + AI 智能代写按钮（一行布局） */
.wb-ai-row {
  margin-bottom: 0;
}
.wb-ai-btn {
  width: 100%;
  height: 100% !important;
  min-height: 92px;
  /* v3.3-fix2：字号 2x（13px → 26px），加粗醒目 */
  font-size: 26px !important;
  font-weight: 700;
  /* 红色渐变：深红 → 亮红，禁用时也是淡红（保持"红"识别度）*/
  background: linear-gradient(135deg, #f5576c, #ff6e7f) !important;
  border: 3px solid #d63045 !important;
  color: #fff !important;
  white-space: pre-line;
  line-height: 1.3;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.wb-ai-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 87, 108, 0.55);
  transition: all 0.2s;
}
.wb-ai-btn:disabled {
  /* 即使禁用也保持红色识别度（只是变淡，不变灰） */
  background: linear-gradient(135deg, #f5a3b0, #ffb3c0) !important;
  border-color: #e0a5b0 !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.85) !important;
}
.wb-ai-hint {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}
.wb-ai-progress {
  font-size: 11px;
  color: #5b8def;
  margin-top: 4px;
  display: flex;
  align-items: center;
}

/* 7. 工作台（紧凑） */
.wb-section { margin-bottom: 12px; }
.wb-section-h { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; padding-left: 6px; border-left: 3px solid linear-gradient(180deg, #667eea, #764ba2); }
.wb-label { font-size: 11px; font-weight: 500; color: var(--text-secondary); margin-bottom: 3px; display: flex; align-items: center; gap: 4px; }
.wb-required { background: linear-gradient(135deg, #f5576c, #ff6e7f); color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 3px; font-weight: 500; }
.wb-hint { background: rgba(91,141,239,0.12); color: var(--primary); font-size: 9px; padding: 1px 5px; border-radius: 3px; font-weight: 500; }

.wb-advanced { border: 1px solid rgba(99,102,241,0.1); border-radius: 12px; padding: 0 12px; background: rgba(255,255,255,0.4); backdrop-filter: blur(8px); }
.wb-advanced .el-collapse-item__header { font-size: 13px; font-weight: 500; color: var(--text-secondary); padding-left: 4px; }
.wb-subsection { margin-bottom: 12px; }
.wb-subsection-h { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 6px; opacity: 0.85; }

/* v2.6 生成数量行 */
.wb-count-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 10px; background: rgba(245,87,108,0.06); border-radius: 8px; border-left: 3px solid #f5576c; }
.wb-count-label { font-weight: 600; color: var(--text); font-size: 13px; }
.wb-count-hint { color: var(--text-muted); font-size: 11px; }

/* 8. CTA 大按钮（玻璃药丸） */
.wb-cta { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(99,102,241,0.08); }
.wb-cta-main { flex: 1; height: auto !important; padding: 12px 20px !important; font-size: 15px !important; background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important; border: none !important; box-shadow: 0 6px 20px rgba(118,75,162,0.35), inset 0 1px 0 rgba(255,255,255,0.3) !important; transition: all 0.2s !important; }
.wb-cta-main:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(118,75,162,0.45), inset 0 1px 0 rgba(255,255,255,0.4) !important; }
.wb-cta-main .wb-cta-sub { font-size: 10px; font-weight: normal; opacity: 0.9; margin-top: 2px; }
.wb-cta-batch { height: auto !important; padding: 12px 16px !important; background: rgba(255,255,255,0.6) !important; backdrop-filter: blur(10px) !important; border: 1px solid rgba(255,255,255,0.4) !important; box-shadow: 0 2px 8px rgba(99,102,241,0.08) !important; }
.wb-cta-batch:hover { background: rgba(255,255,255,0.85) !important; }
.wb-cta-batch .wb-cta-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* 9. 最近生成 gallery（紧凑 4-5 列） */
.pack-recent-section { margin-top: 16px; }
.pack-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
/* v0.9.9：图库管理（电商图库 + 智能图库）—— 5-6 列响应式网格 */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery-item { background: rgba(255,255,255,0.55); backdrop-filter: blur(10px); border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 2px 8px rgba(99,102,241,0.04); transition: all 0.2s; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(91,141,239,0.18); }
.gallery-thumb { position: relative; aspect-ratio: 1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.4s ease; }
.gallery-item:hover .gallery-thumb img { transform: scale(1.5); }
.gallery-placeholder { font-size: 48px; opacity: 0.4; }
.gallery-title { font-size: 12px; font-weight: 500; color: var(--text); padding: 6px 8px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-actions { display: flex; gap: 4px; padding: 6px 8px 8px; border-top: 1px solid rgba(99,102,241,0.06); background: rgba(255,255,255,0.5); }
.gallery-actions .el-button { flex: 1; padding: 4px 4px !important; font-size: 11px !important; border-radius: 6px !important; }
/* v0.9.9：图库大图预览 overlay（全屏黑底 + 居中 + ESC 关闭） */
.gallery-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; cursor: zoom-out; backdrop-filter: blur(4px); z-index: 9999; }
.gallery-overlay img { max-width: 92vw; max-height: 92vh; object-fit: contain; box-shadow: 0 8px 40px rgba(0,0,0,0.5); border-radius: 8px; cursor: default; }
.gallery-overlay-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 36px; cursor: pointer; line-height: 1; opacity: 0.8; transition: opacity 0.2s; }
.gallery-overlay-close:hover { opacity: 1; }
.pack-gallery-item { background: rgba(255,255,255,0.55); backdrop-filter: blur(10px); border-radius: 10px; overflow: hidden; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 2px 8px rgba(99,102,241,0.04), inset 0 1px 0 rgba(255,255,255,0.5); }
.pack-gallery-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(91,141,239,0.18), inset 0 1px 0 rgba(255,255,255,0.7); border-color: rgba(91,141,239,0.4); }
.pack-gallery-thumb { position: relative; aspect-ratio: 1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pack-gallery-thumb.has-image { background: transparent; }
.pack-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.3s; }
.pack-gallery-item:hover .pack-gallery-thumb img { transform: scale(1.05); }


/* ============== v1.7 智能修图内层玻璃化 + 全局 el-card 玻璃化（覆盖到智能修图等用默认 el-card 的地方）============== */

/* A. 所有 el-card 默认玻璃化（智能修图那个卡就是这种） */
.el-card { background: rgba(255,255,255,0.55) !important; backdrop-filter: blur(20px) saturate(180%) !important; -webkit-backdrop-filter: blur(20px) saturate(180%) !important; border: 1px solid rgba(255,255,255,0.4) !important; border-radius: 16px !important; box-shadow: 0 4px 24px rgba(99,102,241,0.08), inset 0 1px 0 rgba(255,255,255,0.6) !important; }
.el-card__header { background: transparent !important; border-bottom: 1px solid rgba(99,102,241,0.08) !important; padding: 14px 20px !important; font-weight: 600 !important; }
.el-card__body { padding: 20px !important; }

/* B. 智能修图：tabs 玻璃化（去白底） */
.el-tabs__nav-wrap::after { background-color: transparent !important; }
.el-tabs--card > .el-tabs__header { border-bottom: 1px solid rgba(99,102,241,0.1) !important; margin-bottom: 16px !important; }
.el-tabs--card > .el-tabs__header .el-tabs__item { background: rgba(255,255,255,0.5) !important; backdrop-filter: blur(8px) !important; border: 1px solid rgba(255,255,255,0.4) !important; border-radius: 10px 10px 0 0 !important; margin-right: 4px !important; color: var(--text-secondary) !important; transition: all 0.2s !important; }
.el-tabs--card > .el-tabs__header .el-tabs__item.is-active { background: linear-gradient(135deg, #5b8def, #7a5cf0) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 4px 12px rgba(91,141,239,0.3), inset 0 1px 0 rgba(255,255,255,0.3) !important; }
.el-tabs--card > .el-tabs__header .el-tabs__item:hover { color: var(--primary) !important; background: rgba(255,255,255,0.8) !important; }

/* C. 智能修图：上传区玻璃化（去硬边、给光晕） */
.image-edit-uploader .el-upload { width: 100% !important; }
.image-edit-uploader .el-upload-dragger { background: rgba(255,255,255,0.5) !important; backdrop-filter: blur(10px) !important; border: 2px dashed rgba(99,102,241,0.3) !important; border-radius: 14px !important; transition: all 0.2s !important; }
.image-edit-uploader .el-upload-dragger:hover { border-color: var(--primary) !important; background: linear-gradient(135deg, rgba(238,242,255,0.7), rgba(243,232,255,0.7)) !important; box-shadow: 0 0 0 4px rgba(91,141,239,0.1), inset 0 1px 0 rgba(255,255,255,0.6) !important; }
.ie-upload-placeholder { color: var(--text-muted) !important; }
.ie-uploaded-img { border: 1px solid rgba(255,255,255,0.5) !important; box-shadow: 0 4px 12px rgba(99,102,241,0.1) !important; }

/* D. 智能修图：左侧小标题玻璃化 */
.ie-section-title { font-size: 14px !important; font-weight: 600 !important; color: var(--text) !important; margin-bottom: 10px !important; padding-left: 8px !important; border-left: 3px solid linear-gradient(180deg, #fa8b16, #fd5c63) !important; }
.ie-result-empty { background: rgba(255,255,255,0.4) !important; backdrop-filter: blur(10px) !important; border: 2px dashed rgba(99,102,241,0.15) !important; }
.ie-result-item { border: 1px solid rgba(255,255,255,0.5) !important; box-shadow: 0 6px 16px rgba(99,102,241,0.1), inset 0 1px 0 rgba(255,255,255,0.5) !important; }
.ie-history-item { background: rgba(255,255,255,0.4) !important; backdrop-filter: blur(6px) !important; border: 1px solid rgba(255,255,255,0.4) !important; }

/* E. 智能修图：主按钮换成棱彩渐变（替换默认蓝） */
.image-edit-panel .el-button--primary { background: linear-gradient(135deg, #fa8b16 0%, #fd5c63 100%) !important; border: none !important; box-shadow: 0 6px 20px rgba(250,139,22,0.35), inset 0 1px 0 rgba(255,255,255,0.3) !important; transition: all 0.2s !important; }
.image-edit-panel .el-button--primary:hover { transform: translateY(-1px) !important; box-shadow: 0 10px 28px rgba(250,139,22,0.45) !important; }
.image-edit-panel .el-button--primary:disabled { background: var(--border) !important; box-shadow: none !important; }
.image-edit-panel .el-button--default { background: rgba(255,255,255,0.6) !important; backdrop-filter: blur(10px) !important; border: 1px solid rgba(255,255,255,0.4) !important; }

/* F. 智能修图：弹窗玻璃化 */
.layout-ref-dialog { background: rgba(255,255,255,0.55) !important; backdrop-filter: blur(20px) !important; border-radius: 16px !important; }
.layout-card { background: rgba(255,255,255,0.6) !important; backdrop-filter: blur(10px) !important; border: 1px solid rgba(255,255,255,0.4) !important; box-shadow: 0 2px 8px rgba(99,102,241,0.06), inset 0 1px 0 rgba(255,255,255,0.5) !important; }
.layout-card.active { background: linear-gradient(135deg, rgba(238,242,255,0.95), rgba(243,232,255,0.95)) !important; border-color: var(--primary) !important; box-shadow: 0 0 0 2px rgba(91,141,239,0.25), inset 0 1px 0 rgba(255,255,255,0.7) !important; }
.layout-right { background: rgba(255,255,255,0.4) !important; backdrop-filter: blur(12px) !important; border: 1px solid rgba(255,255,255,0.4) !important; }

/* G. el-alert 玻璃化 */
.el-alert { background: rgba(255,255,255,0.6) !important; backdrop-filter: blur(8px) !important; border: 1px solid rgba(255,255,255,0.4) !important; border-radius: 10px !important; }
.el-alert--info { background: linear-gradient(135deg, rgba(232,244,255,0.7), rgba(245,247,255,0.7)) !important; }

/* H. el-collapse-item 玻璃化 */
.el-collapse-item__header { background: transparent !important; }
.el-collapse-item__wrap { background: transparent !important; border-bottom: none !important; }

/* I. el-checkbox 玻璃化（品牌与合规那行） */
.el-checkbox__inner { background-color: rgba(255,255,255,0.7) !important; border-color: rgba(99,102,241,0.3) !important; }
.el-checkbox__input.is-checked .el-checkbox__inner { background: linear-gradient(135deg, #5b8def, #7a5cf0) !important; border-color: transparent !important; }

/* J. el-tag 玻璃化 */
.el-tag { background: rgba(255,255,255,0.7) !important; backdrop-filter: blur(4px) !important; border: 1px solid rgba(255,255,255,0.4) !important; }
.el-tag--success { background: linear-gradient(135deg, rgba(245,87,108,0.2), rgba(255,110,127,0.2)) !important; border-color: rgba(245,87,108,0.4) !important; color: #be123c !important; }
.el-tag--danger { background: rgba(245,87,108,0.15) !important; border-color: rgba(245,87,108,0.4) !important; color: #be123c !important; }
.el-tag--warning { background: rgba(250,139,22,0.15) !important; border-color: rgba(250,139,22,0.4) !important; color: #c2410c !important; }
.el-tag--plain { background: rgba(255,255,255,0.5) !important; border-color: rgba(99,102,241,0.2) !important; }

/* K. el-color-picker 玻璃化触发器 */
.el-color-picker__trigger { border-radius: 6px !important; box-shadow: inset 0 1px 2px rgba(99,102,241,0.08) !important; }
.pack-gallery-placeholder { font-size: 48px; opacity: 0.4; }
.pack-status-tag { position: absolute; top: 6px; right: 6px; }

/* v2.0 主图上传区（玻璃） */
.pack-main-uploader .el-upload { width: 100% !important; display: block !important; }
.pack-main-placeholder { width: 100% !important; height: 140px !important; border: 2px dashed rgba(99,102,241,0.3) !important; border-radius: 12px !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; background: rgba(255,255,255,0.4) !important; backdrop-filter: blur(8px) !important; transition: all 0.2s !important; cursor: pointer !important; color: var(--text-muted) !important; font-size: 13px !important; }
.pack-main-placeholder:hover { border-color: var(--primary) !important; background: linear-gradient(135deg, rgba(238,242,255,0.7), rgba(243,232,255,0.7)) !important; }
.pack-main-preview { position: relative !important; width: 100% !important; max-height: 200px !important; border-radius: 12px !important; overflow: hidden !important; border: 1px solid rgba(255,255,255,0.5) !important; box-shadow: 0 4px 12px rgba(99,102,241,0.1) !important; }
.pack-main-preview img { width: 100% !important; max-height: 200px !important; object-fit: contain !important; background: #fafbfc !important; display: block !important; }
.pack-main-remove { position: absolute !important; top: 8px !important; right: 8px !important; }

/* v2.2 gallery 操作按钮（2 行布局：行 1 = 下载+复制，行 2 = 存素材库全宽） */
.pack-gallery-actions-row { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px; border-top: 1px solid rgba(99,102,241,0.06); background: rgba(255,255,255,0.5); backdrop-filter: blur(8px); }
.pack-gallery-row-1 { display: flex; gap: 6px; }
.pack-dl-link { flex: 1; display: flex; text-decoration: none; color: inherit; }
.pack-dl-link .el-button { width: 100%; }
.pack-gallery-row-1 .el-button { flex: 1; padding: 6px 4px !important; font-size: 11px !important; border-radius: 8px !important; transition: all 0.2s !important; backdrop-filter: blur(6px) !important; }
.pack-gallery-row-1 .el-button:hover { transform: translateY(-1px) !important; box-shadow: 0 4px 12px rgba(99,102,241,0.18) !important; }
.pack-gallery-row-1 .el-button .pgbtn-icon { font-size: 13px; margin-right: 2px; }
.pack-gallery-row-1 .el-button--primary { background: linear-gradient(135deg, rgba(91,141,239,0.95), rgba(118,75,162,0.95)) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 2px 6px rgba(91,141,239,0.25) !important; }
.pack-gallery-row-1 .el-button--primary:hover { background: linear-gradient(135deg, #5b8def, #764ba2) !important; box-shadow: 0 6px 16px rgba(91,141,239,0.4) !important; }
.pack-gallery-row-1 .el-button:not(.el-button--primary) { background: rgba(255,255,255,0.85) !important; border: 1px solid rgba(99,102,241,0.18) !important; color: var(--text) !important; }
.pack-gallery-row-1 .el-button:not(.el-button--primary):hover { border-color: var(--primary) !important; color: var(--primary) !important; background: rgba(238,242,255,0.95) !important; }
.pack-gallery-row-2 { width: 100% !important; padding: 8px 12px !important; font-size: 12px !important; font-weight: 500 !important; border-radius: 8px !important; background: linear-gradient(135deg, rgba(245,87,108,0.92), rgba(255,110,127,0.92)) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 2px 6px rgba(245,87,108,0.3) !important; transition: all 0.2s !important; }
.pack-gallery-row-2:hover { background: linear-gradient(135deg, #f5576c, #ff6e7f) !important; box-shadow: 0 6px 16px rgba(245,87,108,0.4) !important; transform: translateY(-1px) !important; }
.pack-gallery-row-2 .pgbtn-icon { font-size: 14px; margin-right: 4px; }
.pack-gallery-title { font-size: 12px; font-weight: 500; color: var(--text); padding: 6px 8px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack-gallery-meta { display: flex; align-items: center; gap: 4px; padding: 0 8px 6px; font-size: 10px; color: var(--text-muted); }

/* 10. 智能修图卡（橙色玻璃） */
.layout-empty-tip { color: var(--text-muted); font-size: 13px; padding: 20px 0; text-align: center; }
.pack-card-edit { background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,243,224,0.5) 100%) !important; }
.pack-card-edit .pack-section-num { background: linear-gradient(135deg, #fa8b16, #fd5c63) !important; }

/* 11. 全局 form 控件玻璃化（input/select/radio） */
.el-input__inner, .el-textarea__inner { background: rgba(255,255,255,0.7) !important; border: 1px solid rgba(99,102,241,0.12) !important; box-shadow: inset 0 1px 2px rgba(99,102,241,0.04) !important; transition: all 0.2s !important; }
.el-input__inner:focus, .el-textarea__inner:focus { background: #fff !important; border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(91,141,239,0.15), inset 0 1px 2px rgba(99,102,241,0.04) !important; }
.el-select .el-input__inner { background: rgba(255,255,255,0.7) !important; }
.el-radio-button__inner { background: rgba(255,255,255,0.5) !important; border: 1px solid rgba(99,102,241,0.12) !important; backdrop-filter: blur(4px) !important; }
.el-radio-button__original-radio:checked + .el-radio-button__inner { background: linear-gradient(135deg, #667eea, #764ba2) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 2px 8px rgba(118,75,162,0.3) !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; }


/* ============== v1.4 套图工作台升级（版式参考图 + 多参考图）============== */
.layout-ref-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.layout-count { margin-left: 6px; padding: 0 6px; background: var(--primary); color: #fff; border-radius: 10px; font-size: 11px; line-height: 16px; }
.layout-ref-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.layout-thumb { position: relative; width: 80px; height: 60px; border-radius: 6px; overflow: hidden; border: 2px solid var(--primary); }
.layout-thumb img { width: 100%; height: 100%; object-fit: cover; }
.layout-thumb-del { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 10px; cursor: pointer; }
.layout-thumb-del:hover { background: var(--danger); }

.layout-ref-dialog { display: flex; gap: 16px; min-height: 500px; }
.layout-left { flex: 1; min-width: 0; }
.layout-right { width: 260px; background: var(--bg-soft); border-radius: 8px; padding: 12px; }
.layout-right-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.layout-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.layout-card { background: #fff; border: 2px solid transparent; border-radius: 8px; padding: 8px; cursor: pointer; transition: all 0.2s; position: relative; }
.layout-card:hover { border-color: var(--primary-light); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.layout-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,141,239,0.2); }
.layout-card-img { width: 100%; aspect-ratio: 4/3; border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.layout-card-emoji { font-size: 48px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15)); }
.layout-card-name { font-size: 13px; font-weight: 600; text-align: center; }
.layout-card-meta { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 2px; }
.layout-card-check { position: absolute; top: 6px; right: 6px; background: var(--primary); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.layout-selected-list { max-height: 240px; overflow-y: auto; }
.layout-selected-item { display: flex; align-items: center; gap: 8px; padding: 6px; background: #fff; border-radius: 6px; margin-bottom: 6px; }
.layout-selected-item img { width: 36px; height: 28px; object-fit: cover; border-radius: 4px; }
.layout-selected-info { flex: 1; min-width: 0; }
.layout-selected-name { font-size: 12px; font-weight: 600; }
.layout-selected-meta { font-size: 11px; color: var(--text-muted); }
.layout-selected-del { color: var(--text-muted); cursor: pointer; padding: 4px; }
.layout-selected-del:hover { color: var(--danger); }
.layout-upload-box { padding: 12px; background: #fff; border-radius: 6px; }
.layout-upload-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.layout-upload-desc { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.layout-upload-preview { margin-top: 8px; }
.layout-upload-preview img { width: 100%; max-height: 100px; object-fit: cover; border-radius: 4px; margin-bottom: 4px; }

.ie-ref-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.ie-ref-item { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--bg-soft); }
.ie-ref-item:hover { border-color: var(--primary); }
.ie-ref-item.primary { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(91,141,239,0.3); }
.ie-ref-item img { width: 100%; height: 100%; object-fit: cover; }
.ie-ref-del { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 10px; cursor: pointer; }
.ie-ref-del:hover { background: var(--danger); }
