[v-cloak] {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100vh;
    padding: 0;
    margin: 0;
    height: 100%;
    font-size: 14px;
    font-family: PingFang SC, Microsoft YaHei, 微软雅黑, Arial, 宋体, SimSun, system-ui, -apple-system, Helvetica Neue, sans-serif;
}

.container {
    margin: 0 auto;
    background: #FFFFFF;
    height: 100%;
    min-width: 1260px;
}

.main-with {
    display: flex;
    position: relative;
    background-color: #fff;
    min-width: 400px;
    height: 100%;
}

.main-with .left-nav {
    height: 100%;
    position: relative;
    width: 280px;
    background-color: #F7F8FC;
}

.main-with .left-nav .left-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.main-with .left-nav .left-container .logo {
    margin: 15px 12px 0;
}

.main-with .left-nav .left-container .logo img {
    height: 34px;
    display: block;
    cursor: pointer;
}

.main-with .left-nav .left-container .sidebar-menu {
    flex: 1;
    padding: 15px 12px 0;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-menu .sidebar-menu-item {
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 9px 12px;
    cursor: pointer;
    border: 1px solid #F7F8FC;
}

.sidebar-menu .sidebar-menu-item + .sidebar-menu-item {
    margin-top: 5px;
}

.sidebar-menu .sidebar-menu-item.active {
    background-color: #F0F1F5;
}

.sidebar-menu .new {
    background: rgba(0, 87, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.15);
    color: #0057ff;
}

.sidebar-menu .sidebar-menu-item:hover {
    background-color: #F0F1F5;
}

.sidebar-menu .new:hover {
    background: rgba(0, 102, 255, 0.1);
}

.sidebar-menu .sidebar-menu-item img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    display: block;
}

.sidebar-menu .sidebar-menu-item .user-name {
    width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #333333;
}

.sidebar-menu .history-chat {
    font-size: 13px;
    color: #999999;
    padding: 12px;
    border-top: 1px solid #F2F2F2;
}

.sidebar-menu .history-list {
    padding: 0 8px;
    flex: 1;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-menu .history-list .list-item {
    font-size: 14px;
    color: #333333;
    border-radius: 8px;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-menu .history-list .list-item + .list-item {
    margin-top: 5px;
}

.sidebar-menu .history-list .list-item.active {
    background: #F0F1F5;
}

.sidebar-menu .history-list .list-item:hover {
    background: #F0F1F5;
}

.sidebar-menu .history-list .list-item .title {
    padding: 10px 10px 10px 0;
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-menu .history-list .more {
    padding: 8px 0;
    box-sizing: border-box;
    outline: none;
    display: block;
    width: 0;
    visibility: hidden;
}

.sidebar-menu .history-list .list-item:hover .more {
    width: 14px;
    visibility: visible;
}

.sidebar-menu .history-list .more img {
    width: 14px;
    display: block;
}

.sidebar-menu .history-list .empty-box {
    display: flex;
    flex: 1 1 0;
    font-size: 13px;
    color: rgb(204, 204, 204);
    align-items: center;
    justify-content: center;
    padding-top: 60px;
}

.loading-box {
    font-size: 13px;
    color: #999999;
    padding: 2px;
    text-align: center;
}

.main-with .left-nav .left-container .sidebar-intro {
    margin: 10px 12px 10px;
    height: 44px;
}

.sidebar-intro .intro {
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    outline: none;
}

.sidebar-intro .intro:hover {
    background-color: #F0F1F5;
}

.sidebar-intro .el-dropdown {
    display: block;
}

.sidebar-intro .intro-left {
    display: flex;
    align-items: center;
}

.sidebar-intro .intro-left img {
    width: 24px;
    height: 24px;
    border-radius: 30px;
    margin-right: 8px;
}

.sidebar-intro .intro-left .user-name {
    width: 180px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #333333;
}

.sidebar-intro .intro .more {
    width: 14px;
}

.sidebar-intro .intro .more img {
    width: 14px;
    display: block;
}

.intro-top {
    display: flex;
    border-bottom: 1px solid #F2F2F2;
    padding: 10px 6px;
    margin: 0 10px;
    border-radius: 8px;
    cursor: unset;
    width: 200px;
}

.intro-top:not(.is-disabled):focus,
.intro-top:not(.is-disabled):hover {
    background-color: #fff;
}

.intro-top img {
    width: 24px;
    height: 24px;
    border-radius: 30px;
    margin-right: 10px;
}

.intro-top .user-name {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #333333;
}

.logout {
    display: flex;
    color: #EA2E2E;
    padding: 8px 14px;
    box-sizing: border-box;
    margin: 5px 10px 0;
    border-radius: 8px;
    cursor: pointer;
}

.logout:not(.is-disabled):focus,
.logout:not(.is-disabled):hover {
    background-color: #FEF0F0;
    color: #EA2E2E;
}

.logout img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.op {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #EA2E2E;
    border-radius: 8px;
    margin: 2px 10px;
    cursor: pointer;
}

.op img {
    width: 16px;
    margin-right: 8px;
}

.op:not(.is-disabled):focus,
.op:not(.is-disabled):hover {
    background-color: #FEF0F0;
    color: #EA2E2E;
}

.main-with .main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: calc(100% - 280px);
}

.main-container .content {
    flex: 1;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 3vh auto 0;
    max-height: calc(100vh - 26px);
    overflow-y: auto;
    width: 100%;
}

.main-container .input-section {
    max-height: 180px;
    flex-shrink: 0;
    height: fit-content;
    padding-left: calc((100% - 860px) / 2);
    padding-right: calc((100% - 860px) / 2);
    margin: 0 2px 10px;
}

.main-container .input-border {
    box-shadow: 0 6px 9px -2px rgba(245, 245, 245, 1);
    border-radius: 12px;
    border: 1px solid #F5F5F5;
    padding: 15px 10px 0;
    transition: border-color 0.3s ease;
}

.main-container .fileList {
    margin-bottom: 15px;
}

.main-container .fileList .chat_file {
    padding: 8px 12px;
    border-radius: 6px;
    width: 180px;
    position: relative;
    background-color: #f5f5f5;
}

.main-container .fileList .chat_file__content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-container .fileList .chat_file__icon {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
}

.main-container .fileList .chat_file__info {
    flex: 1;
    min-width: 0;
}

.main-container .fileList .chat_file__name {
    font-size: 14px;
    color: #333333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-container .fileList .chat_file__size {
    font-size: 12px;
    color: #999999;
    display: flex;
    align-items: center;
}

.main-container .fileList .chat_file__del {
    width: 15px;
    height: 15px;
    position: absolute;
    top: -7px;
    right: -7px;
    cursor: pointer;
}

.main-container .input-border .el-textarea__inner {
    width: 100%;
    min-height: 35px;
    border: none;
    color: #000;
    font-size: 15px;
    padding: 0;
    outline: none;
    resize: none;
    box-shadow: none;
}

.main-container .input-border .el-textarea__inner:focus {
    resize: none;
    border: none;
    outline: none;
    box-shadow: none;
}

.el-textarea__inner::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 6px;
}

.el-textarea__inner::-webkit-scrollbar-track {
    -webkit-appearance: none;
    background: transparent;
    border-radius: 3px;
}

.el-textarea__inner::-webkit-scrollbar-thumb {
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.el-textarea__inner::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

.el-textarea__inner {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.input-border:focus-within {
    border-color: #4d90fe;
    box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.2);
}

.main-container .input-section .controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 10px 5px 15px;
    box-sizing: border-box;
}

.controls .upload {
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid #F2F2F2;
}

.controls .upload:hover {
    background-color: rgba(0, 0, 0, .04);
}

.controls .upload img {
    width: 16px;
    margin: 7px;
}

.controls .send {
    cursor: pointer;
}

.controls .send img {
    width: 32px;
    display: block;
}

.main-container .content .title {
    font-weight: bold;
    font-size: 32px;
    color: #000000;
    text-align: center;
}

.main-container .content .title-tip {
    font-size: 15px;
    color: #909399;
    text-align: center;
    margin-top: 15px;
}

.main-container .bottom {
    text-align: center;
    margin: 10px 20px 10px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.3);
}

.main-container .bottom span {
    color: #528AF8;
    cursor: pointer;
}

.response-container {
    padding: 15px 0;
    font-size: 15px;
}

.response-container .typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    opacity: 0.9;
}

.scroll-container {
    height: 100%;
    overflow: auto;
    position: relative;
}

.message-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-left: calc((100% - 860px) / 2);
    padding-right: calc((100% - 860px) / 2);
    gap: 15px;
}

.message {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bubble {
    max-width: 100%;
    border-radius: 8px;
    word-wrap: break-word;
    font-size: 15px;
}

.message .fileList .chat_file {
    cursor: unset;
}

.message.user .bubble {
    display: flex;
    justify-content: flex-end;
}

.message.user .bubble .answer {
    background-color: #F0F1F5;
    border-radius: 8px;
    box-sizing: border-box;
    color: #333333;
    padding: 10px 12px;
    word-wrap: break-word;
    word-break: break-all;
    position: relative;
    max-width: 80%;
    font-size: 15px;
    line-height: 1.7;
}

.message.user .fileBar {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    max-height: 80px;
    gap: 10px;
    margin-bottom: 0;
}

.message.assistant .bubble {
    color: #222;
    box-sizing: border-box;
}

.message.assistant .bubble .answer {
    background-color: #fff;
    padding: 0;
    color: #222;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.7;
    white-space: normal;
}

.message.user .chat_file {
    background-color: #F0F1F5;
}

.message.assistant .tools {
    display: flex;
    gap: 12px;
}

.message.assistant .tools img {
    width: 16px;
    height: 16px;
    display: block;
    padding: 5px;
}

.message.assistant .tools div {
    cursor: pointer;
}

.message.assistant .tools div:hover {
    background-color: rgba(0, 0, 0, .04);
    border-radius: 2px;
}

.scroll-container {
    height: 100%;
    overflow: auto;
    position: relative;
}

.el-backtop {
    position: absolute;
    left: 50%;
    bottom: 25px;
    transform: translate(-50%, 0px);
    background: transparent;
    box-shadow: none;
}

.el-backtop img {
    width: 44px;
    height: 44px;
    border-radius: 22px;
}

.el-backtop img:hover {
    box-shadow: 0 6px 12px 1px #E8E8E8;
}

.text-message .el-message__content {
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
}

.login-dialog {
    margin: 20px 50px 0;
}

.login-dialog .tabs {
    width: 100%;
    display: flex;
    margin-bottom: 40px;
}

.login-dialog .tabs .tab-item {
    flex: 1;
    text-align: center;
    font-size: 18px;
    line-height: 26px;
    color: #999;
    padding-bottom: 10px;
    cursor: pointer;
    border-bottom: 1px solid #DEE6E6;
}

.login-dialog .tabs .tab-item.active {
    color: #000;
    border-bottom: 2px solid #4787F4;
}

.login-dialog .go-register {
    font-size: 14px;
    color: #999;
    text-align: right;
    margin: 16px 0 40px;
}

.login-dialog .go-register span {
    color: #4787F4;
    cursor: pointer;
}

.login-dialog .login-xy {
    font-size: 13px;
    color: #999;
    text-align: center;
}

.login-dialog .login-xy a {
    color: #4787F4;
    text-decoration: none;
}

.login-dialog .captcha .el-input-group__append {
    padding: 0;
}

.login-dialog .smsCode .el-input-group__append {
    background: #4787F4;
    color: #fff;
}

.login-dialog .class-yzm-img {
    width: 147px;
    height: 38px;
    cursor: pointer;
    padding: 1px;
}

.login-dialog .getCaptcha {
    width: 100%;
    background: #4787F4;
    border-radius: 0 4px 4px 0;
    color: #fff;
    padding: 0 12px;
}

.login-dialog .getCaptcha.is-disabled,
.login-dialog .getCaptcha.is-disabled:focus {
    background: #F5F5F5;
    color: rgba(0, 0, 0, 0.26);
    border: 1px solid #dcdfe6;
    border-left: 0;
}

.login-dialog .getCaptcha.is-disabled:hover {
    background-color: #F5F5F5 !important;
    color: rgba(0, 0, 0, 0.26);
    border: 1px solid #dcdfe6;
    border-left: 0;
}