﻿*{box-sizing:border-box}:root{--bg:#f7f7f8;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--brand:#10a37f;--shadow:0 18px 45px rgba(0,0,0,.08)}html,body{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans SC",Arial,sans-serif}button,textarea,input{font:inherit}button{border:0;cursor:pointer;background:var(--brand);color:#fff;border-radius:999px;padding:10px 14px;font-weight:600}.shell{height:100vh;display:grid;grid-template-columns:282px minmax(0,1fr);background:var(--bg)}aside{background:#fff;border-right:1px solid var(--line);padding:14px;display:flex;flex-direction:column;gap:12px;min-height:0;z-index:35}.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{font-size:18px;font-weight:800;padding:8px 6px}.sidebar-close{display:none;background:#f3f4f6;color:#111827;width:34px;height:34px;padding:0;border-radius:50%;font-size:22px;line-height:1}aside>button{width:100%;background:#fff;color:#111827;border:1px solid var(--line);border-radius:12px;text-align:left}.status{font-size:12px;color:var(--muted);line-height:1.55;background:#f9fafb;border:1px solid var(--line);border-radius:12px;padding:10px 12px;white-space:pre-line}#history{overflow:auto;min-height:0;flex:1}.hist-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;border-radius:10px;margin:4px 0}.hist-row:hover,.hist-row.active{background:#ececf1}.hist-row.disabled{opacity:.55}.hist-title{min-width:0;text-align:left;background:transparent;color:#374151;border-radius:10px;padding:10px 8px 10px 11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hist-title:disabled,.hist-menu:disabled{cursor:not-allowed}.hist-row.active .hist-title{color:#111827}.hist-menu{width:30px;height:30px;padding:0;background:transparent;color:#6b7280;border-radius:8px;font-size:20px;line-height:1}.hist-menu:hover{background:#fff;color:#111827}.hist-pop{position:absolute;right:6px;top:34px;z-index:45;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 28px rgba(0,0,0,.12);padding:5px}.hist-pop button{background:#fff;color:#dc2626;border-radius:8px;padding:8px 18px;white-space:nowrap}.hist-pop button:hover{background:#fef2f2}.hist.more{width:100%;display:block;text-align:left;margin:6px 0;background:transparent;color:#6b7280;border-radius:10px;padding:10px 11px;font-size:12px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:12px}.settings-entry{width:100%;background:#f8fafc;color:#111827;border:1px solid var(--line);border-radius:12px;text-align:left}#menu-btn{position:fixed;left:16px;top:14px;z-index:40;width:42px;height:42px;padding:0;border-radius:14px;background:#fff;color:#111827;border:1px solid #e5e7eb;box-shadow:0 8px 20px rgba(17,24,39,.08);font-size:22px;line-height:1}#sidebar-mask{display:none;position:fixed;inset:0;background:rgba(15,23,42,.28);z-index:30}main{position:relative;display:flex;flex-direction:column;min-width:0;height:100vh;background:var(--bg)}header{height:58px;flex:none;display:flex;align-items:center;justify-content:center;padding:0 18px 0 70px;border-bottom:1px solid rgba(0,0,0,.06);background:rgba(247,247,248,.86);backdrop-filter:blur(16px);position:sticky;top:0;z-index:5}header div{max-width:820px;width:100%;display:flex;align-items:baseline;gap:10px}header span{font-size:13px;color:var(--muted)}#messages{flex:1;overflow:auto;padding:28px 18px 210px;scroll-behavior:smooth}.empty{max-width:720px;margin:24vh auto 0;text-align:center;color:var(--muted);font-size:18px}.empty:before{content:"案维GPT";display:block;color:#111827;font-size:32px;font-weight:750;margin-bottom:12px}.msg{display:grid;grid-template-columns:36px minmax(0,780px);gap:12px;max-width:860px;margin:0 auto 22px;align-items:start}.msg.user{grid-template-columns:minmax(0,780px) 36px}.msg.user .avatar{grid-column:2}.msg.user .bubble{grid-column:1;grid-row:1;justify-self:end}.avatar{width:32px;height:32px;border-radius:50%;background:#10a37f;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}.user .avatar{background:#ab68ff}.bubble{background:transparent;border:0;border-radius:18px;padding:2px 0;line-height:1.58;white-space:pre-wrap;font-size:15px}.user .bubble{background:#fff;border:1px solid var(--line);box-shadow:0 1px 2px rgba(0,0,0,.04);padding:11px 15px;max-width:min(680px,100%)}#sources{position:fixed;left:282px;right:0;bottom:96px;z-index:9;max-height:112px;overflow:auto;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-top:1px solid var(--line);box-shadow:0 -12px 30px rgba(0,0,0,.04);padding:8px max(18px,calc((100vw - 282px - 860px)/2 + 18px));color:#374151}#sources:empty{display:none}.source{font-size:12px;border-bottom:1px solid rgba(0,0,0,.06);padding:7px 0;line-height:1.45}.source a{color:#2563eb;text-decoration:none}footer{position:fixed;left:282px;right:0;bottom:0;z-index:10;background:linear-gradient(180deg,rgba(247,247,248,0),rgba(247,247,248,.96) 18%,#f7f7f8);padding:18px 18px 16px;display:flex;justify-content:center}.composer{width:min(820px,100%);display:grid;grid-template-columns:1fr 46px;gap:8px;align-items:end;background:#fff;border:1px solid #d9d9e3;border-radius:26px;box-shadow:var(--shadow);padding:8px 8px 8px 18px}textarea{resize:none;min-height:28px;height:48px;max-height:160px;background:transparent;color:#111827;border:0;outline:0;padding:12px 2px;line-height:1.5}.composer button{width:42px;height:42px;border-radius:50%;padding:0;font-size:0;background:#111827}.composer button:before{content:"↑";font-size:22px;font-weight:800}.hint{position:fixed;left:282px;right:0;bottom:3px;text-align:center;font-size:11px;color:#9ca3af;z-index:11;pointer-events:none}.auth-modal,.settings-panel{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(17,24,39,.36);z-index:50;padding:18px}.auth-modal.show,.settings-panel.show{display:flex}.auth-card,.settings-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:24px}.auth-brand{font-size:24px;font-weight:800;margin-bottom:10px}.auth-card h2{margin:0 0 8px}.auth-card p{color:var(--muted);line-height:1.6}.auth-card input,.settings-card input{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 12px;margin:7px 0 12px;outline:0}.auth-message{min-height:20px;color:#dc2626;font-size:13px;margin-top:8px}.settings-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.settings-head button{background:#f3f4f6;color:#111827;width:32px;height:32px;padding:0}.settings-card label{display:block;font-size:13px;color:var(--muted)}.settings-card hr{border:0;border-top:1px solid var(--line);margin:16px 0}@media(min-width:801px){#menu-btn{display:none}}@media(max-width:800px){.shell{grid-template-columns:1fr}aside{position:fixed;left:0;top:0;bottom:0;width:min(82vw,320px);display:flex;transform:translateX(-105%);transition:transform .22s ease;box-shadow:18px 0 40px rgba(15,23,42,.16)}body.sidebar-open aside{transform:translateX(0)}body.sidebar-open #sidebar-mask{display:block}.sidebar-close{display:block}#sources,footer,.hint{left:0}header{padding-left:70px;justify-content:flex-start}header div{justify-content:flex-start}#messages{padding-bottom:210px}#menu-btn{left:14px;top:12px;background:#fff;color:#111827}}.attach-btn{width:42px;height:42px;border-radius:50%;padding:0;background:#f3f4f6!important;color:#111827!important;font-size:28px!important;line-height:1;font-weight:400!important}.attach-btn:before{content:""!important}.composer{grid-template-columns:42px 1fr 46px!important;position:relative}.image-menu{display:none;position:absolute;left:8px;bottom:58px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px;padding:8px;z-index:20;min-width:140px}.image-menu.show{display:block}.image-menu button{display:block;width:100%;background:#fff;color:#111827;border-radius:10px;text-align:left;padding:10px 12px;font-size:14px}.image-menu button:before{content:""!important}.image-menu button:hover{background:#f3f4f6}
.image-preview{display:none;grid-column:1/-1;padding:4px 6px 0}.image-preview.show{display:block}.image-chip{display:flex;align-items:center;gap:10px;background:#f8fafc;border:1px solid var(--line);border-radius:16px;padding:8px 10px}.image-chip img{width:58px;height:58px;object-fit:cover;border-radius:12px;border:1px solid var(--line);background:#fff}.image-chip div{min-width:0;flex:1}.image-chip b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.image-chip span{display:block;margin-top:3px;color:var(--muted);font-size:12px}.image-chip button{width:28px!important;height:28px!important;background:#fff!important;color:#6b7280!important;border:1px solid var(--line);font-size:18px!important}.image-chip button:before{content:""!important}.composer>button.stop-btn{background:#111827!important;border-radius:16px!important;font-size:18px!important;line-height:1!important}.composer>button.stop-btn:hover{background:#000!important}
.assistant .bubble{font-size:16px;line-height:1.82;color:#111827}.assistant .bubble p{margin:0 0 14px;text-indent:2em;white-space:pre-line}.assistant .bubble p:last-child{margin-bottom:0}.answer-heading{margin:18px 0 8px;font-weight:750;font-size:17px;color:#0f172a}.answer-heading:first-child{margin-top:0}.answer-list{margin:8px 0 16px 2.2em;padding:0;line-height:1.82}.answer-list li{margin:6px 0;padding-left:2px}.assistant .bubble a{color:#2563eb}.assistant .bubble .answer-heading+p{text-indent:2em}

.case-sidebar{position:fixed;right:0;top:0;bottom:0;width:320px;background:#fff;border-left:1px solid var(--line);z-index:20;padding:18px 14px;overflow:auto;box-shadow:-12px 0 30px rgba(15,23,42,.06)}.case-sidebar[hidden],#menu-btn[hidden],.case-sidebar section[hidden]{display:none!important}.case-sidebar section{margin-bottom:20px}.case-sidebar h3{margin:0 0 10px;font-size:15px;color:#111827}.case-empty{font-size:13px;color:var(--muted);line-height:1.55;background:#f8fafc;border:1px dashed var(--line);border-radius:14px;padding:12px}.case-list{display:flex;flex-direction:column;gap:9px}.case-group-title{margin:5px 2px 0;color:#064e3b;font-size:13px;font-weight:700}.case-item{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;position:relative;text-align:left;background:#f8fafc;color:#111827;border:1px solid var(--line);border-radius:14px;padding:10px 11px;font-weight:400}.case-item:hover{background:#eefdf8;border-color:#b7eadb}.case-title{display:block;min-width:0;color:#111827;font-size:13px;line-height:1.45;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.guiding-case-item .case-title{color:#064e3b}.case-meta{display:block;color:#059669;font-size:12px;line-height:1.3;font-weight:400;white-space:nowrap;flex:none}.case-hover-summary{display:none;grid-column:1/-1;margin-top:7px;max-height:96px;overflow:auto;background:#fff;color:#6b7280;border:1px solid #d1fae5;border-radius:10px;padding:8px 9px;font-size:12px;line-height:1.55;font-weight:400;white-space:normal}.case-item:hover .case-hover-summary{display:block}.case-overlay{position:fixed;inset:0;background:rgba(15,23,42,.58);z-index:80;display:none;padding:26px}.case-overlay.show{display:block}.case-overlay-card{height:100%;background:#fff;border-radius:20px;box-shadow:var(--shadow);overflow:auto;padding:26px;position:relative}.case-overlay-close{position:sticky;top:0;float:right;background:#111827;color:#fff;border-radius:999px;z-index:2}.case-overlay h2{margin:0 90px 10px 0;font-size:22px}.case-score{display:inline-block;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;border-radius:999px;padding:6px 12px;font-weight:800;margin-bottom:12px}.case-reason{color:#374151;background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:12px;line-height:1.7}.case-overlay pre{white-space:pre-wrap;word-break:break-word;line-height:1.85;font-family:inherit;font-size:15px;color:#111827}body.has-right-sidebar main{margin-right:320px}body.has-right-sidebar #sources,body.has-right-sidebar footer,body.has-right-sidebar .hint{right:320px}@media(max-width:1100px){.case-sidebar{display:none}body.has-right-sidebar main{margin-right:0}body.has-right-sidebar #sources,body.has-right-sidebar footer,body.has-right-sidebar .hint{right:0}}







#sources{display:none!important}
