/* 多模型训练 — 设计稿 1024×576 */

.view-classify-train {
  --ct-design-w: 1024;
  --ct-design-h: 576;
  --ct-ui-scale: 1;
  --ct-gradient: linear-gradient(270deg, #bfe6fc 0%, #5197f1 100%);
  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;
  user-select: none;
}

.view-classify-train .classify-train-scale-outer {
  width: calc(var(--ct-design-w) * 1px * var(--ct-ui-scale));
  height: calc(var(--ct-design-h) * 1px * var(--ct-ui-scale));
  flex: 0 0 auto;
  position: relative;
}

.view-classify-train .classify-train-scale-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--ct-design-w) * 1px);
  height: calc(var(--ct-design-h) * 1px);
  transform: scale(var(--ct-ui-scale));
  transform-origin: top left;
  box-sizing: border-box;
}

.view-classify-train .ct-shell {
  position: relative;
  width: calc(var(--ct-design-w) * 1px);
  height: calc(var(--ct-design-h) * 1px);
  box-sizing: border-box;
}

/* —— 左侧大板 —— */
.view-classify-train .ct-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;
  overflow: hidden;
}

.view-classify-train .ct-left-empty {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.view-classify-train .ct-left-empty[hidden] {
  display: none !important;
}

.view-classify-train .ct-left-empty-img {
  position: absolute;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  width: 510px;
  height: 361px;
  object-fit: contain;
  pointer-events: none;
}

.view-classify-train .ct-lib-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.view-classify-train .ct-lib-panel[hidden] {
  display: none !important;
}

.view-classify-train .ct-lib-tabs {
  position: absolute;
  top: 22px;
  left: 28px;
  display: flex;
  gap: 17px;
  height: 42px;
  pointer-events: none;
}

.view-classify-train .ct-lib-tab {
  position: relative;
  width: 139px;
  height: 42px;
  flex: 0 0 139px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: url("../img/classify-train/ui/ct-tab-off.png") no-repeat center / 139px 42px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: #5197f1;
  isolation: isolate;
}

.view-classify-train .ct-lib-tab.is-active {
  background: url("../img/classify-train/ui/ct-tab-on.png") no-repeat center / 139px 42px;
}

.view-classify-train .ct-lib-tab-text {
  position: relative;
  z-index: 1;
  background: var(--ct-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: #5197f1;
}

@supports (-webkit-background-clip: text) {
  .view-classify-train .ct-lib-tab-text {
    -webkit-text-fill-color: transparent;
  }
}

.view-classify-train .ct-lib-tab:not(.is-enabled) {
  opacity: 0.45;
}

.view-classify-train .ct-photo-grid {
  position: absolute;
  top: 78px;
  left: 27px;
  right: 26px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  column-gap: 25px;
  row-gap: 14px;
  overflow: hidden;
}

.view-classify-train .ct-photo-item {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 12, 32, 0.8);
  line-height: 0;
  pointer-events: none;
}

.view-classify-train .ct-photo-item.is-selected {
  border-color: #00ffff;
}

.view-classify-train .ct-photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* —— 右侧大板 —— */
.view-classify-train .ct-panel--right {
  position: absolute;
  left: 703px;
  top: 28px;
  width: 295px;
  height: 520px;
  box-sizing: border-box;
  background: url("../img/speech/speech-panel-right.png") no-repeat center / 295px 520px;
  overflow: hidden;
}

.view-classify-train .ct-right-state {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.view-classify-train .ct-right-state[hidden] {
  display: none !important;
}

.view-classify-train .ct-right-state--wait,
.view-classify-train .ct-right-state--busy,
.view-classify-train .ct-right-state--trained {
  top: 179px;
  text-align: center;
}

.view-classify-train .ct-right-wait-img {
  display: block;
  width: 235px;
  height: 162px;
  margin: 0 auto;
  object-fit: contain;
}

.view-classify-train .ct-right-busy-img {
  display: block;
  width: 175px;
  height: 162px;
  margin: 0 auto;
  object-fit: contain;
}

.view-classify-train .ct-right-trained-img {
  display: block;
  width: 241px;
  height: 162px;
  margin: 0 auto;
  object-fit: contain;
}

.view-classify-train .ct-right-state--sample {
  top: 152px;
  text-align: center;
}

.view-classify-train .ct-right-state--result {
  top: 22px;
  text-align: center;
}

.view-classify-train .ct-sample-preview {
  display: block;
  width: 179px;
  height: 179px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 4px;
  border: none;
  box-shadow: none;
}

.view-classify-train .ct-sample-label {
  margin: 13px 0 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  color: #ffffff;
}

.view-classify-train .ct-result-list {
  margin: 13px 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.view-classify-train .ct-result-item {
  position: relative;
  width: 233px;
  height: 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: url("../img/classify-train/ui/ct-rank-normal.png") no-repeat center / 233px 50px;
}

.view-classify-train .ct-result-item.is-match {
  background-image: url("../img/classify-train/ui/ct-rank-match.png");
}

.view-classify-train .ct-result-item-text {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.view-classify-train.classify-train--display-only .ct-shell {
  pointer-events: none;
}

.view-classify-train.classify-train--display-only .ct-debug-toolbar {
  pointer-events: auto;
}

.view-classify-train .ct-debug-toolbar {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 20;
  max-width: 640px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  color: #cfe8ff;
}

.view-classify-train .ct-debug-toolbar[hidden] {
  display: none !important;
}

.view-classify-train .ct-debug-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.view-classify-train .ct-debug-buttons button {
  font-size: 11px;
  padding: 2px 6px;
}
