/* 搜索框样式 */
.search-box {
  position: relative;
  overflow: hidden;
}

.search-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.search-box:hover::before {
  left: 100%;
}

/* AI 徽章动画 */
.ai-badge {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* 搜索框聚焦效果 */
.search-box:hover {
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

/* 渐变背景动画 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.search-box {
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}
