/* Enhanced UI Styles for Video Site */

body.ui-style-7 {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

/* Enhanced card animations */
body.ui-style-7 .card:hover,
body.ui-style-7 .list-item:hover,
body.ui-style-7 .rank-item:hover,
body.ui-style-7 .topic-item:hover,
body.ui-style-7 .latest-item:hover,
body.ui-style-7 .related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Enhanced gradient backgrounds */
body.ui-style-7 .hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

body.ui-style-7 .hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

/* Enhanced link styles */
body.ui-style-7 .card-link,
body.ui-style-7 .item-link,
body.ui-style-7 .rank-link,
body.ui-style-7 .topic-item-link,
body.ui-style-7 .latest-link,
body.ui-style-7 .related-link {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

body.ui-style-7 .card-link::after,
body.ui-style-7 .item-link::after,
body.ui-style-7 .rank-link::after,
body.ui-style-7 .topic-item-link::after,
body.ui-style-7 .latest-link::after,
body.ui-style-7 .related-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

body.ui-style-7 .card-link:hover::after,
body.ui-style-7 .item-link:hover::after,
body.ui-style-7 .rank-link:hover::after,
body.ui-style-7 .topic-item-link:hover::after,
body.ui-style-7 .latest-link:hover::after,
body.ui-style-7 .related-link:hover::after {
  width: 100%;
}

/* Enhanced section titles */
body.ui-style-7 .section-title,
body.ui-style-7 .topic-title,
body.ui-style-7 .related-title,
body.ui-style-7 .info-title,
body.ui-style-7 .text-title {
  position: relative;
  padding-left: 1rem;
}

body.ui-style-7 .section-title::before,
body.ui-style-7 .topic-title::before,
body.ui-style-7 .related-title::before,
body.ui-style-7 .info-title::before,
body.ui-style-7 .text-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from { height: 0; top: 50%; }
  to { height: 100%; top: 0; }
}

/* Enhanced navigation hover effect */
body.ui-style-7 .nav a {
  position: relative;
  overflow: hidden;
}

body.ui-style-7 .nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transition: left 0.3s ease;
}

body.ui-style-7 .nav a:hover::before {
  left: 0;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: #764ba2;
}

/* Responsive enhancements */
@media (max-width: 768px) {
  body.ui-style-7 .detail-title {
    font-size: 1.6rem;
  }

  body.ui-style-7 .hero h1 {
    font-size: 1.5rem;
  }

  body.ui-style-7 .section-title,
  body.ui-style-7 .info-title,
  body.ui-style-7 .text-title,
  body.ui-style-7 .related-title {
    font-size: 1.4rem;
  }
}

/* Loading animation for images */
.img-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Accessibility improvements */
*:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

a:focus,
button:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header, .nav, .footer, .related-section, .back-to-top {
    display: none;
  }

  body {
    background: white;
  }

  .card, .list-item, .info-section, .text-section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
