.section-bg,
.section-bg .section-bg-color,
.section-bg .section-bg-blur,
.section-bg .section-bg-image,
.section-bg .section-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.section-bg {
  z-index: -1;
  overflow: hidden;
}

.section-bg .section-bg-color {
  z-index: 1;
}

.section-bg .section-bg-blur {
  z-index: 2;
}

.section-bg .section-bg-image,
.section-bg .section-bg-video {
  z-index: 0;
  object-fit: cover;
  object-position: center center;
}

.section-bg.animate-fixed,
.section-bg.animate-zoom-in {
  clip-path: inset(0);
}
.section-bg.animate-fixed .section-bg-image {
  position: fixed;
  height: 100vh;
}

.section-bg.animate-surround .section-bg-image {
  animation: animateSurround 20s linear infinite;
}

@keyframes animateSurround {
  0% {
    transform: rotate(0) translate(1em) rotate(0) scale(1.2);
  }

  100% {
    transform: rotate(360deg) translate(1em) rotate(-360deg) scale(1.2);
  }
}

.section-bg.animate-zoom-in .section-bg-image {
  position: fixed;
  height: 100vh;
  transition: scale 0.1s linear;
  scale: var(--zoom-in-ratio);
}

.section-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-content-space-medium);
  width: 100%;
}
.section-container.container-full {
  padding-left: 24px;
  padding-right: 24px;
}
.section-container.full .section-header {
  padding-left: 24px;
  padding-right: 24px;
}


.section-container.large {
  gap: var(--section-content-space-large);
}

.section-container.small {
  gap: var(--section-content-space-small);
  font-size: inherit;
  font-weight: inherit;
}

.section-container.none {
  gap: var(--section-content-space-none);
}

.section-container.left {
  align-items: flex-start;
}

.section-container.left>.section-header>.section-desc {
  text-align: start;
}

.section-container.center {
  align-items: center;
}

.section-container.center>.section-header>.section-desc {
  text-align: center;
}

.section-container.right {
  align-items: flex-end;
}

.section-container.right>.section-header>.section-desc {
  text-align: end;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
}

.section-header:not(.between) {
  max-width: 760px;
}

.section-header.left {
  align-items: flex-start;
}
.section-header.left .section-title,
.section-header.left .section-subtitle,
.section-header.left .section-desc {
  text-align: start;
}

.section-header.right {
  align-items: flex-end;
}
.section-header.right .section-title,
.section-header.right .section-subtitle,
.section-header.right .section-desc {
  text-align: end;
}

.section-header.center .section-title,
.section-header.center .section-subtitle,
.section-header.center .section-desc {
  text-align: center;
}

.section-header.between {
  flex-direction: row;
  justify-content: space-between;
  gap: var(--grid-gap-medium);
  width: 100%;
}
.section-header.between .section-header-left {
  flex: 1;
}

.section-title+.section-desc {
  margin-top: 8px;
}

.section-container.center > .button-list {
  justify-content: center;
}

.section-container.left > .button-list {
  justify-content: flex-start;
}

.section-container.right > .button-list {
  justify-content: flex-end;
}

/* 入场动画 - Entrance Animations */
.section-container[class*="animate-entrance-"],
.section-container-half[class*="animate-entrance-"] {
  transition: all 0.8s cubic-bezier(.4, 0, .2, 1);
}

.section-container[class*="animate-entrance-"].animate-entrance-active,
.section-container-half[class*="animate-entrance-"].animate-entrance-active {
  opacity: 1;
}

/* 淡入 - Fade In */
.section-container.animate-entrance-fade-in,
.section-container-half.animate-entrance-fade-in {
  opacity: 0;
}

.section-container.animate-entrance-fade-in.animate-entrance-active,
.section-container-half.animate-entrance-fade-in.animate-entrance-active {
  opacity: 1;
}

/* 缩小入场 - Zoom Out (from large to normal) */
.section-container.animate-entrance-zoom-out,
.section-container-half.animate-entrance-zoom-out {
  opacity: 0;
  transform: scale(1.2);
}

.section-container.animate-entrance-zoom-out.animate-entrance-active,
.section-container-half.animate-entrance-zoom-out.animate-entrance-active {
  opacity: 1;
  transform: scale(1);
}

/* 放大入场 - Zoom In (from small to normal) */
.section-container.animate-entrance-zoom-in,
.section-container-half.animate-entrance-zoom-in {
  opacity: 0;
  transform: scale(0.8);
}

.section-container.animate-entrance-zoom-in.animate-entrance-active,
.section-container-half.animate-entrance-zoom-in.animate-entrance-active {
  opacity: 1;
  transform: scale(1);
}

/* 上滑入场 - Slide Up */
.section-container.animate-entrance-slide-up,
.section-container-half.animate-entrance-slide-up {
  opacity: 0;
  transform: translateY(60px);
}

.section-container.animate-entrance-slide-up.animate-entrance-active,
.section-container-half.animate-entrance-slide-up.animate-entrance-active {
  opacity: 1;
  transform: translateY(0);
}

/* 左滑入场 - Slide Left (from right to left) */
.section-container.animate-entrance-slide-left,
.section-container-half.animate-entrance-slide-left {
  opacity: 0;
  transform: translateX(60px);
}

.section-container.animate-entrance-slide-left.animate-entrance-active,
.section-container-half.animate-entrance-slide-left.animate-entrance-active {
  opacity: 1;
  transform: translateX(0);
}

/* 右滑入场 - Slide Right (from left to right) */
.section-container.animate-entrance-slide-right,
.section-container-half.animate-entrance-slide-right {
  opacity: 0;
  transform: translateX(-60px);
}

.section-container.animate-entrance-slide-right.animate-entrance-active,
.section-container-half.animate-entrance-slide-right.animate-entrance-active {
  opacity: 1;
  transform: translateX(0);
}

/* 组合动画 - 淡入+上滑 */
.section-container.animate-entrance-fade-slide-up,
.section-container-half.animate-entrance-fade-slide-up {
  opacity: 0;
  transform: translateY(40px);
}

.section-container.animate-entrance-fade-slide-up.animate-entrance-active,
.section-container-half.animate-entrance-fade-slide-up.animate-entrance-active {
  opacity: 1;
  transform: translateY(0);
}

/* 动画速度控制 - Animation Speed Control */
/* 快速 - Fast (0.4s) */
.section-container[class*="animate-entrance-"].speed-fast,
.section-container-half[class*="animate-entrance-"].speed-fast {
  transition-duration: 0.5s;
}

/* 中速 - Medium (0.8s, 默认) */
.section-container[class*="animate-entrance-"].speed-medium,
.section-container-half[class*="animate-entrance-"].speed-medium {
  transition-duration: 1s;
}

/* 慢速 - Slow (1.2s) */
.section-container[class*="animate-entrance-"].speed-slow,
.section-container-half[class*="animate-entrance-"].speed-slow {
  transition-duration: 1.5s;
}

@media (max-width: 767px) {
  .section-container.container-full,
  .section-container.full .section-header {
    padding-left: 15px;
    padding-right: 15px;
  }
  .section-header.between {
    flex-direction: column;
    align-items: flex-start;
  }
}