.qh-chat{display:grid;grid-template-columns:320px minmax(0,1fr);background:#F5F7F4;gap:16px;min-height:650px;font-family:'Microsoft YaHei',sans-serif}.qh-chat-sidebar,.qh-chat-main{background:#fff;border:1px solid #EAF0E4;border-radius:16px;overflow:hidden}.qh-chat header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #EAF0E4}.qh-chat h2{margin:0;font-size:22px}.qh-chat button{cursor:pointer;border:1px solid #EAF0E4;border-radius:8px;padding:8px 12px;background:#fff;color:#2D572E}.qh-chat-sidebar>input{margin:12px;width:calc(100% - 24px)}.qh-chat-sidebar>div>button{display:block;width:100%;text-align:left;border-radius:0;min-height:76px}.qh-chat-sidebar small{display:block;color:#8A9A85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qh-chat-sidebar .active{background:#EDF5E4}.qh-chat-sidebar span{font-size:11px;margin-left:6px}.qh-chat-unread{float:right;border-radius:20px;background:#C0392B;color:white;padding:1px 6px}.qh-chat-main{display:flex;flex-direction:column;min-width:0}.qh-chat-tools{display:flex;padding:10px;gap:10px}.qh-chat-log{flex:1;height:450px;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:14px}.qh-chat-log article{max-width:80%;border-radius:12px;padding:12px;background:#EDF5E4;align-self:flex-start;overflow-wrap:anywhere}.qh-chat-log article.mine{align-self:flex-end;background:#2D572E;color:#fff}.qh-chat-log article small{display:block;font-size:11px;opacity:.8}.qh-chat-log p{white-space:pre-wrap;margin:8px 0}.qh-chat-log img{max-width:260px;max-height:200px;object-fit:contain}.qh-chat-log .qh-chat-system{align-self:center;background:transparent;color:#5A6B55;font-size:12px}.qh-chat-log a{color:inherit}.qh-chat-compose{display:flex;flex-wrap:wrap;gap:10px;padding:16px;border-top:1px solid #EAF0E4}.qh-chat-compose textarea{width:100%;min-height:65px;resize:vertical}.qh-chat-compose button[type=submit]{background:#2D572E;color:#fff;margin-left:auto}.qh-chat input,.qh-chat select,.qh-chat textarea{border:1px solid #E8EFE2;border-radius:8px;padding:8px;font:inherit;box-sizing:border-box}.qh-chat-error{color:#C0392B;margin:0 16px 8px}.qh-chat dialog{width:min(560px,90vw);border:1px solid #EAF0E4;border-radius:16px;padding:22px}.qh-chat dialog::backdrop{background:#0005;backdrop-filter:blur(3px)}.qh-chat dialog label{display:block;margin:10px 0}.qh-chat dialog input{display:block;width:100%}.qh-chat dialog select{display:block;width:100%;min-height:45px}.qh-chat dialog select[multiple]{min-height:140px}.qh-chat dialog button{margin:8px 5px 0 0}@media(max-width:700px){.qh-chat{grid-template-columns:1fr;gap:10px;min-height:70vh}.qh-chat-sidebar>div{display:flex;overflow-x:auto}.qh-chat-sidebar>div>button{min-width:130px;max-width:170px}.qh-chat-sidebar header{padding:10px}.qh-chat-sidebar>input{margin:8px}.qh-chat-main{min-height:60vh}.qh-chat-log{height:40vh;padding:12px}.qh-chat-log article{max-width:90%}.qh-chat-compose input[type=file]{max-width:210px;font-size:12px}.qh-chat h2{font-size:20px}}
