@charset "UTF-8";
body {
  margin: 0;
  height: 100vh;
  position: relative;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0.2rem 0;
}

.blue,
a {
  color: #073389;
  cursor: pointer;
}

#chat {
  width: 100vw;
  height: 100vh;
  padding-bottom: 0.5rem;
  max-width: 18.75rem;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
  background: #f9fafc url("../images/bg.png") no-repeat center top;
  background-size: contain;
  display: flex;
  flex-direction: column;
}
#chat .header {
  height: 3.25rem;
  margin: 0 0.5rem;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
#chat .header .info {
  width: 6.3rem;
  height: 1.9rem;
  background: url("../images/arrow.png") no-repeat 95% center/0.275rem 0.325rem;
  background-color: #fff;
  border-radius: 0.95rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}
#chat .header .info .picture {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  margin-left: 0.375rem;
  margin-right: 0.3rem;
}
#chat .header .info .info-r {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#chat .header .info .info-r .name {
  font-size: 0.675rem;
  font-weight: bold;
  color: #000;
  line-height: 0.7rem;
}
#chat .header .info .info-r .des {
  font-size: 0.45rem;
  font-weight: lighter;
  color: #646464;
  line-height: 0.7rem;
}
#chat .header .share {
  width: 0.95rem;
  height: 0.95rem;
  cursor: pointer;
}
#chat .content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  margin-top: 0.5rem;
}
#chat .content-box .chat-content {
  width: 100%;
  height: 100%;
  padding: 0.5rem 0.25rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
#chat .content-box .chat-content .content {
  width: 100%;
  display: flex;
}
#chat .content-box .chat-content .content.user {
  justify-content: flex-end;
}
#chat .content-box .chat-content .content.user .text {
  border-bottom-right-radius: 0.125rem;
}
#chat .content-box .chat-content .content.ai {
  justify-content: flex-start;
}
#chat .content-box .chat-content .content.ai .text {
  border-top-left-radius: 0.125rem;
}
#chat .content-box .chat-content .content .text {
  padding: 0.5rem 0.6rem;
  margin: 0.2rem 0.3rem;
  background-color: #f2f5ff;
  border-radius: 0.55rem;
  font-size: 0.7rem;
  line-height: 1.2rem;
  color: #000;
  text-align: justify;
  word-break: break-all;
  word-wrap: break-word;
}
#chat .chat-bottom {
  margin: 0.35rem 0.5rem;
  flex-shrink: 0;
}
#chat .chat-bottom .chat-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#chat .chat-bottom .chat-tag .tag-item {
  width: 4.25rem;
  height: 1.4rem;
  box-sizing: border-box;
  box-shadow: 0 0 0 0.5px #dcdde0;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #000;
  cursor: pointer;
}
#chat .chat-bottom .chat-tag .tag-item .icon {
  height: 0.65rem;
  margin-right: 0.2rem;
}
#chat .chat-bottom .chat-input-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 0.5rem;
}
#chat .chat-bottom .chat-input-box .clean {
  height: 2rem;
  width: 2rem;
  background: url("../images/clean.png") no-repeat center/100%;
  margin-right: 0.3rem;
  cursor: pointer;
}
#chat .chat-bottom .chat-input-box .chat-input {
  flex: 1;
  background-color: #fff;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
#chat .chat-bottom .chat-input-box .chat-input .van-field {
  font-size: 0.7rem;
  color: #646464;
  padding: 0.5rem;
  line-height: 1rem;
  flex: 1;
}
#chat .chat-bottom .chat-input-box .chat-input .van-button {
  width: 3rem;
  height: 1.4rem;
  font-size: 0.7rem;
  color: #fff;
  border-radius: 0.7rem;
  margin-top: 0.3rem;
  margin-right: 0.5rem;
  line-height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.van-divider {
  margin: 0 0.5rem;
  border-color: #d4d4d4;
}

.popup-content {
  background: #fff url("../images/bg.png") no-repeat center top;
  background-size: contain;
  padding: 0 1.2rem;
}
.popup-content .name {
  font-size: 0.85rem;
  color: #000;
  font-weight: bold;
  text-align: center;
  padding: 0.5rem 0;
}
.popup-content .picture {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
}
.popup-content .des {
  font-size: 0.7rem;
  color: #000;
  margin-top: 0.5rem;
  line-height: 0.8rem;
}
.popup-content .li {
  font-size: 0.7rem;
  color: #000;
  position: relative;
  padding-left: 0.8rem;
}
.popup-content .li::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.4rem;
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background-color: #000;
}
.popup-content .confirm {
  width: 9.5rem;
  height: 1.6rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.6rem;
  margin: 1.2rem auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-content .clean {
  font-size: 0.6rem;
  line-height: 1rem;
  text-align: center;
}

.form-popup {
  width: 90%;
  padding: 2rem 0.8rem 1.5rem;
}
.form-popup .van-popup__close-icon {
  top: 0.75rem;
  right: 0.75rem;
  color: #333;
  font-weight: bold;
}
.form-popup .title {
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 0.85rem;
  text-align: center;
}
.form-popup .form-container .van-field {
  height: 3.4rem;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.2rem;
  background: transparent;
}
.form-popup .form-container .van-field::after {
  border: 0;
}
.form-popup .form-container .van-field .van-field__label {
  width: auto;
  margin-right: 0;
  line-height: 2.15rem;
}
.form-popup .form-container .van-field .van-field__control {
  height: 2.15rem;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  background-color: rgba(204, 204, 204, 0.2);
  border: 1px solid #eee;
  border-radius: 1.1rem;
}
.form-popup .form-container .van-field .van-field__error-message {
  padding-left: 0.25rem;
  font-size: 0.6rem;
}
.form-popup .form-container .code-btn {
  height: 1.75rem;
  padding: 0;
  font-size: 0.8rem;
  background: transparent;
  border: 0;
}
.form-popup .form-container .submit {
  height: 2.15rem;
  color: #fff;
  font-size: 0.8rem;
}
.form-popup .privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  color: #666;
  font-size: 0.6rem;
  line-height: 0.85rem;
}
.form-popup .privacy .van-checkbox__icon {
  margin-right: 0.25rem;
  font-size: 0.7rem;
}

.van-loading {
  display: inline-flex;
  margin: 0 10px 0 5px;
  align-items: center;
  justify-content: center;
}
.van-loading .van-loading__text {
  color: #000;
}

.van-pull-refresh {
  flex: 1;
}
.van-pull-refresh .van-pull-refresh__head {
  color: #000;
}

.van-overlay,
.van-popup,
.t-mask {
  position: absolute !important;
}

/* 针对整个滚动条 */
::-webkit-scrollbar {
  width: 6px; /* 滚动条宽度 */
}

/* 针对滚动条轨道 */
::-webkit-scrollbar-track {
  background: transparent; /* 轨道颜色 */
}

/* 针对滚动条滑块 */
::-webkit-scrollbar-thumb {
  background: #ccc; /* 滑块颜色 */
  border-radius: 3px; /* 滑块圆角 */
}