img,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

#aichat-entry {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
#aichat-entry > img{
  width: 56px;
  height: 56px;
}

#aichat-panel {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: 360px;
  height: 528px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, #eaf4ff 0%, #f1f3ff 45%, #f6f0ff 100%);
}

.aichat-header {
  padding: 16px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.aichat-header__lt {
  display: flex;
  align-items: center;
}
.aichat-header__wrap {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}
.aichat-header__title {
  color: #1f1f1f;
  font-size: 16px;
  font-weight: 600;
}
.aichat-header__text {
  color: #1f1f1f;
  font-size: 12px;
}
.aichat-close {
  cursor: pointer;
}

.aichat-messages {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 16px;
  overflow-y: auto;
  font-size: 14px;
  height: 400px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.aichat-msg {
  margin-bottom: 12px;
  line-height: 1.6;
}

.aichat-msg-user {
  text-align: right;
}

.aichat-msg-ai {
  text-align: left;
}
.aichat-msg-ai__wrap {
  background: #fff;
  border-radius: 8px;
  display: inline-block;
  padding: 8px 12px;
}
.aichat-msg-ai__wrap p,
.aichat-msg-ai__wrap div,
.aichat-msg-ai__wrap h1,
.aichat-msg-ai__wrap h2,
.aichat-msg-ai__wrap h3,
.aichat-msg-ai__wrap h4,
.aichat-msg-ai__wrap h5,
.aichat-msg-ai__wrap h6 {
  font-size: 14px;
  line-height: 20px;
}
.aichat-msg-ai__act {
  display: flex;
  align-items: center;
  margin-top: 6px;
}
.aichat-msg-ai__btn {
  margin-right: 12px;
  border-radius: 30px;
  background: #f4f5fa;
  padding: 6px 12px;
  color: #1f1f1f;
  font-size: 12px;
  cursor: pointer;
}
.aichat-msg-ai__btn:hover {
  opacity: 0.8;
}
.aichat-msg-user__wrap {
  background: #bdd7ff;
  border-radius: 8px;
  display: inline-block;
  padding: 8px 12px;
  text-align: left;
}

.aichat-msg-system {
  text-align: center;
  color: #999;
  font-size: 12px;
}
.aichat-msg__time {
  font-size: 12px;
  margin-top: 3px;
  color: #666;
}

.aichat-input {
  display: flex;
  border-top: 1px solid #eee;
  margin: 0 16px;
}

.aichat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.aichat-input button {
  width: 80px;
  border: none;
  background: #00b5fb;
  color: #fff;
  cursor: pointer;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
.aichat-input button:hover {
  opacity: 0.88;
}
.aichat-input button img {
  width: 32px;
}
/* markdown 内图片自适应 */
.aichat-msg-ai img {
  max-width: 100%;
}

.aichat-loading {
  display: inline-flex;
  align-items: center;
}

.aichat-loading span {
  width: 7px; /* 控制点大小 */
  height: 7px; /* 控制点大小 */
  margin: 0 4px;
  border-radius: 50%;
  background-color: #999;
  animation: aidot 1.4s infinite ease-in-out both;
}

.aichat-loading span:nth-child(1) {
  animation-delay: 0s;
}
.aichat-loading span:nth-child(2) {
  animation-delay: 0.25s;
}
.aichat-loading span:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes aidot {
  0% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  20% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
}
