.modal-mask {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: hsla(0, 0%, 100%, .2);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal-mask.show{
  display:flex;
}
.modal-box{
  width: 460px;
  background:#f0f6fe;
  border-radius:16px;
  padding:32px;
  position:relative;
}
.modal-close{
  width:36px;
  height:36px;
  border-radius:50%;
  background:#333;
  color:#fff;
  text-align:center;
  line-height:36px;
  font-size:22px;
  position:absolute;
  right:-18px;
  top:-18px;
  cursor:pointer;
}
.modal-body h2{
  font-size:32px;
  font-weight:bold;
  margin:0 0 8px;
}
.modal-desc{
  font-size:18px;
  color:#333;
  margin-bottom:24px;
}
.form-item{
  margin-bottom:16px;
}
.form-item label{
  display:block;
  margin-bottom:6px;
}
.red{
  color:red;
}
.form-item input{
  width:100%;
  box-sizing:border-box;
  border:1px solid #ccc;
  padding:12px 14px;
  border-radius:6px;
  font-size:15px;
}
.form-item textarea{
  width:100%;
  min-height:100px;
  box-sizing:border-box;
  border:1px solid #ccc;
  padding:12px 14px;
  border-radius:6px;
  resize:vertical;
}
.count-tip{
  text-align:right;
  font-size:12px;
  color:#999;
}
.submit-btn{
  width:100%;
  background:#1976d2;
  color:#fff;
  border:none;
  padding:12px;
  border-radius:6px;
  font-size:16px;
  cursor:pointer;
  text-align: center;
}
@media (max-width:576px){
  .modal-box{
      width:90%;
      padding:24px;
  }
}


.right-box {
  z-index:99999;
  position: fixed;
  right: 10px;
  bottom: 1%;

}

.right-box .ai-kf-img img {
  width: 80px;
  height: auto;
  cursor: pointer;
  margin-bottom: 10px;
}

.right-box .top {
  width: 45px;
  height: 45px;
  cursor: pointer;
  margin: 0 auto;
}

/* CSS画粉色圆形+向上箭头 */
.right-box .go-top-btn {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #09bbfe, #5a42ec);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.right-box .go-top-btn img {
  width: 30px;
  height: 30px;
}

/* ==========客服弹窗面板样式========== */
.ai-kf-panel {
  background: #ffffff;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  display: none;


}

.kf-panel-header {
  background-color: #2478f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
}

.kf-panel-header .kf-online-tag {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 0px 12px;
  border-radius: 10px;
  gap: 6px;
}

.kf-panel-header .kf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #32bc54;
}

.kf-panel-header #kfOnlineText {
  color: #222;
  font-size: 12px;
}

.kf-panel-header .kf-close-top img {
  width: 14px;
  height: auto;
  filter: brightness(2);
  cursor: pointer;
}

.ai-kf-panel .kf-time-tip {
  background: #2478f5;
  color: #fff;
  font-size: 14px;
  padding: 0px 18px 6px;
}

.ai-kf-panel .kf-user-list {
  max-height: 80vh;
  overflow-y: auto;
  background: #f0f2f7;
}

.ai-kf-panel .kf-user-item {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  border-bottom: 1px solid #e4e6eb;
  cursor: pointer;
}

.ai-kf-panel .kf-user-item:hover {
  background: #e8ebf2;
}

.ai-kf-panel .kf-user-item .kf-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 16px;
}

.ai-kf-panel .kf-user-info {
  flex: 1;
}

.ai-kf-panel .kf-user-name {
  font-size: 18px;
  line-height: 17px;
  color: #111;
  font-weight: 500;
  margin-bottom: 10px;
}

.ai-kf-panel .kf-user-job {
  font-size: 13px;
  line-height: 12px;
  color: #666;
}

.ai-kf-panel .kf-status-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #32bc54;
}

.ai-kf-panel .kf-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #32bc54;
}
/*  */

/* ai数字员工 */
/* 原有ai弹窗样式保留 */
.ai-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: hsla(0, 0%, 100%, 0.2);
  z-index: 9999998;
  display: none;
  overscroll-behavior: none;
  /* 阻止弹性橡皮筋滚动 */
}

.aiSearch-box {
  position: fixed;
  z-index: 9999999;
  right: 10px;
  bottom: 10px;
  background-color: #fff;
  width: 98%;
  max-width: 400px;
  height: 80vh;
  border-radius: 12px;
  box-shadow: 0px 4px 12px 4px rgba(0, 0, 0, 0.1);
  display: none;
  overflow: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* ios顺滑滚动 */
  overscroll-behavior: contain;
  /* 内容滚到头，不再穿透到下层 */
}
.custom-nav-pc-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.nav-title {
  padding: 6px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.nav-title .page-back img {
  width: 15px;
  height: auto;
  cursor: pointer;
}

.nav-title-text {
  background-color: #f5f6fa;
  border-radius: 20px;
  color: #888b94;
  font-size: 12px;
  height: 30px;
  line-height: 30px;
  padding: 0 14px;
}

.page-operate {
  display: flex;
  align-items: center;
}

.close-nav-icon {
  cursor: pointer;
  width: 25px;
  display: flex;
  justify-content: center;
}

.close-nav-icon img {
  width: 14px;
}

.adm-pull-to-refresh-content {
  flex: 1;
  overflow: hidden;
  height: 0;
}

.doubao-chat {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  margin: 0 0 20px 0;
  scroll-behavior: auto !important;
}
/* 加到页面style标签内 */
.staff-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.staff-info-header .staff-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.staff-text {
  flex: 1;
}

.staff-info-header .staff-name {
  color:#111;
  font-size: 16px;
  line-height: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.welcome-message-container-wrap {
  padding: 0px 15px 10px 15px;
}

.high-light-title-container {
  color: #4d50ff;
  margin-top: 10px;
}

.high-light-title {
  color: #555;
  font-size: 13px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
}


.high-light-title .refreshlist {
  display: flex;
  align-items: center;
}

.high-light-title .refreshlist img {
  width: 14px;
  height: 14px;
  margin-right: 6px;

}

.variety-select-message-container {
  display: flex;
  flex-wrap: wrap;
}

.waterflow-container.item {
  background-color: #f7f8fc;
  border-radius: 5px;
  min-height: 30px;
  padding: 0 12px;
  color: #1a1a1a;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
  line-height: 30px;
  margin: 4px 5px;
}

.aigc-ai-tips {
  margin: 10px 15px 10px;
  color: #828794;
  font-size: 12px;
  text-align: right;
}

.chat-inner {
  padding: 0 10px 20px 10px;
}

.user-message {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.user-message .user-message-icon {
  margin: 0 0 0 6px;
  width: 30px;
  height: 30px;
}

.ai-message {
  width: 100%;
  margin: 10px auto 0;
  display: flex;
  justify-content: flex-start;
}

.ai-message .ai-message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0 6px 0 0;
}

.ai-message-info {
  flex: 1;
}

.ai-message-name {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.leave-form-card {
  width: 95%;
  padding: 6px;
  background: #f8f9ff;
  border-radius: 12px;
}

.leave-form-card .leave-tip {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 14px 0;
  color: #1a1a1a !important;
}

.leave-form-card .leave-item {
  margin-bottom: 10px;
}

.leave-form-card .leave-item input, .leave-item textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

.leave-form-card .leave-item textarea {
  min-height: 80px;
  resize: none;
}

.leave-form-card .leave-submit-btn {
  width: 100%;
  background: #5b46e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
}

.user-message {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  align-items: flex-start;
  justify-content: flex-end;
}

.user-message-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  order: 2;
}

.message-bubble-user {
  order: 1;
}

.message-bubble-user {
  background: #dde5ff;
  color: #1a1a1a;
  padding: 8px;
  border-radius: 10px;
  margin: 0px 0;
}

.message-bubble-left {
  width: 100%;
  background-color: #f4f6fb;
  padding: 8px;
  border-radius: 10px;
}

.message-bubble-left .type-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message-text {
  all: unset;
  font-size: 14px;
  line-height: 1.6;
  color: #1a1a1a;
  display: block;
}

.message-text * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.message-text p {
  color: #1a1a1a;
  margin: 4px 0 !important;
}

.message-text h1,
.message-text h2,
.message-text h3,
.message-text h4 {
  margin: 8px 0 4px 0 !important;
  font-weight: bold;
  font-size: 15px;
}

.message-text ul,
.message-text ol {
  padding-left: 20px !important;
  margin: 6px 0 !important;
}

.message-text li {
  margin: 2px 0 !important;
}

.message-text blockquote {
  border-left: 3px solid #c8cde0;
  padding-left: 8px;
  color: #555;
  margin: 6px 0 !important;
}

.message-text pre {
  background: #eee;
  padding: 8px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 6px 0 !important;
}

.message-text code {
  background: #eeeeee;
  padding: 2px 4px;
  border-radius: 3px;
}

.message-text img {
  width: 80px;
  height: auto;
}

.loading-dot {
  position: relative;
  color: #fff;
  border-radius: 8px;
}

.loading-dot span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  border-radius: 50%;
  background: #4d50ff;
  animation: dotBounce 1.4s infinite ease-in-out;
}

.loading-dot span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dot span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-4px);
  }
}

.bottom-input-container-pc {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 15px 10px;
}

.textarea-box {
  margin-top: 10px;
  display: flex;
  width: 100%;
}

.textarea-box textarea {
  width: 100%;
  height: 30px !important;
  border: none;
  outline: none;
  padding: 0;
  resize: none;
}

.send-message-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.send-message-btn .AIh {
  width: 24px;
  height: 24px;
}

.send-message-btn .send {
  width: 28px;
  height: 28px;
  cursor: pointer;
}

@media (max-width: 991px) {
  .aiSearch-box {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    width: 90%;
    max-width: 400px;
    height: 70vh;
  }
}
/*  */