/* PC 岛式工作台：右侧作品区已有生成占位，隐藏左侧队列与底部状态条 */
@media (min-width: 768px) {
  body.wb-island-skin.stitch-app #mainCol > #wkGenCol > .wk-gen-queue,
  body.wb-island-skin.stitch-app #mainCol > #stBar {
    display: none !important;
  }
  body.wb-island-skin.stitch-app #wkTaskAside #tGrid.wk-rail-pending {
    display: none !important;
  }
}

/* 作品 Tab：生成中占位（1–8 张），PC 任务栏 #wkRailGal + 主栏 #galGrid */

.gal-cell.gal-gen-pending {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(217, 119, 87, 0.32);
  background: linear-gradient(145deg, #fbfaf7 0%, #f2ede3 48%, #fbfaf7 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.85) inset,
    0 4px 14px rgba(217, 119, 87, 0.12);
  cursor: default;
  pointer-events: none;
  animation: galGenPendingPulse 2.4s ease-in-out infinite;
  animation-delay: var(--gal-gen-delay, 0s);
}

.gal-cell.gal-gen-pending::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: galGenPendingShine 2.2s ease-in-out infinite;
  animation-delay: calc(var(--gal-gen-delay, 0s) + 0.15s);
  pointer-events: none;
}

.gal-gen-pending__aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(217, 119, 87, 0.26), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(224, 160, 100, 0.20), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(217, 119, 87, 0.10), transparent 60%);
  filter: blur(12px);
  animation: galGenPendingAurora 5s ease-in-out infinite alternate;
  animation-delay: var(--gal-gen-delay, 0s);
}

.gal-gen-pending__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(217, 119, 87, 0.05) 3px,
    rgba(217, 119, 87, 0.05) 4px
  );
  opacity: 0.7;
  pointer-events: none;
}

.gal-gen-pending__core {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.gal-gen-pending__ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(217, 119, 87, 0.18);
  border-top-color: #d97757;
  border-right-color: #e0a064;
  animation: galGenPendingSpin 0.9s linear infinite;
  box-shadow: 0 0 12px rgba(217, 119, 87, 0.25);
}

.gal-gen-pending__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #c5654a;
  text-transform: uppercase;
  opacity: 0.92;
}

.gal-gen-pending__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px 7px;
  background: linear-gradient(to top, rgba(43, 42, 39, 0.55), transparent);
  font-variant-numeric: tabular-nums;
}

.gal-gen-pending__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97757;
  box-shadow: 0 0 8px rgba(217, 119, 87, 0.75);
  animation: galGenPendingDot 1.2s ease-in-out infinite;
}

.gal-gen-pending__sec {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@keyframes galGenPendingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes galGenPendingShine {
  0% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes galGenPendingAurora {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.08) rotate(8deg);
    opacity: 1;
  }
}

@keyframes galGenPendingPulse {
  0%,
  100% {
    border-color: rgba(217, 119, 87, 0.28);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.85) inset,
      0 4px 12px rgba(217, 119, 87, 0.1);
  }
  50% {
    border-color: rgba(224, 160, 100, 0.5);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.9) inset,
      0 6px 18px rgba(217, 119, 87, 0.2);
  }
}

@keyframes galGenPendingDot {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gal-cell.gal-gen-pending,
  .gal-cell.gal-gen-pending::after,
  .gal-gen-pending__aurora,
  .gal-gen-pending__ring,
  .gal-gen-pending__dot {
    animation: none !important;
  }
}
