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

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;
}

.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: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.site-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.site-nav a {
  padding: 8px 16px;
  text-decoration: none;
  color: #666;
  white-space: nowrap;
  border-radius: 4px;
  transition: all 0.3s;
}

.site-nav a:hover,
.site-nav a.active {
  background: #007bff;
  color: #fff;
}

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

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

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

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

.site-intro p {
  line-height: 1.8;
  color: #666;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.video-section {
  margin-bottom: 50px;
}

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

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

.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 4px 16px rgba(0,0,0,0.15);
}

.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: 18px;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #999;
}

.page-header {
  margin-bottom: 30px;
}

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

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

.filter-bar {
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.layout__side {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.layout__side h2 {
  margin-bottom: 15px;
}

.filter-stats {
  margin-top: 15px;
  color: #666;
}

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

.top-list__item {
  background: #fff;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  align-items: center;
}

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

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

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

.top-info {
  flex: 1;
}

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

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

.top-info h3 a:hover {
  color: #007bff;
}

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

.top-desc {
  color: #666;
}

.group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 4px solid #007bff;
}

.video-player-section {
  background: #000;
  margin-bottom: 30px;
}

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

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

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

.player-play-btn:hover {
  background: rgba(0,123,255,1);
  transform: translate(-50%, -50%) scale(1.1);
}

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

.detail-main {
  padding-top: 0;
}

.detail-title {
  font-size: 36px;
  margin: 30px 0;
}

.detail-info,
.detail-module {
  background: #fff;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.detail-info h2,
.detail-module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

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

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

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

.detail-module p {
  line-height: 1.8;
  color: #666;
}

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

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
}

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

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

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

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

.ui-style-3 .hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.ui-style-3 .site-nav a:hover,
.ui-style-3 .site-nav a.active {
  background: var(--primary-color);
}

.ui-style-3 .section-title {
  border-bottom-color: var(--primary-color);
}

.ui-style-3 .player-play-btn {
  background: rgba(102, 126, 234, 0.8);
}

.ui-style-3 .player-play-btn:hover {
  background: rgba(102, 126, 234, 1);
}

.ui-style-3 .top-rank {
  color: var(--primary-color);
}

.ui-style-3 .group__title {
  border-left-color: var(--primary-color);
}

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

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

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

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

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

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

  .layout__side {
    position: static;
  }

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

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

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

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

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

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

  .video-info {
    padding: 12px;
  }

  .video-title {
    font-size: 16px;
    -webkit-line-clamp: 2;
  }

  .video-one-line {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
}
