/* ===== 九视角AI视觉识别过程 ===== */
.ngv-section {
  background: #060810;
  padding: 48px 16px;
  position: relative;
  overflow: hidden;
}
.ngv-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,83,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,83,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.ngv-header { text-align: center; margin-bottom: 24px; position: relative; }
.ngv-tag {
  display: inline-block;
  font-size: 10px; padding: 3px 12px;
  border: 1px solid rgba(0,200,83,0.2);
  border-radius: 20px; color: #00C853;
  background: rgba(0,200,83,0.05);
  letter-spacing: 0.1em; margin-bottom: 12px;
  font-family: monospace;
}
.ngv-title {
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 800; color: #fff;
  margin-bottom: 8px;
}
.ngv-subtitle {
  font-size: clamp(11px, 3vw, 14px);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.ngv-stage-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.ngv-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1280/289;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,200,83,0.1);
  box-shadow: 0 0 30px rgba(0,200,83,0.05);
}
@media (min-width: 768px) {
  .ngv-stage-wrap { max-width: 900px; }
  .ngv-stage { border-radius: 14px; }
}
.ngv-img-container {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  transform-origin: 5.56% 50%;
}
.ngv-img-container img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ngv-overlay {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}
.ngv-overlay.active { opacity: 1; }

/* Panel indicator (vertical lines separating 9 zones) */
.ngv-panel-marks {
  position: absolute; inset: 0;
  display: flex; z-index: 1;
  pointer-events: none;
}
.ngv-panel-mark {
  flex: 1;
  border-right: 1px dashed rgba(0,200,83,0.08);
}
.ngv-panel-mark:last-child { border-right: none; }
.ngv-panel-mark.active {
  border-right-color: rgba(0,200,83,0.4);
  background: rgba(0,200,83,0.03);
}

/* Scan line */
.ngv-scanline {
  position: absolute;
  left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00C853, transparent);
  box-shadow: 0 0 8px rgba(0,200,83,0.6);
  top: 10%;
  opacity: 0;
  z-index: 3;
}
.ngv-scanline.active {
  animation: ngv-scan 1s ease-in-out;
}
@keyframes ngv-scan {
  0% { top: 10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 80%; opacity: 0; }
}

/* SVG contour and markers */
.ngv-contour {
  fill: none;
  stroke: #00C853;
  stroke-width: 0.4;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  filter: drop-shadow(0 0 1px rgba(0,200,83,0.6));
}
.ngv-contour.drawn {
  animation: ngv-draw 0.8s ease-out forwards;
}
@keyframes ngv-draw {
  to { stroke-dashoffset: 0; }
}
.ngv-marker-head {
  fill: #00C853;
  filter: drop-shadow(0 0 3px rgba(0,200,83,0.8));
}
.ngv-marker-tail {
  fill: #2196F3;
  filter: drop-shadow(0 0 3px rgba(33,150,243,0.8));
}
.ngv-measure-line {
  stroke: #FFC107;
  stroke-width: 0.5;
  stroke-dasharray: 2,1;
}
.ngv-measure-text {
  fill: #FFC107;
  font-size: 4;
  font-family: monospace;
  text-anchor: middle;
}

/* HUD */
.ngv-hud {
  position: absolute;
  top: 8px; left: 8px; right: 8px;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ngv-hud-line {
  font-family: monospace;
  font-size: clamp(8px, 2.5vw, 11px);
  color: rgba(0,255,100,0.7);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.2s;
}
.ngv-hud-line.show { opacity: 1; }
.ngv-hud-line.fail { color: rgba(255,82,82,0.8); }
.ngv-hud-line .val { color: #fff; font-weight: 600; }

/* Bottom HUD data panel */
.ngv-data-panel {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  z-index: 4;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
}
.ngv-data-panel.show { opacity: 1; transform: translateY(0); }
.ngv-data-item {
  font-family: monospace;
  font-size: clamp(7px, 2vw, 10px);
  color: rgba(255,255,255,0.6);
}
.ngv-data-item .lbl { display: block; font-size: 7px; opacity: 0.5; }
.ngv-data-item .v { color: #00C853; font-weight: 600; font-size: clamp(9px, 2.5vw, 12px); }
.ngv-data-item.fail .v { color: #FF5252; }

/* Progress bar */
.ngv-progress-bar {
  margin-top: 12px;
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.ngv-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00C853, #00E676);
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 6px rgba(0,200,83,0.4);
}

/* Seed counter */
.ngv-counter {
  text-align: center;
  margin-top: 8px;
  font-family: monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}
.ngv-counter .cur { color: #00C853; font-weight: 600; }

/* Completion overlay */
.ngv-complete {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(6,8,16,0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.ngv-complete.show { opacity: 1; }
.ngv-complete-title {
  font-family: monospace;
  font-size: clamp(11px, 3vw, 15px);
  color: #00C853;
  margin-bottom: 12px;
  text-align: center;
}
.ngv-complete-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  max-width: 320px;
}
.ngv-complete-list li {
  font-family: monospace;
  font-size: clamp(8px, 2.2vw, 11px);
  color: rgba(255,255,255,0.7);
}
.ngv-complete-list li::before {
  content: '\2713 ';
  color: #00C853;
}

/* Corner decorations */
.ngv-corner {
  position: absolute;
  width: 12px; height: 12px;
  border-color: rgba(0,200,83,0.3);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
}
.ngv-corner.tl { top: 4px; left: 4px; border-width: 1px 0 0 1px; }
.ngv-corner.tr { top: 4px; right: 4px; border-width: 1px 1px 0 0; }
.ngv-corner.bl { bottom: 4px; left: 4px; border-width: 0 0 1px 1px; }
.ngv-corner.br { bottom: 4px; right: 4px; border-width: 0 1px 1px 0; }
