/* 博文全站皮肤 r1「极简白」（2026-11-15，Claude；何博选定：Ant Design 做底、样子学 shadcn/ui）
 * 只盖样子，不改任何功能。只在浅色模式生效（深色模式保持原样）。
 * 老网站：盖在 bowen-commercial-ui.css 上面；新页面（studio.html）：盖在 bowen-library-r1.css 上面。 */

/* ---------- 1. 颜色和字体（一处改，全站变） ---------- */
html.bowen-commercial-ui:not([data-theme="dark"]),
html.bw-studio {
  --bw-bg: #ffffff !important;
  --bw-side: #fafafa !important;
  --bw-soft: #f4f4f5 !important;
  --bw-hover: #f0f0f2 !important;
  --bw-active: #ececef !important;
  --bw-line: #e4e4e7 !important;
  --bw-line-soft: #f0f0f2 !important;
  --bw-text: #18181b !important;
  --bw-text-2: #3f3f46 !important;
  --bw-muted: #71717a !important;
  --bw-faint: #a1a1aa !important;
  --bw-ink: #18181b !important;
  --bw-ink-hover: #27272a !important;
  --bw-link: #4338ca !important;
  --bw-focus: rgba(24, 24, 27, 0.10) !important;
  --bw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif !important;

  /* 老网站自己的变量，换成极简白 */
  --bowen-ink: #18181b !important;
  --bowen-ink-soft: #3f3f46 !important;
  --bowen-ocean: #3f3f46 !important;
  --bowen-ocean-strong: #18181b !important;
  --bowen-jade: #4f46e5 !important;
  --bowen-clay: #ea580c !important;
  --bowen-canvas: #ffffff !important;
  --bowen-paper: #ffffff !important;
  --bowen-mist: #f4f4f5 !important;
  --bowen-line: #e4e4e7 !important;
  --bowen-text: #18181b !important;
  --bowen-muted: #71717a !important;
  --bowen-radius-sm: 8px !important;
  --bowen-radius: 12px !important;
  --bowen-radius-lg: 14px !important;
  --bowen-shadow: 0 1px 2px rgba(24, 24, 27, 0.06) !important;
  --bowen-shadow-soft: none !important;

  --font-display: var(--bw-font) !important;
  --color-bg: #ffffff !important;
  --color-bg-elevated: #ffffff !important;
  --color-surface: #ffffff !important;
  --color-surface-muted: #f4f4f5 !important;
  --color-surface-strong: #18181b !important;
  --color-text: #18181b !important;
  --color-text-muted: #71717a !important;
  --color-border: #e4e4e7 !important;
  --color-accent: #18181b !important;
  --color-primary: #18181b !important;
  --color-accent-hover: #27272a !important;
  --color-accent-soft: #f4f4f5 !important;
  --color-creator: #4338ca !important;
  --color-creator-soft: #eef2ff !important;
  --color-nav-bg: #fafafa !important;
  --color-nav-surface: #ffffff !important;
  --color-nav-text: #3f3f46 !important;
  --color-nav-muted: #71717a !important;
  --color-nav-border: #e4e4e7 !important;
  --color-nav-hover: #f0f0f2 !important;
  --color-nav-active: #ececef !important;
  --color-nav-active-hover: #e4e4e7 !important;
  --color-nav-active-text: #18181b !important;
  --color-nav-active-icon: #18181b !important;
  --color-nav-panel: #ffffff !important;
  --color-nav-panel-border: #e4e4e7 !important;
  --shadow-nav: none !important;
  --shadow-panel: 0 1px 2px rgba(24, 24, 27, 0.05) !important;
  --radius-sm: 8px !important;
  --radius-md: 10px !important;
  --radius-lg: 12px !important;
  --radius-xl: 16px !important;

  /* 新页面（资料室/写稿团）的变量 */
  --bg: #ffffff !important;
  --surface: #ffffff !important;
  --line: #e4e4e7 !important;
  --text: #18181b !important;
  --muted: #71717a !important;
  --soft: #a1a1aa !important;
  --side: #fafafa !important;
  --brand: #18181b !important;
  --brand-soft: #f4f4f5 !important;
  --brand-dark: #4338ca !important;
}

html.bowen-commercial-ui:not([data-theme="dark"]) body,
html.bw-studio body {
  background: #ffffff !important;
  color: var(--bw-text);
  font-family: var(--bw-font) !important;
}

/* ---------- 2. 左侧菜单（老网站） ---------- */
html.bowen-commercial-ui:not([data-theme="dark"]) .site-header:not(.workbench-site-header) {
  background: var(--bw-side) !important;
  border-right: 1px solid var(--bw-line) !important;
  box-shadow: none !important;
  color: var(--bw-text);
}
html.bowen-commercial-ui:not([data-theme="dark"]) .site-header:not(.workbench-site-header) .brand-lockup strong,
html.bowen-commercial-ui:not([data-theme="dark"]) .site-header:not(.workbench-site-header) .brand-lockup strong * { color: var(--bw-text) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .site-header:not(.workbench-site-header) .brand-lockup small { color: var(--bw-muted) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-account-panel {
  background: #ffffff !important;
  border: 1px solid var(--bw-line) !important;
  box-shadow: none !important;
  color: var(--bw-text) !important;
}
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-account-panel *,
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-credit-summary { color: var(--bw-text) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-credit-summary small,
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-credit-summary span { color: var(--bw-muted) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-account-icon-action {
  background: #ffffff !important;
  border: 1px solid var(--bw-line) !important;
  color: var(--bw-text-2) !important;
}
/* 老菜单项收起，换成统一的七步菜单（bowen-shell-r1.js 画的 .bw-nav） */
html.bowen-commercial-ui .creator-side-nav.bw-on > .creator-nav-section { display: none !important; }

/* ---------- 3. 统一菜单 .bw-nav（老网站和新页面共用） ---------- */
.bw-nav { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bw-nav .bw-gt { padding: 14px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #71717a; }
.bw-nav .bw-gt:first-child { padding-top: 2px; }
.bw-nav a.bw-link {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 8px;
  color: #3f3f46 !important; font-size: 14px; font-weight: 500; text-decoration: none !important; line-height: 1.2;
  background: transparent; box-shadow: none;
}
.bw-nav a.bw-link:hover { background: #f0f0f2; color: #18181b !important; }
.bw-nav a.bw-link.is-on { background: #ececef; color: #18181b !important; font-weight: 600; }
.bw-nav a.bw-link .bw-n { width: 18px; flex: none; font-size: 12px; font-weight: 600; color: #a1a1aa; text-align: center; font-variant-numeric: tabular-nums; }
.bw-nav a.bw-link.is-on .bw-n { color: #18181b; }
.bw-nav a.bw-link .bw-ic { width: 18px; height: 18px; flex: none; color: #71717a; }
.bw-nav a.bw-link.is-on .bw-ic { color: #18181b; }
.bw-nav a.bw-link .bw-tag { margin-left: auto; font-size: 11px; font-weight: 600; color: #a1a1aa; }
html[data-theme="dark"] .bw-nav a.bw-link { color: #d4d4d8 !important; }
html[data-theme="dark"] .bw-nav a.bw-link:hover, html[data-theme="dark"] .bw-nav a.bw-link.is-on { background: rgba(255,255,255,.08); color: #fff !important; }

/* ---------- 4. Ant Design 组件（按钮、输入框、标签页……） ---------- */
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-btn-primary:not(:disabled):not(.ant-btn-dangerous),
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-tool-launch,
html.bowen-commercial-ui:not([data-theme="dark"]) .script-submit-button,
html.bowen-commercial-ui:not([data-theme="dark"]) .bowen-card-primary {
  background: var(--bw-ink) !important;
  border-color: var(--bw-ink) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-btn-primary:not(:disabled):not(.ant-btn-dangerous):hover,
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-tool-launch:hover { background: var(--bw-ink-hover) !important; border-color: var(--bw-ink-hover) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-btn-default:not(:disabled):hover {
  color: var(--bw-text) !important; border-color: #a1a1aa !important;
}
html.bowen-commercial-ui:not([data-theme="dark"]) :where(.ant-btn, button):not(.ant-switch) { border-radius: 8px; }
html.bowen-commercial-ui:not([data-theme="dark"]) :where(.ant-input, .ant-input-affix-wrapper, .ant-select-selector, .ant-input-number, select, textarea) {
  border-radius: 8px !important;
  border-color: var(--bw-line);
}
html.bowen-commercial-ui:not([data-theme="dark"]) :is(.ant-input:focus, .ant-input-focused, .ant-input-affix-wrapper-focused, .ant-input-affix-wrapper:focus-within, .ant-select-focused .ant-select-selector, .ant-input-number-focused) {
  border-color: var(--bw-ink) !important;
  box-shadow: 0 0 0 3px var(--bw-focus) !important;
}
html.bowen-commercial-ui:not([data-theme="dark"]) :is(.ant-input:hover, .ant-input-affix-wrapper:hover, .ant-select:hover .ant-select-selector) { border-color: #a1a1aa; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-tabs-ink-bar { background: var(--bw-ink) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn { color: var(--bw-text) !important; font-weight: 600; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-tabs-tab:hover .ant-tabs-tab-btn { color: var(--bw-text) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-segmented { background: var(--bw-soft) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-segmented-item-selected { color: var(--bw-text) !important; box-shadow: 0 1px 2px rgba(24,24,27,.08) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-switch.ant-switch-checked { background: var(--bw-ink) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-checkbox-checked .ant-checkbox-inner,
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-radio-checked .ant-radio-inner { background: var(--bw-ink) !important; border-color: var(--bw-ink) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) { color: #fff !important; background: var(--bw-ink) !important; border-color: var(--bw-ink) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-pagination-item-active { border-color: var(--bw-ink) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-pagination-item-active a { color: var(--bw-text) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-card { border-color: var(--bw-line) !important; border-radius: 12px !important; box-shadow: none !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-modal .ant-modal-content { border-radius: 12px !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-steps-item-process .ant-steps-item-icon { background: var(--bw-ink) !important; border-color: var(--bw-ink) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-steps-item-finish .ant-steps-item-icon { border-color: var(--bw-ink) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-steps-item-finish .ant-steps-item-icon .ant-steps-icon { color: var(--bw-ink) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-progress-bg { background: var(--bw-ink) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-spin-dot-item { background: var(--bw-ink) !important; }

/* ---------- 5. 页面外观：标题、卡片、去掉渐变和彩色竖条 ---------- */
html.bowen-commercial-ui:not([data-theme="dark"]) main,
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-hub-page,
html.bowen-commercial-ui:not([data-theme="dark"]) .workbench-main,
html.bowen-commercial-ui:not([data-theme="dark"]) .agent-multi-workbench { background: #ffffff !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-market-intro { padding-left: 0 !important; min-height: 0 !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-market-intro::before { display: none !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) :is(.creator-market-intro h1, .positioning-entry-hero h1, .bowen-profile-hero h1, .user-center-header h1, .store-section-heading h2) {
  font-family: var(--bw-font) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  color: var(--bw-text) !important;
}
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-market-controls { box-shadow: none !important; border-radius: 12px !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-tool-card {
  border: 1px solid var(--bw-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-tool-card:hover { transform: none !important; border-color: #a1a1aa !important; box-shadow: none !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-tool-icon { background: var(--bw-soft) !important; color: var(--bw-text) !important; border-radius: 10px !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-tool-capabilities span { background: var(--bw-soft) !important; border-color: transparent !important; color: var(--bw-muted) !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .bowen-positioning-tab.is-active { background: var(--bw-ink) !important; box-shadow: none !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) :where(.panel, .script-input-panel, .script-stage-panel, .canvas-main, .result-panel, .positioning-entry-hero, .bowen-profile-hero, .bowen-ip-picker-panel, .bowen-profile-card, .user-center-header, .profile-detail, .store-section) {
  box-shadow: none !important;
  border-color: var(--bw-line) !important;
}
html.bowen-commercial-ui:not([data-theme="dark"]) .workbench-site-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--bw-line) !important;
  box-shadow: none !important;
}
html.bowen-commercial-ui:not([data-theme="dark"]) .bowen-ui-workbench .script-input-panel > span:first-child { color: var(--bw-muted) !important; }

/* ---------- 6. 新页面（studio.html）对齐同一套样子 ---------- */
html.bw-studio .lb-side { background: var(--bw-side); border-right: 1px solid var(--bw-line); padding: 18px 12px; }
html.bw-studio .bw-brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 18px; text-decoration: none; color: var(--bw-text); }
html.bw-studio .bw-brand img { width: 30px; height: 30px; border-radius: 8px; }
html.bw-studio .bw-brand b { display: block; font-size: 15px; }
html.bw-studio .bw-brand small { display: block; color: var(--bw-muted); font-size: 12px; }
html.bw-studio .bw-account { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 10px 4px; border-top: 1px solid var(--bw-line); color: var(--bw-text-2); font-size: 13px; text-decoration: none; }
html.bw-studio .bw-account b { color: var(--bw-text); }
html.bw-studio .lb-top { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--bw-line); }
html.bw-studio .lb-pri { background: var(--bw-ink); border-radius: 8px; }
html.bw-studio .lb-pri:hover { background: var(--bw-ink-hover); }
html.bw-studio .lb-ghost { border-color: var(--bw-line); border-radius: 8px; color: var(--bw-text); }
html.bw-studio .lb-ghost:hover { border-color: #a1a1aa; }
html.bw-studio .lb-card { border-color: var(--bw-line); border-radius: 12px; box-shadow: none; }
html.bw-studio .lb-tag.b { background: #eef2ff; color: #3730a3; }
html.bw-studio h1 { font-size: 26px; font-weight: 700; letter-spacing: 0; }
html.bw-studio .st-director { background: #ffffff; border-color: var(--bw-line); }
html.bw-studio .st-dir-av { background: var(--bw-ink); border-radius: 8px; width: 32px; height: 32px; font-size: 14px; }
html.bw-studio .st-tile { border-color: var(--bw-line); border-radius: 12px; }
html.bw-studio .st-tile:hover { border-color: #a1a1aa; }
html.bw-studio .st-dot { background: var(--bw-ink); }
html.bw-studio .lb-badge:not(:empty) { background: var(--bw-ink); }

/* ---------- 7. 七步卡、步骤页（新首页和步骤页用） ---------- */
.bw-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); border: 1px solid #e4e4e7; border-radius: 12px; overflow: hidden; background: #fff; }
.bw-step { display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 16px; border-right: 1px solid #f0f0f2; border-bottom: 1px solid #f0f0f2; text-decoration: none !important; color: #18181b !important; }
.bw-step:hover { background: #fafafa; }
.bw-step .bw-step-top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #71717a; }
.bw-step .bw-step-top .num { color: #a1a1aa; font-weight: 600; }
.bw-step .bw-dot { width: 6px; height: 6px; border-radius: 50%; background: #d4d4d8; flex: none; }
.bw-step .bw-dot.ok { background: #16a34a; } .bw-step .bw-dot.todo { background: #ea580c; }
.bw-step b { font-size: 15px; font-weight: 600; }
.bw-step .tools { font-size: 12px; color: #71717a; line-height: 1.6; }
.bw-step .go { margin-top: auto; font-size: 13px; font-weight: 500; color: #4338ca; }
.bw-sec-t { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #52525b; }
.bw-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.bw-tool { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid #e4e4e7; border-radius: 12px; background: #fff; text-decoration: none !important; color: #18181b !important; min-height: 128px; }
.bw-tool:hover { border-color: #a1a1aa; }
.bw-tool .bw-tool-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bw-tool b { font-size: 15px; font-weight: 600; }
.bw-tool p { margin: 0; font-size: 13px; color: #71717a; line-height: 1.6; }
.bw-tool .open { margin-top: auto; font-size: 13px; font-weight: 500; color: #4338ca; }
.bw-kind { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.bw-kind.old { background: #f4f4f5; color: #52525b; }
.bw-kind.new { background: #eef2ff; color: #3730a3; }
.bw-kind.ai { background: #fff; color: #3f3f46; border: 1px solid #d4d4d8; }
.bw-step-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.bw-step-head .eyebrow { font-size: 12px; font-weight: 600; color: #a1a1aa; }
.bw-step-nav { display: flex; gap: 8px; }
.bw-block { margin-top: 26px; }

/* ---------- 8. 手机 ---------- */
@media (max-width: 760px) {
  html.bowen-commercial-ui .creator-side-nav.bw-on { display: block !important; overflow-x: auto !important; scrollbar-width: none; }
  html.bowen-commercial-ui .creator-side-nav.bw-on::-webkit-scrollbar { display: none; }
  .bw-nav { flex-direction: row; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .bw-nav::-webkit-scrollbar { display: none; }
  .bw-nav .bw-gt { display: none; }
  .bw-nav a.bw-link { flex: none; min-height: 34px; padding: 0 12px; border: 1px solid #e4e4e7; background: #fff; font-size: 13px !important; white-space: nowrap; }
  .bw-nav a.bw-link .bw-ic, .bw-nav a.bw-link .bw-tag { display: none; }
  .bw-nav a.bw-link .bw-n { width: auto; }
  html.bowen-commercial-ui:not([data-theme="dark"]) .creator-account-panel { border-color: var(--bw-line) !important; background: #fff !important; }
  html.bowen-commercial-ui:not([data-theme="dark"]) .creator-credit-summary { color: var(--bw-text) !important; }
  html.bw-studio .bw-brand, html.bw-studio .bw-account { display: none; }
  .bw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-step { min-height: 120px; padding: 12px; }
}

/* 新页面在 860px 以下就把侧栏变成顶部一行 */
@media (max-width: 860px) {
  html.bw-studio .lb-side { padding: 8px 12px; background: #fff; }
  html.bw-studio #bw-nav-slot { flex: 1; min-width: 0; }
  html.bw-studio .bw-brand, html.bw-studio .bw-account { display: none; }
  html.bw-studio .bw-nav { flex-direction: row; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  html.bw-studio .bw-nav::-webkit-scrollbar { display: none; }
  html.bw-studio .bw-nav .bw-gt { display: none; }
  html.bw-studio .bw-nav a.bw-link { flex: none; min-height: 34px; padding: 0 12px; border: 1px solid #e4e4e7; background: #fff; font-size: 13px; white-space: nowrap; }
  html.bw-studio .bw-nav a.bw-link.is-on { background: #18181b; border-color: #18181b; color: #fff !important; }
  html.bw-studio .bw-nav a.bw-link.is-on .bw-n { color: #fff; }
  html.bw-studio .bw-nav a.bw-link .bw-ic { display: none; }
}
@media (max-width: 760px) {
  html.bowen-commercial-ui .bw-nav a.bw-link.is-on { background: #18181b; border-color: #18181b; color: #fff !important; }
  html.bowen-commercial-ui .bw-nav a.bw-link.is-on .bw-n { color: #fff; }
}

/* ---------- 9. 左侧固定菜单条（没有左侧菜单的页面用，电脑宽屏才出现） ---------- */
.bw-rail { display: none; }
@media (min-width: 1100px) {
  html.bw-rail-on body { padding-left: 232px !important; }
  .bw-rail {
    display: flex; flex-direction: column; position: fixed; z-index: 900; left: 0; top: 0; bottom: 0; width: 232px; box-sizing: border-box;
    padding: 18px 12px 14px; background: #fafafa; border-right: 1px solid #e4e4e7; overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: #18181b;
  }
  .bw-rail .bw-brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 18px; text-decoration: none !important; color: #18181b !important; }
  .bw-rail .bw-brand img { width: 30px; height: 30px; border-radius: 8px; }
  .bw-rail .bw-brand b { display: block; font-size: 15px; line-height: 1.3; }
  .bw-rail .bw-brand small { display: block; font-size: 12px; color: #71717a; }
  .bw-rail .bw-account { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 10px 2px; border-top: 1px solid #e4e4e7; color: #3f3f46 !important; font-size: 13px; text-decoration: none !important; }
  .bw-rail .bw-account b { color: #18181b; }
  /* 有了左侧菜单，原来的汉堡按钮和单独页面的小顶栏就不用了 */
  html.bw-rail-on .workbench-menu-trigger { display: none !important; }
  html.bw-solo.bw-rail-on body > header.site-header { display: none !important; }
  html.bw-solo.bw-rail-on .back-home-button { display: none !important; }
}

/* ---------- 10. 单独页面（盯同行、账号诊断、审片、低粉爆款）换同一套颜色 ---------- */
html.bw-solo {
  --text: #18181b; --muted: #71717a; --line: #e4e4e7; --surface: #ffffff; --subtle: #fafafa;
  --accent: #18181b; --accent-dark: #27272a; --blue: #4338ca;
  --ink: #18181b; --panel: #ffffff; --soft: #fafafa; --paper: #ffffff;
  --coral: #18181b; --coral-dark: #27272a; --brand-soft: #f4f4f5;
}
html.bw-solo body { background: #ffffff !important; color: #18181b; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important; }

/* ---------- 11. 补漏：账户卡片里的小块、知识库左栏 ---------- */
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-account-panel :is(.creator-positioning-shortcut, .creator-credit-summary) {
  background: #ffffff !important; border: 1px solid #e4e4e7 !important; box-shadow: none !important;
}
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-account-panel :is(.creator-positioning-shortcut, .creator-credit-summary) * { color: #18181b !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .creator-account-panel :is(.creator-positioning-shortcut, .creator-credit-summary) :is(small, span) { color: #71717a !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .nb-projects-sider,
html.bowen-commercial-ui:not([data-theme="dark"]) .nb-projects-sider .ant-layout-sider-children {
  background: #fafafa !important; border-right: 1px solid #e4e4e7 !important; color: #18181b !important;
}
html.bowen-commercial-ui:not([data-theme="dark"]) .nb-projects-sider * { color: inherit; border-color: #e4e4e7 !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .nb-projects-sider :is(small, .ant-typography-secondary) { color: #71717a !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .nb-projects-sider :is(button, [class*="card"], [class*="current"], [class*="item"], [class*="select"], [class*="footer"], [class*="header"], [class*="section"]) {
  background-color: transparent !important; color: #18181b !important; box-shadow: none !important;
}
html.bowen-commercial-ui:not([data-theme="dark"]) .nb-projects-sider :is([class*="card"], [class*="current"], button.ant-btn) { background-color: #ffffff !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .nb-projects-sider :is(.is-active, .active, [aria-selected="true"], [class*="selected"]) { background-color: #ececef !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .nb-projects-sider .nb-project-current :is(strong, b, span, small) { color: #18181b !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .nb-projects-sider .nb-project-current small { color: #71717a !important; }
html.bw-solo :is(.primary-button, button.primary, .btn-primary) { background: #18181b !important; border-color: #18181b !important; color: #fff !important; box-shadow: none !important; }
html.bw-solo :is(.primary-button, button.primary, .btn-primary):hover { background: #27272a !important; }
html.bw-studio .lb-av { background: #18181b; }

/* r2 修：还不能点的主按钮（老皮肤给它铺了深色底，换成黑色后灰字看不见）→ 浅灰底、灰字 */
html.bowen-commercial-ui:not([data-theme="dark"]) :is(.ant-btn-primary, .creator-tool-launch, .script-submit-button, .bowen-card-primary, .agent-sidebar-primary-action):disabled,
html.bowen-commercial-ui:not([data-theme="dark"]) :is(.ant-btn-primary, .script-submit-button).ant-btn-disabled,
html.bw-solo :is(.primary-button, button.primary, .btn-primary):disabled {
  background: #f4f4f5 !important; border-color: #e4e4e7 !important; color: #a1a1aa !important; box-shadow: none !important;
}

/* ---------- 12. 七步接力按钮（老页面上加的） ---------- */
a.bw-handoff-btn, button.bw-handoff-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; padding: 0 12px; margin-left: 6px;
  border: 1px solid #d4d4d8; border-radius: 8px; background: #ffffff; color: #18181b !important; font-size: 13px; font-weight: 500;
  text-decoration: none !important; cursor: pointer; white-space: nowrap; vertical-align: middle; font-family: inherit;
}
a.bw-handoff-btn:hover, button.bw-handoff-btn:hover { border-color: #18181b; }
button.bw-handoff-btn.is-primary { background: #18181b; border-color: #18181b; color: #ffffff !important; }
.bw-handoff-toast {
  position: fixed; z-index: 10050; left: 50%; bottom: 32px; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px));
  padding: 12px 16px; border-radius: 10px; background: #18181b; color: #ffffff; font-size: 14px; line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
button.bw-handoff-mini {
  height: 24px; padding: 0 8px; margin-left: 4px; border: 1px solid #e4e4e7; border-radius: 6px; background: #fff;
  color: #3f3f46; font-size: 12px; cursor: pointer; white-space: nowrap; font-family: inherit;
}
button.bw-handoff-mini:hover { border-color: #18181b; color: #18181b; }
button.bw-handoff-mini:disabled { color: #a1a1aa; cursor: default; }
.bw-review-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; padding: 12px 14px;
  border: 1px solid #e4e4e7; border-radius: 12px; background: #fafafa; color: #18181b; font-size: 14px;
}


/* ---------- 13. 工具里的样子统一（11-15 自动检查找出来的残留） ---------- */
/* 13.1 老脚本写在页面最外层的颜色，加一层保险 */
html.bowen-commercial-ui:not([data-theme="dark"]) body { --color-primary: #18181b !important; --color-accent: #18181b !important; --color-creator: #4338ca !important; --color-text-muted: #71717a !important; }
/* 13.2 小标题：不要蓝色、不要英文大写字距 */
html.bowen-commercial-ui:not([data-theme="dark"]) :is(.section-kicker, .eyebrow, [class*="kicker"], .positioning-live-badge, .agent-chat-side-label),
html.bw-solo :is(.section-kicker, .eyebrow, [class*="kicker"]) {
  color: #71717a !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 600 !important; background: transparent !important;
}
/* 英文小标题换成中文 */
html.bowen-commercial-ui .section-kicker { font-size: 12px !important; }
/* 13.3 标签：统一灰底黑字（成功/失败的绿色红色保留） */
html.bowen-commercial-ui:not([data-theme="dark"]) .ant-tag:not(.ant-tag-green):not(.ant-tag-success):not(.ant-tag-red):not(.ant-tag-error):not(.ant-tag-orange):not(.ant-tag-warning),
html.bowen-commercial-ui:not([data-theme="dark"]) :is(.script-chip, .nb-asset-kind-count, .bowen-model-role-badge) {
  background: #f4f4f5 !important; border-color: #e4e4e7 !important; color: #3f3f46 !important;
}
/* 13.4 淡蓝底 → 白底细边 / 浅灰 */
html.bowen-commercial-ui:not([data-theme="dark"]) :is(.app-root--workbench, .app-root--creator-hub, .notebook-page, .page-shell) { background: #ffffff !important; background-image: none !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) :is(.positioning-live-line, .detail-disclosure, .agent-session-item, .nb-citation-chip, .bowen-bulk-status, .agent-run-status) {
  background: #ffffff !important; border-color: #e4e4e7 !important; box-shadow: none !important;
}
html.bowen-commercial-ui:not([data-theme="dark"]) .agent-session-item.is-active { background: #f4f4f5 !important; border-color: #d4d4d8 !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) :is(.bowen-card-step, .bowen-context-toggle, .bowen-model-focus-button, .bowen-model-seat-name, .membership-price, .bowen-hot-price-note) { color: #18181b !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) :is(.hot-topic-task-navigation button.is-active, .task-nav a.is-active) { color: #18181b !important; border-color: #18181b !important; }
/* 13.5 大标题统一（和首页一样 26～28px） */
html.bw-solo h1, html.bowen-commercial-ui:not([data-theme="dark"]) main h1 { font-size: clamp(22px, 2.2vw, 28px) !important; letter-spacing: 0 !important; line-height: 1.3 !important; }
/* 13.6 单独页面：蓝字按钮、蓝边按钮、黄标签 */
html.bw-solo :is(button.ghost-button, .ghost-button) { background: #ffffff !important; border: 1px solid #e4e4e7 !important; color: #18181b !important; }
html.bw-solo :is(button.ghost-button, .ghost-button):hover { border-color: #18181b !important; }
html.bw-solo button:not(.primary-button):not(.bw-handoff-btn):not(.bw-handoff-mini):not([class*="primary"]) { color: #18181b; }
html.bw-solo .send-button { background: #18181b !important; border-color: #18181b !important; color: #fff !important; }
html.bw-solo .pw-hot-author, html.bw-solo .pw-month-est { color: #71717a !important; }
html.bw-solo :is([class*="badge"], [class*="pill"]):not(.bw-kind):not([class*="ar-pillar"]) { background: #f4f4f5 !important; color: #3f3f46 !important; border-color: #e4e4e7 !important; }
html.bw-solo .eyebrow { color: #71717a !important; }
/* 13.7 新页面里的蓝色 */
html.bw-studio .bw-step .go, html.bw-studio .bw-tool .open { color: #18181b; }
html.bw-studio .lb-tag.b { background: #f4f4f5; color: #3f3f46; }

/* ---------- 14. 只留浅色：藏起深色模式开关 ---------- */
button:is([aria-label*="深色模式"], [aria-label*="黑夜模式"], [aria-label*="浅色模式"], [aria-label*="白天模式"], [aria-label*="切换主题"], [title*="深色模式"], [title*="黑夜模式"]) { display: none !important; }
html.bw-solo button:not([class]) { background-color: #ffffff !important; border: 1px solid #e4e4e7 !important; color: #18181b !important; }
html.bw-solo button:not([class]):hover { border-color: #18181b !important; }
html.bw-solo b { color: inherit !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .agent-session-rail span[class=""], html.bowen-commercial-ui:not([data-theme="dark"]) .agent-session-rail a span { color: #18181b !important; }
html.bw-studio .lb-steps span.on { background: #18181b; color: #ffffff; }
html.bw-studio .lb-steps span.done { background: #f4f4f5; color: #18181b; }
html.bw-studio :is(.lb-input, .lb-select, .lb-textarea):focus { border-color: #18181b; box-shadow: 0 0 0 3px rgba(24,24,27,.08); outline: none; }

/* ---------- 15. 登录、注册页（备案公开页）：只换颜色和按钮，文字不动 ---------- */
body:has(.bowen-audit-public-page) { background: #fafafa !important; background-image: none !important; color: #18181b !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important; }
body:has(.bowen-audit-public-page)::before, body:has(.bowen-audit-public-page)::after,
.bowen-audit-public-page::before, .bowen-audit-public-page::after { display: none !important; }
.bowen-audit-public-page { background: transparent !important; color: #18181b !important; }
.bowen-audit-public-brand strong { color: #18181b !important; }
.bowen-audit-public-brand span { color: #71717a !important; }
.bowen-audit-header-link, .bowen-audit-auth-switch a { color: #18181b !important; font-weight: 600; }
.bowen-audit-auth-card { background: #ffffff !important; border: 1px solid #e4e4e7 !important; border-radius: 16px !important; box-shadow: 0 1px 2px rgba(24,24,27,.04) !important; backdrop-filter: none !important; color: #18181b !important; }
.bowen-audit-auth-card h1 { color: #18181b !important; font-size: 26px !important; letter-spacing: 0 !important; }
.bowen-audit-auth-card p, .bowen-audit-field-help { color: #71717a !important; }
.bowen-audit-auth-card label { color: #3f3f46 !important; font-weight: 500; }
.bowen-audit-auth-card input { border: 1px solid #e4e4e7 !important; border-radius: 8px !important; background: #ffffff !important; color: #18181b !important; box-shadow: none !important; }
.bowen-audit-auth-card input:focus { border-color: #18181b !important; box-shadow: 0 0 0 3px rgba(24,24,27,.08) !important; outline: none !important; }
.bowen-audit-auth-card button { background: #18181b !important; border-color: #18181b !important; color: #ffffff !important; border-radius: 8px !important; box-shadow: none !important; }
.bowen-audit-auth-card button:hover { background: #27272a !important; }
.bowen-icp-footer { background: #fafafa !important; border-top: 1px solid #e4e4e7 !important; }
.bowen-icp-footer a { color: #a1a1aa !important; }

/* ---------- 16. 新手 4 步 ---------- */
.bw-newbie { padding: 18px 20px !important; margin-bottom: 18px; }
.bw-newbie-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.bw-newbie-head b { font-size: 16px; }
.bw-newbie-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #f0f0f2; }
.bw-newbie-row .tx { flex: 1; min-width: 0; }
.bw-newbie-row .tx b { display: block; font-size: 14px; }
.bw-newbie-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #f4f4f5; color: #71717a; }
.bw-newbie-row.now .bw-newbie-n { background: #18181b; color: #fff; }
.bw-newbie-row.done .bw-newbie-n { background: #dcfce7; color: #166534; }
.bw-newbie-row.done .tx b { color: #a1a1aa; font-weight: 500; text-decoration: line-through; }
.bw-newbie-acts { display: flex; gap: 8px; flex: none; }
a.bw-a-btn { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 760px) { .bw-newbie-row { flex-wrap: wrap; } .bw-newbie-acts { width: 100%; padding-left: 38px; } }
html.bw-solo div.scope-badge.scope-badge:not(.bw-kind) { background: #18181b !important; border-color: #18181b !important; color: #ffffff !important; }
html.bw-solo div.scope-badge.scope-badge:not(.bw-kind) * { color: #ffffff !important; }
/* ---------- 17. 左侧「推荐」小面板（原来按深蓝侧栏配的白字，侧栏变浅后看不见；测试库没有这个面板，正式网站才出现） ---------- */
html.bowen-commercial-ui:not([data-theme="dark"]) .bowen-recommend-toggle { background: #ffffff !important; border: 1px solid #e4e4e7 !important; color: #18181b !important; box-shadow: none !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .bowen-recommend-toggle * { color: #18181b !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .bowen-recommend-fire, html.bowen-commercial-ui:not([data-theme="dark"]) .bowen-recommend-fire * { color: #ea580c !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .bowen-recommend-list { border-color: #e4e4e7 !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) .bowen-recommend-content, html.bowen-commercial-ui:not([data-theme="dark"]) .bowen-recommend-list li { border-color: #e4e4e7 !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) a.bowen-recommend-link { color: #3f3f46 !important; background: transparent !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) a.bowen-recommend-link * { color: inherit !important; }
html.bowen-commercial-ui:not([data-theme="dark"]) a.bowen-recommend-link:hover { background: #f0f0f2 !important; color: #18181b !important; }

/* 18. 左侧「推荐」面板收起（里面的工具都已归进七步；何博 11-15 定） */
section.bowen-recommend-menu, .bowen-recommend-menu { display: none !important; }

/* 19. 新手体验（11-15 走查后）：新号前 3 天不弹「积分快用完」；「新手先用这个」；总编导贴文案、错误留在页面上 */
html.bw-new-user .bowen-credit-reminder.is-low { display: none !important; }
.bw-tool.is-first { border-color: #18181b !important; box-shadow: 0 0 0 1px #18181b inset; }
.bw-first { align-self: flex-start; font-size: 11px; font-weight: 600; color: #ffffff; background: #18181b; border-radius: 999px; padding: 2px 9px; margin-top: -2px; }
.st-dir-err { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 13px; line-height: 1.6; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.st-dir-err[hidden] { display: none; }
.st-dir-err a { color: #18181b; font-weight: 600; white-space: nowrap; }
.st-paste-link { margin-top: 10px; background: none; border: 0; padding: 0; color: #3f3f46; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.st-paste-link:hover { color: #18181b; }
.st-paste { margin-top: 12px; padding: 12px; border: 1px dashed #d4d4d8; border-radius: 10px; background: #fafafa; display: flex; flex-direction: column; gap: 6px; }
.st-paste[hidden], .st-paste-link[hidden] { display: none; }
.st-paste textarea { min-height: 110px; }
.lb-toast { display: flex; align-items: center; gap: 12px; max-width: min(92vw, 640px); }
.lb-toast-a { color: #ffffff !important; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.lb-toast-x { background: none; border: 0; color: #ffffff; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }
.bw-newbie-tip { padding: 12px 2px 2px; font-size: 12px; line-height: 1.7; }
.bw-newbie-tip a { color: #18181b; font-weight: 600; }

/* 20. 找爆款结果卡（11-16）：「收进对标包」是主按钮（黑底），其余一律白底灰边，不再蓝/橙 */
html body .hot-topic-search-result-actions { display: flex !important; flex-wrap: wrap; gap: 8px !important; align-items: center; }
html body .hot-topic-search-result-actions a.bw-handoff-btn { order: -1; background: #18181b !important; color: #ffffff !important; border: 1px solid #18181b !important; border-radius: 8px !important; padding: 6px 14px !important; font-weight: 600 !important; box-shadow: none !important; text-decoration: none !important; }
html body .hot-topic-search-result-actions a.bw-handoff-btn:hover { background: #27272a !important; }
html body .hot-topic-search-result-actions :is(button.bowen-hot-send-button, button.bowen-multiple-button, a.bowen-watch-button) { background: #ffffff !important; color: #3f3f46 !important; border: 1px solid #e4e4e7 !important; border-radius: 8px !important; box-shadow: none !important; font-weight: 500 !important; padding: 6px 12px !important; }
html body .hot-topic-search-result-actions :is(button.bowen-hot-send-button, button.bowen-multiple-button, a.bowen-watch-button):hover { border-color: #a1a1aa !important; color: #18181b !important; }
html body .hot-topic-search-result-actions :is(button.bowen-hot-send-button, button.bowen-multiple-button, a.bowen-watch-button) * { color: inherit !important; }
/* 「建立对标」窗口关掉后的提示条 */
.lb-left-tip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; padding: 12px 14px; border: 1px solid #18181b; border-radius: 10px; background: #fafafa; font-size: 13px; color: #18181b; }
.lb-left-tip span { flex: 1 1 260px; }

/* 21. 号档案（11-16）：我的号 · 每个号一份档案 */
.bw-prof { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e4e4e7; display: flex; flex-direction: column; gap: 12px; }
.bw-prof-head { display: flex; flex-direction: column; gap: 2px; }
.bw-prof-head b { font-size: 16px; color: #18181b; }
.bw-prof-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.bw-prof-way { border: 1px solid #e4e4e7; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #fafafa; }
.bw-prof-way b { color: #18181b; }
.bw-prof-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px 14px; }
.bw-prof-form .lb-field:last-child { grid-column: 1 / -1; }
.bw-pick { flex-wrap: wrap; gap: 6px; }
.bw-pick .lb-chip { cursor: pointer; background: #ffffff; border: 1px solid #e4e4e7; color: #3f3f46; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.bw-pick .lb-chip.on { background: #18181b; border-color: #18181b; color: #ffffff; }
.bw-prof-tip { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; border-color: #18181b !important; }
.bw-prof-tip b { display: block; margin-bottom: 2px; }
.bw-prof-ways { align-items: start; }
.bw-prof-way .lb-ghost { align-self: flex-start; }
.bw-prof-form { grid-template-columns: 1fr 1fr; }
.bw-prof-form .lb-field:nth-child(1), .bw-prof-form .lb-field:nth-child(2) { grid-column: 1 / -1; }
.bw-prof-form textarea.bw-prof-q { min-height: 52px !important; height: 52px; }
@media (max-width: 720px) { .bw-prof-form { grid-template-columns: 1fr; } }
.bw-prof-or { font-size: 13px; font-weight: 600; color: #18181b; }
.bw-prof-cost { align-self: flex-start; font-size: 12px; font-weight: 600; color: #3f3f46; background: #ffffff; border: 1px solid #e4e4e7; border-radius: 999px; padding: 2px 10px; }
.bw-prof-way > b { font-size: 15px; }
.bw-prof-formhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; padding-top: 6px; border-top: 1px dashed #e4e4e7; }
.bw-acc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bw-acc-head h2 { margin: 0; }
.lb-ghost.lb-danger { color: #b91c1c !important; }
.lb-ghost.lb-danger:hover { border-color: #fca5a5 !important; background: #fef2f2 !important; }

/* 22. 号档案：先选方式（两张大卡片），下面只显示选中的那种（11-16） */
.bw-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bw-mode { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid #e4e4e7; border-radius: 12px; background: #ffffff; color: #52525b; transition: border-color .15s, box-shadow .15s; }
.bw-mode:hover { border-color: #a1a1aa; }
.bw-mode:focus-visible { outline: 2px solid #18181b; outline-offset: 2px; }
.bw-mode-top { display: flex; align-items: center; gap: 10px; }
.bw-mode-top b { font-size: 16px; color: #3f3f46; }
.bw-mode-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d4d4d8; box-sizing: border-box; flex: none; }
.bw-mode-cost { align-self: flex-start; font-size: 12px; font-weight: 600; color: #52525b; background: #f4f4f5; border-radius: 999px; padding: 2px 10px; margin-left: 28px; }
.bw-mode-desc { font-size: 13px; line-height: 1.6; margin-left: 28px; }
.bw-mode.on { border: 2px solid #18181b; padding: 15px 17px; box-shadow: 0 4px 14px rgba(24, 24, 27, .08); color: #3f3f46; }
.bw-mode.on .bw-mode-top b { color: #18181b; }
.bw-mode.on .bw-mode-dot { border-color: #18181b; background: #18181b; box-shadow: inset 0 0 0 3px #ffffff; }
.bw-mode.on .bw-mode-cost { background: #18181b; color: #ffffff; }
.bw-mode-panel { border: 1px solid #e4e4e7; border-radius: 12px; padding: 18px; background: #fafafa; display: flex; flex-direction: column; gap: 14px; }
.bw-deep { display: flex; flex-direction: column; gap: 10px; }
.bw-deep-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.bw-deep-step { display: inline-flex; align-items: center; gap: 8px; background: #ffffff; border: 1px solid #e4e4e7; border-radius: 999px; padding: 5px 12px 5px 5px; font-size: 13px; color: #18181b; }
.bw-deep-step b { width: 22px; height: 22px; border-radius: 50%; background: #18181b; color: #ffffff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.bw-deep-wait { border: 1px dashed #d4d4d8; border-radius: 10px; padding: 14px; font-size: 13px; color: #71717a; background: #ffffff; text-align: center; }
.bw-form-wrap { display: flex; flex-direction: column; gap: 10px; }
.bw-form-wrap .bw-prof-formhead { border-top: 0; padding-top: 0; }
.bw-mode-panel.is-deep .bw-form-wrap { border-top: 1px solid #e4e4e7; padding-top: 14px; }
@media (max-width: 720px) { .bw-modes { grid-template-columns: 1fr; } }

/* 23. 账号画像（11-16）：号档案页的画像卡 + 工具页「按号档案」条 */
.bw-portrait { border: 1px solid #18181b; border-radius: 12px; padding: 16px; background: #ffffff; display: flex; flex-direction: column; gap: 12px; }
.bw-portrait-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.bw-portrait-head b { font-size: 15px; color: #18181b; }
.bw-portrait-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 16px; }
.bw-portrait-it span { display: block; font-size: 12px; color: #71717a; margin-bottom: 2px; }
.bw-portrait-it div { font-size: 14px; color: #18181b; line-height: 1.6; }
.bw-portrait-kw { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: #71717a; }
.bw-portrait-kw i { font-style: normal; background: #f4f4f5; color: #18181b; border-radius: 999px; padding: 3px 10px; }
.bw-portrait .lb-ghost { align-self: flex-start; }
.bw-pt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; padding: 10px 12px; border: 1px solid #e4e4e7; border-radius: 10px; background: #fafafa; font-size: 13px; color: #3f3f46; }
.bw-pt-lab { font-weight: 600; color: #18181b; }
.bw-pt-name { color: #18181b; }
.bw-pt-sel { border: 1px solid #e4e4e7; border-radius: 8px; padding: 3px 8px; background: #fff; font-size: 13px; }
.bw-pt-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.bw-pt-chip { all: unset; cursor: pointer; background: #ffffff; border: 1px solid #d4d4d8; border-radius: 999px; padding: 3px 11px; font-size: 13px; color: #18181b; }
.bw-pt-chip:hover { border-color: #18181b; }
.bw-pt-edit { margin-left: auto; color: #52525b !important; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.bw-pt-tip { color: #71717a; }
.bw-pt-bar .bw-pt-chip { border-radius: 999px !important; padding: 3px 11px !important; min-height: 0 !important; height: auto !important; line-height: 1.6 !important; background: #ffffff !important; box-shadow: none !important; font-size: 13px !important; font-weight: 500 !important; color: #18181b !important; border: 1px solid #d4d4d8 !important; }
.bw-pt-bar .bw-pt-chip:hover { border-color: #18181b !important; }

/* 24. 深度版录入：新分析 / 用以前分析过的号（11-16） */
.bw-subs { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid #d4d4d8; border-radius: 10px; overflow: hidden; align-self: flex-start; background: #ffffff; }
.bw-sub { all: unset; cursor: pointer; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #52525b; }
.bw-sub + .bw-sub { border-left: 1px solid #d4d4d8; }
.bw-sub.on { background: #18181b; color: #ffffff; }
.bw-sub-box { display: flex; flex-direction: column; gap: 10px; }
.bw-sub-box[hidden] { display: none; }
.bw-old-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; }
.bw-old { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e4e4e7; border-radius: 10px; background: #ffffff; }
.bw-old:hover { border-color: #a1a1aa; }
.bw-old.on { border: 2px solid #18181b; padding: 9px 11px; }
.bw-old img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.bw-old .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bw-old .tx b { color: #18181b; font-size: 14px; }
.bw-old .tx small { color: #71717a; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-old-go { font-size: 12px; font-weight: 600; color: #18181b; border: 1px solid #d4d4d8; border-radius: 999px; padding: 3px 10px; flex: none; }
.bw-old.on .bw-old-go { background: #18181b; color: #ffffff; border-color: #18181b; }
.bw-kind-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #3f3f46; font-weight: 600; }

/* 25. 号档案做内容用的 3 题 + 画像里的栏目/打法（11-16） */
.bw-prof-sub { grid-column: 1 / -1; margin-top: 8px; padding-top: 12px; border-top: 1px dashed #d4d4d8; font-size: 13px; font-weight: 600; color: #18181b; }
.bw-prof-sub ~ .lb-field { grid-column: 1 / -1; }
.bw-tone { display: flex; flex-direction: column; gap: 6px; }
.bw-portrait-kw i.col { background: #18181b; color: #ffffff; }
.bw-portrait-pat span { display: block; font-size: 12px; color: #71717a; margin-bottom: 4px; }
.bw-portrait-pat ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #18181b; line-height: 1.6; }

/* 26. 老账号分析报告页顶上的「看一页版」条（11-16） */
.bw-ar-banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0; padding: 12px 16px; border: 1px solid #18181b; border-radius: 10px; background: #ffffff; font-size: 13px; color: #18181b; }
.bw-ar-banner a { font-weight: 700; color: #18181b !important; text-decoration: underline; text-underline-offset: 3px; }

/* 27. 我的客户（11-16）：和全站一样的黑白风格；左边导航不再被盖住（位置由外壳脚本算） */
html body #bowen-salesperson-overlay { background: #ffffff !important; }
html body .bowen-sales-page { width: min(1180px, 100%); padding: 28px 32px 56px; color: #18181b; font-family: var(--bw-font); }
html body .bowen-sales-back { display: none !important; }
html body .bowen-sales-head { align-items: flex-end; margin-bottom: 20px; }
html body .bowen-sales-head h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; color: #18181b; }
html body .bowen-sales-head p, html body .bowen-sales-section > p, html body .bowen-sales-filter p { color: #71717a; font-size: 14px; }
html body .bowen-sales-codes, html body .bowen-sales-filter, html body .bowen-sales-section, html body .bowen-sales-card { border: 1px solid #e4e4e7; border-radius: 12px; background: #ffffff; box-shadow: none; }
html body .bowen-sales-section h2 { font-size: 16px; font-weight: 700; color: #18181b; }
html body .bowen-sales-codes > span { color: #71717a; }
html body .bowen-sales-codes strong { padding: 6px 14px; border-radius: 8px; background: #f4f4f5; color: #18181b; font-size: 18px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
html body .bowen-sales-head button, html body .bowen-sales-presets button, html body .bowen-sales-pagination button { min-height: 36px; border: 1px solid #e4e4e7; border-radius: 10px; padding: 7px 14px; background: #ffffff; color: #3f3f46; font-weight: 600; font-size: 13px; }
html body .bowen-sales-head button:hover, html body .bowen-sales-presets button:hover, html body .bowen-sales-pagination button:hover:not(:disabled) { background: #f4f4f5; }
html body .bowen-sales-presets button.is-active { border-color: #18181b; background: #18181b; color: #ffffff; }
html body .bowen-sales-custom-dates input, html body .bowen-sales-withdraw-form input { min-height: 38px; border: 1px solid #d4d4d8; border-radius: 10px; background: #ffffff; color: #18181b; }
html body .bowen-sales-custom-dates input:focus, html body .bowen-sales-withdraw-form input:focus { outline: none; border-color: #18181b; box-shadow: 0 0 0 3px rgba(24,24,27,.08); }
html body .bowen-sales-custom-dates button, html body .bowen-sales-withdraw-form button { min-height: 38px; border: 1px solid #18181b; border-radius: 10px; padding: 7px 18px; background: #18181b; color: #ffffff; font-weight: 600; }
html body .bowen-sales-custom-dates button:hover, html body .bowen-sales-withdraw-form button:hover { background: #27272a; }
html body .bowen-sales-custom-dates label, html body .bowen-sales-withdraw-form label { color: #52525b; }
html body .bowen-sales-section .bowen-sales-card { background: #fafafa; border-color: #f0f0f2; }
html body .bowen-sales-card span { color: #71717a; }
html body .bowen-sales-card strong { font-size: 22px; font-weight: 700; color: #18181b; font-variant-numeric: tabular-nums; }
html body .bowen-sales-month { background: #fafafa; border-color: #f0f0f2; }
html body .bowen-sales-month span { color: #71717a; }
html body .bowen-sales-table-wrap { border-color: #e4e4e7; }
html body .bowen-sales-table-wrap th { background: #fafafa; color: #71717a; font-weight: 600; }
html body .bowen-sales-table-wrap th, html body .bowen-sales-table-wrap td { border-bottom-color: #f0f0f2; }
html body .bowen-sales-pill { background: #f4f4f5; color: #3f3f46; }
html body .bowen-sales-withdraw-note { background: #fafafa; color: #52525b !important; }
html body .bowen-sales-mobile-card { background: #fafafa; border-color: #f0f0f2; }
html body .bowen-sales-loading, html body .bowen-sales-empty { color: #71717a; }
@media (max-width: 680px) {
  html body .bowen-sales-page { padding: 16px 16px 40px; }
  html body .bowen-sales-head h1 { font-size: 22px; }
}

/* 28. 账号分析报告卡（号档案顶上）+ 第 1 步「我分析过的账号」（11-16） */
.bw-repcard { scroll-margin-top: 84px; margin: 12px 0 16px; border: 1px solid #18181b; border-radius: 14px; background: #ffffff; overflow: hidden; }
.bw-repcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 10px; }
.bw-repcard-head > div { display: grid; gap: 3px; min-width: 0; }
.bw-repcard-eye { font-size: 12px; font-weight: 600; color: #71717a; }
.bw-repcard-head b { font-size: 18px; color: #18181b; }
.bw-repcard-head small { font-size: 12px; color: #71717a; }
html body a.bw-repcard-open { flex: none; display: inline-flex; align-items: center; text-decoration: none; background: #18181b; color: #ffffff !important; border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; }
.bw-repcard-body { padding: 0 18px 12px; color: #71717a; font-size: 13px; }
.bw-repcard-one { margin: 0 0 8px; font-size: 16px; line-height: 1.6; font-weight: 700; color: #18181b; }
.bw-repcard-mp { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: #3f3f46; }
.bw-repcard-mp span { color: #71717a; }
.bw-repcard-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.bw-repcard-nums > div { padding: 10px 12px; border-radius: 10px; background: #fafafa; border: 1px solid #f0f0f2; }
.bw-repcard-nums span { display: block; font-size: 12px; color: #71717a; }
.bw-repcard-nums b { display: block; margin-top: 3px; font-size: 16px; color: #18181b; font-variant-numeric: tabular-nums; }
.bw-repcard-learn { font-size: 13px; color: #3f3f46; }
.bw-repcard-learn > span { color: #71717a; }
.bw-repcard-learn ol { margin: 4px 0 0; padding-left: 20px; line-height: 1.8; }
.bw-repcard-foot { padding: 10px 18px; border-top: 1px solid #f0f0f2; background: #fafafa; font-size: 12px; color: #71717a; }
@media (max-width: 680px) {
  .bw-repcard-head { flex-direction: column; }
  .bw-repcard-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bw-alist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin: 10px 0 12px; }
html body a.bw-alist-it { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e4e4e7; border-radius: 12px; background: #ffffff; text-decoration: none; color: #18181b; }
html body a.bw-alist-it:hover { border-color: #18181b; }
.bw-alist-it img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.bw-alist-it .tx { display: grid; gap: 2px; min-width: 0; flex: 1; }
.bw-alist-it .tx b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-alist-it .tx small { font-size: 12px; color: #71717a; }
.bw-alist-tag { justify-self: start; margin-top: 2px; padding: 2px 8px; border-radius: 6px; background: #f4f4f5; font-size: 11px; color: #3f3f46; }
.bw-alist-it .open { flex: none; font-size: 12px; font-weight: 600; color: #18181b; }

/* 29. 号档案 → AI编导用的号（11-17） */
.bw-agent-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 14px; padding: 12px 16px; border: 1px dashed #d4d4d8; border-radius: 12px; background: #fafafa; font-size: 13px; color: #3f3f46; }
.bw-agent-bar.on { border: 2px solid #18181b; background: #ffffff; color: #18181b; font-weight: 600; }
.bw-agent-bar > span { flex: 1; min-width: 220px; line-height: 1.6; }
.bw-agent-tag { font-style: normal; margin-left: 6px; font-size: 11px; font-weight: 700; background: #18181b; color: #ffffff; border-radius: 999px; padding: 1px 8px; vertical-align: middle; }

/* 30. 智能体对话「定位与风格」：只用号档案，旧定位不再出现（11-17） */
.agent-positioning-context.bw-pos .agent-positioning-profile-row strong { display: none !important; }
.agent-positioning-context.bw-pos > button.ant-btn-block { display: none !important; }
.agent-positioning-context.bw-pos.bw-pos-none .agent-positioning-profile-row,
.agent-positioning-context.bw-pos.bw-pos-none .agent-positioning-status { display: none !important; }
.agent-positioning-context.bw-pos .agent-positioning-profile-row { justify-content: flex-start; gap: 8px; }
.agent-positioning-context.bw-pos .agent-positioning-profile-row::before { content: "本次对话用它"; font-size: 13px; font-weight: 600; color: #18181b; }
.bw-pos-box { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.bw-pos-label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: #71717a; }
.bw-pos-select { width: 100%; border: 1px solid #18181b; border-radius: 8px; padding: 7px 10px; font-size: 14px; font-weight: 600; color: #18181b; background: #ffffff; }
.bw-pos-hint, .bw-pos-box > p { margin: 0; font-size: 12px; line-height: 1.6; color: #52525b; }
.bw-pos-link { font-size: 12px; font-weight: 600; color: #18181b !important; text-decoration: underline; text-underline-offset: 3px; }
.agent-positioning-context.bw-pos .agent-positioning-status { display: none !important; }
.bw-pos-fix { align-self: stretch; border: 0; border-radius: 8px; padding: 8px 10px; background: #18181b; color: #ffffff; font-size: 13px; font-weight: 700; cursor: pointer; }
.bw-pos-fix:disabled { opacity: .6; cursor: wait; }
.bw-pos-fix[hidden] { display: none !important; }
