/* ============================================================
   掌缘Agent — 一站式 AI 视频生成发布平台 · Demo 设计系统
   ============================================================ */

:root {
  --brand: #5B5BF6;
  --brand-2: #4747D1;
  --brand-dark: #4747D1;
  --brand-light: #EEF0FF;
  --brand-grad: linear-gradient(135deg, #6366F1 0%, #8B5CF6 55%, #C855F0 100%);
  --ink: #1A1D29;
  --ink-2: #4B5163;
  --ink-3: #70778A;
  --line: #E8EAF2;
  --line-strong: #D9DCE8;
  --bg: #F5F6FA;
  --card: #FFFFFF;
  --green: #12A150;
  --green-bg: #E7F7EE;
  --amber: #D97706;
  --amber-bg: #FEF3E2;
  --red: #E5484D;
  --red-bg: #FDEBEC;
  --blue: #2E7CF6;
  --blue-bg: #E9F2FE;
  --purple: #8B5CF6;
  --purple-bg: #F3EEFE;
  --cyan: #0891B2;
  --cyan-bg: #E4F6FA;
  --gray-bg: #F0F1F6;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 40, .05), 0 1px 6px rgba(20, 24, 40, .04);
  --shadow-md: 0 4px 16px rgba(20, 24, 40, .08);
  --shadow-lg: 0 12px 40px rgba(20, 24, 40, .14);
  --sidebar-w: 224px;
  --topbar-h: 60px;
  --douyin: #170B1A;
  --xhs: #FF2442;
  --sph: #FA9D3B;
  --kuaishou: #FF4906;
  --baijiahao: #2932E1;
  --gzh: #07C160;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; }
small { font-weight: 500; }

/* ---------- 通用组件 ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: all .18s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(91, 91, 246, .35); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-grad { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 18px rgba(139, 92, 246, .4); }
.btn-grad:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-soft { background: var(--brand-light); color: var(--brand); }
.btn-soft:hover { background: #E2E5FF; }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: #FADADF; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 9px; border-radius: 6px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.t-gray   { background: var(--gray-bg);  color: var(--ink-2); }
.t-blue   { background: var(--blue-bg);  color: var(--blue); }
.t-green  { background: var(--green-bg); color: var(--green); }
.t-amber  { background: var(--amber-bg); color: var(--amber); }
.t-red    { background: var(--red-bg);   color: var(--red); }
.t-purple { background: var(--purple-bg);color: var(--purple); }
.t-cyan   { background: var(--cyan-bg);  color: var(--cyan); }
.t-brand  { background: var(--brand-light); color: var(--brand); }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.dot-red { background: var(--red); }
.dot-blue { background: var(--blue); }
.dot-gray { background: var(--ink-3); }
.dot-purple { background: var(--purple); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 15px; }
.card-body { padding: 20px; }
.card-pad { padding: 20px; }

.section-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.section-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--brand-grad); }
.card .section-title::before { display: none; }

/* 表单 */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field label .req { color: var(--red); margin-left: 2px; }
.input, select.input, textarea.input {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 84px; padding: 9px 12px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 91, 246, .14); }
.input::placeholder { color: #B4B9CB; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* 选择胶囊（chip） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 15px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: #fff;
  font-size: 13px; color: var(--ink-2); cursor: pointer; transition: all .15s;
  user-select: none;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { border-color: var(--brand); background: var(--brand-light); color: var(--brand); font-weight: 600; }
.chip-sm { height: 28px; padding: 0 11px; font-size: 12px; }

/* 开关 */
.switch { position: relative; width: 40px; height: 22px; flex: none; cursor: pointer; display: inline-block; }
.switch input { display: none; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px;
  background: #CDD1DF; transition: background .2s;
}
.switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s;
}
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { left: 20px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3);
  padding: 10px 14px; background: #FAFBFD; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #FAFBFF; }
.table .num { font-variant-numeric: tabular-nums; }

/* 进度条 */
.progress { height: 6px; border-radius: 999px; background: var(--gray-bg); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--brand-grad); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab {
  padding: 10px 16px; font-size: 13px; font-weight: 500; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fadeIn .25s ease; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-size: 13px; color: var(--ink-3); }
.pager-btns { display: flex; gap: 6px; }
.pg { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.pg.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 18, 30, .5);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px;
}
.modal-mask.show { display: flex; animation: fadeIn .2s ease; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 560px;
  max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg);
  animation: popIn .22s cubic-bezier(.34, 1.4, .64, 1);
}
.modal-lg { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-x { width: 30px; height: 30px; border-radius: 8px; color: var(--ink-3); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.modal-x:hover { background: var(--gray-bg); color: var(--ink); }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }

/* Toast */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-16px);
  background: #1A1D29; color: #fff; padding: 10px 20px; border-radius: 10px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 300;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   官网（营销页）
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: .3px; }
.logo-badge {
  height: 34px; width: auto; border-radius: 8px; display: block; flex: none;
}
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); line-height: 1.1; }
.site-nav-links { display: flex; gap: 26px; flex: 1; }
.site-nav-links a { font-size: 14px; color: var(--ink-2); font-weight: 500; transition: color .15s; }
.site-nav-links a:hover { color: var(--brand); }
.site-nav .btn { height: 36px; padding: 0 16px; }

.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, .28), transparent 60%),
              radial-gradient(900px 500px at 10% 10%, rgba(99, 102, 241, .22), transparent 55%),
              linear-gradient(180deg, #12142B 0%, #171A38 60%, #1B1E42 100%);
  color: #fff; padding: 92px 0 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(800px 480px at 50% 20%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; display: flex; align-items: center; gap: 56px; }
.hero-copy { flex: 1.15; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18);
  color: #D8DBFF; margin-bottom: 22px;
}
.hero-pill .dot { background: #7CF7B0; box-shadow: 0 0 8px #7CF7B0; }
.hero h1 { font-size: 46px; line-height: 1.22; letter-spacing: 1px; }
.hero h1 em { font-style: normal; background: linear-gradient(92deg, #8EA2FF, #C795FF 55%, #F0A5FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin-top: 18px; font-size: 16px; color: #B9BDD8; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; }
.hero-cta .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #fff; }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.5); }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; }
.hero-stats b { display: block; font-size: 26px; letter-spacing: .5px; }
.hero-stats span { font-size: 13px; color: #9CA1C4; }
.hero-art { flex: 1; position: relative; min-width: 0; }
.hero-window {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px; padding: 16px; backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  animation: floaty 6s ease-in-out infinite;
}
.hw-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.hw-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.hw-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.hw-left { background: rgba(10, 12, 30, .55); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px; }
.hw-left h5 { color: #EAEAFF; font-size: 13px; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.hw-line { height: 9px; border-radius: 5px; background: rgba(255,255,255,.14); margin-bottom: 9px; }
.hw-line.w70 { width: 70%; } .hw-line.w85 { width: 85%; } .hw-line.w55 { width: 55%; }
.hw-line.grad { background: var(--brand-grad); width: 62%; }
.hw-phone {
  aspect-ratio: 9 / 13; border-radius: 20px; border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(160deg, #2A2E5E, #14162E 70%);
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
}
.hw-phone .play {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.hw-phone .cap { padding: 12px; }
.hw-phone .cap i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.35); margin-bottom: 7px; }
.hw-phone .cap i:last-child { width: 60%; margin-bottom: 0; }
.hero-chip {
  position: absolute; background: #fff; color: var(--ink); border-radius: 12px;
  padding: 9px 14px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lg);
}
.hero-chip.c1 { top: -18px; right: 30px; animation: floaty 5s ease-in-out infinite; }
.hero-chip.c2 { bottom: -16px; left: -18px; animation: floaty 7s ease-in-out infinite .8s; }

/* 官网分区 */
.section { padding: 84px 0; }
.section-alt { background: #fff; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.sec-head .kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 2px; margin-bottom: 12px; }
.sec-head h2 { font-size: 32px; letter-spacing: .5px; }
.sec-head p { margin-top: 14px; color: var(--ink-3); font-size: 15px; }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }

.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: all .2s ease; box-shadow: var(--shadow-sm);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D6D9F8; }
.f-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px; background: var(--brand-light);
}
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--ink-3); }

/* 场景卡 */
.scene-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); transition: all .2s; }
.scene-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.scene-cover { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; }
.scene-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.25)); }
.scene-card .sc-body { padding: 16px 18px; }
.scene-card h3 { font-size: 15px; }
.scene-card p { font-size: 12px; color: var(--ink-3); margin-top: 5px; }

/* 流程 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.flow-step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.flow-step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand-grad); color: #fff; font-weight: 800; font-size: 13px;
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(139, 92, 246, .4);
}
.flow-step .f-emoji { font-size: 30px; margin-bottom: 10px; }
.flow-step h4 { font-size: 14px; }
.flow-step p { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* 案例 */
.case-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); transition: all .2s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-media { aspect-ratio: 16 / 10; position: relative; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.case-media .play-badge {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 17px; box-shadow: var(--shadow-md);
}
.case-media .case-tag { position: absolute; top: 10px; left: 10px; }
.case-body { padding: 14px 16px; }
.case-body h4 { font-size: 14px; }
.case-body .meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* 平台 */
.platform-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 16px; box-shadow: var(--shadow-sm); transition: all .2s;
}
.platform-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pt-logo { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #fff; }
.pt-logo img { width: 30px; height: 30px; }
.platform-tile h4 { font-size: 15px; }
.platform-tile p { font-size: 12px; color: var(--ink-3); text-align: center; }

/* 合规条 */
.trust-band { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; display: flex; gap: 30px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.trust-band .t-item { flex: 1; display: flex; gap: 14px; }
.trust-band .t-icon { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--green-bg); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.trust-band h4 { font-size: 14px; margin-bottom: 4px; }
.trust-band p { font-size: 12px; color: var(--ink-3); }

/* 套餐 */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; position: relative; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card.hot { border: 2px solid var(--brand); box-shadow: 0 16px 44px rgba(91, 91, 246, .18); }
.price-card .hot-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 17px; }
.price-card .price { margin: 14px 0 4px; font-size: 34px; font-weight: 800; letter-spacing: .5px; }
.price-card .price small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.price-card .desc { font-size: 12px; color: var(--ink-3); margin-bottom: 18px; }
.price-card ul { flex: 1; margin-bottom: 22px; }
.price-card li { font-size: 13px; color: var(--ink-2); padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; }
.price-card li::before { content: "✓"; color: var(--brand); font-weight: 800; flex: none; }
.plan-note { font-size: 12px; color: var(--ink-3); text-align: center; margin: -14px 0 12px; }

/* CTA & footer */
.cta-band {
  border-radius: 22px; padding: 56px 48px; text-align: center; color: #fff;
  background: radial-gradient(700px 300px at 50% -40%, rgba(255,255,255,.22), transparent 70%), var(--brand-grad);
  box-shadow: 0 20px 50px rgba(99, 102, 241, .35);
}
.cta-band h2 { font-size: 30px; }
.cta-band p { margin-top: 12px; color: rgba(255,255,255,.85); }
.cta-band .btn { margin-top: 26px; background: #fff; color: var(--brand); }
.cta-band .btn:hover { transform: translateY(-2px); }

.site-footer { background: #12142B; color: #A7ABCC; padding: 56px 0 30px; margin-top: 84px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; }
.site-footer p.about { font-size: 13px; margin-top: 14px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: #A7ABCC; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; font-size: 12px; color: #6F7397; }

/* ============================================================
   应用壳（后台）
   ============================================================ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex: none; background: #14162B; color: #B9BDD8;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
  display: flex; flex-direction: column; overflow-y: auto;
}
.sidebar .logo { padding: 18px 18px 14px; color: #fff; }
.sidebar .logo-badge { height: 30px; width: auto; }
.side-group { padding: 4px 12px; }
.side-group-title { font-size: 11px; color: #5D6288; letter-spacing: 1.5px; padding: 14px 10px 6px; }
.side-link {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px;
  border-radius: 9px; font-size: 13px; color: #B9BDD8; transition: all .15s; margin-bottom: 2px;
}
.side-link .ic { width: 18px; text-align: center; font-size: 15px; flex: none; }
.side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-link.on { background: var(--brand-grad); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(99, 102, 241, .4); }
.side-link .mini-tag { margin-left: auto; transform: scale(.9); }
.sidebar-foot { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.usage-mini { font-size: 12px; color: #8A8FB4; }
.usage-mini .progress { margin: 8px 0 6px; background: rgba(255,255,255,.14); }
.usage-mini .progress > i { background: linear-gradient(90deg, #7C83FF, #C084FC); }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h); background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  position: sticky; top: 0; z-index: 40;
}
.topbar .crumb { font-size: 15px; font-weight: 700; }
.topbar .crumb small { font-weight: 400; color: var(--ink-3); font-size: 12px; margin-left: 8px; }
.topbar-spacer { flex: 1; }
.top-search { position: relative; }
.top-search input {
  width: 240px; height: 34px; border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 0 12px 0 32px; font-size: 13px; background: var(--bg); outline: none;
}
.top-search input:focus { background: #fff; border-color: var(--brand); }
.top-search::before { content: "🔍"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; opacity: .6; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--ink-2); position: relative; transition: background .15s;
}
.icon-btn:hover { background: var(--gray-bg); }
.icon-btn .badge-dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 1.5px solid #fff; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border-radius: 10px; cursor: pointer; }
.user-chip:hover { background: var(--gray-bg); }
a.user-chip { text-decoration: none; color: inherit; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none;
}
.user-chip b { font-size: 13px; font-weight: 600; }

.content { padding: 24px; flex: 1; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.page-head h1 { font-size: 20px; }
.page-head .sub { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.page-head-actions { display: flex; gap: 10px; flex: none; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat-card .label { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; justify-content: space-between; }
.stat-card .value { font-size: 26px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.stat-card .trend { font-size: 12px; margin-top: 4px; color: var(--ink-3); }
.stat-card .trend b.up { color: var(--red); }
.stat-card .trend b.down { color: var(--green); }

/* 网格布局辅助 */
.layout-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.layout-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.layout-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* 快捷操作 */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 18px 10px; border-radius: 12px; border: 1px dashed var(--line-strong);
  cursor: pointer; transition: all .18s; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: #fff;
}
.quick-item:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); transform: translateY(-2px); }
.quick-item .qi { font-size: 24px; }

/* 状态概览行 */
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-stat { border-radius: 11px; padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: transform .15s; }
.mini-stat:hover { transform: translateY(-2px); }
.mini-stat .ms-num { font-size: 22px; font-weight: 800; }
.mini-stat .ms-label { font-size: 12px; opacity: .85; }

/* 列表行 */
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.list-row:last-child { border-bottom: none; padding-bottom: 0; }
.list-row:first-child { padding-top: 0; }

.thumb {
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  background: var(--gray-bg); position: relative; overflow: hidden;
}
.thumb.wide { width: 64px; height: 42px; }
.thumb .play-s {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15,18,30,.25); color: #fff; font-size: 13px;
}
.item-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.item-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* 平台 logo 小圆点 */
.pf { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.pf-dy { background: var(--douyin); }
.pf-xhs { background: var(--xhs); }
.pf-sph { background: var(--sph); }
.pf-ks { background: var(--kuaishou); }
.pf-bjh { background: var(--baijiahao); }
.pf-gzh { background: var(--gzh); }
.pf-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); background: var(--gray-bg); border-radius: 7px; padding: 3px 9px; }

/* 通知项 */
.noti-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.noti-item:last-child { border-bottom: none; }
.noti-icon { width: 30px; height: 30px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.noti-item p { font-size: 13px; }
.noti-item time { font-size: 11px; color: var(--ink-3); }

/* 热点表 */
.hot-rank { width: 20px; font-weight: 800; color: var(--ink-3); text-align: center; font-size: 13px; }
.hot-rank.top { color: var(--red); }

/* 步骤条 */
.steps { display: flex; align-items: center; gap: 0; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.step .s-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--gray-bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--ink-3); flex: none; }
.step.done { color: var(--ink); }
.step.done .s-dot { background: var(--green); color: #fff; }
.step.on { color: var(--brand); font-weight: 700; }
.step.on .s-dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(91,91,246,.15); }
.step-line { flex: 1; height: 2px; background: var(--line); margin: 0 12px; min-width: 24px; }
.step.done + .step-line, .step-line.done { background: var(--green); }

/* 时间轴（分镜） */
.timeline-x { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.shot {
  flex: none; width: 150px; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden;
  background: #fff; cursor: grab; transition: all .15s;
}
.shot:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.shot.sel { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,91,246,.18); }
.shot-cover { height: 78px; display: flex; align-items: center; justify-content: center; font-size: 26px; position: relative; }
.shot-cover .dur { position: absolute; right: 5px; bottom: 5px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 5px; }
.shot-info { padding: 8px 10px; }
.shot-info b { font-size: 12px; display: block; }
.shot-info span { font-size: 11px; color: var(--ink-3); }

/* 手机预览 */
.phone-frame {
  width: 270px; margin: 0 auto; border-radius: 30px; border: 8px solid #14162B;
  background: #0C0E1F; overflow: hidden; box-shadow: var(--shadow-lg);
}
.phone-notch { height: 22px; display: flex; align-items: center; justify-content: center; }
.phone-notch i { width: 70px; height: 12px; background: #14162B; border-radius: 8px; display: block; }
.phone-screen { background: linear-gradient(165deg, #232752, #101228 65%); aspect-ratio: 9 / 16; position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.phone-screen .play-c { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--brand); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.phone-overlay { padding: 14px; color: #fff; }
.phone-overlay .po-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.phone-overlay .po-line { height: 7px; border-radius: 4px; background: rgba(255,255,255,.4); margin-bottom: 6px; }
.phone-overlay .po-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.phone-overlay .po-tags span { font-size: 11px; background: rgba(255,255,255,.16); padding: 2px 8px; border-radius: 999px; }
.phone-tools { position: absolute; right: 8px; bottom: 92px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.phone-tools i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 13px; font-style: normal; }

/* 风险项 */
.risk-item { display: flex; gap: 10px; padding: 11px 12px; border-radius: 10px; margin-bottom: 8px; font-size: 13px; align-items: flex-start; }
.risk-item b { display: block; font-size: 13px; }
.risk-item p { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.risk-item mark { background: var(--red-bg); color: var(--red); padding: 0 3px; border-radius: 3px; font-weight: 600; }
.risk-ok { background: var(--green-bg); display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; font-size: 13px; color: var(--green); font-weight: 600; }

/* 日历 */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { text-align: center; font-size: 12px; color: var(--ink-3); padding: 6px 0; font-weight: 600; }
.cal-cell { min-height: 88px; border: 1px solid var(--line); border-radius: 10px; padding: 7px; background: #fff; position: relative; }
.cal-cell.dim { background: #FAFBFD; opacity: .55; }
.cal-cell.today { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,91,246,.12); }
.cal-cell .d { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.cal-cell.today .d { color: var(--brand); }
.cal-ev { font-size: 11px; border-radius: 6px; padding: 2px 6px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }

/* 上传区 */
.uploader {
  border: 2px dashed var(--line-strong); border-radius: 14px; padding: 36px 20px;
  text-align: center; cursor: pointer; transition: all .2s; background: #FBFCFE;
}
.uploader:hover { border-color: var(--brand); background: var(--brand-light); }
.uploader .up-ic { font-size: 34px; margin-bottom: 10px; }
.uploader b { font-size: 14px; }
.uploader p { font-size: 12px; color: var(--ink-3); margin-top: 5px; }

/* 素材卡 */
.asset-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; transition: all .18s; box-shadow: var(--shadow-sm); }
.asset-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.asset-cover { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 40px; position: relative; }
.asset-cover .len { position: absolute; right: 8px; bottom: 8px; font-size: 11px; color: #fff; background: rgba(0,0,0,.6); padding: 1px 7px; border-radius: 5px; }
.asset-body { padding: 12px 14px; }
.asset-body b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; font-size: 11px; color: var(--ink-3); }

/* 知识库文档行 */
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: none; }
.doc-ic { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }

/* 检索测试 */
.recall-item { border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; margin-bottom: 10px; background: #FBFCFE; }
.recall-item .score { float: right; font-size: 12px; font-weight: 700; color: var(--brand); }

/* 账号卡 */
.account-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px; box-shadow: var(--shadow-sm); transition: all .18s; }
.account-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ac-head { display: flex; align-items: center; gap: 12px; }
.ac-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.ac-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.ac-stats div { text-align: center; }
.ac-stats b { font-size: 16px; display: block; }
.ac-stats span { font-size: 11px; color: var(--ink-3); }
.ac-foot { display: flex; gap: 8px; margin-top: 14px; }

/* 队列任务 */
.queue-item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.queue-item:last-child { border-bottom: none; }
.qi-main { flex: 1; min-width: 0; }
.qi-actions { display: flex; gap: 6px; }

/* 日志 */
.log-box { background: #14162B; color: #9BE8B7; border-radius: 12px; padding: 16px; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px; line-height: 1.9; overflow-x: auto; }
.log-box .t { color: #5D6288; margin-right: 8px; }
.log-box .ok { color: #7CF7B0; }
.log-box .warn { color: #FFD479; }
.log-box .err { color: #FF8A8E; }

/* 策略表单行 */
.policy-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.policy-row:last-child { border-bottom: none; }
.policy-row .pr-text b { font-size: 13px; display: block; }
.policy-row .pr-text p { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.policy-row .pr-ctrl { display: flex; align-items: center; gap: 8px; flex: none; }
.mini-input { width: 90px; height: 32px; border: 1px solid var(--line-strong); border-radius: 8px; text-align: center; outline: none; }
.mini-input:focus { border-color: var(--brand); }
.unit { font-size: 12px; color: var(--ink-3); }

/* 创作中心配置卡 */
.config-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.config-step .cs-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cs-num { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-light); color: var(--brand); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.config-step h3 { font-size: 14px; }
.config-step .cs-head .opt { margin-left: auto; font-size: 12px; color: var(--ink-3); }

.type-card {
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 20px; cursor: pointer;
  transition: all .18s; position: relative; background: #fff;
}
.type-card:hover { border-color: var(--brand); }
.type-card.on { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 3px rgba(91,91,246,.14); }
.type-card .tc-ic { font-size: 28px; margin-bottom: 10px; }
.type-card b { font-size: 15px; display: block; }
.type-card p { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.type-card .check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; display: none; align-items: center; justify-content: center; }
.type-card.on .check { display: flex; }

.material-pick { display: flex; gap: 12px; flex-wrap: wrap; }
.material-pick .mp {
  width: 92px; height: 92px; border-radius: 12px; border: 1px solid var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--ink-3); cursor: pointer; transition: all .15s; background: #fff;
}
.material-pick .mp .em { font-size: 26px; }
.material-pick .mp:hover, .material-pick .mp.on { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.material-pick .mp-add { border-style: dashed; }

/* 生成面板 */
.gen-panel { position: sticky; top: 84px; }
.gen-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.gen-item:last-child { border-bottom: none; }
.gen-item .gi-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.gen-item .gi-info { flex: 1; }
.gen-item b { font-size: 13px; display: block; }
.gen-item span { font-size: 12px; color: var(--ink-3); }

/* 空状态 */
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty .em { font-size: 42px; margin-bottom: 12px; }

/* 响应式（演示用，基础支持） */
@media (max-width: 1100px) {
  .hero .wrap { flex-direction: column; }
  .hero-art { width: 100%; max-width: 560px; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .g-4, .g-5 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .layout-2-1, .layout-1-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 套餐升级页（pricing.html） ---------- */
.price-card .credit-line { display: flex; align-items: center; gap: 8px; background: var(--brand-light); border-radius: 10px; padding: 10px 14px; margin: 6px 0 18px; }
.price-card .credit-line .cic { font-size: 18px; }
.price-card .credit-line b { font-size: 16px; color: var(--brand); }
.price-card .credit-line span { font-size: 12px; color: var(--ink-3); }
.bonus-flag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--amber); background: var(--amber-bg); border-radius: 20px; padding: 2px 9px; margin-left: 6px; }

.credit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.credit-table th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFBFD; }
.credit-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.credit-table tr:last-child td { border-bottom: none; }
.credit-table .cv { font-weight: 700; color: var(--brand); white-space: nowrap; }
.credit-table .cnote { font-size: 12px; color: var(--ink-3); }

/* ---------- 智能创作模式（create.html） ---------- */
.mode-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(90deg, var(--brand-light) 0%, transparent 70%); }
.mode-hint { font-size: 12px; color: var(--ink-3); }
.mode-switch { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.mode-btn { height: 34px; padding: 0 18px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); transition: all .18s ease; white-space: nowrap; }
.mode-btn:hover { color: var(--ink-2); }
.mode-btn.on { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-sm); }

.idea-input { width: 100%; min-height: 78px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.6; outline: none; background: #fff; }
.idea-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 91, 246, .14); }
.idea-tpls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.tpl-label { font-size: 12px; color: var(--ink-3); margin-right: 2px; }

.smart-summary { border: 1px solid #DDD6FE; background: linear-gradient(180deg, #F8F6FF 0%, #FFFFFF 55%); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.ss-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ss-badge { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.ss-head b { font-size: 14px; }
.ss-head .ss-sub { font-size: 12px; color: var(--ink-3); margin-left: auto; }
.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 24px; margin-top: 14px; }
.sum-row { display: flex; gap: 8px; font-size: 13px; align-items: flex-start; }
.sum-row .sk { color: var(--ink-3); flex: none; width: 68px; }
.sum-row .sv { color: var(--ink); font-weight: 600; }
.sum-row .sv .pf { vertical-align: -4px; }
.collapse-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); margin-top: 14px; }
.collapse-btn:hover { color: var(--brand-dark); }
.collapse-btn .arr { transition: transform .2s ease; display: inline-block; }
.collapse-btn.open .arr { transform: rotate(180deg); }
.collapse-body { display: none; }
.collapse-body.open { display: block; animation: fadeIn .25s ease; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
@media (max-width: 900px) { .sum-grid { grid-template-columns: 1fr; } }

/* 侧边栏退出登录 */
.logout-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; height: 36px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-3); text-decoration: none; transition: all .18s ease; }
.logout-btn:hover { color: #d64545; border-color: #f3c1c1; background: #fdf3f3; }

/* ============================================================
   AI 创作页（create.html）—— 即梦左栏 + 豆包输入框 风格
   ============================================================ */
body.page-chat {
  margin: 0; padding: 0; min-height: 100vh;
  display: flex; background: #fafbfc; color: var(--ink-1);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* —— 左侧（updream 布局 · 无栏背景，logo 左上 + 导航悬浮垂直居中） —— */
.chat-rail {
  position: fixed; inset: 0 auto 0 0; z-index: 55;
  width: 64px; height: 100vh; box-sizing: border-box;
  background: #fafbfc;
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0 12px;
}
/* 左上角 logo（固定在视口左上角） */
.rail-logo { position: absolute; top: 10px; left: 12px; z-index: 10; display: flex; align-items: center; }
.rail-logo img { height: 60px; width: auto; max-width: none; object-fit: contain; }
/* 所有页面统一：导航组始终在视口垂直正中，页面滚动不移动 */
.rail-nav { position: absolute; top: 50%; left: 0; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; width: 100%; align-items: center; margin: 0; }
.rail-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 48px; padding: 7px 0 8px; border-radius: 12px; text-decoration: none;
  color: #8a90a0; cursor: pointer; background: transparent; border: none;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.rail-item:hover { color: #6366f1; }
.rail-item .rail-icon { font-size: 17px; line-height: 1; margin-bottom: 5px; display: flex; align-items: center; justify-content: center; }
.rail-item .rail-icon svg { width: 17px; height: 17px; display: block; }
.rail-item .rail-label { font-size: 11px; line-height: 1; }
/* 选中态：白色圆角块 + 品牌色图标/文字 + 轻投影 */
.rail-item.on {
  background: #fff; color: #6366f1; font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(99,102,241,.14);
}
.rail-item.on:hover { color: #6366f1; }

/* —— 主区域 —— */
.chat-main { flex: 1; min-width: 0; margin-left: 64px; display: flex; flex-direction: column; height: 100vh; position: relative; }

/* （顶栏已移除：logo 与导航统一收纳在左侧窄栏） */

/* —— 右上角登录入口 —— */
.page-corner { position: fixed; top: 18px; right: 24px; z-index: 60; }
.login-pill {
  background: #fff; border: none; cursor: pointer;
  border-radius: 14px; padding: 13px 24px;
  font-size: 14px; font-weight: 700; color: #111; letter-spacing: .5px;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  transition: transform .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.login-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.user-chip {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: #fff; border: none; border-radius: 999px;
  padding: 4px 14px 4px 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  transition: transform .15s ease;
  font-family: inherit;
}
.user-chip:hover { transform: translateY(-1px); }
.uc-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.uc-name { font-size: 13px; font-weight: 700; color: #111; }
.user-chip[hidden] { display: none; }

/* 全站统一账户菜单 */
.account-menu-mask {
  position: fixed; inset: 0; z-index: 145; background: transparent;
}
.account-menu-mask[hidden] { display: none; }
.account-menu-panel {
  position: absolute; top: 68px; right: 24px; width: 340px; box-sizing: border-box;
  overflow: hidden; border: 1px solid #e8eaf0; border-radius: 15px; padding: 12px;
  background: #fff; box-shadow: 0 18px 48px rgba(20,24,40,.16);
  opacity: 0; transform: translateY(-7px) scale(.985); transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease;
}
.account-menu-mask.show .account-menu-panel { opacity: 1; transform: translateY(0) scale(1); }
.account-menu-mobile-head { display: none; }
.account-menu-profile { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 10px; padding: 5px 5px 12px; }
.account-menu-avatar {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg,#f59e0b,#ef4444); color: #fff; font-size: 15px; font-weight: 800;
}
.account-menu-profile > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.account-menu-name { overflow: hidden; color: var(--ink-1); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-profile small { color: var(--ink-3); font-size: 11.5px; }
.account-menu-status { display: grid; grid-template-columns: 8px minmax(0,1fr); align-items: center; gap: 9px; border-radius: 10px; padding: 10px 11px; background: #f7f8fb; }
.account-menu-status > i { width: 8px; height: 8px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 3px #e8f7ef; }
.account-menu-status > span { display: flex; flex-direction: column; gap: 2px; }
.account-menu-status b { color: var(--ink-2); font-size: 11.5px; }
.account-menu-status small { color: var(--ink-3); font-size: 11px; }
.account-menu-resources { margin-top: 9px; border: 1px solid #eceef3; border-radius: 11px; padding: 10px 11px 11px; background: #fff; }
.account-menu-resources-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.account-menu-resources-head b { color: var(--ink-2); font-size: 11.5px; }
.account-menu-resources-head small { color: var(--ink-3); font-size: 10.5px; }
.account-resource-row + .account-resource-row { margin-top: 10px; }
.account-resource-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.account-resource-copy span { color: var(--ink-3); font-size: 10.5px; }
.account-resource-copy b { color: var(--ink-2); font-size: 10.5px; font-weight: 700; }
.account-resource-body { display: grid; grid-template-columns: minmax(0,1fr) 42px; align-items: center; gap: 9px; }
.account-resource-track { height: 5px; overflow: hidden; border-radius: 999px; background: #eef0f4; }
.account-resource-track i { display: block; height: 100%; border-radius: inherit; }
.account-resource-storage .account-resource-track i { background: #8ea7c4; }
.account-resource-compute .account-resource-track i { background: #a69bd1; }
.account-resource-body button {
  height: 24px; border: 1px solid #e0e3ea; border-radius: 7px; background: #fafbfc;
  color: #626a7a; cursor: pointer; font-size: 10.5px; font-weight: 700;
}
.account-resource-body button:hover { border-color: #cfd3dd; background: #f4f5f8; color: var(--ink-2); }
.account-menu-help {
  min-height: 40px; display: flex; align-items: center; justify-content: space-between;
  margin-top: 9px; border-radius: 10px; padding: 0 11px; color: var(--ink-2); text-decoration: none;
  font-size: 12.5px; font-weight: 700;
}
.account-menu-help:hover { background: #f6f7fa; }
.account-menu-help > span { display: flex; align-items: center; gap: 8px; }
.account-menu-help > span i { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #d9dde7; border-radius: 50%; color: #72798a; font-size: 10px; font-style: normal; }
.account-menu-help > b { color: #a2a7b3; font-size: 18px; font-weight: 400; }
.account-menu-logout {
  width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between;
  margin-top: 9px; border: 0; border-radius: 10px; padding: 0 11px; background: transparent;
  color: #c53f4b; cursor: pointer; font-size: 12.5px; font-weight: 700;
}
.account-menu-logout:hover { background: #fff3f4; }
.account-menu-logout i { color: #d98b92; font-size: 18px; font-style: normal; }
.account-menu-close { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 16px; }
.account-menu-main[hidden], .account-menu-confirm[hidden] { display: none; }
.account-menu-confirm { padding: 8px 4px 4px; text-align: center; }
.account-menu-confirm-icon { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto 9px; border-radius: 50%; background: #fff2f3; color: #c53f4b; font-size: 18px; font-weight: 800; }
.account-menu-confirm > b { display: block; color: var(--ink-1); font-size: 14px; }
.account-menu-confirm > p { margin: 7px 4px 13px; color: var(--ink-3); font-size: 11.5px; line-height: 1.55; }
.account-menu-confirm > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.account-menu-cancel, .account-menu-confirm-logout { min-height: 38px; border-radius: 9px; cursor: pointer; font-size: 11.5px; font-weight: 700; }
.account-menu-cancel { border: 1px solid #e2e5ec; background: #fff; color: var(--ink-2); }
.account-menu-confirm-logout { border: 1px solid #d74855; background: #d74855; color: #fff; }
.account-menu-cancel:hover { background: #f7f8fb; }
.account-menu-confirm-logout:hover { background: #c93e4b; }

/* 未登录访问受限提示 */
.rail-item.is-login-locked { color: #a9adb7; opacity: .72; }
.rail-item.is-login-locked:hover { color: #7d8290; background: #f4f5f7; }
.login-gate-mask {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 18px;
  background: rgba(18,21,32,.28); opacity: 0; transition: opacity .18s ease;
}
.login-gate-mask[hidden] { display: none; }
.login-gate-mask.show { opacity: 1; }
.login-gate-panel {
  width: min(350px,calc(100vw - 36px)); box-sizing: border-box; border-radius: 17px; padding: 23px 22px 20px;
  background: #fff; box-shadow: 0 22px 60px rgba(20,24,40,.2); text-align: center;
  transform: translateY(8px) scale(.985); transition: transform .18s ease;
}
.login-gate-mask.show .login-gate-panel { transform: translateY(0) scale(1); }
.login-gate-icon { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: #f1f2ff; color: var(--brand); font-size: 13px; font-weight: 800; }
.login-gate-panel h3 { margin: 0; color: var(--ink-1); font-size: 17px; }
.login-gate-panel p { margin: 8px 0 18px; color: var(--ink-3); font-size: 11.5px; }
.login-gate-panel > div { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; }
.login-gate-cancel, .login-gate-confirm { min-height: 42px; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 700; }
.login-gate-cancel { border: 1px solid #e1e4eb; background: #fff; color: var(--ink-2); }
.login-gate-confirm { border: 1px solid var(--brand); background: var(--brand); color: #fff; }
.login-gate-cancel:hover { background: #f7f8fb; }
.login-gate-confirm:hover { background: var(--brand-2); }
.ac-login-context { width: fit-content; margin: 9px auto 0; border-radius: 999px; padding: 5px 10px; background: #f1f2ff; color: var(--brand); font-size: 11.5px; font-weight: 700; }

/* —— 中央容器 —— */
.chat-container {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  touch-action: pan-y; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 24px 24px 24px; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: #d8dbe6 transparent;
}
.chat-container::-webkit-scrollbar { width: 8px; }
.chat-container::-webkit-scrollbar-track { background: transparent; }
.chat-container::-webkit-scrollbar-thumb { background: #d8dbe6; border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; }
.chat-container::-webkit-scrollbar-thumb:hover { background-color: #bfc4d2; }
/* 生成态改用普通文档流，避免 Flex 溢出内容无法向上滚动 */
body.page-chat:not(.state-empty) .chat-container { display: block; }
body.page-chat:not(.state-empty) .chat-stream { min-height: max-content; }

/* —— 空状态 —— */
.chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 0 24px; flex: 1; }
.chat-empty[hidden] { display: none; }
.chat-hello { font-size: 30px; font-weight: 800; color: var(--ink-1); margin: 0 0 12px; }
.chat-hello em { font-style: normal; color: #6366f1; }
.chat-hello-sub { color: var(--ink-3); font-size: 15px; margin: 0; }

/* —— 对话流 —— */
.chat-stream { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.composer-home-anchor[hidden], .creation-workspace-shell[hidden] { display: none; }
.creation-workspace-shell {
  width: 100%; box-sizing: border-box; border: 1px solid #e2e4ea; border-radius: 14px;
  background: #fff; box-shadow: 0 8px 26px rgba(45,48,105,.08), 0 1px 4px rgba(20,24,40,.04);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.creation-workspace-shell:focus-within {
  border-color: #c9ccff; box-shadow: 0 10px 30px rgba(76,72,180,.11), 0 1px 4px rgba(20,24,40,.04);
}
.creation-result-stack { display: flex; flex-direction: column; gap: 0; }
.creation-result-stack > .progress-card,
.creation-result-stack > .video-script-card {
  width: 100%; max-width: none; box-sizing: border-box; border: 0; border-radius: 14px 14px 0 0;
  box-shadow: none;
}
.creation-result-stack > .progress-card.has-script-preview { overflow: visible; }
.creation-history-turn { display: flex; flex-direction: column; gap: 10px; }
.creation-history-label { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #eef0f4; padding: 9px 14px; background: #fafbfe; }
.creation-history-label span { color: var(--brand); font-size: 10.5px; font-weight: 800; }
.creation-history-label b { color: #7f8697; font-size: 10.5px; font-weight: 700; }
.creation-history-label button { margin-left: auto; border: 0; padding: 2px 4px; background: transparent; color: #9ba1ae; font-size: 10.5px; cursor: pointer; }
.creation-history-label button:hover { color: var(--brand); }
.creation-history-card { width: 100%; max-width: none; border-radius: 14px; box-shadow: var(--shadow-sm); }
.creation-history-card .pc-media { height: 250px; }
.creation-history-foot { position: relative; min-height: 38px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; border-top: 1px solid #f1f1f1; padding: 7px 12px; background: #fcfcfd; }
.creation-history-foot time { color: #9ba1ae; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.history-compute-cost { margin-right: auto; color: #9ba1ae; font-size: 10.5px; }
.history-compute-cost b { color: #777e8e; font-size: 11px; }
.history-more { display: none; width: 28px; height: 28px; border: 1px solid #e2e5ec; border-radius: 7px; background: #fff; color: #757d90; cursor: pointer; }
.history-video-actions {
  position: static; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin-left: auto;
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}
.creation-history-card:hover .history-video-actions,
.creation-history-card:focus-within .history-video-actions,
.creation-history-card.history-actions-open .history-video-actions { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.creation-history-card:hover .creation-history-foot time,
.creation-history-card:focus-within .creation-history-foot time,
.creation-history-card.history-actions-open .creation-history-foot time { opacity: 1; }
.history-video-actions > button, .history-save-wrap > button, .history-save-menu button {
  min-height: 27px; border: 1px solid #e2e5ec; border-radius: 7px; padding: 4px 8px;
  background: rgba(255,255,255,.96); color: #666e80; font-size: 10.5px; font-weight: 650; white-space: nowrap; cursor: pointer;
}
.history-video-actions button:hover { border-color: #c7c8ff; color: var(--brand); background: #f8f8ff; }
.history-video-actions button:disabled { cursor: default; opacity: .55; }
.history-video-actions .history-batch-action { border-color: #dedfff; background: #f4f4ff; color: var(--brand); }
.history-save-wrap { position: relative; }
.history-save-menu {
  position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 65; width: 128px;
  display: flex; flex-direction: column; gap: 4px; border: 1px solid #e2e5ec; border-radius: 9px; padding: 5px;
  background: #fff; box-shadow: 0 10px 28px rgba(30,35,55,.14);
}
.history-save-menu[hidden] { display: none; }
.history-save-menu button { width: 100%; text-align: center; }
.bubble-message-wrap { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.bubble-quote-action {
  border: 0; padding: 2px 5px; background: transparent; color: #969cac; font-size: 10.5px; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s, color .15s;
}
.bubble-message-wrap:hover .bubble-quote-action, .bubble-message-wrap:focus-within .bubble-quote-action { opacity: 1; visibility: visible; }
.bubble-quote-action:hover { color: var(--brand); }
.return-home-modal { max-width: 420px; }
.return-home-body { display: flex; flex-direction: column; align-items: center; padding: 27px 24px 23px; text-align: center; }
.return-home-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; background: #f1f2ff; color: var(--brand); font-size: 21px; font-weight: 800; }
.return-home-body b { color: var(--ink-1); font-size: 15px; }
.return-home-body p { max-width: 320px; margin-top: 8px; color: var(--ink-3); font-size: 11.5px; line-height: 1.65; }
.bubble { display: flex; width: fit-content; max-width: min(78%, 620px); }
.bubble-user { justify-content: flex-end; }
.bubble-text {
  width: fit-content; max-width: 100%; box-sizing: border-box; padding: 12px 16px; background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-size: 14px; line-height: 1.6; border-radius: 14px 14px 4px 14px;
  box-shadow: 0 2px 8px rgba(99,102,241,.18);
  white-space: pre-wrap; overflow-wrap: anywhere;
}

/* —— 进度卡（AI 侧） —— */
.progress-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-sm); max-width: 100%;
}
/* 视频生成结果外框与下方输入框等宽，竖屏预览尺寸保持不变 */
.progress-card:not(.progress-card-text) { width: 100%; max-width: 760px; align-self: center; }
.progress-card.has-script-preview { overflow: visible; }
.pc-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #f1f1f1; flex-wrap: wrap; }
.pc-title { font-size: 14px; font-weight: 800; color: var(--ink-1); }
.pc-meta { font-size: 12px; color: var(--ink-3); }
.pc-meta i { color: inherit; font-style: normal; }
.pc-info { margin-left: auto; background: none; border: none; color: var(--ink-3); font-size: 12px; cursor: pointer; }
.pc-info:hover { color: var(--brand); }
.pc-script-preview-wrap { position: relative; z-index: 24; margin-left: auto; }
.pc-script-preview-wrap .pc-info { margin-left: 0; padding: 4px 0; }
.pc-script-popover {
  position: absolute; z-index: 60; top: calc(100% + 7px); right: 0; width: min(420px,calc(100vw - 32px)); max-height: min(540px,calc(100vh - 150px));
  box-sizing: border-box; overflow-y: auto; border: 1px solid #e1e4eb; border-radius: 13px; padding: 13px; background: #fff;
  box-shadow: 0 18px 48px rgba(20,24,40,.18); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px);
  transition: opacity .15s, visibility .15s, transform .15s; text-align: left;
}
.pc-script-preview-wrap:hover .pc-script-popover, .pc-script-preview-wrap:focus-within .pc-script-popover { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.pc-script-popover-head, .pc-script-scenes-preview-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-script-popover-head { border-bottom: 1px solid #eef0f4; padding-bottom: 10px; }
.pc-script-popover-head b { color: var(--ink-1); font-size: 13px; }
.pc-script-popover-head span, .pc-script-scenes-preview-title span { color: var(--ink-3); font-size: 11px; }
.pc-script-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pc-script-summary-grid > div, .pc-script-block { min-width: 0; border-radius: 9px; padding: 9px 10px; background: #f7f8fb; }
.pc-script-summary-grid small, .pc-script-block > small { display: block; margin-bottom: 5px; color: var(--ink-3); font-size: 11px; }
.pc-script-summary-grid b { display: block; color: var(--ink-2); font-size: 11.5px; line-height: 1.5; }
.pc-script-block { margin-top: 8px; }
.pc-script-block p { margin: 0; color: var(--ink-2); font-size: 11px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.pc-script-scenes-preview { margin-top: 11px; border-top: 1px solid #eef0f4; padding-top: 10px; }
.pc-script-scenes-preview-title b { color: var(--ink-1); font-size: 11px; }
.pc-script-scene-preview { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 8px; margin-top: 7px; border: 1px solid #eceef3; border-radius: 9px; padding: 8px; }
.pc-script-scene-preview > strong { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: #f0f1ff; color: var(--brand); font-size: 11px; }
.pc-script-scene-preview > div { min-width: 0; }
.pc-script-scene-preview small { color: var(--brand); font-size: 11px; }
.pc-script-scene-preview b { display: block; margin-top: 3px; color: var(--ink-2); font-size: 11px; line-height: 1.5; }
.pc-script-scene-preview p { margin: 5px 0 0; color: var(--ink-3); font-size: 11px; line-height: 1.5; }
.pc-script-scene-preview em { margin-right: 6px; color: var(--ink-2); font-style: normal; font-weight: 750; }
.pc-script-empty { padding: 22px 8px; color: var(--ink-3); font-size: 11.5px; text-align: center; }
.pc-media { position: relative; width: min(100%, 169px); height: 300px; background: linear-gradient(135deg, #dde7ff, #e9d8fd); margin: 14px auto; border-radius: 10px; overflow: hidden; }
.pc-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, #c7d2fe 0%, #ddd6fe 30%, #fbcfe8 60%, #c7d2fe 100%);
  background-size: 200% 200%;
  animation: pcWave 3s ease-in-out infinite;
}
.pc-placeholder.done { background: linear-gradient(135deg, #fde68a, #fb923c); animation: none; }
.pc-placeholder.done.hd { background: linear-gradient(145deg,#151b38,#3f46a8 48%,#8c66e8); box-shadow: inset 0 0 48px rgba(255,255,255,.16); }
@keyframes pcWave { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.pc-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.55); color: #fff; padding: 5px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700;
}
.pc-badge.done { background: #10b981; }
.pc-badge.hd { background: linear-gradient(120deg,#5656e8,#8b5cf6); }
.pc-foot { display: flex; gap: 8px; padding: 10px 14px; justify-content: flex-end; border-top: 1px solid #f1f1f1; }
.pc-compute-cost { align-self: center; margin-right: auto; color: #9299a8; font-size: 11px; white-space: nowrap; }
.pc-compute-cost b { color: #676f80; font-size: 12px; }
.pc-action {
  background: #fff; border: 1px solid var(--line); padding: 7px 14px;
  border-radius: 8px; font-size: 12px; cursor: pointer; color: var(--ink-2); font-weight: 600;
}
.pc-action:hover { border-color: var(--brand); color: var(--brand); }
.pc-action.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.pc-action.primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.pc-action.saved { border-color: #b8e3cb; background: #f0fbf5; color: #078047; }
.pc-action:disabled { cursor: default; opacity: .58; }
.batch-entry-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.batch-entry-help {
  width: 20px; height: 20px; display: grid; place-items: center; flex: none;
  border: 1px solid #d9dcee; border-radius: 50%; background: #fff;
  color: #777f94; font-size: 11px; font-weight: 800; cursor: help;
}
.batch-entry-help:hover, .batch-entry-help:focus-visible { border-color: var(--brand); color: var(--brand); outline: none; }
.batch-entry-tip {
  position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 30;
  width: 300px; box-sizing: border-box; padding: 12px 14px;
  border: 1px solid #e5e7ef; border-radius: 10px; background: #fff;
  color: var(--ink-2); box-shadow: 0 10px 30px rgba(29,34,55,.14);
  font-size: 11.5px; line-height: 1.65; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.batch-entry-tip::after {
  content: ''; position: absolute; right: 8px; top: 100%;
  border: 6px solid transparent; border-top-color: #fff;
}
.batch-entry-tip b { display: block; margin-bottom: 3px; color: var(--ink-1); font-size: 12px; }
.batch-entry-tip span { display: block; }
.batch-entry-help:hover + .batch-entry-tip,
.batch-entry-help:focus-visible + .batch-entry-tip { opacity: 1; visibility: visible; transform: translateY(0); }

/* AI 视频脚本确认 */
.video-script-card { overflow: hidden; border: 1px solid #e4e7ef; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.video-script-head { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid #eef0f4; padding: 13px 15px; background: linear-gradient(135deg,#fbfbff,#fff); }
.video-script-ai { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #e9eaff; color: var(--brand); font-size: 12px; font-weight: 900; }
.video-script-head > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.video-script-head b { color: var(--ink-1); font-size: 14px; }
.video-script-head small { overflow: hidden; color: var(--ink-3); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.video-script-head > em { border-radius: 999px; padding: 4px 9px; background: #fff4dd; color: #a46513; font-size: 11px; font-style: normal; font-weight: 750; }
.video-script-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 15px 15px 0; }
.video-script-summary label { display: flex; flex-direction: column; gap: 6px; }
.video-script-summary label > span { color: var(--ink-3); font-size: 11.5px; }
.video-script-summary input, .video-script-scene input, .video-script-scene textarea { width: 100%; box-sizing: border-box; border: 1px solid #dfe3eb; border-radius: 8px; background: #fff; color: var(--ink-2); font-family: inherit; font-size: 11.5px; line-height: 1.55; outline: none; transition: border-color .15s, box-shadow .15s; }
.video-script-summary input { min-height: 38px; padding: 0 10px; }
.video-script-summary input:focus, .video-script-scene input:focus, .video-script-scene textarea:focus { border-color: #aeb2ff; box-shadow: 0 0 0 3px #f0f1ff; }
.video-script-source { display: flex; align-items: center; gap: 9px; margin: 11px 15px 0; border-radius: 8px; padding: 8px 10px; background: #f5f6f9; }
.video-script-source b { flex: none; color: var(--ink-2); font-size: 11.5px; }
.video-script-source span { overflow: hidden; color: var(--ink-3); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.video-script-scenes { margin-top: 15px; border-top: 1px solid #eef0f4; padding: 13px 15px 15px; }
.video-script-scenes-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.video-script-scenes-title b { color: var(--ink-1); font-size: 12.5px; }
.video-script-scenes-title span { color: var(--ink-3); font-size: 11px; }
.video-script-scene { display: grid; grid-template-columns: 34px 66px 1.2fr 1.2fr .8fr; align-items: start; gap: 8px; border: 1px solid #eceef3; border-radius: 9px; padding: 9px; background: #fff; }
.video-script-scene + .video-script-scene { margin-top: 8px; }
.video-script-scene > strong { width: 28px; height: 28px; display: grid; place-items: center; margin-top: 20px; border-radius: 8px; background: #f0f1ff; color: var(--brand); font-size: 11.5px; }
.video-script-scene label { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.video-script-scene label > span { color: var(--ink-3); font-size: 11px; }
.video-script-scene input { min-height: 34px; padding: 0 8px; }
.video-script-scene textarea { min-height: 58px; resize: vertical; padding: 7px 8px; }
.video-script-foot { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #eef0f4; padding: 11px 15px; }
@media (max-width: 720px) {
  .video-script-summary { grid-template-columns: 1fr; }
  .video-script-scene { grid-template-columns: 30px 1fr; padding: 10px; }
  .video-script-scene > strong { grid-row: 1 / span 4; margin-top: 20px; }
  .video-script-scene label { grid-column: 2; }
  .video-script-foot .pc-action { min-height: 40px; }
}

/* —— 选择账号并发布 弹窗 —— */
.pub-row { display: flex; align-items: center; gap: 12px; }
.pub-label { font-size: 14px; color: var(--ink-2); }
.pub-switch {
  width: 46px; height: 26px; border-radius: 999px; background: #e3e6ea; border: none;
  position: relative; cursor: pointer; transition: background .15s ease; flex: none; padding: 0;
}
.pub-switch i {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s ease;
}
.pub-switch.on { background: var(--brand); }
.pub-switch.on i { left: 23px; }
.pub-state { font-size: 14px; color: var(--ink-3); }
.pub-state.on { color: #4d90fe; }
.pub-section { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; font-size: 14px; font-weight: 700; color: var(--ink-1); }
.pub-section::before { content: ""; width: 24px; height: 1px; background: var(--line); }
.pub-section::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pub-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-1); cursor: pointer; }
.pub-check input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; flex: none; }
.pub-select {
  height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 14px; color: var(--ink-1); min-width: 190px; cursor: pointer;
}
.pub-hint { font-size: 13px; color: var(--ink-3); }
.pub-group-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.pub-arrow { color: var(--ink-3); font-size: 11px; }
.pub-link { color: #4d90fe; font-size: 14px; cursor: pointer; }
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; padding-left: 26px; }
.pub-plat { min-width: 0; }
.pub-login { margin-left: auto; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.pub-login.bad { color: #e5484d; }
.pub-login.ok { color: #18a058; cursor: default; }
@media (max-width: 760px) { .pub-grid { grid-template-columns: 1fr 1fr; } }

/* 保存下拉 */
.pc-save-wrap { position: relative; }
.pc-save-wrap > .pc-action { width: 100%; }
.pc-save-menu {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; z-index: 40;
  display: flex; flex-direction: column; gap: 4px; width: 132px;
}
.pc-save-menu[hidden] { display: none; }
.pc-save-menu .pc-action { width: 100%; white-space: nowrap; text-align: center; }

/* 文案模式进度卡 */
.progress-card-text { padding-bottom: 4px; }
.pc-text-body { padding: 16px 18px 4px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.pc-text-body p { margin: 0 0 10px; }
.pc-content-ai-meta { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.9fr); gap: 9px; margin: 13px 15px 0; }
.pc-content-ai-meta > div { min-width: 0; border: 1px solid #eceef4; border-radius: 9px; padding: 9px 11px; background: #fafbfe; }
.pc-content-ai-meta span { display: block; margin-bottom: 4px; color: var(--ink-3); font-size: 10px; }
.pc-content-ai-meta b, .pc-content-ai-meta p { margin: 0; overflow: hidden; color: var(--ink-2); font-size: 11.5px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.pc-content-ai-meta p { color: #6b7190; }

/* —— 输入框（composer） —— */
.chat-composer-wrap {
  position: relative; z-index: 10; flex: none; padding: 0 24px 22px; display: flex; justify-content: center;
  background: linear-gradient(to top, #fafbfc 65%, rgba(250,251,252,0));
}
/* 生成状态：结果与继续输入区共用一个外轮廓，形成对话式一体工作区 */
body.page-chat:not(.state-empty) .chat-main { overflow-y: auto; overscroll-behavior: contain; }
body.page-chat:not(.state-empty) .chat-container { flex: none; min-height: 0; overflow: visible; padding-bottom: 0; }
body.page-chat:not(.state-empty) .chat-stream { min-height: 0; padding-bottom: 0; }
body.page-chat:not(.state-empty) .creation-workspace-shell { margin-bottom: 28px; }
body.page-chat:not(.state-empty) .chat-composer-wrap { display: block; margin: 0; padding: 0; background: transparent; }
body.page-chat:not(.state-empty) .chat-composer {
  max-width: none; border: 0; border-top: 1px solid #eceef4; border-radius: 0 0 14px 14px;
  background: #fafbfe; box-shadow: none;
}
body.page-chat:not(.state-empty) .chat-composer:focus-within { border-color: #e5e7f0; box-shadow: none; }
body.page-chat:not(.state-empty) .chat-toolbar { border-top-color: transparent; }
body.page-chat:not(.state-empty) .chat-textarea { min-height: 78px; max-height: 120px; }
/* 空态：问候语 + 输入框 整体垂直居中 */
body.state-empty .chat-container { flex: none; margin-top: auto; overflow: hidden; }
body.state-empty .chat-empty { padding: 40px 0 6px; flex: none; }
body.state-empty .chat-composer-wrap { margin-bottom: auto; padding-top: 14px; background: transparent; }
body.state-empty .chat-composer { border-color: #d7d9ff; box-shadow: 0 16px 50px rgba(99,102,241,.16), 0 3px 10px rgba(0,0,0,.05); }
body.state-empty .chat-textarea { min-height: 160px; }
.chat-composer {
  width: 100%; max-width: 760px; background: #fff;
  border: 1px solid #e2e4ea; border-radius: 18px; box-shadow: 0 12px 40px rgba(99,102,241,.10), 0 2px 8px rgba(0,0,0,.05);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.composer-quote {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 10px 12px 0; border-left: 3px solid #8b8cf5; border-radius: 7px;
  padding: 7px 9px 7px 10px; background: #f5f5ff;
}
.composer-quote[hidden] { display: none; }
.composer-quote > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.composer-quote small { color: var(--brand); font-size: 10px; font-weight: 800; }
.composer-quote b { overflow: hidden; color: #70778a; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.composer-quote button { width: 24px; height: 24px; flex: none; border: 0; border-radius: 6px; background: transparent; color: #979dac; font-size: 17px; cursor: pointer; }
.composer-quote button:hover { background: #e9e9ff; color: var(--brand); }
.chat-composer:focus-within { border-color: #c7d2fe; box-shadow: 0 14px 44px rgba(99,102,241,.16), 0 2px 8px rgba(0,0,0,.05); }
.chat-textarea {
  width: 100%; box-sizing: border-box; border: none; resize: none;
  padding: 14px 18px 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-1);
  background: transparent; outline: none; max-height: 180px; font-family: inherit;
}
.chat-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 10px; border-top: 1px dashed #eef0f3; flex-wrap: wrap;
}
.chat-toolbar-simple { justify-content: space-between; flex-wrap: nowrap; }

/* —— 加号按钮 —— */
.tb-plus-wrap { position: relative; }
.tb-plus {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 20px; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; transition: all .15s ease;
  font-weight: 300;
}
.tb-plus:hover { border-color: var(--brand); color: var(--brand); background: #f5f3ff; }
.tb-plus[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); background: #f3f3ff; box-shadow: 0 0 0 3px rgba(91,91,246,.10); }
.composer-bind-tip { flex: 1; margin-left: 2px; color: #8b909c; font-size: 11.5px; font-weight: 600; opacity: 0; transform: translateX(-4px); transition: opacity .16s ease, transform .16s ease; }
.composer-bind-tip[hidden] { display: none; }
.composer-bind-tip.show { opacity: 1; transform: translateX(0); }
.composer-video-link-hint { color: #5f6679; font-weight: 600; }
.composer-video-link-hint::before { content: "↗"; display: inline-grid; width: 17px; height: 17px; margin-right: 5px; place-items: center; border-radius: 5px; background: #e9eaff; color: var(--brand); font-size: 10px; font-weight: 800; vertical-align: -1px; }
.tb-send.needs-product-shake { animation: sendNeedsProduct .42s ease both; }
.tb-plus.needs-product-guide { position: relative; z-index: 1; animation: plusNeedsProduct 1s ease-in-out 2; }
@keyframes sendNeedsProduct {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
@keyframes plusNeedsProduct {
  0%,100% { border-color: var(--line); color: var(--ink-2); box-shadow: 0 0 0 0 rgba(99,102,241,0); transform: scale(1); }
  50% { border-color: var(--brand); color: var(--brand); background: #f5f3ff; box-shadow: 0 0 0 7px rgba(99,102,241,.13); transform: scale(1.08); }
}

/* 首页产品知识库多选 */
.composer-product-chips { display: flex; align-items: center; gap: 6px; max-height: 36px; padding: 10px 14px 0; overflow: hidden; }
.composer-product-chips[hidden], .product-picker[hidden] { display: none; }
.composer-product-label { flex: none; color: var(--ink-3); font-size: 11.5px; }
.composer-product-chip, .composer-product-more { height: 25px; min-width: 0; border: 1px solid #e1e4ff; border-radius: 999px; background: #f7f7ff; color: var(--brand); cursor: pointer; font-size: 11.5px; font-weight: 700; }
.composer-product-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 142px; padding: 0 8px 0 10px; }
.composer-product-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-product-chip i { flex: none; color: #9297bd; font-size: 13px; font-style: normal; font-weight: 400; }
.composer-product-chip:hover, .composer-product-more:hover { border-color: #bec3ff; background: #f0f1ff; }
.composer-product-more { flex: none; padding: 0 10px; }
.chat-composer.has-products .chat-textarea { padding-top: 9px; }
.product-picker {
  position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 80;
  width: 380px; max-width: calc(100vw - 104px); overflow: hidden;
  border: 1px solid #e2e4ec; border-radius: 12px; background: #fff;
  box-shadow: 0 14px 38px rgba(20,24,40,.16), 0 3px 10px rgba(20,24,40,.07);
}
.product-picker-head { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #f0f1f5; }
.product-picker-head > div { min-width: 0; }
.product-picker-head b { color: var(--ink-1); font-size: 13px; }
.product-picker-head em { margin-left: auto; border-radius: 999px; padding: 4px 9px; background: #f2f3ff; color: var(--brand); font-size: 11.5px; font-style: normal; font-weight: 800; white-space: nowrap; }
.product-picker-search { position: relative; display: flex; align-items: center; margin: 8px 10px 6px; }
.product-picker-search > span { position: absolute; left: 11px; color: var(--ink-3); font-size: 17px; transform: rotate(-20deg); pointer-events: none; }
.product-picker-search input { width: 100%; height: 34px; border: 1px solid #e2e5ec; border-radius: 8px; padding: 0 34px; outline: none; background: #fafbfc; color: var(--ink-1); font-size: 11.5px; }
.product-picker-search input:focus { border-color: #bfc4ff; background: #fff; box-shadow: 0 0 0 3px rgba(91,91,246,.08); }
.product-picker-search button { position: absolute; right: 7px; width: 25px; height: 25px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 16px; }
.product-picker-search button:hover { background: #eef0f5; color: var(--ink-2); }
.product-picker-list { max-height: min(230px, calc(100vh - 300px)); min-height: 96px; overflow-y: auto; padding: 2px 7px 6px; overscroll-behavior: contain; }
.product-picker-item { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 49px; padding: 6px 8px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; transition: background .12s, border-color .12s; }
.product-picker-item + .product-picker-item { margin-top: 2px; }
.product-picker-item:hover { background: #f8f9fc; }
.product-picker-item.on { border-color: #dfe2ff; background: #f6f7ff; }
.product-picker-item.is-limit { cursor: not-allowed; opacity: .48; }
.product-picker-item input { width: 15px; height: 15px; accent-color: var(--brand); }
.product-picker-main { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.product-picker-main b, .product-picker-main em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-picker-main b { color: var(--ink-1); font-size: 11.5px; }
.product-picker-main em { color: var(--ink-3); font-size: 11px; font-style: normal; }
.product-picker-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 3px; white-space: nowrap; }
.product-picker-meta i { color: var(--ink-2); font-size: 11px; font-style: normal; }
.product-picker-meta time { color: #747b8c; font-size: 11px; }
.product-picker-empty { min-height: 112px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 20px; color: var(--ink-3); font-size: 11px; text-align: center; }
.product-picker-empty b { color: var(--ink-2); font-size: 13px; }
.product-picker-empty a, .product-picker-empty button { border: 0; background: none; color: var(--brand); cursor: pointer; font-size: 11px; font-weight: 700; text-decoration: none; }
.product-picker-foot { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-top: 1px solid #eef0f4; background: #fbfcfd; }
.product-picker-foot > span { flex: 1; }
.product-picker-clear { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 11px; }
.product-picker-clear:hover { color: #dc2626; }
.product-picker-clear:disabled { cursor: default; opacity: .4; }
.tb-plus-menu {
  position: absolute; bottom: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; width: 240px; z-index: 50;
}
.pm-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px; background: none; border: none; cursor: pointer;
  border-radius: 8px; text-align: left; transition: background .15s ease;
}
.pm-item:hover { background: var(--gray-bg); }
.pm-icon { font-size: 16px; }
.pm-name { font-size: 13px; font-weight: 600; color: var(--ink-1); flex: 1; }
.pm-meta { font-size: 11px; color: var(--ink-3); }
.tb-plus-menu-single { width: 196px; }
.tb-plus-menu-single .pm-item { padding: 11px 10px; }
@media (max-width: 620px) {
  .product-picker { position: fixed; inset: auto 12px 12px; width: auto; max-width: none; max-height: 80vh; border-radius: 16px; }
  .product-picker-list { max-height: calc(80vh - 168px); }
  .product-picker-item { grid-template-columns: 22px minmax(0,1fr); }
  .product-picker-meta { grid-column: 2; align-items: flex-start; flex-direction: row; }
  .composer-product-chips { padding-left: 10px; padding-right: 10px; }
  .composer-product-chip { max-width: 104px; }
}

/* —— 创作类型下拉 —— */
.tb-mode-wrap { position: relative; }
.tb-mode {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; transition: all .15s ease;
}
.tb-mode:hover { border-color: var(--brand); background: #f5f3ff; }
.tb-mode-ico { font-size: 14px; }
.tb-mode-text { font-size: 13px; font-weight: 700; color: var(--ink-1); }
.tb-mode-arrow { font-size: 11px; color: var(--ink-3); margin-left: 2px; }
.tb-mode-menu {
  position: absolute; bottom: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; width: 160px; z-index: 50;
}
.tb-mode-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 10px; background: none; border: none; cursor: pointer;
  border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: left;
}
.tb-mode-item:hover { background: var(--gray-bg); }
.tb-mode-item.on { background: #f0eaff; color: #6366f1; }

/* —— 参数摘要条 —— */
.tb-params { display: flex; gap: 6px; align-items: center; }
.tb-param {
  display: flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink-2);
  transition: all .15s ease;
}
.tb-param:hover { border-color: var(--brand); color: var(--brand); }
.tb-param:disabled { opacity: .6; cursor: not-allowed; }
.tb-param-ico { font-size: 11px; }
.tb-param .caret { font-size: 11px; color: var(--ink-3); }

/* —— 右侧工具 —— */
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-credit {
  display: flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ink-2);
}
.tb-credit:hover { border-color: var(--brand); color: var(--brand); }
.tb-credit-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.tb-send {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-size: 18px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(99,102,241,.35); transition: transform .15s ease, box-shadow .15s ease;
}
.tb-send:hover { transform: scale(1.05); }
.tb-send.on { box-shadow: 0 4px 18px rgba(99,102,241,.55); }

/* —— 参数面板（弹层） —— */
.param-panel {
  position: fixed; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  padding: 16px 18px; min-width: 320px;
}
.pp-section + .pp-section { margin-top: 14px; }
.pp-label { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.pp-ratio-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pp-ratio {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 11px; color: var(--ink-3); font-weight: 600;
  transition: all .15s ease;
}
.pp-ratio:hover { border-color: var(--brand); }
.pp-ratio.on { border-color: var(--brand); color: var(--brand); background: #f5f3ff; }
.pp-ratio span { display: block; background: var(--ink-3); border-radius: 2px; }
.pp-ratio.on span { background: var(--brand); }
.pp-ratio .r21-9 { width: 26px; height: 11px; }
.pp-ratio .r16-9 { width: 24px; height: 13px; }
.pp-ratio .r4-3 { width: 20px; height: 15px; }
.pp-ratio .r1-1 { width: 16px; height: 16px; }
.pp-ratio .r3-4 { width: 15px; height: 20px; }
.pp-ratio .r9-16 { width: 11px; height: 20px; }
.pp-count-grid { display: flex; gap: 8px; }
.pp-count {
  flex: 1; height: 40px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-2);
  transition: all .15s ease;
}
.pp-count:hover { border-color: var(--brand); }
.pp-count.on { border-color: var(--brand); color: var(--brand); background: #f5f3ff; }

/* —— 登录浮层 —— */
.login-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
.login-modal {
  background: #fff; border-radius: 16px; padding: 28px 30px 24px;
  width: 380px; max-width: calc(100vw - 40px);
  box-shadow: 0 24px 60px rgba(0,0,0,.25); position: relative;
  animation: slideUp .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.login-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 22px; color: var(--ink-3); cursor: pointer; line-height: 1;
}
.login-close:hover { color: var(--ink-1); }
.login-title { font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--ink-1); }
.login-sub { font-size: 13px; color: var(--ink-3); line-height: 1.7; margin: 0 0 22px; }
.login-link { color: var(--brand); text-decoration: none; }
.login-link:hover { text-decoration: underline; }
.login-qr-area { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; }
.login-qr {
  width: 168px; height: 168px; border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; padding: 12px; background: #fff;
}
.qr-mock {
  width: 100%; height: 100%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.qr-dot {
  background: var(--ink-1); border-radius: 2px;
}
.login-qr-tip { font-size: 13px; color: var(--ink-2); }
.login-qr-tip b { color: #07c160; }
.login-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-ghost {
  height: 38px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-solid {
  height: 38px; padding: 0 18px; border-radius: 10px; border: none;
  background: #111; cursor: pointer; font-size: 13px; font-weight: 700; color: #fff;
}
.btn-solid:hover { background: #333; }

/* 旧 toast 兜底（app.js 中定义 toast()） */
.toast-stack { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast-stack .toast {
  background: rgba(0,0,0,.85); color: #fff; padding: 9px 14px;
  border-radius: 8px; font-size: 13px; box-shadow: 0 4px 12px rgba(0,0,0,.15); animation: fadeIn .2s ease;
}


/* ============================================================
   填写发布内容 弹窗
   ============================================================ */
.pf-body { padding: 26px 30px 8px; }
.pf-file { font-size: 14px; color: var(--ink-1); margin-bottom: 14px; }
.pf-file b { font-weight: 700; }
.pf-ai-ready { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; border: 1px solid #e3e5ff; border-radius: 10px; padding: 9px 12px; background: #f8f8ff; }
.pf-ai-ready > span { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: #e9ebff; color: var(--brand); font-size: 11px; font-weight: 900; }
.pf-ai-ready div { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.pf-ai-ready b { color: var(--ink-1); font-size: 12px; }
.pf-ai-ready small { color: var(--ink-3); font-size: 12px; }
.pf-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.pf-label { flex: none; width: 100px; display: flex; align-items: flex-end; flex-direction: column; gap: 3px; font-size: 14px; color: var(--ink-1); text-align: right; }
.pf-label small { color: #6f7594; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pf-input {
  flex: 1; height: 44px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 14px; font-size: 14px; color: var(--ink-1); outline: none;
  transition: border-color .15s, box-shadow .15s; background: #fff;
}
.pf-input::placeholder { color: #b9bdc9; }
.pf-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,91,246,.10); }
.pf-tag-wrap { flex: 1; position: relative; display: flex; }
.pf-tag-wrap .pf-input { padding-right: 36px; }
.pf-caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 13px; pointer-events: none; }
.pf-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.8; margin: -8px 0 18px 118px; }

/* ============================================================
   发布中心页（极简）
   ============================================================ */
body.page-pub {
  margin: 0; min-height: 100vh; display: flex; background: #fafbfc; color: var(--ink-1);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.pub-main { flex: 1; min-width: 0; margin-left: 64px; padding: 76px 40px 40px; }

/* 顶部：标题 + 统计 + 创建按钮 */
.pub-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.page-heading-block { min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-home-link { height: 30px; display: inline-flex; align-items: center; gap: 3px; box-sizing: border-box; border: 1px solid #e7e9ef; border-radius: 8px; padding: 0 9px 0 6px; background: rgba(255,255,255,.72); color: #777d8b; font-size: 11.5px; font-weight: 650; line-height: 1; text-decoration: none; white-space: nowrap; transition: color .15s, border-color .15s, background .15s, transform .15s; }
.page-home-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-home-link:hover { border-color: #d9dcf0; background: #f5f6ff; color: var(--brand); transform: translateX(-1px); }
.page-home-link:focus-visible { outline: 3px solid rgba(91,91,246,.12); outline-offset: 2px; }
.page-home-link-short { display: none; }
.pub-title { font-size: 20px; font-weight: 800; color: var(--ink-1); }
.pub-stats { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.pub-stat { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pub-stat b { font-size: 15px; font-weight: 800; color: var(--ink-1); }
.pub-stat .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pub-stat .dot.wait { background: #f59e0b; }
.pub-stat .dot.run { background: #3b82f6; }
.pub-stat .dot.ok { background: #10b981; }
.pub-stat .dot.fail { background: #ef4444; }
.pub-stat .dot.draft { background: #8b5cf6; }
.pub-stat .dot.relogin { background: #a855f7; }
.pub-stat-sep { color: #d5d8e2; }
.pub-create {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand); color: #fff; border: none; border-radius: 10px;
  height: 38px; padding: 0 18px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(91,91,246,.25); transition: background .15s, transform .15s;
}
.pub-create:hover { background: var(--brand-2); transform: translateY(-1px); }

/* 清单卡片 */
.pub-list {
  margin-top: 22px; background: #fff; border: 1px solid #eef0f4; border-radius: 16px;
  overflow: hidden; box-shadow: 0 6px 24px rgba(20,24,40,.05);
}
.pub-list-head, .pub-row-item {
  display: grid;
  grid-template-columns: 130px 1.2fr 110px 1.3fr 110px 110px 224px;
  gap: 14px; align-items: center; padding: 14px 22px;
}
.pub-list-head { font-size: 12.5px; color: var(--ink-3); border-bottom: 1px solid #f1f2f6; background: #fbfcfe; }
.pub-row-item { border-bottom: 1px solid #f5f6f9; transition: background .15s; }
.pub-row-item:last-child { border-bottom: none; }
.pub-row-item:hover { background: #fafbff; }

/* 首帧缩略图 */
.pub-thumb {
  position: relative; width: 130px; height: 74px; border-radius: 10px; overflow: hidden;
  background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.pub-thumb[data-preview-media], .pub-thumb[data-open-content] { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.pub-thumb[data-preview-media]:hover, .pub-thumb[data-preview-media]:focus-visible,
.pub-thumb[data-open-content]:hover, .pub-thumb[data-open-content]:focus-visible { z-index: 2; outline: none; transform: translateY(-1px); box-shadow: inset 0 0 0 2px rgba(91,91,246,.4),0 5px 14px rgba(35,38,65,.14); }
.pub-thumb::after {
  content: "▶"; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); color: #fff; border-radius: 50%; font-size: 11px; padding-left: 2px;
}
.pub-thumb.is-image::after { content: "预览"; width: auto; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 10px; }
.pub-thumb.is-imagecopy::after { content: "图文"; inset: 7px 7px auto auto; width: auto; height: 21px; margin: 0; border-radius: 999px; padding: 0 7px; background: rgba(20,23,32,.58); font-size: 10px; }
.pub-thumb-mix-copy { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 15px 8px 6px; background: linear-gradient(transparent,rgba(15,18,27,.78)); color: #fff; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.pub-thumb.is-copy { display: flex; box-sizing: border-box; align-items: flex-start; justify-content: center; flex-direction: column; gap: 6px; padding: 9px 10px; background: linear-gradient(145deg,#faf7ff,#f0f0ff 70%,#e9eaff); }
.pub-thumb.is-copy::after { display: none; }
.pub-thumb.is-copy > i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: #fff; box-shadow: 0 2px 8px rgba(75,67,160,.1); color: var(--brand); font-size: 11px; font-style: normal; font-weight: 800; }
.pub-thumb.is-copy > span { display: -webkit-box; overflow: hidden; color: #5c5d75; font-size: 10.5px; font-weight: 650; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
/* 信息列 */
.pub-name { font-size: 13.5px; font-weight: 700; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-title-cell { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-date { font-size: 12.5px; color: var(--ink-3); }

/* 状态徽章 */
.pub-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; width: fit-content; white-space: nowrap; }
.pub-status .dot { width: 6px; height: 6px; border-radius: 50%; }
.pub-status.wait, .pub-status.run { background: #eff6ff; color: #1d4ed8; }
.pub-status.wait .dot, .pub-status.run .dot { background: #3b82f6; }
.pub-status.ok { background: #ecfdf5; color: #047857; } .pub-status.ok .dot { background: #10b981; }
.pub-status.fail { background: #fef2f2; color: #b91c1c; } .pub-status.fail .dot { background: #ef4444; }
.pub-status.draft, .pub-status.scheduled { background: #f3f0ff; color: #6d42c7; }
.pub-status.draft .dot, .pub-status.scheduled .dot { background: #8b5cf6; }

/* 行内操作 */
.pub-ops {
  display: flex; gap: 8px; justify-content: flex-end;
}
.pub-op {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.pub-op:hover { border-color: var(--brand); color: var(--brand); }
.pub-op.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.pub-op.primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.pub-op:disabled { opacity: .45; cursor: not-allowed; }

/* 空态 */
.pub-empty { padding: 70px 0; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.pub-empty b { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }

/* 发布内容分页 */
.pub-pager {
  min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid #eef0f4; padding: 8px 20px; background: #fbfcfe; color: var(--ink-3); font-size: 12px;
}
.pub-pager > span b { color: var(--ink-1); font-size: 13px; }
.pub-page-actions { display: flex; align-items: center; gap: 6px; }
.pub-page-btn {
  min-width: 32px; height: 32px; border: 1px solid #e1e4eb; border-radius: 8px; padding: 0 10px;
  background: #fff; color: var(--ink-2); cursor: pointer; font-size: 12px; font-weight: 650;
}
.pub-page-btn:hover:not(:disabled) { border-color: #bec3ff; background: #f7f7ff; color: var(--brand); }
.pub-page-btn.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.pub-page-btn:disabled { cursor: default; opacity: .42; }
.pub-page-nav { min-width: 62px; }

@media (max-width: 1100px) {
  .pub-list-head { display: none; }
  .pub-row-item { grid-template-columns: 130px 1fr auto; grid-auto-rows: auto; row-gap: 10px; }
}

/* ============================================================
   数据中心页（极简）
   ============================================================ */
.dc-tabs { display: flex; background: #edeff4; border-radius: 10px; padding: 3px; gap: 2px; }
.dc-tab { border: none; background: transparent; padding: 6px 16px; border-radius: 8px; font-size: 13px; color: var(--ink-3); cursor: pointer; font-weight: 600; transition: all .15s; }
.dc-tab.on { background: #fff; color: var(--ink-1); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.dc-export {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 10px;
  height: 38px; padding: 0 18px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.dc-export:hover { border-color: var(--brand); color: var(--brand); }

/* 核心指标卡 */
.dc-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 22px; }
.dc-metric { background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 16px 18px 14px; box-shadow: 0 4px 16px rgba(20,24,40,.04); }
.dc-metric .k { font-size: 12.5px; color: var(--ink-3); }
.dc-metric .v { font-size: 22px; font-weight: 800; color: var(--ink-1); margin: 6px 0 4px; letter-spacing: -.3px; }
.dc-metric .d { font-size: 12px; font-weight: 600; }
.dc-metric .d em { font-style: normal; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.dc-metric .d.up { color: #e5484d; }
.dc-metric .d.down { color: #12A150; }
@media (max-width: 1200px) { .dc-cards { grid-template-columns: repeat(3, 1fr); } }

/* 图表 + 平台 */
.dc-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 1100px) { .dc-grid { grid-template-columns: 1fr; } }
.dc-card { background: #fff; border: 1px solid #eef0f4; border-radius: 16px; padding: 18px 20px 16px; box-shadow: 0 4px 16px rgba(20,24,40,.04); }
.dc-card + .dc-card { margin-top: 14px; }
.dc-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dc-card-head b { font-size: 14px; color: var(--ink-1); }
.dc-legend { font-size: 12px; color: var(--ink-3); }
#dcChart { width: 100%; height: auto; display: block; }

/* 平台数据行 */
.dc-plat { display: grid; grid-template-columns: 64px 1fr 84px 64px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid #f5f6f9; font-size: 13px; }
.dc-plat:last-child { border-bottom: none; }
.dc-plat .pn { font-weight: 700; color: var(--ink-1); }
.dc-bar { height: 6px; border-radius: 3px; background: #eef0f4; overflow: hidden; }
.dc-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7b7bf8, #5B5BF6); }
.dc-plat .pv { color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.dc-plat .pr { color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.dc-plat-head { font-size: 12px; color: var(--ink-3); border-bottom: 1px solid #f1f2f6; padding-bottom: 8px; }
.dc-plat-head .pv, .dc-plat-head .pr { text-align: right; }

/* 热门内容 */
.dc-top { display: grid; grid-template-columns: 30px 1.5fr 90px 90px 90px 90px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid #f5f6f9; font-size: 13px; }
.dc-top:last-child { border-bottom: none; }
.dc-top-head { font-size: 12px; color: var(--ink-3); border-bottom: 1px solid #f1f2f6; padding-bottom: 8px; }
.dc-rank { width: 22px; height: 22px; border-radius: 7px; background: #f1f2f6; color: var(--ink-3); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.dc-rank.r1 { background: #5B5BF6; color: #fff; }
.dc-rank.r2 { background: #8f8ffa; color: #fff; }
.dc-rank.r3 { background: #c3c3fd; color: #fff; }
.dc-top .tt { color: var(--ink-1); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-top .tp { color: var(--ink-3); }
.dc-top .num { color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.dc-top-head .num { text-align: right; }

/* ============================================================
   素材库页（极简）
   ============================================================ */
.al-tabs { display: flex; background: #edeff4; border-radius: 10px; padding: 3px; gap: 2px; }
.al-tab {
  border: none; background: transparent; padding: 6px 18px; border-radius: 8px;
  font-size: 13px; color: var(--ink-3); cursor: pointer; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; transition: all .15s;
}
.al-tab b { font-size: 11px; font-weight: 700; color: var(--ink-3); background: transparent; border-radius: 999px; }
.al-tab.on { background: #fff; color: var(--ink-1); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.al-tab.on b { color: var(--brand); }
.al-upload {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand); color: #fff; border: none; border-radius: 10px;
  height: 38px; padding: 0 18px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(91,91,246,.25); transition: background .15s, transform .15s;
}
.al-upload:hover { background: var(--brand-2); transform: translateY(-1px); }

/* 图片/视频 网格 */
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 22px; }
.al-card {
  background: #fff; border: 1px solid #eef0f4; border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(20,24,40,.04); transition: transform .15s, box-shadow .15s;
}
.al-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,24,40,.09); }
.al-cover {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background-size: cover; background-position: center;
}
.al-badge {
  position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 600;
  color: #fff; background: rgba(0,0,0,.45); border-radius: 6px; padding: 3px 8px;
  backdrop-filter: blur(2px);
}
.al-play {
  position: absolute; inset: 0; margin: auto; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); color: #fff; border-radius: 50%; font-size: 13px; padding-left: 3px;
}
.al-card-body { padding: 12px 14px 10px; }
.al-name { font-size: 13.5px; font-weight: 700; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.al-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #f5f6f9; padding: 8px 14px;
}
.al-src { font-size: 11.5px; color: var(--ink-3); }
.al-mini-ops { display: flex; gap: 6px; }
.al-op {
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: all .15s; white-space: nowrap; flex: none;
}
.al-op:hover { border-color: var(--brand); color: var(--brand); }
.al-op.danger:hover { border-color: #ef4444; color: #ef4444; }

/* 文案列表 */
.al-doc-list { margin-top: 22px; background: #fff; border: 1px solid #eef0f4; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(20,24,40,.05); }
.al-doc {
  display: grid; grid-template-columns: 36px 1fr 90px 120px 168px;
  gap: 14px; align-items: center; padding: 16px 22px;
  border-bottom: 1px solid #f5f6f9; transition: background .15s;
}
.al-doc:last-child { border-bottom: none; }
.al-doc:hover { background: #fafbff; }
.al-doc-icon {
  width: 36px; height: 36px; border-radius: 10px; background: #f1f0ff; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none;
}
.al-doc-main { min-width: 0; }
.al-doc-title { font-size: 14px; font-weight: 700; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-doc-preview { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.al-doc-tag {
  font-size: 11.5px; font-weight: 600; color: var(--brand); background: #f1f0ff;
  border-radius: 999px; padding: 4px 10px; width: fit-content; white-space: nowrap;
}
.al-doc-date { font-size: 12.5px; color: var(--ink-3); }
.al-doc-ops { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 1000px) {
  .al-doc { grid-template-columns: 36px 1fr auto; }
  .al-doc-tag, .al-doc-date { display: none; }
}

/* ============================================================
   账户页（极简）
   ============================================================ */
.ac-wrap { max-width: 560px; margin: 84px auto 0; animation: acUp .35s ease; }
@keyframes acUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.ac-card {
  background: #f7f8fa; border-radius: 18px; padding: 28px 30px 30px;
  box-shadow: 0 8px 32px rgba(20,24,40,.06); border: 1px solid #eef0f4;
}
.ac-card-head { display: flex; align-items: center; justify-content: space-between; }
.ac-card-title { font-size: 17px; font-weight: 800; color: var(--ink-1); }
.ac-plan-badge {
  font-size: 12px; font-weight: 600; color: var(--brand); background: #eceafd;
  border-radius: 8px; padding: 5px 12px;
}
.ac-rows { margin-top: 22px; }
.ac-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.ac-row .k { font-size: 13.5px; color: var(--ink-3); }
.ac-row .v { font-size: 14.5px; font-weight: 800; color: var(--ink-1); }
.ac-btns { display: flex; gap: 14px; margin-top: 22px; }
.ac-btn {
  flex: 1; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all .15s;
}
.ac-btn.soft { background: #eceafd; color: var(--brand); border: none; }
.ac-btn.soft:hover { background: #e0dcfb; }
.ac-btn.line { background: #fff; color: var(--ink-1); border: 1px solid var(--line-strong); }
.ac-btn.line:hover { border-color: var(--brand); color: var(--brand); }
.ac-btn.danger { background: #fff; color: #e5484d; border: 1px solid #f3c9c9; }
.ac-btn.danger:hover { background: #fdf3f3; }

/* 扫码登录态 */
.ac-login { text-align: center; padding: 8px 0 4px; }
.ac-qr-box {
  width: 208px; height: 208px; margin: 22px auto 0; background: #fff; border-radius: 14px;
  padding: 12px; box-shadow: 0 4px 16px rgba(20,24,40,.06); position: relative;
}
.ac-qr-box img { width: 100%; height: 100%; display: block; }
.ac-qr-scan {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, #07c160, transparent);
  animation: acScan 2.4s linear infinite;
}
@keyframes acScan { 0% { top: 14px; } 50% { top: calc(100% - 16px); } 100% { top: 14px; } }
.ac-login-tip { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--ink-1); }
.ac-login-sub { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }

/* 模拟扫码成功 */
.ac-qr-mask {
  position: absolute; inset: 0; border-radius: 14px; background: rgba(255,255,255,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.ac-qr-mask .ok-ic {
  width: 46px; height: 46px; border-radius: 50%; background: #07c160; color: #fff;
  font-size: 22px; display: flex; align-items: center; justify-content: center;
}
.ac-qr-mask .ok-t { font-size: 14px; font-weight: 700; color: var(--ink-1); }
.ac-qr-mask .ok-s { font-size: 12px; color: var(--ink-3); }

/* 登录二维码失效与刷新 */
.ac-qr-box.expired .ac-qr-scan { opacity: 0; animation-play-state: paused; }
.ac-qr-expired {
  position: absolute; inset: 0; border-radius: 14px; background: rgba(255,255,255,.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
}
.ac-qr-expired[hidden] { display: none; }
.ac-qr-expired .expired-ic {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #f1f3f5; color: #6f7580; font-size: 23px; line-height: 1;
}
.ac-qr-expired .expired-title { color: var(--ink-1); font-size: 14px; font-weight: 700; }
.ac-qr-expired button {
  border: 0; border-radius: 8px; padding: 7px 14px; background: #07c160; color: #fff;
  font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.ac-qr-expired button:hover { background: #06ad56; }
.ac-login-agreement { max-width: 330px; margin: 13px auto 0; color: var(--ink-3); font-size: 11px; line-height: 1.65; text-align: center; }
.ac-login-agreement a { color: var(--brand); text-decoration: none; }
.ac-login-agreement a:hover { text-decoration: underline; }

/* 用户协议 / 隐私政策 */
.legal-page { min-height: 100vh; background: #f6f7fa; color: var(--ink-1); }
.legal-topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-bottom: 1px solid #e8eaf0; padding: 0 max(24px, calc((100vw - 920px) / 2)); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-1); font-size: 14px; font-weight: 800; text-decoration: none; }
.legal-brand img { width: 30px; height: 30px; object-fit: contain; }
.legal-back { min-height: 36px; border: 1px solid #dfe2e9; border-radius: 8px; padding: 0 13px; background: #fff; color: var(--ink-2); font-size: 12px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }
.legal-back:hover { border-color: #c8ccff; color: var(--brand); }
.legal-wrap { width: min(920px, calc(100% - 40px)); margin: 28px auto 56px; }
.legal-hero { border: 1px solid #e8eaf0; border-radius: 16px 16px 0 0; padding: 34px 40px 28px; background: linear-gradient(135deg,#fff 0%,#f8f8ff 100%); }
.legal-hero h1 { font-size: 26px; letter-spacing: -.3px; }
.legal-hero p { margin-top: 10px; color: var(--ink-3); font-size: 12px; line-height: 1.7; }
.legal-demo-note { margin-top: 18px; border: 1px solid #e0e2ff; border-radius: 9px; padding: 10px 12px; background: #f5f5ff; color: #555bb1; font-size: 11.5px; line-height: 1.65; }
.legal-content { border: 1px solid #e8eaf0; border-top: 0; border-radius: 0 0 16px 16px; padding: 10px 40px 38px; background: #fff; box-shadow: 0 14px 36px rgba(25,31,50,.05); }
.legal-section { padding-top: 26px; }
.legal-section h2 { margin-bottom: 10px; color: var(--ink-1); font-size: 16px; }
.legal-section h3 { margin: 16px 0 7px; color: var(--ink-2); font-size: 13px; }
.legal-section p, .legal-section li { color: var(--ink-2); font-size: 12.5px; line-height: 1.85; }
.legal-section ul, .legal-section ol { margin: 8px 0 0 20px; }
.legal-section li + li { margin-top: 5px; }
.legal-section a { color: var(--brand); }
.legal-footer { margin-top: 22px; color: var(--ink-3); font-size: 11px; line-height: 1.7; text-align: center; }
@media (max-width: 620px) {
  .ac-login-agreement { max-width: 280px; margin-top: 11px; font-size: 11.5px; }
  .legal-topbar { min-height: 56px; padding: 0 16px; }
  .legal-brand { font-size: 13px; }
  .legal-brand img { width: 27px; height: 27px; }
  .legal-back { min-height: 34px; padding: 0 10px; font-size: 11px; }
  .legal-wrap { width: calc(100% - 24px); margin: 14px auto 30px; }
  .legal-hero { padding: 25px 20px 22px; }
  .legal-hero h1 { font-size: 22px; }
  .legal-content { padding: 2px 20px 28px; }
  .legal-section { padding-top: 22px; }
  .legal-section p, .legal-section li { font-size: 12px; }
}

/* 账户信息小卡（登录态附加） */
.ac-user {
  display: flex; align-items: center; gap: 14px; background: #f7f8fa; border: 1px solid #eef0f4;
  border-radius: 18px; padding: 18px 22px; margin-bottom: 14px;
  box-shadow: 0 8px 32px rgba(20,24,40,.06);
}
.ac-user .u-av {
  width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none;
}
.ac-user .u-name { font-size: 15.5px; font-weight: 800; color: var(--ink-1); }
.ac-user .u-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.ac-user .u-tag { margin-left: auto; }

/* ============================================================
   发布中心 2.0（合并数据中心 · 账号矩阵 + 热门排序）
   ============================================================ */
.am-tip-hot { color: #e5484d; font-style: normal; font-weight: 700; }
.am-tip-low { color: #9aa0ae; font-style: normal; font-weight: 600; }
.am-tip-warn { color: #b45309; font-style: normal; font-weight: 600; }
.am-card { margin-top: 22px; }

.am-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1200px) { .am-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .am-grid { grid-template-columns: repeat(2, 1fr); } }

.am-item {
  background: #fbfcfe; border: 1px solid #eef0f4; border-radius: 12px;
  padding: 13px 14px 12px; cursor: pointer; transition: all .15s; position: relative;
}
.am-item:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(91,91,246,.10); transform: translateY(-1px); }
.am-item.warn { border-color: #fde3c4; background: #fffaf3; }
.am-item.low { background: #fafafa; }

.am-top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.am-plat { font-size: 13.5px; font-weight: 800; color: var(--ink-1); }
.am-name { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-state { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; flex: none; }
.am-state.ok { background: #ecfdf5; color: #047857; }
.am-state.warn { background: #fff7e8; color: #b45309; }
.am-state.low { background: #f4f4f5; color: #71717a; }

.am-nums { display: flex; gap: 14px; margin-bottom: 10px; }
.am-nums > div { display: flex; flex-direction: column; gap: 1px; }
.am-nums b { font-size: 15px; font-weight: 800; color: var(--ink-1); font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.am-nums span { font-size: 11.5px; color: var(--ink-3); }

.am-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #eef0f4; margin-bottom: 8px; }
.am-bar i { display: block; height: 100%; }
.am-bar .hot { background: #ef4444; }
.am-bar .mid { background: #f59e0b; }
.am-bar .low { background: #d5d8e2; }

.am-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.am-foot > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-foot .warn { color: #b45309; font-weight: 700; cursor: pointer; white-space: nowrap; font-style: normal; }
.am-foot .warn:hover { text-decoration: underline; }
.am-foot-warn { justify-content: flex-end; }

/* 账号矩阵精简版 */
.am-card-mini { margin-top: 16px; }
.am-card-mini .dc-card-head { padding: 10px 16px 6px; }
.am-grid-mini { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.am-grid-mini .am-item-mini { min-width: 150px; flex: 1 1 180px; }
@media (max-width: 1200px) { .am-grid-mini { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .am-grid-mini { grid-template-columns: repeat(2, 1fr); } }
.am-item-mini { background: #fbfcfe; border: 1px solid #eef0f4; border-radius: 10px; padding: 8px 12px; cursor: pointer; transition: all .15s; }
.am-item-mini:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(91,91,246,.08); }
.am-item-mini .am-top { margin-bottom: 6px; justify-content: space-between; }
.am-count { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.am-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.am-stat { display: flex; align-items: baseline; gap: 3px; min-width: 0; }
.am-stat-num { font-size: 14px; font-weight: 800; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.am-stat-num.running { color: var(--brand); }
.am-stat-num.audit { color: #d97706; }
.am-stat-num.fail { color: #dc2626; }
.am-stat-label { font-size: 11px; color: var(--ink-3); white-space: nowrap; }

/* 发布内容筛选栏 */
.pub-filter-tabs {
  min-height: 0; box-sizing: border-box; align-items: center; justify-content: flex-start;
  flex: none; padding: 0; gap: 3px; border-radius: 0; background: transparent;
}
.pub-filter-tabs .dc-tab { min-height: 30px; font-size: 12px; padding: 4px 11px; }

/* 删除按钮：默认弱化，悬停时再显示风险色 */
body.page-pub .pub-ops {
  min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap;
  gap: 5px; justify-self: stretch;
}
body.page-pub .pub-op {
  min-height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  box-sizing: border-box; border-color: transparent; padding: 0 9px;
  background: #f4f5f7; color: #656b76; font-size: 11.5px; font-weight: 650;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
body.page-pub .pub-op svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.page-pub .pub-op:hover { border-color: #dedff0; background: #f0f0ff; color: var(--brand); }
body.page-pub .pub-op.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 3px 8px rgba(91,91,246,.16); }
body.page-pub .pub-op.primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; box-shadow: 0 5px 12px rgba(91,91,246,.22); transform: translateY(-1px); }
body.page-pub .pub-op.icon-only { width: 30px; flex: 0 0 30px; padding: 0; border-color: transparent; background: transparent; color: #a0a5ae; }
body.page-pub .pub-op-del:hover { border-color: #fde3e4; background: #fff1f2; color: #d83a45; }

/* 发布内容 工具条 */
.pub-toolbar { display: flex; align-items: center; gap: 11px; padding: 12px 22px; }
.pub-toolbar-t { flex: none; font-size: 15px; font-weight: 800; color: var(--ink-1); }
.pub-toolbar-hint { min-width: 0; flex: 1 1 auto; overflow: hidden; color: var(--ink-3); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.pub-toolbar #filterTabs { margin-left: 3px; }
.pub-toolbar #sortTabs { flex: none; margin-left: auto; }
.pub-type-filter-wrap { display: inline-flex; align-items: center; gap: 5px; flex: none; border-left: 1px solid #eceef3; padding-left: 10px; }
.pub-type-filter-wrap > span { color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.pub-type-tabs { gap: 2px; }
.pub-type-tabs .dc-tab { min-height: 28px; padding: 3px 8px; font-size: 11px; }
.pub-growth-bar { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 0 22px 11px; }
.pub-growth-bar[hidden] { display: none; }
.pub-growth-bar > span { color: var(--ink-3); font-size: 11px; }
.pub-growth-tabs { gap: 4px; }
.pub-growth-tabs .dc-tab { min-width: 46px; padding: 4px 11px; font-size: 11px; }
.pub-time-filter { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 0 22px 11px; }
.pub-time-filter[hidden] { display: none; }
.pub-time-filter > span { color: var(--ink-3); font-size: 11px; }
.pub-time-filter label { min-height: 30px; display: inline-flex; align-items: center; gap: 7px; box-sizing: border-box; border: 1px solid #e2e4ea; border-radius: 8px; padding: 0 8px 0 10px; background: #fff; }
.pub-time-filter label span { color: #858b98; font-size: 11px; }
.pub-time-filter input { width: 122px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 11.5px; outline: none; }
.pub-time-filter > i { color: #a1a6b0; font-size: 11px; font-style: normal; }
.pub-time-filter > button { min-height: 30px; border: 1px solid #e2e4ea; border-radius: 8px; padding: 0 10px; background: #fafbfc; color: #737986; cursor: pointer; font-size: 11px; }
.pub-time-filter > button:hover { border-color: #cfd2dc; background: #f5f6f8; color: var(--ink-2); }

/* 待发布：媒体与时间设置 */
.schedule-modal { display: flex; overflow: hidden; flex-direction: column; }
.schedule-modal .modal-head, .schedule-modal .modal-foot { flex: none; }
.schedule-modal .modal-head > div { min-width: 0; }
.schedule-modal .modal-head h3 { margin: 0; }
.schedule-modal .modal-head p { max-width: 610px; overflow: hidden; margin: 5px 0 0; color: var(--ink-3); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-body { min-height: 0; overflow-y: auto; }
.schedule-section + .schedule-section { margin-top: 18px; border-top: 1px solid #eef0f4; padding-top: 17px; }
.schedule-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.schedule-section-head > b { color: var(--ink-1); font-size: 13px; }
.schedule-section-head > span { color: var(--ink-3); font-size: 11.5px; }
.schedule-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.schedule-mode button { min-height: 62px; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; gap: 4px; border: 1px solid #e2e4ea; border-radius: 10px; padding: 10px 13px; background: #fff; color: var(--ink-2); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.schedule-mode button b { font-size: 12.5px; }
.schedule-mode button span { color: var(--ink-3); font-size: 11px; }
.schedule-mode button:hover { border-color: #cfd1ef; }
.schedule-mode button.on { border-color: #aeb0ff; background: #f7f7ff; box-shadow: 0 0 0 3px rgba(91,91,246,.08); color: var(--brand); }
.schedule-mode button.on span { color: #797db0; }
.schedule-time-block { margin-top: 12px; }
.schedule-time-block[hidden] { display: none !important; }
.schedule-select-all { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--brand); cursor: pointer; font-size: 11.5px; font-weight: 750; }
.schedule-select-all input, .schedule-platform-head input, .schedule-account > input { width: 15px; height: 15px; flex: none; margin: 0; accent-color: var(--brand); }
.schedule-media-list { display: flex; flex-direction: column; gap: 8px; }
.schedule-platform { overflow: hidden; border: 1px solid #eaecf1; border-radius: 10px; }
.schedule-platform-head { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 11px; background: #fafbfc; }
.schedule-platform-head > b { color: var(--ink-1); font-size: 12px; }
.schedule-platform-head > span { color: var(--ink-3); font-size: 11px; }
.schedule-platform-head > label { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); cursor: pointer; }
.schedule-platform-head i { font-size: 11.5px; font-style: normal; font-weight: 700; }
.schedule-account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 9px 10px; }
.schedule-account { min-width: 0; display: grid; grid-template-columns: 15px minmax(0,1fr) auto; align-items: center; gap: 7px; border: 1px solid #eceef3; border-radius: 8px; padding: 7px 8px; cursor: pointer; }
.schedule-account > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.schedule-account b { overflow: hidden; color: var(--ink-1); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-account small { overflow: hidden; color: var(--ink-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-account em { color: #078047; font-size: 11px; font-style: normal; }
.schedule-account.disabled { background: #fafafa; cursor: default; opacity: .62; }
.schedule-account.disabled em { color: #c33f4b; }
.schedule-empty { color: var(--ink-3); font-size: 11px; }
.schedule-summary { margin-top: 9px; border-radius: 8px; padding: 8px 10px; background: #f5f5ff; color: var(--ink-2); font-size: 11.5px; }
.schedule-summary b { color: var(--brand); }
.schedule-time-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.schedule-time-row label { display: flex; flex-direction: column; gap: 6px; }
.schedule-time-row span { color: var(--ink-3); font-size: 11.5px; }
.schedule-time-row input { width: 100%; height: 40px; box-sizing: border-box; border: 1px solid #dfe2e9; border-radius: 8px; padding: 0 10px; background: #fff; color: var(--ink-1); font: inherit; font-size: 12px; outline: none; }
.schedule-time-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,91,246,.1); }
.schedule-time-hint { margin: 8px 0 0; color: var(--ink-3); font-size: 11px; }

/* 发布内容行：内容列吸收排序序号，右侧为数据与固定操作区 */
.pub-list-head.v-head, .pub-row-item.v-row {
  display: grid;
  grid-template-columns: minmax(235px,1.7fr) minmax(125px,.95fr) 78px 68px 60px 92px 62px minmax(205px,1fr);
  gap: 12px; align-items: center; padding: 13px 20px;
}
.pub-list-head.v-head { font-size: 12.5px; color: var(--ink-3); }
.pub-list-head.v-head .num, .v-num { text-align: right; }
.v-num { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.v-num.hot { color: var(--ink-1); font-weight: 800; }
.v-play { display: flex; align-items: flex-end; flex-direction: column; gap: 2px; }
.v-play > b { color: inherit; font-size: inherit; font-weight: inherit; }
.v-growth { font-size: 11.5px; font-style: normal; font-weight: 800; white-space: nowrap; }
.v-growth.up { color: #078047; }
.v-growth.down { color: #dc2626; }
.v-growth.flat { color: var(--ink-3); }
.v-comments { white-space: nowrap; }
.v-comments b { color: var(--ink-2); font-size: 13px; }
.v-comments small { color: #078047; font-size: 11px; font-weight: 750; white-space: nowrap; }

.v-video { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v-video .dc-rank, .v-rank-placeholder { width: 24px; flex: 0 0 24px; }
.pub-row-item.v-row:not(.is-draft-row) .pub-thumb { width: 112px; height: 64px; flex: none; }
.v-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v-meta .pub-name { max-width: 230px; }
.v-sub { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-acct { font-size: 12.5px; color: var(--ink-3); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-acct b { display: block; font-size: 13px; color: var(--ink-1); font-weight: 700; }
.pub-account-tip { position: relative; overflow: visible; cursor: help; outline: none; }
.pub-account-summary { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-account-tip::after {
  content: attr(data-account-detail); position: absolute; z-index: 90; top: 50%; left: calc(100% + 9px); width: 320px;
  box-sizing: border-box; border: 1px solid #e1e4eb; border-radius: 9px; padding: 9px 11px; background: rgba(255,255,255,.98);
  box-shadow: 0 10px 30px rgba(24,28,42,.15); color: #5f6674; font-size: 11.5px; font-weight: 500; line-height: 1.65;
  white-space: normal; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(0,-50%) translateY(-3px);
  transition: opacity .15s,visibility .15s,transform .15s;
}
.pub-account-tip:hover::after, .pub-account-tip:focus-visible::after { opacity: 1; visibility: visible; transform: translate(0,-50%); }
.pub-row-item:has(.pub-account-tip:hover), .pub-row-item:has(.pub-account-tip:focus-visible) { position: relative; z-index: 8; }

/* 待发布专属列表：只展示生成与排期信息 */
.pub-list-head.v-head.is-draft-head,
.pub-row-item.v-row.is-draft-row {
  grid-template-columns: minmax(245px,1.6fr) 130px 135px minmax(150px,1fr) 84px 220px;
}
.pub-row-item.v-row.is-draft-row { min-height: 88px; }
.pub-toolbar #sortTabs[hidden], .pub-growth-bar[hidden] { display: none; }
.pub-row-item.v-row.is-draft-row .pub-ops { gap: 6px; }
.pub-row-item.v-row.is-draft-row .pub-op { padding-left: 9px; padding-right: 9px; }
.draft-field { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.draft-field small { display: none; color: var(--ink-3); font-size: 11px; }
.draft-field b { overflow: hidden; font-size: 12.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.draft-field.is-empty b, .draft-account.is-empty, .draft-account.is-empty b { color: var(--ink-3); font-weight: 500; }

@media (max-width: 1100px) {
  .pub-toolbar { flex-wrap: wrap; }
  .pub-toolbar #filterTabs { width: 100%; order: 3; margin-left: 0; overflow-x: auto; }
  .pub-toolbar #sortTabs { margin-left: auto; }
  .pub-type-filter-wrap { width: 100%; order: 4; overflow-x: auto; border-left: 0; padding-left: 0; }
  .pub-list-head.v-head { display: none; }
  .pub-row-item.v-row { grid-template-columns: minmax(0,1fr) auto; grid-auto-rows: auto; row-gap: 10px; }
  .pub-row-item.v-row:not(.is-draft-row) .v-video { grid-column: 1 / -1; }
  .pub-row-item.v-row:not(.is-draft-row) .pub-ops { grid-column: 1 / -1; justify-content: flex-start; }
  .v-meta .pub-name { max-width: none; }
  .pub-row-item.v-row.is-draft-row {
    grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 14px;
  }
  .pub-row-item.v-row.is-draft-row .v-video { grid-column: 1 / -1; }
  .pub-row-item.v-row.is-draft-row .draft-field small { display: block; }
  .pub-row-item.v-row.is-draft-row .draft-account { grid-column: 1; }
  .pub-row-item.v-row.is-draft-row > span:nth-child(5) { grid-column: 2; grid-row: 3; justify-self: end; }
  .pub-row-item.v-row.is-draft-row .pub-ops { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .pub-toolbar #filterTabs, .pub-toolbar #sortTabs { width: 100%; margin-left: 0; overflow-x: auto; }
  .pub-type-filter-wrap { width: 100%; }
  .pub-growth-bar { justify-content: flex-start; padding-left: 22px; overflow-x: auto; }
}

/* 发布中心：AI 评论回复记录 */
.pub-ai-reply-modal { max-width: 720px; }
.pub-ai-reply-modal .modal-head > div { min-width: 0; }
.pub-ai-reply-modal .modal-head h3 { margin: 0; }
.pub-ai-reply-modal .modal-head p { max-width: 560px; margin: 5px 0 0; overflow: hidden; color: var(--ink-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pub-ai-reply-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.pub-ai-reply-summary div { display: flex; align-items: center; flex-direction: column; gap: 4px; border: 1px solid #e9ecf2; border-radius: 11px; padding: 12px 8px; background: #fbfcfe; }
.pub-ai-reply-summary b { color: var(--ink-1); font-size: 18px; }
.pub-ai-reply-summary span { color: var(--ink-3); font-size: 11px; }
.pub-ai-reply-note { margin: 11px 0 14px; border-radius: 9px; padding: 9px 11px; background: #f5f6ff; color: #656b83; font-size: 11.5px; line-height: 1.5; }
.pub-ai-reply-logs { max-height: 430px; display: flex; overflow-y: auto; flex-direction: column; gap: 8px; }
.pub-ai-reply-log { border: 1px solid #e9ecf2; border-radius: 10px; padding: 10px 12px; background: #fff; }
.pub-ai-reply-log.attention { border-color: #f3d4aa; background: #fffaf3; }
.pub-ai-reply-log-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.pub-ai-reply-log-head b { color: var(--ink-1); font-size: 11px; }
.pub-ai-reply-log-head span { flex: 1; color: var(--ink-3); font-size: 11px; }
.pub-ai-reply-log-head em { border-radius: 999px; padding: 3px 7px; background: #e8f8ef; color: #078047; font-size: 11px; font-style: normal; font-weight: 750; }
.pub-ai-reply-log.attention .pub-ai-reply-log-head em { background: #fff0db; color: #b45b06; }
.pub-ai-reply-log p { display: flex; gap: 8px; margin: 4px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.5; }
.pub-ai-reply-log p strong { width: 32px; flex: none; color: var(--ink-3); font-size: 11px; }
.pub-ai-reply-log p.reply { color: #345f50; }

/* 发布中心：作品内容详情 */
.pub-work-detail-modal { max-width: 760px; }
.pub-work-detail-modal .modal-head > div { min-width: 0; }
.pub-work-detail-modal .modal-head h3 { margin: 0; }
.pub-work-detail-modal .modal-head p { margin: 5px 0 0; color: var(--ink-3); font-size: 11.5px; }
.pub-work-detail-body { display: flex; flex-direction: column; gap: 16px; }
.pub-work-detail-main { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 18px; }
.pub-work-preview { height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; background: #f2f3f7 center/cover no-repeat; box-shadow: inset 0 0 0 1px rgba(25,30,45,.06); }
.pub-work-preview span { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(20,23,34,.7); color: #fff; font-size: 15px; padding-left: 2px; }
.pub-work-preview.is-copy { background: linear-gradient(145deg,#faf7ff,#eeeeff); }
.pub-work-preview.is-copy span { border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(76,68,160,.12); color: var(--brand); font-weight: 800; padding-left: 0; }
.pub-work-preview.is-image span, .pub-work-preview.is-imagecopy span { width: auto; height: 26px; align-self: flex-end; margin: 0 0 10px auto; border-radius: 999px; padding: 0 10px; font-size: 10.5px; }
.pub-work-info { min-width: 0; }
.pub-work-info h4 { margin: 0 0 10px; color: var(--ink-1); font-size: 17px; line-height: 1.45; }
.pub-work-info > .pub-status { margin-bottom: 12px; }
.pub-work-info dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 14px; margin: 0; }
.pub-work-info dl div { min-width: 0; }
.pub-work-info dt { color: var(--ink-3); font-size: 11px; }
.pub-work-info dd { margin: 3px 0 0; overflow: hidden; color: var(--ink-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pub-work-copy { border: 1px solid #e9ebf1; border-radius: 11px; padding: 13px 14px; background: #fafbfc; }
.pub-work-copy b { color: var(--ink-1); font-size: 12px; }
.pub-work-copy p { margin: 7px 0 0; color: var(--ink-2); font-size: 12px; line-height: 1.75; white-space: pre-wrap; }
.pub-work-detail-modal.is-imagecopy-detail { max-width: 820px; }
.pub-work-detail-modal.is-imagecopy-detail .pub-work-detail-main { display: block; }
.pub-work-detail-modal.is-imagecopy-detail .pub-work-info dl { margin-top: 3px; }
.pub-work-detail-modal.is-imagecopy-detail .pub-work-copy { border: 0; padding: 0; background: transparent; }
.pub-work-detail-modal.is-imagecopy-detail .pub-work-copy > b { display: block; max-width: 560px; margin: 0 auto 9px; }
.pub-work-detail-modal.is-imagecopy-detail .pub-work-copy > p { max-width: 560px; margin: 0 auto; border: 1px solid #e7e9ef; border-radius: 15px; padding: 12px; background: #fff; }
.pub-imagecopy-landscape { width: 100%; aspect-ratio: 16/9; display: block; overflow: hidden; border-radius: 11px; background: #eef0f4 center/cover no-repeat; box-shadow: inset 0 0 0 1px rgba(20,24,40,.06); }
.pub-imagecopy-paragraph { display: block; padding: 15px 5px 17px; color: #4e5564; font-size: 12.5px; line-height: 1.9; white-space: pre-wrap; }
.pub-work-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.pub-work-stats div { display: flex; align-items: center; flex-direction: column; gap: 4px; border: 1px solid #e9ebf1; border-radius: 10px; padding: 11px 7px; background: #fff; }
.pub-work-stats b { color: var(--ink-1); font-size: 15px; }
.pub-work-stats span { color: var(--ink-3); font-size: 11px; }
.pub-media-preview-modal { max-width: 760px; }
.pub-media-preview-modal .modal-head > div { min-width: 0; }
.pub-media-preview-modal .modal-head h3 { margin: 0; }
.pub-media-preview-modal .modal-head p { max-width: 570px; margin: 5px 0 0; overflow: hidden; color: var(--ink-3); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.pub-media-preview-body { display: flex; align-items: center; flex-direction: column; gap: 13px; }
.pub-media-preview-body > b { max-width: 100%; overflow: hidden; color: var(--ink-1); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.is-imagecopy-preview .pub-media-preview-body { align-items: stretch; }
.is-imagecopy-preview .pub-media-preview-body > b { order: -1; width: min(100%,640px); box-sizing: border-box; align-self: center; overflow: visible; padding: 0 2px; font-size: 16px; line-height: 1.5; text-align: left; text-overflow: clip; white-space: normal; }
.is-imagecopy-preview .pub-media-preview-frame, .is-imagecopy-preview .pub-media-preview-copy { align-self: center; }
.pub-media-preview-copy { width: min(100%,640px); box-sizing: border-box; margin: -2px 0 0; border-radius: 10px; padding: 11px 13px; background: #f7f7fb; color: var(--ink-2); font-size: 12px; line-height: 1.7; }
.pub-media-preview-copy[hidden] { display: none; }
.pub-media-preview-frame { position: relative; width: min(100%,640px); aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: #eef0f4 center/cover no-repeat; box-shadow: inset 0 0 0 1px rgba(20,24,40,.08); }
.pub-media-preview-frame::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 55%,rgba(13,16,24,.36)); }
.pub-media-preview-frame > button { position: relative; z-index: 2; width: 54px; height: 54px; display: grid; place-items: center; border: 0; border-radius: 50%; padding: 0 0 0 3px; background: rgba(20,23,32,.72); color: #fff; cursor: pointer; font-size: 18px; backdrop-filter: blur(4px); }
.pub-media-preview-frame > button[hidden] { display: none; }
.pub-media-preview-frame > span { position: absolute; z-index: 2; right: 12px; bottom: 10px; border-radius: 999px; padding: 4px 8px; background: rgba(20,23,32,.56); color: #fff; font-size: 10.5px; }
.pub-media-preview-frame.playing > button { animation: pubPreviewPulse 1s ease-in-out infinite; }
.pub-media-preview-frame.is-image::before { background: linear-gradient(180deg,transparent 72%,rgba(13,16,24,.24)); }
.pub-media-preview-frame.is-image:not(.is-imagecopy) { width: min(100%,560px); aspect-ratio: 4/3; background-color: #f6f7fa; background-size: contain; background-repeat: no-repeat; }
.pub-media-preview-frame.is-imagecopy::before { background: linear-gradient(180deg,transparent 58%,rgba(13,16,24,.4)); }
@keyframes pubPreviewPulse { 50% { transform: scale(.92); opacity: .72; } }
@media (max-width: 620px) {
  .pub-ai-reply-summary { gap: 6px; }
  .pub-ai-reply-log-head { flex-wrap: wrap; }
  .pub-ai-reply-log-head span { min-width: 80px; }
}

/* ============================================================
   产品库页（知识库）
   ============================================================ */
.pd-sub { font-size: 12.5px; color: var(--ink-3); }
.knowledge-page-head { margin-bottom: 18px; align-items: center; }
.knowledge-page-head > div { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.kb-storage-card { width: min(390px,100%); margin-left: auto; display: flex; align-items: center; gap: 14px; box-sizing: border-box; border: 1px solid #e7e9f0; border-radius: 13px; padding: 10px 11px 10px 14px; background: #fff; box-shadow: 0 6px 20px rgba(20,24,40,.035); }
.kb-storage-main { min-width: 0; flex: 1; }
.kb-storage-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.kb-storage-label b { color: var(--ink-1); font-size: 11.5px; }
.cloud-storage-title { display: inline-flex; align-items: center; gap: 5px; }
.cloud-storage-help { position: relative; display: inline-flex; }
.cloud-storage-help > button { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #d9dce5; border-radius: 50%; padding: 0; background: #fff; color: #8f95a2; font-size: 11px; font-weight: 800; line-height: 1; cursor: help; }
.cloud-storage-help > button:hover, .cloud-storage-help > button:focus-visible { border-color: var(--brand); color: var(--brand); outline: none; }
.cloud-storage-popover { position: absolute; z-index: 80; top: calc(100% + 8px); left: -12px; width: 210px; box-sizing: border-box; border: 1px solid #e3e5ec; border-radius: 11px; padding: 11px 12px; background: #fff; box-shadow: 0 12px 32px rgba(20,24,40,.14); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px); transition: opacity .15s, visibility .15s, transform .15s; white-space: normal; }
.cloud-storage-help:hover .cloud-storage-popover, .cloud-storage-help:focus-within .cloud-storage-popover { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.cloud-storage-popover::before { content: ""; position: absolute; top: -5px; left: 15px; width: 8px; height: 8px; border-left: 1px solid #e3e5ec; border-top: 1px solid #e3e5ec; background: #fff; transform: rotate(45deg); }
.cloud-storage-popover > strong { display: block; margin-bottom: 8px; color: var(--ink-1); font-size: 11px; }
.cloud-storage-popover > span { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 5px 0; color: var(--ink-3); }
.cloud-storage-popover > span + span { border-top: 1px solid #f0f1f4; }
.cloud-storage-popover > span b { color: #737987; font-size: 11.5px; font-weight: 600; }
.cloud-storage-popover > span em { color: var(--ink-1); font-size: 11px; font-style: normal; font-weight: 750; }
.kb-storage-track { height: 6px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #eceef3; }
.kb-storage-track i { display: block; width: 46.4%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand),#7c7cf7); }
.kb-expand-btn { flex: none; border: 1px solid #dfe1e8; border-radius: 8px; padding: 6px 11px; background: #fff; color: #5d6370; font-size: 11px; font-weight: 700; cursor: pointer; }
.kb-expand-btn:hover { border-color: var(--brand); color: var(--brand); background: #fafaff; }
.kb-storage-modal { max-width: 500px; }
.kb-storage-current { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 11px; padding: 12px 14px; background: #f7f8fb; color: var(--ink-3); font-size: 12px; }
.kb-storage-current b { color: var(--ink-1); font-size: 13px; }
.kb-capacity-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.kb-capacity-option { min-height: 72px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; border: 1px solid #e1e4ec; border-radius: 11px; background: #fff; color: var(--ink-1); cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.kb-capacity-option b { font-size: 13px; font-weight: 750; }
.kb-capacity-option span { color: var(--brand); font-size: 12px; font-weight: 800; }
.kb-capacity-option:hover { transform: translateY(-1px); border-color: var(--brand); background: #f8f8ff; color: var(--brand); }
.kb-business-expand { width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #e1e4ec; border-radius: 10px; padding: 9px 12px; background: #fbfcfe; color: #626976; font-size: 12px; cursor: pointer; }
.kb-business-expand b { font-weight: 700; }
.kb-business-expand span { color: #737a8b; font-size: 11px; }
.kb-business-expand:hover { border-color: #cfd3dd; background: #f5f6f9; color: var(--ink-1); }
.pub-head .pub-storage-card { width: 305px; margin-left: auto; flex: none; padding: 8px 9px 8px 12px; border-radius: 11px; box-shadow: none; }
.pub-head .pub-storage-card + .pub-create { margin-left: 0; }
.pub-storage-card .kb-storage-label { gap: 8px; font-size: 11px; }
.pub-storage-card .kb-storage-label > b { font-size: 11.5px; }
.pub-storage-card .kb-storage-track { height: 5px; margin-top: 6px; }
.pub-storage-card .kb-expand-btn { padding: 5px 9px; font-size: 11.5px; }
.knowledge-layout { display: grid; width: 100%; max-width: none; grid-template-columns: minmax(0,3fr) minmax(0,7fr); gap: 18px; align-items: stretch; }
.company-kb-panel, .product-kb-panel { min-width: 0; height: 100%; box-sizing: border-box; background: #fff; border: 1px solid #e9ecf2; border-radius: 16px; box-shadow: 0 8px 28px rgba(20,24,40,.045); }
.company-kb-panel { display: flex; overflow: hidden; flex-direction: column; background: #fff; }
.product-kb-panel { padding: 20px; }
.knowledge-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 20px 16px; }
.company-kb-panel .knowledge-panel-head { padding: 20px 20px 16px; border-bottom: 1px solid #f0f2f6; }
.product-kb-head { padding: 0 0 16px; border-bottom: 1px solid #f0f2f6; }
.knowledge-eyebrow { display: block; margin-bottom: 5px; color: #747b8d; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.knowledge-panel-head h2 { margin: 0; color: var(--ink-1); font-size: 17px; line-height: 1.25; }
.knowledge-panel-head p { margin: 5px 0 0; color: var(--ink-3); font-size: 11.5px; line-height: 1.45; }
.company-kb-panel .knowledge-eyebrow { margin-bottom: 5px; color: #747b8d; font-size: 11px; letter-spacing: .13em; }
.company-kb-panel .knowledge-panel-head h2 { font-size: 17px; letter-spacing: 0; }
.company-kb-panel .knowledge-panel-head p { margin-top: 5px; font-size: 11.5px; }
.knowledge-upload { flex: none; border: 1px solid #e2e5ec; background: #fff; color: var(--ink-2); border-radius: 9px; padding: 7px 10px; font-size: 11px; font-weight: 700; cursor: pointer; }
.knowledge-upload:hover { border-color: var(--brand); color: var(--brand); background: #fafaff; }
.company-kb-panel .knowledge-upload { min-height: 32px; padding: 0 10px; box-shadow: none; }
.company-kb-panel .knowledge-upload:hover { border-color: var(--brand); background: #fafaff; color: var(--brand); box-shadow: none; }
.company-kb-summary { margin: 12px 16px 8px; color: #9298a6; font-size: 11px; line-height: 1.4; }
.company-kb-summary > span { display: inline-flex; align-items: baseline; gap: 3px; }
.company-kb-summary b { color: #747b89; font-size: 12px; line-height: 1; font-weight: 650; }
.company-kb-list { display: flex; flex: 1; overflow: hidden; flex-direction: column; gap: 0; margin: 0 16px 16px; border: 1px solid #eceef3; border-radius: 10px; padding: 0; background: #fff; }
.company-kb-item { width: 100%; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 10px; box-sizing: border-box; border: 0; border-bottom: 1px solid #f0f1f4; border-radius: 0; padding: 11px 12px; background: #fff; box-shadow: none; text-align: left; cursor: pointer; transition: background .15s; }
.company-kb-item:last-child { border-bottom: 0; }
.company-kb-item:hover { transform: none; border-color: #f0f1f4; background: #f8f9fc; box-shadow: none; }
.company-kb-item:focus-visible { outline: 2px solid rgba(91,91,246,.28); outline-offset: -2px; }
.company-kb-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; font-size: 11px; font-weight: 900; }
.company-kb-icon.is-blue { color: #2563eb; background: #eff6ff; }
.company-kb-icon.is-purple { color: #7c3aed; background: #f5f3ff; }
.company-kb-icon.is-orange { color: #c2410c; background: #fff7ed; }
.company-kb-icon.is-green { color: #047857; background: #ecfdf5; }
.company-kb-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.company-kb-item b { color: var(--ink-1); font-size: 13px; }
.company-kb-item small { overflow: hidden; color: var(--ink-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.company-kb-item .company-kb-date { color: #747b8b; font-size: 11px; }
.company-kb-item em { color: #747b8b; font-size: 11px; font-style: normal; }
.company-kb-delete { min-width: 42px; border: 1px solid transparent; border-radius: 7px; padding: 5px 7px; background: transparent; color: #b4b8c2; cursor: pointer; font-size: 11px; opacity: 0; transition: opacity .15s, border-color .15s, background .15s, color .15s; }
.company-kb-item:hover .company-kb-delete, .company-kb-item:focus-within .company-kb-delete { opacity: 1; }
.company-kb-delete:hover, .company-kb-delete:focus-visible { border-color: #fecaca; background: #fef2f2; color: #b91c1c; opacity: 1; outline: none; }
.company-kb-empty { flex: 1; min-height: 180px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: var(--ink-3); font-size: 11.5px; text-align: center; }
.company-kb-empty b { color: var(--ink-2); font-size: 12.5px; }
.company-kb-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eceef4; padding: 14px 20px; color: #7e8491; font-size: 11px; background: #fafbfe; }
.company-kb-foot b { border-radius: 999px; padding: 4px 9px; background: #eaf8f0; color: #047857; font-size: 11px; }
.product-kb-panel .pd-bar-wrap { margin-top: 16px; }
.product-kb-panel .pd-grid { grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 12px; margin-top: 14px; }
.product-kb-panel .pd-card { padding: 16px 15px 14px; }
.product-kb-panel .pd-add-card { min-height: 166px; }
@media (max-width: 960px) {
  .knowledge-page-head .kb-storage-card { width: 100%; margin-left: 0; }
  .knowledge-layout { grid-template-columns: 1fr; }
  .company-kb-panel, .product-kb-panel { height: auto; }
  .company-kb-list { display: flex; }
}
@media (max-width: 1180px) {
  .pub-head .pub-storage-card { margin-left: 0; }
}
@media (max-width: 620px) {
  .pub-main { padding-left: 18px; padding-right: 18px; }
  .company-kb-list { display: flex; }
  .company-kb-delete { border-color: #eceef3; background: #fff; opacity: 1; }
  .knowledge-panel-head { padding-left: 15px; padding-right: 15px; }
  .company-kb-summary { margin-left: 15px; margin-right: 15px; }
  .product-kb-panel { padding: 15px; }
  .kb-capacity-grid { grid-template-columns: 1fr; }
  .kb-capacity-option { min-height: 48px; }
  .pub-head .pub-storage-card { width: 100%; box-sizing: border-box; }
  .cloud-storage-popover { left: -70px; }
  .cloud-storage-popover::before { left: 73px; }
}

/* 顶部产品横向栏（可右滑） */
.pd-bar-wrap { position: relative; margin-top: 20px; }
.pd-bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 26px; scroll-behavior: smooth; }
.pd-bar::-webkit-scrollbar { display: none; }
.pd-tab { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; font-size: 13px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .15s; font-weight: 600; }
.pd-tab b { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.pd-tab:hover { border-color: var(--brand); color: var(--brand); }
.pd-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pd-tab.on b { color: rgba(255,255,255,.8); }
.pd-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.1); color: var(--ink-2); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.pd-arrow.left { left: 0; } .pd-arrow.right { right: 0; }
.pd-arrow:hover { color: var(--brand); border-color: var(--brand); }

/* 产品卡片（极简：图标 + 标题 + 副标题） */
.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.pd-card { background: #fff; border: 1px solid #eef0f4; border-radius: 14px; cursor: pointer; transition: all .15s; position: relative; padding: 18px 18px 15px; }
.pd-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,24,40,.09); border-color: #dfe3f5; }
.pd-ico { width: 42px; height: 42px; border-radius: 11px; background: #f4f6ff; color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 13px; }
.pd-ico svg { width: 22px; height: 22px; }
.pd-card-name { font-size: 15px; font-weight: 800; color: var(--ink-1); display: flex; align-items: center; gap: 8px; }
.pd-card-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-type { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; flex: none; }
.pd-type.t-real { background: #eef2ff; color: #4f46e5; }
.pd-type.t-serv { background: #ecfdf5; color: #047857; }
.pd-type.t-soft { background: #fff7e8; color: #b45309; }
.pd-card-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 7px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.pd-card-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 11px; }
.pd-card-ops { position: absolute; top: 10px; right: 10px; display: none; gap: 6px; }
.pd-card:hover .pd-card-ops { display: flex; }
.pd-mini-op { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.92); border: 1px solid var(--line); font-size: 12px; cursor: pointer; color: var(--ink-2); }
.pd-mini-op:hover { color: var(--brand); border-color: var(--brand); }
.pd-add-card { border: 1.5px dashed #d5d8e2; background: transparent; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink-3); font-size: 13px; cursor: pointer; min-height: 176px; transition: all .15s; }
.pd-add-card:hover { border-color: var(--brand); color: var(--brand); background: #fafaff; }
.pd-add-card .plus { font-size: 26px; font-weight: 300; line-height: 1; }

/* 产品详情 */
.pd-detail-head { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.pd-back { border: 1px solid var(--line); background: #fff; border-radius: 10px; height: 34px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.pd-back:hover { border-color: var(--brand); color: var(--brand); }
.pd-d-emoji { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; background: #f4f6ff; color: var(--brand); }
.pd-d-emoji svg { width: 28px; height: 28px; }
.pd-d-title { font-size: 17px; font-weight: 800; color: var(--ink-1); display: flex; align-items: center; gap: 8px; }
.pd-d-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; max-width: 620px; }
.pd-d-actions { margin-left: auto; display: flex; gap: 8px; }
.kb-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); background: #f4f6ff; border: 1px solid #e4e8ff; border-radius: 10px; padding: 9px 14px; }
.kb-note b { color: var(--brand); }

/* 知识库内容清单 */
.kb-list { margin-top: 14px; background: #fff; border: 1px solid #eef0f4; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(20,24,40,.05); }
.kb-head, .kb-row { display: grid; grid-template-columns: 48px minmax(180px,1.7fr) 100px 100px 130px 150px; gap: 12px; align-items: center; padding: 12px 22px; }
.kb-head { font-size: 12.5px; color: var(--ink-3); background: #fbfcfe; border-bottom: 1px solid #f1f2f6; }
.kb-row { border-bottom: 1px solid #f5f6f9; font-size: 13px; color: var(--ink-2); }
.kb-row:last-child { border-bottom: none; }
.kb-row:hover { background: #fafbff; }
.kb-ext { min-width: 38px; height: 22px; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.kb-name { min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-1); }
.kb-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-name-preview { flex: none; opacity: 0; transform: translateX(-4px); border: 0; border-radius: 6px; padding: 3px 7px; background: #f1f3ff; color: var(--brand); font-size: 11px; font-weight: 700; cursor: pointer; transition: opacity .15s, transform .15s; pointer-events: none; }
.kb-name:hover .kb-name-preview, .kb-name:focus-within .kb-name-preview { opacity: 1; transform: none; pointer-events: auto; }
.kb-name-input { width: 100%; border: 1px solid var(--brand); border-radius: 6px; padding: 4px 8px; font-size: 13px; color: var(--ink-1); outline: none; box-shadow: 0 0 0 3px rgba(91,91,246,.10); }
.kb-empty { padding: 50px 0; text-align: center; color: var(--ink-3); font-size: 13px; }
.kb-empty b { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
@media (max-width: 900px) {
  .kb-head { display: none; }
  .kb-row { grid-template-columns: 48px minmax(0,1fr) auto; row-gap: 8px; }
  .kb-name-preview { opacity: 1; transform: none; pointer-events: auto; }
}

.edit-product-delete { margin-right: auto; color: #b91c1c; border-color: #fecaca; background: #fff; }
.edit-product-delete:hover { color: #991b1b; border-color: #fca5a5; background: #fef2f2; }

/* 上传内容弹窗 */
.up-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.up-item { min-height: 82px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; background: #fbfcfe; font-size: 12px; color: var(--ink-2); transition: all .15s; }
.up-item:hover { border-color: var(--brand); color: var(--brand); background: #fafaff; }
.up-item i { font-style: normal; font-size: 20px; }
.up-item small { min-height: 14px; color: var(--ink-3); font-size: 11px; font-weight: 400; line-height: 1.35; text-align: center; }
.up-item[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); background: #f6f6ff; box-shadow: 0 0 0 2px rgba(91,91,246,.08); }
.up-official-picker { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #e4e8ff; border-radius: 10px; background: #f8f9ff; }
.up-official-picker > span { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.up-official-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.up-official-picker button { height: 32px; border: 1px solid #dde1f4; border-radius: 8px; background: #fff; color: var(--ink-2); font-size: 11px; cursor: pointer; }
.up-official-picker button:hover { border-color: var(--brand); color: var(--brand); background: #fafaff; }
.up-official-picker [data-official].on { border-color: var(--brand); background: #f1f1ff; color: var(--brand); box-shadow: 0 0 0 2px rgba(91,91,246,.08); }
.up-official-id { display: flex; flex-direction: column; gap: 6px; margin-top: 11px; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.up-official-id > div { display: flex; align-items: stretch; gap: 8px; }
.up-official-id .pf-input { min-width: 0; flex: 1; }
.up-official-id .pc-action { flex: none; height: auto; white-space: nowrap; }
.up-official-id > small { color: #747b8b; font-size: 11px; font-weight: 500; line-height: 1.5; }
.up-source-panel { margin: 0 0 12px; padding: 12px; border: 1px solid #e4e8ff; border-radius: 10px; background: #f8f9ff; }
.up-source-title { margin-bottom: 10px; color: var(--ink-1); font-size: 12px; font-weight: 800; }
.up-source-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.up-source-fields label { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.up-source-fields label:only-child { grid-column: 1 / -1; }
.up-source-fields label.full { grid-column: 1 / -1; }
.up-source-fields label em { color: var(--ink-3); font-size: 11px; font-style: normal; font-weight: 400; }
.up-source-fields .pf-input { width: 100%; }
.up-source-fields select.pf-input { appearance: auto; cursor: pointer; }
.up-source-panel > .pc-action { display: block; margin: 10px 0 0 auto; }
.up-copy-row { display: flex; align-items: stretch; gap: 10px; padding-top: 12px; border-top: 1px solid #f0f1f5; }
.up-copy-row[hidden] { display: none !important; }
.up-copy-row .pf-input { flex: 1; min-height: 54px; resize: vertical; line-height: 1.5; }
.up-copy-row .pc-action { align-self: stretch; height: auto; white-space: nowrap; }
.up-added { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }
.up-added b { color: var(--ink-1); }

/* 上传弹窗：大小限制提示 */
.up-tip { font-size: 12px; color: #b45309; background: #fff7e8; border: 1px solid #fde8c0; border-radius: 8px; padding: 7px 12px; margin-bottom: 12px; }
@media (max-width: 620px) {
  .up-grid { grid-template-columns: repeat(2, 1fr); }
  .up-official-types { grid-template-columns: repeat(2, 1fr); }
  .up-official-id > div { flex-direction: column; }
  .up-official-id .pc-action { min-height: 38px; }
  .up-source-fields { grid-template-columns: 1fr; }
  .up-copy-row { flex-direction: column; }
  .up-copy-row .pc-action { min-height: 38px; }
}

/* 新建产品弹窗：手动 / AI 双模式 */
.em-modes { display: flex; gap: 8px; margin-bottom: 16px; }
.em-mode { flex: 1; border: 1.5px solid var(--line); background: #fbfcfe; border-radius: 10px; padding: 10px 0; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.em-mode:hover { border-color: var(--brand); color: var(--brand); }
.em-mode.on { background: #f4f6ff; border-color: var(--brand); color: var(--brand); }
.ai-tip { font-size: 12.5px; color: var(--ink-3); background: #f4f6ff; border: 1px solid #e4e8ff; border-radius: 10px; padding: 9px 13px; margin-bottom: 14px; }
.ai-sources { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.ai-src { border: 1.5px dashed #d5d8e2; border-radius: 12px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; background: #fafbfe; font-size: 13px; font-weight: 700; color: var(--ink-2); transition: all .15s; }
.ai-src i { font-style: normal; font-size: 22px; }
.ai-src:hover, .ai-src.link:focus-within { border-color: var(--brand); background: #fafaff; }
.ai-src.link { cursor: default; justify-content: center; }
.ai-src.link i { font-size: 18px; margin-bottom: 2px; }
.ai-src-name { color: var(--ink-1); }
.ai-src-sub { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.ai-src.link .pf-input { width: 100%; margin-top: 4px; }
.ai-status { margin-top: 12px; font-size: 12.5px; color: var(--brand); background: #f4f6ff; border: 1px solid #e4e8ff; border-radius: 10px; padding: 9px 13px; display: flex; align-items: center; gap: 8px; }
.ai-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: aiPulse 1s infinite alternate; flex: none; }
@keyframes aiPulse { from { opacity: .3; } to { opacity: 1; } }
.ai-result { margin-top: 14px; border: 1px solid #e4e8ff; border-radius: 12px; padding: 14px; background: #fcfdff; }
.ai-result-head { font-size: 12.5px; font-weight: 700; color: var(--brand); margin-bottom: 12px; }

/* ============================================================
   首页三面板（仅空状态显示）
   ============================================================ */
.hm-top, .hm-left, .hm-right { position: absolute; z-index: 5; display: none; }
body.state-empty .hm-top, body.state-empty .hm-left, body.state-empty .hm-right { display: block; }
.hm-card { background: #fff; border: 1px solid #eef0f4; border-radius: 14px; box-shadow: 0 6px 24px rgba(20,24,40,.05); overflow: hidden; }
.hm-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; font-size: 13px; font-weight: 800; color: var(--ink-1); }
.hm-head .hm-ico { width: 22px; height: 22px; border-radius: 7px; background: #f4f6ff; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.hm-head .hm-sub { font-size: 11px; font-weight: 400; color: var(--ink-3); margin-left: auto; }

/* 顶部：六项数据看板。进入正常文档流，避免与问候语互相覆盖 */
.hm-top {
  position: relative; z-index: 5; top: auto; left: auto; flex: none;
  width: min(860px, calc(100vw - 620px)); max-width: calc(100vw - 48px);
  margin: clamp(20px,4vh,38px) auto 0; transform: none;
}
.hm-top .hm-card { border-color: #e9ebf1; border-radius: 16px; box-shadow: 0 10px 34px rgba(30,38,80,.065); }
.hm-top .hm-head { min-height: 46px; box-sizing: border-box; padding: 12px 16px 8px; font-size: 14px; }
.hm-top .hm-head .hm-ico { width: 25px; height: 25px; border-radius: 8px; font-size: 13px; }
.hm-top .hm-head .hm-sub { font-size: 11.5px; }
.hm-stat-row { padding: 6px 16px 16px; }
.hm-kpi-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.hm-kpi-card {
  min-width: 0; min-height: 88px; box-sizing: border-box; display: flex; align-items: flex-start; flex-direction: column;
  border: 1px solid #edf0f5; border-radius: 12px; padding: 12px 10px 10px; background: #fbfcff;
}
.hm-kpi-card > span { color: #747b8b; font-size: 11.5px; white-space: nowrap; }
.hm-kpi-card > b { display: block; margin-top: 5px; color: var(--ink-1); font-size: 20px; line-height: 1.1; font-weight: 850; letter-spacing: -.25px; white-space: nowrap; }
.hm-kpi-card > em { display: inline-flex; align-items: center; min-height: 19px; box-sizing: border-box; margin-top: auto; border-radius: 999px; padding: 2px 7px; font-size: 11px; line-height: 1; font-style: normal; font-weight: 750; white-space: nowrap; }
.hm-kpi-trend { background: #fff0f3; color: #df244c; }
.hm-kpi-note { background: #f0f1ff; color: var(--brand); }
.hm-kpi-highlight { border-color: #dedfff; background: #f8f8ff; }
.hm-kpi-highlight > b { color: #5550e5; }
.hm-kpi-convert { border-color: #dcefe6; background: #f7fcfa; }
.hm-kpi-convert > b { color: #087b57; }
.hm-kpi-convert .hm-kpi-note { background: #eaf8f2; color: #087b57; }
.hm-hot-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #f1f2f6; background: #fbfcfe; }
.hm-hot-grid.hm-hot-single { display: block; }
.hm-rot { min-width: 0; padding: 10px 16px 12px; }
.hm-related-rot { padding: 10px 16px 12px; }
.hm-hot-grid > .hm-rot + .hm-rot { border-left: 1px solid #eceef4; }
.hm-rot-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.hm-topic-mark { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 5px; background: #fff1f2; color: #e11d48; font-size: 11px; font-weight: 900; }
.hm-rot-plat { min-height: 23px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 10px; background: #f4f6ff; color: var(--brand); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.hm-rot-plat.has-logo { padding-left: 4px; }
.hm-rot-plat img, .hm-rot-plat svg { width: 16px; height: 16px; flex: none; display: block; border-radius: 5px; object-fit: cover; }
.hm-rot-plat > span { line-height: 1; }
.hm-rot-title { color: var(--ink-3); font-size: 11.5px; text-decoration: none; cursor: pointer; }
.hm-rot-title:hover { color: var(--brand); }
.hm-rot-title:focus-visible { border-radius: 4px; outline: 2px solid rgba(91,91,246,.28); outline-offset: 2px; }
.hm-rot-dots { margin-left: auto; display: flex; gap: 4px; }
.hm-rot-dots i { width: 5px; height: 5px; border-radius: 50%; background: #d8dbe6; }
.hm-rot-dots i.on { background: var(--brand); }
.hm-update-date { flex: none; white-space: nowrap; color: #747b8b; font-size: 11px; }
.hm-rot-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.hm-rot-item { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-2); }
.hm-rot-item .rk { width: 14px; height: 14px; border-radius: 4px; background: #f1f2f6; color: var(--ink-3); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.hm-rot-item:nth-child(1) .rk { background: #fff1f2; color: #e11d48; }
.hm-rot-item:nth-child(2) .rk { background: #fff7e8; color: #d97706; }
.hm-rot-item:nth-child(3) .rk { background: #f0fdf4; color: #16a34a; }
.hm-rot-item .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-rot-item .vv { margin-left: auto; color: var(--ink-3); font-size: 11px; flex: none; }
.hm-topic-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.hm-topic-item { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 6px; min-height: 30px; box-sizing: border-box; border: 1px solid #eceef4; border-radius: 8px; padding: 5px 8px; background: #fff; font-size: 11.5px; text-decoration: none; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.hm-topic-item:hover { border-color: #dfe1ff; background: #fafaff; }
.hm-topic-item:focus-visible { outline: 2px solid rgba(91,91,246,.28); outline-offset: 2px; }
.hm-topic-item .top { color: #e11d48; font-size: 11px; font-weight: 900; white-space: nowrap; }
.hm-topic-item .tag { min-width: 0; color: var(--ink-2); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-topic-item .plays { grid-column: 2; color: var(--ink-3); font-size: 11px; white-space: nowrap; }

body.state-empty .chat-main { overflow-y: auto; overscroll-behavior: contain; }
body.state-empty .chat-container { margin-top: auto; }
body.state-empty .chat-composer-wrap { margin-bottom: auto; }

/* 左右栏：保持清晰，用低饱和中性色降低视觉权重 */
.hm-left { left: clamp(84px, 7vw, 116px); top: 10vh; width: clamp(250px, 19vw, 300px); }
.hm-right { right: clamp(74px, 7vw, 118px); top: 10vh; width: clamp(250px, 19vw, 300px); }
.hm-left, .hm-right, .hm-left .hm-card, .hm-right .hm-card {
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.hm-left .hm-card, .hm-right .hm-card { height: min(568px, 69vh); min-height: 500px; display: flex; flex-direction: column; }
.hm-left .hm-card, .hm-right .hm-card { border-color: #eceef2; background: #fff; box-shadow: 0 6px 20px rgba(20,24,40,.04); }
.hm-foot { margin-top: auto; border-top: 1px solid #f1f2f5; background: #fafafa; padding: 10px 12px; font-size: 11px; color: #747b8b; display: flex; justify-content: space-between; gap: 8px; }

/* 左：任务中心 */
.hm-left .hm-head, .hm-right .hm-head { min-height: 48px; padding: 11px 12px; border-bottom: 1px solid #f5f6f9; }
.hm-left .hm-head, .hm-right .hm-head { color: #4f5562; background: #fcfcfd; font-size: 13px; font-weight: 700; }
.hm-left .hm-head .hm-sub, .hm-right .hm-head .hm-sub { color: #a6aab4; }
.hm-head-link { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; flex: none; border: 1px solid transparent; border-radius: 7px; color: #747b8b; font-size: 11px; font-weight: 800; letter-spacing: -2px; line-height: 1; text-decoration: none; transition: color .15s, border-color .15s, background .15s, transform .15s; }
.hm-head-link:hover { border-color: #dfe1f2; background: #f3f4ff; color: var(--brand); transform: translateX(2px); }
.hm-head-link:focus-visible { outline: 2px solid rgba(91,91,246,.28); outline-offset: 1px; }

/* 全站 AI 内容生成算力轻提醒 */
.compute-reminder { position: fixed; z-index: 1200; top: 22px; left: 50%; width: min(420px, calc(100vw - 28px)); min-height: 66px; box-sizing: border-box; display: flex; align-items: center; gap: 11px; border: 1px solid #dfe2ff; border-radius: 14px; padding: 11px 14px; background: rgba(255,255,255,.98); box-shadow: 0 14px 42px rgba(45,48,105,.18); opacity: 0; transform: translate(-50%,-14px) scale(.98); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.compute-reminder.show { opacity: 1; transform: translate(-50%,0) scale(1); }
.compute-reminder-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: #f1f2ff; color: var(--brand); font-size: 17px; }
.compute-reminder > span:nth-child(2) { min-width: 0; display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.compute-reminder small { width: 100%; margin-bottom: 2px; color: var(--ink-3); font-size: 11px; font-weight: 700; }
.compute-reminder b { color: var(--ink-1); font-size: 13px; white-space: nowrap; }
.compute-reminder b em { color: var(--brand); font-size: 15px; font-style: normal; }
.compute-reminder i { color: var(--ink-3); font-size: 11.5px; font-style: normal; }
.compute-reminder-spinner { width: 17px; height: 17px; flex: none; border: 2px solid #e2e4ff; border-top-color: var(--brand); border-radius: 50%; animation: compute-spin .8s linear infinite; }
@keyframes compute-spin { to { transform: rotate(360deg); } }
.hm-right .hm-head .hm-ico { background: #f3f4f6 !important; color: #8d929c !important; filter: none; }
.hm-tasks { display: flex; flex: 1; flex-direction: column; }
.hm-task { display: flex; flex: 1; align-items: center; gap: 11px; min-width: 0; min-height: 68px; padding: 10px 15px; font-size: 12.5px; transition: background .15s; }
.hm-task + .hm-task { border-top: 1px solid #f5f6f9; }
.hm-task:hover { background: #fafafa; }
.hm-task .t-ico { width: 32px; height: 32px; border-radius: 9px; background: #f2f3f5; color: #8d929d; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; filter: grayscale(.35); opacity: 1; }
.hm-task:nth-child(3) .t-ico, .hm-task:nth-child(4) .t-ico, .hm-task:nth-child(5) .t-ico, .hm-task:nth-child(6) .t-ico { background: #f3f4f5; color: #91969f; }
.hm-task .t-main { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.hm-task .t-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #555b67; font-weight: 700; }
.hm-task .t-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #747b8b; font-size: 11.5px; }
.hm-task .t-st { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 999px; flex: none; }
.t-st.published { background: #f0f4f2; color: #74867e; }
.t-st.audit { background: #f0f2f6; color: #747d90; }
.t-st.failed { background: #f6f1f1; color: #907878; }
.t-st.draft { background: #f5f3ef; color: #8b8174; }

/* 右：异常处理 */
.hm-alerts { display: flex; flex: 1; flex-direction: column; }
.hm-alert { display: flex; flex: 1; min-height: 104px; flex-direction: column; justify-content: center; padding: 9px 12px; }
.hm-alert + .hm-alert { border-top: 1px solid #f5f6f9; }
.hm-alert .a-top { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 700; color: var(--ink-1); }
.a-brand-logo { width: 25px; height: 25px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; overflow: hidden; filter: saturate(.55); }
.a-brand-logo svg { width: 100%; height: 100%; display: block; }
.a-brand-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.a-logo-generic { color: #687080; background: #eef0f3; font-size: 11px; font-weight: 800; }
.a-logo-video { color: #167b53; background: #eaf7f1; }
.a-logo-life { color: #45658d; background: #edf3f9; }
.hm-alert .a-account { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-alert .a-why { width: 100%; box-sizing: border-box; font-size: 11.5px; line-height: 1.45; color: #756d72; background: #f7f7f8; border-left: 2px solid #d7d9de; border-radius: 5px; padding: 5px 7px; margin-top: 7px; display: block; }
.hm-alert .a-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; }
.hm-alert .a-time { min-width: 0; color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.hm-alert .a-act { flex: none; font-size: 11px; color: #777d88; border: 1px solid #dfe1e6; background: #fff; border-radius: 6px; padding: 4px 7px; cursor: pointer; }
.hm-alert .a-act:hover { color: #5f6470; border-color: #c9ccd3; background: #f7f7f8; }
.hm-alert.done .a-why { color: #047857; background: #ecfdf5; }

/* 首次未登录：首页三面板真实空状态 */
.hm-guest-top-empty { grid-column: 1 / -1; min-height: 78px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 12px 18px; text-align: center; }
.hm-guest-top-empty b { color: #626875; font-size: 11.5px; }
.hm-guest-top-empty span { max-width: 420px; color: #747b8b; font-size: 11px; line-height: 1.5; }
.hm-guest-empty { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 22px 18px; text-align: center; }
.hm-guest-empty > b { color: #646a76; font-size: 12px; }
.hm-guest-empty > span { max-width: 210px; margin-top: 7px; color: #747b8b; font-size: 11px; line-height: 1.6; }
.hm-guest-lines { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.hm-guest-lines i { height: 38px; display: block; border: 1px solid #f0f1f4; border-radius: 9px; background: #fafafa; }
.hm-guest-lines i:nth-child(n+4) { display: none; }
body.is-guest .hm-left .hm-head, body.is-guest .hm-right .hm-head { background: #fff; }
body.is-guest [data-hm-value] { color: #747b8b; }
body.is-guest .hm-kpi-card > em { visibility: hidden; }
body.is-guest .tb-plus { color: #8e93a0; background: #fafafa; }
@media (max-width: 1180px) {
  .hm-left, .hm-right { display: none !important; }
  .hm-top { width: min(860px, calc(100vw - 96px)); }
}
@media (max-width: 620px) {
  .hm-hot-grid { grid-template-columns: 1fr; }
  .hm-hot-grid > .hm-rot + .hm-rot { border-left: 0; border-top: 1px solid #eceef4; }
}
@media (min-width: 1181px) and (max-width: 1500px) {
  .hm-left { left: 50px; width: 210px; }
  .hm-right { right: 40px; width: 210px; }
  .hm-task { padding-left: 8px; padding-right: 8px; }
  .hm-task .t-ico { display: none; }
}
/* 笔记本与中等宽度桌面：中央创作区收在左右卡片之间，同时保证可读宽度 */
@media (min-width: 1181px) and (max-width: 1600px) {
  body.state-empty .chat-composer { max-width: min(760px, calc(100vw - 620px)); }
  body.state-empty .chat-hello-sub { max-width: min(760px, calc(100vw - 620px)); line-height: 1.5; text-align: center; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .hm-left, .hm-right { top: 8vh; }
  .hm-left .hm-card, .hm-right .hm-card { height: 76vh; min-height: 0; }
  .hm-task { min-height: 56px; padding-top: 7px; padding-bottom: 7px; }
  .hm-alert { min-height: 92px; padding-top: 7px; padding-bottom: 7px; }
  .hm-alert .a-why { margin-top: 5px; padding-top: 4px; padding-bottom: 4px; }
  .hm-alert .a-meta { margin-top: 5px; }
  body.state-empty .chat-empty { padding: 0 0 5px; }
  body.state-empty .chat-hello { margin-bottom: 0; font-size: 24px; }
  body.state-empty .chat-hello-sub { display: none; }
  body.state-empty .chat-container,
  body.state-empty .chat-composer-wrap { transform: none; }
  body.state-empty .chat-composer-wrap { padding-top: 5px; }
  body.state-empty .chat-textarea { min-height: 112px; max-height: 112px; }
  body.state-empty .chat-toolbar { padding-top: 6px; padding-bottom: 8px; }
}

/* 超矮笔记本窗口：保留完整数据，但压缩非核心留白，页面仍可自然滚动 */
@media (min-width: 721px) and (max-height: 560px) {
  .hm-top { margin-top: 12px; }
  .hm-top .hm-head { min-height: 38px; padding: 7px 13px 5px; }
  .hm-top .hm-head .hm-ico { width: 22px; height: 22px; }
  .hm-stat-row { padding: 4px 12px 8px; }
  .hm-kpi-grid { gap: 7px; }
  .hm-kpi-card { min-height: 68px; padding: 8px; }
  .hm-kpi-card > span { font-size: 11px; }
  .hm-kpi-card > b { margin-top: 3px; font-size: 18px; }
  .hm-kpi-card > em { display: none; }
  .hm-related-rot { padding: 6px 12px 7px; }
  .hm-rot-head { margin-bottom: 5px; }
  .hm-topic-item { min-height: 25px; padding: 3px 6px; }
  .hm-topic-item .plays { display: none; }
  body.state-empty .chat-container { margin-top: 8px; }
  body.state-empty .chat-empty { padding: 0 0 2px; }
  body.state-empty .chat-composer-wrap { padding-top: 3px; }
  body.state-empty .chat-textarea { min-height: 96px; max-height: 96px; }
}

/* 矩阵账户管理页 */
.mt-toolbar { margin: 18px 0 12px; padding: 0; }
.mt-toolbar .pub-toolbar-hint { margin-left: auto; }
.mt-relogin-all { height: 32px; display: inline-flex; align-items: center; gap: 6px; flex: none; border: 1px solid #dfe2ff; border-radius: 8px; padding: 0 10px; background: #f7f7ff; color: var(--brand); cursor: pointer; font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.mt-relogin-all b { min-width: 18px; border-radius: 999px; padding: 2px 5px; background: #e9eaff; color: var(--brand); font-size: 11px; text-align: center; }
.mt-relogin-all:hover { border-color: #bfc4ff; background: #f0f1ff; }
.mt-mobile-platform-filter { display: none; position: relative; }
.mt-mobile-fans-sort { display: none; }
.mx-ai-reply-btn { border: 1px solid #dfe2ff; border-radius: 9px; padding: 8px 12px; background: #f6f7ff; color: var(--brand); cursor: pointer; font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.mx-ai-reply-btn:hover { border-color: #bfc4ff; background: #eef0ff; }
.mx-ai-reply-btn b { font-size: 12.5px; }
.pub-head #btnAddAccount {
  min-width: 132px; height: 38px; min-height: 38px; box-sizing: border-box; margin-left: 0;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 9px;
  white-space: nowrap;
}
.mx-add-account-modal { width: min(720px, calc(100vw - 32px)); max-width: 720px; }
.mx-add-account-modal .modal-head { align-items: flex-start; }
.mx-add-account-modal .modal-head > div { min-width: 0; }
.mx-add-account-modal .modal-head p { margin-top: 4px; color: var(--ink-3); font-size: 11.5px; }
.mx-add-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: #fbfcff; }
.mx-add-tab { min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; border: 1px solid #e6e8ef; border-radius: 10px; padding: 9px 12px; background: #fff; color: var(--ink-2); cursor: pointer; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s; }
.mx-add-tab:hover { border-color: #cfd3ff; background: #fafaff; }
.mx-add-tab.on { border-color: #aeb4ff; background: #f4f5ff; box-shadow: 0 0 0 1px rgba(91,82,255,.06); color: var(--brand); }
.mx-add-tab span { overflow: hidden; max-width: 100%; font-size: 12.5px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.mx-add-tab small { overflow: hidden; max-width: 100%; color: var(--ink-3); font-size: 11.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.mx-add-tab[data-add-account-tab="paste"]::before { content: "贴"; position: absolute; }
.mx-add-tab[data-add-account-tab="paste"] { position: relative; padding-left: 46px; }
.mx-add-tab[data-add-account-tab="paste"]::before { left: 12px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: #eef0ff; color: var(--brand); font-size: 11px; font-weight: 900; }
.mx-add-account-body { min-height: 330px; }
.mx-add-panel[hidden] { display: none !important; }
.mx-add-panel-foot { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.mx-add-scan { padding-top: 10px; }
.mx-paste-account-input { max-width: 610px; margin: 5px auto 0; }
.mx-paste-account-input > label { display: flex; flex-direction: column; gap: 7px; color: var(--ink-2); font-size: 12px; font-weight: 750; }
.mx-paste-account-input textarea { width: 100%; min-height: 150px; box-sizing: border-box; border: 1px solid #dfe2e9; border-radius: 11px; padding: 12px 13px; background: #fff; color: var(--ink-1); font: inherit; font-size: 12px; line-height: 1.7; outline: none; resize: vertical; }
.mx-paste-account-input textarea:focus { border-color: #aeb4ff; box-shadow: 0 0 0 3px rgba(91,91,246,.08); }
.mx-paste-account-input textarea::placeholder { color: #a4a9b5; }
.mx-paste-account-input > p { margin-top: 8px; color: var(--ink-3); font-size: 11px; line-height: 1.55; }
.mx-paste-account-input .mx-add-panel-foot { margin-top: 14px; }
.mx-ai-account-upload { max-width: 590px; margin: 8px auto 0; }
.mx-ai-account-drop { width: 100%; min-height: 188px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1.5px dashed #cfd3e3; border-radius: 14px; padding: 22px; background: #fbfcff; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.mx-ai-account-drop:hover { border-color: #9da4ff; background: #f7f7ff; }
.mx-ai-account-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg,#665cff,#9b6eff); box-shadow: 0 8px 18px rgba(91,82,255,.2); color: #fff; font-size: 13px; font-weight: 900; }
.mx-ai-account-drop b { margin-top: 3px; font-size: 14px; }
.mx-ai-account-drop small { color: var(--ink-3); font-size: 11px; }
.mx-ai-account-drop em { margin-top: 4px; border: 1px solid #d9dcff; border-radius: 8px; padding: 7px 13px; background: #fff; color: var(--brand); font-size: 11px; font-style: normal; font-weight: 750; }
.mx-ai-account-upload > p { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--ink-3); font-size: 11.5px; line-height: 1.55; }
.mx-ai-account-upload > p i { flex: none; border-radius: 5px; padding: 2px 5px; background: #eeeefe; color: var(--brand); font-size: 11px; font-style: normal; font-weight: 900; }
.mx-ai-account-analyzing { min-height: 255px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.mx-ai-account-analyzing[hidden] { display: none; }
.mx-ai-account-analyzing b { color: var(--ink-1); font-size: 14px; }
.mx-ai-account-analyzing small { color: var(--ink-3); font-size: 11px; }
.mx-ai-account-result[hidden] { display: none; }
.mx-ai-result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.mx-ai-result-head > div { display: flex; flex-direction: column; gap: 4px; }
.mx-ai-result-head b { color: var(--ink-1); font-size: 13.5px; }
.mx-ai-result-head small { color: var(--ink-3); font-size: 11.5px; }
.mx-ai-result-head button { flex: none; border: 0; background: transparent; color: var(--brand); cursor: pointer; font-size: 11px; font-weight: 700; }
.mx-ai-result-table { overflow: hidden; border: 1px solid #e7e9ef; border-radius: 11px; }
.mx-ai-result-row { min-height: 49px; display: grid; grid-template-columns: 108px minmax(130px,1fr) minmax(110px,1fr) 42px; align-items: center; gap: 12px; padding: 0 14px; color: var(--ink-2); font-size: 11.5px; cursor: pointer; }
.mx-ai-result-row + .mx-ai-result-row { border-top: 1px solid #eef0f4; }
.mx-ai-result-row:hover:not(.head) { background: #fafbff; }
.mx-ai-result-row.head { min-height: 34px; background: #f8f9fb; color: var(--ink-3); cursor: default; font-size: 11.5px; font-weight: 650; }
.mx-ai-result-row > span { display: flex; align-items: center; gap: 7px; }
.mx-ai-result-row > span i { width: 23px; height: 23px; display: grid; place-items: center; flex: none; border-radius: 7px; background: color-mix(in srgb,var(--plat) 10%,#fff); color: var(--plat); font-size: 11px; font-style: normal; font-weight: 900; }
.mx-ai-result-row b { overflow: hidden; color: var(--ink-1); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.mx-ai-result-row em { overflow: hidden; color: var(--ink-3); font-size: 11.5px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.mx-ai-result-row input { width: 16px; height: 16px; accent-color: var(--brand); }
.mx-ai-result-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.mx-ai-result-foot span { color: var(--ink-3); font-size: 11px; }
.mt-table { overflow: visible; background: #fff; border: 1px solid #e9ecf2; border-radius: 10px; box-shadow: 0 8px 28px rgba(20,24,40,.035); }
.mt-table-head, .mt-row { display: grid; grid-template-columns: 38px minmax(240px,1.55fr) 150px 100px minmax(120px,1fr) 76px 76px 100px 220px; column-gap: 10px; align-items: center; }
.mt-table-head { min-height: 40px; padding: 0 18px; background: #f8f9fb; border-bottom: 1px solid #e9ecf2; color: #8a91a3; font-size: 11px; font-weight: 600; }
.mt-info-head { position: relative; align-self: stretch; display: flex; align-items: center; min-width: 0; }
.mt-platform-trigger { display: inline-flex; align-items: center; gap: 5px; min-width: 0; border: 1px solid transparent; border-radius: 7px; padding: 5px 7px; background: transparent; color: #777f91; cursor: pointer; font-size: 11px; font-weight: 700; }
.mt-platform-trigger:hover, .mt-platform-trigger[aria-expanded="true"] { border-color: #dfe2eb; background: #fff; color: var(--brand); }
.mt-platform-trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-platform-trigger > i { flex: none; font-size: 12px; font-style: normal; transition: transform .15s; }
.mt-platform-trigger[aria-expanded="true"] > i { transform: rotate(180deg); }
.mt-platform-menu { position: absolute; z-index: 80; top: calc(100% + 5px); left: 0; width: 188px; overflow: hidden; border: 1px solid #e2e5ec; border-radius: 10px; padding: 5px; background: #fff; box-shadow: 0 14px 36px rgba(20,24,40,.16); }
.mt-platform-menu[hidden] { display: none; }
.mt-platform-option { width: 100%; min-height: 34px; display: grid; grid-template-columns: minmax(0,1fr) auto 18px; align-items: center; gap: 8px; border: 0; border-radius: 7px; padding: 5px 8px; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 11.5px; text-align: left; }
.mt-platform-option:hover { background: #f7f8fc; }
.mt-platform-option.on { background: #f4f5ff; color: var(--brand); font-weight: 750; }
.mt-platform-option > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.mt-platform-option > span i { width: 8px; height: 8px; flex: none; border-radius: 3px; background: var(--plat); }
.mt-platform-option em { color: var(--ink-3); font-size: 11px; font-style: normal; }
.mt-platform-option b { color: var(--brand); font-size: 11px; text-align: center; }
.mt-fans-head { min-width: 0; text-align: right; }
.mt-likes-head { text-align: right; }
.mt-check-head { display: flex; align-items: center; gap: 4px; min-width: 0; }
.mt-check-head > span { white-space: nowrap; }
.mt-check-head button { width: 25px; height: 25px; display: grid; place-items: center; flex: none; border: 1px solid transparent; border-radius: 7px; padding: 0; background: transparent; color: #969dad; cursor: pointer; }
.mt-check-head button:hover { border-color: #dfe2eb; background: #fff; color: var(--brand); }
.mt-check-head button:disabled { cursor: wait; opacity: .7; }
.mt-check-head svg { width: 13px; height: 13px; }
.mt-check-head button.is-loading svg { animation: mtStatusSpin .65s linear infinite; }
@keyframes mtStatusSpin { to { transform: rotate(360deg); } }
.mt-fans-sort, .mt-mobile-fans-sort { align-items: center; gap: 4px; border: 1px solid transparent; border-radius: 7px; padding: 5px 6px; background: transparent; color: #777f91; cursor: pointer; font-size: 11px; font-weight: 700; }
.mt-fans-sort { display: inline-flex; }
.mt-fans-sort:hover, .mt-fans-sort.on, .mt-mobile-fans-sort:hover, .mt-mobile-fans-sort.on { border-color: #dfe2eb; background: #fff; color: var(--brand); }
.mt-fans-sort i, .mt-mobile-fans-sort i { font-style: normal; font-weight: 900; }
.mt-head-op { text-align: right; }
.mt-list { display: flex; flex-direction: column; }
.mt-pager { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #e9ecf2; padding: 8px 18px; background: #fbfcfe; color: var(--ink-3); font-size: 11.5px; }
.mt-pager > span b { color: var(--ink-1); font-size: 12.5px; }
.mt-page-actions { display: flex; align-items: center; gap: 5px; }
.mt-page-btn { min-width: 30px; height: 30px; border: 1px solid #e1e4eb; border-radius: 7px; padding: 0 9px; background: #fff; color: var(--ink-2); cursor: pointer; font-size: 11px; font-weight: 650; }
.mt-page-btn:hover:not(:disabled) { border-color: #bec3ff; color: var(--brand); background: #f7f7ff; }
.mt-page-btn.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.mt-page-btn:disabled { cursor: default; opacity: .42; }
.mt-row { position: relative; min-height: 70px; padding: 10px 18px; transition: background .15s; }
.mt-row + .mt-row { border-top: 1px solid #f0f2f6; }
.mt-row:hover { background: #fafbff; }
.mt-row.is-fail::before { content: ""; position: absolute; inset: 10px auto 10px 0; width: 3px; border-radius: 0 3px 3px 0; background: #ef4444; }
.mt-seq { color: #9aa0ae; font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.mt-row.is-fail .mt-seq { color: #dc2626; font-weight: 800; }
.mt-info { min-width: 0; }
.mt-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; min-width: 0; }
.mt-name { overflow: hidden; color: var(--ink-1); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mt-plat { display: inline-flex; align-items: center; gap: 5px; flex: none; border-radius: 999px; padding: 3px 7px; background: color-mix(in srgb, var(--plat) 9%, white); color: var(--plat); font-size: 11px; font-weight: 750; white-space: nowrap; }
.mt-plat i { width: 6px; height: 6px; border-radius: 2px; background: var(--plat); }
.mt-login-tag { display: inline-flex; align-items: center; gap: 4px; flex: none; border-radius: 999px; padding: 3px 7px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.mt-login-tag i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.mt-login-tag.ok { background: #e8f8ef; color: #078047; }
.mt-login-tag.error { background: #fff0f1; color: #c33f4b; }
.mt-ai-reply-tag { flex: none; border: 0; border-radius: 999px; padding: 3px 7px; cursor: pointer; font-size: 11px; font-weight: 750; white-space: nowrap; }
.mt-ai-reply-tag.on { background: #e8f8ef; color: #078047; }
.mt-ai-reply-tag.fixed { background: #f1efff; color: #6d42c7; }
.mt-ai-reply-tag.off { background: #f0f1f4; color: #777e8c; }
.mt-ai-reply-tag.paused { background: #f0f1f4; color: #777e8c; }
.mt-ai-reply-tag:hover { filter: brightness(.97); }
.mt-remark { min-width: 0; overflow: hidden; color: var(--ink-2); font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.mt-remark.empty { padding: 0; color: #747b8b; text-align: left; }
.mt-douyin-id { color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mt-ip { min-width: 0; display: flex; align-items: flex-start; flex-direction: column; gap: 3px; border: 0; padding: 3px 0; background: transparent; color: var(--ink-2); cursor: pointer; text-align: left; }
.mt-ip:hover b { color: var(--brand); }
.mt-ip b { font-size: 11px; font-variant-numeric: tabular-nums; transition: color .15s; }
.mt-ip small { max-width: 100%; overflow: hidden; color: var(--ink-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mt-fans, .mt-likes { color: var(--ink-2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.mt-fans { display: flex; align-items: flex-end; flex-direction: column; gap: 3px; }
.mt-fans b { color: var(--ink-2); font-size: 12px; font-weight: 700; }
.mt-fans small { font-size: 11px; font-weight: 750; white-space: nowrap; }
.mt-fans small.up { color: #078047; }
.mt-fans small.down { color: #dc2626; }
.mt-fans small.flat { color: var(--ink-3); }
.mt-row .pub-status { justify-self: start; max-width: 100%; padding: 5px 9px; }
.mt-row .pub-status.fail { border-radius: 7px; }
.mt-row .pub-status.fail > span { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.mt-row .pub-status small { max-width: 116px; overflow: hidden; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.mt-time { display: flex; align-items: center; min-width: 0; color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-time b { color: var(--ink-2); font-size: 11px; font-weight: 600; }
.mt-row .pub-ops { display: flex; justify-content: flex-end; gap: 5px; margin-left: 0; }
.mt-row .pub-op { padding: 5px 9px; border-radius: 6px; font-size: 11px; }
.mt-row .pub-op.danger { color: #b91c1c; }
.mt-row .pub-op.danger:hover { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.pf-row-top { align-items: flex-start; }
.mt-note-input { min-height: 82px; resize: vertical; padding-top: 9px; line-height: 1.55; font-family: inherit; }
.mt-credential-editor { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.mt-credential-editor > small { color: var(--ink-3); font-size: 10.5px; line-height: 1.45; }
.mt-password-editor { position: relative; min-width: 0; }
.mt-password-editor .pf-input { padding-right: 52px; }
.mt-password-editor button { position: absolute; top: 50%; right: 7px; border: 0; padding: 4px 6px; background: transparent; color: var(--brand); font-size: 10.5px; font-weight: 700; transform: translateY(-50%); cursor: pointer; }
.mt-platform-data-note { margin: -2px 0 12px 106px; border-radius: 7px; padding: 7px 9px; background: #f7f8fb; color: #9298a5; font-size: 10.5px; line-height: 1.5; }
.mt-note-hint { margin: -8px 0 0 92px; color: var(--ink-3); font-size: 11.5px; }
.mt-ip-editor { min-width: 0; flex: 1; }
.mt-ip-selects { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.mt-ip-editor small { display: block; margin-top: 7px; color: var(--ink-3); font-size: 11px; }
@media (max-width: 1360px) {
  .mt-table-head, .mt-row { grid-template-columns: 30px minmax(215px,1.3fr) 118px 82px minmax(90px,.75fr) 58px 58px 82px 205px; column-gap: 7px; }
  .mt-row .pub-op { padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 900px) {
  .mt-toolbar { flex-wrap: wrap; }
  .mt-toolbar .pub-toolbar-hint { display: none; }
  .mt-mobile-platform-filter { display: block; margin-left: auto; }
  .mt-mobile-fans-sort { display: inline-flex; border-color: #dfe2eb; background: #fff; }
  .mt-mobile-platform-filter .mt-platform-trigger { border-color: #dfe2eb; background: #fff; }
  .mt-mobile-platform-filter .mt-platform-menu { right: 0; left: auto; }
  .mt-table { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .mt-table-head { display: none; }
  .mt-list { gap: 8px; }
  .mt-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 9px 10px; min-height: 0; padding: 13px 14px; border: 1px solid #e9ecf2 !important; border-radius: 9px; background: #fff; }
  .mt-seq { grid-column: 1; grid-row: 1; align-self: center; }
  .mt-info { grid-column: 2; grid-row: 1; }
  .mt-ip { grid-column: 2 / 4; grid-row: 2; }
  .mt-ip small { white-space: normal; }
  .mt-douyin-id { grid-column: 2 / 4; grid-row: 3; }
  .mt-douyin-id::before { content: "账号 ID "; color: var(--ink-3); }
  .mt-remark { grid-column: 2 / 4; grid-row: 4; }
  .mt-fans { grid-column: 2; grid-row: 5; align-items: flex-start; text-align: left; }
  .mt-likes { grid-column: 3; grid-row: 5; text-align: right; }
  .mt-fans::before { content: "粉丝 "; color: var(--ink-3); font-weight: 400; }
  .mt-likes::before { content: "获赞 "; color: var(--ink-3); font-weight: 400; }
  .mt-time { grid-column: 2 / 4; grid-row: 6; }
  .mt-time b { display: none; }
  .mt-row .pub-ops { grid-column: 2 / 4; grid-row: 7; justify-content: flex-start; flex-wrap: wrap; padding-top: 2px; }
  .mt-pager { border: 1px solid #e9ecf2; border-radius: 9px; padding: 9px 12px; background: #fff; }
}
@media (max-width: 620px) {
  .mt-pager { align-items: flex-start; flex-direction: column; }
  .mt-page-actions { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .mt-page-btn { flex: none; }
}

/* AI 评论自动回复右侧管理面板 */
.mx-ai-reply-mask { position: fixed; inset: 0; z-index: 130; display: flex; justify-content: flex-end; background: rgba(18,21,32,.28); opacity: 0; pointer-events: none; transition: opacity .18s; }
.mx-ai-reply-mask.show { opacity: 1; pointer-events: auto; }
.mx-ai-reply-drawer { width: min(520px, calc(100vw - 24px)); height: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: -18px 0 50px rgba(20,24,40,.16); transform: translateX(100%); transition: transform .22s ease; }
.mx-ai-reply-mask.show .mx-ai-reply-drawer { transform: translateX(0); }
.mx-ai-reply-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eceef3; padding: 21px 22px 16px; }
.mx-ai-reply-head > div > span { color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.mx-ai-reply-head h3 { margin: 4px 0 0; color: var(--ink-1); font-size: 18px; }
.mx-ai-reply-head p { margin: 5px 0 0; color: var(--ink-3); font-size: 11.5px; }
.mx-ai-reply-body { flex: 1; overflow-y: auto; padding: 16px 20px 22px; }
.mx-ai-reply-master { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #e5e7ff; border-radius: 13px; padding: 14px 15px; background: #f8f8ff; }
.mx-ai-reply-master > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.mx-ai-reply-master b { color: var(--ink-1); font-size: 13px; }
.mx-ai-reply-master span { color: var(--ink-3); font-size: 11.5px; }
.mx-ai-switch { position: relative; width: 38px; height: 22px; flex: none; border: 0; border-radius: 999px; background: #d7d9e0; cursor: pointer; transition: background .15s; }
.mx-ai-switch.large { width: 44px; height: 25px; }
.mx-ai-switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(20,24,40,.18); transition: transform .15s; }
.mx-ai-switch.large i { width: 19px; height: 19px; }
.mx-ai-switch.on { background: #19a764; }
.mx-ai-switch.mixed { background: #8b8df6; }
.mx-ai-switch.on i, .mx-ai-switch.mixed i { transform: translateX(16px); }
.mx-ai-switch.large.on i, .mx-ai-switch.large.mixed i { transform: translateX(19px); }
.mx-ai-reply-note { margin-top: 10px; border-radius: 9px; padding: 9px 11px; background: #f7f8fb; color: #747b89; font-size: 11.5px; line-height: 1.55; }
.mx-ai-config-entry { width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 10px; border: 1px solid #e7e9ef; border-radius: 10px; padding: 10px 11px; background: #fff; color: var(--ink-1); text-align: left; cursor: pointer; }
.mx-ai-config-entry:hover { border-color: #cfd3ff; background: #fafaff; }
.mx-ai-config-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #f1f2ff; color: var(--brand); font-size: 15px; }
.mx-ai-config-entry > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mx-ai-config-entry b { font-size: 12px; }
.mx-ai-config-entry small { overflow: hidden; color: var(--ink-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mx-ai-config-entry > i { color: #9ba0ab; font-size: 20px; font-style: normal; }
.mx-ai-reply-summary { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 13px; }
.mx-ai-reply-summary div { display: flex; align-items: center; flex-direction: column; gap: 3px; border: 1px solid #eceef3; border-radius: 10px; padding: 10px 6px; background: #fff; }
.mx-ai-reply-summary b { color: var(--ink-1); font-size: 15px; }
.mx-ai-reply-summary span { color: var(--ink-3); font-size: 11px; }
.mx-ai-reply-list-head { display: flex; align-items: center; gap: 7px; margin: 18px 0 8px; }
.mx-ai-reply-list-head b { color: var(--ink-1); font-size: 12.5px; }
.mx-ai-reply-list-head > span { flex: 1; }
.mx-ai-reply-list-head button { border: 0; background: transparent; color: var(--brand); cursor: pointer; font-size: 11.5px; font-weight: 700; }
.mx-ai-reply-list { display: flex; flex-direction: column; gap: 6px; }
.mx-ai-account { display: grid; grid-template-columns: 62px minmax(0,1fr) minmax(145px,auto); align-items: center; gap: 9px; min-height: 58px; border: 1px solid #eceef3; border-radius: 10px; padding: 8px 10px; background: #fff; transition: border-color .15s, background .15s; }
.mx-ai-account.is-focus { border-color: #bfc4ff; background: #f8f8ff; }
.mx-ai-account.is-disabled { background: #fafafa; }
.mx-ai-account-platform { display: inline-flex; align-items: center; gap: 5px; color: var(--plat); font-size: 11px; font-weight: 750; white-space: nowrap; }
.mx-ai-account-platform i { width: 7px; height: 7px; border-radius: 2px; background: var(--plat); }
.mx-ai-account-main { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.mx-ai-account-main b { overflow: hidden; color: var(--ink-1); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mx-ai-account-main span { overflow: hidden; color: var(--ink-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mx-ai-account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; }
.mx-ai-mode-select { height: 29px; min-width: 96px; border: 1px solid #e0e3ea; border-radius: 7px; padding: 0 22px 0 7px; background: #fff; color: var(--ink-2); cursor: pointer; font-size: 11px; outline: none; }
.mx-ai-mode-select:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(91,91,246,.08); }
.mx-ai-mode-select:disabled { cursor: default; opacity: .62; }
.mx-ai-relogin { border: 1px solid #f1c9cd; border-radius: 6px; padding: 5px 7px; background: #fff; color: #c33f4b; cursor: pointer; font-size: 11px; }
.mx-ai-reply-foot { display: flex; align-items: center; gap: 12px; border-top: 1px solid #eceef3; padding: 12px 20px; background: #fbfcfd; }
.mx-ai-reply-foot span { flex: 1; color: var(--ink-3); font-size: 11px; }
.mx-ai-config-modal { max-width: 520px; }
.mx-ai-config-modal .modal-head > div { min-width: 0; }
.mx-ai-config-modal .modal-head h3 { margin: 0; }
.mx-ai-config-modal .modal-head p { margin: 5px 0 0; color: var(--ink-3); font-size: 11px; }
.mx-ai-config-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.mx-ai-config-field > label { color: var(--ink-1); font-size: 12px; font-weight: 800; }
.mx-ai-config-field > small { color: var(--ink-3); font-size: 11px; }
.mx-ai-config-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #dfe2e9; border-radius: 9px; padding: 10px 11px; color: var(--ink-1); font: inherit; font-size: 11.5px; line-height: 1.6; resize: vertical; outline: none; }
.mx-ai-config-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,91,246,.1); }
@media (max-width: 620px) {
  .mx-ai-reply-btn { order: 4; width: 100%; }
  .mx-ai-reply-drawer { width: 100%; }
  .mx-ai-reply-summary { grid-template-columns: 1fr 1fr; }
  .mx-ai-account { grid-template-columns: 58px minmax(0,1fr); }
  .mx-ai-account-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 2px; }
  .mx-ai-mode-select { flex: 1; }
}
.mt-scan { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 0 4px; }
.mt-qr { width: 180px; height: 180px; border: 1px solid #eef0f4; border-radius: 14px; padding: 10px; background: #fff; }
.mt-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mt-scan-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); min-height: 20px; }
.mt-spin { width: 16px; height: 16px; border-width: 2px; flex: none; }
.mt-scan-hint { font-size: 11.5px; color: var(--ink-3); }
.mt-scan-ok { width: 20px; height: 20px; border-radius: 50%; background: #ecfdf5; color: #047857; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* 热点页面 */
.hot-main { padding-bottom: 28px; }
.hot-head { align-items: center; }
.hot-subtitle { margin-left: 12px; font-size: 12px; color: var(--ink-3); }
.hot-refresh-time { margin-left: auto; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.hot-refresh { border: 1px solid #e4e8ff; background: #f4f6ff; color: var(--brand); border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.hot-refresh:hover { background: #e9edff; }
.hot-product-bar { margin: 16px 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid #eef0f4; border-radius: 12px; }
.hot-label { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.hot-product-bar select { min-width: 170px; height: 32px; border: 1px solid #e2e4ea; border-radius: 8px; background: #fff; color: var(--ink-1); font-size: 12px; padding: 0 10px; }
.hot-product-hint { color: var(--ink-3); font-size: 11.5px; }
.hot-link-remake { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; margin-left: auto; padding: 0 11px; border: 1px solid #dfe2ed; border-radius: 8px; background: #fff; color: #697084; font-size: 11.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.hot-link-remake:hover { border-color: #c9ccff; background: #fafaff; color: var(--brand); }
.hot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 16px; align-items: start; }
.hot-main-col { min-width: 0; }
.hot-source-tabs, .hot-type-tabs { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hot-source-tabs::-webkit-scrollbar, .hot-type-tabs::-webkit-scrollbar { display: none; }
.hot-source-tabs { padding-bottom: 10px; border-bottom: 1px solid #eef0f4; }
.hot-tab, .hot-type { border: 1px solid transparent; background: transparent; color: var(--ink-3); border-radius: 8px; padding: 7px 12px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.hot-tab.on { background: #f0efff; color: var(--brand); font-weight: 800; }
.hot-type-tabs { padding: 10px 0; }
.hot-type { padding: 5px 10px; }
.hot-type.on { color: var(--ink-1); background: #f5f6f9; font-weight: 700; }
.hot-list { display: flex; flex-direction: column; gap: 10px; }
.hot-item { display: flex; gap: 12px; padding: 12px; background: #fff; border: 1px solid #eef0f4; border-radius: 12px; box-shadow: 0 3px 12px rgba(20,24,40,.035); }
.hot-thumb { position: relative; flex: none; width: 116px; height: 78px; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg,#dfe5ff,#f5d8ff); display: flex; align-items: flex-end; padding: 8px; box-sizing: border-box; }
.hot-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(40,42,70,0) 30%,rgba(40,42,70,.35)); }
.hot-thumb-douyin { background: linear-gradient(135deg,#1f2937,#64748b 45%,#f43f5e); }
.hot-thumb-shipinhao { background: linear-gradient(135deg,#b9e8d0,#167b53); }
.hot-thumb-wechat { background: linear-gradient(135deg,#dce8ff,#5378c7); }
.hot-play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 27px; height: 27px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 11px; padding-left: 2px; }
.hot-thumb small { position: relative; z-index: 1; color: #fff; font-size: 11px; font-weight: 700; }
.hot-item-body { min-width: 0; flex: 1; }
.hot-item-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hot-rank { color: #747b8b; font-size: 12px; font-weight: 800; }
.hot-item h3 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink-1); }
.hot-badge { flex: none; color: var(--brand); background: #f4f6ff; border-radius: 999px; padding: 3px 7px; font-size: 11px; }
.hot-item-body p { margin: 8px 0; color: var(--ink-3); font-size: 11.5px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-meta { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.hot-tag { color: #7c3aed; }
.hot-trend { color: #e11d48; font-weight: 700; }
.hot-create { margin-left: auto; flex: none; min-width: 126px; border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 8px; padding: 7px 12px; cursor: pointer; box-shadow: 0 4px 12px rgba(91,91,246,.22); transition: transform .15s, box-shadow .15s, background .15s; display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.15; }
.hot-create:hover { background: var(--brand-2); border-color: var(--brand-2); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(91,91,246,.3); }
.hot-create strong { font-size: 12px; font-weight: 800; }
.hot-create small { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.78); }
.hot-parse-modal { width: min(620px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 40px)); overflow: hidden; display: flex; flex-direction: column; }
.hot-parse-head p { margin: 5px 0 0; color: var(--ink-3); font-size: 11.5px; }
.hot-parse-body { min-height: 342px; padding: 22px 24px; overflow-y: auto; }
.hot-parse-input { min-height: 298px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hot-parse-input[hidden], .hot-parsing[hidden], .hot-parse-error[hidden], .hot-parse-result[hidden] { display: none; }
.hot-url-intro { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.hot-url-intro b { color: var(--ink-1); font-size: 15px; }
.hot-url-intro span { color: var(--ink-3); font-size: 11.5px; line-height: 1.6; }
.hot-url-field { display: flex; flex-direction: column; gap: 8px; }
.hot-url-field > span { color: var(--ink-2); font-size: 11.5px; font-weight: 800; }
.hot-url-field textarea { width: 100%; min-height: 110px; box-sizing: border-box; border: 1px solid #dfe2ea; border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--ink-1); font: inherit; font-size: 12px; line-height: 1.65; resize: vertical; outline: none; }
.hot-url-field textarea:focus { border-color: #bfc3ff; box-shadow: 0 0 0 3px rgba(91,91,246,.09); }
.hot-url-field textarea[aria-invalid="true"] { border-color: #f3b5b5; box-shadow: 0 0 0 3px rgba(220,38,38,.06); }
.hot-url-field small { color: var(--ink-3); font-size: 10.5px; line-height: 1.55; }
.hot-url-error { color: #c24141; font-size: 11px; font-style: normal; }
.hot-url-error[hidden] { display: none; }
.hot-parsing { min-height: 298px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hot-parse-orbit { position: relative; width: 76px; height: 76px; border-radius: 50%; border: 2px solid #eceeff; display: grid; place-items: center; margin-bottom: 19px; }
.hot-parse-orbit::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid transparent; border-top-color: var(--brand); border-right-color: var(--brand); animation: hotParseSpin 1s linear infinite; }
.hot-parse-orbit span { width: 48px; height: 48px; border-radius: 50%; background: #f0efff; color: var(--brand); font-size: 13px; font-weight: 900; display: grid; place-items: center; }
@keyframes hotParseSpin { to { transform: rotate(360deg); } }
.hot-parse-status { color: var(--ink-1); font-size: 13px; font-weight: 800; }
.hot-parse-percent { color: var(--brand); font-size: 26px; font-weight: 900; margin: 8px 0 14px; font-variant-numeric: tabular-nums; }
.hot-parse-track { width: min(390px, 90%); height: 7px; border-radius: 999px; background: #eef0f6; overflow: hidden; }
.hot-parse-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width .15s ease; }
.hot-parse-tips { width: min(390px, 90%); display: flex; justify-content: space-between; color: #747b8b; font-size: 11.5px; margin-top: 11px; }
.hot-parse-tips span.on { color: var(--brand); font-weight: 700; }
.hot-parse-error { min-height: 298px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center; }
.hot-parse-error-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff4f2; color: #c24141; font-size: 20px; font-weight: 900; }
.hot-parse-error h4 { margin: 3px 0 0; color: var(--ink-1); font-size: 15px; }
.hot-parse-error p { max-width: 380px; margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.65; }
.hot-parse-error small { color: var(--ink-3); font-size: 10.5px; }
.hot-parse-result { display: flex; flex-direction: column; gap: 14px; }
.hot-result-ready { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: #f1faf6; border: 1px solid #d9f0e4; border-radius: 8px; }
.hot-result-ready i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #0f9f66; color: #fff; font-size: 13px; font-style: normal; font-weight: 800; }
.hot-result-ready div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hot-result-ready b { color: #116647; font-size: 12px; }
.hot-result-ready span { color: #55806e; font-size: 11.5px; }
.hot-result-product { display: grid; grid-template-columns: minmax(0,1fr) minmax(170px,220px); align-items: center; gap: 12px; border-bottom: 1px solid #f0f1f4; padding: 0 2px 13px; }
.hot-result-product-toggle { display: flex; min-width: 0; align-items: center; gap: 9px; cursor: pointer; }
.hot-result-product-toggle input { width: 15px; height: 15px; flex: none; margin: 0; accent-color: var(--brand); }
.hot-result-product-toggle span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.hot-result-product-toggle b { color: var(--ink-2); font-size: 11.5px; }
.hot-result-product-toggle small { color: var(--ink-3); font-size: 10.5px; font-weight: 400; }
.hot-result-product select { width: 100%; height: 34px; border: 1px solid #e1e4eb; border-radius: 8px; padding: 0 30px 0 10px; background: #fff; color: var(--ink-1); font: inherit; font-size: 11.5px; outline: none; }
.hot-result-product select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,91,246,.08); }
.hot-result-product select:disabled { background: #f7f8fa; color: #a3a8b3; cursor: not-allowed; }
.hot-result-field { display: flex; flex-direction: column; gap: 7px; }
.hot-result-field > span { color: var(--ink-2); font-size: 11.5px; font-weight: 800; }
.hot-result-field input, .hot-result-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #e1e4eb; border-radius: 8px; background: #fff; color: var(--ink-1); font: inherit; font-size: 12px; line-height: 1.6; padding: 9px 11px; resize: vertical; outline: none; }
.hot-result-field input:focus, .hot-result-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,91,246,.1); }
.hot-parse-foot { justify-content: flex-end; }
.hot-parse-foot .btn[hidden] { display: none; }
.hot-parse-foot .btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.hot-side-col { display: flex; flex-direction: column; gap: 12px; }
.hot-side-card { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 14px; }
.hot-side-title { font-size: 13px; font-weight: 800; color: var(--ink-1); padding-bottom: 10px; border-bottom: 1px solid #f1f2f6; }
.hot-key-head { display: flex; align-items: center; justify-content: space-between; }
.hot-key-head button { border: none; background: transparent; color: var(--brand); font-size: 11px; font-weight: 700; cursor: pointer; padding: 2px 0; }
.hot-key-title { display: inline-flex; align-items: center; gap: 6px; }
.hot-key-help { position: relative; display: inline-flex; align-items: center; }
.hot-key-head .hot-key-help > button { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #dfe2ea; border-radius: 50%; padding: 0; background: #fff; color: #9299a8; font-size: 11px; font-weight: 800; line-height: 1; }
.hot-key-head .hot-key-help > button:hover, .hot-key-head .hot-key-help > button:focus-visible { border-color: #bdc2ff; color: var(--brand); outline: none; }
.hot-key-help > span { position: absolute; z-index: 30; top: calc(100% + 7px); left: 50%; width: 220px; box-sizing: border-box; border: 1px solid #e2e5ec; border-radius: 9px; padding: 8px 10px; background: #fff; color: var(--ink-2); box-shadow: 0 10px 28px rgba(20,24,40,.14); font-size: 11.5px; font-weight: 500; line-height: 1.55; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-38%,-4px); transition: opacity .15s, visibility .15s, transform .15s; }
.hot-key-help:hover > span, .hot-key-help:focus-within > span { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-38%,0); }
.hot-keywords { display: flex; flex-wrap: wrap; gap: 7px; padding: 13px 0 8px; }
.hot-keyword-wrap { position: relative; display: inline-flex; align-items: center; }
.hot-keyword { border: 1px solid #e5e7eb; background: #fafbfc; color: var(--ink-2); border-radius: 999px; padding: 5px 9px; font-size: 11px; cursor: default; }
.hot-keyword.strong { color: var(--brand); background: #f4f6ff; border-color: #e4e8ff; }
.hot-key-actions { display: none; position: absolute; z-index: 2; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 3px; background: #fff; border: 1px solid #e5e7eb; border-radius: 7px; box-shadow: 0 5px 14px rgba(20,24,40,.12); gap: 2px; }
.hot-keyword-wrap:hover .hot-key-actions { display: flex; }
.hot-key-actions button { width: 22px; height: 21px; border: none; border-radius: 5px; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 12px; }
.hot-key-actions button:hover { background: #f4f6ff; color: var(--brand); }
.hot-key-empty { color: var(--ink-3); font-size: 11px; padding: 4px 0; }
.hot-side-note { color: var(--ink-3); font-size: 11.5px; line-height: 1.5; }
.hot-guide p { color: var(--ink-3); font-size: 11.5px; line-height: 1.6; margin: 12px 0; }
.hot-flow { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--brand); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.hot-flow span { flex: none; background: #f4f6ff; border-radius: 6px; padding: 5px 6px; white-space: nowrap; }
.hot-flow i { flex: none; color: #747b8b; font-style: normal; }
@media (max-width: 1080px) { .hot-layout { grid-template-columns: 1fr; } .hot-side-col { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .hot-subtitle { display: block; margin: 5px 0 0; } .hot-product-bar { align-items: flex-start; flex-direction: column; } .hot-product-bar select, .hot-link-remake { width: 100%; margin-left: 0; } .hot-item { gap: 9px; } .hot-thumb { width: 88px; height: 68px; } .hot-item-body p { display: none; } .hot-meta { gap: 6px; flex-wrap: wrap; } .hot-create { width: 100%; margin: 4px 0 0; } .hot-side-col { display: flex; } .hot-parse-body { min-height: 300px; padding: 18px 16px; } .hot-parse-modal { max-height: calc(100vh - 20px); } .hot-result-ready span { white-space: normal; } .hot-result-product { grid-template-columns: 1fr; gap: 9px; } .hot-parse-input, .hot-parsing, .hot-parse-error { min-height: 270px; } }
@media (min-width: 721px) and (max-height: 600px) { .hot-parse-body { min-height: 0; } .hot-parse-modal { max-height: calc(100vh - 24px); } }

/* 选择账号并发布（账号矩阵） */
.mx-head-r { display: flex; align-items: center; gap: 10px; }
.mx-import { border: 1px solid #e4e8ff; background: #f4f6ff; color: var(--brand); border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s; }
.mx-import:hover { background: #e9edff; }
#pubModal .modal { display: flex; overflow: hidden; flex-direction: column; }
#pubModal .modal-head, #pubModal .modal-foot { flex: none; }
.mx-publish-body { min-height: 0; flex: 1; display: flex; overflow-y: auto; flex-direction: column; gap: 12px; }
.mx-select-toolbar { display: flex; align-items: center; gap: 12px; border: 1px solid #e8eaff; border-radius: 10px; padding: 10px 12px; background: #f8f8ff; }
.mx-select-toolbar > span { color: var(--ink-3); font-size: 11px; }
.mx-account-search { width: 210px; height: 32px; margin-left: auto; box-sizing: border-box; border: 1px solid #dfe3eb; border-radius: 7px; padding: 0 10px; background: #fff; color: var(--ink-2); font: inherit; font-size: 11.5px; outline: none; }
.mx-account-search:focus { border-color: #9c9bff; box-shadow: 0 0 0 3px rgba(91,91,246,.08); }
.mx-acct.mx-search-hidden, .mx-group.mx-search-hidden { display: none; }
.mx-select-all, .mx-platform-select { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-1); font-size: 12px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.mx-select-all input, .mx-platform-select input, .mx-acct input { width: 15px; height: 15px; flex: none; margin: 0; accent-color: var(--brand); }
.mx-body { display: flex; flex-direction: column; gap: 12px; }
.mx-group { border: 1px solid #eef0f4; border-radius: 12px; overflow: hidden; }
.mx-ghead { width: 100%; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 0; background: #fbfcfe; }
.mx-toggle { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: transparent; border: none; cursor: pointer; text-align: left; }
.mx-arrow { font-size: 11px; color: var(--ink-3); transition: transform .15s; }
.mx-group.closed .mx-arrow { transform: rotate(-90deg); }
.mx-name { font-size: 13px; font-weight: 800; color: var(--ink-1); }
.mx-cnt { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.mx-cnt i { font-style: normal; }
.mx-cnt .ok { color: #047857; }
.mx-cnt .bad { color: #b91c1c; }
.mx-platform-select { color: var(--brand); font-size: 11.5px; }
.mx-pool { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.mx-group.closed .mx-pool { display: none; }
.mx-acct { min-width: 280px; flex: 1 1 310px; display: grid; grid-template-columns: 15px minmax(80px,1fr) auto minmax(118px,auto); align-items: center; gap: 7px; border: 1px solid #eef0f4; background: #fff; border-radius: 10px; padding: 7px 9px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.mx-acct.bad { border-color: #fecdd3; background: #fff8f9; }
.mx-acct .mx-nm { font-weight: 600; }
.mx-acct-ip { min-width: 0; display: flex; align-items: flex-end; flex-direction: column; gap: 2px; border-left: 1px solid #eef0f4; padding-left: 8px; text-align: right; }
.mx-acct-ip b { color: var(--ink-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.mx-acct-ip small { max-width: 145px; overflow: hidden; color: var(--ink-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mx-st.ok { font-style: normal; color: #047857; font-size: 11px; }
.mx-relogin { border: none; background: none; color: #e11d48; font-size: 11px; font-weight: 700; cursor: pointer; padding: 0; }
.mx-relogin:hover { text-decoration: underline; }
.mx-publish-foot { align-items: center; justify-content: space-between; gap: 14px; }
.mx-publish-actions { display: flex; flex: none; gap: 10px; }
.mx-selection-summary { min-width: 0; flex: 1; border: 1px solid #dfe2ff; border-radius: 10px; padding: 9px 12px; background: #f7f8ff; color: var(--ink-2); font-size: 11.5px; line-height: 1.55; }
.mx-selection-summary b { color: var(--brand); font-size: 13px; }

/* 批量视频生成与发布工作台 */
#batchPublishModal { padding: 18px; }
.batch-publish-modal { width: min(1180px, calc(100vw - 36px)); max-width: 1180px; height: min(780px, calc(100vh - 36px)); max-height: 780px; display: flex; overflow: hidden; flex-direction: column; }
.batch-publish-head { flex: none; align-items: flex-start; padding: 15px 18px 13px; }
.batch-publish-head h3 { margin: 0; }
.batch-steps { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.batch-steps span { display: inline-flex; align-items: center; gap: 5px; color: #9aa1b1; font-size: 11px; font-weight: 650; white-space: nowrap; }
.batch-steps span::before { content: attr(data-num); width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: #f0f2f6; color: #858c9c; font-size: 10px; }
.batch-steps span.on { color: var(--brand); }
.batch-steps span.on::before { background: var(--brand); color: #fff; }
.batch-steps i { width: 17px; height: 1px; background: #e4e6ed; }
.batch-overview { flex: none; display: flex; align-items: center; gap: 16px; padding: 10px 18px; border-bottom: 1px solid #edf0f4; background: #fafbfe; }
.batch-overview-copy { min-width: 230px; display: flex; align-items: baseline; gap: 12px; }
.batch-overview-copy b { color: var(--ink-1); font-size: 12px; }
.batch-overview-copy span { color: #9299a8; font-size: 10.5px; }
.batch-overall-track { height: 5px; flex: 1; overflow: hidden; border-radius: 999px; background: #e9ebf2; }
.batch-overall-track i { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#7775ff,#5b5bf6); transition: width .25s ease; }
.batch-toolbar { flex: none; padding: 10px 18px; border-bottom: 1px solid #edf0f4; background: #fff; }
.batch-toolbar-main, .batch-toolbar-filter { display: flex; align-items: flex-end; gap: 8px; }
.batch-toolbar-filter { margin-top: 8px; }
.batch-toolbar label { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.batch-toolbar label > span { color: #858c9c; font-size: 10px; }
.batch-toolbar input, .batch-toolbar select, .batch-editor input, .batch-editor select, .batch-editor textarea { box-sizing: border-box; width: 100%; border: 1px solid #dfe3eb; border-radius: 7px; background: #fff; color: var(--ink-2); font: inherit; font-size: 11.5px; outline: none; }
.batch-toolbar input, .batch-toolbar select, .batch-editor input, .batch-editor select { height: 34px; padding: 0 9px; }
.batch-toolbar input:focus, .batch-toolbar select:focus, .batch-editor input:focus, .batch-editor select:focus, .batch-editor textarea:focus { border-color: #9c9bff; box-shadow: 0 0 0 3px rgba(91,91,246,.08); }
.batch-toolbar .batch-interval { max-width: 105px; }
.batch-toolbar-main .pc-action { height: 34px; flex: none; white-space: nowrap; }
.batch-toolbar-filter select { width: 130px; flex: none; }
.batch-toolbar-filter input { max-width: 240px; margin-left: auto; }
.batch-workbench { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(620px,1.65fr) minmax(320px,.85fr); overflow: hidden; }
.batch-list-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid #edf0f4; background: #fff; }
.batch-list-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid #f0f2f5; color: #858c9c; font-size: 10.5px; }
.batch-list-head label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); cursor: pointer; }
.batch-list-head input, .batch-row-check { width: 14px; height: 14px; margin: 0; accent-color: var(--brand); }
.batch-list { min-height: 0; flex: 1; overflow: auto; padding: 7px 9px; }
.batch-row { display: grid; grid-template-columns: 20px minmax(112px,1.08fr) minmax(130px,1.25fr) minmax(116px,1.05fr) minmax(92px,.9fr) minmax(110px,1fr); align-items: center; gap: 7px; min-height: 60px; padding: 6px 7px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; transition: border-color .15s, background .15s; }
.batch-row + .batch-row { margin-top: 3px; }
.batch-row:hover { background: #fafbff; }
.batch-row.active { border-color: #d8dbff; background: #f7f7ff; }
.batch-row > div { min-width: 0; }
.batch-account { display: flex; flex-direction: column; gap: 3px; }
.batch-account b, .batch-work-title b { overflow: hidden; color: var(--ink-1); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.batch-account small, .batch-work-title small, .batch-ip small, .batch-schedule small { overflow: hidden; color: #9299a8; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.batch-platform { width: fit-content; border-radius: 4px; padding: 1px 5px; background: #eff1f6; color: #666d7d; font-size: 9px; font-weight: 750; }
.batch-mother { margin-left: 4px; border-radius: 999px; padding: 1px 5px; background: #fff1d6; color: #a96700; font-size: 8.5px; font-weight: 800; }
.batch-work-title, .batch-ip, .batch-progress-cell, .batch-schedule { display: flex; flex-direction: column; gap: 5px; }
.batch-ip b { overflow: hidden; color: var(--ink-2); font-size: 10.5px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.batch-mini-track { height: 4px; overflow: hidden; border-radius: 999px; background: #e8eaf0; }
.batch-mini-track i { height: 100%; display: block; border-radius: inherit; background: var(--brand); transition: width .25s ease; }
.batch-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #9299a8; font-size: 9px; }
.batch-status { width: fit-content; border-radius: 999px; padding: 2px 6px; background: #f1f2f5; color: #737a8a; font-size: 9px; font-weight: 750; white-space: nowrap; }
.batch-status.generating, .batch-status.publishing { background: #eeefff; color: var(--brand); }
.batch-status.ready, .batch-status.published { background: #eafaf3; color: #07845c; }
.batch-status.stopped { background: #fef2f2; color: #b91c1c; }
.batch-pagination { flex: none; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; border-top: 1px solid #f0f2f5; }
.batch-pagination button { min-width: 28px; height: 27px; border: 1px solid #e1e4eb; border-radius: 6px; background: #fff; color: #737a8a; font-size: 10.5px; cursor: pointer; }
.batch-pagination button.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.batch-pagination button:disabled { opacity: .35; cursor: default; }
.batch-empty { padding: 60px 20px; color: #9299a8; font-size: 12px; text-align: center; }
.batch-editor { min-width: 0; min-height: 0; overflow: auto; padding: 14px 15px; background: #fbfcfe; }
.batch-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid #e9ecf1; }
.batch-editor-head h4 { margin: 0 0 4px; color: var(--ink-1); font-size: 14px; }
.batch-editor-head p { margin: 0; color: #9299a8; font-size: 10.5px; }
.batch-mother-btn { flex: none; border: 1px solid #e4d4ad; border-radius: 7px; padding: 5px 8px; background: #fffaf0; color: #9c6809; font-size: 10px; font-weight: 700; cursor: pointer; }
.batch-mother-btn:disabled { opacity: .5; cursor: default; }
.batch-editor-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.batch-field { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.batch-field.wide { grid-column: 1 / -1; }
.batch-field > span { display: flex; align-items: center; justify-content: space-between; color: #737a8a; font-size: 10px; }
.batch-field > span small { color: #a1a7b4; }
.batch-field > .creation-ip-label { position: relative; justify-content: flex-start; gap: 5px; }
.creation-ip-help { width: 15px; height: 15px; display: inline-grid; place-items: center; box-sizing: border-box; border: 1px solid #d8dbe3; border-radius: 50%; background: #fff; color: #9298a5; font-size: 9px; font-style: normal; font-weight: 800; line-height: 1; cursor: help; outline: none; }
.creation-ip-help:hover, .creation-ip-help:focus-visible { border-color: #bfc2e9; color: var(--brand); }
.creation-ip-tip { position: absolute; z-index: 35; top: calc(100% + 7px); left: 60px; width: 260px; box-sizing: border-box; border: 1px solid #e1e3e9; border-radius: 8px; padding: 8px 10px; background: rgba(255,255,255,.98); color: #666d7c; box-shadow: 0 10px 28px rgba(25,30,45,.13); font-size: 10.5px; font-style: normal; font-weight: 500; line-height: 1.55; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-3px); transition: opacity .15s, visibility .15s, transform .15s; }
.creation-ip-help:hover + .creation-ip-tip, .creation-ip-help:focus-visible + .creation-ip-tip { opacity: 1; visibility: visible; transform: none; }
.batch-editor textarea { min-height: 62px; padding: 8px 9px; line-height: 1.5; resize: vertical; }
.batch-editor textarea.script { min-height: 100px; }
.batch-editor :disabled { background: #f2f3f6; color: #9ba1ae; cursor: not-allowed; }
.batch-regenerate { width: 100%; margin-top: 11px; }
.batch-publish-foot { flex: none; align-items: center; justify-content: space-between; padding: 12px 18px; }
.batch-publish-foot > span { color: #858c9c; font-size: 10.5px; }
.batch-publish-foot .pc-action { flex: none; min-width: 106px; }
.batch-publish-foot .danger { border-color: #fecaca; background: #fff; color: #c24141; }

@media (max-width: 1020px) {
  .batch-publish-modal { height: calc(100vh - 28px); width: calc(100vw - 28px); }
  .batch-workbench { grid-template-columns: minmax(520px,1.35fr) minmax(285px,.8fr); }
  .batch-row { grid-template-columns: 20px minmax(105px,1fr) minmax(120px,1.15fr) minmax(105px,1fr) minmax(85px,.8fr); }
  .batch-row .batch-schedule { display: none; }
  .batch-toolbar-main { flex-wrap: wrap; }
  .batch-toolbar label { min-width: 150px; }
}
@media (max-width: 760px) {
  #batchPublishModal { align-items: stretch; padding: 0; }
  .batch-publish-modal { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .batch-steps { max-width: calc(100vw - 58px); overflow-x: auto; }
  .batch-overview { align-items: stretch; flex-direction: column; gap: 7px; }
  .batch-overview-copy { min-width: 0; justify-content: space-between; }
  .batch-toolbar-main, .batch-toolbar-filter { align-items: stretch; flex-wrap: wrap; }
  .batch-toolbar label { min-width: calc(50% - 5px); }
  .batch-toolbar .batch-interval { max-width: none; }
  .batch-toolbar-filter select, .batch-toolbar-filter input { width: calc(50% - 5px); max-width: none; margin-left: 0; }
  .batch-workbench { display: block; overflow-y: auto; }
  .batch-list-panel { height: 410px; border-right: none; border-bottom: 1px solid #edf0f4; }
  .batch-editor { min-height: 460px; overflow: visible; }
  .batch-row { grid-template-columns: 20px minmax(95px,1fr) minmax(120px,1.25fr) minmax(90px,.9fr); }
  .batch-row .batch-ip, .batch-row .batch-schedule { display: none; }
  .batch-publish-foot { gap: 9px; }
  .batch-publish-foot > span { max-width: 64%; }
}
@media (max-width: 480px) {
  .batch-toolbar label, .batch-toolbar-filter select, .batch-toolbar-filter input { width: 100%; min-width: 100%; }
  .batch-toolbar-main .pc-action { width: 100%; }
  .batch-row { grid-template-columns: 18px 1fr 1.15fr 82px; padding-left: 4px; padding-right: 4px; }
  .batch-editor-form { grid-template-columns: 1fr; }
  .batch-field.wide { grid-column: 1; }
  .batch-publish-foot > span { display: none; }
  .batch-publish-foot .pc-action { width: 100%; }
}

/* ============================================================
   批量生成 V2：三步批量生成并发布
   ============================================================ */
.page-batch-publish { background: #f6f7fa; }
.bp-main { min-height: 100vh; padding-top: 58px; padding-bottom: 26px; }
.bp-page-head { max-width: 1440px; margin: 0 auto 16px; }
.bp-page-head .page-heading-block { align-items: center; }
.bp-page-head h1 { color: var(--ink-1); font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.bp-page-head p { margin-top: 2px; color: #848b9c; font-size: 12px; }
.bp-shell { max-width: 1440px; height: calc(100vh - 140px); min-height: 520px; display: flex; overflow: hidden; flex-direction: column; margin: 0 auto; border: 1px solid #e8eaf0; border-radius: 16px; background: #fff; box-shadow: 0 10px 32px rgba(27,31,48,.06); }
.bp-ai-transition { position: fixed; z-index: 1300; top: 23px; left: 50%; width: min(390px,calc(100vw - 28px)); min-height: 70px; display: grid; grid-template-columns: auto minmax(0,1fr) 22px; align-items: center; gap: 11px; box-sizing: border-box; border: 1px solid #dcdeff; border-radius: 14px; padding: 11px 13px; background: rgba(255,255,255,.98); box-shadow: 0 16px 46px rgba(45,48,105,.2); opacity: 0; pointer-events: none; transform: translate(-50%,-14px) scale(.98); transition: opacity .18s ease, transform .18s ease; }
.bp-ai-transition.show { opacity: 1; transform: translate(-50%,0) scale(1); }
.bp-ai-transition-logo { width: 43px; height: 43px; display: flex; align-items: center; justify-content: center; flex-direction: column; border-radius: 12px; background: linear-gradient(145deg,#615df5,#8b6cff); color: #fff; box-shadow: 0 7px 18px rgba(91,91,246,.23); line-height: 1; }
.bp-ai-transition-logo span { font-size: 9px; font-weight: 750; }
.bp-ai-transition-logo b { margin-top: 3px; font-size: 14px; letter-spacing: -.5px; }
.bp-ai-transition > div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bp-ai-transition strong { color: var(--ink-1); font-size: 13.5px; }
.bp-ai-transition small { overflow: hidden; color: #858c9c; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.bp-ai-transition > i { width: 18px; height: 18px; box-sizing: border-box; border: 2px solid #dedfff; border-top-color: var(--brand); border-radius: 50%; animation: bpAiTransitionSpin .7s linear infinite; }
@keyframes bpAiTransitionSpin { to { transform: rotate(360deg); } }
.bp-steps { flex: none; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 70px; border-bottom: 1px solid #edf0f4; padding: 10px 24px; background: #fbfcfe; }
.bp-steps > div { display: flex; align-items: center; gap: 7px; color: #989eac; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bp-steps > div i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #eceef3; color: #8c93a2; font-size: 11px; font-style: normal; }
.bp-steps > div.on { color: var(--brand); }
.bp-steps > div.on i { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(91,91,246,.25); }
.bp-steps > div.done { color: #4f5668; }
.bp-steps > div.done i { background: #e8f8f1; color: #07845c; }
.bp-steps > em { width: 58px; height: 1px; background: #dfe2e9; }
.bp-stage { min-height: 0; flex: 1; overflow: auto; padding: 22px 24px 96px; }
.bp-stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.bp-stage-head h2 { color: var(--ink-1); font-size: 18px; font-weight: 850; }
.bp-stage-head p { margin-top: 4px; color: #858c9c; font-size: 12px; }
.bp-stage-head .bp-account-guidance { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; margin-top: 6px; line-height: 1.6; }
.bp-account-guidance strong { color: #676e7d; font-size: 12px; font-weight: 750; }
.bp-account-guidance span { color: #9298a6; font-size: 11.5px; font-weight: 400; }
.bp-add-account { flex: none; border: 1px solid #dfe2ff; border-radius: 8px; padding: 7px 11px; background: #f6f7ff; color: var(--brand); font: inherit; font-size: 11.5px; font-weight: 750; cursor: pointer; }
.bp-add-account:hover { border-color: #c9ccff; background: #eff0ff; }
.bp-card { border: 1px solid #e9ebf0; border-radius: 13px; background: #fff; box-shadow: 0 3px 12px rgba(20,24,40,.025); }
.bp-select-layout { display: grid; grid-template-columns: 172px minmax(0,1fr); align-items: stretch; gap: 14px; }
.bp-platform-sidebar { position: relative; overflow: hidden; padding: 8px; }
.bp-platform-sidebar-title { padding: 7px 9px 9px; color: #9299a8; font-size: 10.5px; font-weight: 750; }
.bp-platform-option { width: 100%; min-height: 51px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 9px; border: 0; border-radius: 9px; padding: 7px 8px; background: transparent; color: var(--ink-2); text-align: left; cursor: pointer; transition: color .15s, background .15s; }
.bp-platform-option:hover { background: #f6f7fb; }
.bp-platform-option.on { background: #f0f1ff; color: var(--brand); }
.bp-platform-option > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bp-platform-option b { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.bp-platform-option small { color: #9aa0ae; font-size: 9.5px; white-space: nowrap; }
.bp-platform-logo, .bp-platform-all-icon { position: relative; width: 32px; height: 32px; display: block; overflow: hidden; box-sizing: border-box; border: 1px solid #e7e9ef; border-radius: 9px; background: #fff; }
.bp-platform-all-icon { display: grid; place-items: center; border-color: #e2e4ff; background: #f5f5ff; color: var(--brand); font-size: 11px; font-weight: 900; }
.bp-platform-logo img { position: absolute; display: block; max-width: none; }
.bp-logo-douyin img { left: -2px; top: -17px; width: 68px; height: 68px; }
.bp-logo-shenghuo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bp-logo-shipinhao img { left: -10px; top: -2px; width: 52px; height: 45px; object-fit: cover; object-position: center top; }
.bp-logo-xhs img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bp-logo-baijia img { left: -7px; top: -6px; width: 63px; height: 47px; object-fit: cover; object-position: left center; }
.bp-account-card { overflow: hidden; }
.bp-filter-row, .bp-list-toolbar { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #edf0f4; padding: 11px 13px; background: #fbfcfe; }
.bp-filter-row select, .bp-filter-row input[type="search"], .bp-list-toolbar select, .bp-list-toolbar input { height: 34px; box-sizing: border-box; border: 1px solid #dfe3eb; border-radius: 7px; padding: 0 10px; background: #fff; color: var(--ink-2); font: inherit; font-size: 11.5px; outline: none; }
.bp-filter-row select, .bp-list-toolbar select { width: 135px; flex: none; }
.bp-filter-row input[type="search"], .bp-list-toolbar input { width: min(270px,45%); margin-left: auto; }
.bp-filter-row input:focus, .bp-filter-row select:focus, .bp-list-toolbar input:focus, .bp-list-toolbar select:focus { border-color: #9c9bff; box-shadow: 0 0 0 3px rgba(91,91,246,.08); }
.bp-check-all { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 11.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.bp-check-all input, .bp-account-row > input, .bp-mother-choice input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); }
.bp-account-head { display: grid; grid-template-columns: 18px 34px minmax(145px,1fr) minmax(125px,.75fr) minmax(175px,.9fr) 76px; align-items: center; gap: 10px; min-height: 35px; border-bottom: 1px solid #edf0f4; padding: 0 13px; background: #fff; color: #9aa0ae; font-size: 10px; }
.bp-account-head b { font-weight: 650; }
.bp-ip-head { position: relative; display: inline-flex; align-items: center; gap: 5px; width: fit-content; }
.bp-ip-help { width: 15px; height: 15px; display: inline-grid; place-items: center; box-sizing: border-box; border: 1px solid #d8dbe3; border-radius: 50%; background: #fff; color: #9298a5; font-size: 9px; font-weight: 800; cursor: help; outline: none; }
.bp-ip-help:hover, .bp-ip-help:focus-visible { border-color: #bfc2e9; color: var(--brand); }
.bp-ip-tip { position: absolute; z-index: 35; top: calc(100% + 7px); left: 0; width: 225px; box-sizing: border-box; border: 1px solid #e0e3e9; border-radius: 8px; padding: 8px 10px; background: rgba(255,255,255,.98); box-shadow: 0 9px 25px rgba(25,30,45,.13); color: #656c7a; font-size: 10px; font-weight: 500; line-height: 1.55; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-3px); transition: opacity .15s,visibility .15s,transform .15s; }
.bp-ip-help:hover + .bp-ip-tip, .bp-ip-help:focus-visible + .bp-ip-tip { opacity: 1; visibility: visible; transform: none; }
.bp-account-list { min-height: 480px; }
.bp-account-row { display: grid; grid-template-columns: 18px 34px minmax(145px,1fr) minmax(125px,.75fr) minmax(175px,.9fr) 76px; align-items: center; gap: 10px; min-height: 55px; border-bottom: 1px solid #f0f2f5; padding: 7px 13px; cursor: pointer; transition: background .15s; }
.bp-account-row:hover { background: #fafbff; }
.bp-account-row.disabled { cursor: default; background: #fbfbfc; }
.bp-account-row.disabled > input, .bp-account-row.disabled > .bp-account-avatar, .bp-account-row.disabled > .bp-account-name, .bp-account-row.disabled > .bp-account-remark, .bp-account-row.disabled > .bp-account-ip { opacity: .58; }
.bp-platform-dot { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border-radius: 8px; background: color-mix(in srgb,var(--platform) 9%,#fff); color: var(--platform); font-size: 10px; font-weight: 900; }
.bp-account-avatar { position: relative; width: 32px; height: 32px; flex: none; }
.bp-account-avatar > img { width: 100%; height: 100%; display: block; box-sizing: border-box; border: 1px solid #e7e9ef; border-radius: 50%; object-fit: cover; background: #f4f5f8; }
.bp-account-avatar > i { position: absolute; right: -3px; bottom: -2px; width: 15px; height: 15px; display: grid; place-items: center; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; background: var(--platform); color: #fff; font-size: 7px; font-style: normal; font-weight: 900; line-height: 1; }
.bp-account-name, .bp-account-ip { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bp-account-remark { overflow: hidden; color: #6f7686; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.bp-account-name b, .bp-account-ip b { overflow: hidden; color: var(--ink-1); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.bp-account-name small, .bp-account-ip small { overflow: hidden; color: #9399a7; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.bp-account-name small { min-width: 0; display: flex; align-items: center; gap: 4px; }
.bp-account-name small span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-account-name small span:last-child { flex: none; white-space: nowrap; }
.bp-account-name small i { flex: none; color: #c0c4cc; font-style: normal; }
.bp-account-ip b { font-variant-numeric: tabular-nums; }
.bp-account-login { width: fit-content; display: flex; align-items: flex-start; flex-direction: column; gap: 3px; }
.bp-account-login > i { width: fit-content; border-radius: 999px; padding: 2px 7px; font-size: 9.5px; font-style: normal; font-weight: 750; white-space: nowrap; }
.bp-account-login > i.ok { background: #eaf9f2; color: #07845c; }
.bp-account-login > i.bad { background: #fff0f0; color: #bd3f46; }
.bp-account-login > i.pending { background: #f1f2f7; color: #777e8d; }
.bp-account-relogin { border: 0; padding: 0 2px; background: transparent; color: #5b5bf6; font-size: 9.5px; font-weight: 700; line-height: 1.35; white-space: nowrap; cursor: pointer; }
.bp-account-relogin:hover { color: #3f3fd4; text-decoration: underline; }
.bp-account-relogin.is-loading { display: inline-flex; align-items: center; gap: 4px; color: #7e8491; text-decoration: none; cursor: wait; }
.bp-account-relogin.is-loading::before { width: 8px; height: 8px; box-sizing: border-box; border: 1.5px solid #d2d5dc; border-top-color: #7e8491; border-radius: 50%; content: ''; animation: bpAiTransitionSpin .8s linear infinite; }
.bp-selection-card { position: sticky; top: 0; padding: 24px; background: linear-gradient(160deg,#fff 0%,#f7f8ff 100%); text-align: center; }
.bp-ai-badge { display: inline-flex; border-radius: 999px; padding: 3px 9px; background: #edeeff; color: var(--brand); font-size: 10px; font-weight: 800; }
.bp-selection-card h3 { margin-top: 12px; color: var(--ink-1); font-size: 25px; }
.bp-selection-card > p { margin-top: 4px; color: #858c9c; font-size: 11px; }
.bp-selection-numbers { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 18px 0 13px; }
.bp-selection-numbers > div { display: flex; align-items: center; flex-direction: column; border: 1px solid #e8eaff; border-radius: 9px; padding: 10px 4px; background: rgba(255,255,255,.78); }
.bp-selection-numbers span { color: #8c93a2; font-size: 9.5px; }
.bp-selection-numbers b { margin-top: 2px; color: var(--ink-1); font-size: 17px; }
.bp-selection-card > small { color: #858c9c; font-size: 10.5px; }
.bp-pager { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; }
.bp-pager button { min-width: 29px; height: 29px; border: 1px solid #e1e4eb; border-radius: 7px; background: #fff; color: #737a8a; font-size: 10.5px; }
.bp-pager button.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.bp-pager button:disabled { cursor: default; opacity: .35; }
.bp-ready-pill { flex: none; border-radius: 999px; padding: 5px 10px; background: #e8f8f1; color: #07845c; font-size: 10.5px; font-weight: 800; }
.bp-ready-pill.working { background: #fff1e8; color: #cf672c; }
.bp-optional { margin-bottom: 13px; border: 1px solid #e6e8ed; border-radius: 11px; background: #fbfbfc; }
.bp-optional summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 13px; cursor: pointer; list-style: none; }
.bp-optional summary::-webkit-details-marker { display: none; }
.bp-optional summary span { display: flex; align-items: baseline; gap: 9px; }
.bp-optional summary b { color: #5f6674; font-size: 11.5px; font-weight: 700; }
.bp-optional summary small { color: #9aa0ac; font-size: 10px; }
.bp-optional summary i { color: #8c929f; font-size: 10px; font-style: normal; font-weight: 600; }
.bp-optional[open] summary i { font-size: 0; }
.bp-optional[open] summary i::after { content: '收起'; font-size: 10px; }
.bp-batch-settings { display: grid; grid-template-columns: minmax(260px,1fr) minmax(390px,1.35fr); align-items: stretch; gap: 9px; border-top: 1px solid #e6e8ed; padding: 12px 13px; }
.bp-batch-settings label, .bp-edit-grid label { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bp-batch-settings label > span, .bp-edit-grid label > span { color: #777e8e; font-size: 10px; }
.bp-batch-settings input, .bp-batch-settings select, .bp-edit-grid input, .bp-edit-grid textarea { width: 100%; box-sizing: border-box; border: 1px solid #dfe3eb; border-radius: 7px; background: #fff; color: var(--ink-2); font: inherit; font-size: 11.5px; outline: none; }
.bp-batch-settings input, .bp-batch-settings select, .bp-edit-grid input { height: 34px; padding: 0 9px; }
.bp-batch-settings input:disabled, .bp-batch-settings select:disabled, .bp-batch-region select:disabled { background: #f4f5f7; color: #a5aab4; }
.bp-batch-settings .pc-action { height: 34px; white-space: nowrap; }
.bp-batch-setting { min-width: 0; display: flex; flex-direction: column; gap: 5px; border: 1px solid #eceef2; border-radius: 9px; padding: 9px 10px; background: #fff; }
.bp-batch-setting > span { color: #777e8e; font-size: 10px; }
.bp-batch-setting-control { min-width: 0; display: flex; align-items: center; gap: 7px; }
.bp-batch-setting-control > input, .bp-batch-setting-control > select { min-width: 0; flex: 1; }
.bp-batch-setting-time .bp-batch-setting-control > select { max-width: 105px; }
.bp-batch-setting-time .bp-batch-setting-control > input { min-width: 150px; }
.bp-batch-setting-address { grid-column: 1 / -1; }
.bp-batch-setting-address .bp-batch-setting-control > select { width: 130px; min-width: 130px; flex: none; }
.bp-batch-setting-address .bp-region-selects { min-width: 280px; flex: 1; }
.bp-apply-one { height: 34px; flex: none; border: 1px solid #dfe2e8; border-radius: 7px; padding: 0 10px; background: #fff; color: #686f7d; font: inherit; font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.bp-apply-one:hover { border-color: #cfd2dc; background: #fafbfc; color: #4e5563; }
.bp-batch-region { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bp-batch-region > span { color: #777e8e; font-size: 10px; }
.bp-work-card { overflow: hidden; }
.bp-list-toolbar input { width: 260px; }
.bp-work-list { min-height: 476px; }
.bp-work-row { display: grid; grid-template-columns: minmax(170px,1.05fr) minmax(230px,1.45fr) minmax(175px,.9fr) minmax(145px,.75fr) 118px; align-items: center; gap: 12px; min-height: 59px; border-bottom: 1px solid #f0f2f5; padding: 7px 13px; transition: background .15s; }
.bp-work-row:hover { background: #fafbff; }
.bp-work-account { min-width: 0; display: flex; align-items: center; gap: 8px; }
.bp-work-account > div, .bp-work-title, .bp-work-ip, .bp-work-time { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bp-work-account b, .bp-work-title b, .bp-work-ip b, .bp-work-time b { overflow: hidden; color: var(--ink-1); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bp-work-account small, .bp-work-title small, .bp-work-ip small, .bp-work-time small { overflow: hidden; color: #949aa8; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.bp-work-title-head { min-width: 0; display: flex; align-items: center; gap: 7px; }
.bp-work-title-head > b { min-width: 0; flex: 0 1 auto; }
.bp-work-title-head > button { min-width: 46px; height: 23px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none; border: 1px solid #e0e2ff; border-radius: 6px; padding: 0 7px; background: #f7f7ff; color: var(--brand); font-size: 9px; font-weight: 750; }
.bp-work-title-head > button:hover { border-color: #c9ccff; background: #efefff; }
.bp-work-title-head > button i { font-size: 8px; font-style: normal; }
.bp-work-account em { flex: none; border-radius: 999px; padding: 2px 6px; background: #fff2d9; color: #a76b09; font-size: 8.5px; font-style: normal; font-weight: 800; }
.bp-work-ip b { font-variant-numeric: tabular-nums; }
.bp-work-progress { display: flex; flex-direction: column; gap: 4px; }
.bp-work-progress > div { height: 6px; overflow: hidden; border-radius: 999px; background: #f2e7df; }
.bp-work-progress > div i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#ffad42,#ff715f); transition: width .7s ease; }
.bp-work-progress > span { color: #9299a7; font-size: 9px; }
.bp-work-action { display: flex; align-items: flex-end; flex-direction: column; gap: 4px; }
.bp-status { width: fit-content; border-radius: 999px; padding: 2px 7px; background: #f0f2f5; color: #72798a; font-size: 9px; font-weight: 750; white-space: nowrap; }
.bp-status.ready { background: #e9f9f2; color: #07845c; }
.bp-status.generating { background: #fff1e8; color: #cf672c; }
.bp-status.needs-regenerate, .bp-status.failed { background: #fff0f0; color: #bd3f46; }
.bp-work-action button { color: var(--brand); font-size: 10px; font-weight: 700; }
.bp-work-action .bp-work-delete { color: #a0666a; }
.bp-work-action .bp-work-delete:hover { color: #d13642; }
.bp-delete-confirm-mask { position: fixed; z-index: 1450; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(25,28,38,.28); opacity: 0; transition: opacity .16s ease; }
.bp-delete-confirm-mask.show { opacity: 1; }
.bp-delete-confirm { width: min(420px,calc(100vw - 36px)); display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; box-sizing: border-box; border: 1px solid #e5e7ec; border-radius: 14px; padding: 18px; background: #fff; box-shadow: 0 20px 54px rgba(22,25,35,.2); transform: translateY(7px) scale(.99); transition: transform .16s ease; }
.bp-delete-confirm-mask.show .bp-delete-confirm { transform: translateY(0) scale(1); }
.bp-delete-confirm-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #fff1f0; color: #c95055; font-size: 17px; font-weight: 850; }
.bp-delete-confirm-copy { min-width: 0; }
.bp-delete-confirm-copy h3 { margin: 1px 0 6px; color: var(--ink-1); font-size: 15px; }
.bp-delete-confirm-copy p { margin: 0; color: #6f7685; font-size: 11.5px; line-height: 1.6; }
.bp-delete-confirm-copy small { display: block; margin-top: 7px; color: #9a8182; font-size: 10.5px; }
.bp-delete-confirm-copy small b { color: #b74d52; font-size: 11px; }
.bp-delete-confirm-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.bp-delete-confirm-actions button { min-width: 76px; height: 32px; border: 1px solid #e2e4e9; border-radius: 7px; background: #fff; color: #656c79; font-size: 11px; font-weight: 700; }
.bp-delete-confirm-actions button:hover { border-color: #cfd2d9; }
.bp-delete-confirm-actions button.danger { border-color: #d9575d; background: #d9575d; color: #fff; }
.bp-delete-confirm-actions button.danger:hover { border-color: #c9474d; background: #c9474d; }
.bp-work-empty { min-height: 250px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: #9aa0ac; }
.bp-work-empty b { color: #656c79; font-size: 13px; }
.bp-work-empty span { font-size: 10.5px; }
.bp-delete-undo { position: fixed; z-index: 1400; left: 50%; bottom: 28px; min-width: 390px; display: flex; align-items: center; justify-content: space-between; gap: 18px; box-sizing: border-box; border: 1px solid #e1e3e8; border-radius: 10px; padding: 10px 11px 10px 14px; background: rgba(35,38,47,.96); box-shadow: 0 12px 34px rgba(18,21,30,.22); color: #fff; opacity: 0; transform: translate(-50%,10px); transition: opacity .18s,transform .18s; }
.bp-delete-undo.show { opacity: 1; transform: translate(-50%,0); }
.bp-delete-undo > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bp-delete-undo b { max-width: 280px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bp-delete-undo small { color: #b9bdc7; font-size: 9px; }
.bp-delete-undo button { flex: none; border-radius: 7px; padding: 6px 9px; background: #fff; color: #4f55d9; font-size: 10px; font-weight: 800; }
.bp-delete-undo button i { margin-left: 3px; color: #9da1ad; font-style: normal; font-weight: 650; }
.bp-config-stage-head { margin-bottom: 13px; }
.bp-config-stage-head h2 { font-size: 17px; }
.bp-config-card { overflow: visible; }
.bp-config-head, .bp-config-row { display: grid; grid-template-columns: minmax(125px,.76fr) minmax(190px,1.15fr) minmax(145px,.86fr) minmax(150px,.9fr) minmax(165px,.95fr) minmax(150px,.86fr); align-items: center; gap: 10px; padding-right: 13px; padding-left: 13px; }
.bp-config-head { min-height: 36px; border-bottom: 1px solid #e9ebef; background: #fbfcfd; color: #969ca8; font-size: 10px; }
.bp-config-head b { font-weight: 650; }
.bp-config-list { min-height: 430px; }
.bp-config-row { min-height: 62px; border-bottom: 1px solid #f0f1f4; transition: background .15s; }
.bp-config-row:hover { position: relative; z-index: 4; background: #fafbfc; }
.bp-config-account { min-width: 0; display: flex; align-items: center; gap: 8px; }
.bp-config-account > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bp-config-account b, .bp-config-account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-config-account b { color: #444b59; font-size: 11px; }
.bp-config-account small { min-width: 0; display: flex; align-items: center; gap: 4px; color: #9aa0ac; font-size: 9px; }
.bp-config-account small span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-config-account small span:last-child { flex: none; white-space: nowrap; }
.bp-config-account small i { flex: none; color: #c0c4cc; font-style: normal; }
.bp-inline-field { min-width: 0; display: block; }
.bp-inline-field > span, .bp-config-script > span { display: none; }
.bp-inline-field input, .bp-inline-field select, .bp-batch-region select { width: 100%; height: 32px; min-width: 0; box-sizing: border-box; border: 1px solid transparent; border-radius: 6px; padding: 0 6px; background: transparent; color: #59606e; font: inherit; font-size: 10.5px; outline: none; transition: border-color .15s,background .15s; }
.bp-inline-field input:hover, .bp-inline-field select:hover { border-color: #e1e3e8; background: #fff; }
.bp-inline-field input:focus, .bp-inline-field select:focus { border-color: #c9ccd5; background: #fff; box-shadow: 0 0 0 2px rgba(59,64,77,.04); }
.bp-inline-title input { color: #3f4654; font-weight: 650; }
.bp-inline-tags input { color: #707786; }
.bp-config-script { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px; outline: none; }
.bp-config-script p { overflow: hidden; color: #7f8694; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.bp-config-script button { border: 1px solid #e2e4e9; border-radius: 6px; padding: 4px 6px; background: #fff; color: #686f7e; font-size: 9.5px; white-space: nowrap; }
.bp-config-script button:hover { border-color: #d3d6dd; color: #444b59; }
.bp-script-tooltip { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; width: min(390px,70vw); box-sizing: border-box; border: 1px solid #e1e3e8; border-radius: 9px; padding: 10px 11px; background: rgba(255,255,255,.98); box-shadow: 0 10px 30px rgba(25,30,45,.12); opacity: 0; pointer-events: none; transform: translateY(-3px); visibility: hidden; transition: opacity .15s,transform .15s,visibility .15s; }
.bp-config-script:hover .bp-script-tooltip, .bp-config-script:focus-within .bp-script-tooltip { opacity: 1; transform: translateY(0); visibility: visible; }
.bp-script-tooltip b { color: #505765; font-size: 10.5px; }
.bp-script-tooltip p { max-height: 150px; overflow: auto; margin-top: 6px; color: #69707e; font-size: 10px; line-height: 1.65; white-space: pre-wrap; }
.bp-script-tooltip small { display: block; margin-top: 6px; color: #a0a5af; font-size: 9px; }
.bp-config-location { min-width: 0; display: flex; align-items: flex-start; flex-direction: column; gap: 3px; }
.bp-config-location > span { display: none; }
.bp-config-location > div { width: 100%; min-width: 0; display: flex; align-items: center; gap: 5px; }
.bp-config-location b { min-width: 0; overflow: hidden; color: #59606e; font-size: 10.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.bp-config-location button { flex: none; border: 1px solid #e1e4e9; border-radius: 6px; padding: 3px 6px; background: #fff; color: #747b88; font-size: 9px; }
.bp-config-location button:hover { border-color: #cfd3da; color: #4f5664; }
.bp-config-location small { max-width: 100%; overflow: hidden; color: #a0a6b1; font-size: 9px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.bp-region-selects { min-width: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.bp-time-selects { min-width: 0; display: flex; align-items: center; gap: 4px; }
.bp-time-selects select { width: 70px; min-width: 70px; max-width: 70px; flex: 0 0 70px; padding-right: 20px; }
.bp-time-selects select.is-custom { width: 100px; min-width: 100px; max-width: 100px; flex-basis: 100px; }
.bp-time-selects input { min-width: 118px; flex: 1; }
.bp-script-only-editor { display: block; }
.bp-script-only-editor textarea.script { min-height: 310px; }
.bp-readonly-viewer { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 22px; align-items: center; min-height: 390px; }
.bp-copy-readonly { min-height: 360px; display: flex; flex-direction: column; gap: 16px; }
.bp-copy-readonly header { border-bottom: 1px solid #eceef2; padding-bottom: 13px; }
.bp-copy-readonly header > span { display: inline-flex; border-radius: 999px; padding: 4px 9px; background: #f0f1ff; color: var(--brand); font-size: 10px; font-weight: 800; }
.bp-copy-readonly h4 { margin: 9px 0 0; color: var(--ink-1); font-size: 18px; line-height: 1.45; }
.bp-copy-readonly header p { margin-top: 5px; color: #8b919d; font-size: 10.5px; }
.bp-copy-readonly article { max-height: 330px; overflow-y: auto; border: 1px solid #e8eaf0; border-radius: 11px; padding: 16px 17px; background: #fafbfc; color: #535a68; font-size: 12px; line-height: 1.9; white-space: pre-wrap; }
.bp-copy-readonly dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 0; }
.bp-copy-readonly dl > div { min-width: 0; border: 1px solid #eceef2; border-radius: 9px; padding: 9px 10px; background: #fff; }
.bp-copy-readonly dt { color: #979da8; font-size: 9.5px; }
.bp-copy-readonly dd { margin: 4px 0 0; overflow: hidden; color: #59606e; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.bp-viewer-video { position: relative; width: 180px; height: 320px; display: grid; overflow: hidden; place-items: center; border-radius: 14px; background: linear-gradient(155deg,#ffd873,#ff9f43); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25),0 12px 28px rgba(255,159,67,.18); }
.bp-viewer-video > span { position: absolute; top: 12px; left: 12px; border-radius: 6px; padding: 4px 7px; background: rgba(5,151,103,.92); font-size: 9px; font-weight: 800; }
.bp-viewer-video > i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: #d97a2d; font-size: 16px; font-style: normal; }
.bp-viewer-copy h4 { color: var(--ink-1); font-size: 18px; line-height: 1.4; }
.bp-viewer-copy > p { margin-top: 7px; color: #8b919d; font-size: 11px; }
.bp-viewer-copy > button { margin-top: 18px; border: 1px solid #e0e3e9; border-radius: 8px; padding: 8px 14px; background: #fff; color: #545b69; font-size: 11px; font-weight: 750; }
.bp-viewer-copy dl { margin-top: 22px; border-top: 1px solid #eceef2; }
.bp-viewer-copy dl > div { display: grid; grid-template-columns: 85px minmax(0,1fr); gap: 12px; border-bottom: 1px solid #f0f1f4; padding: 11px 0; }
.bp-viewer-copy dt { color: #979da8; font-size: 10px; }
.bp-viewer-copy dd { color: #59606e; font-size: 10.5px; }
.bp-progress-overview { width: min(720px,100%); min-height: 42px; display: flex; align-items: center; gap: 12px; box-sizing: border-box; margin-bottom: 10px; border: 1px solid #eee8e3; border-radius: 8px; padding: 7px 10px; background: #fffcfa; }
.bp-progress-copy { min-width: 360px; display: flex; align-items: baseline; gap: 7px; }
.bp-progress-copy b { color: #d97943; font-size: 14px; }
.bp-progress-copy span { color: var(--ink-2); font-size: 10px; font-weight: 750; }
.bp-progress-copy small { margin-left: auto; color: #989eaa; font-size: 9.5px; }
.bp-progress-track { width: 250px; height: 4px; flex: none; overflow: hidden; border-radius: 999px; background: #f1e8e2; }
.bp-progress-track i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#ffad42,#ff715f); transition: width .7s ease; }
.bp-review-summary { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-bottom: 12px; }
.bp-review-summary.bp-review-summary-four { grid-template-columns: repeat(4,1fr); }
.bp-review-summary.bp-review-summary-three { grid-template-columns: repeat(3,1fr); }
.bp-review-summary > div { display: flex; align-items: baseline; gap: 5px; border: 1px solid #e9ebf0; border-radius: 11px; padding: 13px 14px; background: #fff; }
.bp-review-summary span { margin-right: auto; color: #7f8696; font-size: 10.5px; }
.bp-review-summary b { color: var(--ink-1); font-size: 18px; }
.bp-review-summary small { color: #9299a8; font-size: 9.5px; }
.bp-review-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; border: 1px solid #dff0e8; border-radius: 11px; padding: 10px 13px; background: #f5fcf8; }
.bp-review-note > div { display: flex; align-items: center; gap: 10px; }
.bp-review-note b { color: #176949; font-size: 11.5px; }
.bp-review-note span, .bp-review-note p { color: #638273; font-size: 10px; }
.bp-footer { position: sticky; z-index: 8; bottom: 0; min-height: 68px; display: flex; align-items: center; gap: 12px; border-top: 1px solid #e7e9ef; padding: 10px 18px; background: rgba(255,255,255,.96); box-shadow: 0 -8px 22px rgba(24,28,44,.035); backdrop-filter: blur(12px); }
.bp-back { height: 38px; border: 1px solid #e1e4eb; border-radius: 8px; padding: 0 14px; background: #fff; color: #666d7c; font-size: 11.5px; font-weight: 700; }
.bp-footer-summary { min-width: 0; flex: 1; color: #858c9c; font-size: 11px; text-align: right; }
.bp-pause-task { height: 38px; border: 1px solid #e1e4eb; border-radius: 8px; padding: 0 13px; background: #fff; color: #666d7c; font-size: 11px; font-weight: 700; white-space: nowrap; }
.bp-pause-task:hover { border-color: #cfd3db; background: #fafbfc; color: #474e5c; }
.bp-pause-task[hidden] { display: none !important; }
.bp-background-publish { position: relative; display: flex; align-items: center; gap: 5px; }
.bp-background-publish[hidden] { display: none !important; }
.bp-background-publish > button { height: 38px; border: 1px solid #dfe2e8; border-radius: 8px; padding: 0 13px; background: #fff; color: #626978; font-size: 11px; font-weight: 700; white-space: nowrap; }
.bp-background-publish > button:hover { border-color: #cfd2da; background: #fafbfc; }
.bp-background-publish > button:disabled { cursor: default; color: #878d98; background: #f5f6f8; opacity: 1; }
.bp-background-help { width: 17px; height: 17px; display: grid; place-items: center; box-sizing: border-box; border: 1px solid #d7dae1; border-radius: 50%; color: #888e9a; font-size: 9.5px; font-weight: 800; outline: none; cursor: help; }
.bp-background-tip { position: absolute; z-index: 30; right: 0; bottom: calc(100% + 9px); width: 245px; box-sizing: border-box; border: 1px solid #e0e2e7; border-radius: 8px; padding: 8px 10px; background: rgba(255,255,255,.98); color: #666d7a; box-shadow: 0 8px 26px rgba(25,30,45,.12); font-size: 10px; line-height: 1.55; opacity: 0; pointer-events: none; transform: translateY(3px); visibility: hidden; transition: opacity .15s,transform .15s,visibility .15s; }
.bp-background-help:hover + .bp-background-tip, .bp-background-help:focus + .bp-background-tip { opacity: 1; transform: translateY(0); visibility: visible; }
.bp-primary-wrap { position: relative; display: flex; align-items: center; gap: 6px; }
.bp-primary-help { width: 18px; height: 18px; display: grid; place-items: center; box-sizing: border-box; border: 1px solid #d7dae6; border-radius: 50%; background: #fff; color: #858b99; font-size: 10px; font-weight: 800; outline: none; cursor: help; }
.bp-primary-help:hover, .bp-primary-help:focus-visible { border-color: #bfc2ee; color: var(--brand); }
.bp-primary-tip { position: absolute; z-index: 30; right: 0; bottom: calc(100% + 9px); width: 285px; box-sizing: border-box; border: 1px solid #e0e2e8; border-radius: 8px; padding: 9px 11px; background: rgba(255,255,255,.98); color: #646b79; box-shadow: 0 9px 26px rgba(25,30,45,.13); font-size: 10px; line-height: 1.6; opacity: 0; pointer-events: none; transform: translateY(3px); visibility: hidden; transition: opacity .15s,transform .15s,visibility .15s; }
.bp-primary-help:hover + .bp-primary-tip, .bp-primary-help:focus-visible + .bp-primary-tip { opacity: 1; transform: translateY(0); visibility: visible; }
.bp-primary-help[hidden], .bp-primary-tip[hidden] { display: none !important; }
.bp-primary { min-width: 180px; height: 42px; border-radius: 9px; padding: 0 18px; background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(91,91,246,.22); font-size: 12.5px; font-weight: 800; }
.bp-primary:disabled { cursor: default; box-shadow: none; opacity: .48; }
.bp-edit-modal { max-height: min(780px,calc(100vh - 30px)); display: flex; overflow: hidden; flex-direction: column; }
.bp-edit-modal .modal-foot[hidden] { display: none !important; }
.bp-edit-modal .modal-head p { margin-top: 3px; color: #8b92a1; font-size: 10.5px; }
.bp-edit-body { min-height: 0; flex: 1; overflow-y: auto; }
.bp-location-modal { width: min(520px,calc(100vw - 28px)); }
.bp-location-modal .modal-head p { margin-top: 3px; color: #8b92a1; font-size: 10.5px; }
.bp-location-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.bp-location-form label { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bp-location-form span, .bp-location-ip-note > span { color: #777e8e; font-size: 10px; }
.bp-location-form select { width: 100%; height: 36px; box-sizing: border-box; border: 1px solid #dfe3eb; border-radius: 7px; padding: 0 8px; background: #fff; color: #555c69; font: inherit; font-size: 11px; outline: none; }
.bp-location-ip-note { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 4px 10px; margin-top: 16px; border: 1px solid #eceef2; border-radius: 8px; padding: 10px 11px; background: #fafbfc; }
.bp-location-ip-note b { color: #545b68; font-size: 11px; font-variant-numeric: tabular-nums; }
.bp-location-ip-note small { grid-column: 2; color: #9aa0ab; font-size: 9.5px; }
.bp-video-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; border: 1px solid #e8eaff; border-radius: 11px; padding: 11px; background: #fafaff; }
.bp-video-frame { position: relative; width: 76px; height: 116px; display: grid; overflow: hidden; place-items: center; flex: none; border-radius: 9px; background: linear-gradient(155deg,#ffd873,#ff9f43); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.bp-video-frame span { position: absolute; top: 7px; left: 7px; border-radius: 5px; padding: 2px 5px; background: rgba(5,151,103,.92); font-size: 8px; font-weight: 800; }
.bp-video-frame i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--brand); font-size: 11px; font-style: normal; }
.bp-video-frame.playing { animation: bpPreviewPulse .75s ease-in-out infinite alternate; }
.bp-viewer-video.playing { animation: bpPreviewPulse .75s ease-in-out infinite alternate; }
@keyframes bpPreviewPulse { to { filter: saturate(1.25) brightness(1.06); } }
.bp-video-preview > div:last-child { min-width: 0; display: flex; align-items: flex-start; flex-direction: column; }
.bp-video-preview b { max-width: 100%; overflow: hidden; color: var(--ink-1); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.bp-video-preview p { margin-top: 4px; color: #858c9c; font-size: 10px; }
.bp-video-preview button { margin-top: 9px; border: 1px solid #dfe2ff; border-radius: 7px; padding: 5px 9px; background: #f4f5ff; color: var(--brand); font-size: 10px; font-weight: 750; }
.bp-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bp-edit-grid label.wide { grid-column: 1 / -1; }
.bp-edit-grid textarea { min-height: 72px; padding: 9px 10px; line-height: 1.55; resize: vertical; }
.bp-edit-grid textarea.script { min-height: 160px; }
.bp-mother-choice { align-items: center; flex-direction: row !important; border: 1px solid #eee2c8; border-radius: 8px; padding: 9px 10px; background: #fffaf0; color: #946510; cursor: pointer; }
.bp-mother-choice > span { color: inherit !important; font-weight: 700; }

@media (max-width: 1120px) {
  .bp-select-layout { grid-template-columns: 158px minmax(0,1fr); }
  .bp-work-row { grid-template-columns: minmax(150px,1fr) minmax(210px,1.3fr) minmax(150px,.85fr) minmax(120px,.7fr) 105px; gap: 8px; }
  .bp-batch-settings { grid-template-columns: 1fr; }
  .bp-batch-setting-address { grid-column: auto; }
  .bp-config-head, .bp-config-row { grid-template-columns: minmax(110px,.72fr) minmax(155px,1.05fr) minmax(120px,.78fr) minmax(125px,.82fr) minmax(145px,.88fr) minmax(130px,.8fr); gap: 7px; padding-right: 10px; padding-left: 10px; }
}
@media (max-width: 900px) {
  .bp-select-layout { grid-template-columns: 146px minmax(0,1fr); }
  .bp-selection-card { position: static; order: -1; padding: 16px; }
  .bp-selection-numbers { max-width: 420px; margin: 12px auto 8px; }
  .bp-work-row { grid-template-columns: minmax(145px,1fr) minmax(210px,1.3fr) minmax(120px,.7fr) 100px; }
  .bp-work-ip { display: none; }
  .bp-account-head { grid-template-columns: 18px 34px minmax(135px,1fr) minmax(110px,.7fr) 76px; }
  .bp-account-head > b:nth-of-type(3) { display: none; }
  .bp-account-row { grid-template-columns: 18px 34px minmax(135px,1fr) minmax(110px,.7fr) 76px; }
  .bp-account-ip { display: none; }
  .bp-review-summary { grid-template-columns: repeat(3,1fr); }
  .bp-review-summary.bp-review-summary-four { grid-template-columns: repeat(2,1fr); }
  .bp-review-summary.bp-review-summary-three { grid-template-columns: repeat(3,1fr); }
  .bp-config-head { display: none; }
  .bp-config-list { min-height: 0; padding: 8px; background: #f8f9fb; }
  .bp-config-row { grid-template-columns: minmax(140px,.8fr) minmax(180px,1.2fr) minmax(145px,.8fr); grid-template-areas: 'account title title' 'tags script location' 'time time time'; gap: 9px 12px; margin-bottom: 8px; border: 1px solid #e7e9ee; border-radius: 9px; padding: 11px; background: #fff; }
  .bp-config-row:last-child { margin-bottom: 0; }
  .bp-config-account { grid-area: account; }
  .bp-inline-title { grid-area: title; }
  .bp-inline-tags { grid-area: tags; }
  .bp-config-script { grid-area: script; }
  .bp-config-location { grid-area: location; }
  .bp-inline-time { grid-area: time; }
  .bp-inline-field, .bp-config-script, .bp-config-location { align-self: end; }
  .bp-inline-field > span, .bp-config-script > span, .bp-config-location > span { display: block; margin-bottom: 4px; color: #989eaa; font-size: 9px; }
  .bp-inline-field input, .bp-inline-field select { border-color: #e6e8ec; background: #fff; }
  .bp-config-script { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .bp-config-script > span { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .bp-main { padding-top: 58px; }
  .bp-page-head { margin-bottom: 10px; }
  .bp-page-head h1 { font-size: 18px; }
  .bp-page-head p { max-width: 270px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bp-shell { height: calc(100dvh - 220px); min-height: 430px; border-radius: 12px; }
  .bp-steps { justify-content: flex-start; min-height: 56px; gap: 8px; overflow-x: auto; padding: 8px 12px; }
  .bp-steps > em { width: 22px; flex: none; }
  .bp-steps > div i { width: 21px; height: 21px; }
  .bp-stage { padding: 16px 10px 80px; }
  .bp-select-layout { grid-template-columns: 1fr; gap: 9px; }
  .bp-platform-sidebar { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 7px; scrollbar-width: none; }
  .bp-platform-sidebar::-webkit-scrollbar { display: none; }
  .bp-platform-sidebar-title { display: none; }
  .bp-platform-option { width: 106px; min-height: 43px; flex: none; grid-template-columns: 28px minmax(0,1fr); gap: 6px; padding: 5px 7px; }
  .bp-platform-logo, .bp-platform-all-icon { width: 27px; height: 27px; border-radius: 7px; }
  .bp-platform-option b { font-size: 10.5px; }
  .bp-platform-option small { font-size: 8.5px; }
  .bp-logo-douyin img { left: -2px; top: -15px; width: 59px; height: 59px; }
  .bp-logo-shipinhao img { left: -8px; width: 44px; height: 39px; }
  .bp-logo-baijia img { left: -6px; top: -5px; width: 54px; height: 41px; }
  .bp-stage-head { gap: 10px; }
  .bp-stage-head h2 { font-size: 15px; }
  .bp-stage-head p { font-size: 10.5px; }
  .bp-add-account { padding: 6px 8px; font-size: 10px; }
  .bp-filter-row, .bp-list-toolbar { flex-wrap: wrap; padding: 9px; }
  .bp-check-all { width: 100%; }
  .bp-filter-row select, .bp-list-toolbar select { width: calc(50% - 5px); }
  .bp-filter-row input[type="search"], .bp-list-toolbar input { width: 100%; max-width: none; margin-left: 0; }
  .bp-account-list { min-height: 0; }
  .bp-account-head { display: none; }
  .bp-account-row { grid-template-columns: 16px 31px minmax(120px,1fr) 69px; grid-template-rows: auto auto; gap: 2px 7px; padding: 7px 9px; }
  .bp-account-row > input, .bp-account-row > .bp-account-avatar { grid-row: 1 / span 2; }
  .bp-account-name { grid-column: 3; grid-row: 1; }
  .bp-account-remark { grid-column: 3; grid-row: 2; color: #9299a8; font-size: 9.5px; }
  .bp-account-login { grid-column: 4; grid-row: 1 / span 2; }
  .bp-account-ip { display: none; }
  .bp-platform-dot { width: 26px; height: 26px; }
  .bp-account-avatar { width: 29px; height: 29px; }
  .bp-optional summary span { align-items: flex-start; flex-direction: column; gap: 1px; }
  .bp-batch-settings { grid-template-columns: 1fr; }
  .bp-batch-setting-control { align-items: stretch; flex-direction: column; }
  .bp-batch-setting-time .bp-batch-setting-control > select, .bp-batch-setting-time .bp-batch-setting-control > input, .bp-batch-setting-address .bp-batch-setting-control > select { width: 100%; max-width: none; min-width: 0; }
  .bp-batch-setting-address .bp-region-selects { width: 100%; min-width: 0; }
  .bp-apply-one { width: 100%; }
  .bp-work-list { min-height: 0; }
  .bp-work-row { grid-template-columns: minmax(125px,1fr) minmax(130px,1fr) 83px; gap: 6px; padding: 8px 9px; }
  .bp-work-title small, .bp-work-time { display: none; }
  .bp-work-progress { display: none; }
  .bp-work-action { align-items: flex-end; }
  .bp-config-row { grid-template-columns: 1fr; grid-template-areas: 'account' 'title' 'tags' 'script' 'location' 'time'; }
  .bp-config-account { padding-bottom: 2px; }
  .bp-progress-overview { width: 100%; align-items: stretch; flex-direction: column; gap: 6px; }
  .bp-progress-copy { min-width: 0; }
  .bp-progress-copy small { margin-left: auto; }
  .bp-progress-track { width: 100%; }
  .bp-review-summary { grid-template-columns: repeat(2,1fr); }
  .bp-review-note { align-items: flex-start; flex-direction: column; gap: 4px; }
  .bp-review-note > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .bp-footer { min-height: 64px; padding: 9px 10px; }
  .bp-back { width: 74px; padding: 0 6px; }
  .bp-footer-summary { display: none; }
  .bp-primary-wrap { min-width: 0; flex: 1; }
  .bp-primary { width: 100%; min-width: 0; flex: 1; }
  .bp-background-publish > button { max-width: 126px; overflow: hidden; padding: 0 8px; text-overflow: ellipsis; }
  .bp-pause-task { padding: 0 9px; }
  .bp-background-help { display: none; }
  .bp-readonly-viewer { grid-template-columns: 1fr; justify-items: center; }
  .bp-viewer-copy { width: 100%; }
  .bp-edit-grid { grid-template-columns: 1fr; }
  .bp-edit-grid label.wide { grid-column: 1; }
  .bp-location-form { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .bp-review-summary { grid-template-columns: 1fr 1fr; }
  .bp-review-summary > div { padding: 10px; }
  .bp-selection-card { text-align: left; }
  .bp-selection-card h3 { font-size: 21px; }
  .bp-selection-numbers { margin-left: 0; margin-right: 0; }
}

/* 批量导入账号 */
.imp-file { flex: 1; display: flex; align-items: center; gap: 10px; border: 1.5px dashed #d8dbe6; border-radius: 10px; padding: 14px; background: #fbfcfe; cursor: pointer; transition: border-color .15s; text-align: left; }
.imp-file:hover { border-color: var(--brand); }
.imp-file-ico { font-size: 20px; }
.imp-file-nm { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.imp-file-sub { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.imp-tpl { margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.imp-tpl a { color: var(--brand); text-decoration: none; font-weight: 600; }

/* 首页发送前生成向导 */
.create-flow-modal { max-width: 920px; }
.create-flow-modal .modal-foot { align-items: center; }
.cf-compute-estimate { min-width: 0; margin-right: auto; display: inline-flex; align-items: center; gap: 6px; color: #9aa0ae; font-size: 11.5px; white-space: nowrap; }
.cf-compute-estimate > span:first-child { color: #a6abb7; font-size: 12px; }
.cf-compute-estimate.active { color: #737a8a; }
.cf-compute-estimate b { color: var(--ink-1); font-size: 13px; }
.cf-steps { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.cf-steps span { color: var(--ink-3); font-size: 11.5px; font-weight: 600; }
.cf-steps span.on { color: var(--brand); }
.cf-steps i { width: 22px; height: 1px; background: #e4e7ef; }
.cf-body { min-height: 360px; padding: 20px 22px; }
.cf-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cf-type { min-height: 132px; border: 1px solid #e4e7ef; border-radius: 8px; background: #fff; color: var(--ink-2); cursor: pointer; padding: 14px 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; transition: border-color .15s, background .15s, box-shadow .15s; }
.cf-type:hover { border-color: #b9c0ff; }
.cf-type.on { border-color: var(--brand); background: #f7f7ff; box-shadow: inset 0 0 0 1px var(--brand); }
.cf-type-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #f5f6f8; color: #747b8b; font-style: normal; transition: color .15s, background .15s, transform .15s; }
.cf-type-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cf-type:hover .cf-type-icon { color: var(--brand); background: #f0f1ff; transform: translateY(-1px); }
.cf-type b { font-size: 16px; color: var(--ink-1); }
.cf-type span { font-size: 12px; color: var(--ink-3); }
.cf-type.on b, .cf-type.on span, .cf-type.on .cf-type-icon { color: var(--brand); }
.cf-type.on .cf-type-icon { background: #e9ebff; }
.cf-video-config { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef0f4; }
.cf-config-title { margin-bottom: 10px; font-size: 13px; font-weight: 800; color: var(--ink-1); }
.cf-config-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cf-config-grid label { display: flex; flex-direction: column; gap: 6px; }
.cf-config-grid label > span { color: var(--ink-3); font-size: 11px; }
.cf-config-grid select { height: 38px; border: 1px solid #dfe3eb; border-radius: 7px; padding: 0 9px; background: #fff; color: var(--ink-2); outline: none; }
.cf-config-grid select:focus { border-color: var(--brand); }
.cf-matrix-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--ink-3); font-size: 11.5px; }
.cf-matrix-toolbar b { margin-left: auto; color: var(--brand); white-space: nowrap; }
.cf-matrix-list { display: flex; flex-direction: column; gap: 10px; }
.cf-matrix { border: 1px solid #e8eaf0; border-radius: 8px; overflow: hidden; }
.cf-matrix-head { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 7px 11px; background: #fafbfc; border-bottom: 1px solid #eef0f4; }
.cf-platform { min-width: 46px; color: #fff; border-radius: 4px; padding: 2px 6px; text-align: center; font-size: 11px; font-weight: 800; }
.cf-matrix-head > b { color: var(--ink-1); font-size: 12px; }
.cf-matrix-head > span:not(.cf-platform) { color: var(--ink-3); font-size: 11.5px; }
.cf-select-all { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 11.5px; cursor: pointer; }
.cf-select-all input, .cf-account input { accent-color: var(--brand); }
.cf-link { border: none; background: none; color: var(--brand); padding: 3px 4px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.cf-link:hover, .cf-relogin:hover { text-decoration: underline; }
.cf-account-head, .cf-account { display: grid; grid-template-columns: 28px 1.2fr 1fr 90px 76px; align-items: center; gap: 10px; padding: 7px 11px; }
.cf-account-head { color: var(--ink-3); font-size: 11px; background: #fff; }
.cf-account { border-top: 1px solid #f2f3f6; min-height: 38px; color: var(--ink-2); font-size: 11px; }
.cf-account.bad { background: #fffafa; }
.cf-account b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.cf-account > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
.cf-account i { width: fit-content; border-radius: 999px; padding: 2px 7px; font-style: normal; font-size: 11px; }
.cf-account i.ok { background: #ecfdf5; color: #047857; }
.cf-account i.bad { background: #fef2f2; color: #b91c1c; }
.cf-account em { color: var(--ink-3); font-style: normal; font-size: 11px; }
.cf-relogin { border: none; background: none; color: #b91c1c; font-size: 11px; font-weight: 700; cursor: pointer; padding: 0; text-align: left; }
.cf-account-empty { padding: 16px; color: var(--ink-3); font-size: 11px; text-align: center; }
.cf-confirm-card { max-width: 560px; margin: 16px auto 0; text-align: center; }
.cf-confirm-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #ecfdf5; color: #047857; font-size: 22px; font-weight: 800; }
.cf-confirm-card h4 { font-size: 16px; color: var(--ink-1); }
.cf-confirm-card > p { margin-top: 12px; color: var(--ink-3); font-size: 11.5px; }
.cf-summary { margin-top: 16px; border: 1px solid #e8eaf0; border-radius: 8px; overflow: hidden; text-align: left; }
.cf-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; font-size: 12px; }
.cf-summary > div + div { border-top: 1px solid #f0f1f4; }
.cf-summary span { color: var(--ink-3); }
.cf-summary b { color: var(--ink-1); text-align: right; }
.pc-image-result { padding: 16px; }
.pc-image-placeholder { min-height: 160px; border: 1px dashed #d9ddea; border-radius: 8px; background: #fafbfc; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 12px; }
.pc-image-visual { position: relative; overflow: hidden; flex-direction: column; gap: 5px; border-style: solid; isolation: isolate; }
.pc-image-visual::before, .pc-image-visual::after { position: absolute; z-index: -1; content: ''; border-radius: 50%; filter: blur(1px); opacity: .58; }
.pc-image-visual::before { width: 155px; height: 155px; top: -70px; right: 8%; background: rgba(255,255,255,.72); }
.pc-image-visual::after { width: 210px; height: 90px; bottom: -54px; left: 7%; background: rgba(255,255,255,.5); transform: rotate(-9deg); }
.pc-image-visual.variant-0 { border-color: #d9dcff; background: linear-gradient(135deg,#edf0ff,#f7efff 52%,#fff3e9); color: #5954c8; }
.pc-image-visual.variant-1 { border-color: #d5e9e3; background: linear-gradient(135deg,#e8f7f2,#edf8ff 54%,#fff5df); color: #267869; }
.pc-image-visual.variant-2 { border-color: #f2ddd7; background: linear-gradient(135deg,#fff0eb,#fff6e4 50%,#f4edff); color: #a65548; }
.pc-image-visual.variant-3 { border-color: #dce4f3; background: linear-gradient(135deg,#eaf3ff,#f1eeff 52%,#eaf8f4); color: #456c9b; }
.pc-image-visual span { font-size: 17px; font-weight: 850; letter-spacing: .05em; }
.pc-image-visual small { color: currentColor; font-size: 10px; opacity: .7; }
.pc-image-result p { margin-top: 9px; color: var(--ink-3); font-size: 11px; text-align: center; }
@media (max-width: 720px) {
  .cf-compute-estimate { font-size: 10.5px; }
  .cf-compute-estimate b { font-size: 12px; }
  .cf-type-grid, .cf-config-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-matrix-head { flex-wrap: wrap; }
  .cf-select-all { margin-left: 0; }
  .cf-account-head { display: none; }
  .cf-account { grid-template-columns: 24px 1fr auto; gap: 6px 8px; }
  .cf-account > span { grid-column: 2; }
  .cf-account i, .cf-account em, .cf-relogin { grid-column: 3; grid-row: 1 / span 2; }
}

/* 一键生成弹窗 */
.gen-sel-tip { background: #f4f6ff; color: var(--ink-2); border-radius: 8px; padding: 8px 12px; font-size: 12px; margin-bottom: 12px; }
.gen-sel-tip b { color: var(--brand); }
.gen-ta { resize: none; height: auto; padding: 8px 12px; font-size: 12.5px; line-height: 1.6; }
.gen-plats { display: flex; flex-direction: column; gap: 8px; }
.gen-plat { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #eef0f4; border-radius: 10px; padding: 8px 12px; background: #fbfcfe; }
.gen-plat .pub-check { font-size: 12.5px; font-weight: 600; color: var(--ink-1); display: inline-flex; align-items: center; gap: 6px; }
.gen-acct { border: 1px solid #e4e8ff; background: #fff; border-radius: 8px; padding: 5px 8px; font-size: 12px; color: var(--ink-2); max-width: 170px; outline: none; }
.gen-run { display: flex; flex-direction: column; align-items: center; padding: 34px 0 30px; gap: 12px; }
.gen-spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #e9edff; border-top-color: var(--brand); animation: genSpin 0.9s linear infinite; }
@keyframes genSpin { to { transform: rotate(360deg); } }
.gen-run-t { font-size: 14px; font-weight: 800; color: var(--ink-1); }
.gen-run-s { font-size: 12px; color: var(--ink-3); max-width: 320px; text-align: center; }
.gen-done { width: 46px; height: 46px; border-radius: 50%; background: #ecfdf5; color: #047857; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.gen-done.bad { background: #fef2f2; color: #b91c1c; }

/* 资料行：图片真实缩略图 */
.kb-thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; display: inline-block; border: 1px solid #eef0f4; background: #f6f7fa; vertical-align: middle; }

/* 私信管理：私信自动回复 */
.pm-main { width: auto; max-width: none; box-sizing: border-box; }
.pm-head { align-items: center; }
.pm-subtitle { color: #737a8a; font-size: 12.5px; white-space: nowrap; }
.pm-refresh-group { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pm-refresh-group > span { color: #737a8a; font-size: 12px; white-space: nowrap; }
.pm-refresh { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; margin-left: auto; border: 1px solid #e1e4ec; border-radius: 9px; padding: 0 14px; background: #fff; color: var(--ink-2); cursor: pointer; font-size: 12.5px; font-weight: 700; }
.pm-refresh:hover { border-color: #c9cdff; color: var(--brand); }
.pm-refresh svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pm-refresh.loading svg { animation: mtStatusSpin .65s linear infinite; }
.pm-stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 18px 0 14px; }
.pm-stat-grid article { min-height: 88px; display: grid; grid-template-columns: 42px auto 1fr; align-items: center; gap: 12px; border: 1px solid #e8eaf0; border-radius: 12px; padding: 14px 16px; background: #fff; box-shadow: 0 8px 26px rgba(20,24,40,.035); }
.pm-stat-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 12px; font-weight: 900; }
.pm-stat-icon.purple { background: #efefff; color: var(--brand); }
.pm-stat-icon.green { background: #eaf9f1; color: #0b9158; }
.pm-stat-icon.orange { background: #fff5e8; color: #d17808; }
.pm-stat-grid article > div { display: flex; flex-direction: column; gap: 2px; }
.pm-stat-grid article b { color: var(--ink-1); font-size: 22px; line-height: 1; }
.pm-stat-grid article small { color: #4f5666; font-size: 12.5px; font-weight: 700; }
.pm-stat-grid article em { justify-self: end; color: #7b8291; font-size: 11.5px; font-style: normal; text-align: right; }
.pm-workspace { display: grid; grid-template-columns: minmax(0,7fr) minmax(280px,3fr); align-items: stretch; gap: 12px; }
.pm-account-card, .pm-config-card, .pm-log-card { border: 1px solid #e7e9ef; border-radius: 12px; background: #fff; box-shadow: 0 8px 28px rgba(20,24,40,.035); }
.pm-account-card { min-width: 0; overflow: hidden; }
.pm-config-card { min-height: 100%; padding-bottom: 17px; }
.pm-card-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #eceef3; padding: 14px 18px; }
.pm-card-head > div:first-child { min-width: 0; }
.pm-card-head h2 { margin: 0; color: var(--ink-1); font-size: 16px; }
.pm-card-head p { margin: 5px 0 0; color: #747b8b; font-size: 12px; }
.pm-bulk { display: flex; align-items: center; gap: 4px; }
.pm-bulk button, .pm-log-tabs button { border: 0; border-radius: 7px; padding: 7px 9px; background: transparent; color: #697080; cursor: pointer; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pm-bulk button:hover, .pm-log-tabs button:hover, .pm-log-tabs button.on { background: #f1f2ff; color: var(--brand); }
.pm-tools { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #eef0f4; padding: 10px 16px; background: #fbfcfd; }
.pm-search { width: 220px; min-height: 38px; display: flex; align-items: center; gap: 8px; flex: none; border: 1px solid #e2e5ec; border-radius: 8px; padding: 0 11px; background: #fff; }
.pm-search svg { width: 15px; height: 15px; flex: none; fill: none; stroke: #7f8797; stroke-width: 1.8; stroke-linecap: round; }
.pm-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink-1); font-size: 12.5px; }
.pm-platforms { min-width: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pm-platforms::-webkit-scrollbar { display: none; }
.pm-platforms button { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; flex: none; border: 0; border-radius: 7px; padding: 0 10px; background: transparent; color: #697080; cursor: pointer; font-size: 12px; white-space: nowrap; }
.pm-platforms button:hover, .pm-platforms button.on { background: #f0f1ff; color: var(--brand); font-weight: 750; }
.pm-platforms button b { min-width: 18px; border-radius: 999px; padding: 2px 5px; background: #eef0f4; color: inherit; font-size: 11.5px; }
.pm-account-list { min-height: 640px; }
.pm-account-row { min-height: 64px; display: grid; grid-template-columns: 86px minmax(150px,1fr) minmax(220px,auto); align-items: center; gap: 14px; border-bottom: 1px solid #f0f1f4; padding: 7px 18px; transition: background .15s; }
.pm-account-row:hover { background: #fbfcff; }
.pm-account-row.is-disabled { background: #fafafa; }
.pm-platform { display: inline-flex; align-items: center; gap: 7px; color: var(--plat); font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.pm-platform i, .pm-log-account i { width: 8px; height: 8px; flex: none; border-radius: 3px; background: var(--plat); }
.pm-account-name { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pm-account-name b { overflow: hidden; color: var(--ink-1); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.pm-account-name small { overflow: hidden; color: #747b8b; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.pm-account-row.is-disabled .pm-account-name small { color: #bf4b56; }
.pm-account-action { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pm-account-action select { height: 36px; min-width: 126px; border: 1px solid #e0e3ea; border-radius: 7px; padding: 0 28px 0 10px; background: #fff; color: var(--ink-2); outline: none; cursor: pointer; font-size: 12px; }
.pm-account-action select:focus { border-color: var(--brand); }
.pm-account-action > a { border: 1px solid #edc9cc; border-radius: 7px; padding: 8px 11px; color: #bd3f4a; font-size: 11.5px; font-weight: 700; text-decoration: none; }
.pm-switch { position: relative; width: 40px; height: 23px; flex: none; border: 0; border-radius: 999px; background: #d8dae1; cursor: pointer; transition: background .15s; }
.pm-switch i { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(20,24,40,.18); transition: transform .15s; }
.pm-switch.on { background: #19a764; }
.pm-switch.on i { transform: translateX(17px); }
.pm-pager { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #eceef3; padding: 0 14px; background: #fbfcfd; }
.pm-pager > span { color: #747b8b; font-size: 11.5px; }
.pm-pager > span b { color: var(--ink-2); }
.pm-pager > div { display: flex; align-items: center; gap: 4px; }
.pm-pager button { min-width: 34px; height: 34px; border: 1px solid #e0e3ea; border-radius: 7px; padding: 0 9px; background: #fff; color: var(--ink-2); cursor: pointer; font-size: 11.5px; }
.pm-pager button:hover, .pm-pager button.on { border-color: #bfc4ff; background: #f1f2ff; color: var(--brand); }
.pm-pager button:disabled { cursor: default; opacity: .42; }
.pm-config-tag { border-radius: 999px; padding: 5px 9px; background: #efefff; color: var(--brand); font-size: 11.5px; font-weight: 800; }
.pm-config-block { padding: 18px 18px 15px; }
.pm-config-block > label { display: block; margin-bottom: 9px; color: var(--ink-1); font-size: 13px; font-weight: 800; }
.pm-config-block textarea { width: 100%; box-sizing: border-box; border: 1px solid #e0e3ea; border-radius: 9px; padding: 12px 13px; background: #fbfcfd; color: var(--ink-1); font: inherit; font-size: 13px; line-height: 1.65; resize: vertical; outline: none; }
.pm-config-block textarea:focus { border-color: #aaaefe; box-shadow: 0 0 0 3px rgba(91,82,255,.08); background: #fff; }
.pm-config-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.pm-config-meta small { color: #747b8b; font-size: 11.5px; }
.pm-config-meta small b { font-weight: 500; }
.pm-config-meta button { min-height: 36px; border: 0; border-radius: 8px; padding: 0 14px; background: var(--brand); color: #fff; cursor: pointer; font-size: 12px; font-weight: 750; }
.pm-ai-info { display: flex; gap: 12px; margin: 0 18px; border: 1px solid #e5e6ff; border-radius: 10px; padding: 13px; background: #f7f7ff; }
.pm-ai-info > span { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 9px; background: linear-gradient(135deg,#665cff,#9a6cff); color: #fff; font-size: 11px; font-weight: 900; }
.pm-ai-info div { min-width: 0; }
.pm-ai-info b { color: var(--ink-1); font-size: 12.5px; }
.pm-ai-info p { margin: 5px 0 0; color: #747b8b; font-size: 11.5px; line-height: 1.55; }
.pm-safety-list { display: grid; gap: 8px; margin: 14px 16px 0; padding: 0; list-style: none; }
.pm-safety-list li { position: relative; padding-left: 18px; color: #747b8b; font-size: 11.5px; }
.pm-safety-list li::before { content: '✓'; position: absolute; left: 0; color: #0c9a5e; font-weight: 800; }
.pm-log-card { margin-top: 14px; overflow: hidden; }
.pm-log-card .pm-card-head { flex-wrap: wrap; }
.pm-log-tabs { display: flex; align-items: center; gap: 2px; }
.pm-log-head, .pm-log-row { display: grid; grid-template-columns: minmax(300px,2.1fr) minmax(130px,1fr) 104px 104px 60px; align-items: center; gap: 12px; padding: 0 16px; }
.pm-log-head { min-height: 35px; border-bottom: 1px solid #e8eaf0; background: #f8f9fb; color: var(--ink-3); font-size: 11px; font-weight: 700; }
.pm-log-row { min-height: 76px; border-bottom: 1px solid #f0f1f4; color: var(--ink-2); font-size: 11px; }
.pm-log-row:last-child { border-bottom: 0; }
.pm-log-dialog { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pm-log-dialog p { overflow: hidden; margin: 0; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.pm-log-dialog p b { display: inline-block; min-width: 31px; margin-right: 7px; border-radius: 5px; padding: 2px 4px; background: #f0f1f4; color: var(--ink-3); font-size: 11px; text-align: center; }
.pm-log-dialog p.reply { color: var(--ink-1); }
.pm-log-dialog p.reply b { background: #eeeefe; color: var(--brand); }
.pm-log-account { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-mode-tag, .pm-log-status { justify-self: start; border-radius: 999px; padding: 4px 7px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.pm-mode-tag.ai { background: #efefff; color: var(--brand); }
.pm-mode-tag.fixed { background: #eef6ff; color: #2c6cb0; }
.pm-log-row time { color: var(--ink-3); font-size: 11px; }
.pm-log-status.replied { background: #eaf9f1; color: #07804c; }
.pm-log-status.skipped { background: #f2f3f5; color: #777e8c; }
.pm-empty { min-height: 150px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: #747b8b; font-size: 12px; }
.pm-empty b { color: var(--ink-2); font-size: 14px; }

/* 极简帮助中心 */
.help-head { margin-bottom: 18px; }
.help-intro { margin-bottom: 14px; border: 1px solid #e7e9ef; border-radius: 14px; padding: 18px 20px; background: #fff; }
.help-intro h1 { margin: 0 0 6px; color: var(--ink-1); font-size: 20px; }
.help-intro p { margin: 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.7; }
.help-section { margin-top: 14px; border: 1px solid #e7e9ef; border-radius: 14px; padding: 18px 20px; background: #fff; }
.help-section-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 14px; }
.help-section-head h2 { margin: 0; color: var(--ink-1); font-size: 15px; }
.help-section-head span { color: var(--ink-3); font-size: 11px; }
.help-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.help-step { min-width: 0; border-radius: 11px; padding: 14px; background: #f7f8fb; }
.help-step > span { width: 24px; height: 24px; display: grid; place-items: center; margin-bottom: 9px; border-radius: 8px; background: #e9eaff; color: var(--brand); font-size: 11px; font-weight: 800; }
.help-step b { display: block; margin-bottom: 5px; color: var(--ink-1); font-size: 13px; }
.help-step p { margin: 0; color: var(--ink-3); font-size: 11.5px; line-height: 1.6; }
.help-guide-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.help-guide { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; border: 1px solid #eceef3; border-radius: 11px; padding: 13px 14px; }
.help-guide b { display: block; margin-bottom: 4px; color: var(--ink-1); font-size: 12.5px; }
.help-guide p { margin: 0; color: var(--ink-3); font-size: 11px; line-height: 1.55; }
.help-guide a { border-radius: 8px; padding: 7px 10px; background: #f1f2ff; color: var(--brand); font-size: 10.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.help-guide a:hover { background: #e8e9ff; }
.help-faqs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.help-faq { border-top: 1px solid #eef0f4; padding-top: 11px; }
.help-faq:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.help-faq b { display: block; margin-bottom: 5px; color: var(--ink-2); font-size: 12px; }
.help-faq p { margin: 0; color: var(--ink-3); font-size: 11px; line-height: 1.6; }

/* ============================================================
   全项目响应式 3.0：桌面 / 平板 / 手机完整可操作
   ============================================================ */
@media (max-width: 1024px) {
  .pub-main { padding: 72px 22px 32px; }
  .pub-head { gap: 12px 16px; }
  .modal-mask { padding: 16px; }
  .knowledge-page-head > div { flex: 1 1 100%; }
  .knowledge-page-head .kb-storage-card { margin-left: 0; }
}

@media (max-width: 720px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body.page-chat, body.page-pub { display: block; min-height: 100dvh; padding: 0; }

  /* 左侧导航在手机端统一变为底部导航 */
  .chat-rail {
    inset: auto 0 0; width: 100%; height: calc(62px + env(safe-area-inset-bottom));
    padding: 5px 7px env(safe-area-inset-bottom); background: rgba(255,255,255,.97);
    border-top: 1px solid #e9ebf0; box-shadow: 0 -6px 24px rgba(20,24,40,.07);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .rail-logo { display: none; }
  .rail-nav {
    position: static; width: 100%; height: 56px; transform: none; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fit,minmax(0,1fr)); align-items: center; gap: 2px;
  }
  .rail-item { width: auto; min-width: 0; height: 50px; box-sizing: border-box; padding: 5px 2px 6px; border-radius: 10px; }
  .rail-item .rail-icon { margin-bottom: 4px; }
  .rail-item .rail-icon svg { width: 18px; height: 18px; }
  .rail-item .rail-label { max-width: 100%; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .rail-item.on { box-shadow: none; background: #f3f4ff; }

  .chat-main {
    width: 100%; height: 100dvh; margin-left: 0; box-sizing: border-box;
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
  .pub-main {
    width: 100%; min-height: 100dvh; box-sizing: border-box; margin-left: 0;
    padding: 66px 12px calc(82px + env(safe-area-inset-bottom));
  }
  .page-corner { top: 10px; right: 12px; }
  .login-pill { min-height: 38px; border-radius: 11px; padding: 8px 15px; font-size: 12px; }
  .user-chip { min-height: 38px; padding-right: 10px; }
  .uc-avatar { width: 29px; height: 29px; }
  .uc-name { font-size: 11.5px; }

  .account-menu-mask {
    display: flex; align-items: flex-end; background: rgba(18,21,32,.28);
    opacity: 0; transition: opacity .18s ease;
  }
  .account-menu-mask[hidden] { display: none; }
  .account-menu-mask.show { opacity: 1; }
  .account-menu-panel {
    position: static; width: 100%; padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    border: 0; border-radius: 18px 18px 0 0; opacity: 1;
    transform: translateY(100%); transform-origin: bottom center; transition: transform .2s ease;
  }
  .account-menu-mask.show .account-menu-panel { transform: translateY(0); }
  .account-menu-mobile-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
  .account-menu-mobile-head b { color: var(--ink-1); font-size: 15px; }
  .account-menu-close { width: 36px; height: 36px; }
  .account-menu-profile { padding: 7px 5px 13px; }
  .account-menu-help { min-height: 46px; }
  .account-menu-logout { min-height: 48px; }
  .account-menu-confirm { padding: 12px 4px 5px; }
  .account-menu-cancel, .account-menu-confirm-logout { min-height: 46px; font-size: 12.5px; }
  .login-gate-mask { align-items: flex-end; padding: 0; }
  .login-gate-panel {
    width: 100%; border-radius: 18px 18px 0 0; padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .login-gate-mask.show .login-gate-panel { transform: translateY(0); }
  .login-gate-cancel, .login-gate-confirm { min-height: 46px; }

  /* 通用标题与按钮 */
  .pub-head { align-items: center; gap: 10px; }
  .page-heading-block { width: 100%; gap: 8px; }
  .page-home-link { height: 29px; padding-right: 8px; }
  .page-home-link-full { display: none; }
  .page-home-link-short { display: inline; }
  .pub-title { font-size: 18px; }
  .pub-stats { width: 100%; order: 2; gap: 8px 11px; font-size: 11px; }
  .pub-stat b { font-size: 13px; }
  .pub-create, .mx-import, .mx-ai-reply-btn, .dc-export { min-height: 38px; margin-left: 0; padding: 0 12px; font-size: 11.5px; }
  .pub-head > .pub-create:first-of-type { margin-left: auto; }
  .pub-toolbar { align-items: flex-start; padding: 13px 12px 10px; gap: 9px; }
  .pub-toolbar-t { font-size: 14px; }
  .pub-toolbar-hint { width: 100%; order: 3; font-size: 11.5px; }
  .dc-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .dc-tabs::-webkit-scrollbar { display: none; }
  .dc-tab { min-height: 34px; flex: none; padding: 5px 12px; font-size: 11.5px; }

  /* 通用弹窗：手机底部全宽，内容滚动、操作常驻 */
  .modal-mask { align-items: flex-end; padding: 0; }
  .modal {
    width: 100%; max-width: none; max-height: calc(100dvh - 14px); margin: 0;
    display: flex; overflow: hidden; flex-direction: column; border-radius: 18px 18px 0 0;
  }
  .modal-head { flex: none; padding: 14px 15px; }
  .modal-head h3 { font-size: 15px; }
  .modal-body { min-height: 0; padding: 16px 15px; overflow-y: auto; overscroll-behavior: contain; }
  .modal-foot { flex: none; padding: 12px 15px calc(12px + env(safe-area-inset-bottom)); background: #fff; }
  .modal-foot .pc-action { min-height: 40px; }
  .modal-x { width: 36px; height: 36px; }
  .toast { top: 12px; width: calc(100vw - 32px); box-sizing: border-box; text-align: center; }

  .schedule-account-grid, .schedule-time-row { grid-template-columns: 1fr; }
  .help-steps, .help-guide-list, .help-faqs { grid-template-columns: 1fr; }
  .help-faq:nth-child(2) { border-top: 1px solid #eef0f4; padding-top: 11px; }
  .schedule-platform-head { flex-wrap: wrap; padding: 8px 10px; }
  .schedule-platform-head > label { margin-left: 0; }
  .schedule-select-all { margin-left: auto; }

  .mx-publish-body { gap: 10px; }
  .mx-select-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .mx-ghead { align-items: stretch; flex-direction: column; gap: 0; padding: 0 12px 10px; }
  .mx-toggle { width: 100%; padding: 11px 2px 7px; }
  .mx-platform-select { align-self: flex-start; padding-left: 20px; }
  .mx-pool { padding: 10px 12px; }
  .mx-acct { min-width: 100%; grid-template-columns: 15px minmax(0,1fr) auto; }
  .mx-acct-ip { grid-column: 2 / 4; align-items: flex-start; border-left: 0; padding: 4px 0 0; text-align: left; }
  .mx-selection-summary { font-size: 11.5px; }
  .mx-publish-foot { align-items: stretch; flex-direction: column; gap: 9px; }
  .mx-publish-actions { width: 100%; }
  .mx-publish-actions .pc-action { flex: 1; }

  /* 通用表单 */
  .form-row, .form-row-3, .ai-sources { grid-template-columns: 1fr; }
  .pf-row { align-items: stretch; flex-direction: column; gap: 7px; margin-bottom: 16px; }
  .pf-label { width: auto; text-align: left; font-size: 12px; }
  .pf-label { align-items: flex-start; }
  .pf-ai-ready div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .pf-input { width: 100%; min-width: 0; box-sizing: border-box; }
  .pf-note, .mt-note-hint { margin-left: 0; }
  .pub-grid { grid-template-columns: 1fr; gap: 12px; padding-left: 0; }
  .param-panel { inset: auto 12px calc(72px + env(safe-area-inset-bottom)); min-width: 0; padding: 14px; }
  .pp-ratio-grid { grid-template-columns: repeat(3,1fr); }

  /* 首页 */
  body.state-empty .hm-top {
    position: relative; top: auto; left: auto; width: auto; max-width: none; flex: none;
    margin: 58px 12px 0; transform: none;
  }
  .hm-top .hm-head { padding: 8px 11px 0; }
  .hm-stat-row { padding: 8px 10px 12px; }
  .hm-kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .hm-kpi-card { min-height: 82px; padding: 10px; }
  .hm-kpi-card > b { font-size: 19px; }
  .hm-hot-grid { grid-template-columns: 1fr 1fr; }
  .hm-hot-grid.hm-hot-single { display: block; }
  .hm-rot { padding: 6px 9px 7px; }
  .hm-rot-title { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-rot-item, .hm-topic-item { font-size: 11px; }
  .hm-rot-item .vv, .hm-topic-item .plays { display: none; }
  .hm-rot-list, .hm-topic-list { grid-template-columns: 1fr; gap: 5px; }
  .hm-topic-item { grid-template-columns: 34px minmax(0,1fr); min-height: 28px; }
  .hm-guest-top-empty { min-height: 58px; }
  .chat-container { padding: 10px 12px 8px; }
  body.state-empty .chat-container { margin-top: 0; }
  body.state-empty .chat-empty { padding: 20px 8px 7px; }
  .chat-hello { font-size: 23px; margin-bottom: 7px; text-align: center; }
  .chat-hello-sub { max-width: 330px; font-size: 12px; line-height: 1.55; text-align: center; }
  .chat-stream { gap: 13px; }
  .bubble { max-width: 88%; }
  .bubble-text { padding: 10px 13px; font-size: 13px; }
  .bubble-quote-action { opacity: 1; visibility: visible; }
  .history-more { display: none; }
  .history-video-actions {
    width: 100%; margin-left: 0; flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid #eef0f4; padding-top: 7px;
    background: transparent; box-shadow: none;
  }
  .creation-history-card:hover .history-video-actions { opacity: 1; visibility: visible; pointer-events: auto; }
  .creation-history-card.history-actions-open .history-video-actions,
  .creation-history-card:focus-within .history-video-actions { opacity: 1; visibility: visible; pointer-events: auto; }
  .creation-history-card:hover .creation-history-foot time { opacity: 1; }
  .creation-history-card.history-actions-open .creation-history-foot time,
  .creation-history-card:focus-within .creation-history-foot time { opacity: 1; }
  .chat-composer-wrap { padding: 0 12px 10px; }
  body.page-chat:not(.state-empty) .creation-workspace-shell { margin-bottom: 18px; }
  body.page-chat:not(.state-empty) .chat-composer-wrap { padding: 0; }
  body.state-empty .chat-composer-wrap { margin-bottom: auto; padding-top: 6px; }
  .chat-composer { border-radius: 15px; }
  body.state-empty .chat-textarea { min-height: 104px; }
  .chat-textarea { padding: 12px 13px 7px; font-size: 13.5px; max-height: 138px; }
  .chat-toolbar { padding: 7px 9px 9px; }
  .tb-plus, .tb-send { width: 38px; height: 38px; }
  .product-picker { inset: auto 10px calc(70px + env(safe-area-inset-bottom)); max-height: min(72dvh,620px); }
  .composer-product-chips { padding-left: 10px; padding-right: 10px; overflow-x: auto; }
  .composer-product-chip { flex: none; }
  .progress-card:not(.progress-card-text) { max-width: 100%; }
  .pc-media { height: min(300px,52dvh); }
  .progress-card .pc-foot { flex-wrap: wrap; }
  .progress-card .pc-foot .pc-compute-cost { width: 100%; margin: 0 0 2px; }
  .progress-card .pc-foot .pc-action { min-height: 38px; flex: 1 1 auto; }
  .progress-card .pc-foot .pc-action.primary { flex-basis: 100%; }
  .create-flow-modal { height: calc(100dvh - 14px); }
  .cf-body { min-height: 0; padding: 15px; overflow-y: auto; }
  .cf-type { min-height: 92px; padding: 12px 8px; }
  .cf-type-icon { width: 28px; height: 28px; }
  .cf-type-icon svg { width: 17px; height: 17px; }
  .cf-type b { font-size: 15px; }
  .cf-steps { max-width: 240px; overflow: hidden; }

  /* 登录 */
  .ac-wrap { width: 100%; max-width: 440px; margin: 10px auto 0; }
  .ac-card { padding: 20px 15px; border-radius: 14px; }
  .ac-qr-box { width: min(190px,62vw); height: min(190px,62vw); margin-top: 16px; }

  /* 知识库 */
  .knowledge-page-head { align-items: stretch; }
  .knowledge-page-head > div { gap: 7px; }
  .knowledge-page-head .kb-storage-card { width: 100%; }
  .knowledge-layout { gap: 12px; }
  .company-kb-panel, .product-kb-panel { border-radius: 13px; }
  .knowledge-panel-head { align-items: center; padding: 15px 14px 12px; }
  .company-kb-panel .knowledge-panel-head { padding: 15px 14px 12px; }
  .knowledge-panel-head h2 { font-size: 16px; }
  .company-kb-panel .knowledge-panel-head h2 { font-size: 17px; }
  .knowledge-panel-head p { font-size: 11.5px; }
  .company-kb-panel .knowledge-upload { min-height: 32px; padding: 0 10px; }
  .product-kb-panel { padding: 14px; }
  .company-kb-list { display: flex; gap: 0; margin: 0 10px 12px; padding: 0; }
  .company-kb-item { grid-template-columns: 36px minmax(0,1fr) auto; padding: 11px 10px; }
  .company-kb-icon { width: 34px; height: 34px; }
  .pd-bar-wrap { margin-top: 13px; }
  .pd-bar { padding: 2px 0; }
  .pd-arrow { display: none; }
  .product-kb-panel .pd-grid, .pd-grid { grid-template-columns: 1fr; gap: 10px; }
  .pd-card { padding: 14px; }
  .pd-add-card { min-height: 105px; }
  .pd-detail-head { align-items: flex-start; gap: 9px; margin-top: 4px; }
  .pd-d-emoji { width: 42px; height: 42px; }
  .pd-d-actions { width: 100%; margin-left: 0; }
  .pd-d-actions .al-upload { width: 100%; min-height: 40px; }
  .kb-list { border-radius: 12px; }
  .kb-row { position: relative; grid-template-columns: 44px minmax(0,1fr) auto; gap: 7px 9px; padding: 12px; }
  .kb-row > span:nth-child(1) { grid-column: 1; grid-row: 1 / span 3; }
  .kb-row > span:nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
  .kb-row > span:nth-child(3) { grid-column: 2; grid-row: 2; font-size: 11px; }
  .kb-row > span:nth-child(4) { grid-column: 3; grid-row: 2; font-size: 11px; text-align: right; }
  .kb-row > span:nth-child(5) { grid-column: 2; grid-row: 3; font-size: 11px; }
  .kb-row > span:nth-child(6) { grid-column: 3; grid-row: 3; justify-content: flex-end; }
  .kb-row .pub-op { padding: 5px 8px; }
  .up-grid { grid-template-columns: repeat(2,1fr); }
  .up-item { min-height: 78px; }
  .up-copy-row { flex-direction: column; }
  .kb-capacity-grid { grid-template-columns: 1fr; }

  /* 发布中心 */
  .am-grid, .am-grid-mini { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .am-grid-mini { padding: 0 10px 10px; }
  .pub-list { margin-top: 14px; border-radius: 12px; overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .pub-filter-tabs { min-height: 42px; justify-content: flex-start; padding: 6px 10px; overflow-x: auto; border-radius: 10px; }
  .pub-pager { align-items: flex-start; flex-direction: column; margin-top: 8px; border: 1px solid #e9ecf2; border-radius: 10px; padding: 10px 12px; background: #fff; }
  .pub-page-actions { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .pub-page-btn { flex: none; }
  .pub-growth-bar { justify-content: flex-start; padding: 0 0 10px; overflow-x: auto; }
  .pub-row-item.v-row {
    position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px 8px;
    margin-bottom: 9px; padding: 12px; border: 1px solid #e9ecf2; border-radius: 12px; background: #fff;
  }
  .pub-row-item.v-row > span:first-child { position: absolute; top: 7px; left: 7px; z-index: 2; }
  .pub-row-item.v-row .v-video { grid-column: 1 / -1; }
  .v-video .pub-thumb { width: 92px; height: 58px; flex: none; }
  .v-meta .pub-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .pub-row-item.v-row .v-acct { grid-column: 1 / 4; }
  .pub-row-item.v-row > span:nth-child(4) { grid-column: 4; justify-self: end; }
  .pub-row-item.v-row > span:nth-child(n+5):nth-child(-n+8) { min-width: 0; text-align: left; }
  .pub-row-item.v-row > span:nth-child(5)::before { content: '播放'; }
  .pub-row-item.v-row > span:nth-child(6)::before { content: '点赞'; }
  .pub-row-item.v-row > span:nth-child(7)::before { content: '私信/AI回复'; }
  .pub-row-item.v-row > span:nth-child(8)::before { content: '涨粉'; }
  .pub-row-item.v-row > span:nth-child(n+5):nth-child(-n+8)::before { display: block; margin-bottom: 3px; color: var(--ink-3); font-size: 11px; }
  .pub-row-item.v-row .pub-ops { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; padding-top: 2px; }
  .pub-row-item.v-row .pub-op { min-height: 36px; flex: 1 1 auto; }
  .v-num { font-size: 11.5px; }
  .v-comments small { white-space: nowrap; }
  .pub-ai-reply-summary { gap: 6px; }

  /* 账号管理 */
  .mt-toolbar { align-items: center; padding-left: 0; padding-right: 0; }
  .pub-head #btnAddAccount { min-width: 132px; flex: 1 1 132px; }
  .pub-head .mx-ai-reply-btn { flex: 1 1 150px; }
  .mx-add-account-modal { width: 100%; max-width: none; }
  .mx-add-account-modal .modal-head { padding-bottom: 12px; }
  .mx-add-tabs { flex: none; gap: 5px; padding: 9px 10px; }
  .mx-add-tab { min-height: 54px; padding: 7px 8px; }
  .mx-add-tab span { font-size: 11.5px; }
  .mx-add-tab small { font-size: 11px; }
  .mx-add-tab[data-add-account-tab="ai"] { padding-left: 36px; }
  .mx-add-tab[data-add-account-tab="ai"]::before { left: 7px; width: 23px; height: 23px; }
  .mx-add-account-body { min-height: 0; }
  .mx-ai-account-drop { min-height: 180px; padding: 18px 12px; }
  .mx-ai-result-row { grid-template-columns: 76px minmax(86px,1fr) minmax(82px,1fr) 30px; gap: 6px; padding: 0 8px; font-size: 11px; }
  .mx-ai-result-row > span { gap: 4px; }
  .mx-ai-result-row > span i { width: 20px; height: 20px; }
  .mx-ai-result-row b { font-size: 11.5px; }
  .mx-ai-result-row em { font-size: 11px; }
  .mx-ai-result-head { align-items: flex-start; }
  .mx-ai-result-foot { align-items: stretch; flex-direction: column; }
  .mx-ai-result-foot .pc-action { width: 100%; min-height: 42px; }
  .mx-add-panel-foot .pc-action { min-height: 40px; }
  .mt-row { padding: 12px 10px; }
  .mt-name-line { flex-wrap: wrap; }
  .mt-row .pub-ops { justify-content: flex-end; flex-wrap: wrap; }
  .mt-row .pub-op { min-height: 34px; }
  .mt-pager { margin-top: 8px; }
  .mx-ai-reply-drawer { width: 100%; height: 100dvh; }
  .mx-ai-reply-head { padding: 16px 15px 13px; }
  .mx-ai-reply-body { padding: 13px 12px 18px; }
  .mx-ai-reply-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .mx-ai-account { grid-template-columns: 54px minmax(0,1fr) auto; gap: 7px; }
  .mx-ai-tone-options { grid-template-columns: 1fr; }

  /* 私信管理 */
  .pm-head { align-items: center; }
  .pm-subtitle { width: 100%; padding-left: 37px; }
  .pm-refresh-group { width: 100%; justify-content: flex-end; margin-left: 0; }
  .pm-refresh { margin-left: 0; }
  .pm-stat-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 13px; }
  .pm-stat-grid article { min-height: 72px; grid-template-columns: 38px auto 1fr; padding: 11px 12px; }
  .pm-stat-icon { width: 36px; height: 36px; }
  .pm-stat-grid article b { font-size: 19px; }
  .pm-workspace { grid-template-columns: 1fr; }
  .pm-config-card { position: static; grid-row: 2; }
  .pm-card-head { min-height: 61px; padding: 11px 12px; }
  .pm-tools { align-items: stretch; flex-direction: column; padding: 10px 12px; }
  .pm-search { width: 100%; box-sizing: border-box; }
  .pm-account-list { min-height: 0; max-height: none; }
  .pm-account-row { grid-template-columns: 70px minmax(0,1fr) auto; gap: 8px; padding: 9px 12px; }
  .pm-account-action select { min-width: 102px; }
  .pm-pager { align-items: flex-start; flex-direction: column; padding-top: 9px; padding-bottom: 9px; }
  .pm-pager > div { width: 100%; overflow-x: auto; }
  .pm-log-card .pm-card-head { align-items: flex-start; flex-direction: column; }
  .pm-log-tabs { width: 100%; overflow-x: auto; }
  .pm-log-head { display: none; }
  .pm-log-row { min-height: 0; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; padding: 12px; }
  .pm-log-dialog { grid-column: 1 / -1; }
  .pm-log-account { grid-column: 1; }
  .pm-mode-tag { grid-column: 2; grid-row: 2; }
  .pm-log-row time { grid-column: 1; grid-row: 3; }
  .pm-log-status { grid-column: 2; grid-row: 3; }

  /* 热点 */
  .hot-head { align-items: flex-start; }
  .hot-refresh-time { width: 100%; margin-left: 0; }
  .hot-refresh { margin-left: auto; }
  .hot-product-bar { align-items: stretch; flex-direction: column; }
  .hot-product-bar select { width: 100%; min-width: 0; }
  .hot-source-tabs, .hot-type-tabs { width: 100%; }
  .hot-side-col { display: flex; flex-direction: column; }
  .hot-item { flex-wrap: wrap; gap: 9px; padding: 10px; }
  .hot-thumb { width: 88px; height: 68px; }
  .hot-item-body { flex: 1; min-width: calc(100% - 100px); }
  .hot-item-body p { display: none; }
  .hot-meta { gap: 6px; flex-wrap: wrap; }
  .hot-create { width: 100%; min-height: 42px; margin: 2px 0 0; }
  .hot-parse-modal { height: calc(100dvh - 14px); max-height: none; }
  .hot-parse-body { min-height: 0; padding: 15px; overflow-y: auto; }
}

@media (max-width: 430px) {
  .hm-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hm-kpi-card { min-height: 78px; }
  .hm-kpi-card > b { font-size: 18px; }
  .hm-update-date { display: none; }
}

@media (max-width: 420px) {
  .pub-main { padding-left: 10px; padding-right: 10px; }
  .page-corner { right: 10px; }
  .pub-head { gap: 8px; }
  .pub-stats { gap: 6px 9px; }
  .hm-update-date { display: none; }
  .chat-hello { font-size: 21px; }
  .chat-hello-sub { font-size: 11.5px; }
  .modal-head, .modal-body, .modal-foot { padding-left: 12px; padding-right: 12px; }
  .create-flow-modal .modal-foot { flex-wrap: wrap; }
  .cf-compute-estimate { width: 100%; margin: 0 0 2px; }
  .create-flow-modal .modal-foot .pc-action:first-of-type { margin-left: auto; }
  .cf-type-grid, .cf-config-grid { gap: 8px; }
  .cf-type { min-height: 82px; }
  .am-grid, .am-grid-mini { gap: 7px; }
  .pub-row-item.v-row { padding: 10px; }
  .v-video .pub-thumb { width: 82px; height: 54px; }
  .mt-row { grid-template-columns: 24px minmax(0,1fr) auto; }
  .mt-row .pub-status { padding: 4px 7px; font-size: 11px; }
  .mx-add-tab { padding-left: 6px; padding-right: 6px; }
  .mx-add-tab[data-add-account-tab="ai"] { padding-left: 6px; }
  .mx-add-tab[data-add-account-tab="ai"]::before { display: none; }
  .pm-stat-grid article em { font-size: 11px; }
  .pm-bulk button { padding-left: 5px; padding-right: 5px; }
  .pm-account-row { grid-template-columns: 60px minmax(0,1fr); }
  .pm-account-action { grid-column: 1 / -1; justify-content: flex-start; padding: 3px 0 2px 60px; }
  .pm-account-action select { flex: 1; }
}

/* 账号卡片：检测时间与操作区始终分行，避免异常账号重新登录重叠 */
@media (max-width: 900px) {
  .mt-row .mt-time { grid-column: 2 / 4; grid-row: 6; }
  .mt-row .pub-ops { grid-column: 2 / 4; grid-row: 7; justify-content: flex-start; flex-wrap: wrap; }
  .mt-row .pub-op { flex: 0 1 auto; }
}

@media (max-width: 620px) {
  .mx-ai-account { grid-template-columns: 58px minmax(0,1fr); }
  .mx-ai-account-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .mx-ai-mode-select { flex: 1; }
}

/* ============================================================
   全站桌面自适应 4.0
   - 以 CSS 视口为准，兼容系统显示缩放与浏览器缩放
   - 不缩放整页，避免字体发虚和 fixed / sticky 定位失真
   ============================================================ */
:root {
  --zy-rail-width: 64px;
  --zy-page-gutter: clamp(18px, 2.5vw, 40px);
  --zy-content-max: 1720px;
}

@media (min-width: 721px) {
  .pub-main {
    box-sizing: border-box;
    padding-right: var(--zy-page-gutter);
    padding-left: var(--zy-page-gutter);
  }
  .pub-main > * {
    width: min(100%, var(--zy-content-max));
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
  }
  .page-corner { right: var(--zy-page-gutter); }
}

/* 首页空状态：三栏进入同一 Grid 计算，彻底消除左右卡片覆盖中央内容 */
@media (min-width: 1181px) {
  body.state-empty .chat-main {
    display: grid;
    grid-template-columns:
      clamp(210px, 15vw, 300px)
      clamp(540px, 46vw, 920px)
      clamp(210px, 15vw, 300px);
    grid-template-rows: auto minmax(112px, 1fr) auto;
    justify-content: center;
    column-gap: clamp(20px, 2.8vw, 56px);
    box-sizing: border-box;
    min-height: 100vh;
    height: 100vh;
    padding: clamp(22px, 4vh, 48px) clamp(16px, 1.6vw, 32px) clamp(38px, 8vh, 110px);
    overflow-y: auto;
  }
  body.state-empty .hm-top {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  body.state-empty .hm-left,
  body.state-empty .hm-right {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    align-self: center;
    grid-row: 1 / 4;
    width: 100%;
  }
  body.state-empty .hm-left { grid-column: 1; }
  body.state-empty .hm-right { grid-column: 3; }
  body.state-empty .hm-left .hm-card,
  body.state-empty .hm-right .hm-card {
    height: min(568px, calc(100vh - 150px));
    min-height: min(500px, calc(100vh - 150px));
  }
  body.state-empty .chat-container {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: clamp(18px, 4vh, 46px) 0 clamp(14px, 2vh, 22px);
    justify-content: flex-end;
    overflow: visible;
  }
  body.state-empty .chat-empty {
    flex: none;
    width: 100%;
    padding: 0;
  }
  body.state-empty .chat-composer-wrap {
    grid-column: 2;
    grid-row: 3;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  body.state-empty .chat-composer { max-width: none; }
}

/* 中等宽度桌面：收紧全站留白，但不缩小字体 */
@media (min-width: 721px) and (max-width: 1439px) {
  :root { --zy-page-gutter: clamp(18px, 2vw, 28px); }
  .pub-main { padding-top: 76px; padding-bottom: 30px; }
  .pub-list, .mt-table, .pm-account-card, .pm-config-card, .pm-log-card,
  .company-kb-panel, .product-kb-panel, .hot-list-card, .hot-side-card {
    border-radius: 12px;
  }
}

/* 发布中心：在窄桌面提前切换为清晰卡片，避免操作区挤压数据 */
@media (min-width: 721px) and (max-width: 1240px) {
  .pub-toolbar { flex-wrap: wrap; }
  .pub-toolbar #filterTabs { width: 100%; order: 3; margin-left: 0; overflow-x: auto; }
  .pub-toolbar #sortTabs { margin-left: auto; }
  .pub-type-filter-wrap { width: 100%; order: 4; overflow-x: auto; border-left: 0; padding-left: 0; }
  .pub-list-head.v-head { display: none; }
  .pub-row-item.v-row { grid-template-columns: minmax(0,1fr) auto; grid-auto-rows: auto; row-gap: 10px; }
  .pub-row-item.v-row:not(.is-draft-row) .v-video { grid-column: 1 / -1; }
  .pub-row-item.v-row:not(.is-draft-row) .pub-ops { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .v-meta .pub-name { max-width: none; }
  .pub-row-item.v-row.is-draft-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 14px; }
  .pub-row-item.v-row.is-draft-row .v-video { grid-column: 1 / -1; }
  .pub-row-item.v-row.is-draft-row .draft-field small { display: block; }
  .pub-row-item.v-row.is-draft-row .draft-account { grid-column: 1; }
  .pub-row-item.v-row.is-draft-row > span:nth-child(5) { grid-column: 2; grid-row: 3; justify-self: end; }
  .pub-row-item.v-row.is-draft-row .pub-ops { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .pub-account-tip::after {
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 40px));
    transform: translate(0,-50%) translateY(-3px);
  }
  .pub-account-tip:hover::after,
  .pub-account-tip:focus-visible::after { transform: translate(0,-50%); }
}

/* 账号管理：表格在 1120px 以下转为账户卡片 */
@media (min-width: 721px) and (max-width: 1120px) {
  .mt-toolbar { flex-wrap: wrap; }
  .mt-toolbar .pub-toolbar-hint { display: none; }
  .mt-mobile-platform-filter { display: block; margin-left: auto; }
  .mt-mobile-fans-sort { display: inline-flex; border-color: #dfe2eb; background: #fff; }
  .mt-mobile-platform-filter .mt-platform-trigger { border-color: #dfe2eb; background: #fff; }
  .mt-mobile-platform-filter .mt-platform-menu { right: 0; left: auto; }
  .mt-table { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .mt-table-head { display: none; }
  .mt-list { gap: 8px; }
  .mt-row {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) auto;
    gap: 9px 10px;
    min-height: 0;
    padding: 13px 14px;
    border: 1px solid #e9ecf2 !important;
    border-radius: 9px;
    background: #fff;
  }
  .mt-seq { grid-column: 1; grid-row: 1; align-self: center; }
  .mt-info { grid-column: 2; grid-row: 1; }
  .mt-ip { grid-column: 2 / 4; grid-row: 2; }
  .mt-ip small { white-space: normal; }
  .mt-douyin-id { grid-column: 2 / 4; grid-row: 3; }
  .mt-douyin-id::before { content: "账号 ID "; color: var(--ink-3); }
  .mt-remark { grid-column: 2 / 4; grid-row: 4; }
  .mt-fans { grid-column: 2; grid-row: 5; align-items: flex-start; text-align: left; }
  .mt-likes { grid-column: 3; grid-row: 5; text-align: right; }
  .mt-fans::before { content: "粉丝 "; color: var(--ink-3); font-weight: 400; }
  .mt-likes::before { content: "获赞 "; color: var(--ink-3); font-weight: 400; }
  .mt-time { grid-column: 2 / 4; grid-row: 6; }
  .mt-time b { display: none; }
  .mt-row .pub-ops { grid-column: 2 / 4; grid-row: 7; justify-content: flex-start; flex-wrap: wrap; padding-top: 2px; }
  .mt-pager { border: 1px solid #e9ecf2; border-radius: 9px; padding: 9px 12px; background: #fff; }
}

/* 知识库与私信管理：窄桌面优先保证每个板块有完整可用宽度 */
@media (min-width: 721px) and (max-width: 1080px) {
  .knowledge-page-head .kb-storage-card { width: 100%; margin-left: 0; }
  .knowledge-layout { grid-template-columns: 1fr; }
  .company-kb-panel, .product-kb-panel { height: auto; }
  .company-kb-list { display: flex; }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .pm-workspace { grid-template-columns: 1fr; }
  .pm-config-card { position: static; grid-row: 2; }
  .pm-account-list { min-height: clamp(420px, 56vh, 640px); }
}

@media (min-width: 721px) and (max-width: 900px) {
  .pm-log-card { overflow-x: auto; }
  .pm-log-head, .pm-log-row { min-width: 760px; }
}

/* 批量发布：补齐旧断点空档，避免账户、配置和进度列被卡片裁切 */
@media (min-width: 721px) and (max-width: 1024px) {
  .bp-account-head { grid-template-columns: 18px 34px minmax(135px,1fr) minmax(110px,.7fr) 76px; }
  .bp-account-head > b:nth-of-type(3) { display: none; }
  .bp-account-row { grid-template-columns: 18px 34px minmax(135px,1fr) minmax(110px,.7fr) 76px; }
  .bp-account-ip { display: none; }
  .bp-work-row { grid-template-columns: minmax(145px,1fr) minmax(210px,1.3fr) minmax(120px,.7fr) 100px; }
  .bp-work-ip { display: none; }
  .bp-config-head { display: none; }
  .bp-config-list { min-height: 0; padding: 8px; background: #f8f9fb; }
  .bp-config-row {
    grid-template-columns: minmax(140px,.8fr) minmax(180px,1.2fr) minmax(145px,.8fr);
    grid-template-areas: 'account title title' 'tags script location' 'time time time';
    gap: 9px 12px;
    margin-bottom: 8px;
    border: 1px solid #e7e9ee;
    border-radius: 9px;
    padding: 11px;
    background: #fff;
  }
  .bp-config-row:last-child { margin-bottom: 0; }
  .bp-config-account { grid-area: account; }
  .bp-inline-title { grid-area: title; }
  .bp-inline-tags { grid-area: tags; }
  .bp-config-script { grid-area: script; }
  .bp-config-location { grid-area: location; }
  .bp-inline-time { grid-area: time; }
  .bp-inline-field, .bp-config-script, .bp-config-location { align-self: end; }
  .bp-inline-field > span, .bp-config-script > span, .bp-config-location > span {
    display: block;
    margin-bottom: 4px;
    color: #989eaa;
    font-size: 9px;
  }
  .bp-inline-field input, .bp-inline-field select { border-color: #e6e8ec; background: #fff; }
  .bp-config-script { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .bp-config-script > span { grid-column: 1 / -1; }
}

@media (min-width: 1025px) and (max-width: 1240px) {
  .bp-config-head, .bp-config-row {
    grid-template-columns: minmax(110px,.72fr) minmax(155px,1.05fr) minmax(120px,.78fr) minmax(125px,.82fr) minmax(145px,.88fr) minmax(130px,.8fr);
    gap: 7px;
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (min-width: 721px) and (max-width: 1000px) {
  .bp-footer-summary { display: none; }
}

@media (min-width: 721px) and (max-height: 640px) {
  .ac-wrap { margin-top: 20px; }
}
