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

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

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

.site-nav {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

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

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

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

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

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

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

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

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

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

.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007bff;
  color: #333;
}

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

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

.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: #e0e0e0;
}

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

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.video-info {
  padding: 15px;
}

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

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

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

.list-main .container {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #007bff;
}

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

.page-header p {
  font-size: 15px;
  color: #666;
}

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

.layout__side--filters {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.layout__side--filters h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

.filter-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

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

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

.top-list__item:hover {
  background: #f0f0f0;
}

.rank-badge {
  width: 40px;
  height: 40px;
  background: #007bff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.top-list__item:nth-child(1) .rank-badge {
  background: #ffd700;
}

.top-list__item:nth-child(2) .rank-badge {
  background: #c0c0c0;
}

.top-list__item:nth-child(3) .rank-badge {
  background: #cd7f32;
}

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

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

.top-item-info {
  flex: 1;
}

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

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

.top-item-title a:hover {
  color: #007bff;
}

.page--grouped .group {
  margin-bottom: 40px;
}

.group__title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 4px solid #007bff;
  color: #333;
}

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

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

.video-player {
  max-width: 900px;
  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: rgba(255,255,255,1);
  transform: translate(-50%, -50%) scale(1.1);
}

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

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

.detail-header {
  margin: 30px 0;
}

.detail-header h1 {
  font-size: 32px;
  color: #333;
  line-height: 1.4;
}

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

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

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

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

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

.detail-module {
  margin-bottom: 30px;
  padding: 25px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.detail-module h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 2px solid #007bff;
}

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

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

.tag {
  display: inline-block;
  padding: 6px 15px;
  background: #007bff;
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
}

.related-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.related-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

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

.site-footer p {
  font-size: 14px;
}

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

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

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

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .site-logo {
    text-align: center;
  }

  .site-nav {
    justify-content: space-between;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav a {
    font-size: 14px;
    padding: 6px 10px;
  }

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

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

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

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

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

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

  .layout__side--filters {
    margin-bottom: 20px;
  }

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

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

  .detail-header h1 {
    font-size: 24px;
  }

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

.ui-style-0 body { background: #000; color: #fff; }
.ui-style-0 .site-header { background: #1a1a1a; }
.ui-style-0 .site-logo a { color: #fff; }
.ui-style-0 .video-card { background: #2a2a2a; }
.ui-style-0 .video-title { color: #fff; }

.ui-style-1 body { background: #0a0a0a; color: #f0f0f0; }
.ui-style-1 .hero-section { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%); }

.ui-style-2 body { background: #ffffff; }
.ui-style-2 .hero-section { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.ui-style-3 body { background: #fafafa; }
.ui-style-3 .site-nav a.active { background: #ff1744; }

.ui-style-4 body { background: #f5f5f5; }
.ui-style-4 .hero-section { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.ui-style-5 body { background: #141414; color: #fff; }
.ui-style-5 .site-header { background: #1f1f1f; }
.ui-style-5 .video-card { background: #2a2a2a; }

.ui-style-6 body { background: #0f1b2e; color: #e5e5e5; }
.ui-style-6 .site-header { background: #1a2942; }
.ui-style-6 .hero-section { background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%); }

.ui-style-7 body { background: #0d1117; color: #c9d1d9; }
.ui-style-7 .hero-section { background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%); }

.ui-style-8 body { background: #181818; color: #e0e0e0; }
.ui-style-8 .hero-section { background: linear-gradient(135deg, #1db954 0%, #1ed760 100%); }

.ui-style-9 body { background: #000000; color: #ffffff; }
.ui-style-9 .site-header { background: #0a0a0a; }
.ui-style-9 .hero-section { background: linear-gradient(135deg, #8e44ad 0%, #3498db 100%); }

.ui-style-10 body { background: #f0fff4; }
.ui-style-10 .hero-section { background: linear-gradient(135deg, #00c75a 0%, #00e676 100%); }
.ui-style-10 .site-nav a.active { background: #00c75a; }

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

.ui-style-12 body { background: #fff8e1; }
.ui-style-12 .hero-section { background: linear-gradient(135deg, #ff6700 0%, #ff8c42 100%); }
.ui-style-12 .site-nav a.active { background: #ff6700; }

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

.ui-style-14 body { background: #ffffff; }
.ui-style-14 .hero-section { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
