/* 微交互动画 */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

/* API卡片动画 */
.api-card {
  animation: slideIn 0.6s ease-out;
  animation-fill-mode: both;
}

.api-card:nth-child(2) { animation-delay: 0.1s; }
.api-card:nth-child(3) { animation-delay: 0.2s; }
.api-card:nth-child(4) { animation-delay: 0.3s; }
.api-card:nth-child(5) { animation-delay: 0.4s; }
.api-card:nth-child(6) { animation-delay: 0.5s; }

/* 波纹效果 */
.api-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--primary-color), 
    transparent
  );
  animation: pulse 2s infinite;
}

/* 加载动画 */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}