/* .gtp-drawer{position:fixed;z-index:999;right:0;top:0;width:360px;height:100%;background:#fff;border-left:1px solid #dcdfe6;display: none} */

body.gtpFullScreen{height:100%!important;overflow:hidden!important}

#gtpBtn{position:fixed;right:10%;bottom:60px;font-size:30px;background:#18ad3b;width:42px;height:42px;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#fff;z-index: 99}
#gtpBtn:hover{cursor:pointer;background:#139130}

.gtpCutLink{}
.gtpCutLink a{display:inline-flex;padding:0;border-radius:4px;width:30px;height:30px;align-items:center;justify-content:center}
.gtpCutLink a i{font-size:20px}
.gtpCutLink a:hover{cursor:pointer}
.gtpCutLink a.bule{color:#165dff}
.gtpCutLink a.bule:hover{background:#e8f3ff}
.gtpCutLink a.green{color:#18ad3b}
.gtpCutLink a.green:hover{background:#dcf3e1}

.gtp-drawer{position:fixed;z-index:999;left:calc(100vw - 560px - 60px);top:calc(100vh - 490px - 120px);width:560px;height:490px;background:#fff;border:1px solid #dcdfe6;display:none;border-radius:4px;box-shadow:0 6px 16px 0 rgba(0,0,0,0.08),0 3px 6px -4px rgba(0,0,0,0.12),0 9px 28px 8px rgba(0,0,0,0.05)}
.gtp-drawer.fullscreen{display:block;left:0!important;top:0!important;width:100%!important;height:100%!important}
.gtp-drawer .drawer-header{height:42px;display:flex;align-items:center;background:#f2f3f5;justify-content:space-between;border-radius:4px 4px 0 0;user-select:none}
.gtp-drawer .drawer-header:hover{cursor:move}
.gtp-drawer .drawer-header .title{font-size:16px;font-weight:600;padding-left:15px;color:#555}
.gtp-drawer .drawer-header .title span{font-size:14px;color:#666}
.gtp-drawer .drawer-header .funTool{padding-right:8px}
.gtp-drawer .drawer-header .funTool a{color:#999;display:inline-block;padding:0 6px;cursor:pointer}
.gtp-drawer .drawer-header .funTool a i{font-size:13px}
.gtp-drawer .drawer-header .funTool a:hover{color:#333;cursor:pointer}
.gtp-drawer .drawer-header .funTool .normalScreen-btn{display:none}
.gtp-drawer .drawer-header .funTool a.close-btn i{font-size:16px}
.gtp-drawer.fullscreen .drawer-header .funTool a.fullscreen-btn{display:none}
.gtp-drawer.fullscreen .drawer-header .funTool .normalScreen-btn{display:inline-block}
.gtp-drawer .drawer-body{height:calc(100% - 42px - 130px);padding:15px;overflow-y:auto;display:flex;flex-direction:column}

.msg{display:flex;margin-top:8px;flex-direction:column}
.msg + .msg{margin-top:30px}
.msg .msgWrap{max-width:98%;display:flex;position:relative}
.msg .msgWrap .msgIcon{width:36px;height:36px;text-align:center;line-height:36px;background:#ddd;font-size:20px;margin-right:15px;border-radius:50%;color:#f56a00;background:#fde3cf}
.msg .msgWrap .msgIcon.icon-user{background:#87d068;color:#fff}
.msg .msgWrap .userName{position:absolute;left:54px;top:-10px;color:#666;white-space:nowrap;display:none}
.msg .msgWrap .msgContent{max-width:calc(100% - 50px);box-sizing:border-box}
.msg .msgWrap .msgContent .txtContent{background:#f2f3f5;padding:12px 15px;border-radius:4px;position:relative;display:inline-block;max-width:100%;color:#333}
.msg .msgWrap .msgContent .markdown-body{font-family:Inter,"-apple-system",BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","noto sans","Microsoft YaHei","Helvetica Neue",Helvetica,Arial,sans-serif;line-height:1.6;border:none;background:transparent}
.msg .msgWrap .msgContent .txtContent:before{content:'';position:absolute;border:solid transparent;border-width:6px 6px 6px 0;border-right-color:#f2f3f5;left:-6px;color:#333}
.msg .msgWrap .msgContent .cutLink{margin-top:10px;display:flex;grid-gap:10px}
.msg .msgWrap .msgContent .tool{display:flex;justify-content:start}
.msg .msgWrap .msgContent .tool a{display:inline-block;padding:10px}

.msg.userMsg{justify-content:end}
.msg.userMsg .msgWrap .msgIcon{margin-right:0;margin-left:15px}
.msg.userMsg .msgWrap{flex-direction:row-reverse}
.msg.userMsg .msgWrap .msgContent .txtContent:before{border-width:6px 0 6px 6px;border-right-color:transparent;border-left-color:#f2f3f5;right:-6px;left:auto}

.gtp-drawer .drawer-footer{border-top:1px solid #ebebeb;height:130px;position:relative;padding:10px 15px;box-sizing:border-box}
.gtp-drawer .drawer-footer .input{height:calc(100% - 34px);width:100%;padding:0;border:none}
.gtp-drawer .drawer-footer .input:focus-visible,.gtp-drawer .drawer-footer .input:focus,.gtp-drawer .drawer-footer .input:hover{border:none;outline:none}
.gtp-drawer .drawer-footer .sendBtn{position:absolute;right:15px;bottom:10px;height:34px;padding:0;line-height:34px;font-size:14px;color:#fff;border-radius:4px;width:86px;text-align:center}
.gtp-drawer .drawer-footer .sendBtn i{display:none}

.gtp-drawer .resize{position:absolute;background:transparent;width:12px;height:12px;right:-1px;bottom:-1px}
.gtp-drawer .resize:hover{cursor:se-resize}

.gtp-drawer.loading .drawer-footer *:hover{cursor:not-allowed;pointer-events:none}
.gtp-drawer.loading .drawer-footer .sendBtn{pointer-events:none;cursor:not-allowed}
.gtp-drawer.loading .drawer-footer .sendBtn i{animation:circle 1s linear infinite;-webkit-animation:circle 1s linear infinite;display:inline-block;margin-right:8px;}