/* 智能语音 — 1024×720 绝对定位 */

.view-smart-voice {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
  color: #ffffff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: left;
}

/*
 * 竖向核算：
 * 标题 45+57=102 → 提示 +14 → 顶 116，高 67 → 底 183
 * 主区 421 → 底 604 → 底栏 +15 → 顶 619，高 67 → 底 686（余 34px）
 */

/* ---------- 第一行：标题 top 45（174×57），返回由安卓原生 ---------- */
.sv-row--head {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 102px;
  pointer-events: none;
}

.sv-title-img {
  position: absolute;
  left: 50%;
  top: 45px;
  width: 174px;
  height: 57px;
  margin-left: -87px;
  display: block;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ---------- 第二行：top 116，948×67 ---------- */
.sv-row--tip {
  position: absolute;
  left: 39px;
  top: 116px;
  width: 948px;
  height: 67px;
  box-sizing: border-box;
  background: url("../img/smartVoiceImg/jiqiai-zhinengyuyin-tishi.png") no-repeat center / 948px 67px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 24px 0 22px;
}

.sv-tip-icon {
  flex-shrink: 0;
  width: 23px;
  height: 31px;
  margin-right: 10px;
  background: url("../img/speech/jiqiai-yuyin-dengpao.png") no-repeat center / 23px 31px;
}

.sv-tip-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.35;
  color: #ffffff;
}

/* ---------- 第三行：top 183，左 648×421 + 右 286×421 ---------- */
.sv-row--main {
  position: absolute;
  left: 39px;
  top: 195px;
  width: 948px;
  height: 421px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sv-stage-left {
  position: relative;
  flex: 0 0 648px;
  width: 648px;
  height: 421px;
  box-sizing: border-box;
  background: url("../img/smartVoiceImg/jiqiai-zhinengyuyin-centerLeft.png") no-repeat center / 648px 421px;
}

.sv-image-viewport {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 633px;
  height: 406px;
  max-width: 633px;
  max-height: 406px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sv-image {
  display: block;
  max-width: 633px;
  max-height: 406px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.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);
}

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

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

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

.sv-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 72px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(120, 190, 255, 0.55);
  border-radius: 12px;
  background: rgba(8, 28, 64, 0.72);
  font-size: 28px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#sv-carousel-prev {
  left: 15px;
}

#sv-carousel-next {
  right: 15px;
}

.sv-carousel-btn:hover:not(:disabled) {
  background: rgba(20, 50, 100, 0.88);
}

.sv-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sv-panel {
  position: relative;
  flex: 0 0 286px;
  width: 286px;
  height: 421px;
  background: url("../img/smartVoiceImg/jiqiai-zhinengyuyin-centerRight.png") no-repeat center / 286px 421px;
}

.sv-hold-btn {
  position: absolute;
  left: 83px;
  top: 112px;
  width: 120px;
  height: 120px;
  padding: 0;
  margin: 0;
  border: none;
  background: url("../img/smartVoiceImg/jiqiai-zhinengyuyin-changanlaba.png") no-repeat center / 120px 120px;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  touch-action: none;
}

.sv-hold-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.sv-hold-btn.is-recording {
  filter: brightness(1.12);
}

.sv-hold-btn.is-hold-lottie {
  background-image: none;
}

.sv-hold-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 纯提示，不可点击 */
.sv-hold-hint {
  position: absolute;
  left: 26.5px;
  top: 270px;
  width: 233px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: bold;
  font-size: 26px;
  line-height: 1.35;
  color: #ffffff;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

/* ---------- 第四行：top 619，948×67 ---------- */
.sv-row--bottom {
  position: absolute;
  left: 39px;
  top: 631px;
  width: 948px;
  height: 67px;
  box-sizing: border-box;
  background: url("../img/smartVoiceImg/jiqiai-zhinengyuyin-bottom.png") no-repeat center / 948px 67px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.sv-bottom-text {
  margin: 0;
  width: 100%;
  text-align: center;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35;
  color: #ffffff;
}

.sv-unsupported {
  position: absolute;
  left: 39px;
  right: 37px;
  top: 116px;
  z-index: 10;
  padding: 10px 14px;
  border: 1px solid rgba(255, 180, 80, 0.6);
  border-radius: 10px;
  background: rgba(40, 20, 8, 0.85);
  font-size: 14px;
  color: #ffffff;
}

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

.sv-dots,
.sv-scene-caption {
  display: none !important;
}
