.tx-search-panel {
  transition: all 0.3s ease;
}

.tx-search-panel:hover {
  transform: translateY(-2px);
}

.tx-search-form input:focus {
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

.tx-search-form select:focus {
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

/* 分类卡片特效 */
.tx-category-card {
  position: relative;
  overflow: hidden;
}

.tx-category-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(147, 51, 234, 0.1), transparent);
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

.tx-category-card:hover::before {
  transform: translateX(50%) translateY(50%) rotate(45deg);
}

.tx-category-icon {
  transition: all 0.4s ease;
}

.tx-category-card:hover .tx-category-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

.tx-category-preview img {
  transition: all 0.3s ease;
}

.tx-category-card:hover .tx-category-preview img {
  transform: scale(1.05);
}

/* 统计数字动画 */
@keyframes tx-stat-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.tx-stat-item:hover .tx-stat-number {
  animation: tx-stat-bounce 0.6s ease;
}

/* 搜索框聚焦效果 */
.tx-search-form input:focus {
  transform: scale(1.02);
}

/* 按钮悬停效果 */
.tx-category-card button:hover {
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
  .tx-category-cards {
    grid-template-columns: 1fr;
  }
  
  .tx-search-form {
    flex-direction: column;
  }
  
  .tx-search-form select {
    margin-bottom: 1rem;
  }
}

/* 页面特有动画 */
.tx-library-layout .tx-category-card {
  animation: tx-slide-up 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.tx-library-layout .tx-category-card:nth-child(1) { animation-delay: 0.1s; }
.tx-library-layout .tx-category-card:nth-child(2) { animation-delay: 0.2s; }
.tx-library-layout .tx-category-card:nth-child(3) { animation-delay: 0.3s; }
.tx-library-layout .tx-category-card:nth-child(4) { animation-delay: 0.4s; }
.tx-library-layout .tx-category-card:nth-child(5) { animation-delay: 0.5s; }
.tx-library-layout .tx-category-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes tx-slide-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}