/* 全局样式增强 */
body {
  background: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
  min-height: 100vh;
}

/* 卡片悬停效果 */
.card:hover,
.video-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 链接悬停效果 */
a[href^="/list/"]:hover,
a[href^="/video/"]:hover {
  color: #d32f2f !important;
  transition: color 0.3s ease;
}

/* 按钮效果 */
a[style*="background: #c62828"]:hover {
  background: #b71c1c !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(198, 40, 40, 0.3);
  transition: all 0.3s ease;
}

/* 榜单链接悬停 */
a[style*="linear-gradient"]:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 响应式优化 */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr !important;
  }

  main {
    padding: 0 15px !important;
  }

  section {
    padding: 20px !important;
  }

  h1 {
    font-size: 1.5em !important;
  }

  h2 {
    font-size: 1.3em !important;
  }
}

/* UI 风格变体 */
.ui-style-0 { --primary-color: #c62828; }
.ui-style-1 { --primary-color: #ad1457; }
.ui-style-2 { --primary-color: #6a1b9a; }
.ui-style-3 { --primary-color: #4527a0; }
.ui-style-4 { --primary-color: #283593; }
.ui-style-5 { --primary-color: #1565c0; }
.ui-style-6 { --primary-color: #0277bd; }
.ui-style-7 { --primary-color: #00838f; }
.ui-style-8 { --primary-color: #00695c; }
.ui-style-9 { --primary-color: #2e7d32; }
.ui-style-10 { --primary-color: #558b2f; }
.ui-style-11 { --primary-color: #9e9d24; }
.ui-style-12 { --primary-color: #f9a825; }
.ui-style-13 { --primary-color: #ff8f00; }
.ui-style-14 { --primary-color: #ef6c00; }
.ui-style-15 { --primary-color: #d84315; }

/* 返回顶部按钮 */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #c62828;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 20px;
}

#backToTop:hover {
  background: #b71c1c;
  transform: translateY(-3px);
}

#backToTop.show {
  display: flex;
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.video-item,
.list-item {
  animation: fadeIn 0.5s ease-out;
}

/* 标签样式 */
.tag {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85em;
  margin: 3px;
  transition: transform 0.2s;
}

.tag:hover {
  transform: scale(1.1);
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(198, 40, 40, 0.3);
  border-radius: 50%;
  border-top-color: #c62828;
  animation: spin 1s ease-in-out infinite;
}

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