:root{--blue:#2d63bc;--navy:#1e365b;--text:#334863;--muted:#61728a;--line:#dce5f0;--bg:#f5f8fc;--accent:#edf4ff;--rail:76px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Arial,sans-serif;color:var(--text);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:16px;line-height:1.6}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{border:0}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #99bcfa;outline-offset:3px}button:disabled{cursor:wait;opacity:.6}svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
.rail{position:fixed;inset:0 auto 0 0;width:var(--rail);background:#fff;border-right:1px solid #e4ebf4;display:flex;flex-direction:column;align-items:stretch;z-index:30}.brand-mark{height:56px;display:grid;place-items:center;border-bottom:1px solid #e9eef6}.brand-mark img{width:28px;height:28px}.rail nav{padding-top:16px;display:grid;gap:8px}.rail-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:66px;padding:8px 4px;background:none;color:var(--muted);font-size:13px}.rail-item svg{width:23px;height:23px}.rail-item:hover{background:#f5f8fe;color:var(--blue)}.rail-item.active{background:#f2f7ff;color:var(--blue)}.rail-item.active:before{position:absolute;content:"";left:0;top:12px;bottom:12px;width:3px;border-radius:0 3px 3px 0;background:var(--blue)}.help-item{margin-top:auto;border-top:1px solid #e9eef6;min-height:64px}.shell{margin-left:var(--rail)}.topbar{height:56px;padding:0 24px;background:#fff;border-bottom:1px solid #e4ebf4;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:15px}.brand strong{font-size:18px;color:var(--navy);font-weight:650}.slash{color:#a9b4c2}.account{display:flex;align-items:center;gap:16px}.service-status{font-size:13px;color:#5c7087}.service-status.ready{color:#35705e}.account-button{background:none;display:flex;gap:8px;align-items:center;font-size:14px;padding:4px}.account-button>svg{width:12px;height:12px}.avatar{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#e8f0fc;color:var(--blue);font-size:14px}
main{max-width:1680px;margin:auto;padding:20px 24px 12px}.page-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.page-intro h1{font-size:26px;font-weight:650;color:var(--navy);line-height:1.4;margin:0 0 4px;letter-spacing:-.3px}.page-intro p{font-size:15px;color:var(--muted);margin:0}.quiet-button{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:14px;background:#fff;border:1px solid var(--line);border-radius:8px;min-height:34px;padding:6px 12px}.quiet-button svg{width:14px;height:14px}.quiet-button:hover{border-color:#9ab6e3}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 288px;gap:16px;align-items:stretch}.chat-panel{background:#fff;border:1px solid #d7e3f4;border-radius:12px;display:flex;flex-direction:column;min-height:650px;height:calc(100dvh - 170px);max-height:1000px;min-width:0;overflow:hidden}.panel-header{min-height:50px;padding:12px 18px;border-bottom:1px solid #edf1f7;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-header>div{display:flex;align-items:center;gap:8px}.panel-header>div>svg{color:var(--blue);width:18px;height:18px}.panel-header h2{margin:0;font-size:16px;font-weight:600;color:var(--navy)}.mode-tag{color:var(--muted);background:#f3f6fb;padding:2px 8px;border-radius:12px;font-size:12px}.icon-button{background:none;display:inline-flex;align-items:center;justify-content:center;width:28px;min-height:28px;flex-shrink:0;border-radius:6px;color:var(--muted)}.icon-button:hover{background:#f1f5fb;color:var(--blue)}.icon-button svg{width:17px;height:17px}.conversation{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px;scrollbar-width:thin}.welcome{min-height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;max-width:540px;margin:0 auto;padding:24px 12px}.welcome-star{width:36px;height:36px;margin-bottom:16px}.welcome h2{font-size:24px;line-height:1.4;font-weight:600;color:var(--navy);margin:0 0 10px}.welcome>p{color:var(--muted);font-size:15px;max-width:42ch;margin:0 0 24px}.suggestions{width:min(360px,100%);display:grid;gap:8px}.suggestions button{display:flex;justify-content:space-between;align-items:center;gap:16px;text-align:left;border:1px solid #dde8fa;background:#f8faff;border-radius:8px;padding:9px 12px;font-size:14px;min-height:38px;color:#2d4d7a}.suggestions button:hover{border-color:#a6c2f0;background:#f0f5ff}.suggestions svg{width:14px;height:14px;color:var(--blue)}.source-hint{font-size:13px;color:var(--muted);margin-top:16px}.composer-wrap{padding:0 16px 10px}.composer{background:#fff;border:1px solid #cfdcf0;border-radius:10px;padding:10px 12px 8px}.composer:focus-within{border-color:#6b97d9;outline:3px solid #f0f5ff}textarea{display:block;width:100%;min-height:48px;max-height:180px;border:0;padding:0;resize:vertical;outline:none;font-size:15px;line-height:1.7;background:transparent}textarea::placeholder{color:#64758b}.composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px}.upload-controls{display:flex;align-items:center;gap:6px;min-width:0}.upload-controls>span{font-size:12px;color:var(--muted)}.send-button{display:grid;place-items:center;width:34px;height:32px;border-radius:8px;background:var(--blue);color:#fff;flex-shrink:0}.send-button:hover{background:#2555a5}.send-button svg{width:18px;height:18px;fill:currentColor;stroke-width:1}.stop-button{background:#edf3fc;border:1px solid #d9e5f5;padding:4px 10px;border-radius:6px;font-size:14px}.composer-note{font-size:12px;text-align:center;color:var(--muted);margin:6px 0 0}.attachment{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#f2f6fc;border-radius:8px;margin:0 0 8px;font-size:13px}.attachment>svg{width:16px;height:16px}.attachment>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment>button{margin-left:auto}.creation-tabs{display:flex;align-items:center;gap:8px;border-bottom:1px solid #edf1f7;padding:8px 18px}.creation-tabs button{border-radius:6px;background:none;padding:5px 12px;font-size:14px}.creation-tabs button.active{background:#eaf2ff;color:var(--blue)}.creation-tabs span{color:var(--muted);font-size:12px;margin-left:auto}.data-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:12px 18px;background:#f8faff;border-bottom:1px solid #edf1f7}.data-overview>div{border-right:1px solid #e1e9f3;padding-right:8px}.data-overview>div:last-child{border:0}.data-overview small{display:block;font-size:12px;color:var(--muted)}.data-overview strong{display:block;font-size:20px;font-weight:600;color:var(--navy);font-variant-numeric:tabular-nums}
.right-panel{background:#fff;border:1px solid #d7e3f4;border-radius:12px;padding:16px 12px;min-width:0;max-height:1000px;overflow:auto;scrollbar-width:thin}.right-panel h2{font-size:15px;font-weight:650;color:var(--navy);margin:0 8px 8px}.module{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:12px 10px;border-radius:8px;min-height:64px;background:none;color:var(--text)}.module+.module{border-top:1px solid #edf1f7;border-radius:0}.module.active{background:#edf4ff;border-top-color:transparent;border-radius:8px;color:var(--blue)}.module.active+.module{border-top-color:transparent}.module:hover{background:#f5f8ff;border-radius:8px}.module>svg{width:23px;height:23px}.module strong{display:block;font-size:16px;font-weight:600;line-height:1.6}.module small{display:block;font-size:13px;color:var(--muted);line-height:1.5}.arrow{margin-left:auto!important;width:15px!important;height:15px!important;color:#6d86ab;flex-shrink:0}.resources,.recent{border-top:1px solid #e7edf5;margin-top:12px;padding-top:12px}.resources>a,.resources>button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:8px 10px;background:none;border-radius:6px;color:var(--text);font-size:14px;min-height:36px}.resources>a:hover,.resources>button:hover{background:#f4f7fd;color:var(--blue)}.resources svg{width:16px;height:16px}.external{margin-left:auto;width:12px!important;height:12px!important;color:#7d91ad}.resources>p{font-size:12px;color:var(--muted);line-height:1.6;margin:8px 10px 0}.recent-list button,#recent-list button{width:100%;text-align:left;background:none;padding:6px 10px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;color:var(--muted)}#recent-list button:hover{color:var(--blue)}.empty-recent{font-size:13px;color:var(--muted);margin:4px 8px}.knowledge-button{display:flex;align-items:center;gap:10px;width:100%;margin-top:12px;padding:10px 12px;border-radius:8px;background:#edf4ff;color:#2b568e;font-size:14px;text-align:left}.knowledge-button>svg{width:18px;height:18px}.page-footer{display:flex;align-items:center;justify-content:center;gap:12px;color:#6b7e94;font-size:12px;padding-top:12px}.message{padding:10px 0 18px;max-width:100%}.message-author{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px;margin-bottom:6px}.message-author .mini-avatar{width:20px;height:20px;border-radius:6px;background:#edf3ff;display:grid;place-items:center;color:var(--blue);font-size:12px}.message.user .message-author{justify-content:flex-end}.message.user .message-body{background:#edf4ff;border-radius:10px;padding:10px 14px;margin-left:auto;max-width:min(85%,620px);width:fit-content}.message-body{font-size:15px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}.message.error .message-body{color:#9a463e}.message.pending .message-body{color:var(--muted)}.message-actions{display:flex;gap:8px;margin-top:8px}.message-actions button{color:var(--muted);background:none;border:1px solid #e1e8f2;padding:3px 8px;border-radius:5px;font-size:12px}.sources{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.sources a{font-size:12px;color:#456a9f;border:1px solid #dce7f6;border-radius:5px;padding:3px 7px;background:#fafcff;max-width:100%;overflow-wrap:anywhere}.generated-image{display:block;width:min(100%,420px);border:1px solid var(--line);border-radius:10px;margin-top:10px}
dialog{border:1px solid #d7e2f0;border-radius:12px;background:#fff;color:var(--text);padding:24px;width:min(600px,calc(100% - 32px));max-height:85dvh;overflow:auto}dialog::backdrop{background:#384e6b66}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.dialog-heading h2{font-size:20px;margin:0;color:var(--navy);font-weight:600}.dialog-heading .icon-button{font-size:24px}dialog p,dialog li{font-size:15px;line-height:1.8}dialog ul{padding-left:20px}dialog a{overflow-wrap:anywhere}dialog form label{display:block;font-size:14px;margin-bottom:6px}dialog input{width:100%;height:42px;border:1px solid #becfe5;border-radius:8px;padding:8px 12px;outline:none}dialog input:focus{outline:3px solid #e7f0ff;border-color:#7a9bcd}.primary-button{background:var(--blue);border-radius:8px;padding:9px 16px;color:#fff;font-size:15px;min-height:40px}.form-error{min-height:20px;color:#a4453b;font-size:14px!important;margin:8px 0!important}.rule-section{border-top:1px solid #e5ebf3;padding-top:14px;margin-top:16px}.rule-section h3{font-size:16px;margin:0 0 8px;color:var(--navy)}.rule-section p{white-space:pre-wrap;margin:0}.meta-note{font-size:13px!important;color:var(--muted)}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:80;background:#edf4ff;border:1px solid #b9cde9;color:var(--navy);padding:10px 18px;border-radius:8px;font-size:14px;max-width:calc(100% - 32px);text-align:center}
@media(min-width:1700px){main{padding-top:28px}.workspace{grid-template-columns:minmax(0,1fr) 320px}.chat-panel{height:calc(100dvh - 190px)}.right-panel{padding:20px 16px}.module{min-height:72px}.resources>a,.resources>button{min-height:42px}}
@media(max-width:1120px){.workspace{grid-template-columns:minmax(0,1fr) 254px;gap:12px}main{padding:18px}.topbar{padding:0 18px}.conversation{padding:20px 18px}.welcome h2{font-size:23px}.right-panel{padding:14px 8px}.module{gap:8px}.module small{font-size:12px}}
@media(max-width:850px){:root{--rail:64px}.rail-item{font-size:12px;min-height:60px}.rail-item svg{width:21px;height:21px}.workspace{grid-template-columns:1fr}.right-panel{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px;max-height:none;overflow:visible}.module-list{grid-row:span 2}.resources{margin-top:0;padding-top:0;border-top:0}.recent{padding-top:10px;margin-top:0}.knowledge-button{grid-column:1/-1;margin-top:0}.chat-panel{height:650px;min-height:600px}.page-intro h1{font-size:25px}.creation-tabs span{display:none}}
@media(max-width:520px){:root{--rail:0px}.rail{position:sticky;inset:auto;width:auto;height:56px;border-right:0;border-bottom:1px solid var(--line);flex-direction:row;background:#fff;overflow-x:auto;scrollbar-width:none;top:0}.brand-mark{width:48px;height:56px;flex-shrink:0;border:0}.brand-mark img{width:23px;height:23px}.rail nav{padding:0;display:flex;gap:0;flex:1;justify-content:space-around}.rail-item{min-width:48px;min-height:56px;padding:6px 5px;gap:2px;font-size:11px}.rail-item svg{width:18px;height:18px}.rail-item.active:before{left:9px;right:9px;top:auto;bottom:0;height:2px;width:auto}.rail nav>a{display:none}.help-item{display:none}.topbar{height:48px;padding:0 14px}.brand{gap:8px;font-size:13px}.brand strong{font-size:17px}.service-status{display:none}.account{gap:0}.account-button{font-size:12px}.avatar{width:24px;height:24px}.account-button>svg{display:none}main{padding:16px 12px}.page-intro{margin-bottom:14px;align-items:flex-start;gap:12px}.page-intro h1{font-size:22px;max-width:17ch;letter-spacing:0}.page-intro p{font-size:13px;max-width:30ch;line-height:1.7}.quiet-button{font-size:12px;padding:4px 7px;min-height:30px}.quiet-button svg{width:12px;height:12px}.chat-panel{height:600px;min-height:560px;border-radius:10px}.panel-header{padding:10px 12px;min-height:44px}.panel-header h2{font-size:15px}.mode-tag{font-size:11px}.conversation{padding:16px 14px}.welcome{padding:24px 0}.welcome h2{font-size:22px}.welcome>p{font-size:14px;max-width:28ch;margin-bottom:20px}.welcome-star{width:32px;height:32px;margin-bottom:12px}.suggestions button{font-size:13px}.source-hint{font-size:12px}.composer-wrap{padding:0 10px 8px}.composer{padding:10px}.upload-controls>span{font-size:11px}.composer-note{font-size:11px}.right-panel{padding:16px 12px;gap:16px 12px}.right-panel h2{margin-left:4px;font-size:14px}.module{padding:10px 4px;gap:8px;min-height:62px}.module>svg{width:18px;height:18px}.module strong{font-size:15px}.module small{font-size:11px}.module .arrow{display:none}.resources>a,.resources>button{font-size:13px;padding:8px 4px;gap:8px}.resources svg{width:14px;height:14px}.resources p{font-size:11px;margin-left:4px}.resources .external{display:none}.recent{grid-column:2}.empty-recent{margin-left:4px;font-size:12px}#recent-list button{font-size:12px;padding-left:4px}.knowledge-button{min-height:40px}.page-footer{font-size:11px}.message-body{font-size:14px}.data-overview{gap:8px;padding:10px 12px}.data-overview strong{font-size:18px}dialog{padding:20px}.dialog-heading h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* 公司资料与图片在工作台内查看。 */
.library-dialog{width:min(1100px,calc(100% - 32px));max-height:90dvh}.library-toolbar{display:flex;gap:12px;margin:18px 0}.library-toolbar input{flex:1;min-width:0}.library-back{background:#edf4ff;color:var(--blue);padding:8px 12px;border-radius:7px;margin-bottom:12px;text-align:left}.library-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.library-entry{display:flex;align-items:center;gap:14px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:left}.library-entry:hover{border-color:#99b7e5;background:#f8faff}.library-entry>span{flex:1;min-width:0}.library-entry strong{display:block;font-size:16px;overflow-wrap:anywhere}.library-entry small{display:block;font-size:13px;color:var(--muted)}.library-entry img{width:64px;height:64px;object-fit:contain;border-radius:6px}.product-facts{display:grid;grid-template-columns:110px 1fr;gap:0;border-top:1px solid var(--line)}.product-facts dt,.product-facts dd{margin:0;padding:12px;border-bottom:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}.product-facts dt{color:var(--muted);background:#f8faff}.media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.media-card{margin:12px 0;min-width:0;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff}.library-image{display:block;max-width:100%;width:auto;max-height:640px;object-fit:contain;margin:auto;cursor:zoom-in;user-select:auto;-webkit-user-select:auto}.media-card figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:center;padding:10px 2px 0;font-size:13px}.media-name{overflow-wrap:anywhere;min-width:0}.media-actions{display:flex;gap:8px;flex-shrink:0}.media-actions button,.media-actions a{display:inline-block;border:1px solid #cddcf1;border-radius:6px;padding:6px 10px;background:#f4f8ff;color:var(--blue);font-size:13px}.message-media{max-width:760px}.message>.media-card{max-width:520px}.sources button{font:inherit;font-size:12px;color:#456a9f;border:1px solid #dce7f6;border-radius:5px;padding:3px 7px;background:#fafcff;max-width:100%;overflow-wrap:anywhere;text-align:left}.rail nav>button[data-library]{background:none}
@media(max-width:600px){.library-dialog{padding:16px;width:calc(100% - 20px)}.library-list,.media-grid{grid-template-columns:1fr}.library-entry{padding:12px}.product-facts{grid-template-columns:88px 1fr}.product-facts dt,.product-facts dd{padding:10px;font-size:14px}.media-card{padding:6px}.media-actions button,.media-actions a{font-size:12px}.library-image{max-height:560px}.rail nav>button[data-library]{display:none}}
.gallery-filters{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.gallery-filters button{padding:8px 12px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--muted);font:inherit;font-size:14px}.gallery-filters button[aria-pressed=true]{background:#edf4ff;border-color:#99b7e5;color:var(--blue)}
