body {
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
    background-color: hsla(0,0%,100%,.7)
}

body:hover {
    background-color: #fff
}

#root,body,html {
    min-height: 100vh
}

.header {
    z-index: 9;
    position: fixed;
    background-color: hsla(0,0%,100%,.95);
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    height: 50px;
    box-shadow: 0 0 1px 0 rgba(0,0,0,.3),0 0 6px 2px rgba(0,0,0,.15)
}

.header,.header .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center
}

.header .container {
    padding: .5rem
}

.header .container .right {
    display: flex;
    flex-direction: row;
    align-items: center;
    display: none!important;
}

.body {
    overflow: hidden
}

.footer {
    padding: .5rem;
    text-align: center;
    color: #ccc
}

.center-box {
    left: 0;
    right: 0;
    margin: 10% auto;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    flex-direction: column
}

.center-box,.user-span {
    display: flex;
    align-items: center
}

.user-span {
    flex-direction: row
}

.user-span img.avatar {
    max-width: 24px;
    max-height: 24px;
    margin-right: .5rem;
    border-radius: 50%
}

.user-span span.coin {
    margin-left: .2rem;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: .2rem
}

.recharge-page .price {
    font-family: Georgia,Times,Times New Roman,serif;
    font-size: 36px
}

.profile-page .profile {
    text-align: center
}

.profile-page .profile .avatar {
    display: flex;
    flex-direction: column;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: auto
}

.profile-page .profile .avatar img {
    border-radius: 50%;
    margin: 10px;
    max-width: 100px
}

.profile-page .detail .row {
    width: 50%;
    margin: 20px auto 0;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee
}

.nav-menu {
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    height: 50px
}

.nav-menu.active {
    background-color: #eee
}

.chat-box {
    margin-top: 10px;
    width: 100%
}

.chat-box .input-box {
    background-color: hsla(0,0%,100%,.6)
}

.chat-box .input-box:hover {
    background-color: hsla(0,0%,100%,.8)
}

.chat-list {
    background-color: hsla(0,0%,100%,.6);
    margin-top: 20px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 20px 10px;
    border-radius: 2px;
    flex: 1 1;
    box-sizing: border-box;
}

.chat-list:hover {
    background-color: hsla(0,0%,100%,.8)
}

.chat-item {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    padding-top: 0;
}

.chat-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px
}

.chat-item .content {
    width: 100%;
    box-sizing: border-box;
    line-height: 1.8;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    overflow-x: auto;
    position: relative;
}

.chat-item .content span.copy {
    display: none;
    position: absolute;
    right: 2px;
    bottom: 2px
}

.chat-item .content span.remove {
    display: none;
    position: absolute;
    right: 22px;
    bottom: 2px
}

.chat-item .content:hover span.copy,.chat-item .content:hover span.remove {
    display: block;
    opacity: .5
}

.chat-item .content p {
    margin: 0
}

.chat-item .content pre {
    overflow-x: auto;
    word-break: break-all
}

.chat-item .content pre code {
    white-space: pre-wrap!important
}

.chat-item .content .name {
    font-size: 12px;
    color: #ccc
}

.chat-item .content .text {
    font-size: 14px
}

.chat-item.me {
    flex-direction: row-reverse
}

.chat-item.me .content {
    align-items: center;
    background-color: #faebd7;
    margin-left: 50px
}

.chat-item.robot .content {
    background-color: #eee;
    margin-right: 50px
}

.chat-page {
    padding-left: 5px;
    padding-right: 5px;
    margin-top: 20px;
    height: calc(100vh - 20px)
}

.chat-page .left-box {
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: space-between
}

.chat-page .right-box {
    width: 720px;
    display: flex;
    flex-direction: column
}

.char-box {
    width: 200px;
    position: fixed;
    bottom: 0;
    display: none!important;
}

.char-box .slider {
    display: none;
    position: absolute;
    width: 100%;
    bottom: 0
}

.char-box:hover .slider {
    display: block
}

@media screen and (max-width: 1024px) {
    .chat-page {
        padding:10px
    }

    .chat-page .left-box {
        display: none
    }

    .chat-page .right-box {
        width: 100%;
        margin-left: 0;
    }
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word
}

.xs-btn svg {
    color: #ccc;
    width: 12px
}

.xs-btn .bp3-button-text {
    color: #ccc;
    font-size: 12px
}

.gray-btn .bp3-button-text,.gray-btn svg {
    color: #ccc
}

.gray-btn:hover .bp3-button-text,.gray-btn:hover svg {
    color: #000
}

.history-list,.prompt-list {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    padding-left: 5px;
    padding-right: 5px;
    position: relative
}

.history-list .bottom-effect,.prompt-list .bottom-effect {
    display: block;
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px
}

.history-list:hover,.prompt-list:hover {
    z-index: 2
}

.history-list:hover .bottom-effect,.prompt-list:hover .bottom-effect {
    display: none
}

.history-list .history-item,.history-list .prompt-item,.prompt-list .history-item,.prompt-list .prompt-item {
    background-color: hsla(0,0%,100%,.6);
    color: #000
}

.history-list .history-item .action-icon,.history-list .prompt-item .action-icon,.prompt-list .history-item .action-icon,.prompt-list .prompt-item .action-icon {
    visibility: hidden
}

.history-list .history-item:hover,.history-list .prompt-item:hover,.prompt-list .history-item:hover,.prompt-list .prompt-item:hover {
    background-color: hsla(0,0%,100%,.95)
}

.history-list .history-item:hover .action-icon,.history-list .prompt-item:hover .action-icon,.prompt-list .history-item:hover .action-icon,.prompt-list .prompt-item:hover .action-icon {
    visibility: visible
}

::-webkit-scrollbar-thumb {
    background-color: hsla(0,0%,80%,.2);
    border-radius: 3px
}

::-webkit-scrollbar {
    width: 3px;
    height: 3px
}

.container {
    max-width: 1000px!important
}

.box-footer {
    border-top: 1px dotted #ccc;
    margin-top: 30px;
    padding-top: 20px
}

.markdown-text ol {
    margin-left: 18px
}

.markdown-text ol li {
    list-style: decimal
}

.markdown-text ul {
    margin-left: 18px
}

.markdown-text ul li {
    list-style: disc
}

.drag-handle {
    -webkit-app-region: drag
}

.chat-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1
}

.chat-bg,.chat-bg img {
    height: 100%;
    width: 100%
}

.chat-bg img {
    object-fit: cover
}

.no-margin .bp3-control {
    margin-bottom: 0!important
}

:focus {
    outline: none!important
}
