:root{--bg: #eef3ef;--surface: #ffffff;--surface-soft: #f6faf7;--ink: #13241a;--muted: #657468;--line: #dce7df;--accent: #146b4a;--accent-strong: #0f5138;--accent-soft: #dff1e8;--danger: #a63b2b;--shadow: 0 26px 80px rgba(24, 54, 38, .14);font-family:Microsoft YaHei,PingFang SC,Noto Sans SC,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;background:linear-gradient(135deg,rgba(20,107,74,.13),transparent 34%),linear-gradient(315deg,rgba(20,107,74,.08),transparent 38%),var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px 13px;color:var(--ink);background:var(--surface);outline:none}textarea{min-height:130px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #146b4a24}.auth-page,.chat-page,.loading-page{min-height:100dvh}.auth-page{display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:42px;align-items:center;width:min(1120px,calc(100% - 34px));margin:0 auto;padding:42px 0}.auth-copy>span,.workspace-header span,.hero-panel>span,.chat-card header span,.sidebar-brand span{color:var(--accent);font-size:12px;font-weight:850}.auth-copy h1{max-width:650px;margin:12px 0 18px;font-size:clamp(46px,7vw,82px);line-height:1;letter-spacing:0}.auth-copy p{max-width:620px;margin:0;color:var(--muted);font-size:18px;line-height:1.75}.promise-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:30px}.promise-grid div,.stat-card,.trial-pill,.public-link,.check-list div,.sidebar-brand,.sidebar button,.brand-mark,.chat-card header,.chat-composer,.primary-button,.danger-button{display:flex;align-items:center}.promise-grid div{gap:9px;border:1px solid var(--line);border-radius:12px;padding:14px;background:#ffffff9e;font-weight:750}.auth-card,.content-card,.hero-panel,.chat-card{border:1px solid var(--line);border-radius:18px;background:#ffffffe6;box-shadow:var(--shadow)}.auth-card{display:grid;gap:15px;padding:28px}.brand-mark{gap:12px;margin-bottom:6px}.brand-mark>svg,.merchant-avatar,.sidebar-brand>svg{display:grid;place-items:center;flex:0 0 auto;width:48px;height:48px;border-radius:14px;padding:11px;color:var(--surface);background:var(--accent)}.brand-mark strong,.brand-mark span,.sidebar-brand strong,.sidebar-brand span{display:block}.brand-mark strong{font-size:22px}.brand-mark span,label{color:var(--muted);font-size:13px}label{display:grid;gap:7px;font-weight:760}.primary-button,.danger-button,.link-button,.public-link button,.sidebar button{border:0;border-radius:11px;font-weight:850}.primary-button{justify-content:center;gap:8px;min-height:46px;color:var(--surface);background:var(--accent)}.primary-button:disabled{cursor:not-allowed;opacity:.7}.link-button{min-height:40px;color:var(--accent);background:var(--accent-soft)}.form-error{margin:0;color:var(--danger);font-weight:780}.app-shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;gap:8px;height:100dvh;border-right:1px solid var(--line);padding:20px;background:#ffffffbd;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.sidebar-brand{gap:11px;margin-bottom:20px}.sidebar-brand strong{font-size:20px}.sidebar button{gap:10px;min-height:44px;padding:0 13px;color:var(--muted);text-align:left;background:transparent}.sidebar button.active,.sidebar button:hover{color:var(--surface);background:var(--accent)}.logout-button{margin-top:auto}.workspace{width:min(1080px,calc(100% - 34px));margin:0 auto;padding:28px 0 46px}.workspace-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.workspace-header h1{margin:4px 0 0;font-size:clamp(30px,4vw,46px);line-height:1.08}.trial-pill{gap:8px;border:1px solid rgba(20,107,74,.18);border-radius:999px;padding:10px 14px;color:var(--accent);background:var(--accent-soft);font-weight:850;white-space:nowrap}.panel-grid,.knowledge-layout{display:grid;gap:16px}.hero-panel,.content-card{padding:22px}.hero-panel{background:linear-gradient(135deg,rgba(255,255,255,.14),transparent 44%),var(--accent-strong);color:var(--surface)}.hero-panel>span{color:#bde8d0}.hero-panel h2{margin:8px 0 18px;font-size:30px}.public-link{gap:10px;border-radius:14px;padding:10px;background:#ffffff1a}.public-link span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.public-link button{display:flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;color:var(--accent);background:var(--surface)}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.stat-card{display:grid;gap:8px;border:1px solid var(--line);border-radius:16px;padding:18px;background:var(--surface)}.stat-card svg{color:var(--accent)}.stat-card span{color:var(--muted);font-size:13px;font-weight:760}.stat-card strong{font-size:30px}.content-card h2,.content-card h3{margin:0 0 16px}.check-list{display:grid;gap:10px}.check-list div{gap:9px;color:#33453a}.check-list svg{color:var(--accent)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid h2,.form-grid .wide,.form-grid .primary-button{grid-column:1 / -1}.item-list,.lead-table{display:grid;gap:12px}.item-list article,.lead-table article{border:1px solid var(--line);border-radius:14px;padding:15px;background:var(--surface-soft)}.item-list article span,.lead-table article small{color:var(--muted);font-size:12px}.item-list article strong,.lead-table article strong{display:block;margin:5px 0;font-size:17px}.item-list article p,.lead-table article p{margin:0 0 12px;color:#3b4f42;line-height:1.65}.danger-button{justify-content:center;min-height:34px;padding:0 11px;color:var(--danger);background:#fce8e4}.lead-table article div{display:flex;justify-content:space-between;gap:10px}.lead-table article div span{border-radius:999px;padding:5px 9px;color:var(--accent);background:var(--accent-soft);font-size:12px;font-weight:850}.empty{margin:0;color:var(--muted)}.toast{position:fixed;right:22px;bottom:22px;z-index:10;border-radius:13px;padding:12px 16px;color:var(--surface);background:#13241af0;box-shadow:var(--shadow)}.chat-page{display:grid;place-items:center;padding:18px}.chat-card{display:flex;flex-direction:column;width:min(430px,100%);height:min(820px,calc(100dvh - 36px));overflow:hidden}.chat-card header{gap:12px;border-bottom:1px solid var(--line);padding:18px}.chat-card header h1{margin:3px 0;font-size:21px}.chat-card header p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}.chat-window{display:flex;flex:1;flex-direction:column;gap:10px;overflow-y:auto;padding:16px;background:var(--surface-soft)}.visitor-message,.assistant-message{width:fit-content;max-width:86%;border-radius:16px;padding:11px 13px;font-size:14px;line-height:1.58}.visitor-message{align-self:flex-end;color:var(--surface);background:var(--accent)}.assistant-message{align-self:flex-start;color:var(--ink);background:var(--surface)}.chat-composer{gap:8px;border-top:1px solid var(--line);padding:12px;background:var(--surface)}.chat-composer button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:12px;color:var(--surface);background:var(--accent)}.loading-page{display:grid;place-items:center;gap:10px;color:var(--accent);font-weight:850}button{transition:transform .16s ease,background .16s ease,color .16s ease}button:active{transform:translateY(1px)}button:focus-visible{outline:3px solid rgba(20,107,74,.24);outline-offset:2px}@media(max-width:860px){.auth-page,.app-shell{grid-template-columns:1fr}.auth-page{padding:24px 0}.promise-grid,.stats-grid,.form-grid{grid-template-columns:1fr}.sidebar{position:static;display:grid;grid-template-columns:repeat(4,1fr);height:auto;padding:12px}.sidebar-brand,.logout-button{grid-column:1 / -1}.sidebar button{justify-content:center;padding:0 8px}.workspace{width:calc(100% - 24px);padding-top:18px}.workspace-header{align-items:flex-start;flex-direction:column}}@media(max-width:520px){.auth-copy h1{font-size:44px}.auth-card,.content-card,.hero-panel{padding:18px}.sidebar{grid-template-columns:repeat(2,1fr)}.public-link{align-items:stretch;flex-direction:column}}
