/* ==========================================================================
   快创云工作台 · 客户端模板皮肤
   目标：把桌面客户端模板的视觉语言完整搬到现有功能页上。
   只改外观，不改任何 ID / 表单 / 登录 / 验证码 / 采集逻辑。
   客户端独有的「本机检测」「本地引擎」「下载目录」「版本号」不搬。
   ========================================================================== */

body.app {
  --tpl-font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --tpl-ink: #0a0f1f;
  --tpl-body: #475569;
  --tpl-muted: #64748b;
  --tpl-line: #e8ebf2;
  --tpl-line-soft: #f1f3f8;
  --tpl-lavender: #f6f3ff;
  --tpl-accent: #3450ce;
  --tpl-accent-soft: #eef2ff;
  --tpl-grad: linear-gradient(135deg, #3450ce 4%, #7c3aed 58%, #ec4899 120%);
  --tpl-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -18px rgba(52, 80, 206, .18);
  --tpl-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 60px -40px rgba(52, 80, 206, .25);
  --sans: var(--tpl-font);
  font-family: var(--tpl-font);
}

body.app,
body.app button,
body.app input,
body.app select,
body.app textarea {
  font-family: var(--tpl-font);
}

/* ---------------------------------------------------------------- 宽度 */

body.app:has(.lp-home) .site-header-inner,
body.app:has(.lp-page) .site-header-inner {
  max-width: 1440px;
  padding-left: 24px;
  padding-right: 24px;
}

body.app .lp-home .lp-container {
  max-width: 1440px;
  padding-left: 24px;
  padding-right: 24px;
}

body.app main.lp-page {
  max-width: 1440px;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 44px;
}

/* 短页面也把状态条压到视口底部，和客户端工作台一致。 */
body.app .shell {
  min-height: calc(100vh - 74px);
  display: flex;
  flex-direction: column;
}
body.app #main { flex: 1 0 auto; }

/* ---------------------------------------------------------------- 顶栏 */

body.app:has(.lp-home) .site-header,
body.app:has(.lp-page) .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 74px;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(15, 23, 42, .065);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
}

body.app:has(.lp-home) .site-header::after,
body.app:has(.lp-page) .site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(124, 58, 237, .22) 35%, rgba(236, 72, 153, .18) 68%, transparent 100%);
  opacity: .75;
}

body.app:has(.lp-home) .site-header-inner,
body.app:has(.lp-page) .site-header-inner {
  min-height: 74px;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  gap: 20px;
}

body.app:has(.lp-home) .brandmark,
body.app:has(.lp-page) .brandmark { gap: 10px; }

body.app:has(.lp-home) .brand-mark,
body.app:has(.lp-page) .brand-mark {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .36), transparent 38%),
    var(--tpl-grad);
  color: #fff;
  font: 800 18px/1 var(--tpl-font);
  transform: none;
  box-shadow: 0 8px 20px -8px rgba(80, 60, 220, .6), inset 0 0 0 1px rgba(255, 255, 255, .2);
}

body.app:has(.lp-home) .brandmark:hover .brand-mark,
body.app:has(.lp-page) .brandmark:hover .brand-mark {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .36), transparent 38%),
    var(--tpl-grad);
  transform: translateY(-1px);
}

body.app:has(.lp-home) .brand-copy b,
body.app:has(.lp-page) .brand-copy b {
  color: var(--tpl-ink);
  font: 800 17px/1.15 var(--tpl-font);
  letter-spacing: -.03em;
}

body.app:has(.lp-home) .brand-copy small,
body.app:has(.lp-page) .brand-copy small {
  color: var(--tpl-muted);
  font-size: 9.5px;
  letter-spacing: .13em;
}

body.app:has(.lp-home) .primary-nav,
body.app:has(.lp-page) .primary-nav { height: 74px; gap: 2px; }

body.app:has(.lp-home) .nav-link,
body.app:has(.lp-page) .nav-link {
  height: 36px;
  align-self: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--tpl-body);
  font-size: 13.5px;
  font-weight: 500;
  transition: color .16s, background .16s, border-color .16s;
}

body.app:has(.lp-home) .nav-link:hover,
body.app:has(.lp-page) .nav-link:hover {
  color: var(--tpl-ink);
  background: var(--tpl-lavender);
}

body.app:has(.lp-home) .nav-link.is-active,
body.app:has(.lp-page) .nav-link.is-active {
  color: var(--tpl-accent);
  background: var(--tpl-accent-soft);
  font-weight: 650;
}

body.app:has(.lp-home) .nav-link svg,
body.app:has(.lp-page) .nav-link svg { width: 15px; height: 15px; }

body.app:has(.lp-home) .site-header-actions,
body.app:has(.lp-page) .site-header-actions { gap: 6px; }

body.app:has(.lp-home) .price-link,
body.app:has(.lp-page) .price-link {
  padding: 8px 6px;
  color: var(--tpl-muted);
  font-size: 12.5px;
}

body.app:has(.lp-home) .top-login,
body.app:has(.lp-page) .top-login {
  min-height: 36px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12.5px;
  box-shadow: 0 8px 18px -10px rgba(10, 15, 31, .5);
}

body.app:has(.lp-home) .acct > .acct-btn,
body.app:has(.lp-page) .acct > .acct-btn {
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--tpl-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
}

body.app:has(.lp-home) .theme-btn,
body.app:has(.lp-page) .theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

/* ---------------------------------------------------------------- 首页头 */

.ws-dash-head { padding: 26px 0 18px; }
.ws-dash-inner { align-items: flex-start; }
.ws-dash-copy { max-width: 820px; }

.ws-kicker {
  margin-bottom: 6px;
  color: var(--tpl-muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .12em;
}

.ws-kicker::before {
  width: 5px;
  height: 5px;
  background: var(--tpl-grad);
}

.ws-dash-title {
  font-size: clamp(23px, 2.2vw, 27px);
  line-height: 1.25;
  letter-spacing: -.045em;
}

.ws-dash-title span { display: inline; }
.ws-dash-title span + span { margin-left: .12em; }

.ws-dash-sub {
  margin-top: 8px;
  max-width: 760px;
  font-size: 12.5px;
  line-height: 1.7;
}

.ws-dash-actions {
  align-self: flex-start;
  padding-bottom: 0;
  gap: 8px;
}

.ws-dash-actions .lp-btn {
  min-height: 38px;
  height: 38px;
  padding: 0 17px;
  font-size: 12.5px;
}

.ws-dash-body { padding-top: 0; padding-bottom: 42px; }

/* ---------------------------------------------------------------- 首页卡 */

.ws-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.ws-stat {
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fdfdff 100%);
  box-shadow: var(--tpl-shadow);
}

.ws-stat::before { top: 14px; bottom: 14px; }
.ws-stat .ws-ico { width: 32px; height: 32px; border-radius: 10px; }
.ws-stat b { margin-top: 10px; font-size: 28px; }
.ws-stat small { margin-top: 4px; font-size: 12px; }

.ws-health {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 18px;
}

.ws-health-copy b { font-size: 13px; }
.ws-health-copy small { font-size: 12px; }

.ws-fn { margin-top: 18px; }
.ws-section-title { margin-bottom: 12px; }
.ws-section-title h2 { font-size: 16px; }
.ws-section-title p { font-size: 12px; }

.ws-fn-grid { gap: 10px; }
.ws-fn-card {
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fdfdff 100%);
  box-shadow: var(--tpl-shadow);
}
.ws-fn-card .ws-ico { width: 38px; height: 38px; border-radius: 11px; }
.ws-fn-copy b { font-size: 13px; }
.ws-fn-copy small { font-size: 11.5px; }

.ws-bottom-grid { gap: 14px; margin-top: 18px; }
.ws-panel {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fdfdff 100%);
  box-shadow: var(--tpl-shadow);
}
.ws-panel-head h2 { font-size: 15px; }
.ws-panel-head p { font-size: 11.5px; }

/* ---------------------------------------------------------------- 工具页头 */

main.ws-tool-page > section.ws-page-head {
  padding: 26px 0 16px;
  align-items: center;
}

.ws-page-head .ws-kicker { display: none; }
.ws-page-head-copy { max-width: 780px; }
.ws-page-head-back { flex: 0 0 auto; align-self: flex-end; padding-bottom: 2px; }
@media (max-width: 720px) {
  .ws-page-head-back { align-self: flex-start; padding-top: 8px; }
}

.ws-page-head h1 {
  font-size: clamp(22px, 2.1vw, 26px);
  line-height: 1.22;
  letter-spacing: -.045em;
}

.ws-page-sub {
  margin-top: 7px;
  max-width: 760px;
  font-size: 12.5px;
  line-height: 1.65;
}

.ws-tabs {
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--tpl-line);
  border-radius: 999px;
  background: #f7f8fc;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.ws-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--tpl-muted);
  font-size: 12px;
  font-weight: 550;
}

.ws-tabs a svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .8;
}

.ws-tabs a:hover { color: var(--tpl-ink); background: #fff; }

.ws-tabs a.is-active {
  color: var(--tpl-accent);
  background: #fff;
  border-color: var(--tpl-line);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

.ws-tabs a.is-active svg { opacity: 1; }

main.ws-tool-page > section.ws-page-head + section { margin-top: 14px; }

/* ---------------------------------------------------------------- 工具页卡片 */

body.app .lp-page.ws-tool-page .panel,
body.app .lp-page.ws-tool-page .search-deck.panel,
body.app .lp-page.ws-tool-page .extract-workbench,
body.app .lp-page.ws-tool-page .rewrite-workbench,
body.app .lp-page.ws-tool-page .extract-result.panel,
body.app .lp-page.ws-tool-page .rewrite-result.panel,
body.app .lp-page.ws-tool-page .works-profile.panel,
body.app .lp-page.ws-tool-page .works-progress.panel,
body.app .lp-page.ws-tool-page .works-results.panel,
body.app .lp-page.ws-tool-page .works-start-panel,
body.app .lp-page.ws-tool-page .archive.panel,
body.app .lp-page.ws-tool-page .collect-guide.panel {
  padding: 20px;
  border: 1px solid var(--tpl-line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--lp-card) 0%, var(--lp-card-2) 100%);
  box-shadow: var(--tpl-shadow);
}

body.app .lp-page.ws-tool-page .panel::before,
body.app .lp-page.ws-tool-page .search-deck.panel::before,
body.app .lp-page.ws-tool-page .extract-workbench::before,
body.app .lp-page.ws-tool-page .rewrite-workbench::before,
body.app .lp-page.ws-tool-page .extract-result.panel::before,
body.app .lp-page.ws-tool-page .rewrite-result.panel::before,
body.app .lp-page.ws-tool-page .works-profile.panel::before,
body.app .lp-page.ws-tool-page .works-progress.panel::before,
body.app .lp-page.ws-tool-page .works-results.panel::before,
body.app .lp-page.ws-tool-page .archive.panel::before {
  display: none;
}

body.app .lp-page.ws-tool-page .workbench-head { margin-bottom: 13px; padding-bottom: 12px; }
body.app .lp-page.ws-tool-page .workbench-head h2 {
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -.025em;
}
body.app .lp-page.ws-tool-page .workbench-head p { font-size: 12px; }
body.app .lp-page.ws-tool-page .result-head .page-title {
  font-size: 16px;
  letter-spacing: -.025em;
}
body.app .lp-page.ws-tool-page .result-head .result-note { font-size: 11.5px; }
body.app .lp-page.ws-tool-page .section-kicker {
  color: var(--tpl-accent);
  font-size: 10.5px;
  letter-spacing: .1em;
}

body.app .lp-page.ws-tool-page .collect-guide.panel .section-head h2,
body.app .lp-page.ws-tool-page .history-notes .section-head h2,
body.app .lp-page.ws-tool-page .collect-guide.panel h2 {
  font-size: 18px;
  letter-spacing: -.03em;
}

body.app .lp-page.ws-tool-page .tool-guide {
  margin-top: 0;
  border-top: 0;
}

/* 模板里没有大段「使用说明」营销区。保留可展开的说明，但缩成卡片底部
   一行，既照模板的紧凑节奏，又不丢原来的帮助内容。 */
body.app .lp-page.ws-tool-page .collect-guide.panel,
body.app .lp-page.ws-tool-page .works-guide.panel {
  padding: 8px 16px;
}
body.app .lp-page.ws-tool-page .collect-guide .section-head,
body.app .lp-page.ws-tool-page .works-guide .section-head,
body.app .lp-page.ws-tool-page .extract-guide .guide-head,
body.app .lp-page.ws-tool-page .rewrite-notes .section-head,
body.app .lp-page.ws-tool-page .history-notes .section-head,
body.app .lp-page.ws-tool-page .collect-guide .lp-next-cta,
body.app .lp-page.ws-tool-page .extract-guide .lp-next-cta,
body.app .lp-page.ws-tool-page .rewrite-notes .lp-next-cta,
body.app .lp-page.ws-tool-page .history-notes .lp-next-cta {
  display: none;
}
body.app .lp-page.ws-tool-page .extract-guide,
body.app .lp-page.ws-tool-page .rewrite-notes,
body.app .lp-page.ws-tool-page .history-notes {
  margin-top: 16px;
  padding-top: 2px;
  border-top: 1px solid var(--tpl-line);
}
body.app .lp-page.ws-tool-page .tool-guide-summary {
  padding: 9px 0;
  font-size: 12px;
  color: var(--tpl-muted);
}
body.app .lp-page.ws-tool-page .tool-guide[open] .guide-grid { margin-top: 8px; }

body.app .lp-page.ws-tool-page .lp-next-cta {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
}
body.app .lp-page.ws-tool-page .lp-next-cta h3 { font-size: 17px; }

/* 采集栏 / 输入框 */

body.app .lp-page.ws-tool-page .collect-kw,
body.app .lp-page.ws-tool-page .collect-field input,
body.app .lp-page.ws-tool-page .works-search input,
body.app .lp-page.ws-tool-page .works-pages-field input,
body.app .lp-page.ws-tool-page .composer textarea,
body.app .lp-page.ws-tool-page input[type="text"],
body.app .lp-page.ws-tool-page input[type="number"],
body.app .lp-page.ws-tool-page textarea {
  border-color: var(--tpl-line);
  border-radius: 9px;
  background: #f8fafc;
}

body.app .lp-page.ws-tool-page .works-search {
  padding: 6px;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: none;
}
body.app .lp-page.ws-tool-page .works-search input { min-height: 42px; }
body.app .lp-page.ws-tool-page .works-search .btn { min-height: 42px; border-radius: 999px; }

body.app .lp-page.ws-tool-page .btn-primary,
body.app .lp-page.ws-tool-page .lp-btn-dark {
  border-radius: 999px;
  background: #0a0f1f;
  border-color: #0a0f1f;
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(10, 15, 31, .5);
}

/* ---------------------------------------------------------------- 价格 / 留言 */

.ws-subpage { padding-bottom: 40px; }
.ws-subpage .lp-pricing { padding-top: 10px; padding-bottom: 34px; }
.ws-subpage .lp-pricing h1 { font-size: clamp(22px, 2.2vw, 26px); }
.ws-subpage .lp-feedback { padding-top: 10px; padding-bottom: 34px; }
.ws-subpage .lp-feedback-copy h1 { font-size: clamp(22px, 2.2vw, 26px); }

.ws-subpage .lp-plans { gap: 12px; }
.ws-subpage .lp-plan {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fdfdff 100%);
  box-shadow: var(--tpl-shadow);
}
.ws-subpage .lp-plan .plan-price { font-size: 36px; }
.ws-subpage .lp-plan .plan-buy { border-radius: 10px; }
.ws-subpage .lp-plan .btn-primary { border-radius: 999px; }
.ws-subpage .lp-feedback-card { border-radius: 18px; }

/* ---------------------------------------------------------------- 登录 / 二维码 / 验证弹窗 */

body.app .acct-panel {
  border-radius: 18px;
  border: 1px solid var(--tpl-line);
  box-shadow: var(--tpl-shadow);
}

body.app .qr-card,
body.app .verify-card {
  border-radius: 18px;
  border: 1px solid var(--tpl-line);
  box-shadow: 0 30px 80px -40px rgba(15, 23, 42, .45);
}

body.app .qr-card .btn-primary,
body.app .verify-card .btn-primary,
body.app .acct-panel .btn-primary { border-radius: 999px; }

body.app .qr-card input,
body.app .verify-card input,
body.app .acct-panel input { border-radius: 9px; background: #f8fafc; }

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 1120px) {
  body.app:has(.lp-home) .site-header-inner,
  body.app:has(.lp-page) .site-header-inner { padding-left: 20px; padding-right: 20px; }
  body.app .lp-home .lp-container { padding-left: 20px; padding-right: 20px; }
  body.app main.lp-page { padding-left: 20px; padding-right: 20px; }
  body.app:has(.lp-home) .nav-link,
  body.app:has(.lp-page) .nav-link { padding: 0 11px; }
  body.app:has(.lp-home) .brand-copy small,
  body.app:has(.lp-page) .brand-copy small { display: none; }
}

@media (max-width: 800px) {
  /* 恢复两行移动端顶栏；否则上面为桌面写死的三列网格会把页面撑宽。 */
  body.app:has(.lp-home) .site-header,
  body.app:has(.lp-page) .site-header { height: auto; }
  body.app:has(.lp-home) .site-header-inner,
  body.app:has(.lp-page) .site-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: 60px 42px;
    min-height: 0;
    padding: 0 16px;
    gap: 0 10px;
  }
  body.app:has(.lp-home) .primary-nav,
  body.app:has(.lp-page) .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 42px;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.app:has(.lp-home) .primary-nav::-webkit-scrollbar,
  body.app:has(.lp-page) .primary-nav::-webkit-scrollbar { display: none; }
  body.app:has(.lp-home) .nav-link,
  body.app:has(.lp-page) .nav-link { height: auto; padding: 6px 10px; font-size: 12px; }
  body.app:has(.lp-home) .site-header-actions,
  body.app:has(.lp-page) .site-header-actions { grid-column: 2; grid-row: 1; }
  body.app .shell { min-height: calc(100vh - 102px); }
}

@media (max-width: 900px) {
  .ws-dash-head { padding: 22px 0 16px; }
  .ws-dash-title { font-size: clamp(22px, 5.6vw, 26px); }
  .ws-stats { gap: 10px; }
  .ws-fn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-bottom-grid { grid-template-columns: 1fr; }

  main.ws-tool-page > section.ws-page-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0 14px;
  }
  .ws-tabs { width: 100%; }
  .ws-tabs a { flex: 1 0 auto; justify-content: center; }
  .ws-tabs a svg { display: none; }

}

@media (max-width: 720px) {
  body.app:has(.lp-home) .brand-mark,
  body.app:has(.lp-page) .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  body.app:has(.lp-home) .brand-copy b,
  body.app:has(.lp-page) .brand-copy b { font-size: 17px; }
  body.app:has(.lp-home) .nav-link,
  body.app:has(.lp-page) .nav-link { padding: 0 10px; font-size: 12.5px; }
  body.app:has(.lp-home) .nav-link svg,
  body.app:has(.lp-page) .nav-link svg { display: none; }

  .ws-dash-title { font-size: clamp(21px, 6.6vw, 25px); }
  .ws-dash-title span { display: block; }
  .ws-dash-title span + span { margin-left: 0; }
  .ws-dash-sub { font-size: 12.5px; }
  .ws-dash-actions { width: 100%; }
  .ws-dash-actions .lp-btn { flex: 1 1 auto; justify-content: center; }

  .ws-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ws-stat { padding: 14px 15px 13px; }
  .ws-stat b { font-size: 26px; }
  .ws-fn-grid { grid-template-columns: 1fr; }
  .ws-fn-card { min-height: 68px; padding: 12px 14px; }
  .ws-panel { padding: 16px; border-radius: 16px; }

  body.app .lp-page.ws-tool-page .panel,
  body.app .lp-page.ws-tool-page .search-deck.panel,
  body.app .lp-page.ws-tool-page .extract-workbench,
  body.app .lp-page.ws-tool-page .rewrite-workbench,
  body.app .lp-page.ws-tool-page .works-start-panel,
  body.app .lp-page.ws-tool-page .archive.panel { padding: 16px; border-radius: 16px; }

  .ws-page-head h1 { font-size: clamp(22px, 6.4vw, 25px); }
  .ws-page-sub { font-size: 12.5px; }
  .ws-tabs a { font-size: 11.5px; padding: 7px 9px; }

}

@media (max-width: 420px) {
  .ws-panel-head { align-items: flex-end; flex-wrap: wrap; gap: 4px 10px; }
  .ws-panel-head a { margin-left: auto; }
}

/* ---------------------------------------------------------------- 深色 */

html[data-theme="dark"] body.app {
  --tpl-ink: #f8fafc;
  --tpl-body: #cbd5e1;
  --tpl-muted: #94a3b8;
  --tpl-line: #223047;
  --tpl-line-soft: #1a2639;
  --tpl-lavender: #17152a;
  --tpl-accent: #8fa2ff;
  --tpl-accent-soft: rgba(52, 80, 206, .2);
  --tpl-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -18px rgba(0, 0, 0, .7);
  --tpl-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 60px -40px rgba(0, 0, 0, .8);
}

html[data-theme="dark"] body.app:has(.lp-home) .site-header,
html[data-theme="dark"] body.app:has(.lp-page) .site-header {
  background: rgba(8, 11, 20, .82);
  border-bottom-color: rgba(255, 255, 255, .065);
}

html[data-theme="dark"] .ws-tabs {
  background: #0d1422;
  border-color: var(--tpl-line);
}
html[data-theme="dark"] .ws-tabs a.is-active {
  background: #101827;
  border-color: var(--tpl-line);
  color: var(--tpl-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] .ws-stat,
html[data-theme="dark"] .ws-fn-card,
html[data-theme="dark"] .ws-panel {
  background: linear-gradient(180deg, var(--lp-card) 0%, var(--lp-card-2) 100%);
}

html[data-theme="dark"] body.app .lp-page.ws-tool-page .panel,
html[data-theme="dark"] body.app .lp-page.ws-tool-page .search-deck.panel,
html[data-theme="dark"] body.app .lp-page.ws-tool-page .extract-workbench,
html[data-theme="dark"] body.app .lp-page.ws-tool-page .rewrite-workbench,
html[data-theme="dark"] body.app .lp-page.ws-tool-page .works-start-panel,
html[data-theme="dark"] body.app .lp-page.ws-tool-page .archive.panel {
  background: linear-gradient(180deg, var(--lp-card) 0%, var(--lp-card-2) 100%);
}

html[data-theme="dark"] body.app .lp-page.ws-tool-page .works-search,
html[data-theme="dark"] body.app .lp-page.ws-tool-page input,
html[data-theme="dark"] body.app .lp-page.ws-tool-page textarea {
  background: #0d1422;
}

html[data-theme="dark"] .ws-subpage .lp-plan {
  background: linear-gradient(180deg, var(--lp-card) 0%, var(--lp-card-2) 100%);
}

html[data-theme="dark"] body.app:has(.lp-home) .foot,
html[data-theme="dark"] body.app:has(.lp-page) .foot {
  background: rgba(8, 11, 20, .9);
  border-top-color: var(--tpl-line);
}

html[data-theme="dark"] body.app:has(.lp-home) .foot-logo b,
html[data-theme="dark"] body.app:has(.lp-page) .foot-logo b { color: #f8fafc; }

html[data-theme="dark"] body.app:has(.lp-home) .foot-slogan,
html[data-theme="dark"] body.app:has(.lp-page) .foot-slogan { color: #94a3b8 !important; }

html[data-theme="dark"] body.app:has(.lp-home) .acct > .acct-btn,
html[data-theme="dark"] body.app:has(.lp-page) .acct > .acct-btn {
  background: rgba(16, 24, 39, .7);
  border-color: var(--tpl-line);
}

/* ==========================================================================
   最终配色：严格回到模板 brand.css 的品牌蓝紫粉 + 浅色底
   只保留三处收敛：标题不做渐变、留言板不做大粉斑、价格卡用浅蓝紫底
   ========================================================================== */

/* 模板的页面标题是墨色，不做渐变文字 */
.ws-dash-title .ws-grad,
body.app .lp-page .lp-grad {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

/* 留言卡保持白底，去掉右上角的大粉斑（模板里没有这个装饰） */
body.app .lp-home .lp-feedback-card {
  border-color: var(--tpl-line);
  background: linear-gradient(180deg, #ffffff 0%, #fdfdff 100%);
}
body.app .lp-home .lp-feedback-card::before { display: none; }

/* 价格卡用模板的浅色强调，而不是大块紫粉渐变 */
body.app .lp-home .lp-plan.is-best {
  border-color: rgba(52, 80, 206, .28);
  background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 46%);
  box-shadow: var(--tpl-shadow);
}
body.app .lp-home .lp-plan.is-best .plan-name { color: #3450ce; }
body.app .lp-home .lp-plan.is-best .plan-price { color: #0a0f1f; }
body.app .lp-home .lp-plan .plan-feat li::before { color: #3450ce; }
body.app .lp-home .lp-plan-caution {
  border-color: var(--tpl-line);
  background: #fafafa;
}

/* 深色模式沿用模板的深底和亮蓝强调 */
html[data-theme="dark"] body.app .lp-home .lp-feedback-card {
  background: linear-gradient(180deg, var(--lp-card) 0%, var(--lp-card-2) 100%);
  border-color: var(--tpl-line);
}
html[data-theme="dark"] body.app .lp-home .lp-plan.is-best {
  border-color: rgba(143, 162, 255, .3);
  background: linear-gradient(180deg, #111a2b 0%, var(--lp-card) 46%);
}
html[data-theme="dark"] body.app .lp-home .lp-plan.is-best .plan-name { color: #8fa2ff; }
html[data-theme="dark"] body.app .lp-home .lp-plan.is-best .plan-price { color: #f8fafc; }
html[data-theme="dark"] body.app .lp-home .lp-plan .plan-feat li::before { color: #8fa2ff; }
html[data-theme="dark"] body.app .lp-home .lp-plan-caution { background: #0d1422; border-color: var(--tpl-line); }

/* 套餐角标用模板的黑色胶囊，不再用彩色渐变 */
body.app .lp-home .lp-plan .plan-badge {
  border-color: #0a0f1f;
  background: #0a0f1f;
  color: #fff;
  box-shadow: none;
}

/* 首页记录表：替代原来的四张能力统计卡 */
.ws-records {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--tpl-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfdff 100%);
  box-shadow: var(--tpl-shadow);
}

.ws-records-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px 11px;
}

.ws-records-head h2 {
  margin: 0;
  color: var(--tpl-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.ws-records-head p {
  margin: 2px 0 0;
  color: var(--tpl-muted);
  font-size: 11px;
}

.ws-records-table {
  width: 100%;
  border-collapse: collapse;
}

.ws-records-table thead th {
  padding: 7px 18px;
  border-top: 1px solid var(--tpl-line-soft);
  border-bottom: 1px solid var(--tpl-line-soft);
  background: #fafbfd;
  color: var(--tpl-muted);
  font-size: 10.5px;
  font-weight: 600;
  text-align: left;
}

.ws-records-table thead th:last-child { width: 120px; text-align: right; }

.ws-records-table tbody th,
.ws-records-table tbody td {
  padding: 11px 18px;
  border-top: 1px solid var(--tpl-line-soft);
  text-align: left;
}

.ws-records-table tbody tr:first-child th,
.ws-records-table tbody tr:first-child td { border-top: 0; }

.ws-records-table tbody th {
  color: var(--tpl-ink);
  font-size: 12.5px;
  font-weight: 600;
}

.ws-records-table tbody td { text-align: right; }

.ws-record-value {
  color: var(--tpl-muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .ws-records {
  background: linear-gradient(180deg, var(--lp-card) 0%, var(--lp-card-2) 100%);
}
html[data-theme="dark"] .ws-records-table thead th { background: #0d1422; }

@media (max-width: 720px) {
  .ws-records { margin-bottom: 14px; border-radius: 16px; }
  .ws-records-head { padding: 13px 15px 10px; }
  .ws-records-table thead th,
  .ws-records-table tbody th,
  .ws-records-table tbody td { padding-left: 15px; padding-right: 15px; }
  .ws-records-table thead th:last-child { width: 82px; }
}

/* 首页记录：继续沿用模板原来的统计卡组件，只保留两项 */
.ws-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ws-stat.violet { --stat-color: #7c3aed; --stat-soft: #f5f0ff; }
html[data-theme="dark"] .ws-stat.violet { --stat-color: #b59cff; --stat-soft: rgba(124, 58, 237, .18); }

@media (max-width: 560px) {
  .ws-stats-2 { grid-template-columns: 1fr; }
}

/* 首页功能导航：上三下二，沿用模板卡片尺寸 */
.ws-fn-grid.is-five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ws-fn-grid.is-five .ws-fn-card { grid-column: span 2; }
.ws-fn-grid.is-five .ws-fn-card:nth-child(4),
.ws-fn-grid.is-five .ws-fn-card:nth-child(5) { grid-column: span 3; }

button.ws-fn-card {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  cursor: default;
}

@media (max-width: 1080px) {
  .ws-fn-grid.is-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-fn-grid.is-five .ws-fn-card,
  .ws-fn-grid.is-five .ws-fn-card:nth-child(4),
  .ws-fn-grid.is-five .ws-fn-card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 720px) {
  .ws-fn-grid.is-five { grid-template-columns: 1fr; }
}

/* 五宫格保持模板卡片原宽度：上三下二，最后一行左对齐 */
.ws-fn-grid.is-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ws-fn-grid.is-five .ws-fn-card,
.ws-fn-grid.is-five .ws-fn-card:nth-child(4),
.ws-fn-grid.is-five .ws-fn-card:nth-child(5) { grid-column: auto; }

@media (max-width: 1080px) {
  .ws-fn-grid.is-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ws-fn-grid.is-five { grid-template-columns: 1fr; }
}

/* 首页底部留言板：沿用模板卡片和现有留言表单 */
.ws-home-feedback { margin-top: 18px; }
.ws-home-feedback .ws-panel-head { align-items: flex-start; }
.ws-home-feedback .ws-panel-head p { max-width: 760px; margin-top: 4px; line-height: 1.65; }
.ws-home-feedback .lp-feedback-form { max-width: 920px; margin-top: 4px; }
.ws-home-feedback .lp-feedback-form .fb-field > span { color: var(--tpl-body); font-size: 11.5px; }
.ws-home-feedback .lp-feedback-form textarea,
.ws-home-feedback .lp-feedback-form input[type="text"] {
  border-radius: 9px;
  background: #f8fafc;
}

/* 留言板左右两栏：左标题说明，右表单，铺满模板卡片 */
.ws-home-feedback {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 32px;
  align-items: start;
}
.ws-home-feedback .ws-panel-head { display: block; margin: 0; }
.ws-home-feedback .lp-feedback-form { max-width: none; margin-top: 0; }

@media (max-width: 900px) {
  .ws-home-feedback { grid-template-columns: 1fr; gap: 16px; }
}

/* 工具页纵向节奏：页头收紧、卡片间距统一，不改任何布局结构 */
body.app main.lp-page.ws-tool-page > section { margin-top: 20px; }
body.app main.lp-page.ws-tool-page > section.ws-page-head {
  margin-top: 0;
  padding-top: 22px;
  padding-bottom: 16px;
}
body.app main.lp-page.ws-tool-page > section.ws-page-head + section { margin-top: 16px; }
body.app main.lp-page.ws-tool-page { padding-bottom: 32px; }

@media (max-width: 720px) {
  body.app main.lp-page.ws-tool-page > section { margin-top: 16px; }
  body.app main.lp-page.ws-tool-page > section.ws-page-head {
    padding-top: 18px;
    padding-bottom: 14px;
  }
  body.app main.lp-page.ws-tool-page > section.ws-page-head + section { margin-top: 14px; }
  body.app main.lp-page.ws-tool-page { padding-bottom: 24px; }
}

/* 价格/留言独立页的上下节奏 */
.ws-subpage .ws-back-row { padding-top: 20px; }
.ws-subpage .lp-pricing { padding-top: 6px; padding-bottom: 28px; }
.ws-subpage .lp-feedback { padding-top: 6px; padding-bottom: 28px; }
.ws-subpage .lp-plan-caution { margin-top: 24px; }

/* ==========================================================================
   采集中心 / 作品库
   ========================================================================== */

.ws-center-panel .workbench-head { margin-bottom: 6px; }
.ws-center-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ws-method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 15px 16px;
  border: 1px solid var(--tpl-line);
  border-radius: 16px;
  background: #fbfcfe;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.ws-method-card:hover {
  border-color: var(--tpl-line-strong);
  box-shadow: var(--tpl-shadow-sm);
  transform: translateY(-1px);
}
.ws-method-card .ws-ico { width: 40px; height: 40px; border-radius: 11px; }
.ws-method-card .ws-ico.fn-violet { background: #f5f0ff; color: #7c3aed; }
.ws-method-card .ws-ico.fn-blue { background: #eef2ff; color: #3450ce; }
.ws-method-card .ws-ico.fn-teal { background: #ecfeff; color: #0891b2; }
.ws-method-card .ws-fn-copy { min-width: 0; }
.ws-method-card .ws-fn-copy b { display: block; color: var(--tpl-ink); font-size: 13.5px; font-weight: 700; }
.ws-method-card .ws-fn-copy small { display: block; margin-top: 3px; color: var(--tpl-muted); font-size: 11.5px; line-height: 1.55; }
.ws-method-card > i { margin-left: auto; padding-left: 8px; color: var(--tpl-faint, #94a3b8); font-style: normal; }
.ws-method-card:hover > i { color: var(--tpl-accent); }

.ws-center-note p {
  margin: 0;
  color: var(--tpl-body);
  font-size: 12.5px;
  line-height: 1.7;
}

/* 作品库统计 */
.ws-stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ws-stat.teal { --stat-color: #0891b2; --stat-soft: #ecfeff; }
html[data-theme="dark"] .ws-stat.teal { --stat-color: #67e8f9; --stat-soft: rgba(8, 145, 178, .16); }

/* 作品库筛选 */
body.app .lp-page.ws-tool-page .ws-library-filter.panel { padding: 12px; }
.ws-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ws-filter-search {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 260px;
  min-width: 220px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--tpl-line);
  border-radius: 9px;
  background: #f8fafc;
  color: var(--tpl-muted);
}
.ws-filter-search svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ws-filter-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tpl-ink);
  font: inherit;
  font-size: 12px;
  box-shadow: none !important;
}
.ws-filter-bar select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--tpl-line);
  border-radius: 9px;
  background: #f8fafc;
  color: var(--tpl-body);
  font-family: inherit;
  font-size: 12px;
}
.ws-filter-reset { flex: 0 0 auto; margin-left: auto; }
.ws-sort-controls { display: flex; align-items: center; gap: 6px; }
.ws-sort-controls select { min-width: 118px; cursor: pointer; }
.ws-sort-controls #libraryOrder { min-width: 92px; }

/* 作品库：更多筛选 */
.ws-more-filters {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--tpl-line);
}
.ws-more-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ws-more-summary::-webkit-details-marker { display: none; }
.ws-more-chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.ws-more-filters[open] .ws-more-chevron { transform: rotate(180deg); }
.ws-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--tpl-accent, #2563eb);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}
.ws-filter-count[hidden] { display: none; }
.ws-filter-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--tpl-line);
  border-radius: 10px;
  background: #fbfcff;
}
.ws-filter-group {
  padding: 12px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fff;
}
.ws-filter-group-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.ws-filter-group-head b { color: #303846; font-size: 12.5px; font-weight: 600; }
.ws-filter-group-head span { color: #9aa3b1; font-size: 10.5px; }
.ws-filter-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
}
.ws-range-fields { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ws-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ws-field > span { color: #8b94a3; font-size: 11px; }
.ws-field input,
.ws-field select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e3e8f0;
  border-radius: 7px;
  background: #fff;
  color: #4d5665;
  font-family: inherit;
  font-size: 12px;
  outline: none;
}
.ws-field input:focus,
.ws-field select:focus {
  border-color: var(--tpl-accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.ws-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.ws-range input { text-align: center; }
.ws-range i {
  color: #9aa3b1;
  font-size: 11px;
  font-style: normal;
  text-align: center;
}
.ws-filter-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf0f5;
}
.ws-filter-hint { color: #9aa3b1; font-size: 10.5px; }
.ws-filter-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #8b94a3;
  font-size: 11px;
}
.ws-filter-note[hidden] { display: none; }
.ws-filter-note b { color: #4d5665; font-weight: 600; }
.ws-filter-note-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--tpl-accent, #2563eb);
  font-size: 11px;
  cursor: pointer;
}
.ws-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ws-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 4px 4px 9px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #eef4ff;
  color: #315ea8;
  font-size: 11px;
  line-height: 1.2;
}
.ws-chip-label {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 22px;
  min-height: 22px;
  padding: 0 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6b8bc9;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.ws-chip-x:hover { background: rgba(37, 99, 235, .12); }
.ws-chip-reset {
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--tpl-accent, #2563eb);
  font-size: 11px;
  cursor: pointer;
}
.ws-flag-btn.is-on { color: #b45309; }
.ws-pill.is-image { background: #eef2ff; color: #4f46e5; }

html[data-theme="dark"] .ws-more-filters { border-color: var(--tpl-line); }
html[data-theme="dark"] .ws-more-summary { color: var(--tpl-muted); }
html[data-theme="dark"] .ws-filter-panel {
  border-color: var(--tpl-line);
  background: var(--lp-card-2);
}
html[data-theme="dark"] .ws-filter-group {
  border-color: var(--tpl-line);
  background: var(--lp-card);
}
html[data-theme="dark"] .ws-filter-group-head b { color: var(--tpl-ink); }
html[data-theme="dark"] .ws-filter-group-head span,
html[data-theme="dark"] .ws-field > span,
html[data-theme="dark"] .ws-filter-hint,
html[data-theme="dark"] .ws-range i { color: var(--tpl-muted); }
html[data-theme="dark"] .ws-field input,
html[data-theme="dark"] .ws-field select {
  border-color: var(--tpl-line);
  background: var(--lp-card-2);
  color: var(--tpl-body);
}
html[data-theme="dark"] .ws-filter-note { color: var(--tpl-muted); }
html[data-theme="dark"] .ws-filter-note b { color: var(--tpl-ink); }
html[data-theme="dark"] .ws-filter-panel-foot { border-color: var(--tpl-line); }
html[data-theme="dark"] .ws-chip {
  border-color: rgba(37, 99, 235, .35);
  background: rgba(37, 99, 235, .16);
  color: #9db9f5;
}
html[data-theme="dark"] .ws-chip-x { color: #9db9f5; }

@media (max-width: 720px) {
  .ws-filter-search { flex: 1 1 100%; }
  .ws-sort-controls { flex: 1 1 auto; }
  .ws-sort-controls select { flex: 1 1 0; min-width: 0; }
  .ws-filter-reset { margin-left: auto; }
  .ws-filter-panel { padding: 10px; }
  .ws-filter-group { padding: 10px; }
  .ws-filter-fields,
  .ws-range-fields { grid-template-columns: 1fr; }
  .ws-filter-panel-foot { align-items: flex-end; }
}

/* 作品库表格 */
body.app .lp-page.ws-tool-page .ws-library-table-panel.panel {
  padding: 0;
  overflow: hidden;
}
.ws-library-table-wrap { width: 100%; overflow-x: auto; }
.ws-library-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  color: var(--tpl-body);
  font-size: 12px;
}
.ws-library-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--tpl-line);
  background: #f8f9fc;
  color: var(--tpl-muted);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.ws-library-table .ws-col-check { width: 42px; }
.ws-library-table tbody td { padding: 0; }
.ws-library-table input[type="checkbox"] { accent-color: var(--tpl-accent); }

.ws-library-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 40px 20px;
  text-align: center;
}
.ws-library-empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 13px;
  background: var(--tpl-accent-soft);
  color: var(--tpl-accent);
}
.ws-library-empty-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ws-library-empty b { color: var(--tpl-ink); font-size: 14px; font-weight: 700; }
.ws-library-empty > span:not(.ws-library-empty-icon) { margin-top: 6px; color: var(--tpl-muted); font-size: 12px; }
.ws-library-empty .btn { margin-top: 14px; }

@media (max-width: 1080px) {
  .ws-center-grid { grid-template-columns: 1fr; }
  .ws-stats-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ws-stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-filter-reset { margin-left: 0; }
  .ws-library-empty { min-height: 240px; }
}

/* 采集中心两个采集页的模板化细节 */
body.app .lp-page.ws-tool-page .works-search { align-items: flex-end; }
body.app .lp-page.ws-tool-page .works-search textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 96px;
  padding: 11px 14px;
  border: 0;
  border-radius: 9px;
  outline: 0;
  background: transparent;
  color: var(--lp-ink);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.7;
  resize: vertical;
  box-shadow: none !important;
}
body.app .lp-page.ws-tool-page .works-search textarea::placeholder { color: var(--lp-faint); }
body.app .lp-page.ws-tool-page .works-search .btn { margin-bottom: 1px; }
body.app .lp-page.ws-tool-page .works-guide .lp-next-cta { display: none; }

.collect-head-right { display: flex; align-items: center; gap: 10px; }
.collect-save-note { color: var(--tpl-muted); font-size: 10.5px; white-space: nowrap; }

@media (max-width: 900px) {
  body.app .lp-page.ws-tool-page .works-search { flex-direction: column; align-items: stretch; }
  body.app .lp-page.ws-tool-page .works-search .btn { align-self: flex-end; min-width: 110px; }
}
@media (max-width: 720px) {
  .collect-save-note { display: none; }
  .collect-head-right { gap: 0; }
}

/* 采集方式卡片说明允许换行，避免撑宽移动端 */
.ws-method-card .ws-fn-copy { flex: 1 1 auto; min-width: 0; }
.ws-method-card .ws-fn-copy small {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.6;
}

/* ==========================================================================
   蓝白客户端皮肤（2026-10）
   --------------------------------------------------------------------------
   以客户截图为准：白底、浅灰页面、蓝色主色、10px 圆角、细边框。
   只覆盖视觉，不动任何交互和接口。深色模式仍按原变量走。
   ========================================================================== */

html[data-theme="light"] body.app {
  --tpl-ink: #141a24;
  --tpl-body: #4d5665;
  --tpl-muted: #8b94a3;
  --tpl-line: #e7eaf0;
  --tpl-line-soft: #f1f4f9;
  --tpl-lavender: #f3f7ff;
  --tpl-accent: #2563eb;
  --tpl-accent-soft: #eaf1ff;
  --tpl-grad: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --tpl-shadow-sm: 0 1px 2px rgba(16, 24, 40, .03), 0 8px 22px -20px rgba(37, 99, 235, .22);
  --tpl-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 44px -34px rgba(37, 99, 235, .25);
  background: #f4f6fb;
}

html[data-theme="light"] body.app .shell { background: #f4f6fb; }

/* 顶栏 */
html[data-theme="light"] body.app:has(.lp-home) .site-header,
html[data-theme="light"] body.app:has(.lp-page) .site-header {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-theme="light"] body.app:has(.lp-home) .site-header::after,
html[data-theme="light"] body.app:has(.lp-page) .site-header::after { display: none; }
html[data-theme="light"] body.app:has(.lp-home) .site-header-inner,
html[data-theme="light"] body.app:has(.lp-page) .site-header-inner {
  min-height: 68px;
  gap: 18px;
}
html[data-theme="light"] body.app:has(.lp-home) .brand-mark,
html[data-theme="light"] body.app:has(.lp-page) .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #2563eb;
  box-shadow: 0 5px 12px -6px rgba(37, 99, 235, .6);
}
html[data-theme="light"] body.app:has(.lp-home) .brand-mark svg,
html[data-theme="light"] body.app:has(.lp-page) .brand-mark svg {
  width: 19px;
  height: 19px;
}
html[data-theme="light"] body.app:has(.lp-home) .brand-copy b,
html[data-theme="light"] body.app:has(.lp-page) .brand-copy b {
  font-size: 15.5px;
  letter-spacing: -.02em;
}
html[data-theme="light"] body.app:has(.lp-home) .brand-copy small,
html[data-theme="light"] body.app:has(.lp-page) .brand-copy small { display: none; }
html[data-theme="light"] body.app:has(.lp-home) .primary-nav,
html[data-theme="light"] body.app:has(.lp-page) .primary-nav { height: 68px; gap: 4px; }
html[data-theme="light"] body.app:has(.lp-home) .nav-link,
html[data-theme="light"] body.app:has(.lp-page) .nav-link {
  height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
}
html[data-theme="light"] body.app:has(.lp-home) .nav-link:hover,
html[data-theme="light"] body.app:has(.lp-page) .nav-link:hover {
  color: #2563eb;
  background: #f2f6ff;
}
html[data-theme="light"] body.app:has(.lp-home) .nav-link.is-active,
html[data-theme="light"] body.app:has(.lp-page) .nav-link.is-active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
  font-weight: 600;
  box-shadow: 0 5px 12px -7px rgba(37, 99, 235, .65);
}
html[data-theme="light"] body.app:has(.lp-home) .nav-link.is-active svg,
html[data-theme="light"] body.app:has(.lp-page) .nav-link.is-active svg { color: #fff; }
html[data-theme="light"] body.app:has(.lp-home) .site-header .top-login,
html[data-theme="light"] body.app:has(.lp-page) .site-header .top-login {
  height: 34px;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 8px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: none;
}
html[data-theme="light"] body.app:has(.lp-home) .site-header .top-login:hover,
html[data-theme="light"] body.app:has(.lp-page) .site-header .top-login:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
html[data-theme="light"] body.app .price-link { color: #6b7280; font-size: 12.5px; }
html[data-theme="light"] body.app .acct > .acct-btn { border-radius: 8px; background: #fff; }

/* 页头与页签 */
html[data-theme="light"] main.ws-tool-page > section.ws-page-head { padding: 26px 0 13px; }
html[data-theme="light"] .ws-page-head h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.035em;
  color: #141a24;
}
html[data-theme="light"] .ws-page-sub {
  margin-top: 6px;
  color: #8b94a3;
  font-size: 12.5px;
}
.ws-tabs {
  padding: 4px;
  gap: 2px;
  border: 1px solid var(--tpl-line);
  border-radius: 10px;
  background: var(--lp-card, #fff);
  box-shadow: none;
}
.ws-tabs a {
  padding: 8px 12px;
  border-radius: 7px;
  color: #707a89;
  font-size: 12px;
  font-weight: 500;
}
.ws-tabs a:hover { color: var(--tpl-accent); background: #f5f8ff; }
.ws-tabs a.is-active {
  color: var(--tpl-accent);
  background: #fff;
  border-color: #dfe6f1;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  font-weight: 600;
}
.ws-tabs-page {
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
}
.ws-library-head { padding-bottom: 12px; }
.ws-library-head .ws-page-head-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* 卡片 */
html[data-theme="light"] body.app main.lp-page.ws-tool-page > section:not(.ws-page-head) {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid #e8ebf2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
html[data-theme="light"] body.app main.lp-page.ws-tool-page > section:not(.ws-page-head)::before {
  display: none;
}
html[data-theme="light"] body.app main.lp-page.ws-tool-page > section.ws-library-table-panel {
  padding: 0;
  overflow: hidden;
}
html[data-theme="light"] .workbench-head { margin-bottom: 14px; padding-bottom: 0; border-bottom: 0; }
html[data-theme="light"] .workbench-head h2 {
  color: #141a24;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -.02em;
}
html[data-theme="light"] .workbench-head p { color: #8b94a3; font-size: 12px; }
html[data-theme="light"] .section-kicker {
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}
html[data-theme="light"] body.app .lp-page .workbench-head .section-kicker {
  display: block;
  margin-bottom: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}
html[data-theme="light"] body.app .lp-page .workbench-head .section-kicker::before {
  display: none;
}

/* 按钮 */
html[data-theme="light"] body.app .lp-page.ws-tool-page .btn-primary {
  min-height: 38px;
  padding: 0 20px;
  border: 1px solid #2563eb;
  border-radius: 7px;
  background: #fff;
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: none;
}
html[data-theme="light"] body.app .lp-page.ws-tool-page .btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
html[data-theme="light"] body.app .lp-page.ws-tool-page .btn-primary:disabled {
  border-color: #cbd7ee;
  color: #9aabca;
  background: #f8faff;
}
html[data-theme="light"] body.app .lp-page.ws-tool-page .btn-ghost {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid #dfe4ec;
  border-radius: 7px;
  background: #fff;
  color: #4d5665;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: none;
}
html[data-theme="light"] body.app .lp-page.ws-tool-page .btn-ghost:hover {
  border-color: #b9cdf3;
  background: #f7faff;
  color: #2563eb;
}
html[data-theme="light"] body.app .lp-page.ws-tool-page .btn-ghost:disabled {
  border-color: #edf0f5;
  background: #fafbfc;
  color: #b3bac5;
  cursor: not-allowed;
}
html[data-theme="light"] body.app .lp-page.ws-tool-page .btn-sm {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}
html[data-theme="light"] body.app .client-danger-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #f0b8b8;
  border-radius: 7px;
  background: #fff;
  color: #dc4b4b;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}
html[data-theme="light"] body.app .client-danger-btn:hover {
  background: #fff6f6;
  border-color: #e89a9a;
  color: #c93c3c;
}
html[data-theme="light"] body.app .client-danger-btn:disabled { opacity: .5; cursor: not-allowed; }
html[data-theme="dark"] body.app .client-danger-btn { background: transparent; }

/* 表单 */
.client-head-note {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f7ff;
  color: #6b87bd;
  font-size: 11px;
  white-space: nowrap;
}
html[data-theme="light"] body.app .lp-page.ws-tool-page .works-search {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.client-field-label {
  display: block;
  margin: 0 0 8px;
  color: #4d5665;
  font-size: 12px;
  font-weight: 500;
}
html[data-theme="light"] body.app .lp-page.ws-tool-page .works-search textarea,
html[data-theme="light"] body.app .lp-page.ws-tool-page .client-form-field input,
html[data-theme="light"] body.app .lp-page.ws-tool-page .client-form-field select {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  background: #fbfcff;
  color: #141a24;
  font-family: inherit;
  font-size: 12.5px;
  box-shadow: none;
}
html[data-theme="light"] body.app .lp-page.ws-tool-page .works-search textarea {
  min-height: 132px;
  line-height: 1.7;
  resize: vertical;
}
html[data-theme="light"] body.app .lp-page.ws-tool-page .works-search textarea:focus,
html[data-theme="light"] body.app .lp-page.ws-tool-page .client-form-field input:focus,
html[data-theme="light"] body.app .lp-page.ws-tool-page .client-form-field select:focus {
  border-color: #9dbcf5;
  background: #fff;
  outline: 3px solid #eef4ff;
}
.client-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f2f7;
}
.client-form-foot .works-hint {
  margin: 0;
  max-width: 720px;
  color: #8b94a3;
  font-size: 12px;
  line-height: 1.6;
}
.client-form-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.client-kw-form {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(140px, .7fr) minmax(160px, .8fr);
  gap: 18px;
  margin-top: 4px;
}
.client-form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.client-form-field > span { color: #4d5665; font-size: 12px; font-weight: 500; }
.client-form-field select { appearance: auto; }
html[data-theme="light"] .works-action-note { margin-top: 10px; font-size: 12px; }
html[data-theme="light"] .works-error { margin-top: 10px; font-size: 12px; }
html[data-theme="light"] .collect-save-note { color: #98a1af; }
body.app main.collect-main #collectEmpty { display: none; }

/* 统计卡 */
html[data-theme="light"] .ws-stats { gap: 12px; margin: 0 0 14px; }
html[data-theme="light"] .ws-stat {
  padding: 14px 16px 13px 18px;
  border: 1px solid #e8ebf2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
html[data-theme="light"] .ws-stat::before {
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  border-radius: 0;
  background: var(--stat-color);
  opacity: 1;
}
html[data-theme="light"] .ws-stat .ws-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--stat-soft);
  color: var(--stat-color);
}
html[data-theme="light"] .ws-stat b {
  margin-top: 11px;
  color: #141a24;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.04em;
}
html[data-theme="light"] .ws-stat small { margin-top: 3px; color: #8b94a3; font-size: 11.5px; }
html[data-theme="light"] .ws-stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* 采集任务列表 */
html[data-theme="light"] body.app main.lp-page.ws-tool-page > section.client-recent-tasks {
  padding: 17px 20px 16px;
}
.client-task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 13px;
}
.client-task-title { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.client-task-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border: 1px solid #dce8ff;
  border-radius: 50%;
  background: #eff5ff;
  color: #2563eb;
}
.client-task-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.app .client-task-title h2 { margin: 0; color: #141a24; font-size: 14.5px; font-weight: 650; letter-spacing: -.02em; }
body.app .client-task-title p { margin-top: 2px; color: #98a1af; font-size: 11.5px; line-height: 1.5; }
.client-task-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-left: auto;
  color: #707a89;
  font-size: 11.5px;
}
.client-check { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.client-check input { accent-color: #2563eb; }
.client-selected { white-space: nowrap; }
.client-selected b { color: #141a24; font-weight: 600; }
.client-task-list { display: flex; flex-direction: column; gap: 8px; }
.client-task-more { display: flex; justify-content: center; padding: 4px 0 2px; }
.client-task-more .btn { min-width: 112px; }
.client-task-empty {
  padding: 18px 12px;
  border: 1px dashed #e5eaf2;
  border-radius: 8px;
  background: #fbfcff;
  color: #98a1af;
  font-size: 12px;
  text-align: center;
}
.client-task-item {
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.client-task-item:hover { border-color: #dfe7f4; }
.client-task-item.is-focused { border-color: #b9cffa; box-shadow: 0 0 0 3px #eef4ff; }
.client-task-row {
  display: grid;
  grid-template-columns: 20px minmax(220px, 1.25fr) minmax(300px, 1.5fr) auto;
  align-items: center;
  gap: 16px;
  padding: 11px 14px;
  min-height: 64px;
}
.client-task-check { display: flex; align-items: center; justify-content: center; }
.client-task-check input { width: 15px; height: 15px; accent-color: #2563eb; }
.client-task-info { min-width: 0; }
.client-task-info-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.client-task-status {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  line-height: 1.55;
  white-space: nowrap;
}
.client-task-status.is-done { background: #e9f8ef; color: #179a52; }
.client-task-status.is-partial { background: #fff5e6; color: #c47a10; }
.client-task-status.is-failed { background: #ffeded; color: #dc4646; }
body.app .client-task-name {
  min-width: 0;
  overflow: hidden;
  color: #303846;
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-task-time { display: block; margin-top: 4px; color: #9aa3b1; font-size: 11px; }
.client-task-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 12px;
  min-width: 0;
}
.client-task-metric { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body.app .client-task-metric i { color: #98a1af; font-size: 10.5px; font-style: normal; }
body.app .client-task-metric b { color: #303846; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.client-task-view { flex: 0 0 auto; white-space: nowrap; }
.client-task-expand { border-top: 1px dashed #edf0f5; background: #fbfcff; padding: 11px 14px; }
.client-task-works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.client-task-work {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px;
  border: 1px solid #edf0f5;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.client-task-work:hover { border-color: #c9daf8; }
.client-task-work-cover {
  display: block;
  width: 40px;
  height: 52px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 5px;
  background: #eef1f6;
}
.client-task-work-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.client-task-work-cover.no-img { background: linear-gradient(135deg, #eef3fb, #e3ebf8); }
.client-task-work-copy { min-width: 0; }
.client-task-work-copy b {
  display: -webkit-box;
  overflow: hidden;
  color: #303846;
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.client-task-work-copy small { display: block; margin-top: 3px; color: #9aa3b1; font-size: 10.5px; }
.client-task-work-empty { padding: 9px 4px; color: #98a1af; font-size: 11.5px; }

/* 作品库筛选与表格 */
html[data-theme="light"] body.app .lp-page.ws-tool-page .ws-library-filter.panel {
  padding: 12px;
  margin-top: 14px;
}
html[data-theme="light"] .ws-filter-search,
html[data-theme="light"] .ws-filter-bar select {
  height: 36px;
  border-color: #e3e8f0;
  border-radius: 7px;
  background: #fbfcff;
}
html[data-theme="light"] .ws-more-filters { margin-top: 10px; border-top: 1px solid #f1f3f8; }
html[data-theme="light"] .ws-more-filters summary { color: #707a89; font-size: 12px; }
html[data-theme="light"] .ws-more-grid label span { color: #8b94a3; }
html[data-theme="light"] .ws-library-bulk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f5;
  background: #f7faff;
  color: #6b7280;
  font-size: 12px;
}
html[data-theme="light"] .ws-library-bulk[hidden] { display: none; }
.ws-library-table th {
  padding: 11px 14px;
  border-bottom: 1px solid #edf0f5;
  background: #f8f9fc;
  color: #8b94a3;
  font-size: 11px;
  font-weight: 500;
}
.ws-library-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #f2f4f8;
  vertical-align: middle;
}
.ws-library-table tbody tr:last-child td { border-bottom: 0; }
.ws-library-table tbody tr:hover { background: #fbfcff; }
.ws-library-work {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 430px;
  color: inherit;
  text-decoration: none;
}
.ws-library-thumb {
  display: block;
  width: 44px;
  height: 56px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 5px;
  background: #eef1f6;
}
.ws-library-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-library-thumb.no-img { background: linear-gradient(135deg, #eef3fb, #e1eaf8); }
.ws-library-work-copy { min-width: 0; }
.ws-library-title {
  display: -webkit-box;
  overflow: hidden;
  color: #303846;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ws-library-sub { display: block; margin-top: 3px; color: #9aa3b1; font-size: 10.5px; }
.ws-library-author { color: #4d5665; font-size: 11.5px; }
.ws-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f2f4f8;
  color: #6b7280;
  font-size: 10.5px;
}
.ws-source { color: #6b7280; font-size: 11.5px; white-space: nowrap; }
.ws-library-time b { display: block; color: #4d5665; font-size: 11.5px; font-weight: 500; }
.ws-library-time small { display: block; margin-top: 3px; color: #9aa3b1; font-size: 10.5px; white-space: nowrap; }
.ws-library-digg { color: #303846; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ws-copy-pill {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f2f4f8;
  color: #6b7280;
  font-size: 10.5px;
}
.ws-copy-pill.is-done { background: #e9f8ef; color: #179a52; }
.ws-library-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ws-link-btn {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-family: inherit;
  font-size: 11.5px;
  text-decoration: none;
  cursor: pointer;
}
.ws-link-btn:hover { text-decoration: underline; }
html[data-theme="light"] .ws-library-empty { min-height: 220px; }
.ws-library-limit {
  padding: 10px 14px;
  border-top: 1px solid var(--tpl-line-soft);
  color: var(--tpl-muted);
  font-size: 11.5px;
  text-align: center;
}
.ws-library-limit[hidden] { display: none; }

/* 采集中心 / 首页功能卡在蓝白皮肤下统一成蓝灰 */
html[data-theme="light"] .ws-method-card,
html[data-theme="light"] .ws-fn-card {
  border: 1px solid #e8ebf2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
html[data-theme="light"] .ws-method-card:hover,
html[data-theme="light"] .ws-fn-card:hover {
  border-color: #bcd2fa;
  box-shadow: 0 8px 20px -18px rgba(37, 99, 235, .35);
}
html[data-theme="light"] .ws-method-card .ws-ico.fn-violet,
html[data-theme="light"] .ws-method-card .ws-ico.fn-blue,
html[data-theme="light"] .ws-method-card .ws-ico.fn-teal {
  background: #eef4ff;
  color: #2563eb;
}

/* 移动端 */
@media (max-width: 900px) {
  html[data-theme="light"] body.app:has(.lp-home) .site-header,
  html[data-theme="light"] body.app:has(.lp-page) .site-header { height: auto; }
  html[data-theme="light"] body.app:has(.lp-home) .site-header-inner,
  html[data-theme="light"] body.app:has(.lp-page) .site-header-inner {
    min-height: 102px;
    grid-template-rows: 60px 42px;
  }
  html[data-theme="light"] body.app:has(.lp-home) .primary-nav,
  html[data-theme="light"] body.app:has(.lp-page) .primary-nav { height: 42px; }
  html[data-theme="light"] body.app:has(.lp-home) .nav-link,
  html[data-theme="light"] body.app:has(.lp-page) .nav-link { height: auto; padding: 6px 10px; }
  html[data-theme="light"] body.app .shell { min-height: calc(100vh - 102px); }
  .ws-tabs-page { width: 100%; }
  .client-kw-form { grid-template-columns: 1fr 1fr; gap: 14px; }
  .client-form-field-kw { grid-column: 1 / -1; }
  .client-task-row {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    row-gap: 9px;
  }
  .client-task-info { grid-column: 2; grid-row: 1; }
  .client-task-view { grid-column: 3; grid-row: 1; }
  .client-task-metrics { grid-column: 2 / 4; grid-row: 2; }
  .client-task-head { align-items: flex-start; }
  .client-task-tools { width: 100%; margin-left: 0; }
  html[data-theme="light"] .ws-stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  html[data-theme="light"] body.app main.lp-page.ws-tool-page > section:not(.ws-page-head) {
    padding: 15px 15px;
    border-radius: 10px;
  }
  html[data-theme="light"] body.app main.lp-page.ws-tool-page > section.ws-library-table-panel { padding: 0; }
  html[data-theme="light"] .ws-page-head h1 { font-size: 22px; }
  .client-form-foot { align-items: flex-start; }
  .client-form-actions { width: 100%; margin-left: 0; }
  .client-form-actions .btn { flex: 1 1 0; }
  .client-task-row { gap: 10px; padding: 10px 11px; }
  .client-task-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .client-task-expand { padding: 10px 11px; }
  .client-task-works { grid-template-columns: 1fr; }
  .client-task-tools .btn { padding: 0 9px; }
  .ws-stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme="light"] .ws-stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-library-table:has(.ws-library-empty) { min-width: 0; }
  .ws-library-table:has(.ws-library-empty) thead { display: none; }
  .ws-library-table:has(.ws-library-empty) td { padding: 0; }
  .ws-library-head { flex-direction: row; align-items: flex-start; }
  .ws-library-head .ws-page-head-side { flex: 0 0 auto; }
  .ws-library-head .ws-page-head-copy { flex: 1 1 auto; }
  .ws-filter-reset { margin-left: 0; }
  .ws-stats-5 .ws-stat:last-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .client-kw-form { grid-template-columns: 1fr; }
  .client-form-field-kw { grid-column: auto; }
  .client-task-tools { gap: 6px; }
  .client-task-tools .client-selected { display: none; }
  .ws-stats-5 { grid-template-columns: 1fr 1fr; gap: 8px; }
  html[data-theme="light"] .ws-stats-5 { grid-template-columns: 1fr 1fr; gap: 8px; }
  html[data-theme="light"] .ws-stat { padding: 12px 12px 11px 15px; }
  html[data-theme="light"] .ws-stat b { font-size: 23px; }
  .ws-library-head .ws-page-head-side { align-self: flex-end; }
}

/* 深色模式下新组件的底色 */
html[data-theme="dark"] .client-task-item,
html[data-theme="dark"] .client-task-work { background: var(--lp-card); border-color: var(--tpl-line); }
html[data-theme="dark"] .client-task-expand,
html[data-theme="dark"] .client-task-empty { background: var(--lp-card-2); border-color: var(--tpl-line); }
html[data-theme="dark"] .client-task-icon { background: rgba(37, 99, 235, .18); border-color: rgba(37, 99, 235, .35); color: #8fb3ff; }
html[data-theme="dark"] body.app .client-task-title h2,
html[data-theme="dark"] body.app .client-task-name,
html[data-theme="dark"] body.app .client-task-metric b,
html[data-theme="dark"] .client-task-work-copy b,
html[data-theme="dark"] .ws-library-title { color: var(--tpl-ink); }
html[data-theme="dark"] body.app .client-task-title p { color: var(--tpl-muted); }
html[data-theme="dark"] .ws-filter-search,
html[data-theme="dark"] .ws-filter-bar select {
  border-color: var(--tpl-line);
  background: var(--lp-card-2);
  color: var(--tpl-body);
}
html[data-theme="dark"] .ws-filter-search input { color: var(--tpl-ink); }
html[data-theme="dark"] .ws-library-table th {
  border-color: var(--tpl-line);
  background: #0d1422;
  color: var(--tpl-muted);
}
html[data-theme="dark"] .client-danger-btn {
  border-color: rgba(248, 113, 113, .42);
  color: #f3a1a1;
}
html[data-theme="dark"] .client-task-time,
html[data-theme="dark"] .client-task-metric i,
html[data-theme="dark"] .client-task-work-copy small { color: var(--tpl-muted); }
html[data-theme="dark"] .client-head-note { background: rgba(37, 99, 235, .18); color: #9db9f5; }
html[data-theme="dark"] .ws-library-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
html[data-theme="dark"] .ws-library-bulk { background: rgba(37, 99, 235, .12); border-color: var(--tpl-line); }
html[data-theme="dark"] .client-danger-btn { background: transparent; }

/* ==========================================================================
   全站收口：把早期模板残留的紫/黑强调统一成蓝
   ========================================================================== */

html[data-theme="light"] body.app .lp-page .section-kicker,
html[data-theme="light"] body.app .lp-page .lp-kicker,
html[data-theme="light"] body.app .lp-home .section-kicker,
html[data-theme="light"] body.app .lp-home .lp-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}
html[data-theme="light"] body.app .lp-page .section-kicker::before,
html[data-theme="light"] body.app .lp-page .lp-kicker::before,
html[data-theme="light"] body.app .lp-home .section-kicker::before,
html[data-theme="light"] body.app .lp-home .lp-kicker::before { display: none; }

html[data-theme="light"] body.app:has(.lp-home) {
  --lp-violet: #2563eb;
  --lp-violet-soft: #eef4ff;
  --lp-pink: #2563eb;
  --lp-pink-soft: #eef4ff;
  --lp-blue: #2563eb;
  --lp-blue-soft: #eef4ff;
  --lp-lav: #f3f7ff;
  --lp-btn-bg: #2563eb;
  --lp-btn-hover: #1d4ed8;
  --accent: #2563eb;
  --accent-bg: #eef4ff;
}
html[data-theme="light"] .lp-home .lp-hero-bg {
  background:
    radial-gradient(ellipse 46% 58% at 87% 16%, rgba(37, 99, 235, .10), transparent 66%),
    radial-gradient(ellipse 30% 40% at 100% 58%, rgba(96, 165, 250, .09), transparent 70%),
    radial-gradient(ellipse 34% 38% at 12% 0%, rgba(37, 99, 235, .05), transparent 66%),
    #ffffff;
}
html[data-theme="light"] .lp-home .lp-hero-bg::after {
  background: conic-gradient(from 210deg, rgba(37, 99, 235, .09),
    rgba(59, 130, 246, .13), rgba(147, 197, 253, .11), rgba(37, 99, 235, .09));
  opacity: .6;
}
html[data-theme="light"] .lp-home .lp-feedback-card {
  border-color: #e8ebf2;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 40% 50% at 4% 0%, rgba(37, 99, 235, .05), transparent 68%),
    linear-gradient(135deg, #f8fbff, #fff 58%);
}
html[data-theme="light"] .lp-home .lp-feedback-card::before {
  background: radial-gradient(circle, rgba(37, 99, 235, .07), transparent 68%);
}
html[data-theme="light"] .lp-home .lp-feedback-perk { border-color: #e3ebf8; background: #fff; }
html[data-theme="light"] .lp-home .lp-feedback-perkicon { background: #2563eb; }
html[data-theme="light"] .lp-home .lp-feedback-form textarea:focus,
html[data-theme="light"] .lp-home .lp-feedback-form input[type="text"]:focus {
  border-color: #9dbcf5;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .07);
}
html[data-theme="light"] .lp-home .lp-feedback-form .fb-actions .btn {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  border-radius: 7px;
}
html[data-theme="light"] .lp-home .lp-feedback-form .fb-actions .btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
html[data-theme="light"] .lp-home .lp-pricing-glow {
  background: radial-gradient(ellipse, rgba(37, 99, 235, .08), transparent 68%);
}
html[data-theme="light"] .lp-home .lp-plan {
  border-color: #e8ebf2;
  border-radius: 10px;
}
html[data-theme="light"] .lp-home .lp-plan.is-best {
  border-color: #bcd2fa;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(37, 99, 235, .07), transparent 70%),
    linear-gradient(180deg, #f8fbff, #fff 44%);
  box-shadow: 0 24px 54px -44px rgba(37, 99, 235, .5);
}
html[data-theme="light"] .lp-home .lp-plan .plan-badge {
  background: #2563eb;
  box-shadow: 0 8px 16px -8px rgba(37, 99, 235, .55);
}
html[data-theme="light"] .lp-home .lp-plan .plan-buy {
  border-color: #2563eb;
  border-radius: 7px;
  background: #fff;
  color: #2563eb;
}
html[data-theme="light"] .lp-home .lp-plan .plan-buy span { color: #2563eb; }
html[data-theme="light"] .lp-home .lp-plan .plan-buy:hover {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}
html[data-theme="light"] .lp-home .lp-plan .plan-buy:hover span { color: #fff; }
html[data-theme="light"] .lp-home .lp-plan .btn-primary {
  border-color: #2563eb;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  box-shadow: none;
}
html[data-theme="light"] .lp-home .lp-plan .btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
html[data-theme="light"] .lp-home .lp-plan .btn-primary span { color: #fff; }
html[data-theme="light"] .ws-stat.violet { --stat-color: #2563eb; --stat-soft: #eef4ff; }
html[data-theme="light"] .ws-fn-card.fn-blue,
html[data-theme="light"] .ws-fn-card.fn-violet,
html[data-theme="light"] .ws-fn-card.fn-pink,
html[data-theme="light"] .ws-fn-card.fn-green,
html[data-theme="light"] .ws-fn-card.fn-amber {
  --fn-color: #2563eb;
  --fn-soft: #eef4ff;
}

html[data-theme="light"] body.app .lp-page .style-chip:hover {
  border-color: #b9cdf3;
  color: #2563eb;
}
html[data-theme="light"] body.app .lp-page .style-chip.is-on {
  border-color: #2563eb;
  background: #eef4ff;
  color: #2563eb;
  box-shadow: none;
}
html[data-theme="light"] body.app .lp-page .empty-state {
  border-color: #dbe6f7;
  border-radius: 10px;
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(37, 99, 235, .045), transparent 70%),
    #f8fbff;
}
html[data-theme="light"] body.app .lp-page .empty-state svg { stroke: #2563eb; }
html[data-theme="light"] body.app .lp-page .empty-state b { font-size: 16px; }
html[data-theme="light"] body.app .lp-page .works-nextstep,
html[data-theme="light"] body.app .lp-page .guide-tip {
  border-color: #dbe6f7;
  background: #f5f9ff;
}

/* 采集结果：作品库同款列表 */
.kc-native-hidden { display: none !important; }
.kc-list-wrap {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--tpl-line);
  border-radius: 9px;
  background: var(--lp-card, #fff);
}
.kc-list-wrap[hidden] { display: none; }
.kc-list-wrap .ws-library-table-wrap { border: 0; border-radius: 0; }
.kc-work-table { min-width: 880px; }
.kc-work-table tbody tr.is-picked { background: #f7faff; }
.works-results .ws-library-bulk { border: 1px solid var(--tpl-line); border-radius: 8px; margin-bottom: 10px; }
.works-results .works-empty { margin-top: 10px; }
.works-toolbar { flex-wrap: wrap; }
.works-toolbar .works-sort-note { flex: 1 1 100%; }
.collect-ops { flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) {
  .kc-work-table { min-width: 760px; }
  .works-toolbar { gap: 8px; }
  .works-toolbar input,
  .works-toolbar select { min-width: 0; }
}

html[data-theme="light"] body.app .lp-page .works-progress-kicker { color: #2563eb; }
html[data-theme="light"] body.app .lp-page .works-progress-track i {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}
html[data-theme="light"] body.app .lp-page .works-toolbar h2 {
  font-size: 16px;
  letter-spacing: -.02em;
}
html[data-theme="light"] body.app .lp-page .works-toolbar .works-total {
  font-size: 11.5px;
}

/* 最近任务展开：作品库同款表格 */
.kc-task-table-wrap {
  overflow: hidden;
  border: 1px solid var(--tpl-line);
  border-radius: 8px;
  background: var(--lp-card, #fff);
}
.kc-task-works-table { min-width: 900px; }
.kc-task-bulk { border: 1px solid var(--tpl-line); border-radius: 8px; margin-bottom: 8px; }
.client-task-expand { padding: 11px 12px; }
@media (max-width: 720px) {
  .kc-task-works-table { min-width: 760px; }
}

/* 主页采集任务展开：作品列表重排版（只作用于主页采集） */
.kc-home-works-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
}
.kc-home-works-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.kc-task-head-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kc-home-works-title b { color: #303846; font-size: 13px; font-weight: 600; }
.kc-home-works-count {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f2f5fa;
  color: #7b8595;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kc-home-scroll-hint {
  display: none;
  color: #9aa3b1;
  font-size: 10.5px;
  white-space: nowrap;
}
.kc-home-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8b94a3;
  font-size: 11px;
  white-space: nowrap;
}
.kc-home-sort select {
  height: 30px;
  min-width: 112px;
  padding: 0 10px;
  border: 1px solid #e3e8f0;
  border-radius: 7px;
  background: #fff;
  color: #4d5665;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
.kc-home-sort select:focus {
  border-color: var(--tpl-accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.kc-home-task-table-wrap {
  max-height: 620px;
  overflow: auto;
  border: 1px solid var(--tpl-line, #edf0f5);
  border-radius: 9px;
  background: var(--lp-card, #fff);
}
.kc-home-task-table { min-width: 1180px; }
.kc-home-task-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  white-space: nowrap;
}
.kc-home-task-table td { padding: 11px 12px; }
.kc-home-task-table .kc-home-col-author {
  width: 100px;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kc-home-task-table .kc-home-col-type { width: 72px; }
.kc-home-task-table .kc-home-col-source { width: 84px; }
.kc-home-task-table .kc-home-col-time { width: 108px; }
.kc-home-task-table th.kc-home-metric-head { width: 66px; }
.kc-home-task-table .kc-home-col-copy { width: 84px; }
.kc-home-task-table .kc-home-col-actions { width: 124px; }
.kc-home-task-table .kc-home-col-type .ws-pill,
.kc-home-task-table .kc-home-col-copy .ws-copy-pill { white-space: nowrap; }
.kc-home-task-table th.kc-home-metric-head,
.kc-home-task-table td.kc-home-metric { text-align: right; }
.kc-home-task-table td.kc-home-metric {
  color: #6b7280;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kc-home-task-table td.kc-home-metric.is-likes {
  color: #303846;
  font-weight: 600;
}
.kc-home-task-table th.is-active { color: var(--tpl-accent, #2563eb); }
.kc-sort-arrow {
  display: inline-block;
  width: 9px;
  margin-left: 3px;
  font-size: 10px;
  font-style: normal;
  visibility: hidden;
}
.kc-home-task-table th.is-active .kc-sort-arrow { visibility: visible; }
.kc-home-task-table tbody tr.is-picked { background: #eef5ff; }
.kc-home-task-table tbody tr.is-picked:hover { background: #e8f1ff; }
.kc-home-task-table .ws-library-work { max-width: 460px; }
.kc-home-task-table .ws-library-title { font-size: 12.5px; }
.kc-home-task-table .ws-library-actions { gap: 12px; }
.kc-home-bulk { margin-bottom: 8px; }

html[data-theme="dark"] .kc-home-works-title b { color: var(--tpl-ink); }
html[data-theme="dark"] .kc-home-works-count {
  background: rgba(255, 255, 255, .06);
  color: var(--tpl-muted);
}
html[data-theme="dark"] .kc-home-sort { color: var(--tpl-muted); }
html[data-theme="dark"] .kc-home-sort select {
  border-color: var(--tpl-line);
  background: var(--lp-card-2);
  color: var(--tpl-body);
}
html[data-theme="dark"] .kc-home-task-table-wrap {
  border-color: var(--tpl-line);
  background: var(--lp-card);
}
html[data-theme="dark"] .kc-home-task-table td.kc-home-metric { color: var(--tpl-muted); }
html[data-theme="dark"] .kc-home-task-table td.kc-home-metric.is-likes { color: var(--tpl-ink); }
html[data-theme="dark"] .kc-home-task-table tbody tr.is-picked { background: rgba(37, 99, 235, .16); }
html[data-theme="dark"] .kc-home-task-table tbody tr.is-picked:hover { background: rgba(37, 99, 235, .22); }

@media (max-width: 1320px) {
  .kc-home-scroll-hint { display: inline; }
}

@media (max-width: 720px) {
  .kc-home-works-head { align-items: flex-start; flex-wrap: wrap; }
  .kc-home-scroll-hint { display: inline; }
  .kc-home-sort { width: 100%; justify-content: flex-end; }
  .kc-task-head-tools { width: 100%; justify-content: flex-end; }
  .kc-task-head-tools .kc-home-sort { width: auto; }
  .kc-home-task-table-wrap { max-height: 70vh; }
}

/* 文案提取 · 最近记录 */
.extract-recent { scroll-margin-top: 84px; }
.kc-extract-table { min-width: 900px; }
.kc-extract-table .kc-record-copy { max-width: 300px; }
.kc-extract-table .ws-col-check input { display: block; margin: 0 auto; }
.kc-history-more {
  display: flex;
  justify-content: center;
  padding: 5px 0 2px;
}
.kc-history-more[hidden] { display: none; }
.kc-history-more .btn { min-width: 112px; }
.kc-record-preview {
  display: -webkit-box;
  overflow: hidden;
  color: var(--tpl-body);
  font-size: 11.5px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.kc-author { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.kc-author-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #eef4ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
}
.kc-author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-author > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kc-record-expand td { padding: 0 !important; background: #fbfcff; }
.kc-record-full {
  max-height: 420px;
  overflow: auto;
  padding: 14px 16px;
  color: var(--tpl-body);
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}
.ws-link-btn:disabled { color: #b3bac5; cursor: not-allowed; text-decoration: none; }
html[data-theme="dark"] .kc-record-expand td { background: var(--lp-card-2); }
@media (max-width: 720px) {
  .kc-extract-table { min-width: 720px; }
  .extract-recent { scroll-margin-top: 110px; }
}

/* 文案提取 · 输出结果列表 */
.kc-result-list { margin: 0 0 14px; }
.kc-result-table { min-width: 860px; }
.kc-result-table .kc-record-copy { max-width: 360px; }
.kc-result-chars { display: block; margin-top: 4px; color: var(--tpl-muted); font-size: 10.5px; }
.kc-result-expand td { padding: 0 !important; background: #fbfcff; }
.kc-result-full {
  max-height: 460px;
  overflow: auto;
  padding: 14px 16px 10px;
  color: var(--tpl-body);
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}
.kc-result-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}
html[data-theme="dark"] .kc-result-expand td { background: var(--lp-card-2); }
@media (max-width: 720px) {
  .kc-result-table { min-width: 720px; }
}

/* 提取结果表：查看文案用原生 checkbox 展开，点击不依赖 JS */
.kc-result-expand { display: none; }
tr.ws-library-row:has(.kc-view-toggle:checked) + tr.kc-result-expand {
  display: table-row;
}
.kc-view-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.kc-view-label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.ws-link-btn.is-disabled { color: #b3bac5; cursor: not-allowed; }

/* 记录/结果表固定列宽：展开全文时表格列不移动，按钮文字不变 */
.kc-extract-table, .kc-result-table { table-layout: fixed; }
.kc-extract-table th:nth-child(1) { width: 42px; }
.kc-extract-table th:nth-child(2) { width: 23%; }
.kc-extract-table th:nth-child(3) { width: 12%; }
.kc-extract-table th:nth-child(4) { width: 9%; }
.kc-extract-table th:nth-child(5) { width: 22%; }
.kc-extract-table th:nth-child(6) { width: 13%; }
.kc-extract-table th:nth-child(7) { width: 13%; }
.kc-result-table th:nth-child(1) { width: 30%; }
.kc-result-table th:nth-child(2) { width: 15%; }
.kc-result-table th:nth-child(3) { width: 30%; }
.kc-result-table th:nth-child(4) { width: 10%; }
.kc-result-table th:nth-child(5) { width: 15%; }

/* 文案提取结果表：作品数据列 + 标签置顶 */
.kc-result-table { min-width: 1180px; }
.kc-result-table th:nth-child(1) { width: 18%; }
.kc-result-table th:nth-child(2) { width: 9%; }
.kc-result-table th:nth-child(3) { width: 9%; }
.kc-result-table th:nth-child(4) { width: 5%; }
.kc-result-table th:nth-child(5) { width: 5%; }
.kc-result-table th:nth-child(6) { width: 5%; }
.kc-result-table th:nth-child(7) { width: 5%; }
.kc-result-table th:nth-child(8) { width: 20%; }
.kc-result-table th:nth-child(9) { width: 8%; }
.kc-result-table th:nth-child(10) { width: 16%; }
.kc-result-meta {
  color: var(--tpl-body);
  font-size: 11.5px;
  white-space: nowrap;
}
.kc-result-date { color: var(--tpl-muted); font-size: 11px; }
.kc-result-num { text-align: center; font-variant-numeric: tabular-nums; }
.kc-result-table th:nth-child(4),
.kc-result-table th:nth-child(5),
.kc-result-table th:nth-child(6),
.kc-result-table th:nth-child(7) { text-align: center; }
.kc-result-table .kc-result-meta { overflow: hidden; text-overflow: ellipsis; }
.kc-result-full {
  white-space: normal;
}
.kc-result-text {
  white-space: pre-wrap;
  word-break: break-word;
}
.kc-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}
.kc-result-tags .rw-tag,
.kc-rewrite-tags .rw-tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tpl-accent-soft, #eff5ff);
  color: var(--tpl-accent, #2563eb);
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .kc-result-table { min-width: 1040px; }
}

/* 二创结果表 */
.kc-rewrite-list { margin: 0 0 14px; }
.kc-rewrite-table {
  min-width: 1120px;
  table-layout: fixed;
}
.kc-rewrite-table th:nth-child(1) { width: 17%; }
.kc-rewrite-table th:nth-child(2) { width: 9%; }
.kc-rewrite-table th:nth-child(3) { width: 9%; }
.kc-rewrite-table th:nth-child(4) { width: 10%; }
.kc-rewrite-table th:nth-child(5) { width: 18%; }
.kc-rewrite-table th:nth-child(6) { width: 18%; }
.kc-rewrite-table th:nth-child(7) { width: 8%; }
.kc-rewrite-table th:nth-child(8) { width: 11%; }
.kc-rw-preview { max-width: 280px; }
.kc-rw-metrics {
  color: var(--tpl-body);
  font-size: 11px;
  line-height: 1.65;
  white-space: nowrap;
}
.kc-rw-metrics small { display: block; }
.kc-rewrite-expand td {
  padding: 0 !important;
  background: #fbfcff;
}
.kc-rewrite-full {
  padding: 14px 16px 12px;
  color: var(--tpl-body);
}
.kc-rewrite-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.kc-rewrite-section { margin-top: 12px; }
.kc-rewrite-section:first-of-type { margin-top: 0; }
.kc-rewrite-section h4 {
  margin: 0 0 7px;
  color: var(--tpl-ink);
  font-size: 12px;
  font-weight: 650;
}
.kc-rewrite-title {
  display: block;
  margin-bottom: 6px;
  color: var(--tpl-ink);
  font-size: 13px;
  line-height: 1.6;
}
.kc-rewrite-text {
  max-height: 360px;
  overflow: auto;
  color: var(--tpl-body);
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}
.kc-rewrite-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.kcrw-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 999;
  transform: translate(-50%, 8px);
  padding: 9px 18px;
  border: 1px solid var(--tpl-line);
  border-radius: 9px;
  background: var(--tpl-card, #fff);
  color: var(--tpl-ink);
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 28px rgba(16, 24, 40, .16);
}
.kcrw-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
html[data-theme="dark"] .kc-rewrite-expand td { background: var(--lp-card-2); }
@media (max-width: 720px) {
  .kc-rewrite-table { min-width: 980px; }
}

/* 二创 · 最近记录表 */
.rewrite-recent { scroll-margin-top: 84px; }
.kc-rewrite-history-table { min-width: 1040px; table-layout: fixed; }
.kc-rewrite-history-table th:nth-child(1) { width: 42px; }
.kc-rewrite-history-table th:nth-child(2) { width: 21%; }
.kc-rewrite-history-table th:nth-child(3) { width: 9%; }
.kc-rewrite-history-table th:nth-child(4) { width: 21%; }
.kc-rewrite-history-table th:nth-child(5) { width: 19%; }
.kc-rewrite-history-table th:nth-child(6) { width: 9%; }
.kc-rewrite-history-table th:nth-child(7) { width: 11%; }
.kc-rewrite-history-table th:nth-child(8) { width: 10%; }
.kc-rewrite-history-table .kc-record-copy { max-width: 280px; }
.kc-rewrite-history-table .ws-col-check input { display: block; margin: 0 auto; }
@media (max-width: 720px) {
  .kc-rewrite-history-table { min-width: 900px; }
  .rewrite-recent { scroll-margin-top: 110px; }
}

/* 提取记录展开：标签/作品数据置顶 */
.kc-record-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}
.kc-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.kc-record-meta-chip {
  padding: 2px 8px;
  border: 1px solid var(--tpl-line);
  border-radius: 999px;
  color: var(--tpl-muted);
  font-size: 10.5px;
  white-space: nowrap;
}
.kc-record-raw {
  white-space: pre-wrap;
  word-break: break-word;
}

/* 整站内容宽度：比旧版 1280 略宽，给作品数据表留出空间；仍然保持居中阅读。 */
body.app main.lp-page {
  max-width: 1360px;
}
body.app .lp-home .lp-container {
  max-width: 1360px;
}
body.app:has(.lp-home) .site-header-inner,
body.app:has(.lp-page) .site-header-inner {
  max-width: 1360px;
}
body.app:has(.lp-page) .foot-inner,
body.app:has(.lp-page) .foot-bottom {
  max-width: 1296px;
}
/* 主页采集页数据列较多，单独放宽内容区、页头和页脚，保持左右对齐。 */
body.app main.works-main.lp-page { max-width: 1440px; }
body.app:has(.works-main) .site-header-inner { max-width: 1440px; }
body.app:has(.works-main) .foot-inner,
body.app:has(.works-main) .foot-bottom { max-width: 1376px; }
.kc-result-table { min-width: 1160px; }

/* 结果表在窄屏上内部横向滚动，不要把右侧列裁掉 */
.kc-list-wrap.kc-result-list,
.kc-list-wrap.kc-rewrite-list {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* 二创结果表：列宽以“不挤、不裁按钮”为准 */
.kc-rewrite-table { min-width: 1180px; }
.kc-rewrite-table th:nth-child(1) { width: 15%; }
.kc-rewrite-table th:nth-child(2) { width: 8%; }
.kc-rewrite-table th:nth-child(3) { width: 8%; }
.kc-rewrite-table th:nth-child(4) { width: 12%; }
.kc-rewrite-table th:nth-child(5) { width: 17%; }
.kc-rewrite-table th:nth-child(6) { width: 16%; }
.kc-rewrite-table th:nth-child(7) { width: 7%; }
.kc-rewrite-table th:nth-child(8) { width: 17%; }
.kc-rewrite-table .ws-library-actions { gap: 7px; }
.kc-rewrite-table .kc-rw-metric-line { display: block; white-space: nowrap; }
.kc-rewrite-table .kc-rw-metrics { overflow: hidden; }

/* 二创记录表：操作改成“查看 / 复制 / 原视频”，列宽留够 */
.kc-rewrite-history-table { min-width: 1040px; }
.kc-rewrite-history-table th:nth-child(2) { width: 20%; }
.kc-rewrite-history-table th:nth-child(3) { width: 9%; }
.kc-rewrite-history-table th:nth-child(4) { width: 20%; }
.kc-rewrite-history-table th:nth-child(5) { width: 18%; }
.kc-rewrite-history-table th:nth-child(6) { width: 8%; }
.kc-rewrite-history-table th:nth-child(7) { width: 12%; }
.kc-rewrite-history-table th:nth-child(8) { width: 13%; }
.kc-rewrite-history-table .ws-library-actions { gap: 7px; }
@media (max-width: 720px) {
  .kc-rewrite-table { min-width: 1080px; }
}

.kc-rewrite-tags-label {
  align-self: center;
  color: var(--tpl-muted);
  font-size: 10.5px;
  white-space: nowrap;
}

/* 二创表：作者名不能压到下一列；长名字省略 */
.kc-rewrite-table th:nth-child(1) { width: 15%; }
.kc-rewrite-table th:nth-child(2) { width: 11%; }
.kc-rewrite-table th:nth-child(3) { width: 8%; }
.kc-rewrite-table th:nth-child(4) { width: 12%; }
.kc-rewrite-table th:nth-child(5) { width: 15%; }
.kc-rewrite-table th:nth-child(6) { width: 15%; }
.kc-rewrite-table th:nth-child(7) { width: 7%; }
.kc-rewrite-table th:nth-child(8) { width: 17%; }
.kc-rewrite-table .ws-library-author .kc-author,
.kc-rewrite-history-table .ws-library-author .kc-author {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.kc-rewrite-table .ws-library-author .kc-author > span:last-child,
.kc-rewrite-history-table .ws-library-author .kc-author > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kc-rewrite-history-table th:nth-child(2) { width: 18%; }
.kc-rewrite-history-table th:nth-child(3) { width: 12%; }
.kc-rewrite-history-table th:nth-child(4) { width: 19%; }
.kc-rewrite-history-table th:nth-child(5) { width: 16%; }
.kc-rewrite-history-table th:nth-child(6) { width: 8%; }
.kc-rewrite-history-table th:nth-child(7) { width: 10%; }
.kc-rewrite-history-table th:nth-child(8) { width: 17%; }

/* 首页价格区：从独立价格页搬回，收紧上下留白 */
.home-main .ws-home-pricing {
  padding: 52px 0 44px;
  scroll-margin-top: 88px;
}
.home-main .ws-home-pricing .lp-section-head {
  display: block;
  text-align: left;
  margin-bottom: 24px;
}
.home-main .ws-home-pricing .lp-section-head p {
  max-width: 760px;
  margin-top: 6px;
  justify-self: start;
}
.home-main .ws-home-pricing .lp-section-head h2 {
  font-size: clamp(24px, 2vw, 30px);
}
.ws-dash-body-top { padding-bottom: 8px; }

@media (max-width: 720px) {
  .home-main .ws-home-pricing {
    padding: 36px 0 30px;
    scroll-margin-top: 76px;
  }
  .home-main .ws-home-pricing .lp-section-head { margin-bottom: 18px; }
  .home-main .ws-home-pricing .lp-section-head h2 { font-size: 24px; }
}

/* 页脚：品牌 + 产品与工具 + 内容与支持，底部版权独立成行 */
body.app:has(.lp-home) .foot-col h3,
body.app:has(.lp-page) .foot-col h3 { font-size: 12.5px; }
body.app:has(.lp-home) .foot-col a,
body.app:has(.lp-page) .foot-col a { font-size: 12px; }
body.app:has(.lp-home) .foot-brand p,
body.app:has(.lp-page) .foot-brand p { font-size: 12px; }
body.app:has(.lp-home) .foot-bottom,
body.app:has(.lp-page) .foot-bottom { font-size: 11.5px; }

@media (min-width: 861px) {
  body.app .foot-inner { grid-template-columns: 1.8fr 1fr 1fr; }
}

/* 768–820px 不与桌面三栏抢宽度；手机保持两栏，品牌独占一行。 */
@media (max-width: 820px) {
  body.app:has(.lp-home) .foot,
  body.app:has(.lp-page) .foot { padding: 42px 20px 24px; }
  body.app:has(.lp-home) .foot-inner,
  body.app:has(.lp-page) .foot-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px 22px;
    margin-bottom: 30px;
  }
  body.app:has(.lp-home) .foot-brand,
  body.app:has(.lp-page) .foot-brand { grid-column: 1 / -1; }
  body.app:has(.lp-home) .foot-brand p,
  body.app:has(.lp-page) .foot-brand p { font-size: 11.5px; }
  body.app:has(.lp-home) .foot-bottom,
  body.app:has(.lp-page) .foot-bottom { font-size: 10.5px; line-height: 1.7; text-wrap: pretty; }
}
@media (max-width: 520px) {
  body.app .foot-bottom { justify-content: center; text-align: center; }
  body.app .foot-bottom .foot-dot { display: none; }
  body.app .foot-bottom span:last-child {
    flex: 1 0 100%;
    text-wrap: balance;
  }
}
@media (max-width: 380px) {
  body.app:has(.lp-home) .foot-bottom,
  body.app:has(.lp-page) .foot-bottom { font-size: 10px; }
}

/* 首页五张作品统计：平板宽度用三列，避免第五张孤零零占半行。 */
@media (min-width: 721px) and (max-width: 900px) {
  body.app:has(.lp-home) .ws-stats-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.app:has(.lp-home) .ws-stats-5 .ws-stat:last-child {
    grid-column: auto;
  }
}
