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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 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 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

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

.site-nav {
  display: flex;
  gap: 25px;
  white-space: nowrap;
  overflow: visible;
}

.nav-link {
  color: #666;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #1890ff;
}

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

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 8px;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 15px;
}

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

.intro-section {
  margin-bottom: 40px;
}

.intro-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-module {
  margin-bottom: 40px;
}

.module-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1890ff;
}

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

.video-card {
  background: white;
  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 4px 16px rgba(0,0,0,0.2);
}

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

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

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.page-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

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

.top-list__items {
  list-style: none;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.top-list__item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  gap: 20px;
}

.top-list__item:last-child {
  border-bottom: none;
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: #1890ff;
  min-width: 50px;
  text-align: center;
}

.top-cover {
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}

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

.top-info {
  flex: 1;
}

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

.video-player-section {
  margin-bottom: 40px;
}

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

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

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

.player-play-btn:hover {
  background: #1890ff;
  color: white;
}

.player-play-icon {
  font-size: 36px;
}

.detail-page {
  background: white;
  padding: 40px 0;
}

.detail-title {
  font-size: 36px;
  margin-bottom: 30px;
  text-align: center;
}

.detail-info,
.detail-module,
.related-section {
  margin-bottom: 40px;
}

.detail-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1890ff;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px 20px;
}

.info-list dt {
  font-weight: bold;
  color: #666;
}

.info-list dd {
  color: #333;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

@media (max-width: 768px) {
  .site-nav {
    gap: 15px;
    font-size: 14px;
  }

  .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: 75%;
  }

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

  .top-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .top-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

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

  .info-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.ui-style-0 body { background: #000; color: #fff; }
.ui-style-0 .site-header { background: #111; }
.ui-style-0 .site-logo { color: #fff; }
.ui-style-0 .video-card { background: #1a1a1a; }
.ui-style-0 .intro-content { background: #1a1a1a; }

.ui-style-1 { --accent: #ff6b35; }
.ui-style-1 .hero-section { background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); }

.ui-style-2 { --accent: #52c41a; }
.ui-style-2 .hero-section { background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%); }

.ui-style-3 { --accent: #ff4d4f; }
.ui-style-3 .hero-section { background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%); }

.ui-style-4 body { background: #fafafa; }

.ui-style-5 body { background: #0a0a0a; color: #eee; }
.ui-style-5 .site-header { background: #1a1a1a; }
.ui-style-5 .site-logo { color: #eee; }

.ui-style-6 { --accent: #1890ff; }

.ui-style-7 { --accent: #faad14; }
.ui-style-7 .hero-section { background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%); }

.ui-style-8 { --accent: #13c2c2; }
.ui-style-8 .hero-section { background: linear-gradient(135deg, #13c2c2 0%, #36cfc9 100%); }

.ui-style-9 body { background: #000; }
.ui-style-9 .site-header { background: #0a0a0a; }

.ui-style-10 { --accent: #00C75A; }
.ui-style-10 .hero-section { background: linear-gradient(135deg, #00C75A 0%, #00e676 100%); }

.ui-style-11 { --accent: #0099FF; }
.ui-style-11 .hero-section { background: linear-gradient(135deg, #0099FF 0%, #40a9ff 100%); }

.ui-style-12 { --accent: #FF6700; }
.ui-style-12 .hero-section { background: linear-gradient(135deg, #FF6700 0%, #ff9c6e 100%); }

.ui-style-13 { --accent: #00A1D6; }
.ui-style-13 .hero-section { background: linear-gradient(135deg, #00A1D6 0%, #FB7299 100%); }

.ui-style-14 { --accent: #2e5090; }
.ui-style-14 .hero-section { background: linear-gradient(135deg, #2e5090 0%, #5b7fc7 100%); }
