.rm-chat {
  margin: 22px 0 0;
  border: 1px solid #d8ece8;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.rm-chat-hd {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: #f4fbf9;
  border-bottom: 1px solid #e2f1ee;
}
.rm-chat-avatar {
  width: 38px;
  height: 38px;
  margin-right: 12px;
  border-radius: 50%;
  background: #3BAE99;
  color: #fff;
  font-size: 17px;
  line-height: 38px;
  text-align: center;
  flex: 0 0 auto;
}
.rm-chat-who { flex: 1 1 auto; line-height: 20px; }
.rm-chat-who b { font-size: 15px; color: #333; }
.rm-chat-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid #cfece6;
  border-radius: 3px;
  font-size: 12px;
  color: #2b7f70;
  background: #fff;
}
.rm-chat-status { font-size: 12px; color: #8a8f9c; }
.rm-chat-clear {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  color: #888;
  font-size: 12px;
  cursor: pointer;
}
.rm-chat-clear:hover { border-color: #3BAE99; color: #3BAE99; }

.rm-chat-body {
  height: 380px;
  overflow-y: auto;
  padding: 18px;
  background: #fbfdfd;
  /* 旧站 style.css 里有针对 .message-from 的字体设定，这里自成一块，不继承 */
  font-size: 14px;
  line-height: 24px;
  color: #444;
}
.rm-chat-hi h4 { margin: 4px 0 8px; font-size: 15px; color: #333; font-weight: bold; }
.rm-chat-hi p { margin: 0 0 12px; color: #777; font-size: 13px; line-height: 22px; }
.rm-chat-q-label { margin: 6px 0; color: #999; font-size: 12px; }
.rm-chat-chip {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 12px;
  border: 1px solid #e3e3e3;
  border-radius: 15px;
  background: #fff;
  color: #666;
  font-size: 13px;
  line-height: 18px;
  cursor: pointer;
}
.rm-chat-chip:hover { border-color: #3BAE99; color: #3BAE99; background: #f2fbf9; }

.rm-chat-msg { margin: 0 0 14px; overflow: hidden; }
.rm-chat-bubble {
  display: inline-block;
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e6efee;
  color: #444;
  text-align: left;
  /* AI 的回答是多段纯文本，换行要原样显示——用 textContent 写入，靠这条换行 */
  white-space: pre-wrap;
  word-break: break-word;
}
.rm-chat-msg.is-me { text-align: right; }
.rm-chat-msg.is-me .rm-chat-bubble {
  background: #3BAE99;
  border-color: #3BAE99;
  color: #fff;
  text-align: left;
}
.rm-chat-bubble.is-empty { color: #aaa; }
.rm-chat-cursor {
  display: inline-block;
  width: 6px;
  height: 14px;
  margin-left: 3px;
  background: #3BAE99;
  vertical-align: -2px;
  animation: rm-blink 1s steps(1) infinite;
}
@keyframes rm-blink { 0%, 50% { opacity: 1 } 50.01%, 100% { opacity: 0 } }

.rm-chat-err {
  margin: 6px 0 0;
  padding: 10px 14px;
  border: 1px solid #ffd4d4;
  border-radius: 4px;
  background: #fff4f4;
  color: #c0392b;
  font-size: 13px;
}
.rm-chat-retry {
  margin-left: 10px;
  padding: 2px 10px;
  border: 1px solid #e0a1a1;
  border-radius: 3px;
  background: #fff;
  color: #c0392b;
  font-size: 12px;
  cursor: pointer;
}

.rm-chat-ft {
  padding: 12px 18px 14px;
  border-top: 1px solid #e2f1ee;
  background: #fff;
}
.rm-chat-stop { text-align: center; margin-bottom: 8px; }
.rm-chat-stop button {
  padding: 3px 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  color: #888;
  font-size: 12px;
  cursor: pointer;
}
.rm-chat-row { display: flex; align-items: flex-end; }
/* 旧站 style.css 的 textarea 是绝对定位（给单个留言框用的），这里必须拨回常规流 */
.rm-chat-row textarea {
  position: static !important;
  flex: 1 1 auto;
  width: auto !important;
  height: 54px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: none;
  font-size: 14px;
  line-height: 20px;
  color: #444;
  box-sizing: border-box;
}
.rm-chat-row textarea:focus { border-color: #3BAE99; outline: none; }
.rm-chat-send {
  flex: 0 0 auto;
  width: 88px;
  height: 54px;
  margin-left: 10px;
  border: 0;
  border-radius: 4px;
  background: #FF2D55;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.rm-chat-send:disabled { background: #e6e6e6; color: #aaa; cursor: default; }
.rm-chat-tip { margin-top: 8px; color: #aaa; font-size: 12px; }



.chat-intro{padding:24px 0;color:#6b7488;line-height:1.9}.chat-intro h2{color:#1f2637}.rm-chat-row textarea{min-width:0}.rm-chat-bubble{overflow-wrap:anywhere}
