/* 保留导航与业务网格。小力的形象、输入反馈与操作指引构成新的视觉身份。 */
/* 回到上一版的冷灰蓝画布；蓝色用于行动，语义状态继续沿用原色。 */
:root {
  --bg:#f3f6fa; --surface:#ffffff; --surface-2:#f8fafd; --sunk:#edf2f8;
  --text:#172f48; --text-2:#4d6279; --text-3:#596e85;
  --border:#dce5ef; --border-strong:#aebfd3;
  --brand:#1768b9; --brand-hover:#105696; --brand-soft:#eaf3ff; --brand-ink:#ffffff;
  --ink:#172f48; --ink-hover:#24496d;
  --side:#f8fafd; --side-2:#edf2f8; --side-text:#4d6279; --side-active:#172f48;
  --polish-hover:#eef4fc; --polish-selected:#e5effc; --polish-row:#f5f8fc;
  --polish-rule:#e9eff6; --focus:0 0 0 3px #1768b924;
}
#nav, .workspace-topbar {background:var(--side)}
#nav .brand {border-bottom-color:var(--border)}
#nav a.active {background:var(--polish-selected);border-color:var(--border);color:var(--brand)}
.workspace-actions {display:flex;align-items:center;gap:12px}
.xiaoli-help-trigger {display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 10px 0 3px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:100px;font-size:13px;font-weight:600;cursor:pointer}
.xiaoli-help-trigger .xiaoli-avatar {width:32px;height:32px}
.xiaoli-help-trigger:hover {border-color:var(--brand);background:var(--brand-soft)}
.xiaoli-help-trigger:focus-visible {outline:2px solid var(--brand);outline-offset:3px}
.xiaoli-home.home.home-center {gap:19px;padding-top:20px;max-width:960px;justify-content:flex-start}
.xiaoli-home.home.home-center::before {content:none}
.xiaoli-home .home-hi {gap:21px;text-align:left}
.xiaoli-intro {display:flex;justify-content:center;align-items:center;gap:23px;padding:4px 0 3px}
.xiaoli-presence {display:grid;justify-items:center;flex:0 0 140px;position:relative}
.xiaoli-presence .xiaoli-avatar {width:140px;height:140px}
.xiaoli-name {font-size:11px;font-weight:650;letter-spacing:.2em;color:var(--text-3);margin-top:-15px;padding-left:.2em}
.xiaoli-welcome {display:grid;gap:10px}
.xiaoli-home .home-eyebrow {font-size:13px;color:var(--brand);letter-spacing:.08em;font-weight:600}
.xiaoli-home.home-center .home-hi h1 {font-size:clamp(29px,2.55vw,37px);line-height:1.4;letter-spacing:-.045em;font-weight:600;margin:0}
.xiaoli-home.home-center .home-hi h1 > span {color:var(--brand);background:none}
.xiaoli-home.home-center .home-hi p.home-note {font-size:15px;color:var(--text-2);line-height:1.8;text-align:left}
.xiaoli-context {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 18px}
.xiaoli-home .xiaoli-context .home-stat {display:block;font-size:12px;color:var(--text-3);margin:0}
.xiaoli-context > a {display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--brand);text-decoration:none}
.xiaoli-context > a .i {width:13px;height:13px}
.xiaoli-context > a:hover {text-decoration:underline;text-underline-offset:4px}
.xiaoli-home.home-center .composer {padding:17px 22px 15px;gap:17px;border-radius:20px;border:1px solid var(--border-strong);background:var(--surface);box-shadow:0 7px 24px -14px #173f7030,0 2px 3px #173f7005}
.xiaoli-home.home-center .composer:focus-within {border-color:var(--brand);box-shadow:0 0 0 3px #1768b912,0 7px 24px -14px #173f7030}
.xiaoli-home .composer-heading {min-height:33px;gap:10px}
.xiaoli-modes {display:inline-flex;align-items:center;gap:4px}
.xiaoli-modes button {border:0;border-radius:7px;background:transparent;color:var(--text-3);padding:6px 10px;min-height:33px;font-size:13px;font-weight:500;cursor:pointer}
.xiaoli-modes button[aria-pressed="true"] {background:var(--brand-soft);color:var(--brand);font-weight:650}
.xiaoli-modes button:hover {color:var(--text);background:var(--polish-hover)}
.xiaoli-modes button:focus-visible {outline:2px solid var(--brand);outline-offset:2px}
.xiaoli-scope {font-size:11px;color:var(--text-3);font-weight:400;letter-spacing:.025em}
.xiaoli-home.home-center .composer textarea {min-height:88px;font-size:18px;line-height:1.8;color:var(--text)}
.xiaoli-home .composer textarea::placeholder {color:var(--text-3);opacity:1}
.xiaoli-home.home-center .composer-bar {gap:8px;padding-top:12px}
.xiaoli-home.home-center .send {width:auto;min-width:113px;height:40px;flex-basis:auto;gap:8px;padding:0 13px;border-radius:11px;background:var(--brand);color:var(--brand-ink);font-size:14px;font-weight:550;box-shadow:none}
.xiaoli-home.home-center .send:hover:not(:disabled) {background:var(--brand-hover);transform:none;box-shadow:none}
.xiaoli-home.home-center .send .i {width:18px;height:18px}
.xiaoli-home.home-center .send {display:inline-flex;align-items:center;justify-content:center}
.xiaoli-home.home-center .send.is-busy {background:var(--brand);color:var(--brand-ink)}
.xiaoli-home.home-center .send:disabled {cursor:wait;opacity:1}
.xiaoli-home.home-center .chip-btn {font-size:13px;min-height:36px}
.xiaoli-home.home-center .chip-btn .dd-btn {font-size:13px}
.xiaoli-home .composer-hint {font-size:11px;padding:0 4px;margin-top:-8px;gap:12px}
.xiaoli-home .composer-hint > span {margin-left:0;display:inline}
.xiaoli-home .composer-hint > span:last-child {margin-left:auto;white-space:nowrap;flex-shrink:0}
.xiaoli-home .home-shortcuts {margin-top:5px;grid-template-columns:repeat(2,minmax(0,1fr))}
.xiaoli-home .home-shortcuts > section,.xiaoli-home .home-shortcuts > section + section {background:none;border:0;padding:0}
.xiaoli-home .home-shortcuts h2 {color:var(--text-3);font-size:12px;font-weight:500;margin-bottom:10px}
.xiaoli-home.home-center .home-shortcuts .suggest {display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;max-width:none;align-self:stretch;justify-items:stretch}
.xiaoli-home.home-center .home-shortcuts .suggest :is(button,a) {display:flex;justify-content:space-between;align-items:center;text-align:left;height:auto;min-height:70px;padding:13px 15px;border:1px solid var(--border);background:var(--surface);border-radius:12px;box-shadow:none;gap:14px;text-decoration:none}
.xiaoli-home .suggest :is(button,a) > span {display:grid;gap:3px;min-width:0}
.xiaoli-home .suggest b {font-size:14px;font-weight:550;color:var(--text)}
.xiaoli-home .suggest small {font-size:12px;color:var(--text-3);font-weight:400}
.xiaoli-home .suggest .i {width:16px;height:16px;flex-shrink:0;color:var(--text-3)}
.xiaoli-home.home-center .home-shortcuts .suggest :is(button,a):hover {border-color:var(--brand);background:var(--surface)}
.xiaoli-home .suggest :is(button,a):hover .i {color:var(--brand);transform:translateX(2px)}
.xiaoli-first-step {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--text-3)}
.xiaoli-first-step button {padding:4px 0;display:inline-flex;align-items:center;gap:5px;color:var(--brand);background:transparent;border:0;cursor:pointer;font-size:12px;font-weight:550}
.xiaoli-first-step button:hover {text-decoration:underline;text-underline-offset:4px}
.xiaoli-first-step button .i {width:13px;height:13px}
.xiaoli-first-step button:focus-visible {outline:2px solid var(--brand);outline-offset:3px;border-radius:2px}
.xiaoli-home .thread {scroll-margin:25px}
.xiaoli-home .ai-msg {border:1px solid var(--border);border-radius:16px;padding:18px;background:var(--surface)}
.xiaoli-home .ai-msg > .xiaoli-avatar {flex:none}
.xiaoli-answer-label {display:block;font-size:12px;color:var(--brand);font-weight:550;margin-bottom:5px}
.xiaoli-answer-label i {font-style:normal;margin:0 4px;color:var(--text-3)}
.xiaoli-home .ai-msg p {font-size:15px;line-height:1.85}
.xiaoli-home .ai-msg small {color:var(--text-3);font-size:12px}
.xiaoli-home .user-msg {font-size:14px;color:var(--text-2);margin-left:auto;max-width:85%;background:var(--sunk);padding:10px 15px;border-radius:14px 14px 3px 14px}
.xiaoli-error button {justify-self:start;margin-top:7px}
.xiaoli-thinking-dots {display:inline-flex;gap:3px;margin-left:9px;vertical-align:middle}
.xiaoli-thinking-dots i {width:3px;height:3px;border-radius:50%;background:var(--brand);animation:xiaoli-dot 1.5s ease-in-out infinite}
.xiaoli-thinking-dots i:nth-child(2) {animation-delay:.16s}
.xiaoli-thinking-dots i:nth-child(3) {animation-delay:.32s}
@keyframes xiaoli-dot {0%,70%,100% {opacity:.35} 35% {opacity:1}}
[data-motion-paused="true"] .xiaoli-thinking-dots i {animation-play-state:paused}
@media (prefers-color-scheme:dark) {
  :root {--bg:#121a26;--surface:#1a2534;--surface-2:#202e40;--sunk:#25354a;--text:#edf4fc;--text-2:#bdcce0;--text-3:#a1b5cc;--border:#34475e;--border-strong:#617c9b;--brand:#8bc5ff;--brand-hover:#b2d9ff;--brand-soft:#213b59;--brand-ink:#10263e;--ink:#e3edfa;--ink-hover:#ffffff;--side:#162030;--side-2:#25354a;--side-text:#bdcce0;--side-active:#edf4fc;--polish-hover:#293a50;--polish-selected:#294361;--polish-row:#233347;--polish-rule:#30445c;--focus:0 0 0 3px #8bc5ff30}
  .xiaoli-home.home-center .composer {box-shadow:none}
  .xiaoli-home.home-center .composer:focus-within {box-shadow:0 0 0 3px #8bc5ff20}
}
@media (max-width:1100px) {
  .xiaoli-home.home.home-center {padding-top:10px}
  .xiaoli-intro {gap:12px}
  .xiaoli-presence {flex-basis:120px}
  .xiaoli-presence .xiaoli-avatar {width:120px;height:120px}
  .xiaoli-home.home-center .home-hi h1 {font-size:30px}
}
@media (max-width:640px) {
  .workspace-actions {gap:7px}
  .workspace-actions .workspace-status {font-size:12px}
  .xiaoli-help-trigger {padding-right:7px;font-size:12px;gap:2px;min-height:34px}
  .xiaoli-help-trigger .xiaoli-avatar {width:27px;height:27px}
  .xiaoli-home.home.home-center {gap:20px;padding-top:5px}
  .xiaoli-intro {flex-direction:column;gap:13px;padding:0}
  .xiaoli-presence {flex:auto}
  .xiaoli-presence .xiaoli-avatar {width:104px;height:104px}
  .xiaoli-name {margin-top:-12px;font-size:11px}
  .xiaoli-welcome {gap:8px;text-align:center}
  .xiaoli-home .home-eyebrow {font-size:12px}
  .xiaoli-home.home-center .home-hi h1 {font-size:27px;letter-spacing:-.05em}
  .xiaoli-home.home-center .home-hi h1 > span {display:inline}
  .xiaoli-home.home-center .home-hi p.home-note {font-size:13px;text-align:center}
  .xiaoli-context {gap:5px 12px}
  .xiaoli-home .xiaoli-context .home-stat {font-size:11px}
  .xiaoli-home.home-center .composer {padding:13px;gap:16px;border-radius:17px}
  .xiaoli-modes {gap:0;width:100%}
  .xiaoli-modes button {min-height:40px;padding:6px 11px}
  .xiaoli-scope {display:none!important}
  .xiaoli-home.home-center .composer textarea {font-size:16px;min-height:92px}
  .xiaoli-home.home-center .composer-bar {gap:7px}
  .xiaoli-home.home-center .composer-bar > .chip-btn:first-child {width:auto;padding:0 5px}
  .xiaoli-home.home-center .composer-bar .select-chip {max-width:calc(50% - 4px)}
  .xiaoli-home.home-center .chip-btn {min-height:40px}
  .xiaoli-home.home-center .send {min-height:44px;min-width:112px;margin-left:auto}
  .xiaoli-home .composer-hint > span:last-child {display:none}
  .xiaoli-home .home-shortcuts {gap:20px;grid-template-columns:minmax(0,1fr)}
  .xiaoli-home.home-center .home-shortcuts .suggest :is(button,a) {min-height:74px;padding:13px}
  .xiaoli-first-step button {min-height:44px}
  .xiaoli-home .ai-msg {padding:13px;gap:8px}
}
@media (prefers-reduced-motion:reduce) {
  .xiaoli-thinking-dots i {animation:none;opacity:1}
  .xiaoli-home .suggest :is(button,a):hover .i {transform:none}
}
/* 商品运营方案留在首页对话里；详情页仍使用自身命名空间。 */
.xiaoli-home .listing-ops-chat-card { min-width:0; width:100%; }
.xiaoli-home .listing-ops-chat-note { color:var(--text-3); font-size:14px; margin:8px 0; }
.xiaoli-home .listing-ops-chat-card details { margin:14px 0; }
.xiaoli-home .listing-ops-chat-card summary { cursor:pointer; color:var(--text-2); }
.xiaoli-home .listing-ops-chat-diffs { margin-top:8px; }
.xiaoli-home .listing-ops-chat-diff { display:grid; gap:4px; padding:10px 0; border-bottom:1px solid var(--border); overflow-wrap:anywhere; }
.xiaoli-home .listing-ops-chat-diff strong { font-size:14px; color:var(--text-3); font-weight:500; }
.xiaoli-home .listing-ops-chat-diff span { color:var(--text); }
.xiaoli-home .composer .select-chip[hidden] { display:none; }
.xiaoli-home .composer[data-mode="operations"] :is(.intake-upload-controls, [data-create-only]) { display:none; }
.xiaoli-home .composer[data-mode="collection"] :is(.intake-upload-controls, [data-create-only]) { display:none; }
.collection-chat-content { min-width:0; flex:1; }
.collection-chat-content > p { margin:8px 0; }
.collection-chat-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:16px 0; }
.collection-chat-items label { display:flex; align-items:flex-start; gap:10px; padding:12px; border:1px solid var(--border); border-radius:var(--r-sm); cursor:pointer; }
.collection-chat-items label:has(input:checked) { border-color:var(--brand); background:var(--brand-soft); }
.collection-chat-items input { flex:none; margin-top:5px; }
.collection-chat-items span { display:grid; gap:4px; min-width:0; }
.collection-chat-items b { font-size:14px; font-weight:550; overflow-wrap:anywhere; line-height:1.5; }
.collection-chat-items small { font-size:12px; color:var(--text-3); }
.collection-chat-job:not(:empty) { margin-top:16px; padding:14px; background:var(--surface-2); border-radius:var(--r-sm); }
.collection-chat-error { color:var(--red); }
@media(max-width:700px) { .collection-chat-items { grid-template-columns:1fr; } }
