/* AI 创作列表：瀑布流（对齐 web Vue SceneList 双列高度贪婪，桌面多列） */
.hg-ai-creation-page .hg-ai-waterfall {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 20px;
  width: 100%;
}

.hg-ai-waterfall__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hg-ai-scene-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.hg-ai-scene-card:hover {
  border-color: var(--color-primary, #ffd21c);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.hg-ai-scene-card:active {
  transform: scale(0.98);
}

.hg-ai-scene-card__cover {
  position: relative;
  width: 100%;
  background: #2a2438;
  overflow: hidden;
}

.hg-ai-scene-card__cover.is-empty {
  min-height: 160px;
}

.hg-ai-scene-card__cover img,
.hg-ai-scene-card__cover video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hg-ai-scene-card__cover img.is-loaded,
.hg-ai-scene-card__cover video.is-loaded {
  opacity: 1;
}

.hg-ai-scene-card__shimmer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) 25%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.08) 75%
  );
  background-size: 200% 100%;
  animation: hg-ai-shimmer 1.2s infinite;
}

.hg-ai-scene-card__title {
  margin: 0;
  padding: 10px 8px 12px;
  color: var(--text-1, #fff);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  word-break: break-word;
}

@keyframes hg-ai-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
  .hg-ai-creation-page .hg-ai-waterfall {
    gap: 12px;
    margin-top: 14px;
  }
  .hg-ai-waterfall__col {
    gap: 12px;
  }
  .hg-ai-scene-card {
    border-radius: 10px;
  }
  .hg-ai-scene-card__title {
    font-size: 13px;
    padding: 8px 6px 10px;
  }
}

/* 无 JS 时：CSS 多列兜底，仍呈瀑布感 */
.hg-ai-waterfall:not([data-wf-ready="1"]) {
  display: block;
  column-count: 4;
  column-gap: 16px;
}
.hg-ai-waterfall:not([data-wf-ready="1"]) .hg-ai-scene-card {
  break-inside: avoid;
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .hg-ai-waterfall:not([data-wf-ready="1"]) { column-count: 3; }
}
@media (max-width: 768px) {
  .hg-ai-waterfall:not([data-wf-ready="1"]) {
    column-count: 2;
    column-gap: 12px;
  }
  .hg-ai-waterfall:not([data-wf-ready="1"]) .hg-ai-scene-card {
    margin-bottom: 12px;
  }
}
