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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.main-nav a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #333;
  border-bottom-color: #333;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 18px;
  opacity: 0.95;
}

.site-intro {
  background: #fff;
  padding: 40px 0;
  margin: 40px 0;
}

.site-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.video-section {
  margin: 60px 0;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #333;
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px 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: #000;
}

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

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

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

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

.play-icon {
  font-size: 48px;
  color: #fff;
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
}

.video-one-line {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-page {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.page-header {
  margin-bottom: 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.page-desc {
  font-size: 16px;
  color: #666;
}

.top-list__items {
  list-style: none;
}

.top-item {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.top-rank {
  font-size: 36px;
  font-weight: bold;
  color: #667eea;
  min-width: 60px;
  text-align: center;
}

.top-cover {
  width: 120px;
  flex-shrink: 0;
}

.top-cover img {
  width: 100%;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

.top-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.top-info h3 a {
  color: #333;
  text-decoration: none;
}

.top-info h3 a:hover {
  color: #667eea;
}

.group {
  margin-bottom: 60px;
}

.group-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

.detail-page {
  background: #fff;
}

.video-player-section {
  background: #000;
}

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.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;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-header {
  padding: 40px 0 20px;
}

.detail-title {
  font-size: 36px;
  line-height: 1.4;
}

.detail-module {
  margin: 40px 0;
}

.detail-module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.module-content {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.info-item {
  padding: 10px 0;
}

.info-label {
  font-weight: bold;
  color: #333;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
}

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

.site-footer {
  background: #333;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
}

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

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

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

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
  }

  .logo {
    margin-bottom: 10px;
  }

  .main-nav {
    gap: 15px;
    width: 100%;
    justify-content: space-around;
  }

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

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

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

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

  .video-info {
    padding: 12px;
  }

  .video-title {
    font-size: 14px;
  }

  .top-item {
    flex-direction: column;
    text-align: center;
  }

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

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

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

.ui-style-0 body { --primary: #667eea; --secondary: #764ba2; }
.ui-style-1 body { --primary: #ff6b6b; --secondary: #ee5a6f; }
.ui-style-2 body { --primary: #4ecdc4; --secondary: #44a08d; }
.ui-style-3 body { --primary: #f093fb; --secondary: #f5576c; }
.ui-style-4 body { --primary: #fa709a; --secondary: #fee140; }
.ui-style-5 body { --primary: #30cfd0; --secondary: #330867; }
.ui-style-6 body { --primary: #a8edea; --secondary: #fed6e3; }
.ui-style-7 body { --primary: #ff9a56; --secondary: #ffdb3a; }
.ui-style-8 body { --primary: #00d2ff; --secondary: #3a7bd5; }
.ui-style-9 body { --primary: #f857a6; --secondary: #ff5858; }
.ui-style-10 body { --primary: #00c853; --secondary: #64dd17; }
.ui-style-11 body { --primary: #0099ff; --secondary: #ff6b6b; }
.ui-style-12 body { --primary: #ff6700; --secondary: #ffa41b; }
.ui-style-13 body { --primary: #00a1d6; --secondary: #fb7299; }
.ui-style-14 body { --primary: #1e3a8a; --secondary: #f97316; }
