/* 绘城智算 Progressive Render Visual V4 */

#resultBox .zhj-gen-wait.hc-pr-host-v4 {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  min-height: 780px !important;
  height: auto !important;
  padding: 22px !important;
  overflow: hidden !important;
}

#resultBox .zhj-gen-wait.hc-pr-host-v4 > .zhj-gen-core {
  flex: 0 0 auto !important;
  width: min(430px, 88%) !important;
  margin: 0 auto !important;
}

.hc-progressive-render {
  --hc-accent: #67e8f9;
  width: 100%;
  min-height: 430px;
  flex: 1 1 auto;
  color: #eef8ff;
}

.hc-progressive-render[hidden] {
  display: none !important;
}

.hc-pr-shell {
  width: 100%;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 0%, rgba(59, 130, 246, .18), transparent 34%),
    linear-gradient(145deg, rgba(7, 18, 40, .98), rgba(3, 8, 21, .99));
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

.hc-pr-workspace {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 176px;
  min-height: 355px;
}

.hc-pr-pass-rail,
.hc-pr-inspector {
  padding: 12px;
  background: rgba(2, 10, 24, .67);
}

.hc-pr-pass-rail {
  border-right: 1px solid rgba(103, 232, 249, .1);
}

.hc-pr-inspector {
  border-left: 1px solid rgba(103, 232, 249, .1);
}

.hc-pr-side-title {
  margin-bottom: 10px;
  color: rgba(190, 232, 255, .54);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hc-pr-pass-list,
.hc-pr-inspector-stack {
  display: grid;
  gap: 8px;
}

.hc-pr-pass,
.hc-pr-inspector-card,
.hc-pr-frame-step {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, .1);
  border-radius: 11px;
  background: rgba(8, 22, 45, .74);
}

.hc-pr-pass {
  min-height: 56px;
  opacity: .36;
  transition:
    opacity .35s ease,
    border-color .35s ease,
    transform .35s ease,
    box-shadow .35s ease;
}

.hc-pr-pass.is-done {
  opacity: .7;
}

.hc-pr-pass.is-active {
  border-color: rgba(103, 232, 249, .82);
  opacity: 1;
  transform: translateX(3px);
  box-shadow: 0 0 20px rgba(34, 211, 238, .18);
}

.hc-pr-pass img,
.hc-pr-mini img,
.hc-pr-frame-step img,
.hc-pr-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-pr-pass::after,
.hc-pr-frame-step::after {
  position: absolute;
  inset: auto 0 0;
  padding: 15px 5px 5px;
  background: linear-gradient(transparent, rgba(0, 7, 19, .95));
  color: rgba(237, 250, 255, .86);
  content: attr(data-label);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.hc-pr-main {
  position: relative;
  min-width: 0;
  min-height: 355px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(9, 24, 50, .96), rgba(3, 8, 20, .99));
}

.hc-pr-main-image.is-source {
  z-index: 1;
  object-fit: contain;
  opacity: .72;
  transform: scale(1.03);
  transition:
    filter 1.3s ease,
    opacity 1s ease,
    transform 1.3s ease;
}

.hc-pr-main-image.is-final {
  z-index: 2;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease;
}

.hc-progressive-render[data-stage="concept"] .hc-pr-main-image.is-source {
  filter: grayscale(1) contrast(1.8) brightness(.52) blur(12px);
  opacity: .4;
  transform: scale(1.08);
}

.hc-progressive-render[data-stage="spatial"] .hc-pr-main-image.is-source {
  filter: grayscale(.86) contrast(1.5) brightness(.64) blur(8px);
  opacity: .52;
  transform: scale(1.065);
}

.hc-progressive-render[data-stage="material"] .hc-pr-main-image.is-source {
  filter: grayscale(.24) saturate(.72) contrast(1.24) brightness(.73) blur(5px);
  opacity: .64;
  transform: scale(1.05);
}

.hc-progressive-render[data-stage="lighting"] .hc-pr-main-image.is-source {
  filter: saturate(.92) contrast(1.17) brightness(.8) blur(3px);
  opacity: .72;
  transform: scale(1.04);
}

.hc-progressive-render[data-stage="denoise"] .hc-pr-main-image.is-source,
.hc-progressive-render[data-stage="review"] .hc-pr-main-image.is-source {
  filter: saturate(.99) contrast(1.08) brightness(.88) blur(1.4px);
  opacity: .82;
  transform: scale(1.02);
}

.hc-progressive-render[data-stage="final"] .hc-pr-main-image.is-source {
  opacity: 0;
}

.hc-progressive-render[data-stage="final"] .hc-pr-main-image.is-final {
  opacity: 1;
}

.hc-pr-grid,
.hc-pr-noise,
.hc-pr-scan,
.hc-pr-light,
.hc-pr-vignette,
.hc-pr-main-badge,
.hc-pr-caption {
  pointer-events: none;
  position: absolute;
}

.hc-pr-grid {
  z-index: 3;
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(rgba(103, 232, 249, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, .08) 1px, transparent 1px);
  background-size: 38px 38px;
}

.hc-pr-noise {
  z-index: 4;
  inset: -16%;
  opacity: .5;
  background:
    repeating-radial-gradient(
      circle at 17% 32%,
      rgba(255, 255, 255, .34) 0 1px,
      transparent 1px 5px
    );
  mix-blend-mode: soft-light;
  animation: hc-pr-noise-shift .34s steps(2) infinite;
  transition: opacity 1s ease;
}

.hc-progressive-render[data-stage="spatial"] .hc-pr-noise { opacity: .42; }
.hc-progressive-render[data-stage="material"] .hc-pr-noise { opacity: .3; }
.hc-progressive-render[data-stage="lighting"] .hc-pr-noise { opacity: .19; }
.hc-progressive-render[data-stage="denoise"] .hc-pr-noise { opacity: .08; }
.hc-progressive-render[data-stage="review"] .hc-pr-noise { opacity: .035; }
.hc-progressive-render[data-stage="final"] .hc-pr-noise,
.hc-progressive-render[data-stage="failed"] .hc-pr-noise { opacity: 0; }

.hc-pr-scan {
  z-index: 5;
  left: 0;
  right: 0;
  top: -26%;
  height: 26%;
  opacity: .66;
  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(103, 232, 249, .05) 50%,
      rgba(103, 232, 249, .72) 97%,
      transparent
    );
  animation: hc-pr-scan 3s linear infinite;
}

.hc-progressive-render[data-stage="final"] .hc-pr-scan,
.hc-progressive-render[data-stage="failed"] .hc-pr-scan {
  display: none;
}

.hc-pr-light {
  z-index: 3;
  inset: 0;
  opacity: .34;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 231, 176, .18), transparent 36%),
    radial-gradient(circle at 22% 78%, rgba(73, 168, 255, .12), transparent 42%);
}

.hc-pr-vignette {
  z-index: 6;
  inset: 0;
  box-shadow:
    inset 0 0 100px rgba(0, 0, 0, .68),
    inset 0 -80px 100px rgba(1, 5, 15, .65);
}

.hc-pr-main-badge {
  z-index: 8;
  top: 13px;
  left: 13px;
  padding: 7px 10px;
  border: 1px solid rgba(103, 232, 249, .24);
  border-radius: 999px;
  background: rgba(4, 15, 33, .74);
  color: rgba(234, 250, 255, .92);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hc-pr-main-badge::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--hc-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--hc-accent) 90%, transparent);
  content: "";
  vertical-align: -1px;
  animation: hc-pr-pulse 1.2s ease-in-out infinite;
}

.hc-pr-caption {
  z-index: 8;
  right: 13px;
  bottom: 13px;
  left: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.hc-pr-caption-copy {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(103, 232, 249, .2);
  border-radius: 12px;
  background: rgba(3, 12, 28, .74);
  backdrop-filter: blur(12px);
}

.hc-pr-stage-name {
  color: #f1fbff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hc-pr-stage-message {
  margin-top: 4px;
  color: rgba(219, 243, 255, .62);
  font-size: 9px;
}

.hc-pr-stage-percent {
  flex: 0 0 auto;
  color: var(--hc-accent);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
}

.hc-pr-inspector-card-title {
  padding: 7px 8px 6px;
  color: rgba(206, 239, 255, .7);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hc-pr-mini {
  position: relative;
  min-height: 76px;
  overflow: hidden;
  background: #081329;
}

.hc-pr-mini img {
  opacity: .7;
}

.hc-pr-mini.is-geometry img {
  filter: grayscale(1) contrast(2) brightness(.58);
}

.hc-pr-mini.is-geometry::after {
  position: absolute;
  inset: 0;
  opacity: .43;
  background-image:
    linear-gradient(rgba(93, 226, 255, .28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 226, 255, .28) 1px, transparent 1px);
  background-size: 16px 16px;
  content: "";
  mix-blend-mode: screen;
}

.hc-pr-mini.is-material img {
  filter: saturate(1.5) contrast(1.2) brightness(.74);
}

.hc-pr-mini.is-lighting {
  background:
    radial-gradient(circle at 68% 24%, rgba(255, 225, 160, .9), transparent 20%),
    radial-gradient(circle at 28% 75%, rgba(75, 173, 255, .58), transparent 33%),
    linear-gradient(135deg, #0d1830, #050914);
}

.hc-pr-filmstrip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(103, 232, 249, .1);
  background: rgba(2, 9, 22, .8);
}

.hc-pr-frame-step {
  min-height: 56px;
  opacity: .32;
  transition:
    opacity .35s ease,
    border-color .35s ease,
    transform .35s ease,
    box-shadow .35s ease;
}

.hc-pr-frame-step.is-done {
  opacity: .68;
}

.hc-pr-frame-step.is-active {
  border-color: rgba(103, 232, 249, .82);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(34, 211, 238, .16);
}

.hc-progressive-render[data-stage="failed"] {
  --hc-accent: #fb7185;
}

.hc-progressive-render[data-stage="failed"] .hc-pr-shell {
  border-color: rgba(251, 113, 133, .42);
}

.hc-progressive-render[data-stage="failed"] .hc-pr-main-image {
  filter: grayscale(.55) contrast(1.08) brightness(.52) blur(2px);
  opacity: .42;
}

@keyframes hc-pr-noise-shift {
  0% { transform: translate3d(-2%, -1%, 0); }
  50% { transform: translate3d(2%, 1.5%, 0); }
  100% { transform: translate3d(-1%, 2%, 0); }
}

@keyframes hc-pr-scan {
  from { transform: translateY(0); }
  to { transform: translateY(485%); }
}

@keyframes hc-pr-pulse {
  0%, 100% { opacity: .42; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 900px) {
  .hc-pr-workspace {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .hc-pr-inspector {
    display: none;
  }
}

@media (max-width: 680px) {
  #resultBox .zhj-gen-wait.hc-pr-host-v4 {
    min-height: 720px !important;
    padding: 12px !important;
  }

  .hc-pr-workspace {
    display: block;
  }

  .hc-pr-pass-rail {
    border-right: 0;
    border-bottom: 1px solid rgba(103, 232, 249, .1);
  }

  .hc-pr-side-title {
    display: none;
  }

  .hc-pr-pass-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .hc-pr-main {
    min-height: 285px;
  }

  .hc-pr-filmstrip {
    grid-template-columns: repeat(3, 1fr);
  }
}
