/* 智能语音 — 设计稿 1024×576，布局与语音识别一致 */

.view-smart-voice {
  --sv-design-w: 1024;
  --sv-design-h: 576;
  --sv-ui-scale: 1;
  --sv-wave-color: #7ec8fb;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #050a18;
  background-image: url("../img/face/jiqiai-beijing.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: left;
  pointer-events: auto;
  user-select: none;
}

.view-smart-voice .smart-voice-scale-outer {
  width: calc(var(--sv-design-w) * 1px * var(--sv-ui-scale));
  height: calc(var(--sv-design-h) * 1px * var(--sv-ui-scale));
  flex: 0 0 auto;
  position: relative;
}

.view-smart-voice .smart-voice-scale-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--sv-design-w) * 1px);
  height: calc(var(--sv-design-h) * 1px);
  transform: scale(var(--sv-ui-scale));
  transform-origin: top left;
  box-sizing: border-box;
}

.view-smart-voice .sv-shell {
  position: relative;
  width: calc(var(--sv-design-w) * 1px);
  height: calc(var(--sv-design-h) * 1px);
  box-sizing: border-box;
}

.view-smart-voice .sv-panel--left {
  position: absolute;
  left: 26px;
  top: 28px;
  width: 661px;
  height: 520px;
  box-sizing: border-box;
  background: url("../img/speech/speech-panel-left.png") no-repeat center / 661px 520px;
}

.view-smart-voice .sv-image-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 628px;
  height: 487px;
  max-width: 628px;
  max-height: 487px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.view-smart-voice .sv-image {
  display: block;
  max-width: 628px;
  max-height: 487px;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.view-smart-voice .sv-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  background: rgba(6, 22, 52, 0.75);
}

.view-smart-voice .sv-image-fallback[hidden] {
  display: none !important;
}

.view-smart-voice .sv-fallback-label {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  color: #ffb4bc;
}

.view-smart-voice .sv-fallback-hint {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.view-smart-voice .sv-panel--right {
  position: absolute;
  right: 26px;
  top: 28px;
  width: 284px;
  height: 520px;
  box-sizing: border-box;
  background: url("../img/speech/speech-panel-right.png") no-repeat center / 284px 520px;
  pointer-events: auto;
  overflow: hidden;
}

/* 机器人 248×137 · 距右板顶 137px；音波在机器人左右各 82px 处居中 */
.view-smart-voice .sv-robot-stage {
  position: absolute;
  left: 50%;
  top: 137px;
  width: 248px;
  height: 137px;
  margin-left: -124px;
  box-sizing: border-box;
  pointer-events: none;
}

.view-smart-voice .sv-robot-img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 248px;
  height: 137px;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  z-index: 1;
}

.view-smart-voice .sv-waveform {
  position: absolute;
  top: 0;
  width: 70px;
  height: 137px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2;
}

.view-smart-voice .sv-waveform--left {
  left: 45px;
  transform: translateX(-50%);
}

.view-smart-voice .sv-waveform--right {
  right: 40px;
  transform: translateX(50%);
}

.view-smart-voice .sv-waveform-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 100%;
}

.view-smart-voice .sv-wave-bar {
  flex: 0 0 4px;
  width: 4px;
  min-height: 6px;
  height: 10px;
  border-radius: 2px;
  background: var(--sv-wave-color);
  box-shadow: 0 0 8px rgba(126, 200, 251, 0.35);
  transition: height 0.07s ease-out, opacity 0.15s ease;
}

.view-smart-voice .sv-robot-stage:not(.is-speaking) .sv-wave-bar {
  opacity: 0.42;
}

.view-smart-voice .sv-robot-stage.is-speaking .sv-wave-bar {
  opacity: 1;
}

/* 状态文字 · 机器人下 5px */
.view-smart-voice .sv-status-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 279px;
  padding: 0 10px;
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
}

.view-smart-voice .sv-status-main {
  margin: 0;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.35;
  background: linear-gradient(180deg, #bfe6fc 0%, #5197f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: pre-wrap;
  word-break: break-word;
}

.view-smart-voice .sv-status-hint {
  margin: 0;
  padding-top: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
  white-space: pre-wrap;
  word-break: break-word;
}

.view-smart-voice .sv-unsupported {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 50%;
  z-index: 20;
  transform: translateY(-50%);
  padding: 12px 16px;
  border: 1px solid rgba(255, 180, 80, 0.6);
  border-radius: 10px;
  background: rgba(40, 20, 8, 0.88);
  font-size: 14px;
  line-height: 1.45;
  pointer-events: auto;
}

.view-smart-voice .sv-unsupported[hidden] {
  display: none !important;
}
