.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%);
}
/* 让 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;
}
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;
}
.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 220px;
}

.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 220px;
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.app-left {
  width: 440px;
  height: 100%;
  padding: 20px 10px 0 10px;
  border-radius: 14px;
  background-color: #fff;
  margin-right: 10px;
  overflow-y: auto;
  min-height: 0;
  position: relative;
}

.app-left-search-fixed {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.app-right {
  min-width: 950px;
  height: 100%;
  background-color: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

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

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

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

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

.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: 22px;
  margin-bottom: 10px;
}

.app-text {
  color: #999999;
  font-size: 16px;
  width: 300px;
  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;
}






.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;
  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: 14px;
  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);
}
* {
  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;
}

