.plugin-app {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(/static/media/back60a5123346e5797a5723.png) center center / cover no-repeat;
}

.plugin-login{
  border-radius: 24px;
  position: relative;
  background: #FFFFFF;
  display: flex;
}
.SignUp{
  width: 500px;
  padding: 40px;
}
.left{
  width: 580px;
}
.sign{
  text-align: center;
  font-size: 36px;
  color: #333;
  margin-top: 20px;
  margin-bottom: 40px;
}
.input {
  background-color:#F7F7F7;
  border-radius: 14px;
  border: 0;
  padding: 20px 12px;
  width: 100%;
  outline: none;
  color: #333;
  font-size: 18px;
}
.inputDiv {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  height: 90px;
}
.login{
  background-color: #777AFF;
  color: #fff;
  padding: 20px 12px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  font-size: 20px;
  margin-top: 40px;
}

.error {
  color: #FF5A70;
  font-size: 14px;
  margin-bottom: 20px;
  padding-top: 8px;
}
.codeS{
  position: absolute;
}
.submit{
  margin-top: 20px;
  width: 510px;
  background-color: #2F49A5;
}
.code{
  margin-top: 30px;
}
.tips{
  color: #E65266;
  font-size: 14px;
  text-align: left;
}
.pop{
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  zoom: 1;
  left: 0;
  z-index: 1000 !important;
  background:rgba(0, 0, 0, 0.6);
}
.popD{
  z-index: 2000 !important;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  /* height: 350px; */
  padding: 40px;
  color: #000;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%);
}
.pinned-icon{
  width: 16px;
  height: 16px;
}
/* 让 HighlightWithinTextarea 的 placeholder 样式与 input 框一致 */
.public-DraftEditorPlaceholder-root {
  color: #999 !important;
  font-size: 16px;
  left: -6px !important;
  top: 17% !important;
  transform: translateY(-50%);
  pointer-events: none;
  position: absolute !important;
  width: 100%;
  padding-left: 8px;
  user-select: none;
}
.recalled-label{
  display: flex;
  align-items: center;
  background-color: #F2F2F2;
  border-radius: 10px;
  padding: 8px;
  margin-left: 12px;
  color: #333;
  cursor: pointer;
}
.del{
  width: 19px;
  margin-right: 4px;
}
.message-ce{
  display: flex;
  align-items: center;
}
mark {
  background: rgba(119, 122, 255, 0.2) !important;
  color: #777AFF !important;
  border-radius: 3px !important;
  transition: background 0.2s;
  padding: 4px 10px;
}

/* 自定义 HighlightWithinTextarea 高亮颜色 */
.message-input .DraftEditor-root .public-DraftEditorPlaceholder-root {
  color: #999;
}

.DraftEditor-root {
  position: relative;
  height: 120px;
  padding: 10px 0;
  width: 900px;
  overflow-y: auto;
}

.plugin {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #CFE4FF;
  overflow: hidden;
}

.Chat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  width: 1390px;
}

.app-header {
  background: #1A1832;
  color: white;
  padding: 20px 0;
}

.headerIcon {
  display: flex;
  align-items: center;
}

.headerIcon img {
  width: 29px;
  margin-left: 10px;
}

.bot {
  width: 16px !important;
}

.app-center {
  margin: 0 20px;
}

.app-name {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.app-body {
  padding: 20px 0;
  display: flex;
  overflow: hidden;
  min-height: 0;
  margin: 0 auto;
}

@media (max-width: 1440px) {
  .app-body {
    padding: 20px 0;
    margin: 0 auto;
  }

  .Chat {
    width: 1200px !important;
  }

  .app-left {
    max-width: 377px !important;
  }

  .app-right {
    width: 814px !important;
  }

  .app-list {
    width: 350px !important;
  }

  .DraftEditor-root {
    width: 800px !important;
  }
  .app-text{
    width: 250px !important;
  }
}

@media (max-width: 1194px) {
  .app-body {
    padding: 20px 0;
    margin: 0 auto;
  }

  .Chat {
    width: 960px !important;
  }

  .app-left {
    max-width: 300px !important;
  }

  .app-right {
    width: 650px !important;
  }

  .app-list {
    width: 280px !important;
  }

  .DraftEditor-root {
    width: 600px !important;
  }
  .app-text{
    width: 200px !important;
  }
}

.app-left {
  max-width: 440px;
  height: 100%;
  padding: 20px 10px 0 10px;
  border-radius: 14px;
  background-color: #fff;
  margin-right: 10px;
  min-height: 0;
  position: relative;
}
.logo{
  height: 42px;
}
.app-list {
  overflow-y: auto;
  height: calc(100% - 120px);
  width: 408px;
  /* 隐藏滚动条（Firefox/IE/Edge） */
  /* -ms-overflow-style: none; */
  /* scrollbar-width: none;  */
}

/* 隐藏滚动条（WebKit） */
/* .app-list::-webkit-scrollbar {
  width: 0;
  height: 0;
} */
.app-left-search-fixed {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.app-right {
  width: 950px;
  min-height: calc(100vh - 130px);
  background-color: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  font-size: 16px;
  color: #333;
  outline: none;
  margin-bottom: 10px;
}

.app-input::placeholder {
  color: #999;
}

/* 自定义国家下拉框容器 */
.app-country-filter {
  position: relative;
  margin-bottom: 10px;
}

.country {
  background-color: rgba(119, 122, 255, 0.3);
  color: #000;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  margin-right: 8px;
}

.app-country-select-trigger {
  width: 130px;
  padding: 10px;
  border-radius: 6px;
  font-size: 16px;
  color: #333333;
  outline: none;
  background-color: #F2F2F2;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-country-select-trigger:hover {
  border-color: #777AFF;
  box-shadow: 0 0 0 2px rgba(119, 122, 255, 0.1);
}

.app-country-select-trigger.active {
  border-color: #777AFF;
}

.app-country-select-trigger::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #777AFF;
  border-bottom: 2px solid #777AFF;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -4px;
}

.app-country-select-trigger.active::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

/* 下拉菜单样式 */
.app-country-dropdown {
  position: absolute;
  top: 47px;
  left: 0;
  right: 0;
  width: 130px;
  padding: 10px;
  background: #fff;
  box-shadow: 0px 4px 44px 0px #00000040;
  border-top: none;
  border-radius: 14px;
  overflow-y: auto;
  height: 205px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-country-option {
  padding: 12px 15px;
  cursor: pointer;
  font-size: 14px;
  color: #333333;
  border-radius: 6px;
  transition: background-color 0.2s;
}


.app-country-option.selected {
  background-color: #F2F2F2;
  font-weight: 500;
}

.app-avatar {
  width: 44px;
  height: 44px;
  margin-right: 10px;
  border-radius: 50%;
}

.app-list-item {
  position: relative;
  padding: 14px 20px;
  border-radius: 6px;
  cursor: pointer;
}

/* 置顶小三角形 */
.pinned-triangle {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 20px 0 0;
  border-color: #777AFF transparent transparent transparent;
  border-radius: 6px 0 0 0;
}

.app-list-item .pinned-icon-wrapper {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.app-list-item:hover .pinned-icon-wrapper {
  opacity: 1;
}

.app-list-item-time {
  color: #999;
  font-size: 14px;
  text-align: right;
}

.app-list-item-content {
  display: flex;
  align-items: center;
}

.app-username {
  color: #202840;
  font-size: 16px;
  margin-bottom: 4px;
}

.app-vip {
  background-color: #E4E4FF;
  padding: 2px;
  border-radius: 4px;
  color: #777AFF;
  font-size: 12px;
  margin-right: 8px;
}

.app-text {
  color: #999999;
  font-size: 14px;
  width: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab {
  position: absolute;
  top: 30px;
  background-color: #FF5A70;
  border-radius: 50%;
  font-size: 12px;
  color: #fff;
  padding: 2px 6px;
}

.app-right-header {
  background-color: #F2F2FF;
  border-radius: 14px 14px 0 0;
  padding: 10px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.item-right-header-icons{
  display: flex;
  align-items: center;
}
.item-right-header-icons div{
  display: flex;
  align-items: center;
  margin-left: 20px;
  cursor: pointer;
  background-color: #fff;
  padding: 10px;
  border-radius: 6px;
}
.item-right-header-icons img{
  width: 17px;
  margin-right: 6px;
}






.app-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
}

.app-header p {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  /* border-bottom: 1px solid #F2F2F2; */
  scrollbar-gutter: stable both-edges;
  width: 100%;
  box-sizing: border-box;
  contain: layout style paint;
  min-height: 0;
}

.messages-area::-webkit-scrollbar {
  width: 6px;
}

.message-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 20px;
}

.messages-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 13px;
}

.message-item.sent {
  align-items: flex-end;
}

.message-item-content {
  display: flex;
  align-items: flex-end;
}

.message-item-content-right {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.messages-img-div {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.message-bubble-timestamp {
  display: flex;
  align-items: flex-end;
}

.messages-iname {
  font-size: 16px;
  color: #777AFF;
  margin-right: 10px;
}

.message-item.received {
  align-items: flex-start;
}

.message-bubble {
  background-color: rgba(119, 122, 255, 0.2);
  color: #333;
  padding: 12px;
  border-radius: 10px;
  word-break: break-word;
  line-height: 1.4;
  font-size: 16px;
  max-width: 570px;
  contain: layout paint;
}

.messages-img-right {
  margin-left: 13px;
  width: 48px;
}

.message-item.received .message-bubble {
  background-color: #F2F2F2;
  color: #333;
}

.message-timestamp {
  font-size: 14px;
  color: #999;
  padding: 0 10px;
}

.input-area {
  padding: 18px 34px;
  border-top: 1px solid #e0e0e0;
  background-color: #fff;
  border-radius: 0 0 14px 14px;
}

.message-input {
  border: 0;
  outline: none;
  height: 100px;
  width: 100%;
  padding: 0;
  resize: none;
  font-family: inherit;
  font-size: 16px;
  margin: 10px 0;
}

.messages-img {
  display: flex;
  gap: 10px;
}

.messages-img img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.send-button {
  padding: 10px 20px;
  background-color: #999999;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  float: right;
}

.send-button.active {
  background-color: #777AFF;
}

.send-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.app-list-item.active {
  background-color: #F2F2F2;
}

/* 消息附件样式 */
.message-attachments {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 600px;
  contain: layout paint;
}

.message-attachments {
  user-select: none;
}

.attachment {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.attachment-image {
  max-width: 200px;
  max-height: 200px;
  min-width: 100px;
  min-height: 100px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
  transition: none !important;
  touch-action: manipulation;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.attachment-image,
.attachment-image:active,
.attachment-image:focus,
.attachment-image:hover {
  outline: none;
  box-shadow: none;
  transform: none;
  opacity: 1;
  filter: none;
  -webkit-tap-highlight-color: transparent;
  backface-visibility: hidden;
}

.attachment-image {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* 预览打开时，降低聊天框图片的透明度，表示处于预览状态，但仍保持显示 */
.preview-open .attachment-image {
  opacity: 0.6;
  pointer-events: none;
}

.attachment a {
  color: #0084ff;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid #0084ff;
  border-radius: 4px;
  font-size: 12px;
}

.attachment a:hover {
  background-color: #f0f7ff;
}

.image-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.image-preview-container {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
}

.preview-image,
.preview-image:active,
.preview-image:focus,
.preview-image:hover {
  outline: none;
  box-shadow: none;
  transform: none;
  opacity: 1;
  filter: none;
  -webkit-tap-highlight-color: transparent;
  backface-visibility: hidden;
}


.close-button {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border-radius: 50%;
  z-index: 10000;
}

.close-button:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.3);
}

.download-button {
  position: fixed;
  top: 20px;
  right: 70px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border-radius: 50%;
  z-index: 10000;
}

.download-button:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.3);
}

/* 保留消息文本中的换行与空格，并在容器宽度内自动换行 */
.message-text {
  white-space: pre-wrap;
  word-break: break-word;
}

/* 撤销确认弹框样式 */
.recall-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease-in-out;
}

.recall-confirm-modal {
  background: #fff;
  border-radius: 12px;
  width: 330px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.recall-confirm-title {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
  padding: 16px;
  background-color: #777AFF;
  border-radius: 12px 12px 0 0;
}

.recall-confirm-content {
  text-align: center;
  font-size: 16px;
  color: #333;
  margin-bottom: 24px;
  line-height: 1.5;
  margin-top: 60px;
}

.recall-confirm-buttons {
  display: flex;
  gap: 12px;
  margin: 40px 20px;
}

.recall-confirm-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}

.recall-cancel-btn {
  background-color: #F2F2F2;
  color: #333;
}

.recall-cancel-btn:hover {
  background-color: #e5e5e5;
}

.recall-ok-btn {
  background-color: #777AFF;
  color: #fff;
}

.recall-ok-btn:hover {
  background-color: #6366e0;
}

/* 翻译下拉菜单样式 */
.translate-dropdown-wrapper {
  position: relative;
}

.translate-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0px 4px 44px 0px rgba(0, 0, 0, 0.25);
  padding: 10px;
  min-width: 180px;
  z-index: 1000;
}

.translate-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.translate-option:hover {
  background-color: #f5f5f5;
}

.translate-option-name {
  font-size: 14px;
  color: #333;
}

/* 开关样式 */
.translate-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.translate-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.translate-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.translate-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.translate-switch input:checked + .translate-slider {
  background-color: #777AFF;
}

.translate-switch input:checked + .translate-slider:before {
  transform: translateX(20px);
}

/* Toast 通知动画 */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-notification:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.app-change{
  display: flex;
  align-items: center;

}
.app-change-item{
  color: #333333;
  font-size: 16px;
  padding: 8px;
  border-radius: 6px;
  background-color: #F2F2F2;
  margin-bottom: 10px;
  margin-left: 8px;
}

/* 语言下拉菜单样式 */
.language-dropdown-wrapper {
  position: relative;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0px 4px 44px 0px rgba(0, 0, 0, 0.25);
  padding: 10px;
  min-width: 180px;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
}

.language-option {
  padding: 12px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s;
}

.language-option:hover {
  background-color: #f5f5f5;
}

.language-option.selected {
  background-color: rgba(119, 122, 255, 0.1);
  color: #777AFF;
}

/* 翻译按钮样式 */
.translate-btn-wrapper {
  margin-left: 10px;
  display: flex;
  align-items: center;
}

.translate-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: #F2F2F2;
  border-radius: 10px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.translate-btn:hover {
  background-color: #e8e8e8;
}

.translate-btn.translating {
  color: #999;
  cursor: not-allowed;
}

.translate-btn.original-btn {
  background-color: rgba(119, 122, 255, 0.1);
  color: #777AFF;
}

.translate-btn.original-btn:hover {
  background-color: rgba(119, 122, 255, 0.2);
}

.translate-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.original {
  width: 19px;
  height: 19px;
}
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: 'Courier New', monospace;
}

#root {
  width: 100%;
  min-height: 100vh;
}

