* {
  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: 0 20px;
  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: 30px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

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

.site-nav a:hover {
  color: #000;
}

.home-main {
  padding-bottom: 60px;
}

.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: 18px;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

.intro-section {
  background: #fff;
  padding: 40px 20px;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

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

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 4px solid #667eea;
}

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

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

.video-card:hover {
  transform: translateY(-4px);
  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;
  padding-top: 56.25%;
  background: #e0e0e0;
  overflow: hidden;
}

.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: 50px;
  height: 50px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.video-info {
  padding: 16px;
}

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

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

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

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

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

.page-header h1 {
  font-size: 32px;
  margin-bottom: 12px;
  color: #333;
}

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

.filter-bar {
  background: #fff;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-label {
  font-weight: 500;
  color: #333;
}

.filter-tag {
  padding: 6px 16px;
  border-radius: 20px;
  background: #f0f0f0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-tag.active {
  background: #667eea;
  color: #fff;
}

.pagination {
  text-align: center;
  padding: 40px 0;
}

.page-current {
  padding: 10px 20px;
  background: #667eea;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
}

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

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

.layout__side--filters h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.filter-group p {
  margin-bottom: 8px;
  color: #666;
  font-size: 14px;
}

.side-desc {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  font-size: 13px;
  color: #999;
  line-height: 1.6;
}

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

.top-item {
  background: #fff;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 60px 120px 1fr;
  gap: 20px;
  align-items: center;
  transition: box-shadow 0.3s;
}

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

.top-rank {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

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

.top-info {
  min-width: 0;
}

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

.top-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

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

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

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

.grouped-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.group {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
}

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

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

.detail-main {
  background: #fff;
}

.video-player-section {
  background: #000;
  padding: 20px 0;
}

.video-player {
  max-width: 1200px;
  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: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

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

.video-detail {
  padding: 40px 0;
}

.detail-title {
  font-size: 36px;
  margin-bottom: 30px;
  color: #333;
}

.detail-info {
  background: #f9f9f9;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 40px;
}

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

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

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

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

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

.detail-module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid #667eea;
}

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

.module-content p {
  margin-bottom: 12px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.tag-item {
  padding: 6px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #555;
}

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

.video-card--related {
  background: #f9f9f9;
}

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

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

.footer-container p {
  font-size: 14px;
  opacity: 0.8;
}

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

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

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

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

  .site-nav {
    gap: 16px;
    font-size: 14px;
  }

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

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

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

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

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

  .layout__side--filters {
    position: static;
  }

  .top-item {
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
  }

  .top-cover {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .top-info {
    grid-column: 2;
    grid-row: 1;
  }

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

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

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

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

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

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

.ui-style-0 {
  --primary-color: #000;
  --accent-color: #ff6b6b;
}

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

.ui-style-0 .site-logo a,
.ui-style-0 .site-nav a {
  color: #fff;
}

.ui-style-0 .hero-section {
  background: linear-gradient(135deg, #000 0%, #333 100%);
}

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

.ui-style-2 .hero-section {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  color: #333;
}

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

.ui-style-4 .top-rank {
  background: #ff0000;
}

.ui-style-5 .site-header {
  background: #141414;
}

.ui-style-5 .site-logo a,
.ui-style-5 .site-nav a {
  color: #fff;
}

.ui-style-6 .hero-section {
  background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
}

.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #0277bd 0%, #01579b 100%);
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
}

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

.ui-style-9 .site-logo a,
.ui-style-9 .site-nav a {
  color: #fff;
}

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

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #0099ff 0%, #0077cc 100%);
}

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

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

.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}
