@charset "UTF-8";
/**
 * 在线咨询
 * date: 2025-3-19
 * author: qyt
 */
.shadow-box {
  height: 780px;
  margin-bottom: 30px;
  border-radius: 4px;
  background: #F4F6F9;
  /* overflow: hidden; */
}

.consult-hd {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 90px;
  padding: 0px 24px 0;
  background: #F4F6F9 url("../images/consult_hd.png") center top/100% 197px no-repeat;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.consult-hd-title {
  line-height: 59px;
  font-size: 40px;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.consult-hd-intro {
  margin-top: 8px;
  max-height: 60px;
  line-height: 30px;
  font-size: 20px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.consult-bd {
  height: calc(100% - 228px);
  padding: 40px 24px;
  background: #E3EFFF;
  border-radius: 32px 32px 0 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  overflow-y: auto;
}
.consult-bd::-webkit-scrollbar {
  width: 6px;
}
.consult-bd::-webkit-scrollbar-track {
  background: transparent;
}
.consult-bd::-webkit-scrollbar-thumb {
  background: rgba(163, 175, 192, 0.4);
  border-radius: 3px;
}
.consult-bd::-webkit-scrollbar-thumb:hover {
  background: rgba(163, 175, 192, 0.6);
}

.msg-main {
  position: relative;
  padding-left: 54px;
  max-width: 53%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.msg-portrait {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.msg-bubble {
  padding: 11px 16px;
  background: #fff;
  -webkit-box-shadow: 0px 2px 2px 0px rgba(22, 27, 43, 0.1);
          box-shadow: 0px 2px 2px 0px rgba(22, 27, 43, 0.1);
  border: 1px solid #fff;
  border-radius: 0 16px 16px 16px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.msg-bubble + .msg-bubble {
  margin-top: 16px;
}
.msg-bubble.hello {
  background: #F1FAFF url("../images/msg_hello_bg.png") center center/100% 100% no-repeat;
  background: url("../images/msg_hello_bg.png") center center/100% 100% no-repeat, linear-gradient(184.19deg, #D5E7FF 4.48%, #F1FAFF 96.59%);
}
.msg-bubble-maybe-label {
  font-weight: bold;
}
.msg-ques-change {
  padding-left: 22px;
  color: #BAC4CE;
  background: url("../images/msg_change.png") left center no-repeat;
}
.msg-ques-change:hover {
  color: #0c7cff;
}
.msg-ques-guess {
  margin-top: 20px;
}
.msg-ques-list {
  margin-top: 8px;
}
.msg-ques-item {
  margin-bottom: 4px;
  padding: 8px 28px;
  background: url("../images/msg_ques_dot.png") 8px center no-repeat, #F5F7FA url("../images/msg_ques_arrow.png") right 12px center no-repeat;
  border-radius: 8px;
  cursor: pointer;
}
.msg-ques-item:last-child {
  margin-bottom: 0;
}
.msg-ques-item:hover {
  color: #0c7cff;
}
.msg-item {
  margin-bottom: 32px;
  line-height: 1.5;
  font-size: 16px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.msg-item:last-child {
  margin-bottom: 0;
}
.msg-item.me .msg-main {
  float: right;
  padding-left: 0;
  padding-right: 54px;
}
.msg-item.me .msg-portrait {
  left: auto;
  right: 0;
}
.msg-item.me .msg-bubble {
  border-radius: 16px 0 16px 16px;
  color: #fff;
  background: #0080FF;
  background: -webkit-gradient(linear, right top, left top, from(#0080FF), to(#1A46D8));
  background: linear-gradient(270deg, #0080FF 0%, #1A46D8 100%);
  border-color: transparent;
}

/* 输入区域样式 */
.consult-input-area {
  padding: 20px 24px;
  background: #F4F6F9;
  border-top: 1px solid #E1E8ED;
}

.input-container {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.user-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  outline: none;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-family: inherit;
}

.user-input:focus {
  border-color: #0080FF;
}

.send-btn {
  padding: 12px 24px;
  background: #0080FF;
  background: -webkit-gradient(linear, right top, left top, from(#0080FF), to(#1A46D8));
  background: linear-gradient(270deg, #0080FF 0%, #1A46D8 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.send-btn:hover {
  opacity: 0.9;
}

.send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 流式输出动画 */
.typing-indicator {
  display: flex;
  align-items: center;
  padding: 8px 0;
  margin-top: 8px;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: #999;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

html[style*=zoom] {
  height: 100%;
}

html[style*=zoom] body {
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  overflow: hidden;
}

html[style*=zoom] .header,
html[style*=zoom] .footer,
html[style*=zoom] .location {
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

html[style*=zoom] .shadow-box {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  margin-bottom: 20px;
  height: auto;
  overflow: hidden;
}

@media screen and (min-height: 1380px) {
  html {
    height: 100%;
  }
  body {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    overflow: hidden;
  }
  .header, .footer, .location {
    -ms-flex-negative: 0;
        flex-shrink: 0;
  }
  .shadow-box {
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    margin-bottom: 20px;
    height: auto;
    overflow: hidden;
  }
}
@media screen and (max-width: 1440px) and (max-height: 780px) {
  .shadow-box {
    height: 600px;
  }
  .consult-hd {
    height: 110px;
    padding: 16px;
    background-size: 100% 100%;
  }
  .consult-hd .consult-hd-title {
    line-height: 30px;
    font-size: 24px;
  }
  .consult-hd-intro {
    max-height: 40px;
    line-height: 20px;
    font-size: 16px;
  }
  .consult-bd {
    height: calc(100% - 110px);
    border-radius: 0;
    padding: 16px;
  }
  .msg-main {
    max-width: 66%;
  }
  .msg-bubble {
    padding: 8px 12px;
    border-radius: 0 10px 10px 10px;
  }
  .msg-bubble + .msg-bubble {
    margin-top: 8px;
  }
  .msg-item {
    margin-bottom: 15px;
  }
  .msg-item.me .msg-bubble {
    border-radius: 10px 0 10px 10px;
  }
}
@media screen and (max-width: 1199px) {
  html {
    height: 100%;
  }
  body {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    overflow: hidden;
  }
  #header,
  #footer,
  .location {
    -ms-flex-negative: 0;
        flex-shrink: 0;
  }
  .shadow-box {
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    margin-bottom: 20px;
    height: auto;
    overflow: hidden;
  }
  .consult-hd {
    height: 110px;
    padding: 16px;
    background-size: 100% 100%;
  }
  .consult-hd .consult-hd-title {
    line-height: 30px;
    font-size: 24px;
  }
  .consult-hd-intro {
    max-height: 40px;
    line-height: 20px;
    font-size: 16px;
  }
  .consult-bd {
    height: calc(100% - 110px);
    border-radius: 0;
    padding: 16px;
  }
  .msg-main {
    max-width: 100%;
    padding: 0 54px;
  }
  .msg-item.me .msg-main {
    padding: 0 54px;
  }
}
@media screen and (max-width: 980px) {
  html {
    height: auto;
    overflow-y: auto;
  }
  body {
    height: auto;
    display: block;
  }
  .shadow-box {
    background: #fff;
    margin-bottom: 10px;
    height: 720px;
  }
  .msg-bubble {
    padding: 8px 12px;
    border-radius: 0 10px 10px 10px;
  }
  .msg-bubble + .msg-bubble {
    margin-top: 8px;
  }
  .msg-item {
    margin-bottom: 15px;
  }
  .msg-item.me .msg-bubble {
    border-radius: 10px 0 10px 10px;
  }
}
@media screen and (max-width: 767px) {
  .shadow-box {
    height: 630px;
    margin: 0 5px 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .consult-hd {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    height: auto;
    padding: 5px;
  }
  .consult-hd-title {
    line-height: 26px;
    font-size: 18px;
  }
  .consult-hd-intro {
    margin-top: 2px;
    max-height: 36px;
    line-height: 18px;
    font-size: 14px;
  }
  .consult-bd {
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    padding: 5px;
  }
  .msg-main {
    padding: 0 36px;
  }
  .msg-portrait {
    width: 30px;
    height: 30px;
  }
  .msg-bubble {
    padding: 6px 10px;
    border-radius: 0 8px 8px 8px;
  }
  .msg-bubble + .msg-bubble {
    margin-top: 5px;
  }
  .msg-ques-item {
    padding: 6px 14px;
    background: url(../images/msg_ques_dot.png) left center no-repeat, #F5F7FA url(../images/msg_ques_arrow.png) right 4px center no-repeat;
    border-radius: 4px;
  }
  .msg-ques-guess {
    margin-top: 10px;
  }
  .msg-ques-list {
    margin-top: 4px;
  }
  .msg-item {
    margin-bottom: 10px;
    line-height: 1.2;
    font-size: 14px;
  }
  .msg-item.me .msg-main {
    padding: 0 36px;
  }
  .msg-item.me .msg-bubble {
    border-radius: 8px 0 8px 8px;
  }
}