/* 客户中心样式 */
:root {
  --primary: #2b5cff;
  --accent: #7b5cff;
  --text: #1f2d3d;
  --muted: #6b7a90;
  --line: #e8eefb;
  --bg: #f5f8ff;
  --danger: #e0564f;
  --ok: #22a45d;
  --warn: #e6a23c;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
a { text-decoration: none; color: inherit; }
.container { width: min(1180px, 94%); margin: 0 auto; }

/* 顶栏 */
.topbar { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.topbar-inner { height: 60px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.logo svg, .logo img { width: 28px; height: 28px; border-radius: 30%; object-fit: cover; }
.top-menu { display: flex; gap: 4px; flex: 1; }
.top-menu a { padding: 7px 13px; border-radius: 8px; color: #33415c; }
.top-menu a.active, .top-menu a:hover { color: var(--primary); background: #eef3ff; }
.user-chip { display: flex; align-items: center; gap: 12px; }
.chip-points { background: linear-gradient(90deg, #fff7ec, #ffefd8); color: #b26a00; border: 1px solid #ffe3b3; border-radius: 999px; padding: 4px 14px; font-weight: 600; }
.chip-member { background: #f1ecff; color: #5b3fd6; border: 1px solid #ded1ff; border-radius: 999px; padding: 4px 12px; }
.chip-logout { color: var(--muted); cursor: pointer; }
.chip-logout:hover { color: var(--danger); }

/* 布局 */
.page { padding: 26px 0 60px; }
.grid { display: grid; gap: 18px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cols-4, .cols-2 { grid-template-columns: 1fr; } .top-menu { display: none; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { font-size: 15px; margin-bottom: 14px; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* 表单 */
.form-row { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.form-item { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 180px; }
.form-item label { font-size: 13px; color: #33415c; }
input, select, textarea {
  border: 1px solid #d8e0f0; border-radius: 8px; padding: 9px 12px; font-size: 14px; font-family: inherit; outline: none; background: #fff; transition: .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,92,255,.12); }
textarea { resize: vertical; min-height: 110px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; cursor: pointer;
  padding: 9px 22px; border-radius: 999px; font-size: 14px; background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; transition: .2s; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: #fff; border: 1px solid #d8e0f0; color: #33415c; }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn.block { width: 100%; }
.btn.big { padding: 12px 30px; font-size: 15px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #eef2fa; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; background: #fafcff; }
tr:hover td { background: #f8faff; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.tag.ok { background: #e8f7ee; color: var(--ok); }
.tag.warn { background: #fff7ec; color: #b26a00; }
.tag.err { background: #fdecec; color: var(--danger); }
.tag.info { background: #eef3ff; color: var(--primary); }
.tag.mut { background: #f0f2f7; color: var(--muted); }
.amt-plus { color: var(--ok); font-weight: 600; }
.amt-minus { color: var(--danger); font-weight: 600; }

/* 分页 */
.pager { display: flex; gap: 6px; justify-content: flex-end; margin-top: 14px; align-items: center; }
.pager button { border: 1px solid #d8e0f0; background: #fff; border-radius: 6px; padding: 5px 12px; cursor: pointer; }
.pager button:disabled { opacity: .5; cursor: not-allowed; }
.pager .cur { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 登录/注册 */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px;
  background: radial-gradient(900px 420px at 80% -10%, rgba(123,92,255,.35), transparent 60%), linear-gradient(160deg, #0a1633, #14276b); }
.auth-card { background: #fff; border-radius: 18px; padding: 40px 38px; width: 420px; max-width: 100%; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; font-size: 13.5px; }
.auth-card .form-item { margin-bottom: 16px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--muted); }
.auth-switch a { color: var(--primary); }

/* 价格卡 */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 18px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; text-align: center; position: relative; }
.price-card.hot { border: 2px solid var(--primary); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; font-size: 12px; padding: 3px 14px; border-radius: 999px; }
.price-name { font-weight: 700; font-size: 17px; }
.price-num { font-size: 34px; font-weight: 800; color: var(--primary); margin: 10px 0 2px; }
.price-num small { font-size: 13px; color: var(--muted); font-weight: 400; }
.price-gift { color: #e6792b; font-size: 13px; margin-bottom: 14px; }
.price-feats { list-style: none; text-align: left; margin-bottom: 16px; }
.price-feats li { padding: 6px 0 6px 20px; position: relative; border-bottom: 1px dashed #eef2fa; font-size: 13px; }
.price-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.pay-ways { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.pay-ways label { border: 1px solid #d8e0f0; border-radius: 999px; padding: 5px 14px; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.pay-ways label.on { border-color: var(--primary); color: var(--primary); background: #eef3ff; }
.pay-icon { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
.pay-ways label.on { border-color: var(--primary); color: var(--primary); background: #eef3ff; }

/* 其他 */
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.code-btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.muted { color: var(--muted); }
.mb18 { margin-bottom: 18px; }
.chart { width: 100%; height: 300px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
/* z-index 必须高于 .modal-mask(300)：否则在文章预览弹窗里触发失败时，报错会被弹窗遮住，用户只看到「点了没反应」 */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 400; padding: 10px 26px; border-radius: 999px; color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.toast.ok { background: #22a45d; }
.toast.err { background: #e0564f; }
.toast.info { background: #2b5cff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ================= 0.18.0 视觉升级 ================= */

/* 驾驶舱横幅 */
.dash-banner {
  position: relative; overflow: hidden; border-radius: 18px; padding: 24px 26px;
  background: linear-gradient(120deg, #14276b 0%, #2b5cff 55%, #7b5cff 100%);
  color: #fff; box-shadow: 0 10px 30px rgba(43, 92, 255, .25);
}
.dash-banner::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%);
}
.dash-banner .dash-hi { font-size: 15px; opacity: .85; }
.dash-banner .dash-line { font-size: 17px; font-weight: 600; line-height: 1.9; margin-top: 6px; }
.dash-banner .dash-line b { color: #ffe08a; }
.dash-banner .dash-sub { font-size: 12.5px; opacity: .75; margin-top: 8px; }

/* 待办提醒条 */
.todo-item { display: flex; align-items: center; gap: 10px; border-top: 1px dashed rgba(255,255,255,.25); padding: 9px 0; }
.todo-item b { font-weight: 600; }
.todo-item .muted { color: rgba(255,255,255,.65); }

/* 彩色指标卡 */
.stat-card { position: relative; overflow: hidden; }
.stat-card .stat-value { letter-spacing: .5px; }
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.stat-card.c-green::before { background: linear-gradient(180deg, #22a45d, #5ad446); }
.stat-card.c-orange::before { background: linear-gradient(180deg, #e6792b, #f5b13d); }
.stat-card.c-purple::before { background: linear-gradient(180deg, #5b3fd6, #9b7bff); }

/* 任务内容卡片流 */
.task-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.task-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px; transition: .2s;
}
.task-card:hover { box-shadow: 0 8px 22px rgba(43,92,255,.10); transform: translateY(-2px); }
.task-card .tc-top { display: flex; align-items: center; gap: 8px; }
.task-card .tc-title { font-weight: 700; font-size: 14.5px; line-height: 1.5; flex: 1; }
.task-card .tc-keyword { color: var(--muted); font-size: 12.5px; }
.task-card .tc-metrics { display: flex; gap: 10px; }
.tc-metric {
  flex: 1; background: #f7f9ff; border-radius: 10px; padding: 8px 10px; text-align: center;
}
.tc-metric .mv { font-size: 18px; font-weight: 800; }
.tc-metric .ml { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.tc-metric.m-green .mv { color: var(--ok); }
.tc-metric.m-purple .mv { color: #5b3fd6; }
.tc-metric.m-orange .mv { color: #e6792b; }
.tc-metric.m-orange .mv { font-size: 13.5px; white-space: nowrap; }
.tc-metric .dot { width: 7px; height: 7px; margin-right: 4px; }
.task-card .tc-bar { height: 6px; background: #eef2fa; border-radius: 3px; overflow: hidden; }
.task-card .tc-bar i { display: block; height: 6px; border-radius: 3px; }
.task-card .tc-foot { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); border-top: 1px dashed #eef2fa; padding-top: 9px; flex-wrap: wrap; }
/* 必须排除 .btn：「前往查看」是 <a class="btn">（蓝底白字），本规则特异性(0,2,1)高于 .btn(0,1,0)，
   命中后会把它的文字色刷成主色蓝 → 蓝底蓝字，按钮文字整个看不见。 */
.task-card .tc-foot a:not(.btn), .task-card .tc-foot span.act { color: var(--primary); cursor: pointer; }

/* 红绿灯徽章 */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot.g { background: #22a45d; box-shadow: 0 0 0 3px rgba(34,164,93,.15); }
.dot.y { background: #e6a23c; box-shadow: 0 0 0 3px rgba(230,162,60,.15); }
.dot.r { background: #e0564f; box-shadow: 0 0 0 3px rgba(224,86,79,.15); }

/* 文章预览弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(15,25,50,.55); z-index: 300; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 14px; }
.modal-article { background: #fff; border-radius: 16px; max-width: 720px; width: 100%; padding: 30px 34px; position: relative; margin-bottom: 40px; }
.modal-close { position: absolute; right: 16px; top: 12px; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--danger); }
.modal-article h2 { font-size: 20px; line-height: 1.5; padding-right: 30px; }
.modal-article .ma-meta { color: var(--muted); font-size: 12.5px; margin: 10px 0 4px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.modal-article .ma-body { margin-top: 14px; }
.modal-article .ma-body p { font-size: 15px; line-height: 1.9; color: #333; margin: 14px 0; text-align: justify; }
.modal-article .ma-body img { width: 100%; border-radius: 10px; margin: 10px 0; display: block; }
.modal-article .ma-link { margin-top: 18px; background: #f7f9ff; border-radius: 10px; padding: 12px 14px; font-size: 13px; word-break: break-all; }

/* 来源排行条 */
.src-list { display: flex; flex-direction: column; gap: 12px; }
.src-row { display: grid; grid-template-columns: 76px 1fr 92px; gap: 10px; align-items: center; }
.src-row .src-name { font-size: 13.5px; font-weight: 600; }
.src-row .src-track { height: 14px; background: #f0f3fa; border-radius: 7px; overflow: hidden; }
.src-row .src-track i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.src-row:nth-child(2) .src-track i { background: linear-gradient(90deg, #19be6b, #7bdc9c); }
.src-row:nth-child(3) .src-track i { background: linear-gradient(90deg, #e6792b, #f5b13d); }
.src-row:nth-child(4) .src-track i { background: linear-gradient(90deg, #5b3fd6, #9b7bff); }
.src-row:nth-child(5) .src-track i { background: linear-gradient(90deg, #8a97ad, #b8c2d6); }
.src-row .src-num { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }

/* 空状态引导 */
.guide { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.guide .g-step { flex: 1; min-width: 200px; background: #f7f9ff; border-radius: 12px; padding: 16px; text-align: center; }
.guide .g-num { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.guide .g-t { font-weight: 700; font-size: 13.5px; }
.guide .g-d { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.6; }

/* 套餐卡视觉 */
.plan-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: linear-gradient(180deg, #fdfeff, #f8faff); }
.plan-card:hover { border-color: #c6d4ff; }
.plan-card .pc-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.plan-card .pc-title { font-weight: 800; font-size: 15px; }
.plan-card .pc-desc { color: var(--muted); font-size: 12.5px; }
.plan-card .pc-basis { color: #5b3fd6; font-size: 12px; background: #f3efff; border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; }

/* 移动端 */
@media (max-width: 760px) {
  .page { padding: 16px 0 40px; }
  .card { padding: 16px; border-radius: 12px; }
  .topbar-inner { height: 54px; gap: 10px; }
  .user-chip { gap: 8px; }
  .chip-member { display: none; }
  .top-menu-scroll { overflow-x: auto; width: 100%; }
  .stat-value { font-size: 22px; }
  .modal-article { padding: 22px 18px; }
  .task-cards { grid-template-columns: 1fr; }
  .chart { height: 240px; }
}
.top-menu { overflow-x: auto; }

/* ================= 0.19.0 动效与布局 ================= */

/* 入场动画（JS 渲染时逐个加 animation-delay 形成 stagger） */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .55s cubic-bezier(.22,.9,.36,1) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn .6s ease both; }

/* 驾驶舱呼吸光斑 */
.dash-banner::after { animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-70px, 40px) scale(1.25); }
}
.dash-banner .dash-line b { display: inline-block; padding: 0 2px; text-shadow: 0 0 14px rgba(255,224,138,.45); }

/* 指标卡 hover 浮起 */
.stat-card { transition: transform .25s ease, box-shadow .25s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(43,92,255,.13); }
.task-card:hover { transform: translateY(-4px); }

/* 效果条生长动画（JS 触发 width 过渡） */
.tc-bar i, .src-track i { width: 0 !important; transition: width .9s cubic-bezier(.22,.9,.36,1); }
.tc-bar i.grown, .src-track i.grown { width: var(--w) !important; }

/* 数字滚动容器微光 */
.stat-value { font-variant-numeric: tabular-nums; }
.tc-metric .mv { font-variant-numeric: tabular-nums; }

/* 骨架加载条 */
.skeleton { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #eef2fa 25%, #f8faff 50%, #eef2fa 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* 总览效果行 */
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr; } }

/* 待办滑入 */
.todo-item { animation: fadeIn .5s ease both; }
.todo-item:nth-child(2) { animation-delay: .08s; }
.todo-item:nth-child(3) { animation-delay: .16s; }

/* 热点关键词推荐 */
.hot-kw { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.hot-head { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.hot-head a { color: var(--primary); }
.hot-chip {
  cursor: pointer; border: 1px dashed #c6d4ff; background: #f6f9ff; color: #33415c;
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; transition: .2s; animation: fadeUp .4s ease both;
}
.hot-chip:hover { border-style: solid; border-color: var(--primary); color: var(--primary); background: #eef3ff; transform: translateY(-1px); }

/* 试写预览可编辑区 */
.draft-edit { margin-top: 12px; }
.db-block { margin-bottom: 14px; }
.db-para {
  width: 100%; border: 1px solid transparent; border-radius: 8px; padding: 8px 10px;
  font-size: 15px; line-height: 1.9; font-family: inherit; color: #333; background: #fbfcff;
  resize: none; overflow: hidden; outline: none; transition: .2s;
}
.db-para:hover { background: #f5f8ff; border-color: #e3eafb; }
.db-para:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,92,255,.10); }
.db-title .db-para { font-size: 19px; font-weight: 800; line-height: 1.5; letter-spacing: .2px; }
.db-img { position: relative; text-align: center; }
.db-img img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 10px; display: block; }
.db-img .db-del {
  position: absolute; right: 8px; top: 8px; background: rgba(0,0,0,.45); color: #fff;
  border-radius: 6px; padding: 3px 10px; font-size: 12px;
}
.db-img.removed { display: none; }
/* 正文段落排版（正式预览） */
.ma-body p { font-size: 15.5px; line-height: 2; color: #333; margin: 18px 0; text-align: justify; text-indent: 2em; }
.ma-body img { width: 100%; border-radius: 10px; margin: 16px 0; display: block; }

/* 试写正式预览排版 */
.draft-preview-body { padding: 6px 4px; }
.draft-preview-title {
  font-size: 22px; font-weight: 800; line-height: 1.5; margin: 16px 0 22px;
  text-align: center; letter-spacing: .4px; color: #1a1a1a;
}
.draft-preview-body p { font-size: 15.5px; line-height: 2; color: #333; margin: 18px 0; text-align: justify; text-indent: 2em; }
.draft-preview-body img { width: 100%; border-radius: 10px; margin: 16px 0; display: block; }
.draft-actions { display: flex; gap: 12px; margin-top: 22px; border-top: 1px dashed #e3eafb; padding-top: 18px; }
.draft-actions .btn { flex: 1; }

/* 平台意向多选 chips */
.intent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.intent-chips label {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  border: 1px solid #d8e0f0; border-radius: 999px; padding: 5px 14px; font-size: 13px; transition: .2s; user-select: none;
}
.intent-chips label:hover { border-color: var(--primary); }
.intent-chips label.on { border-color: var(--primary); color: var(--primary); background: #eef3ff; font-weight: 600; }
.intent-chips input { display: none; }

/* 推广资料卡（行业 / 地区 / 卖点）：未完善时高亮提示，AI 成文前拦截 */
.prof-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.prof-title { font-size: 15px; font-weight: 700; }
.prof-head a { color: var(--primary); font-size: 12.5px; }
.prof-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; margin-top: 6px; }
.prof-k { color: var(--muted); font-size: 12.5px; margin-right: 2px; }
.prof-chip {
  display: inline-flex; align-items: center; gap: 5px; background: #eef3ff; color: #33415c;
  border: 1px solid #d8e0f0; border-radius: 999px; padding: 3px 11px; font-size: 12.5px;
}
.prof-chip a { color: var(--muted); font-size: 14px; line-height: 1; }
.prof-chip a:hover { color: var(--danger); }
.prof-warn { border: 1px solid #f3d3a8; background: #fffaf2; }
.prof-warn .prof-title { color: #c9741a; }

/* 完善资料弹窗表单 */
.pf-field { margin-bottom: 16px; }
.pf-field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.pf-field .tip { margin-top: 6px; font-size: 12px; color: #7a8aa5; line-height: 1.6; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip {
  cursor: pointer; user-select: none; border: 1px solid #d8e0f0; border-radius: 999px;
  padding: 5px 14px; font-size: 13px; transition: .2s; background: #fff; color: #33415c;
}
.pf-chip:hover { border-color: var(--primary); }
.pf-chip.on { border-color: var(--primary); color: var(--primary); background: #eef3ff; font-weight: 600; }
.pf-actions { display: flex; gap: 12px; margin-top: 20px; border-top: 1px dashed #e3eafb; padding-top: 16px; }
.pf-actions .btn { flex: 1; }

/* ================ AI 生成等待反馈（长耗时请求） ================ */
.gen-progress {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: #f5f8ff; border: 1px solid #e3ebff;
}
.gp-head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #2b3a55; }
.gp-spinner {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #c7d7ff; border-top-color: var(--primary);
  animation: gp-spin .8s linear infinite;
}
@keyframes gp-spin { to { transform: rotate(360deg); } }
.gp-title { font-weight: 600; }
.gp-elapsed { margin-left: auto; font-size: 13px; color: #7a8aa5; font-variant-numeric: tabular-nums; }
.gp-bar { margin-top: 10px; height: 8px; border-radius: 4px; background: #e3ebff; overflow: hidden; }
.gp-bar > i {
  position: relative; display: block; overflow: hidden; width: 0; height: 100%;
  border-radius: 4px; background: linear-gradient(90deg, #6f9bff, var(--primary));
  transition: width .6s cubic-bezier(.22,.9,.36,1);
}
/* 进度条上的循环高光，让「不确定进度」也有明显动感 */
.gp-bar > i::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: gp-shine 1.4s ease-in-out infinite;
}
@keyframes gp-shine { to { transform: translateX(100%); } }
.gp-hint { margin-top: 8px; font-size: 12px; color: #7a8aa5; line-height: 1.6; }

/* ================ 提交任务：二次确认提示 + 成功面板 ================ */
.draft-submit-hint { margin-top: 8px; font-size: 12px; color: #7a8aa5; text-align: center; line-height: 1.6; }
.draft-submit-hint.err { color: #e0564f; font-weight: 600; }
.submit-done { text-align: center; padding: 26px 20px 18px; }
.sd-icon {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff; background: linear-gradient(135deg, #4ade80, #19be6b);
  box-shadow: 0 8px 20px rgba(25, 190, 107, .3);
  animation: sd-pop .45s cubic-bezier(.2, 1.3, .4, 1) both;
}
@keyframes sd-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.sd-title { font-size: 20px; font-weight: 700; color: #1f2d3d; margin-bottom: 10px; }
.sd-desc { font-size: 13px; color: #5a6b85; line-height: 1.9; }
.sd-desc b { color: var(--primary); }
.sd-actions { margin-top: 20px; }
.sd-actions .btn { min-width: 200px; }
.sd-sub { margin-top: 12px; font-size: 12px; color: #9aa7bd; }
