* {
  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: #e0e0e0;
  background-color: #0a0a0a;
}

.ui-style-8 {
  --primary-color: #00C75A;
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
}

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

.site-header {
  background-color: var(--bg-dark);
  border-bottom: 1px solid #2a2a2a;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 25px;
  white-space: nowrap;
  overflow-x: auto;
}

.main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.hero-section {
  padding: 40px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.hero-title {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 30px;
  line-height: 1.4;
}

.hero-banner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.intro-section {
  padding: 40px 0;
  background-color: var(--bg-card);
}

.intro-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.video-list-section {
  padding: 50px 0;
}

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

.section-title {
  font-size: 26px;
  color: var(--text-primary);
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

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

.video-card {
  background-color: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 199, 90, 0.2);
}

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

.video-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #2a2a2a;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.site-footer {
  background-color: var(--bg-dark);
  padding: 30px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--text-primary);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

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

.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-color: rgba(0, 199, 90, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

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

.player-play-icon {
  font-size: 36px;
  color: white;
  display: block;
  margin-left: 5px;
}

.video-header-section {
  padding: 30px 0 20px;
}

.video-main-title {
  font-size: 32px;
  color: var(--text-primary);
  text-align: center;
}

.video-basic-info {
  padding: 30px 0;
  background-color: var(--bg-card);
}

.info-title {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

.info-list dt {
  color: var(--text-secondary);
  font-weight: bold;
}

.info-list dd {
  color: var(--text-primary);
}

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

.module-title {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

.module-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

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

.tag {
  display: inline-block;
  padding: 6px 15px;
  background-color: rgba(0, 199, 90, 0.2);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 14px;
}

.related-section {
  padding: 50px 0;
  background-color: var(--bg-card);
}

.page--grid .page-header {
  padding: 40px 0 20px;
}

.page-header h1 {
  font-size: 32px;
  color: var(--text-primary);
  text-align: center;
}

.page-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 15px;
  font-size: 16px;
}

.filter-bar {
  padding: 20px 0;
  text-align: center;
}

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

.page--top .top-list {
  padding: 40px 0;
}

.top-list__items {
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
}

.top-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background-color: var(--bg-card);
  margin-bottom: 15px;
  border-radius: 8px;
  transition: transform 0.3s;
}

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

.rank-badge {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 50px;
  text-align: center;
}

.top-item__cover {
  width: 120px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.top-item__info {
  flex: 1;
}

.top-item__title {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.top-item__desc {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .main-nav {
    font-size: 14px;
    gap: 15px;
  }

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

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

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

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

  .video-cover {
    aspect-ratio: 3 / 2;
  }

  .player-play-btn {
    width: 60px;
    height: 60px;
  }

  .player-play-icon {
    font-size: 28px;
  }

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

  .top-item__cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
