@import url("../pingfangfont/index.css");

body {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5 {
  margin: 0;
}
p {
  margin: 0;
}

* {
  box-sizing: border-box;
}
:where(.wp-site-blocks) > * {
  margin-block-start: 0;
}

.pingfang-100 {
  font-family: "PingFangSC-Ultralight";
  font-weight: 100;
}
.pingfang-200 {
  font-family: "PingFangSC-Thin";
  font-weight: 200;
}
.pingfang-300 {
  font-family: "PingFangSC-Light";
  font-weight: 300;
}
.pingfang-400 {
  font-family: "PingFangSC-Regular";
  font-weight: 400;
}
.pingfang-500 {
  font-family: "PingFangSC-Medium";
  font-weight: 500;
}
.pingfang-600 {
  font-family: "PingFangSC-Semibold";
  font-weight: 600;
}

/* 自定义的动画 */
.anim-item {
  opacity: 0;
  /* 预留过渡，防止闪烁 */
  transition: opacity 0.3s ease;
}

/* 定义渐入动画 */
@keyframes fadeIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* 应用渐入动画到元素 */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* 淡入 */
@keyframes fade {
  to {
    opacity: 1;
  }
}
.animate-fade {
  animation: fade 0.8s ease-out forwards;
}

/* 向上滑入 */
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.animate-slide {
  animation: slideUp 0.8s ease-out forwards;
}

/* 缩放 */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.animate-zoom {
  animation: zoomIn 0.8s ease-out forwards;
}
/* 缩放-little */
@keyframes zoomInLittle {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.animate-zoom-little {
  animation: zoomInLittle 0.3s ease-out forwards;
}

/* 从右往左滑入 + 轻微缩放 + 初始透明度为 0，滑入后渐显+复原大小 */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(36px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.animate-from-right {
  animation: slideInFromRight 0.8s ease-out forwards;
}

@keyframes fadeInFromRight {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-from-right {
  animation: fadeInFromRight 0.8s ease-out forwards;
}
