/* 图像识别 — 布局与智能语音一致（1024×720 绝对定位） */

.view-image {
  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;
}

/*
 * 竖向（与 .view-smart-voice 一致）：
 * 标题 45+57=102 → 提示 +14 → 116/67 → 183
 * 主区顶 195、高 421 → 616 → 底栏 +15 → 631/67 → 698
 */

.img-row--head {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 102px;
  pointer-events: none;
}

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

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

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

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

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

.img-preview-wrap {
  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 / .sv-image 一致：633×406 */
.img-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;
}

.img-video,
.img-preview {
  display: block;
  max-width: 633px;
  max-height: 406px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.img-video[hidden],
.img-preview[hidden] {
  display: none !important;
}

.img-preview-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 24px;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  pointer-events: none;
}

.img-preview-hint[hidden] {
  display: none !important;
}

/* 素材库：633×406 内 3×2 网格 */
.img-materials {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  box-sizing: border-box;
  padding: 14px 16px;
  background: rgba(6, 22, 52, 0.88);
  overflow: hidden;
}

.img-materials[hidden] {
  display: none !important;
}

.img-materials-grid {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.img-material-btn {
  position: absolute;
  padding: 0;
  margin: 0;
  border: 2px solid rgba(120, 200, 255, 0.35);
  border-radius: 8px;
  box-sizing: border-box;
  background: rgba(8, 28, 64, 0.65);
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.img-material-btn:hover:not(:disabled) {
  border-color: rgba(120, 220, 255, 0.85);
  filter: brightness(1.05);
}

.img-material-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.img-material-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

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

.img-panel-title-img {
  position: absolute;
  left: 50%;
  top: 36px;
  width: 209px;
  height: 42px;
  margin-left: -104.5px;
  display: block;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.img-upload-btn {
  position: absolute;
  left: 26.5px;
  top: 109px;
  width: 233px;
  height: 90px;
  padding: 0;
  margin: 0;
  border: none;
  background: url("../img/doodleTuXiang/jiqiai-tuxiangshibie-dianjichuan.png") no-repeat center / 233px 90px;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.img-upload-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.img-upload-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.img-upload-label {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 26px;
  line-height: 1;
  color: #ffffff;
  pointer-events: none;
  user-select: none;
}

.img-photo-btn {
  position: absolute;
  left: 26.5px;
  top: 223px;
  width: 233px;
  height: 90px;
  padding: 0;
  margin: 0;
  border: none;
  background: url("../img/doodleTuXiang/jiqiai-tuxiangshibie-paizhaochuan.png") no-repeat center / 233px 90px;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.img-photo-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.img-photo-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.img-photo-label {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 26px;
  line-height: 1;
  color: #ffffff;
  pointer-events: none;
  user-select: none;
}

/* 第四行：与智能语音底栏一致 */
.img-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;
}

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

.img-bottom-sep {
  display: inline-block;
  width: 48px;
}

#image-result {
  display: none !important;
}
