/* 积木页面动画：与后台 block.animation.enter 对应 */
.yh-block {
  opacity: 0;
  animation-fill-mode: forwards;
}

.yh-block.yh-anim-none {
  opacity: 1;
  animation: none;
}

.yh-block.yh-anim-fadeIn {
  animation-name: yhFadeIn;
}

.yh-block.yh-anim-slideUp {
  animation-name: yhSlideUp;
}

.yh-block.yh-anim-slideLeft {
  animation-name: yhSlideLeft;
}

.yh-block.yh-anim-zoomIn {
  animation-name: yhZoomIn;
}

@keyframes yhFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes yhSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes yhSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes yhZoomIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dynamic-page {
  min-height: 60vh;
  padding: 24px 16px 48px;
  max-width: 960px;
  margin: 0 auto;
  color: #1a1a2e;
  line-height: 1.6;
}

.dynamic-page .html-content :deep(img) {
  max-width: 100%;
  height: auto;
}

.builder-section {
  margin-bottom: 24px;
}

.builder-heading {
  margin: 0 0 12px;
  font-weight: 700;
}

.builder-text {
  margin: 0 0 16px;
  white-space: pre-wrap;
}

.builder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.builder-links a {
  color: #409eff;
  text-decoration: none;
}

.builder-links a:hover {
  text-decoration: underline;
}

.builder-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 8px 8px 8px 0;
}

.builder-btn--primary {
  background: linear-gradient(135deg, #00d4ff, #ff6b9d);
  color: #0a0a12;
}

.builder-btn--ghost {
  border: 1px solid #409eff;
  color: #409eff;
  background: transparent;
}
