/* 新增动画CSS */
    
/* 滚动动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* 悬停动画 */
.grid-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* 按钮动画 */
.landing-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.landing-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease;
}

.landing-button:hover::after {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
}

/* 时间轴动画增强 - 添加上滑淡出效果 */
.timeline-item {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 左侧时间轴项目 - 从左侧进入 */
.timeline-item.left {
  transform: translateX(-50px);
}

/* 右侧时间轴项目 - 从右侧进入 */
.timeline-item.right {
  transform: translateX(50px);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 代码编辑器动画 */
.code-editor {
  transition: transform 0.5s ease;
}

.code-editor:hover {
  transform: translateY(-5px);
}

/* 通知公告动画 - 添加上滑淡出效果 */
.minecraft-sign {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.minecraft-sign.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 为不同的公告牌添加不同的延迟效果 */
.sign-1 { transition-delay: 0.1s; }
.sign-2 { transition-delay: 0.2s; }
.sign-3 { transition-delay: 0.3s; }
.sign-4 { transition-delay: 0.4s; }
.sign-5 { transition-delay: 0.5s; }
.sign-6 { transition-delay: 0.6s; }

/* 进度条动画 */
.progress-bar {
  height: 4px;
  background: linear-gradient(to right, #00C66B, #8f0ff9);
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transition: width 0.3s ease;
}

/* 加载动画 */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #00C66B;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 文字渐变效果 */
.gradient-text {
  background: linear-gradient(45deg, #00C66B, #8f0ff9, #3fccff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
