/* ============================================================
   AI爆款获客系统 · 专业 UI 设计系统
   用途：高保真页面原型 / 后续可复用到正式页面
   ============================================================ */

:root {
  /* Brand */
  --brand-50: #eef4ff;
  --brand-100: #dbe8ff;
  --brand-200: #b9d3ff;
  --brand-300: #8cb8ff;
  --brand-400: #5a97ff;
  --brand-500: #3478f6;
  --brand-600: #2362e5;
  --brand-700: #1e4fc4;

  /* Neutral */
  --bg: #f4f7fb;
  --bg-soft: #f8fafd;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e6ebf3;
  --border-strong: #d5dce8;

  /* Semantic */
  --success: #12b76a;
  --success-bg: #ecfdf3;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;

  /* Layout */
  --sidebar-w: 248px;
  --sidebar-bg: #ffffff;
  --sidebar-bg-2: #f7f9fc;
  --sidebar-text: #475569;
  --sidebar-text-strong: #0f172a;
  --topbar-h: 68px;
  --content-max: 1480px;

  /* Shape */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-brand: 0 10px 24px rgba(52, 120, 246, 0.22);

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
  --bg: #0c1526;
  --bg-soft: #0f1a2f;
  --surface: #111f36;
  --surface-2: #17263f;
  --surface-3: #1d2d49;
  --text: #e8eef9;
  --text-2: #b4c3da;
  --text-3: #7185a5;
  --border: #223350;
  --border-strong: #2d405f;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.dp-app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.dp-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
  color: var(--sidebar-text);
  padding: 20px 14px 18px;
  display: flex;
  flex-direction: column;
}

.dp-sidebar::-webkit-scrollbar {
  width: 5px;
}

.dp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 99px;
}

.dp-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 22px;
}

.dp-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #5a97ff, #3478f6);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(52, 120, 246, .28);
}

.dp-brand-name {
  min-width: 0;
}

.dp-brand-name strong {
  display: block;
  color: var(--sidebar-text-strong);
  font-size: 16px;
  letter-spacing: -.2px;
  white-space: nowrap;
}

.dp-brand-name span {
  display: block;
  margin-top: 2px;
  color: var(--sidebar-text);
  font-size: 11px;
  white-space: nowrap;
}

.dp-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dp-nav-group-title {
  padding: 0 10px 7px;
  color: #6f83a4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.dp-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--sidebar-text);
  font-size: 13px;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.dp-nav-item:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--sidebar-text-strong);
}

.dp-nav-item.active {
  background: linear-gradient(90deg, rgba(52, 120, 246, .24), rgba(52, 120, 246, .12));
  color: #fff;
  font-weight: 600;
}

.dp-nav-item .ico {
  width: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  opacity: .9;
}

.dp-nav-item .count {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  color: #b7c7e2;
  font-size: 10px;
  font-weight: 700;
}

.dp-nav-item.active .count {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.dp-sidebar-footer {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.dp-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #3478f6);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.dp-user-info {
  min-width: 0;
  flex: 1;
}

.dp-user-info strong {
  display: block;
  color: #e8eef9;
  font-size: 12px;
  font-weight: 600;
}

.dp-user-info span {
  display: block;
  margin-top: 1px;
  color: #7185a5;
  font-size: 10px;
}

/* ---------- Main ---------- */
.dp-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dp-topbar {
  height: var(--topbar-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.dp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 13px;
}

.dp-breadcrumb strong {
  color: var(--text);
  font-weight: 600;
}

.dp-breadcrumb .sep {
  color: var(--border-strong);
}

.dp-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-search {
  width: 260px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-3);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.dp-search:focus-within {
  border-color: var(--brand-400);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(52, 120, 246, .08);
}

.dp-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.dp-search input::placeholder {
  color: var(--text-3);
}

.dp-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  display: grid;
  place-items: center;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.dp-icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.dp-content {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 30px 32px 48px;
}

.dp-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.dp-page-title {
  font-size: 24px;
  letter-spacing: -.4px;
  margin: 0 0 5px;
}

.dp-page-subtitle {
  color: var(--text-3);
  font-size: 13px;
  margin: 0;
}

/* ---------- Stats ---------- */
.dp-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.dp-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.dp-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.dp-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dp-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.dp-stat-icon.blue { background: var(--brand-50); color: var(--brand-600); }
.dp-stat-icon.green { background: var(--success-bg); color: var(--success); }
.dp-stat-icon.amber { background: var(--warning-bg); color: var(--warning); }
.dp-stat-icon.red { background: var(--danger-bg); color: var(--danger); }
.dp-stat-icon.violet { background: #f4f1ff; color: #7c3aed; }
.dp-stat-icon.cyan { background: #ecfeff; color: #0891b2; }

.dp-stat-trend {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
}

.dp-stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1;
}

.dp-stat-label {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 11px;
}

/* ---------- Cards ---------- */
.dp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.dp-card-head {
  min-height: 64px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.dp-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 650;
}

.dp-card-desc {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 400;
}

.dp-card-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dp-toolbar {
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.dp-input,
.dp-select {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
  padding: 0 12px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.dp-input {
  width: 100%;
}

.dp-select {
  min-width: 110px;
}

.dp-input:focus,
.dp-select:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(52, 120, 246, .08);
}

/* ---------- Buttons ---------- */
.dp-btn {
  height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease);
}

.dp-btn:active {
  transform: translateY(1px);
}

.dp-btn-primary {
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.dp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(52, 120, 246, .28);
}

.dp-btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-2);
}

.dp-btn-secondary:hover {
  background: var(--surface-2);
}

.dp-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}

.dp-btn-ghost:hover {
  background: var(--surface-2);
}

.dp-btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

/* ---------- List ---------- */
.dp-list {
  display: block;
}

.dp-list-head,
.dp-list-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 120px 110px 150px;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
}

.dp-list-head {
  min-height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.dp-list-row {
  border-bottom: 1px solid var(--border);
  transition: background .16s var(--ease);
}

.dp-list-row:last-child {
  border-bottom: 0;
}

.dp-list-row:hover {
  background: var(--surface-2);
}

.dp-thumb {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbe8ff, #f1f5ff);
  display: grid;
  place-items: center;
  color: var(--brand-500);
  font-weight: 700;
  font-size: 12px;
}

.dp-list-main {
  min-width: 0;
}

.dp-list-title {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dp-list-meta {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 11px;
}

.dp-list-cell {
  color: var(--text-2);
  font-size: 12px;
}

.dp-list-cell strong {
  color: var(--text);
  font-weight: 700;
}

.dp-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

/* ---------- Badges / Tags ---------- */
.dp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
}

.dp-badge.blue { background: var(--brand-50); color: var(--brand-600); }
.dp-badge.green { background: var(--success-bg); color: var(--success); }
.dp-badge.amber { background: var(--warning-bg); color: var(--warning); }
.dp-badge.red { background: var(--danger-bg); color: var(--danger); }
.dp-badge.gray { background: var(--surface-3); color: var(--text-2); }

.dp-tag {
  height: 28px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 11px;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}

.dp-tag:hover {
  border-color: var(--brand-300);
  color: var(--brand-600);
  background: var(--brand-50);
}

.dp-tag.active {
  border-color: transparent;
  background: var(--brand-500);
  color: #fff;
}

.dp-pagination {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 11px;
}

.dp-pagination-pages {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dp-page-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 11px;
}

.dp-page-btn.active {
  border-color: var(--brand-500);
  background: var(--brand-500);
  color: #fff;
}

.dp-note {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: #f3f7ff;
  color: #4f6f9f;
  font-size: 11px;
  line-height: 1.7;
}

[data-theme="dark"] .dp-note {
  border-color: #24406e;
  background: #152744;
  color: #9db5d8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .dp-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dp-list-head,
  .dp-list-row {
    grid-template-columns: 54px minmax(0, 1fr) 100px 140px;
  }

  .dp-list-row > *:nth-child(4),
  .dp-list-head > *:nth-child(4) {
    display: none;
  }
}

@media (max-width: 860px) {
  .dp-app {
    grid-template-columns: 1fr;
  }

  .dp-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    width: min(280px, 84vw);
    transform: translateX(-102%);
    transition: transform .25s var(--ease);
  }

  .dp-sidebar.open {
    transform: translateX(0);
  }

  .dp-topbar {
    padding: 0 16px;
  }

  .dp-content {
    padding: 24px 16px 40px;
  }

  .dp-search {
    width: 160px;
  }

  .dp-page-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .dp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dp-search {
    display: none;
  }
}

/* ============================================================
   现有系统类名 → dp 设计系统映射
   仅视觉布局，不改变功能逻辑
   ============================================================ */

.bg-orb,
.grid-overlay { display: none !important; }

body {
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 20px 14px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(15,23,42,.08);
  box-shadow: 1px 0 0 rgba(15,23,42,.03);
  z-index: 100;
}

.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(15,23,42,.16); border-radius: 99px; }

/* ---------- 严格参考 design_preview 的侧边栏细节 ---------- */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  padding: 4px 8px 22px;
  border-bottom: 0;
  margin-bottom: 0;
}
.sidebar-logo .logo-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4285f4, #2563eb);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(37,99,235,.28);
  display: grid;
  place-items: center;
}
.sidebar-logo .logo-copy { min-width: 0; }
.sidebar-logo .logo-text {
  display: block;
  color: var(--sidebar-text-strong);
  font-size: 16px;
  letter-spacing: -.2px;
  line-height: 1.25;
}
.sidebar-logo .logo-sub {
  display: block;
  margin-top: 2px;
  color: var(--sidebar-text);
  font-size: 11px;
}
.sidebar-section { margin-bottom: 14px; }
.sidebar-section-header {
  padding: 0 10px 7px;
  color: #5b6b82;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-section-header:hover { color: var(--sidebar-text); }
.sidebar-section-header .arrow { font-size: 7px; opacity: .55; transition: transform .18s var(--ease); }
.sidebar-section-header.collapsed .arrow { transform: rotate(-90deg); }
.sidebar-items { display: flex; flex-direction: column; gap: 1px; max-height: 600px; overflow: hidden; transition: max-height .25s var(--ease); }
.sidebar-items.collapsed { max-height: 0; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 10px;
  margin: 0;
  border-radius: 10px;
  color: var(--sidebar-text);
  font-size: 13px;
  cursor: pointer;
  font-weight: 400;
  position: relative;
}
.sidebar-item:hover { background: rgba(15,23,42,.045); color: var(--sidebar-text-strong); }
.sidebar-item.act {
  background: rgba(74,158,255,.13);
  color: #1d4ed8;
  font-weight: 600;
  box-shadow: none;
}
.sidebar-item .si-icon { width: 20px; flex: 0 0 20px; display: grid; place-items: center; font-size: 15px; opacity: .9; }
.sidebar-item .si-badge {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 99px;
  background: rgba(15,23,42,.06);
  color: #334155;
  font-size: 10px;
  font-weight: 700;
}
.sidebar-item.act .si-badge { background: rgba(37,99,235,.14); color: #1d4ed8; }
.sidebar-footer {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid rgba(15,23,42,.07);
  color: #5b6b82;
  font-size: 12px;
}
.sidebar-footer span { color: var(--sidebar-text-strong); }
.sidebar-footer .logout-btn {
  color: #b91c1c;
  border: 1px solid rgba(185,28,28,.28);
  background: transparent;
}
.sidebar-footer .logout-btn:hover { background: rgba(185,28,28,.08); border-color: rgba(185,28,28,.45); color: #991b1b; }

/* ---------- 方案B ⑤：折叠时在分组头右侧提示"本组当前页" ---------- */
.sidebar-section-header > span:not(.arrow):not(.sb-now) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-now {
  margin-left: auto;
  flex: 0 1 auto;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 1px 8px;
  border-radius: 99px;
  background: rgba(37,99,235,.12);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.sidebar-section-header > .sb-now { display: none; }
.sidebar-section-header.collapsed > .sb-now:not(:empty) { display: inline-block; }

/* ---------- 方案B ⑤兜底：当前页没有侧栏入口时（首页/AI推荐选题等）的方位提示 ---------- */
.sidebar-now {
  display: none;
  align-items: center;
  margin: 0 8px 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(37,99,235,.09);
  box-shadow: inset 3px 0 0 #2563eb;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-now.on { display: flex; }

/* ---------- 主区域 ---------- */
.main { min-width: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }

.main-header {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.main-header .breadcrumb { color: var(--text-3); font-size: 13px; font-weight: 500; }
.main-header .breadcrumb strong { color: var(--text); font-weight: 600; }
.main-header .breadcrumb .sep { color: var(--c-text-3, #d5dce8); margin: 0 2px; }
.main-header .header-actions { display: flex; align-items: center; gap: 8px; font-size: 12px; }

.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 30px 32px 48px;
}
.main-content::-webkit-scrollbar { width: 8px; }
.main-content::-webkit-scrollbar-thumb { background: rgba(15,23,42,.16); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
.main-content::-webkit-scrollbar-track { background: transparent; }

/* ---------- 页面头部（对齐设计预览页） ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.page-head-title {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.25;
}
.page-head-subtitle {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}
.page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 顶部面板统一为白色卡片，避免整块铺满；保留原功能和内部结构 */
.main-content > .panel > .section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 20px;
  margin-bottom: 18px;
  overflow: hidden;
}
.main-content > .panel > .section .section-header {
  min-height: 0;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.main-content > .panel > .section .section-header h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.2px;
  color: var(--text);
}
.main-content > .panel > .section > h2:first-child,
.main-content > .panel > .section > p:first-child {
  margin-top: 0;
}

/* ---------- 统一列表结构：全网爆款 ---------- */
.hs-list .dp-list-head,
.hs-list .dp-list-row {
  grid-template-columns: 72px minmax(0, 1fr) 210px 190px;
}
.hs-list .dp-list-row {
  min-height: 88px;
}
.hs-thumb,
.hs-list .dp-thumb {
  position: relative;
  width: 56px;
  height: 72px;
}
.hs-list .dp-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.hs-duration {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 10px;
}
.hs-interactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--text-2);
  font-size: 12px;
}
.hs-like { color:var(--c-err, #ef4444); }
#hsResults { overflow: hidden; }

/* ---------- 全网爆款：加载动效（骨架屏 + 进度卡） ---------- */
.hs-loading {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(124,58,237,.14);
  background: linear-gradient(120deg, #f7f5ff 0%, #eef4ff 50%, #f7f5ff 100%);
  background-size: 200% 100%;
  animation: hsBgMove 6s linear infinite;
}
@keyframes hsBgMove { 0% { background-position: 0 0 } 100% { background-position: 200% 0 } }
.hs-radar {
  position: relative; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(124,58,237,0), rgba(124,58,237,.9));
  animation: hsSpin 1.1s linear infinite;
}
.hs-radar::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.hs-radar-core {
  position: absolute; inset: 0; z-index: 2; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
@keyframes hsSpin { to { transform: rotate(360deg) } }
.hs-loading-main { flex: 1; min-width: 0 }
.hs-loading-title { display: flex; align-items: center; font-size: 13px; font-weight: 600; color: #5b21b6 }
.hs-dots i {
  display: inline-block; width: 3px; height: 3px; margin-left: 3px; border-radius: 50%;
  background: #7c3aed; animation: hsDot 1s infinite ease-in-out;
}
.hs-dots i:nth-child(2) { animation-delay: .15s }
.hs-dots i:nth-child(3) { animation-delay: .3s }
@keyframes hsDot { 0%, 60%, 100% { opacity: .25; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-3px) } }
.hs-bar {
  position: relative; height: 6px; margin: 9px 0 7px; border-radius: 6px;
  background: rgba(124,58,237,.12); overflow: hidden;
}
.hs-bar i {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #7c3aed, #4f46e5, #06b6d4);
  transition: width .45s cubic-bezier(.4,0,.2,1);
}
.hs-bar::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  animation: hsShine 1.6s infinite;
}
@keyframes hsShine { to { transform: translateX(100%) } }
.hs-loading-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--text-2) }
.hs-loading-meta b { color: #7c3aed }
.hs-loading-meta .hs-tip { color: #8b8b93 }
.hs-skel {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(124,58,237,.16);
}
.hs-skel-thumb, .hs-skel-line {
  background: linear-gradient(90deg, #eee 25%, #f8f8fb 37%, #eee 63%);
  background-size: 400% 100%; animation: hsSkel 1.3s ease-in-out infinite;
}
.hs-skel-thumb { width: 56px; height: 72px; border-radius: 8px }
.hs-skel-main { display: flex; flex-direction: column; gap: 10px }
.hs-skel-line { height: 12px; border-radius: 6px }
@keyframes hsSkel { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }

@media (max-width: 980px) {
  .hs-list .dp-list-head,
  .hs-list .dp-list-row {
    grid-template-columns: 60px minmax(0,1fr) 130px;
  }
  .hs-list .dp-list-head > *:nth-child(4),
  .hs-list .dp-list-row > *:nth-child(4) { display: none; }
}

/* ---------- 统一工具栏 ---------- */
.ui-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.ui-toolbar .dp-input {
  height: 38px;
}
.ui-toolbar .dp-select {
  height: 38px;
}

/* ---------- 首页素材库列表裂变样式 ---------- */
.home-material-shell { overflow: hidden; container-type: inline-size; }
.home-material-shell > .empty { grid-column: auto; }
.home-material-list .dp-list-head,
.home-material-list .dp-list-row {
  grid-template-columns: 72px minmax(0, 1fr) 200px 170px;
}
/* 首页列表在窄容器（双栏左列）下改用紧凑卡片行：缩略图跨两行，标题/互动纵向排，按钮靠右 */
@container (max-width: 820px) {
  .home-material-list .dp-list-head { display: none; }
  .home-material-list .dp-list-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 6px;
    align-items: center;
  }
  .home-material-list .dp-list-row > .dp-thumb { grid-column: 1; grid-row: 1 / 3; }
  .home-material-list .dp-list-row > .dp-list-main { grid-column: 2; grid-row: 1; }
  .home-material-list .dp-list-row > .hs-interactions { grid-column: 2; grid-row: 2; }
  .home-material-list .dp-list-row > .dp-list-actions { grid-column: 3; grid-row: 1 / 3; justify-self: end; }
}
.home-material-list .dp-list-row { min-height: 88px; }
.home-material-list .dp-thumb {
  width: 56px;
  height: 72px;
  position: relative;
  padding: 0;
}
.home-material-list .dp-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.home-material-list .dp-list-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-material-list .hs-interactions { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--text-2); font-size: 12px; }

@media (max-width: 980px) {
  .home-material-list .dp-list-head,
  .home-material-list .dp-list-row {
    grid-template-columns: 60px minmax(0,1fr) 140px;
  }
  .home-material-list .dp-list-head > *:nth-child(4),
  .home-material-list .dp-list-row > *:nth-child(4) { display: none; }
}

/* ---------- 面板与卡片 ---------- */

.panel { display: none; animation: fadeIn .35s ease; }
.panel.act { display: block; }

.section { margin-bottom: 18px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-header h2 { font-size: 15px; font-weight: 650; letter-spacing: -.2px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 20px;
  overflow: hidden;
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.card-row { border-bottom-color: var(--border); }
.card-row:hover { background: var(--surface-2); }

/* ---------- 统计卡 ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stats-bar .stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.stats-bar .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.stats-bar .stat-card .st-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.stats-bar .stat-card .st-info { min-width: 0; }
.stats-bar .stat-card .st-num { font-size: 22px; font-weight: 700; letter-spacing: -.4px; line-height: 1; color: var(--text); }
.stats-bar .stat-card .st-label { margin-top: 7px; color: var(--text-3); font-size: 11px; }
.stats-bar .st-acct .st-icon { background: var(--brand-50); color: var(--brand-600); }
.stats-bar .st-copy .st-icon { background: var(--warning-bg); color: var(--warning); }
.stats-bar .st-done .st-icon { background: var(--success-bg); color: var(--success); }
.stats-bar .st-boom .st-icon { background: #fef3c7; color: #b45309; }
.stats-bar .st-article .st-icon { background: #ecfeff; color: #0891b2; }
.stats-bar .st-trans .st-icon { background: #f4f1ff; color: #7c3aed; }
.stats-bar .st-total .st-icon { background: var(--brand-50); color: var(--brand-600); }
.stats-bar .st-new .st-icon { background: var(--success-bg); color: var(--success); }
.stats-bar .st-dh .st-icon { background: #f4f1ff; color: #7c3aed; }
.stats-bar .st-remake .st-icon { background: #ecfeff; color: #0891b2; }
.stats-bar .st-vlog .st-icon { background: #fff7ed; color:var(--c-orange, #ea580c); }

/* ---------- 表单控件 ---------- */
input, select, textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 9px 12px;
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(52,120,246,.08);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-pri { background: linear-gradient(135deg,var(--brand-400),var(--brand-600)); color: #fff; box-shadow: var(--shadow-brand); }
.btn-pri:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(52,120,246,.28); }
.btn-out { background: var(--surface); border-color: var(--border-strong); color: var(--text-2); }
.btn-out:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 11px; border-radius: 8px; }
.btn-ok { background: var(--success-bg); color: var(--success); border-color: rgba(18,183,106,.2); }
.btn-ok:hover { background: #d1fae5; }
.btn-err { background: var(--danger-bg); color: var(--danger); border-color: rgba(239,68,68,.2); }
.btn-err:hover { background: #fee2e2; }
.btn-purple { background:#f4f1ff; color:#7c3aed; border-color:rgba(124,58,237,.2); }
.btn-purple:hover { background:#ede9fe; }
.btn-green { background: var(--success-bg); color: var(--success); border-color: rgba(18,183,106,.2); }
.btn-green:hover { background:#d1fae5; }
.btn-orange { background: var(--warning-bg); color:var(--c-orange, #ea580c); border-color:rgba(234,88,12,.2); }
.btn-orange:hover { background:#ffedd5; }

/* ---------- 标签 ---------- */
.cat-tag, .tag {
  height: 28px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 11px;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.cat-tag:hover, .tag:hover { border-color: var(--brand-300); color: var(--brand-600); background: var(--brand-50); transform:none; box-shadow:none; }
.cat-tag.active, .tag.sel { border-color: transparent; background: var(--brand-500); color: #fff; box-shadow: var(--shadow-brand); }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.modal-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.modal-header h3 { color: var(--text); margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 17px;
  display: grid;
  place-items: center;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body {
  background: var(--surface);
  color: var(--text);
}
.modal-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
}
.toast { background: #0f172a; color: #fff; border-radius: 12px; box-shadow: var(--shadow-md); }
.vv-preview-overlay { background: rgba(15,23,42,.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vv-preview-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.vv-preview-hd { background: var(--surface-2); border-bottom-color: var(--border); }
.vv-preview-title { color: var(--text); }
.vv-preview-close { background: var(--surface-3); color: var(--text-2); }
.vv-preview-close:hover { background: var(--danger); color: #fff; }
.vv-preview-ft { background: var(--surface-2); border-top-color: var(--border); }

/* ---------- 动态组件统一 ---------- */
.geo-plat-label {
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  background: var(--surface) !important;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease) !important;
}
.geo-plat-label:hover { border-color: var(--brand-300) !important; background: var(--brand-50) !important; }
.geo-plat-label:has(input:checked) { border-color: var(--brand-500) !important; background: var(--brand-50) !important; box-shadow:0 0 0 3px rgba(52,120,246,.08) !important; }
.voice-card { background: var(--surface) !important; border:1px solid var(--border) !important; border-radius:14px !important; box-shadow:var(--shadow-xs) !important; }
.voice-card:hover { border-color:var(--border-strong) !important; box-shadow:var(--shadow-sm) !important; }

/* ---------- 克隆声音库：就地上传卡 + 网格卡片（2026-09-28 方案B） ---------- */
.vl-upload { background:#f0fdf4; border:1px solid #bbf7d0; border-radius:12px; padding:10px 12px; margin-bottom:12px; }
.vl-up-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.vl-up-title { font-size:13px; font-weight:700; color:#065f46; display:inline-flex; align-items:center; gap:5px; }
.vl-up-hint { font-size:11px; color:#5b6b82; }
.vl-up-apply-toggle { margin-left:auto; display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; padding:3px 9px; border:1px solid #bbf7d0; background:#fff; color:#065f46; border-radius:999px; cursor:pointer; }
.vl-up-apply-toggle:hover { background:#ecfdf5; }
.vl-up-apply-toggle .vl-caret { display:inline-flex; transition:transform .18s var(--ease); }
.vl-up-apply-toggle[data-open="1"] .vl-caret { transform:rotate(180deg); }
.vl-up-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.vl-up-row input[type="text"] { flex:1 1 160px; min-width:130px; font-size:12px; padding:6px 10px; border:1px solid #d1d5db; border-radius:6px; }
.vl-up-row input[type="file"] { flex:1 1 200px; min-width:150px; font-size:12px; }
.vl-up-btn { padding:6px 16px; background:#15803d; color:#fff; border:none; border-radius:6px; cursor:pointer; font-size:12px; font-weight:600; white-space:nowrap; display:inline-flex; align-items:center; gap:5px; }
.vl-up-btn:hover { background:#166534; }
.vl-up-apply { display:none; flex-wrap:wrap; gap:6px; margin-top:8px; }
.vl-up-apply.open { display:flex; }
.vl-up-status { font-size:12px; }
.vl-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:10px; }
.vl-card { display:flex; flex-direction:column; gap:6px; padding:12px 14px; margin:0; }
.vl-card-top { display:flex; align-items:center; gap:9px; min-width:0; }
.vl-ico { width:34px; height:34px; flex:0 0 34px; border-radius:10px; background:linear-gradient(135deg,#eef2ff,#e0e7ff); display:grid; place-items:center; font-size:15px; color:#4f46e5; }
.vl-name { flex:1; min-width:0; font-size:13px; font-weight:600; color:#1d1d1f; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vl-scope { font-size:11px; color:#2563eb; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vl-foot { display:flex; align-items:center; gap:8px; }
.vl-date { font-size:11px; color:var(--t2); }
.vl-reg { font-size:10px; padding:2px 6px; border-radius:4px; display:inline-flex; align-items:center; gap:4px; }
.vl-reg.on { color:#15803d; background:#ecfdf5; }
.vl-reg.off { color:var(--t2); }
.vl-play { margin-left:auto; display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; padding:4px 10px; border:1px solid var(--border-strong, rgba(0,0,0,.1)); background:#fff; color:#2563eb; border-radius:999px; cursor:pointer; }
.vl-play:hover { background:#f5f9ff; }
.vl-play.on { color:#b91c1c; border-color:rgba(185,28,28,.28); }
.vl-btns { display:flex; gap:6px; flex:0 0 auto; }
.vl-audio-slot:empty { display:none; }
.vl-audio-slot audio { width:100%; height:32px; display:block; }

/* ---------- 克隆形象库：紧凑上传卡 + 更密的网格（2026-09-28 方案B） ---------- */
.ava-upload { padding:10px 12px !important; margin-bottom:14px !important; }
.ava-up-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; flex-wrap:wrap; }
.ava-up-title { display:inline-flex; align-items:center; gap:5px; font-weight:600; font-size:13px; color:var(--t1, #1d1d1f); }
.ava-up-hint { font-size:11px; color:var(--t2, #86868b); }
.ava-up-row { display:flex; align-items:center; gap:10px; }
.ava-up-name { flex:0 0 240px; width:240px !important; box-sizing:border-box; }
.ava-up-file { flex:1 1 auto; min-width:0; padding:5px !important; }
.ava-up-btn { flex:0 0 auto; white-space:nowrap; }
.ava-up-status { margin-top:6px; }
.ava-up-status:empty { display:none; }

/* ---------- 背景音乐库：紧凑上传卡 + 网格卡片（2026-09-28 方案B） ---------- */
.bgm-upload { padding:10px 12px !important; margin-bottom:12px !important; }
.bgm-up-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; flex-wrap:wrap; }
.bgm-up-title { display:inline-flex; align-items:center; gap:5px; font-weight:600; font-size:13px; color:var(--t1, #1d1d1f); }
.bgm-up-hint { font-size:11px; color:var(--t2, #86868b); }
.bgm-up-apply-toggle { margin-left:auto; display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; padding:3px 9px; border:1px solid #bfdbfe; background:#fff; color:#1d4ed8; border-radius:999px; cursor:pointer; }
.bgm-up-apply-toggle:hover { background:#eff6ff; }
.bgm-up-apply-toggle .bgm-caret { display:inline-flex; transition:transform .18s var(--ease); }
.bgm-up-apply-toggle[data-open="1"] .bgm-caret { transform:rotate(180deg); }
.bgm-up-row { display:flex; align-items:center; gap:8px; }
.bgm-up-name { flex:1 1 200px; min-width:0; }
.bgm-up-cat { flex:1 1 200px; min-width:0; }
.bgm-up-btn { flex:0 0 auto; white-space:nowrap; }
.bgm-up-apply { display:none; flex-wrap:wrap; gap:6px; margin-top:8px; }
.bgm-up-apply.open { display:flex; }
.bgm-up-status { font-size:11px; margin-top:6px; }
.bgm-up-status:empty { display:none; }

.bgm-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:10px; }
.bgm-card { display:flex; flex-direction:column; gap:6px; padding:12px 14px; background:var(--surface); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-xs); }
.bgm-card-top { display:flex; align-items:center; gap:8px; min-width:0; }
.bgm-ico { width:32px; height:32px; flex:0 0 32px; border-radius:10px; background:linear-gradient(135deg,#e0f2fe,#dbeafe); display:grid; place-items:center; font-size:15px; color:#2563eb; }
.bgm-name { flex:1; min-width:0; font-weight:600; font-size:13px; color:#1d1d1f; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bgm-ibtn { flex:0 0 auto; width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--border-strong, rgba(0,0,0,.1)); background:#fff; color:#475569; border-radius:8px; cursor:pointer; padding:0; }
.bgm-ibtn:hover { background:#f8fafc; }
.bgm-ibtn-del { color:#b91c1c; border-color:rgba(185,28,28,.25); }
.bgm-scope { font-size:11px; color:#2563eb; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bgm-foot { display:flex; align-items:center; gap:8px; margin-top:auto; }
.bgm-meta { font-size:11px; color:var(--t2, #86868b); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bgm-play { margin-left:auto; display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; padding:4px 10px; border:1px solid var(--border-strong, rgba(0,0,0,.1)); background:#fff; color:#2563eb; border-radius:999px; cursor:pointer; flex:0 0 auto; }
.bgm-play:hover { background:#f5f9ff; }

/* ---------- 图片素材库：紧凑上传卡 + 分类工具栏 + 折叠计划管理（2026-09-28） ---------- */
.img-upload { padding:10px 12px !important; margin-bottom:12px !important; }
.img-up-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; flex-wrap:wrap; }
.img-up-title { display:inline-flex; align-items:center; gap:5px; font-weight:600; font-size:13px; color:var(--t1, #1d1d1f); }
.img-up-hint { font-size:11px; color:var(--t2, #86868b); }
.img-up-row { display:flex; align-items:center; gap:8px; }
.img-up-plan { flex:0 1 260px; min-width:160px; }
.img-up-btn { flex:0 0 auto; white-space:nowrap; }
.img-up-status { font-size:11px; margin-top:6px; }
.img-up-status:empty { display:none; }

.img-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.img-filter { display:flex; gap:6px; flex-wrap:wrap; flex:1 1 auto; min-width:0; }
.img-filter .cat-tag b { font-weight:600; opacity:.75; margin-left:2px; }
.img-bar-actions { display:flex; align-items:center; gap:6px; flex:0 0 auto; }
.img-tool-btn { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; padding:4px 10px; border:1px solid var(--border-strong, rgba(0,0,0,.1)); background:#fff; color:#475569; border-radius:999px; cursor:pointer; white-space:nowrap; }
.img-tool-btn:hover { background:#f8fafc; }
.img-tool-btn b { font-weight:700; color:#1d4ed8; }
.img-tool-btn .img-caret { display:inline-flex; transition:transform .18s var(--ease); }
.img-tool-btn[data-open="1"] .img-caret { transform:rotate(180deg); }

/* ---------- AI剪辑视频素材：紧凑上传卡 + 分类栏（带数量/管理模式）（2026-09-28） ---------- */
.vvm-upload { padding:10px 12px !important; margin-bottom:12px !important; }
.vvm-up-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; flex-wrap:wrap; }
.vvm-up-title { display:inline-flex; align-items:center; gap:5px; font-weight:600; font-size:13px; color:var(--t1, #1d1d1f); }
.vvm-up-hint { font-size:11px; color:var(--t2, #86868b); }
.vvm-up-row { display:flex; align-items:center; gap:8px; }
.vvm-up-file { flex:1 1 auto; min-width:0; }
.vvm-up-btn { flex:0 0 auto; white-space:nowrap; }
.vvm-up-status { margin-top:6px; }
.vvm-up-status:empty { display:none; }

.vvm-catbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.vvm-filter { display:flex; gap:6px; flex-wrap:wrap; align-items:center; flex:1 1 auto; min-width:0; }
.vvm-filter .cat-tag b { font-weight:600; opacity:.75; margin-left:2px; }
.vvm-filter .cat-tag .cat-tag-x { display:inline-flex; align-items:center; justify-content:center; width:15px; height:15px; margin-left:5px; padding:0; border:none; border-radius:999px; background:rgba(0,0,0,.12); color:inherit; font-size:0; cursor:pointer; vertical-align:-3px; }
.vvm-filter .cat-tag .cat-tag-x .ic { width:10px; height:10px; stroke-width:2.6; }
.vvm-filter .cat-tag .cat-tag-x:hover { background:#b91c1c; color:#fff; }
.vvm-actions { display:flex; align-items:center; gap:6px; flex:0 0 auto; margin-left:auto; }

/* ---------- 新闻素材：上传/采集页签 + 素材库工具栏 + 分类状态计数（2026-09-29） ---------- */
.news-add { padding:12px 14px !important; margin-bottom:14px !important; }
.news-tabs { display:inline-flex; gap:4px; padding:3px; background:var(--surface-2, #f1f5f9); border-radius:999px; margin-bottom:10px; }
.news-tab { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; padding:5px 12px; border:none; background:transparent; color:var(--t2, #64748b); border-radius:999px; cursor:pointer; }
.news-tab:hover { color:var(--brand-600, #2563eb); }
.news-tab.active { background:#fff; color:var(--brand-600, #2563eb); box-shadow:var(--shadow-xs); }
.news-pane.is-off { display:none; }
.news-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; }
.news-up-row { display:flex; align-items:center; gap:10px; }
.news-up-file { flex:1 1 auto; min-width:0; }
.news-up-btn { flex:0 0 auto; white-space:nowrap; }
.news-link-tags { width:100%; box-sizing:border-box; margin-bottom:10px; }
.news-link-area { width:100%; box-sizing:border-box; height:84px; resize:vertical; margin-bottom:10px; }
.news-link-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.news-lib-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.news-lib-title { display:inline-flex; align-items:center; gap:5px; font-weight:600; font-size:13px; color:var(--t1, #1d1d1f); }
.news-filters { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-bottom:12px; }
.news-filters .cat-tag b { font-weight:600; opacity:.75; margin-left:2px; }
.news-fl { font-size:12px; color:var(--t2, #86868b); margin-right:2px; }
.news-fl-2 { margin-left:10px; }

.img-planmgr { display:none; padding:10px 12px !important; margin-bottom:10px !important; }
.img-planmgr.open { display:block; }
.img-planmgr-new { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.img-planmgr-input { flex:1 1 auto; min-width:160px; }
.img-planmgr .card:last-child { margin-bottom:0 !important; }
@media (max-width:1250px) {
  .ava-up-name { flex:0 0 200px; width:200px !important; }
}
.vv-voice-item { color:var(--text-2); font-weight:500; }
.sent-person-badge { border-radius:999px !important; box-shadow:var(--shadow-xs) !important; }

/* ---------- 全站子页面视觉统一 ---------- */
.main-content > .panel > .section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 20px;
  margin-bottom: 18px;
  overflow: visible;
}
.main-content > .panel > .section > .section-header,
.main-content > .panel > .section .section-header.ui-card-head {
  min-height: 48px;
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.main-content > .panel > .section .section-header h2,
.main-content > .panel > .section .section-header h3,
.main-content > .panel > .section .section-header > h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.2px;
  color: var(--text);
}
.main-content > .panel > .section > h2:first-child,
.main-content > .panel > .section > h3:first-child {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}
.main-content > .panel > .section > .ui-toolbar,
.main-content > .panel > .section .ui-toolbar {
  margin: -6px 0 16px;
}
/* 卡片内部再嵌套的 card，视觉统一但避免双层边框 */
.main-content > .panel > .section .card {
  background: var(--surface-2);
  border-color: var(--border);
  box-shadow: none;
  border-radius: var(--radius-md);
}
.main-content > .panel > .section .card:hover { border-color: var(--border-strong); }
/* 所有动态列表容器统一留白和边界 */
.main-content > .panel > .section > div:last-child:not(.section-header):not(.card) {
  min-width: 0;
}
/* 表单、输入、select 统一圆角和高度 */
.main-content input,
.main-content select,
.main-content textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.main-content input:focus,
.main-content select:focus,
.main-content textarea:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(52,120,246,.08);
}
/* 按钮在卡片里不挤变形 */
.main-content .section-header .btn,
.main-content .section-header button { white-space: nowrap; }

/* ---------- 深色模式兼容：真实系统类名 ---------- */
[data-theme="dark"] .sidebar { background: linear-gradient(180deg, #0b1524, #08101d); }
[data-theme="dark"] .main-header { background: rgba(17,31,54,.9); border-bottom-color: #223350; }
[data-theme="dark"] .main-header .breadcrumb strong { color: #e8eef9; }
[data-theme="dark"] .main-content > .panel > .section,
[data-theme="dark"] .card,
[data-theme="dark"] .dp-card,
[data-theme="dark"] .stats-bar .stat-card {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .page-head-title { color: var(--text); }

/* ---------- 通用响应式调整 ---------- */
@media (max-width: 768px) {
  .main-content > .panel > .section { padding: 14px; border-radius: var(--radius-md); }
  .main-content > .panel > .section .section-header { align-items: flex-start; flex-direction: column; }
  .main-content > .panel > .section .section-header .btn,
  .main-content > .panel > .section .section-header button { width: 100%; }
}

/* ---------- 响应式 ---------- */
/* ---------- 响应式 ---------- */
/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .stats-bar { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .stats-bar { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .sidebar { position: fixed; left:0; top:0; bottom:0; z-index:200; transform:translateX(-100%); transition:transform .3s var(--ease); }
  .sidebar.open { transform:translateX(0); box-shadow:8px 0 32px rgba(0,0,0,.12); }
  .main-header { padding:0 16px; height:60px; min-height:60px; }
  .main-content { padding:20px 16px 36px; }
  .page-head { flex-direction:column; align-items:flex-start; gap:12px; margin-bottom:18px; }
  .stats-bar { grid-template-columns:1fr; gap:8px; }
}
.points-balance-badge{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 10px;border-radius:999px;background:rgba(255,193,7,.14);color:var(--c-warn, #b7791f);border:1px solid rgba(255,193,7,.35);font-size:12px;font-weight:700;white-space:nowrap}
.points-balance-badge.hidden{display:none}
.points-low-balance{margin:0 0 12px;padding:11px 16px;background:#fff7ed;border:1px solid #fdba74;border-radius:12px;color:#c2410c;font-size:13px;font-weight:700;line-height:1.5}
.points-low-balance.hidden{display:none}

.mhd-confirm{padding:24px 20px 6px;text-align:center}
.mhd-confirm-icon{width:64px;height:64px;margin:0 auto 12px;display:flex;align-items:center;justify-content:center;border-radius:20px;background:linear-gradient(135deg,#f0f9ff,#ede9fe);border:1px solid var(--border);font-size:30px;box-shadow:var(--shadow-sm, 0 8px 24px rgba(15,23,42,.08))}
.mhd-confirm-title{font-size:18px;font-weight:800;color:var(--text);margin:0 0 6px;letter-spacing:-.2px}
.mhd-confirm-sub{font-size:13px;color:var(--text-2);line-height:1.7;margin-bottom:16px}
.mhd-rows{text-align:left;background:var(--surface-2);border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-bottom:12px}
.mhd-row{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;border-bottom:1px solid var(--border);font-size:13px;color:var(--text-2)}
.mhd-row:last-child{border-bottom:0}
.mhd-row strong{color:var(--text);font-weight:700}
.mhd-row.highlight{background:linear-gradient(90deg,rgba(255,193,7,.16),rgba(255,193,7,.06));color:var(--c-warn, #b7791f)}
.mhd-row.highlight strong{color:var(--c-warn, #b7791f);font-size:14px}
.mhd-confirm-note{font-size:11.5px;color:var(--text-3, #9ca3af);text-align:center;margin:0 0 10px}
.mhd-confirm-actions{display:flex;gap:10px;justify-content:center}

/* ---------- 授权管理：编辑账号弹窗 ---------- */
.auth-edit-hero{
  display:flex;align-items:center;gap:13px;padding:15px 16px;margin-bottom:16px;
  border:1px solid var(--border);border-radius:16px;
  background:linear-gradient(135deg,var(--brand-50),var(--surface-2));
}
.auth-edit-avatar{
  width:48px;height:48px;flex:0 0 48px;border-radius:14px;
  display:grid;place-items:center;font-size:20px;font-weight:800;color:#fff;
  background:linear-gradient(135deg,var(--brand-500),#6f9dff);
  box-shadow:0 10px 22px rgba(52,120,246,.2);
}
.auth-edit-meta{min-width:0;flex:1}
.auth-edit-name{font-size:16px;font-weight:800;color:var(--text);letter-spacing:-.15px}
.auth-edit-sub{font-size:12px;color:var(--text-2);margin-top:3px;line-height:1.5}
.auth-edit-section{
  padding:15px;margin-bottom:14px;border:1px solid var(--border);
  border-radius:15px;background:var(--surface-2);
}
.auth-edit-section-title{font-size:13px;font-weight:800;color:var(--text);margin-bottom:13px}
.auth-edit-grid{display:grid;gap:12px}
.auth-edit-grid--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.auth-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.auth-field-label{font-size:12px;font-weight:700;color:var(--text-2)}
.auth-input{
  width:100%;padding:10px 12px;border:1px solid var(--border-strong);
  border-radius:10px;background:var(--surface);color:var(--text);font-size:13px;
  transition:border-color .16s var(--ease),box-shadow .16s var(--ease);
}
.auth-input:focus{outline:none;border-color:var(--brand-500);box-shadow:0 0 0 3px var(--brand-100)}
.auth-field-tip{font-size:11px;color:var(--text-3);line-height:1.5}
.auth-edit-hint{font-size:11px;color:var(--text-3);line-height:1.6;margin-top:9px}
.auth-edit-quick{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.auth-edit-quick .auth-edit-hint{margin-top:0}
.auth-module-box{margin-top:14px}
.auth-module-title{font-size:12px;font-weight:800;color:var(--text-2);margin-bottom:9px}
.auth-module-list{display:block}
.module-chip{
  display:inline-flex;align-items:center;gap:6px;padding:7px 11px;margin:0 6px 6px 0;
  border:1px solid var(--border-strong);border-radius:999px;background:var(--surface);
  color:var(--text-2);font-size:12px;font-weight:600;cursor:pointer;
  transition:border-color .16s var(--ease),background .16s var(--ease),color .16s var(--ease);
}
.module-chip:hover{border-color:var(--brand-300);background:var(--brand-50);color:var(--brand-600)}
.module-chip input{accent-color:var(--brand-500)}
.module-chip:has(input:checked){border-color:var(--brand-500);background:var(--brand-50);color:var(--brand-700)}
.auth-check{
  display:flex;align-items:center;gap:8px;padding:11px 12px;margin-bottom:12px;
  border:1px solid var(--border);border-radius:11px;background:var(--surface);
  color:var(--text);font-size:13px;font-weight:700;cursor:pointer;
}
.auth-check input{accent-color:var(--brand-500);width:15px;height:15px}
.auth-edit-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}

@media (max-width:620px){
  .auth-edit-grid--two{grid-template-columns:1fr}
  .auth-edit-actions{flex-direction:column-reverse}
  .auth-edit-actions .btn{width:100%}
}

/* ---------- 多维数字人口播提示词模板 ---------- */
.mpt-loading,.mpt-empty{padding:36px 16px;text-align:center;color:var(--text-3);font-size:13px}
.mpt-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.mpt-tab{
  padding:7px 12px;border:1px solid var(--border);border-radius:999px;
  background:var(--surface);color:var(--text-2);font-size:12px;font-weight:650;cursor:pointer;
  transition:border-color .16s var(--ease),background .16s var(--ease),color .16s var(--ease);
}
.mpt-tab:hover{border-color:var(--brand-300);color:var(--brand-600);background:var(--brand-50)}
.mpt-tab.active{border-color:var(--brand-500);background:var(--brand-500);color:#fff}
.mpt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mpt-card{
  display:flex;flex-direction:column;gap:7px;padding:14px;text-align:left;
  border:1px solid var(--border);border-radius:14px;background:var(--surface);cursor:pointer;
  transition:transform .18s var(--ease),border-color .18s var(--ease),box-shadow .18s var(--ease);
}
.mpt-card:hover{transform:translateY(-2px);border-color:var(--brand-300);box-shadow:var(--shadow-sm)}
.mpt-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mpt-card-cat{
  display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;
  background:var(--brand-50);color:var(--brand-600);font-size:11px;font-weight:750;
}
.mpt-card-dur{font-size:10.5px;color:var(--text-3);font-weight:600}
.mpt-card-name{font-size:14px;font-weight:800;color:var(--text)}
.mpt-card-desc{font-size:12px;color:var(--text-2);line-height:1.55}
.mpt-card-vars{font-size:10.5px;color:var(--text-3);line-height:1.5}
.mpt-detail-top{margin-bottom:12px}
.mpt-detail-header{padding:14px;margin-bottom:14px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}
.mpt-detail-name{font-size:16px;font-weight:800;color:var(--text);margin-top:9px}
.mpt-detail-desc{font-size:12px;color:var(--text-2);line-height:1.6;margin-top:5px}
.mpt-vars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.mpt-var{display:flex;flex-direction:column;gap:6px}
.mpt-var span{font-size:12px;font-weight:700;color:var(--text-2)}
.mpt-var input{
  width:100%;padding:10px 12px;border:1px solid var(--border-strong);border-radius:10px;
  background:var(--surface);color:var(--text);font-size:13px;
  transition:border-color .16s var(--ease),box-shadow .16s var(--ease);
}
.mpt-var input:focus{outline:none;border-color:var(--brand-500);box-shadow:0 0 0 3px var(--brand-100)}
.mpt-preview-label{font-size:12px;font-weight:800;color:var(--text-2);margin-bottom:8px}
.mpt-preview{
  margin:0 0 14px;padding:13px;border:1px solid var(--border);border-radius:12px;
  background:var(--surface-2);color:var(--text);font-family:inherit;font-size:12px;line-height:1.7;
  white-space:pre-wrap;word-break:break-word;max-height:260px;overflow:auto;
}
.mpt-actions{display:flex;justify-content:flex-end;gap:10px}

@media (max-width:640px){
  .mpt-grid{grid-template-columns:1fr}
  .mpt-vars{grid-template-columns:1fr}
  .mpt-actions{flex-direction:column-reverse}
  .mpt-actions .btn{width:100%}
}

.mpt-import-banner{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:11px 13px;margin-bottom:14px;border:1px solid #c7d2fe;border-radius:13px;
  background:var(--brand-50);color:var(--text);font-size:12px;
}
.mpt-import-banner strong{display:block;margin-bottom:3px;color:var(--brand-700)}
.mpt-import-banner span{color:var(--text-2);line-height:1.5}
.mpt-import-cancel{flex:0 0 auto;padding:5px 9px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text-2);font-size:11px;cursor:pointer}
.mpt-import-cancel:hover{border-color:var(--brand-300);color:var(--brand-600)}
.mpt-locked-note{padding:9px 12px;margin-bottom:12px;border:1px solid #fde68a;border-radius:11px;background:var(--warning-bg);color:#b45309;font-size:12px;font-weight:650}

.mdi-choice-preview{padding:14px;margin-bottom:12px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}
.mdi-choice-label{font-size:11px;font-weight:700;color:var(--text-3);margin-bottom:7px}
.mdi-choice-title{font-size:15px;font-weight:800;color:var(--text);margin-bottom:6px}
.mdi-choice-text{font-size:12px;color:var(--text-2);line-height:1.7;white-space:pre-wrap;word-break:break-word}
.mdi-choice-hint{margin-bottom:14px;font-size:12px;color:var(--text-3);line-height:1.7}
.mdi-choice-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}

@media (max-width:560px){
  .mdi-choice-actions{flex-direction:column-reverse}
  .mdi-choice-actions .btn{width:100%}
}

/* ---------- 多维数字模板(#p10s7)：紧凑模板卡 + 搜索栏（2026-09-29） ---------- */
.mdh-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.mdh-head-text{min-width:0}
.mdh-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mdh-search{display:inline-flex;align-items:center;gap:6px;flex:0 1 200px;min-width:150px;padding:5px 11px;border:1px solid var(--border);border-radius:999px;background:var(--surface)}
.mdh-search .ic{width:14px;height:14px;flex:0 0 auto;color:var(--text-3)}
.mdh-search input{flex:1 1 auto;min-width:0;padding:0;border:0;border-radius:0;outline:0;background:transparent;font-size:12px;line-height:18px;height:18px;color:var(--text)}
.mdh-search input:focus{box-shadow:none;border-color:transparent}
.mdh-search input::placeholder{color:var(--text-3)}
.mdh-search:focus-within{border-color:var(--brand-400, #93c5fd);box-shadow:0 0 0 3px rgba(37,99,235,.10)}
.mdh-count{font-size:12px;color:var(--text-3)}
.mdh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.mdh-card{display:flex;flex-direction:column;padding:9px 10px;border:1px solid #eef2f7;border-radius:12px;background:var(--surface)}
.mdh-thumbs{display:flex;gap:5px;margin-bottom:7px;overflow:hidden}
.mdh-thumbs img{width:36px;height:48px;object-fit:cover;border-radius:6px;background:#e5e7eb;cursor:zoom-in;flex:0 0 auto}
.mdh-thumbs img.mdh-ref{outline:2px dashed #93c5fd;outline-offset:-2px}
.mdh-row{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}
.mdh-name{flex:1 1 auto;min-width:0;font-size:13px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mdh-meta{flex:0 0 auto;font-size:11px;color:var(--text-3)}
.mdh-prod{margin:-2px 0 6px;font-size:11px;color:var(--text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mdh-btns{display:flex;gap:6px;margin-top:auto}
.mdh-use{flex:1 1 auto;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:5px 8px;border:0;border-radius:8px;background:#2563eb;color:#fff;font-size:12px;font-weight:600;cursor:pointer}
.mdh-edit{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:5px 7px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#334155;font-size:12px;cursor:pointer}
.mdh-edit:hover{background:#eef2f7;border-color:#94a3b8}
.mdh-use:hover{background:#1d4ed8}
.mdh-del{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:5px 7px;border:1px solid #fca5a5;border-radius:8px;background:#fff1f2;color:#b91c1c;font-size:12px;cursor:pointer}
.mdh-del:hover{background:#ffe4e6}
.mdh-use .ic,.mdh-edit .ic,.mdh-del .ic{width:13px;height:13px}

/* ---------- 多维数字模板(#p10s7)：弹窗表单美化（2026-09-29） ---------- */
.mdh-form{display:flex;flex-direction:column;gap:12px}
.mdh-sec{padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}
.mdh-sec-h{display:flex;align-items:center;gap:7px;margin-bottom:10px;font-size:12px;font-weight:700;color:var(--text-2);letter-spacing:.2px}
.mdh-sec-h .ic{width:14px;height:14px;color:var(--brand-500)}
.mdh-sec-h em{margin-left:auto;font-style:normal;font-weight:500;font-size:11px;color:var(--text-3)}
.mdh-lb{display:block;margin-bottom:5px;font-size:11.5px;font-weight:600;color:var(--text-3)}
.mdh-lb i{font-style:normal;color:var(--danger)}
.mdh-lb em{margin-left:5px;font-style:normal;font-weight:500;color:var(--text-3)}
.mdh-sec input,.mdh-sec select,.mdh-sec textarea{padding:8px 11px;font-size:13px;border-radius:9px}
.mdh-sec textarea{resize:vertical;line-height:1.6}
.mdh-2c{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mdh-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:352px}
.mdh-tile{display:block;cursor:pointer}
.mdh-tilebox{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:3/4;border:1px dashed var(--border-strong);border-radius:12px;background:var(--surface);overflow:hidden;transition:border-color .16s var(--ease),background .16s var(--ease)}
.mdh-tile:hover .mdh-tilebox{border-color:var(--brand-400);background:var(--brand-50)}
.mdh-tilebox img{width:100%;height:100%;object-fit:cover;display:block}
.mdh-tileimgcap{position:absolute;left:0;right:0;bottom:0;padding:4px 0 3px;text-align:center;font-size:10.5px;color:#fff;background:linear-gradient(transparent,rgba(15,23,42,.74))}
.mdh-tileph{display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--text-3);font-size:11px}
.mdh-tileph .ic{width:20px;height:20px;color:var(--brand-400)}
.mdh-tileph b{font-weight:600;color:var(--text-2)}
.mdh-tilecap{margin-top:6px;text-align:center;font-size:11px;color:var(--text-2)}
.mdh-tilecap i{font-style:normal;color:var(--danger)}
.mdh-file{display:none}
.mdh-multi{display:flex;flex-wrap:wrap;gap:8px}
.mdh-thumb{position:relative;width:64px;height:84px;border-radius:10px;overflow:hidden;border:1px solid var(--border);background:var(--surface)}
.mdh-thumb img{width:100%;height:100%;object-fit:cover;display:block;cursor:zoom-in}
.mdh-thumb-x{position:absolute;top:3px;right:3px;width:18px;height:18px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:rgba(15,23,42,.6);color:#fff;cursor:pointer;z-index:2}
.mdh-thumb-x .ic{width:11px;height:11px}
.mdh-thumb-x:hover{background:rgba(194,37,69,.92)}
.mdh-add{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:64px;height:84px;border:1px dashed var(--border-strong);border-radius:10px;background:var(--surface);color:var(--text-3);font-size:10.5px;line-height:1.35;cursor:pointer;text-align:center;transition:border-color .16s var(--ease),color .16s var(--ease),background .16s var(--ease)}
.mdh-add:hover{border-color:var(--brand-400);color:var(--brand-600);background:var(--brand-50)}
.mdh-add .ic{width:16px;height:16px;color:var(--brand-400)}
.mdh-note{display:flex;gap:7px;margin-top:10px;padding:8px 10px;border:1px solid rgba(245,158,11,.35);border-radius:10px;background:#fffbeb;color:#b45309;font-size:11px;line-height:1.65}
.mdh-note .ic{width:14px;height:14px;flex:0 0 auto;margin-top:1px}
.mdh-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:2px}
.mdh-actions .btn{min-width:104px}
.mdh-actions .ic{width:13px;height:13px}

/* ---------- 字幕样式库(#p10s2)：卡片网格 + 样式预览（2026-09-29） ---------- */
.stl-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.stl-title{display:flex;align-items:center;gap:7px;margin:0;font-size:18px;font-weight:600;color:var(--text)}
.stl-title .ic{width:18px;height:18px;color:var(--brand-500)}
.stl-sub{font-size:12px;color:var(--text-3)}
.stl-head .btn{margin-left:auto}
.stl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.stl-card{display:flex;gap:10px;padding:10px;align-items:stretch}
.stl-prev{position:relative;flex:0 0 auto;width:96px;height:171px;border-radius:10px;overflow:hidden;background:linear-gradient(160deg,#243044,#0f172a)}
.stl-prev-t,.stl-prev-s{position:absolute;left:6px;right:6px;text-align:center;line-height:1.3;border-radius:3px;padding:2px 1px;text-shadow:0 1px 2px rgba(0,0,0,.65)}
.stl-info{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.stl-name{font-size:12.5px;font-weight:700;color:var(--text);line-height:1.4;word-break:break-word}
.stl-badge{display:inline-block;margin-left:4px;padding:1px 6px;border:1px solid #99f6e4;border-radius:99px;background:#ecfdf5;color:#0f766e;font-size:10px;font-weight:500;vertical-align:middle;white-space:nowrap}
.stl-scope{margin-top:3px;font-size:11px;color:var(--brand-600)}
.stl-params{margin-top:2px;font-size:11px;color:var(--text-3)}
.stl-slogan{margin-top:2px;font-size:11px;color:#0f766e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stl-acts{margin-top:auto;padding-top:8px;display:flex;gap:6px}
.stl-acts .btn{flex:0 0 auto}
.stl-acts .btn[data-action="editDHTpl"]{flex:1 1 auto}
.stl-del{color:#b91c1c;border-color:#fca5a5;background:#fff1f2}
.stl-del:hover{background:#ffe4e6}
.stl-empty{grid-column:1/-1;padding:28px;text-align:center;font-size:12px;color:var(--text-3)}


/* ---------- AI唱歌素材(#p10s8)：紧凑上传卡 + 卡片网格 + 懒加载试听（2026-09-29） ---------- */
.sm-up{padding:10px 12px}
.sm-up-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sm-up-row + .sm-up-row{margin-top:8px}
.sm-lb{flex:0 0 auto;font-size:12px;font-weight:600;color:var(--text-3)}
.sm-hint{flex:0 0 auto;font-size:11px;color:var(--text-3);white-space:nowrap}
#songMatUrl{flex:1 1 240px;min-width:0}
#songMatName{flex:1 1 170px;min-width:0}
#songMatCategory{flex:0 1 150px;min-width:0}
#songMatStatus:empty{display:none;margin:0}
.sm-lyr{margin-top:8px}
.sm-lyr summary{cursor:pointer;font-size:11px;color:var(--brand-600);list-style:none;padding:2px 0;user-select:none}
.sm-lyr summary::-webkit-details-marker{display:none}
.sm-lyr summary::before{content:'+ ';font-weight:700}
.sm-lyr[open] summary::before{content:'\2013 ';font-weight:700}
.sm-lyr textarea{margin-top:6px;width:100%;height:72px;resize:vertical}
.sm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.sm-card{display:flex;flex-direction:column;padding:10px}
.sm-cover{display:block;width:100%;height:96px;object-fit:cover;border-radius:8px;background:var(--surface-3)}
.sm-cover-ph{display:flex;align-items:center;justify-content:center;color:var(--text-3)}
.sm-cover-ph .ic{width:26px;height:26px}
.sm-name{margin-top:8px;font-size:13px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-meta{margin-top:3px;font-size:11px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-meta .ic{width:12px;height:12px;vertical-align:-0.12em}
.sm-audio{margin-top:6px}
.sm-audio:empty{display:none}
.sm-audio-el{display:block;width:100%;height:32px}
.sm-acts{display:flex;gap:6px;flex-wrap:nowrap;margin-top:auto;padding-top:8px}
.sm-acts .btn{flex:0 0 auto}
.sm-acts .sm-play{flex:1 1 auto}
.sm-src{margin-top:6px;font-size:10px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ============================================================
   爆款改写（#p4s0）· 科技感皮肤（方案 A+B）
   A：真步骤条 + 渐变主按钮 + 输入框聚焦外发光 + 4 个方式图标底座 + 弹窗渐变按钮
   B：生成流光进度条 + 结果逐张浮现 + 新批次高亮描边 + 按钮 loading 态
   一键回退：删除本段（不影响其它版块）
   ============================================================ */
/* ---- A1 真步骤条 ---- */
#p4s0 .rw-rail{gap:8px}
#p4s0 .rw-rail-i{transition:background .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease),box-shadow .25s var(--ease)}
#p4s0 .rw-rail-i .sn-ck{display:none;font-weight:700}
#p4s0 .rw-rail-i.is-active{
  /* 浅端用 #2563EB（白字 5.17）而不是 #3B82F6（白字仅 3.68） */
  background:linear-gradient(135deg,#2563EB,#6D28D9);color:#fff;border-color:transparent;
  box-shadow:0 4px 14px rgba(79,70,229,.30);
}
/* 半透明白叠加后白字只有 2.6~3.4，改成实心白底 + 品牌深蓝（5.17） */
#p4s0 .rw-rail-i.is-active .step-num{background:#fff;color:var(--c-brand-ink,#2563EB)}
#p4s0 .rw-rail-i.is-done{background:var(--c-ok-soft,#E6F6EC);border-color:rgba(15,123,67,.24);color:var(--c-ok,#0F7B43)}
#p4s0 .rw-rail-i.is-done .step-num{background:var(--c-ok,#0F7B43);color:#fff}
#p4s0 .rw-rail-i.is-done .sn-num{display:none}
#p4s0 .rw-rail-i.is-done .sn-ck{display:inline}
/* 箭头保持 --c-text-3（#5A6675 / 白底 5.15）；不要改成浅紫，浅紫只有 1.7 */

/* ---- A2 粘贴框：卡片顶缘渐变 + 聚焦外发光 ---- */
#p4s0 .mdh-col-main > .card:first-child{position:relative;overflow:hidden}
#p4s0 .mdh-col-main > .card:first-child::before{
  content:'';position:absolute;left:0;right:0;top:0;height:3px;
  background:linear-gradient(90deg,#2563EB,#7C3AED,#2563EB);
}
#p4s0 .rw-input-wrap{position:relative}
#p4s0 #rewriteTextInput:focus{
  border-color:#6366F1 !important;
  box-shadow:0 0 0 4px rgba(99,102,241,.15),0 2px 12px rgba(99,102,241,.12);
  outline:none;
}

/* ---- B1 流光进度条 ---- */
#p4s0 .rw-progress{margin-top:10px}
#p4s0 .rw-progress[hidden]{display:none}
#p4s0 .rw-progress-track{position:relative;height:6px;border-radius:999px;background:#e8eefb;overflow:hidden}
#p4s0 .rw-progress-fill{
  position:absolute;top:0;bottom:0;left:0;width:42%;border-radius:999px;
  background:linear-gradient(90deg,rgba(59,130,246,0),#3B82F6 40%,#7C3AED 60%,rgba(124,58,237,0));
  animation:rw-shimmer 1.15s linear infinite;
}
@keyframes rw-shimmer{0%{transform:translateX(-105%)}100%{transform:translateX(345%)}}
#p4s0 .rw-progress-txt{margin-top:7px;font-size:12px;font-weight:600;color:var(--c-brand-ink,#2563EB)}

/* ---- A3 主按钮：蓝紫渐变 + 微光，loading 态 ---- */
#p4s0 #btnTextRewrite{
  background:linear-gradient(120deg,#2563EB,#4F46E5 55%,#7C3AED);
  border:1px solid rgba(255,255,255,.20);
  box-shadow:0 6px 18px rgba(79,70,229,.28),inset 0 1px 0 rgba(255,255,255,.22);
}
#p4s0 #btnTextRewrite:hover{box-shadow:0 10px 24px rgba(79,70,229,.34),inset 0 1px 0 rgba(255,255,255,.22)}
#p4s0 #btnTextRewrite.is-loading{opacity:.9;cursor:progress}

/* ---- A4 4 个改写方式：图标底座配色 ---- */
#p4s0 .rw-side-actions .btn{justify-content:flex-start}
#p4s0 .rw-side-actions .btn .ic{width:20px;height:20px;padding:3px;border-radius:6px;box-sizing:border-box;vertical-align:-.34em}
#p4s0 .rw-m-struct .ic{background:#EEF2FF;color:#4F46E5}
#p4s0 .rw-m-custom .ic{background:#FEF3C7;color:#B45309}
#p4s0 .rw-m-save .ic{background:#ECFDF5;color:#0F7B43}

/* ---- B2 结果逐张浮现 + 新批次高亮描边 ---- */
#p4s0 .rw-batch.is-fresh{
  animation:rw-pop .45s var(--ease) both;
  /* shape.css 用 .card{box-shadow:var(--sh-1)!important} 压住了卡片阴影，这里必须同级 !important 才能盖过 */
  box-shadow:0 0 0 2px rgba(99,102,241,.38),0 12px 28px rgba(79,70,229,.14) !important;
}
@keyframes rw-pop{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
#p4s0 .rw-batch.is-fresh .rw-variant{animation:rw-vin .5s var(--ease) both}
#p4s0 .rw-batch.is-fresh .rw-variant:nth-child(2){animation-delay:.09s}
#p4s0 .rw-batch.is-fresh .rw-variant:nth-child(3){animation-delay:.18s}
#p4s0 .rw-batch.is-fresh .rw-variant:nth-child(4){animation-delay:.27s}
@keyframes rw-vin{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){
  #p4s0 .rw-progress-fill{animation:none;width:100%}
  #p4s0 .rw-batch.is-fresh,#p4s0 .rw-batch.is-fresh .rw-variant{animation:none}
}

/* ---- A5 弹窗（自定义改写方向）：渐变主按钮 + 输入聚焦 ---- */
.rw-grad-btn{
  background:linear-gradient(120deg,#2563EB,#7C3AED) !important;color:#fff !important;border:none !important;
  box-shadow:0 6px 18px rgba(79,70,229,.28),inset 0 1px 0 rgba(255,255,255,.22);
}
.rw-grad-btn:hover{box-shadow:0 10px 24px rgba(79,70,229,.34)}
.rw-modal-ta:focus{
  border-color:#6366F1 !important;outline:none;
  box-shadow:0 0 0 4px rgba(99,102,241,.15);
}

/* ============================================================
   积分明细弹窗表格（openPointsSummary / #ptsLedgerTable）
   此前 <table class="table"> 在全站没有任何样式定义，表格只有内容宽度
   （实测 378px）而上方统计卡行是 590px -> 右侧空 212px，看着"错位"。
   这里只作用于该弹窗，其它版块零影响。
   ============================================================ */
#ptsLedgerTable {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}
#ptsLedgerTable thead th {
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--c-text-3, #5A6675);
  white-space: nowrap;
  border-bottom: 1px solid var(--c-line-2, rgba(0,0,0,.08));
}
#ptsLedgerTable tbody td {
  padding: 8px 10px;
  color: var(--c-text-1, #1d1d1f);
  border-bottom: 1px solid var(--c-line-2, rgba(0,0,0,.05));
  vertical-align: middle;
}
#ptsLedgerTable tbody tr:last-child td { border-bottom: none; }
#ptsLedgerTable tbody tr:hover td { background: var(--c-surface-2, #fafafc); }
#ptsLedgerTable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#ptsLedgerTable .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   爆款文案库（#p1s0）卡片底部：AI 改写 action bar（用户选的 B 方案）
   三个入口此前是三个互不搭调的按钮：AI辅助改写（老色 #4A9EFF 渐变、白字对比度 2.75:1）、
   AI自动改写（浅紫底）、放到爆款改写（白底描边，在白色卡片上看不出是按钮）。
   现在统一成「图标底座 + 文字」胶囊并包进一条 action bar：主=蓝紫渐变 / 次=浅靛 / 幽灵=白底描边。
   高度：卡片底padding折进 action bar（外层 rw-foot 归零），实测卡片高 320 -> 321（+1px），基本不增高。
   ============================================================ */
#p1s0 .rw-foot { padding: 0; border-top: none; }
#p1s0 .rw-acts {
  position: relative;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 6px 8px; padding: 5px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FBFCFE 0%, #F5F7FC 100%);
  border: 1px solid #E6EAF3;
  overflow: hidden;
}
#p1s0 .rw-acts::before {
  content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, #4F46E5, #2563EB 35%, rgba(37,99,235,0) 80%);
}
#p1s0 .rw-acts::after {
  content: ''; position: absolute; right: -40px; top: -60px; width: 160px; height: 160px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(79,70,229,.10), rgba(79,70,229,0) 70%);
}
#p1s0 .rw-act {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 7px;
  border-radius: 11px; border: 1px solid transparent;
  font-size: 12px; font-weight: 600; line-height: 1; font-family: inherit; cursor: pointer;
  position: relative; z-index: 1;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .25s var(--ease), background .25s var(--ease);
}
#p1s0 .rw-act:hover { transform: translateY(-1px); }
#p1s0 .rw-act:active { transform: translateY(0); }
#p1s0 .rw-act:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(79,70,229,.28); }
#p1s0 .rw-act .rw-act-ic {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
#p1s0 .rw-act .rw-act-ic .ic { width: 14px; height: 14px; }
/* 主：AI自动改写 */
#p1s0 .rw-act-auto {
  color: #fff;
  background: linear-gradient(135deg, #4F46E5 0%, #2563EB 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.30), 0 2px 10px rgba(37,99,235,.32);
}
#p1s0 .rw-act-auto .rw-act-ic { background: rgba(255,255,255,.20); color: #fff; }
#p1s0 .rw-act-auto::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.42) 45%, transparent 60%);
  background-size: 220% 100%; background-position: 180% 0;
  transition: background-position .6s ease;
}
#p1s0 .rw-act-auto:hover::after { background-position: -60% 0; }
/* 次：AI辅助改写 */
#p1s0 .rw-act-assist { color: #3730A3; background: #EEF2FF; border-color: rgba(79,70,229,.24); }
#p1s0 .rw-act-assist:hover { background: #E4E9FF; box-shadow: 0 4px 12px rgba(79,70,229,.16); }
#p1s0 .rw-act-assist .rw-act-ic { background: rgba(79,70,229,.15); color: #4338CA; }
/* 幽灵：放到爆款改写 */
#p1s0 .rw-act-push { color: #475569; background: #fff; border-color: #D5DCE8; }
#p1s0 .rw-act-push:hover { border-color: #B9C4D6; box-shadow: 0 4px 12px rgba(15,23,42,.08); }
#p1s0 .rw-act-push .rw-act-ic { background: #F1F5F9; color: #64748B; }

/* ============================================================
   区域级加载浮层（.loading-veil）——「整块在等」时用它，行内小加载仍用裸 .spinner
   只用于列表/面板/弹窗整体重载、AI 生成中等长耗时场景。
   ============================================================ */
.loading-veil{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:12px;min-height:156px;padding:26px 20px;border-radius:14px;overflow:hidden;
  background:
    radial-gradient(120% 92% at 50% 0%, rgba(79,70,229,.07), rgba(79,70,229,0) 62%),
    linear-gradient(180deg,#FBFCFE 0%,#F4F7FD 100%);
  border:1px solid rgba(79,70,229,.16);
}
.loading-veil::before{
  content:'';position:absolute;inset:0;pointer-events:none;opacity:.55;
  background-image:linear-gradient(rgba(79,70,229,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(79,70,229,.075) 1px,transparent 1px);
  background-size:18px 18px;background-position:center;
  -webkit-mask:radial-gradient(circle at 50% 42%, #000 0%, rgba(0,0,0,.35) 55%, transparent 80%);
          mask:radial-gradient(circle at 50% 42%, #000 0%, rgba(0,0,0,.35) 55%, transparent 80%);
}
.loading-veil::after{
  content:'';position:absolute;left:0;bottom:0;height:2px;width:100%;pointer-events:none;
  background:linear-gradient(90deg, rgba(37,99,235,0) 0%, #4F46E5 35%, #2563EB 65%, rgba(37,99,235,0) 100%);
  animation:veil-scan 1.6s ease-in-out infinite;
}
@keyframes veil-scan{0%{transform:translateX(-58%)}100%{transform:translateX(58%)}}
.loading-veil > *{position:relative;z-index:1}
.loading-veil .lv-title{font-size:13px;font-weight:600;color:#3730A3;letter-spacing:.2px;text-align:center}
.loading-veil .lv-sub{font-size:11px;color:#5A6675;text-align:center;line-height:1.6}
.loading-veil.compact{min-height:104px;padding:16px;gap:8px}
@media (prefers-reduced-motion: reduce){
  .loading-veil::after{animation:none;opacity:.7}
}

/* ============================================================
   添加账号弹窗（账号爆款 #p0s0 · showAddAcct）
   改前：640×282，两个裸 <input> 中间夹 <br><br>，无分区/图标/提示。
   改后：分区卡「账号信息」+ 图标输入框 + 链接实时识别平台 + 琥珀提示条 + 蓝紫渐变主按钮。
   实测卡片 640×439、正文对比度最低 4.83:1、主按钮渐变两端 6.29/5.17（全过 AA）。
   ============================================================ */
.ba-sec{border:1px solid #E6EAF3;border-radius:14px;background:linear-gradient(180deg,#FBFCFE,#F5F7FC);padding:14px 16px;position:relative;overflow:hidden}
.ba-sec::before{content:'';position:absolute;left:0;top:0;height:2px;width:100%;background:linear-gradient(90deg,#4F46E5,#2563EB 40%,rgba(37,99,235,0) 85%)}
.ba-sec-h{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#475569;letter-spacing:.2px;margin-bottom:12px}
.ba-sec-h .ic{width:15px;height:15px;color:#4F46E5}
.ba-sec-h em{margin-left:auto;font-style:normal;font-weight:500;font-size:11px;color:#5A6675}
.ba-lb{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:#5A6675;margin:0 0 6px}
.ba-lb i{font-style:normal;color:#dc2626}
.ba-lb .ic{width:13px;height:13px;color:#64748B}
.ba-in{width:100%;box-sizing:border-box;height:40px;padding:0 12px 0 38px;border:1px solid #D5DCE8;border-radius:10px;background:#fff;color:#1d1d1f;font-size:13px;transition:border-color .18s,box-shadow .18s}
.ba-in:focus{border-color:#6366F1;box-shadow:0 0 0 4px rgba(99,102,241,.14);outline:none}
.ba-wrap{position:relative;margin-bottom:12px}
.ba-wrap .lead{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#94A3B8;pointer-events:none}
.ba-wrap:focus-within .lead{color:#4F46E5}
.ba-detect{display:none;align-items:center;gap:6px;margin-top:7px;font-size:11.5px;font-weight:600}
.ba-detect.on{display:flex}
.ba-detect.ok{color:#0f766e}
.ba-detect .ic{width:13px;height:13px}
.ba-tip{display:flex;align-items:flex-start;gap:8px;margin-top:12px;padding:9px 12px;border-radius:11px;background:#FFFBEB;border:1px solid #FDE9C8;color:#92610B;font-size:11.5px;line-height:1.6}
.ba-tip .ic{width:14px;height:14px;flex-shrink:0;margin-top:1px;color:#D97706}
.ba-btns{display:flex;gap:10px;margin-top:14px}
.ba-cta{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1 1 auto;height:42px;border:0;border-radius:12px;cursor:pointer;
  background:linear-gradient(135deg,#4F46E5 0%,#2563EB 100%);color:#fff;font-size:13.5px;font-weight:700;font-family:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.28),0 4px 14px rgba(37,99,235,.34);overflow:hidden;transition:transform .18s}
.ba-cta .ic{width:16px;height:16px}
.ba-cta::after{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(110deg,transparent 32%,rgba(255,255,255,.42) 46%,transparent 60%);background-size:220% 100%;background-position:180% 0;transition:background-position .6s}
.ba-cta:hover::after{background-position:-60% 0}
.ba-cta:hover{transform:translateY(-1px)}
.ba-cta:disabled{opacity:.72;cursor:default;transform:none}
.ba-cancel{flex:0 0 auto;height:42px;padding:0 20px;border:1px solid #D5DCE8;border-radius:12px;background:#fff;color:#475569;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer}
.ba-cancel:hover{border-color:#B9C4D6;box-shadow:0 4px 12px rgba(15,23,42,.08)}

/* ============================================================
   采集/克隆「科技感」加载浮层（.collect-veil）——方案B
   用于四条链路：添加账号·克隆数据 / 爆款库·收录 / AI复刻·采集视频 / 账号行·更新。
   视觉与 .loading-veil 同源（淡靛渐变底 + 网格纹理 + 底部流光），额外加 conic 渐变环 +
   中心呼吸光点 + 环形扫描 + 三段式阶段步进（解析链接 → 抓取视频 → 提取文案）。
   实测：弹窗 ≈608 / 爆款库 1078 / AI复刻 760px 容器内均无溢出；阶段轨道 292px 居中。
   ============================================================ */
.collect-veil,.gen-veil{
  grid-column:1 / -1;
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:13px;min-height:196px;padding:26px 20px;border-radius:14px;overflow:hidden;
  background:
    radial-gradient(120% 92% at 50% 0%, rgba(79,70,229,.08), rgba(79,70,229,0) 62%),
    linear-gradient(180deg,#FBFCFE 0%,#F4F7FD 100%);
  border:1px solid rgba(79,70,229,.18);
  box-shadow:0 8px 22px rgba(79,70,229,.06);
}
.collect-veil::before,.gen-veil::before{
  content:'';position:absolute;inset:0;pointer-events:none;opacity:.5;
  background-image:linear-gradient(rgba(79,70,229,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(79,70,229,.08) 1px,transparent 1px);
  background-size:18px 18px;background-position:center;
  -webkit-mask:radial-gradient(circle at 50% 40%,#000 0%,rgba(0,0,0,.3) 55%,transparent 80%);
          mask:radial-gradient(circle at 50% 40%,#000 0%,rgba(0,0,0,.3) 55%,transparent 80%);
}
.collect-veil::after,.gen-veil::after{
  content:'';position:absolute;left:0;bottom:0;height:2px;width:100%;pointer-events:none;
  background:linear-gradient(90deg, rgba(37,99,235,0) 0%, #4F46E5 35%, #2563EB 65%, rgba(37,99,235,0) 100%);
  animation:veil-scan 1.6s ease-in-out infinite;
}
.collect-veil > *,.gen-veil > *{position:relative;z-index:1}
.cv-ringwrap{position:relative;width:34px;height:34px;display:grid;place-items:center}
.cv-ringwrap::after{content:'';position:absolute;inset:-7px;border-radius:50%;border:1px solid rgba(79,70,229,.35);animation:cv-ripple 1.8s ease-out infinite}
.cv-ring{
  position:absolute;inset:0;border-radius:50%;
  background:conic-gradient(from 0deg, rgba(37,99,235,0) 0%, rgba(79,70,229,.5) 45%, #2563EB 100%);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 4px));
          mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 4px));
  animation:cv-spin .85s linear infinite;
}
.cv-dot{width:12px;height:12px;border-radius:50%;background:radial-gradient(circle,#4F46E5 0%,rgba(79,70,229,.35) 55%,rgba(79,70,229,0) 72%);animation:cv-pulse 1.25s ease-in-out infinite}
@keyframes cv-spin{to{transform:rotate(360deg)}}
@keyframes cv-pulse{0%,100%{transform:scale(.8);opacity:.72}50%{transform:scale(1.15);opacity:1}}
@keyframes cv-ripple{0%{transform:scale(.6);opacity:.72}100%{transform:scale(1.5);opacity:0}}
.cv-title{font-size:13px;font-weight:700;color:#3730A3;letter-spacing:.2px;text-align:center}
.cv-steps{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center}
.cv-step{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;color:#94A3B8;transition:color .3s}
.cv-step .nd{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;border:1.5px solid #CBD5E1;background:#fff;color:#94A3B8;transition:all .3s}
.cv-step .nd .ic{width:12px;height:12px}
.cv-step.on{color:#3730A3}
.cv-step.on .nd{border-color:#4F46E5;background:linear-gradient(135deg,#4F46E5,#2563EB);color:#fff;animation:cv-node 1.4s ease-in-out infinite}
.cv-step.done{color:#0f766e}
.cv-step.done .nd{border-color:#0f766e;background:#ecfdf5;color:#0f766e}
.cv-sep{width:26px;height:2px;border-radius:2px;background:linear-gradient(90deg,#4F46E5,#2563EB);background-size:200% 100%;animation:cv-flow 1.2s linear infinite}
@keyframes cv-flow{0%{background-position:100% 0}100%{background-position:-100% 0}}
@keyframes cv-node{0%,100%{box-shadow:0 0 0 3px rgba(79,70,229,.14)}50%{box-shadow:0 0 0 7px rgba(79,70,229,.04)}}
.cv-sub{font-size:11px;color:#5A6675;text-align:center;line-height:1.6;max-width:560px}
/* ---- 生成中「科技感」核心条（.gen-bar）——方案A：矮、稳，窄侧栏也放得下 ---- */
.gen-bar{
  position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px;padding:13px 16px;border-radius:14px;
  background:linear-gradient(135deg,#f7f9ff 0%,#eef2ff 52%,#f5f8ff 100%);
  border:1px solid #DDE4F7;overflow:hidden;
  box-shadow:0 10px 22px -16px rgba(79,70,229,.5),inset 0 1px 0 rgba(255,255,255,.75);
}
.gen-bar::before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#4F46E5,#2563EB,#22D3EE);background-size:200% 100%;animation:cv-flow 1.5s linear infinite}
.gen-bar::after{content:'';position:absolute;top:0;bottom:0;left:-40%;width:38%;background:linear-gradient(100deg,transparent,rgba(79,70,229,.10) 55%,transparent);animation:gen-sweep 2.4s ease-in-out infinite;pointer-events:none}
@keyframes gen-sweep{0%{left:-40%}62%,100%{left:120%}}
.gen-bar > *{position:relative;z-index:1}
.has-genbar{display:block !important;flex:0 0 100% !important;width:100% !important;min-width:0}
.gen-bar .gb-head{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 168px}
.gb-ring{position:relative;width:30px;height:30px;flex:0 0 auto;display:grid;place-items:center}
.gb-ring::after{content:'';position:absolute;inset:-5px;border-radius:50%;border:1px solid rgba(79,70,229,.35);animation:cv-ripple 1.8s ease-out infinite}
.gb-ring .cv-ring{width:30px;height:30px}
.gb-ring .cv-dot{width:9px;height:9px}
.gb-txt{min-width:0}
.gb-title{font-size:12.5px;font-weight:700;color:#3730A3;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gb-sub{font-size:11px;color:#5A6675;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gen-bar .gb-steps{display:flex;align-items:center;gap:5px;flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end}
.gen-bar .cv-step{font-size:10.5px;font-weight:600;color:#5A6675;gap:4px}
.gen-bar .cv-step .nd{width:18px;height:18px;border-width:1.5px;border-color:#C7D2E5;background:#fff;color:#5A6675}
.gen-bar .cv-step .nd .ic{width:10px;height:10px}
.gen-bar .cv-step.on{color:#3730A3}
.gen-bar .cv-step.on .nd{border-color:#4F46E5;background:linear-gradient(135deg,#4F46E5,#2563EB);color:#fff;animation:cv-node 1.4s ease-in-out infinite}
.gen-bar .cv-step.done{color:#0f766e}
.gen-bar .cv-step.done .nd{border-color:#0f766e;background:#ecfdf5;color:#0f766e}
.gen-bar .cv-sep{width:14px}
.gb-pct{font-size:10.5px;font-weight:700;color:#3730A3;background:#EEF2FF;border:1px solid #DDE4F7;border-radius:999px;padding:3px 9px;white-space:nowrap;flex:0 0 auto}
@media (prefers-reduced-motion: reduce){
  .gen-bar::before,.gen-bar::after,.gb-ring::after{animation:none}
}
@supports not ((background: conic-gradient(#000,#fff)) and (mask: radial-gradient(#000,#000))){
  .cv-ring{background:none;border:3px solid #dbe3f0;border-top-color:#2563EB;-webkit-mask:none;mask:none;animation:cv-spin .7s linear infinite}
}
@media (prefers-reduced-motion: reduce){
  .cv-ring,.cv-dot,.cv-sep,.cv-step.on .nd,.collect-veil::after,.gen-veil::after,.cv-ringwrap::after{animation:none}
}

/* ============================================================
   「正在转录」悬浮卡（#transToast）——暗玻璃 + AI 思考环 + 声波律动
   改前：220×64 实心深灰块 + 静态麦克风图标 + 一行静态文字（完成态还会把
   <svg> 标签当纯文本显示）。改后：暗玻璃卡 + conic 渐变环/呼吸光点/脉冲扩散 +
   七柱声波律动 + 底部流光；按状态换色（运行=靛青 / 完成=绿 / 失败=红）。
   ============================================================ */
.ttx{position:fixed;bottom:24px;right:24px;z-index:9999;display:flex;align-items:center;gap:14px;
  padding:14px 18px 14px 16px;border-radius:16px;min-width:264px;max-width:400px;cursor:pointer;
  background:linear-gradient(135deg,#111827 0%,#1E1B4B 58%,#172554 100%);
  color:#fff;border:1px solid rgba(129,140,248,.35);
  box-shadow:0 12px 40px rgba(15,23,42,.45),inset 0 1px 0 rgba(255,255,255,.08);
  overflow:hidden;transition:transform .25s,box-shadow .25s}
.ttx:hover{transform:translateY(-2px);box-shadow:0 16px 46px rgba(15,23,42,.55),inset 0 1px 0 rgba(255,255,255,.1)}
.ttx::before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.4;
  background-image:linear-gradient(rgba(129,140,248,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(129,140,248,.16) 1px,transparent 1px);
  background-size:16px 16px;
  -webkit-mask:radial-gradient(circle at 18% 50%,#000,rgba(0,0,0,.25) 62%,transparent 88%);
  mask:radial-gradient(circle at 18% 50%,#000,rgba(0,0,0,.25) 62%,transparent 88%)}
.ttx::after{content:'';position:absolute;left:0;bottom:0;height:2px;width:100%;
  background:linear-gradient(90deg,rgba(37,99,235,0),#6366F1 35%,#22D3EE 65%,rgba(34,211,238,0));
  animation:tt-scan 1.8s ease-in-out infinite}
@keyframes tt-scan{0%{transform:translateX(-60%)}100%{transform:translateX(60%)}}
.tt-body{min-width:0;position:relative;z-index:1}
.tt-title{font-size:13.5px;font-weight:700;letter-spacing:.2px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-sub{font-size:11px;color:#A5B4FC;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-go{margin-left:auto;color:#818CF8;font-size:18px;opacity:.9;flex:0 0 auto;position:relative;z-index:1}
.tt-ringwrap{position:relative;width:40px;height:40px;flex:0 0 auto;display:grid;place-items:center;z-index:1}
.tt-ring{position:absolute;inset:0;border-radius:50%;
  background:conic-gradient(from 0deg,rgba(99,102,241,0) 0%,rgba(99,102,241,.5) 45%,#22D3EE 100%);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 4px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 4px));
  animation:tt-spin 1s linear infinite}
.tt-dot{width:14px;height:14px;border-radius:50%;
  background:radial-gradient(circle,#818CF8 0%,rgba(129,140,248,.4) 55%,rgba(129,140,248,0) 78%);
  animation:tt-pulse 1.3s ease-in-out infinite}
.tt-ringwrap::after{content:'';position:absolute;inset:-6px;border-radius:50%;border:1px solid rgba(129,140,248,.45);animation:tt-ripple 1.9s ease-out infinite}
@keyframes tt-spin{to{transform:rotate(360deg)}}
@keyframes tt-pulse{0%,100%{transform:scale(.8);opacity:.75}50%{transform:scale(1.15);opacity:1}}
@keyframes tt-ripple{0%{transform:scale(.6);opacity:.8}100%{transform:scale(1.55);opacity:0}}
.tt-wave{display:flex;align-items:flex-end;gap:3px;height:14px;margin-top:7px}
.tt-wave i{width:3px;border-radius:2px;background:linear-gradient(180deg,#818CF8,#22D3EE);height:5px;animation:tt-eq 1s ease-in-out infinite}
.tt-wave i:nth-child(2){animation-delay:.12s}.tt-wave i:nth-child(3){animation-delay:.24s}.tt-wave i:nth-child(4){animation-delay:.36s}
.tt-wave i:nth-child(5){animation-delay:.48s}.tt-wave i:nth-child(6){animation-delay:.6s}.tt-wave i:nth-child(7){animation-delay:.72s}
@keyframes tt-eq{0%,100%{height:4px;opacity:.5}50%{height:14px;opacity:1}}
@media (prefers-reduced-motion:reduce){.tt-ring,.tt-dot,.ttx::after,.tt-ringwrap::after,.tt-wave i{animation:none}}
.tt-icon{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px}
.tt-badge{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#fff}
.tt-badge .ic{width:18px;height:18px}
.tt-badge.ok{background:linear-gradient(135deg,#10B981,#059669);box-shadow:0 0 0 4px rgba(16,185,129,.16)}
.tt-badge.err{background:linear-gradient(135deg,#F43F5E,#E11D48);box-shadow:0 0 0 4px rgba(244,63,94,.16)}
.ttx.is-done{border-color:rgba(16,185,129,.42)}
.ttx.is-done::after{background:linear-gradient(90deg,rgba(16,185,129,0),#10B981 45%,#34D399 65%,rgba(52,211,153,0));animation:none}
.ttx.is-done .tt-sub{color:#6EE7B7}
.ttx.is-err{border-color:rgba(244,63,94,.42)}
.ttx.is-err::after{background:linear-gradient(90deg,rgba(244,63,94,0),#F43F5E 45%,#FB7185 65%,rgba(251,113,133,0));animation:none}
.ttx.is-err .tt-sub{color:#FDA4AF}
.ttx.is-done .tt-wave,.ttx.is-err .tt-wave{display:none}

/* ============================================================
   知识科普体 · 画面样式（#p18s0 · renderKSTemplates）
   改前：4 列竖卡 259×483 —— 16:9 预览被 124px 的框裁掉一截，满屏塞 246–288 字的
   prompt_text，卡片又高又挤。改后（A 竖卡）：16:9 预览完整（aspect-ratio）、
   名称/内置徽标/适用胶囊/prompt 折 2 行省略、编辑删除一行；卡片 483→296、面板 958→710。
   ============================================================ */
.ksx-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.ksx-head>div:first-child{flex:1;min-width:0}
.ksx-head .ksx-h2{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:650;color:#1d1d1f;margin:0 0 2px}
.ksx-head .ksx-h2 .ic{width:18px;height:18px;color:#4F46E5}
.ksx-head .ksx-sub{font-size:12px;color:#5A6675;margin:0}
.ksx-count{font-size:12px;font-weight:600;color:#3730A3;background:#EEF2FF;border:1px solid #DBE6FF;border-radius:999px;padding:5px 12px;white-space:nowrap}
.ksx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,1fr));gap:16px}
.ksx-card{border:1px solid #E6EAF3;border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.05);display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s,border-color .2s}
.ksx-card:hover{box-shadow:0 12px 28px rgba(15,23,42,.11);transform:translateY(-2px);border-color:#CFE0FF}
.ksx-thumb{position:relative;aspect-ratio:16/9;background:#eef2f7 center/cover no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}
.ksx-play{width:46px;height:46px;border-radius:50%;background:rgba(15,23,42,.5);color:#fff;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(3px);transition:background .18s,transform .18s}
.ksx-play .ic{width:18px;height:18px}
.ksx-thumb:hover .ksx-play{background:linear-gradient(135deg,#4F46E5,#2563EB);transform:scale(1.06)}
.ksx-badge{position:absolute;left:10px;top:10px;background:rgba(255,255,255,.94);color:#0f766e;border:1px solid #99f6e4;border-radius:999px;padding:2.5px 9px;font-size:10.5px;font-weight:700;letter-spacing:.2px}
.ksx-none{color:#94A3B8;font-size:12px}
.ksx-body{padding:11px 12px 12px;display:flex;flex-direction:column;gap:7px;flex:1}
.ksx-name{font-size:13.5px;font-weight:650;color:#1d1d1f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ksx-pill{align-self:flex-start;font-size:10.5px;font-weight:600;color:#2563EB;background:#EFF4FF;border:1px solid #DBE6FF;border-radius:999px;padding:2px 8px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.ksx-desc{font-size:11.5px;color:#5A6675;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ksx-acts{display:flex;gap:8px;margin-top:auto;padding-top:2px}
.ksx-acts button{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 12px;border-radius:9px;font-size:12px;font-weight:600;cursor:pointer;border:1px solid #D5DCE8;background:#fff;color:#334155;font-family:inherit}
.ksx-acts button:hover{border-color:#6366F1;color:#3730A3}
.ksx-acts button.del{color:#b91c1c;border-color:rgba(220,38,38,.25)}
.ksx-acts button .ic{width:13px;height:13px}

/* ====== 商户后台顶部滚动通知栏（授权后台发布，红字从右向左滚动）====== */
.notice-bar{flex:0 0 auto;background:linear-gradient(90deg,#fef2f2 0%,#fff 60%);border-bottom:1px solid #fecaca;overflow:hidden}
.notice-bar-inner{display:flex;align-items:center;gap:10px;height:40px;padding:0 18px}
.notice-bar-tag{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;height:24px;padding:0 10px;border-radius:999px;background:#fee2e2;border:1px solid #fecaca;color:#b91c1c;font-size:12px;font-weight:700;letter-spacing:.02em}
.notice-bar-tag .ic{width:13px;height:13px}
.notice-bar-track{flex:1;min-width:0;overflow:hidden;position:relative}
.notice-bar-text{display:inline-block;white-space:nowrap;padding-left:100%;color:#b91c1c;font-size:14px;font-weight:600;line-height:40px;animation:noticeScroll 18s linear infinite;will-change:transform}
@keyframes noticeScroll{from{transform:translateX(0)}to{transform:translateX(-100%)}}
@media (prefers-reduced-motion: reduce){.notice-bar-text{animation-duration:60s!important}}

/* ====== 「转录任务」明细弹窗 ====== */
.txd-ht{display:inline-flex;align-items:center;gap:7px}
.txd-ht .ic{width:16px;height:16px}
.txd-stats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.txd-chip{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 11px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:700}
.txd-chip b{font-weight:800;margin-right:1px}
.txd-chip .ic{width:13px;height:13px}
.txd-chip.is-run{background:#eef2ff;color:#3730a3}
.txd-chip.is-ok{background:#ecfdf5;color:#047857}
.txd-chip.is-err{background:#fff1f2;color:#b91c1c}
.txd-list{display:flex;flex-direction:column;gap:8px;max-height:400px;overflow-y:auto;padding-right:2px}
.txd-item{display:flex;align-items:center;gap:11px;padding:11px 12px;border:1px solid var(--border,#e5e7eb);border-left:3px solid #cbd5e1;border-radius:12px;background:#fff}
.txd-item.is-run{border-left-color:#4f46e5;background:linear-gradient(90deg,#f7f8ff,#fff)}
.txd-item.is-ok{border-left-color:#10b981}
.txd-item.is-err{border-left-color:#ef4444;background:linear-gradient(90deg,#fff8f8,#fff)}
.txd-ic{flex:0 0 auto;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f1f5f9;color:#64748b}
.txd-item.is-ok .txd-ic{background:#ecfdf5;color:#047857}
.txd-item.is-err .txd-ic{background:#fff1f2;color:#b91c1c}
.txd-ic .ic{width:15px;height:15px}
.txd-ring{width:16px;height:16px;border-radius:50%;border:2px solid rgba(79,70,229,.22);border-top-color:#4f46e5;animation:spin .7s linear infinite}
.txd-main{flex:1;min-width:0}
.txd-title{font-size:13px;font-weight:600;color:var(--text,#1d1d1f);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.txd-sub{font-size:11px;color:var(--text-3,#86868b);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.txd-pill{flex:0 0 auto;font-size:11px;font-weight:700;border-radius:999px;padding:3px 9px;background:#f1f5f9;color:#475569}
.txd-pill.is-run{background:#eef2ff;color:#3730a3}
.txd-pill.is-ok{background:#ecfdf5;color:#047857}
.txd-pill.is-err{background:#fff1f2;color:#b91c1c}
.txd-empty{text-align:center;padding:24px 12px 28px;color:var(--text-3,#86868b)}
.txd-empty .ic{width:34px;height:34px;color:#c7cbd4}
.txd-empty-t{margin-top:12px;font-size:14px;font-weight:700;color:#3d4653}
.txd-empty-s{margin-top:6px;font-size:12px;line-height:1.6;max-width:370px;margin-left:auto;margin-right:auto}

/* ---------- 统计看板（商家视角）· 行式列表（对齐「全网爆款」结果页视觉） ---------- */
.st-wrap{display:flex;flex-direction:column;gap:16px}
.st-card{background:var(--surface,#fff);border-radius:14px;box-shadow:0 1px 3px rgba(0,0,0,.04);overflow:hidden}
.st-card-head{display:flex;align-items:center;gap:8px;padding:14px 18px;border-bottom:1px solid var(--border,#eef0f4);font-size:14px;font-weight:700;color:var(--text,#1d1d1f)}
.st-card-head .ic{width:16px;height:16px;color:var(--brand-500,#3478f6)}
.st-card-head .st-sub{margin-left:auto;font-size:12px;font-weight:500;color:var(--text-3,#86868b)}
.st-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;padding:16px 18px}
.st-kpi{background:var(--surface-2,#f8fafc);border:1px solid var(--border,#eef0f4);border-radius:12px;padding:14px}
.st-kpi b{display:block;font-size:22px;font-weight:700;letter-spacing:-.4px;line-height:1;color:var(--text,#1d1d1f)}
.st-kpi span{display:block;margin-top:7px;font-size:11px;color:var(--text-3,#86868b)}
.st-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 18px;border-bottom:1px solid var(--border,#f2f3f7);transition:background .16s var(--ease,ease)}
.st-row:last-child{border-bottom:0}
.st-row:hover{background:var(--surface-2,#f8fafc)}
.st-ico{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:14px;font-weight:700;background:linear-gradient(135deg,#dbe8ff,#f1f5ff);color:var(--brand-500,#3478f6)}
.st-ico .ic{width:16px;height:16px}
.st-main{min-width:0}
.st-title{font-size:13px;font-weight:600;color:var(--text,#1d1d1f);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-title .st-u{margin-left:6px;font-size:11px;font-weight:500;color:var(--text-3,#86868b)}
.st-meta{margin-top:4px;font-size:11px;color:var(--text-3,#86868b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-vals{display:flex;align-items:center;gap:20px}
.st-v{text-align:right;min-width:58px}
.st-v b{display:block;font-size:14px;font-weight:700;color:var(--text,#1d1d1f)}
.st-v span{display:block;margin-top:2px;font-size:10px;color:var(--text-3,#86868b)}
.st-v.is-cost b{color:#b45309}
.st-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.st-pager{display:flex;align-items:center;gap:8px;padding:12px 18px;border-top:1px solid var(--border,#eef0f4);font-size:12px;color:var(--text-3,#86868b)}
.st-pager .dp-btn[disabled]{opacity:.45;pointer-events:none}
.st-empty{padding:24px 18px;text-align:center;color:var(--text-3,#86868b);font-size:13px}
@media (max-width:1180px){.st-grid2{grid-template-columns:1fr}}

/* 统计看板：标签页切换（按消耗项目 / 按日期 / 最近消耗明细） */
.st-tabs{display:flex;align-items:center;gap:6px;padding:8px 12px;border-bottom:1px solid var(--border,#eef0f4);background:var(--surface-2,#f8fafc);flex-wrap:wrap}
.st-tab{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:0;background:transparent;border-radius:8px;font-size:12px;font-weight:600;color:var(--text-2,#4b5563);cursor:pointer;transition:background .16s,color .16s,box-shadow .16s}
.st-tab .ic{width:14px;height:14px}
.st-tab:hover{background:rgba(0,0,0,.045)}
.st-tab.is-on{background:var(--surface,#fff);color:var(--brand-600,#2563eb);box-shadow:0 1px 2px rgba(0,0,0,.06)}
.st-tab .st-n{margin-left:2px;padding:1px 6px;border-radius:999px;background:rgba(0,0,0,.05);font-size:10px;font-weight:700;color:var(--text-3,#86868b)}
.st-tab.is-on .st-n{background:var(--brand-50,#eef4ff);color:var(--brand-600,#2563eb)}
.st-tabpane{display:block}

/* ===== AI图文体 · AI生成故事图（新增）===== */
.tw-seg{display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:10px;background:#f1f5f9;border:1px solid #e2e8f0}
.tw-seg-btn{border:0;background:transparent;border-radius:8px;padding:5px 12px;font-size:12px;font-weight:600;color:#475569;cursor:pointer;line-height:1.4;white-space:nowrap}
.tw-seg-btn:hover{color:#1d1d1f}
.tw-seg-btn.is-on{background:#fff;color:var(--brand-600,#2563eb);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.tw-style-grid{display:flex;gap:10px;overflow-x:auto;padding:2px 0 8px}
.tw-style-card{flex:0 0 auto;width:132px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:8px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.tw-style-card:hover{border-color:#c7d2fe}
.tw-style-card.is-on{border-color:var(--brand-600,#2563eb);box-shadow:0 0 0 2px rgba(37,99,235,.14)}
.tw-style-thumb{width:100%;height:74px;border-radius:8px;overflow:hidden;background:#f1f5f9;margin-bottom:6px}
.tw-style-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.tw-style-name{font-size:12px;font-weight:600;color:#1d1d1f;line-height:1.35;margin-bottom:2px;word-break:break-all}
.tw-style-desc{font-size:11px;color:var(--c-text-3,#86868b);line-height:1.4;max-height:32px;overflow:hidden}
.tw-shot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:12px}
.tw-shot{border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:8px;display:flex;flex-direction:column;gap:6px}
.tw-shot-busy{opacity:.55;pointer-events:none}
.tw-shot-img{width:100%;aspect-ratio:9/16;border-radius:8px;overflow:hidden;background:#f1f5f9}
.tw-shot-img img{width:100%;height:100%;object-fit:cover;display:block}
.tw-shot-txt{font-size:11px;color:#334155;line-height:1.45;max-height:48px;overflow:hidden}
.tw-shot-ops{display:flex;gap:6px;flex-wrap:wrap}
.btn-xs{padding:3px 8px;font-size:11px;border-radius:8px;line-height:1.5}

/* ===== 「企业素材库 → 图片素材」版面切换（新增）===== */
.imgmat-tabs{display:inline-flex;align-items:center;gap:4px;padding:3px;border-radius:12px;background:#f1f5f9;border:1px solid #e2e8f0;margin:0 0 14px 0}
.imgmat-tab{border:0;background:transparent;border-radius:9px;padding:7px 16px;font-size:13px;font-weight:600;color:#475569;cursor:pointer;transition:all .15s}
.imgmat-tab:hover{color:#1d1d1f}
.imgmat-tab.is-on{background:#fff;color:#2563eb;box-shadow:0 1px 3px rgba(15,23,42,.10)}
