/* 分类模型训练 — 1024×720，布局对齐单模型 */

.app > .view.view-classify-train:not([hidden]) {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  flex: none;
  display: block;
  overflow: hidden;
}

.view-classify-train {
  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;
  --ct-gradient: linear-gradient(270deg, #bfe6fc 0%, #5197f1 100%);
  --ct-slider-pct: 100%;
}

.ct-row--head {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 102px;
  pointer-events: none;
}

.ct-title-img {
  position: absolute;
  left: 50%;
  top: 47px;
  width: 244px;
  height: 55px;
  margin-left: -122px;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ct-reset-btn {
  position: absolute;
  right: 71px;
  top: 30px;
  width: 164px;
  height: 71px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: url("../img/classify-train/ui/jiqi-fenlei-reset.png") no-repeat center / 164px 71px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 400;
  font-family: inherit;
  line-height: 71px;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.ct-reset-btn[hidden] {
  display: none !important;
}

.ct-reset-btn:hover {
  filter: brightness(1.08);
}

.ct-row--tip {
  position: absolute;
  left: 39px;
  top: 116px;
  width: 948px;
  height: 67px;
  box-sizing: border-box;
  background: url("../img/single-train/ui/st-tip-bg.png") no-repeat center / 948px 67px;
  display: flex;
  align-items: center;
  padding: 0 24px 0 22px;
}

.ct-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;
}

.ct-tip-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.35;
  color: #ffffff;
}

.ct-row--main {
  position: absolute;
  left: 39px;
  top: 197px;
  width: 948px;
  height: 503px;
  display: block;
  font-size: 0;
  line-height: 0;
}

.ct-left-panel {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 648px;
  height: 503px;
  box-sizing: border-box;
  background: url("../img/single-train/ui/st-left-panel.png") no-repeat center / 648px 503px;
  overflow: hidden;
  font-size: 16px;
}

.ct-right-panel {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 286px;
  height: 503px;
  margin-left: 14px;
  box-sizing: border-box;
  background: url("../img/single-train/ui/st-right-panel.png") no-repeat center / 286px 503px;
  overflow: hidden;
  z-index: 2;
  font-size: 16px;
}

/* —— 左侧：多库 Tab + 照片 + 滑动条 —— */
.ct-left-lib {
  position: absolute;
  left: 0;
  top: 0;
  width: 648px;
  height: 503px;
  z-index: 1;
}

.ct-left-lib[hidden] {
  display: none !important;
}

.ct-lib-tabs {
  position: absolute;
  left: 24px;
  top: 20px;
  width: 600px;
  height: 44px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  font-size: 0;
  line-height: 0;
}

.ct-lib-tabs::-webkit-scrollbar {
  display: none;
}

.ct-lib-tab {
  display: inline-block;
  vertical-align: top;
  width: 158px;
  height: 44px;
  padding: 0;
  margin: 0 10px 0 0;
  border: none;
  box-sizing: border-box;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  background: url("../img/classify-train/ui/jiqi-fenlei-tab-off.png") no-repeat center / 158px 44px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  line-height: 44px;
}

.ct-lib-tab.is-enabled.is-active {
  background-image: url("../img/classify-train/ui/jiqi-fenlei-tab-on.png");
}

.ct-lib-tab:not(.is-enabled) {
  opacity: 0.4;
  pointer-events: none;
}

.ct-lib-tab-text {
  display: inline-block;
  vertical-align: middle;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: #5197f1;
  background: var(--ct-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

@supports (-webkit-background-clip: text) {
  .ct-lib-tab-text {
    -webkit-text-fill-color: transparent;
  }
}

.ct-photo-grid {
  position: absolute;
  left: 24px;
  top: 78px;
  width: 600px;
  height: 349px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 200, 255, 0.55) transparent;
  z-index: 1;
  font-size: 0;
  box-sizing: border-box;
  padding-bottom: 4px;
}

.ct-photo-grid::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

.ct-photo-grid::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.ct-photo-grid::-webkit-scrollbar-track {
  background: transparent;
}

.ct-photo-grid::-webkit-scrollbar-thumb {
  background: rgba(120, 200, 255, 0.55);
  border-radius: 1px;
}

.ct-photo-item {
  display: inline-block;
  vertical-align: top;
  width: 128px;
  height: 129px;
  padding: 0;
  margin: 0 26px 10px 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 12, 32, 0.6);
  cursor: pointer;
  line-height: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.ct-photo-item:nth-child(4n) {
  margin-right: 0;
}

.ct-photo-item.is-selected {
  border-color: #00ffff;
}

.ct-photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ct-slider-wrap {
  position: absolute;
  left: 0;
  top: 427px;
  width: 648px;
  height: 76px;
  box-sizing: border-box;
  background: url("../img/single-train/ui/st-slider-bg.png") no-repeat center / 648px 76px;
  padding: 8px 32px 0;
  z-index: 2;
}

.ct-slider-label {
  margin: 0 0 3px;
  font-size: 20px;
  font-weight: 400;
  line-height: 20px;
  color: #ffffff;
}

.ct-slider-bar {
  position: relative;
  width: 100%;
  height: 24px;
}

.ct-slider-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    #1365ff 0%,
    #1365ff var(--ct-slider-pct, 100%),
    #051c47 var(--ct-slider-pct, 100%),
    #051c47 100%
  );
  pointer-events: none;
}

.ct-count-slider {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.ct-count-slider:focus {
  outline: none;
}

.ct-count-slider::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
  border: none;
}

.ct-count-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.ct-count-slider::-moz-range-track {
  height: 8px;
  background: transparent;
  border: none;
}

.ct-count-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

/* —— 右侧：各步骤 —— */
.ct-right-state {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.ct-right-state[hidden] {
  display: none !important;
}

.ct-right-config {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  padding: 0;
}

.ct-dataset-label {
  flex-shrink: 0;
  margin: 51px 0 29px 27px;
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
}

.ct-lib-checklist-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 200, 255, 0.55) transparent;
  margin: 0 0 0 27px;
  padding-right: 4px;
  box-sizing: border-box;
}

.ct-lib-checklist-scroll::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

.ct-lib-checklist-scroll::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.ct-lib-checklist-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.ct-lib-checklist-scroll::-webkit-scrollbar-thumb {
  background: rgba(120, 200, 255, 0.55);
  border-radius: 1px;
}

.ct-lib-checklist {
  width: 233px;
  font-size: 0;
}

.ct-lib-check-item {
  display: block;
  width: 233px;
  height: 64px;
  padding: 0 16px;
  margin: 0 0 24px;
  border: none;
  background: url("../img/classify-train/ui/jiqi-fenlei-list-off.png") no-repeat center / 233px 64px;
  color: #ffffff;
  font-size: 22px;
  font-family: inherit;
  line-height: 64px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.ct-lib-check-item:last-child {
  margin-bottom: 0;
}

.ct-lib-check-item.is-selected {
  background-image: url("../img/classify-train/ui/jiqi-fenlei-list-on.png");
}

.ct-action-btn {
  flex-shrink: 0;
  width: 233px;
  height: 90px;
  padding: 0 0 0 105px;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 233px 90px;
  cursor: pointer;
  font-family: inherit;
  font-size: 26px;
  font-weight: 500;
  color: #ffffff;
  text-align: left;
  box-sizing: border-box;
}

.ct-action-btn--train {
  display: block;
  margin: 16px auto 51px;
  background-image: url("../img/single-train/ui/st-train-btn.png");
}

.ct-action-btn--recognize {
  display: block;
  margin: 16px auto 0;
  background-image: url("../img/single-train/ui/st-recognize-btn.png");
}

.ct-action-btn--train:disabled,
.ct-action-btn--recognize:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ct-right-busy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 175px;
  text-align: center;
  pointer-events: none;
}

.ct-right-busy-img {
  display: block;
  width: 165px;
  height: 152px;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ct-right-trained-wrap {
  padding-top: 32px;
  text-align: center;
  font-size: 26px;
  line-height: 1.35;
}

.ct-right-trained-img {
  display: block;
  width: 200px;
  height: auto;
  max-height: 140px;
  margin: 0 auto 0;
  object-fit: contain;
  pointer-events: none;
}

.ct-right-trained-img.is-sample {
  width: 122px;
  height: 122px;
  max-height: 122px;
  margin-top: 8px;
  object-fit: cover;
  border-radius: 4px;
}

.ct-sample-select {
  position: relative;
  display: block;
  margin: 16px 0 0 27px;
  width: 233px;
  z-index: 5;
  font-size: 22px;
  line-height: 1.35;
}

.ct-sample-select.is-open {
  z-index: 30;
}

.ct-sample-trigger {
  position: relative;
  display: block;
  width: 233px;
  height: 64px;
  padding: 0 44px 0 16px;
  margin: 0;
  border: none;
  background: url("../img/classify-train/ui/jiqi-fenlei-list-off.png") no-repeat center / 233px 64px;
  color: #ffffff;
  font-size: 22px;
  font-family: inherit;
  line-height: 64px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.ct-sample-trigger.is-placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.ct-sample-arrow {
  position: absolute;
  right: 11px;
  top: 23px;
  width: 29px;
  height: 18px;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.ct-sample-select.is-open .ct-sample-arrow {
  transform: rotate(180deg);
}

.ct-sample-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 68px;
  z-index: 40;
  width: 233px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  border-radius: 8px;
  background: rgba(6, 28, 72, 0.98);
  border: 1px solid rgba(126, 200, 251, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.ct-sample-select.is-open .ct-sample-menu {
  display: block;
}

.ct-sample-menu li {
  display: block;
  padding: 10px 16px;
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  color: #ffffff;
  cursor: pointer;
}

.ct-sample-menu li + li {
  margin-top: 4px;
}

.ct-sample-menu li:hover,
.ct-sample-menu li.is-active {
  background: rgba(0, 120, 220, 0.35);
}

/* —— 识别结果排行 —— */
.ct-right-result-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
}

.ct-sample-preview {
  display: block;
  width: 122px;
  height: 122px;
  margin: 52px auto 0;
  object-fit: cover;
  border-radius: 4px;
  pointer-events: none;
}

.ct-result-label {
  margin: 10px 0 28px;
  font-size: 20px;
  font-weight: 400;
  line-height: 20px;
  color: #ffffff;
}

.ct-result-list-scroll {
  position: absolute;
  left: 50%;
  width: 237px;
  margin-left: -118px;
  top: 240px;
  bottom: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 200, 255, 0.55) transparent;
  padding: 0 4px 0 0;
  box-sizing: border-box;
}

.ct-result-list-scroll::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

.ct-result-list-scroll::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.ct-result-list-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.ct-result-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(120, 200, 255, 0.55);
  border-radius: 1px;
}

.ct-result-list {
  width: 233px;
  margin: 0 auto;
  font-size: 0;
}

.ct-result-item {
  display: block;
  width: 233px;
  height: 64px;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 0 12px;
  background: url("../img/classify-train/ui/jiqi-fenlei-list-off.png") no-repeat center / 233px 64px;
  text-align: center;
  line-height: 64px;
}

.ct-result-item:last-child {
  margin-bottom: 0;
}

.ct-result-item.is-match {
  background-image: url("../img/classify-train/ui/jiqi-fenlei-list-on.png");
}

.ct-result-item-text {
  display: inline-block;
  vertical-align: middle;
  font-size: 17px;
  font-weight: 400;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}
