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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.site-nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 24px;
  font-weight: bold;
  color: #e74c3c;
}

.nav-links {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.nav-links a {
  color: #555;
  font-weight: 500;
  transition: color 0.3s;
  flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e74c3c;
}

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

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

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

.intro-section {
  background: #fff;
  padding: 40px 0;
  margin: 30px 0;
}

.intro-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  text-align: justify;
}

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

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: #e74c3c;
  border-radius: 2px;
}

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

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

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

.video-card__link {
  display: block;
}

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

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

.play-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 .play-overlay {
  opacity: 1;
}

.play-icon {
  font-size: 48px;
  color: #fff;
}

.video-info {
  padding: 20px;
}

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

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

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

.list-main {
  padding: 40px 0;
  min-height: 70vh;
}

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

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

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

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

.top-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.top-item:hover {
  transform: translateX(5px);
}

.top-link {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 20px;
}

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

.top-item .video-cover {
  width: 120px;
  min-width: 120px;
  padding-top: 0;
  height: 160px;
}

.top-item .video-cover img {
  position: relative;
}

.top-item .video-info {
  flex: 1;
  padding: 0;
}

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

.group__title {
  font-size: 24px;
  margin-bottom: 25px;
  color: #333;
  padding-left: 15px;
  border-left: 4px solid #e74c3c;
}

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

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

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

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

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

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

.player-play-btn:hover {
  background: #e74c3c;
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 36px;
  color: #fff;
  display: block;
  line-height: 1;
}

.video-detail {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-top: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

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

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

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

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

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

.content-module {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.content-module:last-of-type {
  border-bottom: none;
}

.content-module h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
}

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

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

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

.tag:hover {
  background: #e74c3c;
  color: #fff;
}

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

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

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

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

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

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

  .nav-links {
    gap: 15px;
    font-size: 14px;
  }

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

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

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

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

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

  .video-info {
    padding: 15px;
  }

  .video-detail {
    padding: 25px 20px;
  }

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

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

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

  .top-rank {
    align-self: flex-start;
  }

  .top-item .video-cover {
    width: 100%;
    height: auto;
    padding-top: 140%;
  }
}

.ui-style-0 body {
  background: #000;
  color: #fff;
}

.ui-style-0 .site-nav,
.ui-style-0 .video-card,
.ui-style-0 .video-detail,
.ui-style-0 .intro-section,
.ui-style-0 .basic-info,
.ui-style-0 .top-item {
  background: #1a1a1a;
  color: #fff;
}

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

.ui-style-1 body {
  background: #0f0f0f;
  color: #fff;
}

.ui-style-1 .nav-logo {
  color: #ff6b35;
}

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

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

.ui-style-3 .nav-logo {
  color: #ff2d55;
}

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

.ui-style-5 body {
  background: #141414;
  color: #fff;
}

.ui-style-5 .site-nav,
.ui-style-5 .video-card,
.ui-style-5 .video-detail,
.ui-style-5 .top-item {
  background: #1f1f1f;
  color: #fff;
}

.ui-style-6 body {
  background: #0b1929;
  color: #fff;
}

.ui-style-6 .site-nav,
.ui-style-6 .video-card,
.ui-style-6 .video-detail {
  background: #152238;
  color: #fff;
}

.ui-style-7 body {
  background: #000b25;
  color: #fff;
}

.ui-style-8 body {
  background: #0d0d0d;
  color: #fff;
}

.ui-style-8 .nav-logo {
  color: #1ed760;
}

.ui-style-9 body {
  background: #000;
  color: #fff;
}

.ui-style-9 .site-nav,
.ui-style-9 .video-card,
.ui-style-9 .video-detail {
  background: #0a0a0a;
  color: #fff;
}

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

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

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

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

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

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

.ui-style-14 body {
  background: #f5f7fa;
}
