/* 全站增强样式 */

body {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ui-style-3 {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
}

.container {
  animation: fadeIn 0.6s ease-in;
}

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

.video-card,
.video-item,
.related-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover,
.video-item:hover,
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.nav-links a {
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-links a:hover::before {
  width: 80%;
}

.link-btn {
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.section-title {
  position: relative;
  padding-left: 1.5rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #667eea, #764ba2);
  border-radius: 2px;
}

.tag {
  transition: all 0.3s;
  cursor: default;
}

.tag:hover {
  transform: scale(1.05);
  background: #1976d2;
  color: #fff;
}

.rank-badge {
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.info-item {
  transition: all 0.3s;
}

.info-item:hover {
  background: #e3f2fd;
  transform: translateX(4px);
}

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

  .nav-links {
    overflow: hidden;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.8rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 1rem;
    padding: 0.6rem;
  }

  .nav-links a {
    font-size: 0.75rem;
    padding: 0.6rem 0.3rem;
  }
}

.hero {
  animation: slideIn 0.8s ease-out;
}

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

a {
  transition: color 0.3s;
}

.detail-card,
.section,
.header,
.list-section {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-grid > *,
.related-grid > *,
.video-list > * {
  animation: fadeInScale 0.5s ease-out;
  animation-fill-mode: both;
}

.video-grid > *:nth-child(1),
.related-grid > *:nth-child(1),
.video-list > *:nth-child(1) { animation-delay: 0.05s; }

.video-grid > *:nth-child(2),
.related-grid > *:nth-child(2),
.video-list > *:nth-child(2) { animation-delay: 0.1s; }

.video-grid > *:nth-child(3),
.related-grid > *:nth-child(3),
.video-list > *:nth-child(3) { animation-delay: 0.15s; }

.video-grid > *:nth-child(4),
.related-grid > *:nth-child(4),
.video-list > *:nth-child(4) { animation-delay: 0.2s; }

.video-grid > *:nth-child(5),
.related-grid > *:nth-child(5),
.video-list > *:nth-child(5) { animation-delay: 0.25s; }

.video-grid > *:nth-child(6),
.related-grid > *:nth-child(6),
.video-list > *:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
