/* GB 45438-2025 National AI Content Labeling & Assembled/Exploded Real-Render Compare Viewer */

/* 1. National Compliance Badges (Explicit Visible Marking) */
.aigc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  background: rgba(10, 17, 30, 0.84);
  color: #f1f5f9;
  border: 1px solid rgba(56, 189, 248, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.aigc-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  flex: none;
}
.aigc-badge.is-real {
  background: rgba(6, 78, 59, 0.88);
  border-color: rgba(52, 211, 153, 0.55);
  color: #ecfdf5;
}
.aigc-badge.is-real i {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
.aigc-badge-light {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* Global Footer GB 45438-2025 Disclosure Bar */
.aigc-footer-bar {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(15, 23, 42, 0.04));
  border: 1px solid rgba(14, 165, 233, 0.24);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.aigc-footer-bar strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #0f172a;
}
.aigc-footer-bar p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: #475569;
  max-width: 980px;
}
.aigc-footer-bar.is-dark {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(56, 189, 248, 0.3);
}
.aigc-footer-bar.is-dark strong {
  color: #f8fafc;
}
.aigc-footer-bar.is-dark p {
  color: #94a3b8;
}

/* 2. Interactive Assembled / Exploded / Compare Stage Overlay */
.aigc-real-stage {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 45%, #192231 0%, #090d14 78%);
  padding: 68px 24px 26px;
  overflow: hidden;
}
.aigc-real-stage[hidden],
.aigc-compare-top[hidden],
.aigc-compare-divider[hidden],
.aigc-compare-handle[hidden],
.aigc-compare-range[hidden],
.aigc-corner-tag[hidden] {
  display: none !important;
}
.pcb-stage[data-real-view]:not([data-real-view="3d"]) #pcb-inspector,
.pcb-stage[data-real-view]:not([data-real-view="3d"]) .pcb-dock,
.pcb-stage[data-real-view]:not([data-real-view="3d"]) #pcb-telemetry,
.cluster-stage[data-real-view]:not([data-real-view="3d"]) #cluster-inspector,
.cluster-stage[data-real-view]:not([data-real-view="3d"]) .cluster-dock,
.cluster-stage[data-real-view]:not([data-real-view="3d"]) .cluster-cam-strip,
.cluster-stage[data-real-view]:not([data-real-view="3d"]) #cluster-telemetry {
  opacity: 0;
  pointer-events: none;
}
.aigc-real-stage.is-side-padded {
  padding: 72px 320px 84px;
}
.aigc-real-frame {
  position: relative;
  width: 100%;
  max-width: 1120px;
  aspect-ratio: 16 / 9;
  max-height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.68);
  background: #0b1019;
  user-select: none;
  -webkit-user-select: none;
}
.aigc-real-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.aigc-compare-top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  pointer-events: none;
}
.aigc-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
  transform: translateX(-1px);
  z-index: 5;
  pointer-events: none;
}
.aigc-compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.92);
  border: 2px solid #38bdf8;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  z-index: 6;
  cursor: ew-resize;
}
.aigc-compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 7;
}
.aigc-corner-tag {
  position: absolute;
  top: 14px;
  z-index: 8;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(10, 16, 28, 0.82);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.aigc-corner-tag.is-left {
  left: 14px;
}
.aigc-corner-tag.is-right {
  right: 14px;
  border-color: rgba(56, 189, 248, 0.5);
  color: #7dd3fc;
}

.aigc-real-caption {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 15px;
  border-radius: 12px;
  background: rgba(11, 17, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  color: #f8fafc;
  width: 100%;
  max-width: 1120px;
}
.aigc-real-caption-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.aigc-real-caption-meta strong {
  font-size: 13px;
  white-space: nowrap;
}
.aigc-real-caption-meta p {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aigc-real-caption-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.aigc-real-caption-actions button {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(148, 163, 184, 0.14);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.aigc-real-caption-actions button.is-active,
.aigc-real-caption-actions button:hover {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #04101a;
}

/* 3. Below-the-Fold Dual Assembled/Exploded Showcase Pair Cards */
.aigc-dual-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.aigc-dual-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #0f172a;
}
.aigc-dual-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.aigc-dual-card figcaption {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 12px;
}
.aigc-dual-card figcaption small {
  color: #94a3b8;
  font-size: 11px;
}

@media (max-width: 1360px) {
  .aigc-real-stage.is-side-padded {
    padding: 114px 282px 84px;
  }
}
@media (max-width: 1024px) {
  .aigc-real-stage.is-side-padded {
    padding: 74px 14px 76px;
  }
  .aigc-dual-gallery {
    grid-template-columns: 1fr;
  }
  .aigc-real-caption {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 4. Global Fast (流畅模式) ⇄ HD (高清模式) Quality Switcher */
.quality-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.35);
  flex: none;
  white-space: nowrap;
}
.quality-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 7px;
  border-radius: 7px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.quality-switch button:hover {
  color: #0f172a;
}
.quality-switch button.is-active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.28);
}
.quality-switch button[data-quality-mode="hd"].is-active {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.34);
}
.quality-switch.is-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
.quality-switch.is-dark button {
  color: #cbd5e1;
  padding: 4px 7px;
}
.quality-switch.is-dark button:hover {
  color: #ffffff;
}
.quality-switch.is-dark button[data-quality-mode="fast"].is-active {
  background: #2ed3b7;
  color: #04101a;
  box-shadow: 0 2px 10px rgba(46, 211, 183, 0.34);
}
.auto-lab-page.is-light-stage .quality-switch.is-dark {
  background: rgba(15, 23, 42, 0.07);
  border-color: rgba(15, 23, 42, 0.18);
}
.auto-lab-page.is-light-stage .quality-switch.is-dark button {
  color: #475569;
}
.quality-toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(11, 17, 29, 0.94);
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.quality-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}
