* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.ui-style-0 body { background: #000; color: #fff; }
.ui-style-1 body { background: #1a1a1a; color: #fff; }
.ui-style-2 body { background: #fff; color: #333; }
.ui-style-3 body { background: #fff; color: #333; }
.ui-style-4 body { background: #fff; color: #333; }
.ui-style-5 body { background: #141414; color: #fff; }
.ui-style-6 body { background: #0f1419; color: #fff; }
.ui-style-7 body { background: #0d1117; color: #fff; }
.ui-style-8 body { background: #121212; color: #e5e5e5; }
.ui-style-9 body { background: #000; color: #fff; }
.ui-style-10 body { background: #f0f9ff; color: #1a1a1a; }
.ui-style-11 body { background: #fff; color: #333; }
.ui-style-12 body { background: #fff5e6; color: #333; }
.ui-style-13 body { background: #f9fafb; color: #333; }
.ui-style-14 body { background: #fff; color: #333; }

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ui-style-0 .site-header,
.ui-style-1 .site-header,
.ui-style-5 .site-header,
.ui-style-6 .site-header,
.ui-style-7 .site-header,
.ui-style-8 .site-header,
.ui-style-9 .site-header {
  background: rgba(20, 20, 20, 0.95);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 24px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.ui-style-0 .site-logo a { color: #00e5ff; }
.ui-style-1 .site-logo a { color: #ff4500; }
.ui-style-2 .site-logo a { color: #ff6b00; }
.ui-style-3 .site-logo a { color: #ff0050; }
.ui-style-4 .site-logo a { color: #e50914; }
.ui-style-5 .site-logo a { color: #e50914; }
.ui-style-6 .site-logo a { color: #5a67d8; }
.ui-style-7 .site-logo a { color: #1e90ff; }
.ui-style-8 .site-logo a { color: #1db954; }
.ui-style-9 .site-logo a { color: #e5e5e5; }
.ui-style-10 .site-logo a { color: #00C75A; }
.ui-style-11 .site-logo a { color: #0099FF; }
.ui-style-12 .site-logo a { color: #FF6700; }
.ui-style-13 .site-logo a { color: #00A1D6; }
.ui-style-14 .site-logo a { color: #1a56db; }

.site-nav {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s;
  flex-shrink: 0;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(0, 0, 0, 0.05);
}

.ui-style-0 .site-nav a:hover,
.ui-style-0 .site-nav a.active,
.ui-style-1 .site-nav a:hover,
.ui-style-1 .site-nav a.active,
.ui-style-5 .site-nav a:hover,
.ui-style-5 .site-nav a.active,
.ui-style-6 .site-nav a:hover,
.ui-style-6 .site-nav a.active,
.ui-style-7 .site-nav a:hover,
.ui-style-7 .site-nav a.active,
.ui-style-8 .site-nav a:hover,
.ui-style-8 .site-nav a.active,
.ui-style-9 .site-nav a:hover,
.ui-style-9 .site-nav a.active {
  background: rgba(255, 255, 255, 0.1);
}

.main-content {
  min-height: calc(100vh - 200px);
  padding: var(--spacing-md) 0;
}

.hero-section {
  padding: var(--spacing-xl) 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(255, 0, 123, 0.1));
  margin-bottom: var(--spacing-lg);
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.9;
}

.intro-section {
  margin-bottom: var(--spacing-lg);
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.intro-content p {
  line-height: 1.8;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.5);
  padding: var(--spacing-md);
  border-radius: 12px;
}

.ui-style-0 .intro-content p,
.ui-style-1 .intro-content p,
.ui-style-5 .intro-content p,
.ui-style-6 .intro-content p,
.ui-style-7 .intro-content p,
.ui-style-8 .intro-content p,
.ui-style-9 .intro-content p {
  background: rgba(255, 255, 255, 0.05);
}

.video-section {
  margin-bottom: var(--spacing-xl);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
}

.section-more {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.section-more:hover {
  opacity: 1;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ui-style-0 .video-card,
.ui-style-1 .video-card,
.ui-style-5 .video-card,
.ui-style-6 .video-card,
.ui-style-7 .video-card,
.ui-style-8 .video-card,
.ui-style-9 .video-card {
  background: rgba(255, 255, 255, 0.05);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-cover {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: #f0f0f0;
}

.ui-style-0 .video-cover,
.ui-style-1 .video-cover,
.ui-style-5 .video-cover,
.ui-style-6 .video-cover,
.ui-style-7 .video-cover,
.ui-style-8 .video-cover,
.ui-style-9 .video-cover {
  background: rgba(255, 255, 255, 0.1);
}

.video-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #000;
}

.video-info {
  padding: var(--spacing-sm);
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: 8px;
  font-size: 13px;
  opacity: 0.7;
}

.meta-item::after {
  content: '·';
  margin-left: var(--spacing-xs);
}

.meta-item:last-child::after {
  content: '';
}

.video-one-line {
  font-size: 14px;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-header {
  max-width: 1400px;
  margin: 0 auto var(--spacing-xl);
  padding: 0 var(--spacing-md);
  text-align: center;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.page-desc {
  font-size: 16px;
  opacity: 0.8;
  line-height: 1.8;
}

.top-list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.top-list-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ui-style-0 .top-list-item,
.ui-style-1 .top-list-item,
.ui-style-5 .top-list-item,
.ui-style-6 .top-list-item,
.ui-style-7 .top-list-item,
.ui-style-8 .top-list-item,
.ui-style-9 .top-list-item {
  background: rgba(255, 255, 255, 0.05);
}

.top-list-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.top-item-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  text-decoration: none;
  color: inherit;
}

.top-rank {
  font-size: 32px;
  font-weight: 700;
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.top-rank--top {
  color: #ff4500;
}

.top-item-cover {
  width: 160px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

.ui-style-0 .top-item-cover,
.ui-style-1 .top-item-cover,
.ui-style-5 .top-item-cover,
.ui-style-6 .top-item-cover,
.ui-style-7 .top-item-cover,
.ui-style-8 .top-item-cover,
.ui-style-9 .top-item-cover {
  background: rgba(255, 255, 255, 0.1);
}

.top-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-item-info {
  flex: 1;
  min-width: 0;
}

.top-item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.top-item-meta {
  display: flex;
  gap: var(--spacing-sm);
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.top-item-desc {
  font-size: 14px;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.grouped-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.group {
  margin-bottom: var(--spacing-xl);
}

.group-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.ui-style-0 .group-title,
.ui-style-1 .group-title,
.ui-style-5 .group-title,
.ui-style-6 .group-title,
.ui-style-7 .group-title,
.ui-style-8 .group-title,
.ui-style-9 .group-title {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.layout-with-sidebar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--spacing-lg);
}

.layout__side--filters {
  position: sticky;
  top: 100px;
  align-self: start;
  background: #fff;
  padding: var(--spacing-md);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ui-style-0 .layout__side--filters,
.ui-style-1 .layout__side--filters,
.ui-style-5 .layout__side--filters,
.ui-style-6 .layout__side--filters,
.ui-style-7 .layout__side--filters,
.ui-style-8 .layout__side--filters,
.ui-style-9 .layout__side--filters {
  background: rgba(255, 255, 255, 0.05);
}

.layout__side--filters h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 16px;
  font-weight: 600;
}

.filter-list {
  list-style: none;
}

.filter-list li {
  margin-bottom: 8px;
}

.filter-list a {
  color: inherit;
  text-decoration: none;
  padding: 6px 12px;
  display: block;
  border-radius: 6px;
  transition: background 0.3s;
}

.filter-list a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.ui-style-0 .filter-list a:hover,
.ui-style-1 .filter-list a:hover,
.ui-style-5 .filter-list a:hover,
.ui-style-6 .filter-list a:hover,
.ui-style-7 .filter-list a:hover,
.ui-style-8 .filter-list a:hover,
.ui-style-9 .filter-list a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.video-player-section {
  max-width: 1400px;
  margin: 0 auto var(--spacing-lg);
  padding: 0 var(--spacing-md);
}

.video-player {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.player-play-btn:hover {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 32px;
  color: #000;
  margin-left: 4px;
}

.detail-header {
  max-width: 1400px;
  margin: 0 auto var(--spacing-lg);
  padding: 0 var(--spacing-md);
  text-align: center;
}

.detail-title {
  font-size: 36px;
  font-weight: 700;
}

.detail-module {
  max-width: 1200px;
  margin: 0 auto var(--spacing-lg);
  padding: 0 var(--spacing-md);
}

.module-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.ui-style-0 .module-title,
.ui-style-1 .module-title,
.ui-style-5 .module-title,
.ui-style-6 .module-title,
.ui-style-7 .module-title,
.ui-style-8 .module-title,
.ui-style-9 .module-title {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.module-content {
  line-height: 1.8;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-sm);
}

.info-item {
  display: flex;
  padding: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
}

.ui-style-0 .info-item,
.ui-style-1 .info-item,
.ui-style-5 .info-item,
.ui-style-6 .info-item,
.ui-style-7 .info-item,
.ui-style-8 .info-item,
.ui-style-9 .info-item {
  background: rgba(255, 255, 255, 0.05);
}

.info-label {
  font-weight: 600;
  min-width: 80px;
  opacity: 0.7;
}

.info-value {
  flex: 1;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tag-item {
  padding: 6px 16px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 20px;
  font-size: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.video-card--related {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ui-style-0 .video-card--related,
.ui-style-1 .video-card--related,
.ui-style-5 .video-card--related,
.ui-style-6 .video-card--related,
.ui-style-7 .video-card--related,
.ui-style-8 .video-card--related,
.ui-style-9 .video-card--related {
  background: rgba(255, 255, 255, 0.05);
}

.video-card--related:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.site-footer {
  background: rgba(0, 0, 0, 0.05);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
  text-align: center;
}

.ui-style-0 .site-footer,
.ui-style-1 .site-footer,
.ui-style-5 .site-footer,
.ui-style-6 .site-footer,
.ui-style-7 .site-footer,
.ui-style-8 .site-footer,
.ui-style-9 .site-footer {
  background: rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-sm);
  }

  .section-title {
    font-size: 20px;
  }

  .page-title {
    font-size: 28px;
  }

  .detail-title {
    font-size: 24px;
  }

  .module-title {
    font-size: 20px;
  }

  .site-nav {
    gap: var(--spacing-sm);
  }

  .site-nav a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .layout__side--filters {
    position: static;
  }

  .top-item-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-rank {
    font-size: 24px;
    width: auto;
  }

  .top-item-cover {
    width: 100%;
    height: 200px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .video-cover {
    padding-top: 70%;
  }

  .video-card--related .video-cover {
    padding-top: 56.25%;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
