* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* 全局滚动条样式 */
/*滚动条*/
::-webkit-scrollbar {
  width: 5px;
  height: 8px;
}
.scrollbar-w0::-webkit-scrollbar {
  width: 0;
  /* height: 8px; */
}
/*滚动槽*/
::-webkit-scrollbar-track {
  background-color: transparent;
}
/**滑快*/
::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}
.m-switch-btn {
  cursor: pointer;
  width: 36px;
  height: 18px;
  position: relative;
  background-color: #acaeb3;
  border-radius: 15px;
  background-clip: content-box;
  display: inline-block;
  appearance: none;
  user-select: none;
  outline: none;
}
.m-switch-btn:before {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background-color: #fff;
}
.m-switch-btn:checked {
  background-color: #006bff;
}
.m-switch-btn:checked:before {
  left: 20px;
}
.m-switch-btn.m-switch-btn-animbg {
  transition: background-color ease 0.4s;
}
.m-switch-btn.m-switch-btn-animbg:before {
  transition: left 0.3s;
}
.m-switch-btn.m-switch-btn-animbg:checked {
  box-shadow: #acaeb3 0 0 0 0 inset;
  background-color: #006bff;
  transition: border-color 0.4s, background-color ease 0.4s;
}
.m-switch-btn.m-switch-btn-animbg:checked:before {
  transition: left 0.3s;
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}
body {
  height: 100vh;
  /* min-height: 900px; */
}
/* 信息弹窗 */
.m-message {
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  width: fit-content;
  /* height: 28px; */
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
  box-sizing: border-box;
  color: #1a1b1d;
  font-size: 14px;
  line-height: 28px;
  border-radius: 4px;
  background: #e3ebff;
  border: 1px soli1 #006bff;
}
.m-message-success {
  border: 1px solid #35bd62;
  background: #ebfaf0;
}
.m-message-error {
  border: 1px solid #e54949;
  background: #ffeaea;
}
.page {
  min-height: 100%;
  padding-top: 52px;
  background: linear-gradient(to right, #eff7fe, #f1eefd);
}
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 52px;
  padding: 10px 24px;
  display: none;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 28px;
}
.logo-container .bar {
  width: 1px;
  height: 24px;
  margin: 0 24px;
  background: #edf1f5;
}

.logo-container h3 {
  font-size: 16px;
  color: #1b2532;
}

.main {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 0;
}
.main-container {
  position: relative;
  min-height: calc(100vh - 100px);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #fff;
  border-radius: 8px;
}

.agent-entry-screen {
  padding: 24px 0 60px;
  text-align: center;
}

.call-btn {
  height: 48px;
  margin: 0 12px;
  padding: 0 16px;
  border-radius: 100px;
  border: 1px solid #fff;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0.1));
  font-size: 16px;
  text-align: center;
  color: #262b33;
  letter-spacing: 0;
  cursor: pointer;
  user-select: none;
}
.call-btn-active {
  color: #006bff;
  border: 1px solid #006bff;
  background: linear-gradient(#e6f3ff, #fafdff);
}
.welcome-container {
  display: none;
  margin-top: 100px;
}
.welcome-container h3 {
  align-items: center;
  font-size: 24px;
  font-weight: 600;
  color: #262b33;
}
.welcome-container i {
  margin-right: 8px;
  font-size: 26px;
}
.welcome-container p {
  margin-top: 16px;
  color: #657083;
}
.welcome-container p span {
  background: linear-gradient(
    90deg,
    #3873fa 0%,
    #47c8ff 50%,
    #70fff6 80%,
    #47c8ff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.talk {
  display: none;
  width: 80px;
  margin: 0 auto;
  cursor: pointer;
  user-select: none;
}
.talk-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin: 32px auto 4px;
  border-radius: 50%;
  background: linear-gradient(90deg, #006bff 0%, #7c57ff 100%);
}
.talk p {
  margin-top: 8px;
  font-size: 14px;
  color: #657083;
}
.tips {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #9ea7b8;
}

.agent-talk-screen {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  height: calc(100vh - 120px);
  padding: 16px;
}
.agent-talk-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}
.agent-talk-set {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: -6px -6px 0 0;
  border-radius: 4px;
  cursor: pointer;
}
.agent-talk-set:hover {
  background: #fff;
}
.set-icon {
  display: flex;
  align-items: center;
  width: 16px;
  height: 16px;
}
.set-container {
  display: none;
  position: absolute;
  top: 28px;
  right: 0;
  z-index: 10;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  color: #535760;
}
.set-item-container {
  width: 260px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.set-item-container > span {
  display: block;
  width: 60px;
  text-align: right;
}
.set-item-container:not(:first-child) {
  margin-top: 16px;
}
.set-camera-container {
  display: none;
  margin-top: 16px;
}
.set-item-box {
  position: relative;
  width: 192px;
  height: 32px;
}
.set-item-default {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}
.set-item-default-text {
  display: block;
  height: 30px;
  padding: 4px 20px 4px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.set-item-default-icon {
  width: 12px;
  height: 12px;
  margin-right: 8px;
  padding-right: 10px;
  line-height: 12px;
  text-align: center;
}
.set-item-list {
  position: absolute;
  top: 24px;
  left: 0;
  z-index: 10;
  display: none;
  width: 100%;
  font-size: 12px;
  line-height: 20px;
  background: #fff;
}
.mic-item,
.camera-item {
  display: block;
  padding: 8px;
  cursor: pointer;
}
.mic-item-active,
.camera-item-active {
  background: #eee;
}
.mic-item:hover,
.camera-item:hover {
  background: #eee;
}

.visualizer {
  /* width: 100%; */
  height: 24px;
  /* margin-top: 20px; */
  /* background-color: #eee; */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.mic_bar {
  display: inline-block;
  width: 6px;
  height: 6px;
  min-height: 6px;
  background: linear-gradient(#3873fa, #47c8ff, #b0dbf3);
  transition: height 0.2s ease-in-out;
  border-radius: 3px;
}
.listen-status-text-muted {
  color: #657083;
}
.set-caption-container,
.set-mic-input-container,
.set-camera-input-container {
  display: none;
}
.caption-box,
.set-mic-input-box,
.set-camera-input-box {
  display: flex;
  align-items: center;
}

.agent-talk-room {
  height: 32px;
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0px;
  background: #fff;
  border-radius: 4px;
  user-select: none;
}
.room-info-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.copy {
  height: 16px;
  margin-left: 4px;
  cursor: pointer;
}
.agent-talk-main {
  display: none;
  width: 720px;
  height: calc(100vh - 440px);
  margin: 24px auto;
  overflow-y: scroll;
}

.agent-camera-main {
  display: none;
  position: relative;
  width: 960px;
  height: 540px;
  max-width: calc((100vh - 350px) * 1.8);
  min-width: calc(200px * 1.8);
  max-height: calc(100vh - 350px);
  min-height: 200px;
}
.agent-msg,
.you-msg {
  display: block;
  width: fit-content;
  margin-bottom: 16px;
  padding: 12px 16px;
  font-size: 14px;
  letter-spacing: 0px;
  color: #262b33;
}
.agent-msg {
  border-radius: 0 8px 8px 8px;
}
.you-msg {
  border-radius: 8px 0 8px 8px;
}
.agent-msg {
  background: #fff;
}
.you-msg {
  margin-left: auto;
  text-align: left;
  background: #dce7fc;
}

.dots {
  display: inline-flex;
  margin-left: 4px;
}

.dots span {
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background-color: #1890ff;
  border-radius: 50%;
  animation: blink 1.4s infinite;
  opacity: 0;
  animation-fill-mode: both;
}

.dots span:nth-child(1) {
  animation-delay: 0s;
}
.dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.dots span:nth-child(3) {
  animation-delay: 0.4s;
}
.error-msg {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 16px;
  font-size: 14px;
  background: #ffd8d8;
  border-radius: 4px;
}
.camera-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: url(../image/bg_camera.png) no-repeat center;
  background-size: cover;
}
.agent-video,
.screenshare-video {
  position: absolute;
  left: 0;
  right: 0;
  display: none;
  min-width: 100%;
  max-width: 100%;
  min-height: 100%;
  max-height: 100%;
  background: #000;
  object-fit: cover !important;
}
.agent-video-message-container {
  display: none;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  max-height: 100px;
  overflow-y: scroll;
  background: #006bff;
  border-radius: 0 0 32px 32px;
  padding: 16px;
  padding-right: 40%;
  /* backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px); */
  background: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0.1)
  );
}
.agent-video-message-container .you-msg {
  margin: 0 0 12px 0;
  padding: 0;
  text-align: left;
  font-weight: bold;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  background: none;
  color: #fff;
}
.agent-video-message-container .agent-msg {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0px;
  color: #fff;
  background: none;
}
.agent-talk-bottom {
  width: 720px;
}
.listen-status {
  width: 100px;
  margin: 0 20px;
  text-align: center;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0px;
  color: #006bff;
}
.agent-break {
  display: none;
  align-items: center;
  width: 82px;
  height: 24px;
  margin: 12px auto;
  padding: 5px 8px;
  border: 1px solid #006bff;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}
.circle {
  display: block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  border: 1px solid #006bff;
  border-radius: 50%;
  background-color: #fff;
  position: relative;
}
.circle::before {
  content: "";
  width: 3px;
  height: 3px;
  background-color: #006bff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.control-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
}
.controle-item {
  position: relative;
  margin: 0 12px;
  cursor: pointer;
}
.item-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  background-color: #edf1f5;
  border-radius: 50%;
}
.micphone-icon-on {
  background-image: url(../image/micphone_on.png);
  background-size: 36px;
  background-repeat: no-repeat;
  background-position: center;
}
.micphone-icon-off {
  background-image: url(../image/micphone_off.png);
  background-size: 36px;
  background-repeat: no-repeat;
  background-position: center;
}
.camera-con {
  display: none;
}
.camera-icon-on {
  background-image: url(../image/camera_on.png);
  background-size: 36px;
  background-repeat: no-repeat;
  background-position: center;
}
.camera-icon-off {
  background-image: url(../image/camera_off.png);
  background-size: 36px;
  background-repeat: no-repeat;
  background-position: center;
}
.screenshare-con {
  display: none;
}
.screenshare-icon-on {
  background-image: url(../image/screenshare_on.png);
  background-size: 36px;
  background-repeat: no-repeat;
  background-position: center;
}
.screenshare-icon-off {
  background-image: url(../image/screenshare_off.png);
  background-size: 36px;
  background-repeat: no-repeat;
  background-position: center;
}
.close-icon {
  background-image: url(../image/close.png);
  background-size: 36px;
  background-repeat: no-repeat;
  background-position: center;
}
.item-text {
  position: absolute;
  top: -30px;
  left: 50%;
  display: none;
  width: max-content;
  height: 32px;
  padding: 0 12px;
  line-height: 32px;
  border-radius: 4px;
  font-size: 12px;
  color: #ffffff;
  background: #1d2531;
  transform: translate(-50%);
}
.controle-item:hover .item-text {
  display: block;
}
.gradient-border {
  width: 100%;
  padding: 1px; /* 渐变边框粗细 */
  border-radius: 8px;
  background: linear-gradient(
    190deg,
    #006bff,
    #52a8ff,
    #2099ff,
    #29b8ff,
    #ffaaff
  ); /* 一圈渐变 */
  display: inline-block;
}

.input-container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  background: white;
  border-radius: 8px; /* 注意比外层略小，避免圆角错位 */
  padding: 14px 12px;
  position: relative;
}

.send-msg-input {
  flex: 1;
  height: 32px;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  background: transparent;
}

.input-container .char-count {
  font-size: 12px;
  color: #888;
  margin-right: 24px;
}

.input-container .send-btn {
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #1890ff;
  position: absolute;
  right: 8px;
}
.content-status {
  display: none;
}
.content-status p {
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0px;
  color: #657083;
}
/* 数字人 */
.agent-digital-main {
  display: none;
  align-items: center;
  width: 100%;
}
.digital-container {
  display: block;
  position: relative;
  width: 425px;
  height: 750px;
  margin: 0 auto;
  max-width: calc((100vh - 200px) / 1.8);
  min-width: calc(200px / 1.8);
  max-height: calc(100vh - 200px);
  min-height: 200px;
  overflow: hidden;
  border-radius: 32px;
  background: #000;
}
.agent-digital-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agent-digital-message-container {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 100px;
  overflow-y: scroll;
  background: #006bff;
  border-radius: 0 0 32px 32px;
  padding: 16px;
  background: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0.1)
  );
}
.agent-digital-message-container .you-msg {
  margin: 0 0 12px 0;
  padding: 0;
  text-align: left;
  font-weight: bold;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  background: none;
  color: #fff;
}
.agent-digital-message-container .agent-msg {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0px;
  color: #fff;
  background: none;
}
.digital-container .agent-talk-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: block;
}
/* 适配智汇云官网 */
.iframe-page {
  height: 100%;
  padding-top: 0;
}
.iframe-page .main {
  height: 100%;
  padding: 0;
}
.iframe-page .main-container {
  height: 100%;
}
.iframe-page .agent-talk-screen {
  height: calc(100vh - 20px);
}
.iframe-page .agent-talk-top {
  position: absolute;
  top: 10px;
  right: 10px;
}
.iframe-page .agent-camera-main {
  max-width: calc((100vh - 180px) * 1.8);
  max-height: calc(100vh - 180px);
}

@media screen and (max-width: 1280px) {
  .agent-camera-main {
    max-width: calc((100vh - 300px) * 1.8);
    max-height: calc(100vh - 300px);
  }
  .iframe-page .agent-camera-main {
    max-width: calc((100vh - 180px) * 1.8);
    max-height: calc(100vh - 180px);
  }
  .control-container {
    margin: 0 auto 12px;
  }
}
