/**
 * 高端现代化样式
 * Premium Design System
 */

/* CSS 变量定义 - 温馨粉色主题 - 浪漫渐变 */
:root {
  --primary-100: #2d1b2e;
  --primary-200: #3d1f3e;
  --primary-300: #4d234e;
  --accent-100: #ec4899;
  --accent-200: #f472b6;
  --text-100: #ffffff;
  --text-200: #fce7f3;
  --text-300: #f9a8d4;
  --bg-100: #1a0d1a;
  --bg-200: #2d1b2e;
  --bg-300: #3d1f3e;
  
  /* 兼容性映射 */
  --primary-color: #ec4899;
  --secondary-color: #fbbf24;
  --accent-color: #f472b6;
  --text-primary: #1f2937;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --bg-primary: #fef7ff;
  --bg-secondary: #fdf2f8;
  --bg-tertiary: #fce7f3;
  --bg-card: #ffffff;
  --border-color: rgba(236, 72, 153, 0.3);
  --border-light: rgba(236, 72, 153, 0.2);
  --border-accent: rgba(251, 191, 36, 0.4);
  
  /* 渐变效果 */
  --gradient-primary: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(244, 114, 182, 0.1) 50%, rgba(251, 191, 36, 0.08) 100%);
  --gradient-card: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(251, 191, 36, 0.03) 100%);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --gradient-primary: linear-gradient(135deg, #ec4899 0%, #f472b6 50%, #fbbf24 100%);
  --gradient-secondary: linear-gradient(135deg, #fef7ff 0%, #fdf2f8 100%);
  --gradient-glass: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(251, 191, 36, 0.05) 100%);
}

/* 基础重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 192, 203, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 10%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, #ffe4e6 0%, #fce7f3 25%, #fdf2f8 50%, #fce7f3 75%, #ffe4e6 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.01) 50%, transparent 70%),
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.015) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.01) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  /* 小屏幕也隐藏观看次数 */
  .video-views {
    display: none !important;
  }
  
  .video-meta {
    justify-content: flex-start !important;
  }
}

/* 头部 */
header {
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 192, 203, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 10%, rgba(236, 72, 153, 0.1) 0%, transparent 60%),
    linear-gradient(135deg, #ffb6c1 0%, #ffc0cb 25%, #ffb6c1 50%, #ffc0cb 75%, #ffb6c1 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.15);
  width: 100%;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 70px;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  gap: 2rem;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #000000;
  font-weight: 700;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%),
    rgba(255, 182, 193, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.1);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.03);
}

.logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.logo:hover::before {
  opacity: 0.1;
}

.logo:hover {
  transform: translateY(-2px);
  color: #000000;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%),
    rgba(26, 26, 26, 0.9);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.logo img {
  height: 35px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo span {
  font-size: 1.25rem;
  font-weight: 700;
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: #530404;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin: 0;
  background: 
    linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%),
    rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 0.1;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  transform: translateY(-2px);
  background: 
    linear-gradient(135deg, rgba(220, 38, 38, 0.8) 0%, rgba(185, 28, 28, 0.8) 100%),
    rgba(220, 38, 38, 0.6);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
  border-color: rgba(220, 38, 38, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* 下拉菜单样式 */
.dropdown {
  position: relative;
}

.dropdown-arrow {
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  padding: 8px 0;
  margin-top: 8px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: #dc2626;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0;
}

.dropdown-item:hover {
  background: rgba(220, 38, 38, 0.15);
  color: #ffffff;
  transform: translateX(4px);
}



/* 主要内容 */
main {
  min-height: calc(100vh - 70px);
  padding: 1rem 0;
}

/* 排行榜区域 */
.rank-section {
  background: linear-gradient(104deg, #e7e7e7 0%, #ffc0c0 100%);
  color: #000000;
  padding: 1.5rem 0;
  margin-bottom: 1rem;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.rank-header {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.rank-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.25rem !important;
  color: #000000 !important;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #000000 0%, #cb3737 25%, #ff0000 50%, #000000 75%, #000000 100%) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: gradientShift 4s ease-in-out infinite !important;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2)) !important;
}

.rank-title::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -12px;
  right: -12px;
  bottom: -8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(240, 240, 240, 0.15) 25%, rgba(240, 240, 240, 0.15) 50%, rgba(240, 240, 240, 0.15) 75%, rgba(255, 255, 255, 0.15) 100%);
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.rank-title:hover::before {
  opacity: 1;
}

.rank-title::after {
  content: '🔥';
  position: absolute;
  top: -12px;
  right: -20px;
  font-size: 0.8rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(-2px);
  }
}

.rank-subtitle {
  display: none;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

/* 推荐区域 */
.recommend-section {
  background: linear-gradient(104deg, #e7e7e7 0%, #ffc0c0 100%);
  color: #000000;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(236, 72, 153, 0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.recommend-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.section-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #000000 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  background: linear-gradient( #ff0000) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: gradientShift 4s ease-in-out infinite !important;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2)) !important;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 25%, #f0f0f0 50%, #f0f0f0 75%, #ffffff 100%);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  animation: glow 2s ease-in-out infinite alternate;
}

.section-title::after {
  content: '✨';
  margin-left: 0.5rem;
  font-size: 0.8rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
  }
  100% {
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.8);
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.section-subtitle {
  display: none;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

/* 分类区域 */
.category-section {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  color: #000000;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.2);
  transition: all 0.3s ease;
}

.category-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

/* 视频卡片 */
.video-card {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%),
    rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.video-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(139, 92, 246, 0.3);
}

.video-card:hover::before {
  opacity: 0.05;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: 
    radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(251, 191, 36, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, #fef7ff 0%, #fdf2f8 50%, #fce7f3 100%);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease-in-out infinite;
  border: 1px solid rgba(236, 72, 153, 0.3);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}

.video-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer-sweep 2s ease-in-out infinite;
  z-index: 2;
}

.video-thumbnail::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 3;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.video-thumbnail img.loaded {
  opacity: 1;
  animation: none;
}

.video-thumbnail:has(img.loaded)::before,
.video-thumbnail:has(img.loaded)::after {
  display: none;
}

.video-thumbnail:has(img.loaded) {
  background: var(--bg-tertiary);
  animation: none;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b5cf6;
  font-size: 1.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.video-card:hover .play-button {
  transform: scale(1);
}

.video-info {
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 0 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.video-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

/* 移动端自适应高度 - 短标题1行，长标题2行 */
@media (max-width: 768px) {
  .video-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: unset !important;
    -webkit-line-clamp: 2 !important;
    max-height: calc(1.4em * 2) !important; /* 2行的高度 */
    line-height: 1.4 !important;
  }
  
  /* 移动端只显示时长，隐藏观看次数 */
  .video-views {
    display: none !important;
  }
  
  .video-meta {
    justify-content: flex-start !important;
  }
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6b7280;
  font-size: 0.875rem;
  text-decoration: none;
  gap: 0.5rem;
}

.video-duration {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.6rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(185, 28, 28, 0.05) 100%);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  color: #dc2626;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
  transition: all 0.3s ease;
}

.video-duration svg {
  color: #dc2626;
  flex-shrink: 0;
}

.video-views {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  color: #ec4899;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.1);
  transition: all 0.3s ease;
}

/* 修复home页面视频卡片内链接的下划线问题 */
.video-card a {
  text-decoration: none;
}

/* 视频卡片悬停效果 */
.video-card:hover .video-title {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.video-card:hover .video-duration {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(185, 28, 28, 0.1) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.video-card:hover .video-views {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0.1) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

.video-card a:hover {
  text-decoration: none;
}

/* 标签系统 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag:hover {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%),
    rgba(26, 26, 26, 0.95);
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: 
    linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(244, 114, 182, 0.1) 100%),
    rgba(255, 255, 255, 0.9);
  color: #1f2937;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
  background: 
    linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(244, 114, 182, 0.2) 100%),
    rgba(255, 255, 255, 0.95);
  border-color: rgba(236, 72, 153, 0.5);
}

/* 分页 */
.v-page {
  margin-top: 3rem;
  padding: 2rem 0;
}

.pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.pagination li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.page_link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0.5rem 1rem !important;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(26, 26, 26, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  color: var(--primary-color) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05) !important;
}

.page_link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.page_link:hover {
  background: 
    linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(244, 114, 182, 0.1) 100%),
    rgba(255, 255, 255, 0.9) !important;
  color: #1f2937 !important;
  border-color: rgba(236, 72, 153, 0.3) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.2) !important;
  text-decoration: none !important;
}

.page_link:hover::before {
  opacity: 0.1;
}

.page_link.page_current {
  background: 
    linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(244, 114, 182, 0.2) 100%),
    rgba(255, 255, 255, 0.95) !important;
  color: #1f2937 !important;
  border-color: rgba(236, 72, 153, 0.5) !important;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3) !important;
}

.page_link.page_current::before {
  opacity: 0;
}

/* 移动端分页适配 */
@media (max-width: 768px) {
  .v-page {
    margin-top: 1.5rem !important;
    padding: 1rem 0 !important;
  }
  
  .page_link {
    min-width: 36px !important;
    height: 36px !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
  }
  
  .pagination {
    gap: 0.25rem !important;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 480px) {
  .v-page {
    margin-top: 1rem !important;
    padding: 0.75rem 0 !important;
  }
  
  .page_link {
    min-width: 32px !important;
    height: 32px !important;
    padding: 0.3rem 0.6rem !important;
    font-size: 0.75rem !important;
  }
  
  .pagination {
    gap: 0.2rem !important;
  }
}

/* 底部 */
footer {
  background: 
    radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.05) 0%, transparent 60%),
    linear-gradient(135deg, #ffb6c1 0%, #ffc0cb 50%, #ffb6c1 100%);
  color: #000000;
  padding: 2rem 0 1.5rem 0;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(236, 72, 153, 0.3);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.footer-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-text {
  color: #000000;
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0;
  padding: 1rem 0;
  position: relative;
}

.footer-text::before {
  content: '✨';
  margin-right: 0.5rem;
  font-size: 1rem;
  animation: sparkle 2s ease-in-out infinite;
}

.footer-text::after {
  content: '✨';
  margin-left: 0.5rem;
  font-size: 1rem;
  animation: sparkle 2s ease-in-out infinite 1s;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* 添加一些装饰性元素 */
.footer-decoration {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #8b5cf6 50%, transparent 100%);
  border-radius: 1px;
}

.footer-decoration::before,
.footer-decoration::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #8b5cf6;
  border-radius: 50%;
  transform: translateY(-50%);
}

.footer-decoration::before {
  left: -4px;
}

.footer-decoration::after {
  right: -4px;
}

/* 移动端footer适配 */
@media (max-width: 768px) {
  footer {
    padding: 2.5rem 0 1.2rem 0;
    margin-top: 1.5rem;
  }
  
  .footer-content {
    padding: 0 1rem;
  }
  
  .footer-text {
    font-size: 0.9rem;
    padding: 0.8rem 0;
    line-height: 1.6;
  }
  
  .footer-decoration {
    width: 50px;
    top: 1.5rem;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 2rem 0 1rem 0;
    margin-top: 1rem;
  }
  
  .footer-content {
    padding: 0 0.75rem;
  }
  
  .footer-text {
    font-size: 0.85rem;
    padding: 0.6rem 0;
    line-height: 1.5;
  }
  
  .footer-decoration {
    width: 40px;
    top: 1rem;
  }
}

/* ========================================
   响应式设计 - 移动端优先
   ======================================== */

/* 中等屏幕适配 */
@media (max-width: 1024px) {
  .recommend-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
  }
  
  .category-page .recommend-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
  }
}

/* 基础移动端适配 */
@media (max-width: 768px) {
  /* 全局重置 */
  * {
    box-sizing: border-box !important;
  }
  
  /* 防止水平滚动 */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  /* 容器适配 */
  .container {
    padding: 0 16px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* 确保所有元素不超出屏幕 */
  main, section, div, header, footer {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* 重置所有可能的宽度问题 */
  .rank-section,
  .recommend-section,
  .category-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Header适配 */
  .header-content {
    padding: 0 16px !important;
    height: 60px !important;
    gap: 16px !important;
  }
  
  .logo {
    font-size: 18px !important;
    padding: 8px 12px !important;
  }
  
  .logo img {
    height: 32px !important;
  }
  
  .nav-menu {
    display: none !important;
  }
  
  /* 主要内容 */
  main {
    padding: 12px 0 80px 0 !important; /* 为底部Tab导航留出空间 */
  }
  
  /* 排行榜区域 */
  .rank-section {
    padding: 20px 0 !important;
    margin-bottom: 12px !important;
  }
  
  .rank-title {
    font-size: 22px !important;
    margin-bottom: 6px !important;
    font-weight: 700 !important;
  }
  
  .rank-subtitle {
    display: none !important;
  }
  
  .rank-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* 推荐区域 */
  .recommend-section,
  .category-section {
    margin-bottom: 8px !important;
  }
  
  .section-header {
    margin-bottom: 12px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  
  .section-title {
    font-size: 22px !important;
    font-weight: 700 !important;
  }
  
  .section-subtitle {
    display: none !important;
  }
  
  .recommend-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .category-page .recommend-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* 视频卡片 */
  .video-thumbnail {
    aspect-ratio: 3/2 !important;
    border-radius: 12px !important;
  }
  
  .video-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  
  .video-title {
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
  }
  
  .video-meta {
    font-size: 12px !important;
    color: #f8fafc !important;
  }
  
  .video-info {
    padding: 14px !important;
  }
  
  /* 视频卡片悬停效果 */
  .video-card:hover .video-thumbnail {
    transform: scale(1.02) !important;
  }
  
  .video-card:hover .video-title {
    color: var(--primary-color) !important;
  }
  
  /* 推荐链接 */
  .wn_block_link {
    padding: 18px !important;
    margin-bottom: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 12px !important;
  }
  
  .wn_block_title {
    font-size: 19px !important;
    margin-bottom: 14px !important;
    font-weight: 600 !important;
  }
  
  .wn_block_link_wrapper {
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .wn_block_link_item {
    padding: 10px 14px !important;
    font-size: 13px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
  }
  
  .wn_block_link_item:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
  }
  
  /* 标签 */
  .tag-list {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  
  .tag {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
  
  /* 移动端触摸优化 */
  .video-card,
  .wn_block_link_item,
  .van-tab {
    -webkit-tap-highlight-color: rgba(139, 92, 246, 0.2) !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
  }
  
  /* 强制重置UIkit样式 */
  .uk-grid,
  .uk-grid-small,
  .uk-grid-medium,
  .uk-grid-large {
    margin-left: 0 !important;
  }
  
  .uk-grid > *,
  .uk-grid-small > *,
  .uk-grid-medium > *,
  .uk-grid-large > * {
    padding-left: 0 !important;
  }
  
  .uk-width-1-1,
  .uk-width-1-2,
  .uk-width-1-3,
  .uk-width-1-4,
  .uk-width-1-5,
  .uk-width-1-6,
  .uk-width-medium-1-2,
  .uk-width-medium-1-3,
  .uk-width-medium-1-4,
  .uk-width-medium-1-5,
  .uk-width-medium-1-6 {
    width: auto !important;
    float: none !important;
  }
}

/* 小屏幕适配 */
@media (max-width: 480px) {
  /* 防止水平滚动 */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  /* 容器 */
  .container {
    padding: 0 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* 确保所有元素不超出屏幕 */
  main, section, div, header, footer {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* 隐藏PC端导航和logo */
  .nav-menu {
    display: none !important;
  }
  
  .logo {
    display: none !important;
  }
  
  /* Header */
  .header-content {
    padding: 0 12px !important;
    height: 56px !important;
    gap: 12px !important;
  }
  
  .logo {
    font-size: 16px !important;
    padding: 6px 10px !important;
  }
  
  .logo img {
    height: 28px !important;
  }
  
  /* 主要内容 */
  main {
    padding: 12px 0 !important;
  }
  
  /* 排行榜 */
  .rank-section {
    padding: 24px 0 !important;
    margin-bottom: 20px !important;
  }
  
  .rank-title {
    font-size: 20px !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
  }
  
  .rank-subtitle {
    display: none !important;
  }
  
  .rank-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* 推荐区域 */
  .recommend-section,
  .category-section {
    margin-bottom: 12px !important;
  }
  
  .section-header {
    margin-bottom: 12px !important;
  }
  
  .section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
  }
  
  .section-subtitle {
    display: none !important;
  }
  
  .recommend-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .category-page .recommend-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* 视频卡片 */
  .video-thumbnail {
    aspect-ratio: 3/2 !important;
    border-radius: 10px !important;
  }
  
  .video-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  
  .video-title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  
  .video-meta {
    font-size: 11px !important;
    color: #f8fafc !important;
  }
  
  .video-info {
    padding: 12px !important;
  }
  
  /* 视频卡片悬停效果 */
  .video-card:hover .video-thumbnail {
    transform: scale(1.02) !important;
  }
  
  .video-card:hover .video-title {
    color: var(--primary-color) !important;
  }
  
  /* 推荐链接 */
  .wn_block_link {
    padding: 16px !important;
    margin-bottom: 14px !important;
    border-radius: 10px !important;
  }
  
  .wn_block_title {
    font-size: 17px !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
  }
  
  .wn_block_link_wrapper {
    gap: 8px !important;
  }
  
  .wn_block_link_item {
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
  }
  
  .wn_block_link_item:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
  }
  
  /* 标签 */
  .tag-list {
    gap: 6px !important;
  }
  
  .tag {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
}

/* Swiper Tab导航 */
.tab-navigation {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 12px 0;
}

/* 轻量级Tab容器 */
.tab-container {
  position: relative;
  width: 100%;
  height: auto;
}

.tab-scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 0 16px;
  align-items: center;
  position: relative;
  transform: translateZ(0); /* 硬件加速，避免重排 */
}

.tab-scroll::-webkit-scrollbar {
  display: none;
}

/* Tab项目 */
.tab-item {
  flex-shrink: 0;
  min-width: 80px;
  max-width: 120px;
  padding: 12px 16px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  user-select: none;
  white-space: nowrap;
  border-radius: 8px;
  margin: 0 4px;
  background: transparent;
  transform: translateZ(0); /* 硬件加速 */
}

.tab-text {
  display: block;
  transition: transform 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateZ(0); /* 硬件加速 */
}

.tab-item:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-color);
}

.tab-item:active {
  transform: scale(0.95) !important;
  background: rgba(139, 92, 246, 0.2) !important;
  transition: all 0.1s ease !important;
}

.tab-item.active {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  background: rgba(139, 92, 246, 0.15) !important;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2) !important;
  transform: scale(1) !important;
}

.tab-item.active .tab-text {
  transform: scale(1.05);
}

/* 移动端子菜单 */
.tab-item.has-submenu {
  position: relative;
}

.tab-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  padding: 8px 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tab-item.has-submenu:hover .tab-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tab-subitem {
  display: block;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0 8px;
}

.tab-subitem:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-color);
  transform: translateX(4px);
}


/* 指示器 */
.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  z-index: 1;
  opacity: 0; /* 初始隐藏 */
  transform: translateZ(0); /* 硬件加速 */
  transition: none; /* 禁用过渡动画 */
}

/* 大量Tab时的优化 */
.van-tabs__nav:has(.van-tab:nth-child(6)) .van-tab {
  min-width: 70px;
  max-width: 100px;
  padding: 12px 12px;
  font-size: 13px;
}

.van-tabs__nav:has(.van-tab:nth-child(10)) .van-tab {
  min-width: 60px;
  max-width: 80px;
  padding: 12px 8px;
  font-size: 12px;
}

.van-tabs__nav:has(.van-tab:nth-child(15)) .van-tab {
  min-width: 50px;
  max-width: 70px;
  padding: 12px 6px;
  font-size: 11px;
}

/* 滚动提示 */
.van-tabs__nav::before,
.van-tabs__nav::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.van-tabs__nav::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
}

.van-tabs__nav::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
}

/* 当可以滚动时显示提示 */
.van-tabs__nav:not(.scroll-start)::before {
  opacity: 1;
}

.van-tabs__nav:not(.scroll-end)::after {
  opacity: 1;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  
  .show-mobile {
    display: block !important;
  }
  
  .tab-navigation {
    display: block !important;
  }
  
  /* 隐藏PC端导航和logo */
  .nav-menu {
    display: none !important;
  }
  
  .logo {
    display: none !important;
  }
  
  /* 为主内容添加底部间距，避免被Tab导航遮挡 */
  main {
    padding-bottom: 60px !important;
  }
  
  body {
    padding-bottom: 60px;
  }
}

/* 确保头部样式生效 */
header {
  display: block !important;
}

/* 全局防止水平滚动 */
* {
  max-width: 100% !important;
}

/* 特别处理可能超出宽度的元素 */
img, video, iframe, embed, object {
  max-width: 100% !important;
  height: auto !important;
}

/* 确保表格不会超出宽度 */
table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

/* 确保长文本不会超出宽度 */
p, span, div, h1, h2, h3, h4, h5, h6 {
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

/* 强制所有网格容器不超出宽度 */
.rank-grid,
.recommend-grid,
.category-grid {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 确保视频卡片不超出容器 */
.video-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 强制所有section不超出宽度 */
section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}


.header-content {
  display: flex !important;
}

.logo {
  display: flex !important;
}

/* PC端显示导航，移动端隐藏 */
.nav-menu {
  display: flex !important;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none !important;
  }
  
  .logo {
    display: none !important;
  }
}


/* 其他页面UIkit组件样式修复 */
.filter {
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.01) 0%, transparent 60%),
    linear-gradient(#fce7f3 );
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.v-tit {
  font-weight: 600;
  color: #FF0000;
  margin-right: 1rem;
  font-size: 1rem;
}

.v_select {
  display: inline-flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.order {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: 
    linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(244, 114, 182, 0.05) 100%),
    rgba(255, 255, 255, 0.8);
  color: #1f2937;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(236, 72, 153, 0.3);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.1);
}

.order:hover {
  background: 
    linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(244, 114, 182, 0.1) 100%),
    rgba(255, 255, 255, 0.9);
  color: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.4);
}

.order.current {
  background: 
    linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(244, 114, 182, 0.2) 100%),
    rgba(255, 255, 255, 0.95);
  color: #1f2937;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.5);
}

/* 修复UIkit网格在移动端的显示 */
.uk-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 1rem !important;
  margin: 0 !important;
}

/* 移动端子类页面2列布局 */
@media (max-width: 768px) {
  .uk-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin: 0 !important;
  }
  
  .uk-grid > * {
    padding-left: 0 !important;
    width: auto !important;
    float: none !important;
  }
}

@media (max-width: 480px) {
  .uk-grid {
    gap: 10px !important;
  }
}

.uk-grid-small {
  gap: 0.75rem !important;
}

.uk-grid-medium {
  gap: 1rem !important;
}

.uk-grid-large {
  gap: 1.5rem !important;
}

/* 其他页面视频列表现代化样式 */
.top-item {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%),
    rgba(26, 26, 26, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
  margin-bottom: 1rem !important;
}

.top-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.top-item:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
  text-decoration: none !important;
  color: inherit !important;
}

.top-item:hover::before {
  opacity: 0.05;
}

.top-item .img {
  position: relative !important;
  width: 100% !important;
  height: 180px !important;
  overflow: hidden !important;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.01) 0%, transparent 60%),
    linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a1a 100%) !important;
  background-size: 200% 200% !important;
  animation: gradient-shift 3s ease-in-out infinite !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05) !important;
}

.top-item .img::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent) !important;
  animation: shimmer-sweep 2s ease-in-out infinite !important;
  z-index: 2 !important;
}

.top-item .img::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 40px !important;
  height: 40px !important;
  margin: -20px 0 0 -20px !important;
  border: 3px solid rgba(255, 255, 255, 0.2) !important;
  border-top: 3px solid #ffffff !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
  z-index: 3 !important;
}

.top-item .img-wrapper {
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: transform 0.3s ease, opacity 0.3s ease !important;
  opacity: 0 !important;
}

.top-item .img-wrapper.loaded {
  opacity: 1 !important;
  animation: none !important;
}

.top-item .img:has(.img-wrapper.loaded)::before,
.top-item .img:has(.img-wrapper.loaded)::after {
  display: none !important;
}

.top-item .img:has(.img-wrapper.loaded) {
  background: var(--bg-tertiary) !important;
  animation: none !important;
}

.top-item:hover .img-wrapper {
  transform: scale(1.02) !important;
  filter: brightness(1.1) !important;
}

.top-item .play {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.8) !important;
  width: 60px !important;
  height: 60px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  transition: all 0.3s ease !important;
  z-index: 2 !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.top-item:hover .play {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.top-item .play::before {
  content: '▶' !important;
  font-size: 20px !important;
  color: #8b5cf6 !important;
  margin-left: 2px !important;
}

.top-item .video-h3 {
  padding: 0.75rem !important;
  position: relative !important;
  z-index: 2 !important;
}

.top-item .video-t {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #000000 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.top-item .video-t .play {
  display: none !important;
}

.top-item .video-n {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #f5f5f5 !important;
  font-size: 0.875rem !important;
  margin: 0.5rem 0 0 0 !important;
  gap: 0.5rem !important;
}

.top-item .video-n i {
  color: #000000 !important;
  font-size: 14px !important;
}

/* 子类页面时长样式 */
.top-item .video-duration {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  padding: 0.2rem 0.2rem !important;
  font-weight: 500 !important;
}

.top-item .video-duration svg {
  color: #000000 !important;
  flex-shrink: 0 !important;
}


/* 子类页面点击量样式 */
.top-item .video-views {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 0.2rem 0.4rem !important;
  border-radius: 4px !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: #000000 !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05) !important;
}

.top-item .video-views svg {
  width: 12px !important;
  height: 12px !important;
  color: #000000 !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .top-item .img {
    height: 140px !important;
  }
  
  .top-item .video-t {
    font-size: 14px !important;
  }
  
  .top-item .video-n {
    font-size: 12px !important;
  }
  
  .top-item .video-h3 {
    padding: 8px !important;
  }
}

@media (max-width: 480px) {
  .top-item .img {
    height: 120px !important;
  }
  
  .top-item .video-t {
    font-size: 13px !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
  }
  
  .top-item .video-n {
    font-size: 11px !important;
  }
  
  .top-item .video-h3 {
    padding: 6px !important;
  }
}

/* 分类页面现代化设计 */
.category-page {
  padding: 1rem 0;
  min-height: 60vh;
}

/* 类别页面使用推荐网格布局 */
.category-page .recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.category-header {
  text-align: center;
  margin-bottom: 3rem;
}

.category-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #8b5cf6 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

.category-subtitle {
  font-size: 1.125rem;
  color: #f8fafc;
  margin: 0;
}

.category-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}


.category-section-header {
  margin-bottom: 1.5rem;
  position: relative;
}

.category-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 25%, #f0f0f0 50%, #f0f0f0 75%, #ffffff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

.category-section-title::before {
  content: '';
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 25%, #f0f0f0 50%, #f0f0f0 75%, #ffffff 100%);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  animation: glow 2s ease-in-out infinite alternate;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.category-card {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  text-decoration: none;
  color: inherit;
}

.category-card:hover::before {
  opacity: 1;
}

.category-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.category-card:hover .category-card-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.category-card-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.category-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 0.25rem 0;
  transition: color 0.3s ease;
}

.category-card:hover .category-card-title {
  color: #8b5cf6;
}

.category-card-desc {
  font-size: 0.875rem;
  color: #f8fafc;
  margin: 0;
  transition: color 0.3s ease;
}

.category-card:hover .category-card-desc {
  color: #8b5cf6;
}

.category-card-arrow {
  color: #94a3b8;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.category-card:hover .category-card-arrow {
  color: #8b5cf6;
  transform: translateX(4px);
}

/* 移动端分类页面适配 */
@media (max-width: 768px) {
  .category-page {
    padding: 0.5rem 0;
  }
  
  .category-main-title {
    font-size: 2rem;
  }
  
  .category-section {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .category-card {
    padding: 1rem;
  }
  
  .category-card-icon {
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
  }
  
  .category-card-title {
    font-size: 1rem;
  }
  
  .category-card-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .category-main-title {
    font-size: 1.75rem;
  }
  
  .category-section {
    padding: 1rem;
    margin: 0 0.5rem;
  }
  
  .category-card {
    padding: 0.875rem;
  }
  
  .category-card-icon {
    width: 36px;
    height: 36px;
    margin-right: 0.5rem;
  }
}

/* 强制重置可能被覆盖的样式 */
header * {
  box-sizing: border-box;
}

header a {
  text-decoration: none;
}

header input {
  border: none;
  outline: none;
}

/* 调试样式 - 确保头部可见 */
header {
  background: var(--bg-primary) !important;
  border-bottom: 1px solid var(--border-color) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  width: 100% !important;
  min-height: 70px !important;
}

.header-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 70px !important;
  padding: 0 1.5rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

/* 推荐链接区域样式 */
.wn_block_link {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.8) 0%, rgba(255, 192, 203, 0.8) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.3);
  position: relative;
  overflow: hidden;
}

.wn_block_link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glass);
  opacity: 0.5;
  z-index: 0;
}

.wn_block_title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.wn_block_title::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1px;
}

.wn_block_link_wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wn_block_link_item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.wn_block_link_item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.wn_block_link_item:hover::before {
  opacity: 0.1;
}

.wn_block_link_item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: #8b5cf6;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.wn_block_link_item_name {
  position: relative;
  z-index: 1;
  font-weight: 500;
  font-size: 0.875rem;
  color: #f8fafc;
  transition: color 0.3s ease;
}

.wn_block_link_item:hover .wn_block_link_item_name {
  color: #8b5cf6;
}

/* 特殊样式 - 站长推荐 */
.wn_block_webmaster_recommend {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.wn_block_webmaster_recommend .wn_block_link_item {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.wn_block_webmaster_recommend .wn_block_link_item_name {
  color: #f8fafc;
}

/* 特殊样式 - 友链推荐 */
.wn_block_top_link {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%),
    var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.wn_block_top_link .wn_block_title {
  color: #000000 !important;
  border-bottom-color: rgba(255, 255, 255, 0.15);
  font-weight: 600;
  margin-bottom: 15px;
}

.wn_block_top_link .wn_block_title::before {
  background: var(--primary-color);
}

.wn_block_top_link .wn_block_link_item {
  background: 
    linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(185, 28, 28, 0.05) 100%),
    rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.wn_block_top_link .wn_block_link_item_name {
  color: #530404 !important;
  font-weight: 600;
}

.wn_block_top_link .wn_block_link_item:hover {
  background: 
    linear-gradient(135deg, rgba(220, 38, 38, 0.8) 0%, rgba(185, 28, 28, 0.8) 100%),
    rgba(220, 38, 38, 0.6);
  border-color: rgba(220, 38, 38, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

/* 特殊样式 - 热门搜索 */
.wn_hot_keyword_wrapper .wn_block_link_item {
  background: 
    linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%),
    rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.1);
}

.wn_hot_keyword_wrapper .wn_block_link_item_name {
  color: #ec4899 !important;
  font-weight: 600;
}

.wn_hot_keyword_wrapper .wn_block_link_item:hover {
  background: 
    linear-gradient(135deg, rgba(236, 72, 153, 0.8) 0%, rgba(219, 39, 119, 0.8) 100%),
    rgba(236, 72, 153, 0.6);
  border-color: rgba(236, 72, 153, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

.wn_hot_keyword_wrapper .wn_block_link_item:hover .wn_block_link_item_name {
  color: #ffffff !important;
}

/* 强制覆盖热门搜索的文字样式 */
.wn_block_link.wn_block_top_link .wn_hot_keyword_wrapper .wn_block_link_item_name {
  color: #4e4e4e !important;
  font-weight: 600 !important;
}

/* 确保所有热门搜索文字都是粉色 */
.wn_hot_keyword_wrapper span[style*="color:#FF9090"] {
  color: #ec4899 !important;
  font-weight: 600 !important;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 高级动画效果 */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes loading-shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

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

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
  }
}

/* 高级动画类 */
.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* 图片占位符样式 */
.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease-in-out infinite;
  color: #f8fafc;
  font-size: 0.875rem;
  text-align: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer-sweep 2s ease-in-out infinite;
}

.image-placeholder svg {
  opacity: 0.7;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  animation: float 2s ease-in-out infinite;
}

.image-placeholder span {
  font-size: 0.75rem;
  color: #f8fafc;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-slide-in-from-top {
  animation: slideInFromTop 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* 高级交互效果 */
.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.2);
}

.video-card:hover .play-button {
  animation: pulse 1s ease-in-out infinite;
}

/* 高级渐变文字效果 */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 高级按钮效果 */
.btn-premium {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-premium::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.5s ease;
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* 移动端Logo - 居中 */
.logo-mobile {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 1001;
}

@media (max-width: 768px) {
  .logo-mobile {
    display: flex;
  }
}

.logo-mobile img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo-mobile span {
  white-space: nowrap;
}

/* 移动端汉堡菜单按钮 */
.mobile-nav {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.hamburger-btn:hover {
  background: rgbargb(255 0 0 / 10%);

}

.hamburger-btn.active {
  background: rgbargb(255 0 0 / 10%);

}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #4E4E4E;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* 抽屉遮罩 */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 抽屉主体 */
.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.01) 0%, transparent 60%),
    linear-gradient(135deg, #fff 0%, #fff 50%, #fff 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: -8px 0 32px rgba(255, 255, 255, 0.05);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer.active {
  right: 0;
}

/* 抽屉头部 */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgb(33 32 32 / 60%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%), rgb(255 255 255 / 90%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.drawer-title {
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  margin: 0;
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  color: #271818;
  transition: all 0.2s ease;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #000000;
}

/* 抽屉内容 */
.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0 80px 0;
  min-height: 0;
  width: 100%;
}

.drawer-section {
  margin-bottom: 4px;
}

.drawer-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  color: #000000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
}

.drawer-item:hover {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%),
    rgba(26, 26, 26, 0.9);
  color: #000000;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

/* 父菜单样式 */
.drawer-parent {
  font-weight: 600;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(26, 26, 26, 0.9);
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 2px;
  padding: 12px 24px;
  font-size: 15px;
  color: #ffffff;
}

.drawer-parent:hover {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%),
    rgba(26, 26, 26, 0.95);
  border-left-color: rgba(255, 255, 255, 0.5);
}

.drawer-parent .drawer-icon {
  font-size: 16px;
  color: #000000;
}

/* 子菜单容器 - 紧凑布局 */
.drawer-children-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0 6px 24px;
  padding: 6px 0;
  width: calc(100% - 24px);
  overflow: visible;
}

/* 子菜单项 - 紧凑标签样式 */
.drawer-child-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  color: #f5f5f5;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  transition: all 0.2s ease;
  border-radius: 6px;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(26, 26, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  margin: 2px;
  flex-shrink: 0;
  max-width: calc(100% - 4px);
}

.drawer-child-item:hover {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%),
    rgba(26, 26, 26, 0.95);
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.drawer-child-icon {
  font-size: 10px;
  color: #f5f5f5;
  margin-right: 4px;
  transition: color 0.2s ease;
}

.drawer-child-item:hover .drawer-child-icon {
  color: #000000;
}

.drawer-child-text {
  font-size: 12px;
  line-height: 1.2;
}

.drawer-icon {
  font-size: 20px;
  margin-right: 16px;
  width: 24px;
  text-align: center;
}

.drawer-text {
  flex: 1;
}

.drawer-arrow {
  font-size: 12px;
  color: #f5f5f5;
  transition: transform 0.3s ease;
  margin-left: 8px;
}
