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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "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;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

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

.site-nav {
  display: flex;
  gap: 24px;
  white-space: nowrap;
}

.site-nav a {
  color: #666;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

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

.site-main {
  min-height: calc(100vh - 180px);
  padding: 24px 0;
}

.hero-section {
  background: #fff;
  padding: 48px 0;
  margin-bottom: 32px;
  border-radius: 8px;
}

.page-title {
  font-size: 28px;
  margin-bottom: 16px;
  line-height: 1.4;
  color: #111;
}

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

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

.section-title {
  font-size: 24px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1890ff;
  color: #111;
}

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

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

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

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

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

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

.video-info {
  padding: 16px;
}

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

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

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

.video-meta span {
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 4px;
}

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

.page-header .page-title {
  font-size: 32px;
}

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

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

.top-list__item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

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

.top-cover {
  width: 100px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
}

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.top-title a {
  color: #111;
  text-decoration: none;
}

.top-title a:hover {
  color: #1890ff;
}

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

.top-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.layout__with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
}

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

.side-title {
  font-size: 20px;
  margin-bottom: 16px;
  color: #111;
}

.group {
  margin-bottom: 48px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 24px;
  color: #111;
  padding-left: 12px;
  border-left: 4px solid #1890ff;
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

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

.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;
  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: #1890ff;
  margin-left: 4px;
}

.detail-page .container {
  max-width: 900px;
}

.detail-header {
  margin-bottom: 32px;
}

.detail-title {
  font-size: 36px;
  line-height: 1.3;
  color: #111;
}

.detail-info,
.detail-module,
.related-section {
  background: #fff;
  padding: 32px;
  margin-bottom: 24px;
  border-radius: 8px;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px 24px;
  font-size: 15px;
}

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

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

.detail-module p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

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

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

.site-footer {
  background: #fff;
  padding: 32px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
  border-top: 1px solid #eee;
}

.ui-style-0 {
  --primary-color: #ff0050;
}

.ui-style-0 .site-nav a.active,
.ui-style-0 .site-nav a:hover,
.ui-style-0 .top-rank {
  color: #ff0050;
}

.ui-style-0 .section-title {
  border-bottom-color: #ff0050;
}

.ui-style-1 {
  --primary-color: #ff4500;
}

.ui-style-1 .site-nav a.active,
.ui-style-1 .site-nav a:hover,
.ui-style-1 .top-rank {
  color: #ff4500;
}

.ui-style-1 .section-title {
  border-bottom-color: #ff4500;
}

.ui-style-2 {
  --primary-color: #ff6b35;
}

.ui-style-2 .site-nav a.active,
.ui-style-2 .site-nav a:hover,
.ui-style-2 .top-rank {
  color: #ff6b35;
}

.ui-style-2 .section-title {
  border-bottom-color: #ff6b35;
}

.ui-style-3 {
  --primary-color: #ff0844;
}

.ui-style-3 .site-nav a.active,
.ui-style-3 .site-nav a:hover,
.ui-style-3 .top-rank {
  color: #ff0844;
}

.ui-style-3 .section-title {
  border-bottom-color: #ff0844;
}

.ui-style-4 {
  --primary-color: #e50914;
}

.ui-style-4 .site-nav a.active,
.ui-style-4 .site-nav a:hover,
.ui-style-4 .top-rank {
  color: #e50914;
}

.ui-style-4 .section-title {
  border-bottom-color: #e50914;
}

.ui-style-5 {
  --primary-color: #1890ff;
}

.ui-style-5 .site-nav a.active,
.ui-style-5 .site-nav a:hover,
.ui-style-5 .top-rank {
  color: #1890ff;
}

.ui-style-5 .section-title {
  border-bottom-color: #1890ff;
}

.ui-style-6 {
  --primary-color: #00b4d8;
}

.ui-style-6 .site-nav a.active,
.ui-style-6 .site-nav a:hover,
.ui-style-6 .top-rank {
  color: #00b4d8;
}

.ui-style-6 .section-title {
  border-bottom-color: #00b4d8;
}

.ui-style-7 {
  --primary-color: #0077b6;
}

.ui-style-7 .site-nav a.active,
.ui-style-7 .site-nav a:hover,
.ui-style-7 .top-rank {
  color: #0077b6;
}

.ui-style-7 .section-title {
  border-bottom-color: #0077b6;
}

.ui-style-8 {
  --primary-color: #00c896;
}

.ui-style-8 .site-nav a.active,
.ui-style-8 .site-nav a:hover,
.ui-style-8 .top-rank {
  color: #00c896;
}

.ui-style-8 .section-title {
  border-bottom-color: #00c896;
}

.ui-style-9 {
  --primary-color: #111;
}

.ui-style-9 .site-nav a.active,
.ui-style-9 .site-nav a:hover,
.ui-style-9 .top-rank {
  color: #111;
}

.ui-style-9 .section-title {
  border-bottom-color: #111;
}

.ui-style-10 {
  --primary-color: #00c75a;
}

.ui-style-10 .site-nav a.active,
.ui-style-10 .site-nav a:hover,
.ui-style-10 .top-rank {
  color: #00c75a;
}

.ui-style-10 .section-title {
  border-bottom-color: #00c75a;
}

.ui-style-11 {
  --primary-color: #0099ff;
}

.ui-style-11 .site-nav a.active,
.ui-style-11 .site-nav a:hover,
.ui-style-11 .top-rank {
  color: #0099ff;
}

.ui-style-11 .section-title {
  border-bottom-color: #0099ff;
}

.ui-style-12 {
  --primary-color: #ff6700;
}

.ui-style-12 .site-nav a.active,
.ui-style-12 .site-nav a:hover,
.ui-style-12 .top-rank {
  color: #ff6700;
}

.ui-style-12 .section-title {
  border-bottom-color: #ff6700;
}

.ui-style-13 {
  --primary-color: #00a1d6;
}

.ui-style-13 .site-nav a.active,
.ui-style-13 .site-nav a:hover,
.ui-style-13 .top-rank {
  color: #00a1d6;
}

.ui-style-13 .section-title {
  border-bottom-color: #00a1d6;
}

.ui-style-14 {
  --primary-color: #005aa0;
}

.ui-style-14 .site-nav a.active,
.ui-style-14 .site-nav a:hover,
.ui-style-14 .top-rank {
  color: #005aa0;
}

.ui-style-14 .section-title {
  border-bottom-color: #005aa0;
}

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

  .site-nav {
    gap: 16px;
    font-size: 14px;
    overflow-x: auto;
    width: 100%;
    justify-content: space-between;
  }

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

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

  .video-info {
    padding: 12px;
  }

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

  .video-one-line {
    font-size: 12px;
  }

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

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

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

  .layout__side--filters {
    position: static;
  }

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

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

  .top-cover {
    width: 80px;
    height: 112px;
  }

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

  .detail-info,
  .detail-module,
  .related-section {
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }

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