.tx-hot-tabs {
  transition: all 0.3s ease;
}

.tx-tab-btn {
  transition: all 0.3s ease;
  position: relative;
}

.tx-tab-btn.active {
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.tx-tab-btn:not(.active):hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(236, 72, 153, 0.1));
  transform: translateY(-2px);
}

/* 排行榜卡片特效 */
.tx-ranking-item {
  position: relative;
  overflow: hidden;
}

.tx-ranking-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.tx-ranking-item:hover::before {
  left: 100%;
}

/* 排名徽章特效 */
.tx-rank-badge {
  position: relative;
  transition: all 0.4s ease;
}

.tx-rank-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.tx-ranking-item:hover .tx-rank-badge::before {
  opacity: 1;
}

/* 皇冠动画 */
.tx-crown {
  animation: tx-crown-float 2s ease-in-out infinite;
}

@keyframes tx-crown-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* 趋势指示器动画 */
.tx-trend-indicator {
  transition: all 0.3s ease;
}

.tx-ranking-item:hover .tx-trend-indicator {
  transform: scale(1.1);
}

.tx-trend-up {
  animation: tx-trend-pulse 1.5s ease-in-out infinite;
}

@keyframes tx-trend-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Tab内容切换动画 */
.tx-tab-content {
  transition: all 0.4s ease;
  animation: tx-tab-fade-in 0.5s ease forwards;
}

@keyframes tx-tab-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 视频标签动画 */
.tx-video-tags span {
  transition: all 0.3s ease;
}

.tx-ranking-item:hover .tx-video-tags span {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 排行榜特殊效果 */
.tx-ranking-item:nth-child(1) .tx-rank-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  animation: tx-gold-shine 3s ease-in-out infinite;
}

.tx-ranking-item:nth-child(2) .tx-rank-badge {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  animation: tx-silver-shine 3s ease-in-out infinite;
}

.tx-ranking-item:nth-child(3) .tx-rank-badge {
  background: linear-gradient(135deg, #d97706, #92400e);
  animation: tx-bronze-shine 3s ease-in-out infinite;
}

@keyframes tx-gold-shine {
  0%, 100% { box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 8px 40px rgba(251, 191, 36, 0.6); }
}

@keyframes tx-silver-shine {
  0%, 100% { box-shadow: 0 4px 20px rgba(107, 114, 128, 0.3); }
  50% { box-shadow: 0 8px 40px rgba(107, 114, 128, 0.5); }
}

@keyframes tx-bronze-shine {
  0%, 100% { box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3); }
  50% { box-shadow: 0 8px 40px rgba(217, 119, 6, 0.5); }
}

/* 用户反馈卡片特效 */
.tx-feedback-card {
  transition: all 0.4s ease;
}

.tx-feedback-card:hover {
  transform: translateY(-8px);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
  .tx-ranking-item {
    flex-direction: column;
    text-align: center;
  }
  
  .tx-ranking-item img {
    margin-bottom: 1rem;
  }
  
  .tx-hot-tabs {
    flex-direction: column;
    width: 100%;
  }
  
  .tx-tab-btn {
    margin-bottom: 0.5rem;
  }
}

/* 页面特有动画 */
.tx-hot-layout .tx-ranking-item {
  animation: tx-ranking-slide-in 0.6s ease forwards;
  opacity: 0;
  transform: translateX(-50px);
}

.tx-hot-layout .tx-ranking-item:nth-child(1) { animation-delay: 0.1s; }
.tx-hot-layout .tx-ranking-item:nth-child(2) { animation-delay: 0.2s; }
.tx-hot-layout .tx-ranking-item:nth-child(3) { animation-delay: 0.3s; }
.tx-hot-layout .tx-ranking-item:nth-child(4) { animation-delay: 0.4s; }
.tx-hot-layout .tx-ranking-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes tx-ranking-slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}