/* ＷＥＢＭＡＮ ＡＩ 主样式 */
html,
body {
  font-size: 15px;
  background-color: var(--ai-white-bg);
  height: 100%;
}

*::-webkit-scrollbar {
  width: 0;
}

[data-bs-theme="dark"] {
  --ai-left-bg: #212529;
  --bs-form-control-bg: #343a40;
  --bs-body-color: rgb(243 243 243);
  --ai-dark-bg: #2b2d31;
  --ai-head-bg: #2b2d31;
  --ai-gray-bg: #313338;
  --ai-light-bg: #313338;
  --ai-message-bg: #3a3c41;
  --ai-body-bg: #495057;
  --bs-primary: #2f81f7;
  --bs-range-thunmb-bg: #f3f4f5;
  --ai-message-list-bg: var(--ai-gray-bg);
  --ai-message-footer-bg: rgb(83, 86, 88, 0.75);
  --ai-hover-color: #bbb;
  --ai-selected-bg: #3a3c41;
  --ai-dark-border: 0;
  --bs-btn-color: #aab6c2;
  --ai-white-bg: #373f47;
  --ai-slider-runnable-track: var(--bs-form-control-bg);
  --bs-heading-color: var(--bs-body-color);
  --bs-card-title-color: var(--bs-body-color) !important;
  --bs-danger-rgb: 255, 90, 106;
  --bs-danger: #ff5a6a;
  --bs-secondary-rgb: 160, 167, 173;
  --bs-border-color: rgb(83, 86, 88, 0.75);
}

[data-bs-theme="light"] {
  --ai-left-bg: #e9ecf3;
  --dsr-side-bg-rgb: 249, 251, 255;
  --dsr-side-bg: #f9fbff;
  --ai-dark-bg: #fafafa;
  --ai-gray-bg: #f3f3f369;
  --ai-head-bg: #fff;
  --ai-light-bg: #f2f3f5;
  --ai-message-footer-bg: #f1f1f1;
  --ai-message-list-bg: #fff;
  --ai-message-bg: #fff;
  --ai-body-bg: var(--bs-border-color);
  --bs-form-control-bg: #eee;
  --bs-range-thunmb-bg: var(--bs-primary);
  --ai-hover-color: #666;
  --ai-selected-bg: rgb(238, 238, 238);
  --ai-dark-border: 1px solid var(--bs-border-color);
  --ai-white-bg: #fff;
  --ai-slider-runnable-track: #dee2e6;
  --bs-heading-color: var(--bs-body-color);
}

.white-bg {
  background: var(--ai-white-bg);
}

.black-bg {
  background: var(--bs-body-bg);
}

.dark-bg {
  background: var(--ai-dark-bg);
}

.gray-bg {
  background: var(--ai-gray-bg);
}

.light-bg {
  background: var(--ai-light-bg);
}

.selected-bg {
  background: var(--ai-selected-bg);
}

.form-control-bg {
  background: var(--bs-form-control-bg);
}

[data-bs-theme="light"] .form-control-shadow {
  box-shadow: 0 0 0 0.25rem #d4e1f6;
  transition: none;
}

[data-bs-theme="light"] .form-control-shadow:focus {
  box-shadow: 0 0 0 0.25rem #a3c4f7;
  transition: none;
}

[data-bs-theme="dark"] .form-control-shadow {
  box-shadow: 0 0 0 0.25rem #2c3b56;
  transition: none;
}

[data-bs-theme="dark"] .form-control-shadow:focus {
  box-shadow: 0 0 0 0.25rem #25477c;
  transition: none;
}

.form-group {
  margin-bottom: 0.7rem;
}

.ai-container {
  background: var(--bs-body-bg);
}

.dark-border {
  border: var(--ai-dark-border);
}

.text-secondary-sm {
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
}

[data-bs-theme="dark"] .shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 8%) !important;
}

.message-bg {
  background: var(--ai-message-bg);
}

input[type="range"]::-webkit-slider-runnable-track {
  background: var(--ai-slider-runnable-track);
}
input[type="range"]::-webkit-slider-thumb {
  background: var(--bs-range-thunmb-bg);
}
input[type="range"]::-moz-range-thumb {
  background: var(--bs-range-thunmb-bg);
}

input,
textarea {
  outline: none;
  resize: none;
}

input,
textarea,
select {
  background: var(--bs-form-control-bg);
}

input[type="number"] {
  -moz-appearance: textfield;
}

.container-fluid {
  padding: 0;
  font-size: 0.9rem;
}

a {
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  border-bottom: none;
}
.modal-footer {
  border-top: none;
}

/** 兼容bootstrap4 webman提示 **/


.modal-header .close {
  padding: 1rem 1rem;
  margin: -1rem -1rem -1rem auto;
}

button.close {
  padding: 0;
  background-color: transparent;
  border: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

[data-bs-theme="dark"] button.close {
  filter: var(--bs-btn-close-white-filter);
}

.cursor-not-allowed {
  cursor: not-allowed !important;
}
.mr-2 {
  margin-right: 0.5rem !important;
}
.mr-auto,
.mx-auto {
  margin-right: auto !important;
}
/** end **/

.ai-menu-icon::before {
  font-family: iconfont;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  cursor: pointer;
}

.icon-chat::before {
  content: "\e9f3";
}
.icon-chat-fill::before {
  content: "\e9f4";
}
.icon-painting::before {
  content: "\e603";
}
.icon-painting-fill::before {
  content: "\e601";
}
.icon-sd::before {
  content: "\e604";
}
.icon-market::before {
  content: "\e9f6";
}
.icon-market-fill::before {
  content: "\e9f5";
}
.icon-gallery::before {
  content: "\e863";
}
.icon-gallery-fill::before {
  content: "\e861";
}
.icon-vip::before {
  content: "\ea41";
}
.icon-vip-fill::before {
  content: "\ea40";
}
.icon-me::before {
  content: "\ea42";
}
.icon-me-fill::before {
  content: "\ea3f";
}

.header {
  height: 45px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  padding: 0 1rem;
  background: none;
  /* border-top-right-radius: var(--bs-border-radius) !important;
    box-shadow: 0 .125rem .25rem rgba(var(--bs-body-color-rgb), .075) !important; */
  position: relative;
  /* z-index: 100; */
}

[data-bs-theme="dark"] .header {
  box-shadow: 0 1px 0 hsl(0 calc(1 * 0%) 0.8% / 0.2),
    0 1.5px 0 hsl(240 calc(1 * 7.7%) 2.5% / 0.05),
    0 2px 0 hsl(0 calc(1 * 0%) 0.8% / 0.05) !important;
}

@font-face {
  font-family: "iconfont"; /* Project id 4079339 */
  src: url("//at.alicdn.com/t/c/font_4079339_i4n00vxvxhk.woff2?t=1716511727295")
      format("woff2"),
    url("//at.alicdn.com/t/c/font_4079339_i4n00vxvxhk.woff?t=1716511727295")
      format("woff"),
    url("//at.alicdn.com/t/c/font_4079339_i4n00vxvxhk.ttf?t=1716511727295")
      format("truetype");
}

.icon {
  font-family: iconfont;
}

.icon-btn {
  font-family: iconfont;
  color: var(--bs-body-color);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--ai-hover-color);
}

.icon-btn-secondary {
  font-family: iconfont;
  color: var(--ai-hover-color);
  cursor: pointer;
}

.icon-btn-secondary:hover {
  color: var(--bs-body-color);
}

.iconfont {
  font-family: iconfont;
  cursor: pointer;
  border-radius: var(--bs-border-radius);
  padding: 0 0.4rem;
}

.icon-btn-secondary {
  font-family: iconfont;
  color: var(--bs-secondary-color);
}

.icon-btn-secondary:hover {
  color: var(--bs-body-color);
}

.empty::before {
  font-family: iconfont;
  content: "\e9e4";
  align-items: center;
  justify-content: center;
  display: flex;
  height: 100%;
  width: 100%;
  font-size: 120px;
  color: var(--bs-secondary-bg);
}

.slide-in {
  animation: slideInFromRight 0.1s ease-in-out;
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

.slide-out {
  animation: slideOutToRight 0.1s ease-in-out;
}

@keyframes slideOutToRight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

.slide-up {
  animation: slideUp 0.1s forwards;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.fade-out {
  animation: fadeOut 2s forwards;
}

.iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.small-window {
  max-width: 1140px;
  max-height: 895px;
  border-radius: var(--bs-border-radius);
  position: relative;
}

.left-bar {
  width: 250px;
  height: 100%;
  padding: 24px 10px 20px;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  justify-content: start;
  font-family: iconfont;
  background: var(--ai-left-bg);
  z-index: 9;
  position: relative;
  transition: all 0.35s;
  /* background:rgb(243 243 243); */
  /* border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color); */
}
.left-bar .toggle{
    background: #ccc !important;
    top:50%;
    margin-top: -18px;
}
.left-bar-hide .login,.left-bar-hide .name{
  display: none;
}
.left-bar-hide .toggle .iconfont{
  color: #fff !important;
  transform: rotate(180deg) !important;
}
.search-box {
  height: 50px;
  overflow: hidden;
  margin: 22px 0.8rem 0;
}

.search {
  border-radius: 50px;
  padding-left: 15px;
  height: 33px;
  border-radius: 30px;
}

.search::-moz-placeholder {
  opacity: 1;
  color: #9ca3af;
}

.search::-webkit-input-placeholder {
  /* WebKit browsers */
  opacity: 1;
  color: #9ca3af;
}

.search::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  opacity: 1;
  color: #9ca3af;
}

.search::-ms-input-placeholder {
  /* Internet Explorer 10+ */
  opacity: 1;
  color: #9ca3af;
}

.login {
  font-size: 15px;
  color: #000000;
  margin-left: 10px;
}
.left-bar .icon-btn,
.left-bar .ai-menu {
  font-size: 22px;
  color: #000000;
  cursor: pointer;
  padding: 6px 10px;
  height:32px;
}

.left-bar [class*=" bi-"] {
  font-size: 18px;
}

.left-bar .ai-menu [class*="icon-"]::before {
  font-style: normal !important;
}

.left-bar .hover {
  background: #fff;
  border-radius: 8px;
}
.left-bar .ai-menu .name {
  font-size: 14px;
  line-height: 1;
}

.left-bar > div:last-child {
  /* margin-top: auto !important; */
  /* display: none  !important; */
}

.left-bar .icon-btn.selected {
  color: var(--bs-primary);
}

.left-bar .avatar {
  width: 40px;
  height: 40px;
}
.records{
  margin-top: 1rem;
}
.records .title{
  color: #a7a7a7;
  padding: 10px 0;
  margin:0 10px;
  border-top:1px solid #e1e1e1;
}
.records-search{
      border: 0;
    background: #ffffff;
    padding: 4px;
    border-radius: 5px;
    margin: 0 10px 10px;
    width: 165px;
}
.records-list{
  padding-bottom: 100px;
    overflow-y: scroll;
    height: 600px;
}
.records .avatar{
  width: 22px;
  height: 22px;
  border-radius: unset;
  background:none;
}
.records .records-item{
    padding: 4px 10px;
    cursor: pointer;
    margin: 6px 0;
    border-radius: 12px;
    position: relative;
}
.records .records-item.active{
  background-color: #d4e4f7;
}

.records .records-item:hover{
  background-color: #eff6ff;
}
.records .records-item .name{
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    /* margin-left: 5px; */
    color: #262626;
    font-size: 14px;
    align-items: center;
    overflow: hidden;
}
.records .records-item .action{
    width: 30px;
    content: "";
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 7px;
    opacity: 0;
    padding-left: 7px;
    z-index: 99;
}
.records .records-item:hover .action{
    background: #eff6ff;
    opacity: 1;
}
.records .records-item.active .action{
    background: #d4e4f7;
    opacity: 1;
}
.records .records-item.active:hover .action{
  background: #eff6ff;
  opacity: 1;
}
.edit-records-input{
    border: 2px solid #0d6efd;
    padding: 4px 10px;
    cursor: pointer;
    margin: 4px 0;
    height: 26px;
    border-radius: 12px;
    width: 100%;
}
.category .category-item{
    font-size: 18px;
    margin: 10px 20px;
    padding:10px 0;
    font-weight: bold;
    border-bottom: 2px solid #fafafa;
    cursor: pointer;
}
.category .category-item.selected{
  color:#0d6efd;
  border-bottom: 2px solid #0d6efd;
}
.left-bar-hide  .ai-menu{
  padding: 8px 7px;

}
.left-bar-hide .records  .title{
  margin:auto;
  text-align: center;
}
.left-bar-hide .records .records-item{
  padding: 4px 4px;
}
.left-bar-hide .icon-bottom{
  display: none;
}
.left-bar-hide .records{
  display: none;
}
.send-btn {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  margin: 0;
  display: flex;
  align-items: baseline;
}
.send-btn .btn {
  border-radius: 50px;
  padding: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.footer-txt-box {
  position: absolute;
  left: 0.8rem;
  bottom: 0.5rem;
  margin: 0;
  font-size: 12px;
}

.footer-txt-box a {
  color: var(--bs-border-color) !important;
  text-decoration: none;
}

.add-btn {
  height: 1.95rem !important;
  width: 2.2rem !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-body-color);
}

.chat-tools-left {
  border-radius: 50px;
  cursor: pointer;
  /* border: 1px solid rgba(0, 0, 0, 0.12); */
  background:rgb(219 234 254);
  padding: 1px 10px;
}
.chat-tools-left:hover {
  background-color: #c3daf8;
}
.chat-tools-left .chat-tools-title{
  color: #4d6bfe;
}

.chat-tools-item {
  font-size: 14px;
  cursor: pointer;
  color: #b6bcc1;
  display: inline-block;
}

.chat-tools-item:hover {
  background-color: #00000014;
  border-radius: 8px;
}

.chat-tools-clean {
  font-size: 14px;
  cursor: pointer;
  color: #b6bcc1;
  display: inline-block;
  line-height: 1;
}

.chat-tools-clean:hover {
  color: #606060;
}

.chat-tools-title {
  font-size: 14px;
  color: #b6bcc1;
  display: inline-block;
  margin-right: 4px;
}
[v-cloak] {
  display: none !important;
}

.params-box {
  position: absolute;
  bottom: 200px;
  background-color: var(--bs-body-bg);
  padding: 1rem;
  border-radius: var(--bs-border-radius);
  max-width: 100%;
  width: 450px;
}

.center-div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.center-box {
  position: absolute;
  width: 400px;
  background-color: var(--bs-body-bg);
  border-radius: var(--bs-border-radius);
  top: 50%;
  left: 50%;
  margin-left: -200px;
  margin-top: -250px;
  padding: 2rem;
  max-width: 100%;
}

.more-box {
  position: absolute;
  bottom: 20px;
  left: 66px;
  background-color: var(--bs-body-bg);
  width: 200px;
}

.right-box {
  width:300px;
 
}
.model-list {
  width:300px;
  position: fixed;
  padding:24px 12px 20px;
  border-left: 1px solid #e1e1e1;
  right:0;
}
.model-list .title{
    font-size: 18px;
    font-weight: 600;
}
.model-list .list {
  background: #f4f5f7;
  margin-top: 20px;
  border-radius: 8px;
  padding: 10px;
}
.model-list .list .item {
  background: #fff;
  margin: 0;
  padding:8px;
  margin-bottom: 10px;
  position: relative;
}
.model-list .list .item:last-child {
  margin-bottom: 0;
}

.model-list .list .item .avatar{
  width: 28px;
  height: 28px;
}
.model-list .list .item .close {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #000;
}
.model-list .list .item .close img{
  width:18px;
}

.model-list .btn{
    width: 100%;
    background: #0d6efd;
    color: #fff;
    margin-top: 20px;
}


.model-list .toggle{
  position: absolute !important;
  left: -16px;
  top: 50%;
  margin-top: -18px;
  transform: rotate(180deg) !important;
}

.show-model{
  position: fixed !important;
  top: 50%;
  right: 3px !important;
}

.send-method-box {
  position: absolute;
  bottom: 200px;
  right: 0;
  background-color: var(--bs-body-bg);
  padding: 0.6rem;
  border-radius: var(--bs-border-radius);
  cursor: pointer;
  max-width: 100%;
}

.top-right-options-box {
  position: absolute;
  top: 45px;
  right: 0;
  background-color: var(--bs-body-bg);
  width: 160px;
}

.dropdown-item {
  padding: 0.25rem 1rem 0.25rem 1rem;
  font-size: 14px;
}

.dropdown-item:active,
.dropdown-item:hover {
  color: var(--bs-primary-text);
}

.dropdown-item.selected::before {
  content: "✓";
}

.chat-bar {
  height: 100%;
  width: 250px;
  flex-shrink: 0;
  /* background-color: #fafafa; */
  position: relative;
  z-index: 1;
  transition: all 0.25s;
  display: none;
}

.hide {
  transform: translateX(-100%); /* 向左移动100% */
  width: 0;
}


.left-bar-hide {
  transform: translateX(0%); /* 向左移动4% */
  width: 60px;
}

.chat-list {
  height: calc(100% - 50px);
  overflow-y: scroll;
  overflow-x: hidden;
  padding-bottom: 1rem;
}
.chat-list .item {
  padding: 0.6rem;
  margin: 0.6rem 0.8rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  -webkit-user-select: none !important;
  user-select: none !important;
  overflow: hidden;
}

.chat-list .item:hover {
  /* background-color: var(--ai-selected-bg); */
}

.chat-list .item .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-list .text-truncate {
  max-width: 150px;
}
.chat-bar .toggle,.left-bar .toggle,.model-list .toggle,.show-model  {
  transition: color 0.3s var(--n-bezier), right 0.3s var(--n-bezier),
    left 0.3s var(--n-bezier), border-color 0.3s var(--n-bezier),
    background-color 0.3s var(--n-bezier);
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: absolute;
  right: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  border: 1px solid rgb(239, 239, 245);
  background-color: #0d6efd ;
  box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.06);
  transform: translateX(46%) translateY(-50%);
  z-index: 1;
}

.chat-box-home {
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* max-width: 1080px; */
  height: 100%;
  margin: auto;
  /* padding: 0 110px; */
  display: flex;
  position: relative;
}

.chat-head {
  color: #000;
  text-align: center;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
  line-height: 36px;
  display: flex;
}

.chat-head .logo-text {
  gap: 14px;
  margin-top: auto;
  font-size: 36px;
  font-weight: bold;
  font-family: sans-serif;
}

.chat-head .title {
  color: #777777;
  margin: 12px 0;
  font-size: 22px;
}

.chat-head .info {
  color: #8e8b8b;
  margin: 0 0 20px;
  font-size: 14px;
}

.chat-bottom {
  max-width: var(--message-list-max-width);
  flex-grow: 1;
  width: 100%;
  position: relative;
}

.chat-box-home .chat-bottom .footer {
  width: 100%;
  max-width: 1080px;
  margin:auto;
  height: 120px;
}

.chat-box-home .chat-bottom .list {
  max-width:1080px;
  margin:80px auto;
}

.chat-box-home .chat-bottom .list .title {
  color: #222222;
  margin-bottom: 20px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
}
.chat-box-home .chat-model-list {
  display: grid;
  padding: 10px;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #f4f5f7;
  border-radius: 8px;
}
.chat-box-home .chat-model-list .item {
  background: #fff;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #fff;
  position: relative;
}

.chat-box-home .chat-model-list .item .avatar,
.right-box .list .item .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.chat-box-home .chat-model-list .item .name,
.model-list-box .list .item .name {
  font-size: 14px;
  font-weight: 600;
}
.chat-box-home .chat-model-list .item .info,
.model-list-box .list .item .info {
  margin: 4px 0;
  color: #b7b7b7;
  white-space: break-spaces;
}
.chat-box-home .chat-model-list .item:hover,.model-list-box .list .item:hover {
  /* background: #f4f5f7; */
  box-shadow: 0px 4px 20px 4px rgb(168 168 168 / 12%);
}
/* .chat-box-home .chat-model-list .item:hover .avatar {
  opacity: 0.6;
}
.chat-box-home .chat-model-list .item:hover .name {
  opacity: 0.6;
} */
.chat-box-home .chat-model-list .achtive{
      border: 1px solid #0d6efd;
  box-shadow: 0px 4px 20px 4px rgb(168 168 168 / 12%);
}
.chat-box-home .chat-model-list .achtive .name,.chat-box-home .chat-model-list .achtive .info{
  color: #0d6efd;
}
.chat-box-home .chat-model-list .check{
      position: absolute;
    right: 2px;
    bottom: -5px;
    font-size: 22px;
    color: #0d6efd;
}

.hide .toggle .iconfont {
  /* color: rgb(51, 54, 57); */
  transform: rotate(180deg);
}
.chat-box {
  height: 100%;
  width: 100%;
}
.chat-box-hide {
  width: calc(100%);
}

.page-box {
  border-end-end-radius: var(--bs-border-radius) !important;
  border-top-right-radius: var(--bs-border-radius) !important;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.chat-box .main {
  display: grid;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding: 10px;
  grid-auto-rows: minmax(0, 1fr);
  gap: 0.75rem;
  margin: auto;
}

.chat-box .layout-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.chat-box .layout-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.chat-box .layout-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.chat-box .layout-4 {
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chat-box .main .content {
  background: var(--ai-message-list-bg);
  border-radius: 8px;
  /*transition: all 0.65s cubic-bezier(0.65, 0, 0.35, 1)*/
}
.max-main .main{
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
}
.max-main .main-content{
  height: 50px !important; width: 240px; order: 0;
}

.max-main .max-content{
  height: 94% !important; order: -1; width: 100%;
}
.chat-box .layout-1 .content,
.chat-box .layout-2 .content,
.chat-box .layout-3 .content,
.chat-box .layout-4 .content {
  box-shadow: 0px 4px 20px 4px rgb(168 168 168 / 12%);
}
.chat-box .header {
  height: 50px;
  display: flex;
  align-items: center;
  margin-bottom: 1px;
  cursor: pointer;
  /* background: var(--ai-head-bg); */
  font-family: "Alibaba PuHuiTi SemiBold";
  font-weight: 600;
  font-size: 16px;
  padding: 0 10px;
  position: relative;
}
.chat-box .header span {
  padding: 4px;
  border-radius: 8px;
  display: inline-flex;
  margin-left:4px;
}
.chat-box .header .close{
  opacity: 0.6;
}

.chat-box .header span:hover {
  background-color: var(--ai-selected-bg);
}

.chat-box .header-right span img{
  width:20px;
  height:20px;
}

.chevron-icon {
  display: inline-flex;
  transform: rotateZ(270deg);
}
.select-chat {
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  bezier: cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 50px;
  z-index: 999;
  overflow-y: unset;
  background: #fff;
  height: auto;
  border-radius: 10px;
}
.select-chat .item .name {
  font-size: 14px;
  font-weight: 500;
  color: #000;
}
.select-chat .achtive {
  cursor: default;
  pointer-events: none;
}
.select-chat .achtive .name {
  color: #777;
}
.select-chat .item .text-truncate {
  font-size: 11px;
  font-weight: normal;
  color: #acacac;
}
.chat-box .body {
  position: relative;
  background: var(--ai-message-list-bg);
}

.message-list {
  padding: 0 1rem;
}

.message-list li.d-flex:first-child {
  margin-top: 2rem !important;
}

.message-list > li:last-child {
  margin-bottom: 2.5rem;
}

.message-list .message {
  padding: 0.5rem 0.75rem;
  min-height: 2.5rem;
}

.chat-box .body .stop-btn {
  position: absolute;
  bottom: 0.25rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.chat-box .footer {
  overflow: hidden;
  position: relative;
  margin: 20px 40px;
  background-color: var(--ai-message-footer-bg);
  border-radius: 24px;
  margin: 10px;
}
.small-window .chat-box .footer {
  margin: auto 10px;
}

.chat-box .footer .tools {
  user-select: none;
  display: flex;
  justify-content: space-between;
}

/* .footer .tools>div{
    width: 200px;
    display: flex;
    justify-content: center;
} */

.chat-box .footer textarea {
  width: 100%;
  padding: 4px 12px;
  border: 0;
  background: transparent;
  color: var(--bs-body-color);
}

.btn-primary-light {
  background-color: #3c9aff !important;
}

.voice-btn {
  height: 4rem;
  width: 4rem;
}

.f12 {
  font-size: 0.8rem;
}
.f13 {
  font-size: 0.866rem;
}
.f14 {
  font-size: 0.933rem;
}
.f15 {
  font-size: 1rem;
}
.f16 {
  font-size: 1.066rem;
}
.f17 {
  font-size: 1.133rem;
}
.f18 {
  font-size: 1.2rem;
}
.f19 {
  font-size: 1.266rem;
}
.f20 {
  font-size: 1.333rem;
}
.f21 {
  font-size: 1.4rem;
}
.f22 {
  font-size: 1.466rem;
}
.f23 {
  font-size: 1.533rem;
}
.f24 {
  font-size: 1.58rem;
}
.f25 {
  font-size: 1.666rem;
}
.f26 {
  font-size: 1.733rem;
}
.f27 {
  font-size: 1.8rem;
}
.f28 {
  font-size: 1.866rem;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-default {
  cursor: default;
}

.avatar {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 3rem;
  background-color: #fafafa;
}

/* 拷贝 */
.block-copy,
.block-copy:before,
.block-copy:hover,
.block-copy:active:before {
  content: "\e711";
  cursor: pointer;
  border-radius: var(--bs-border-radius);
  padding: 0.25rem 0.15rem;
}
.block-copy:active:before {
  content: "\e742";
}

.message img {
  max-width: 512px;
  height: auto;
  border-radius: var(--bs-border-radius);
}

.markdown-body {
  overflow-wrap: anywhere !important;
  font-size: 13px !important;
  color: var(--bs-body-color);
}

.markdown-body table {
  width: auto !important;
}

.markdown-body > p > img {
  margin-top: 0.25rem;
  margin-bottom: var(--bs-border-radius);
  border-radius: var(--bs-border-radius);
  max-width: 512px;
  max-height: 512px;
}

.markdown-body pre > code {
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
}

/* 消息 */
.message-list .alert {
  padding: 0.5rem 0.75rem;
  min-height: 2.5rem;
}

.message-list .alert-secondary {
  background-color: #ededed;
}

.message-avatar {
  width: 32px;
  height: 32px;
  box-shadow: 0 0.125rem 0.25rem rgba(var(--bs-body-color-rgb), 0.075) !important;
}
.message-content {
  flex-direction: column;
  align-items: flex-start;
}
.flex-row-reverse .message-content {
  flex-direction: column;
  align-items: flex-end;
}
.message-btn .icon-btn {
  font-size: 20px;
  color: rgba(0, 0, 0, 0.6);
}
/* 闪烁的光标 */
.animate-blink {
  animation: blink 1.2s infinite steps(1, start);
}

.icon-bottom{
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    padding: 12px;

}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
}
.dots {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgb(187, 187, 187);
  margin-right: 6px;
  animation: blink 1.4s infinite both;
}
.dots:nth-child(2) {
  animation-delay: 0.2s;
}
.dots:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* loading 动画 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 5px;
  opacity: 0.3;
  animation: pulse 0.5s ease-in-out infinite alternate;
}
.dot1 {
  animation-delay: 0s;
}
.dot2 {
  animation-delay: 0.2s;
}
.dot3 {
  animation-delay: 0.4s;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.5);
    opacity: 1;
  }
}

/* 图片预览浮层 */
.overlay {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.overlay.hide{
  right:7px;
  width: 0;
  transform: rotate(180deg);
}


.overlay > img {
  max-width: 95%;
  max-height: 95%;
}

/* end */

    .modal-mask {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 999;
            transition: opacity 0.3s ease;
        }
        
        .modal-container {
            width: 90%;
            max-width: 320px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            transform: scale(0.9);
            animation: modalIn 0.4s forwards;
        }
        
        @keyframes modalIn {
            to {
                transform: scale(1);
            }
        }
        .modal-body {
            padding: 8px 10px;
            text-align: center;
            font-size: 14px;
            line-height: 1;
            color: #555;
        }
        
        .modal-body i {
            font-size: 3rem;
            color: #e74c3c;
            margin-bottom: 20px;
            display: block;
        }
        
        .modal-footer {
            padding: 12px;
            display: flex;
            justify-content: center;
            gap: 15px;
            background: #f9f9f9;
        }
        
        .modal-btn {
            padding: 6px 36px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .confirm-btn {
            background: #0d6efd;
            color: white;
        }
        
        .confirm-btn:hover {
            background: #2181f3;
            transform: translateY(-2px);
        }
        
        .cancel-btn {
            background: #ecf0f1;
            color: #34495e;
        }
        
        .cancel-btn:hover {
            background: #bdc3c7;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }
        
        .code-container {
            background: #2c3e50;
            border-radius: 10px;
            padding: 20px;
            color: white;
            font-family: 'Courier New', monospace;
            margin-top: 30px;
            overflow-x: auto;
        }
        
        .code-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            align-items: center;
        }
        
        .code-title {
            font-size: 1.2rem;
            color: #1abc9c;
        }
        
        .copy-btn {
            background: #1abc9c;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 4px;
            cursor: pointer;
        }
        
        pre {
            line-height: 1.5;
            white-space: pre-wrap;
        }
        
        .highlight {
            color: #e74c3c;
        }
        
        .comment {
            color: #7f8c8d;
        }
    

/* markdown 数学公式 */
.katex {
  font-size: 1em !important;
} /* align KaTeX font-size to surrounding text */

eq {
  display: inline-block;
}
eqn {
  display: block;
}
section.eqno {
  display: flex;
  flex-direction: row;
  align-content: space-between;
  align-items: center;
}
section.eqno > eqn {
  width: 100%;
  margin-left: 3em;
}
section.eqno > span {
  width: 3em;
  text-align: right;
}

/*上传图片列表*/
.images-box {
  bottom: 0.5rem;
  display: flex;
  position: absolute;
  left: 0.5rem;
  background: var(--ai-dark-bg);
  height: 100px;
  align-items: center;
  padding-left: 1rem;
  opacity: 0.8;
}
.images-box .images-item {
  display: flex;
}
.images-box .images-item .del {
  height: 1.2rem;
  width: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-body-bg);
  font-size: 0.7rem;
  border-radius: 1rem;
  right: 0.2rem;
  top: 0.2rem;
  opacity: 0.8;
  color: var(--bs-body-color);
  text-align: center;
  line-height: 1.2rem;
  cursor: pointer;
  position: absolute;
}
.images-box .images-item .del:hover {
  opacity: 1;
}
.images-box .images-item {
  margin-right: 1rem;
  position: relative;
}
.images-box .images-item img {
  max-width: 80px;
  height: 80px;
  min-width: 20px;
  filter: brightness(0.95);
}
.images-box .bi::before {
  font-weight: bold !important;
}
.tooltip-inner {
  max-width: 100%;
  background-color: var(--ai-dark-bg);
}

/* 手机适配 */
@media (max-width: 1400px) {
  .chat-box .footer {
    /* margin:0 12px; */
  }
}
/* 手机适配 */
@media (max-width: 1366px) {
  .chat-box{
    padding:0 20px;
  }
  .chat-box .footer {
    /* margin:0 12px; */
  }
}
@media (max-width: 768px) {
  .left-bar {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    padding-top: 0;
    height: calc(3.2rem + env(safe-area-inset-bottom));
    flex-shrink: 0;
    border-top: 1px solid var(--bs-border-color);
    z-index: 1001;
    padding-bottom: env(safe-area-inset-bottom);
    border-right: none;
  }
  .search-box {
    height: 60px;
  }
  .chat-bar {
    width: 100%;
    height: calc(100% - 3.2rem - env(safe-area-inset-bottom));
    border-right: none;
  }

  .avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: #ddd;
  }
  .chat-list .desc {
    max-width: 70vw;
  }
  .message-list {
    padding: 0 0.5rem;
  }
  .image-tools .btn {
    min-width: 50px;
  }
  .center-box,
  .params-box {
    width: 96% !important;
    margin: 0;
    left: initial !important;
    top: initial !important;
  }
  .center-box {
    position: relative;
  }
  .params-box {
    bottom: 120px;
  }
  .chat-box .header {
    height: 50px;
  }
  .chat-box .footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .more-box {
    width: 100%;
  }
  .chat-box .avatar {
    width: 2.5rem;
    height: 2.5rem;
  }
  .chat-list {
    height: calc(100% - 60px);
  }
  .chat-list-footer {
    display: none;
  }
  .chat-list .text-truncate {
    max-width: 65vw;
  }
  .markdown-body {
    font-size: 1rem !important;
    color: var(--bs-body-color);
  }
  .message img {
    max-width: 70vw !important;
  }
  .voice-btn {
    height: 2rem;
    width: 2rem;
    font-size: 1rem !important;
  }
  html,
  body {
    height: 100%;
    font-size: 16px;
  }
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-top: env(safe-area-inset-top);
  }
}
