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

:root {
  --primary-color: #00C75A;
  --bg-dark: #1a1a1a;
  --bg-darker: #0d0d0d;
  --text-light: #ffffff;
  --text-gray: #b3b3b3;
  --border-color: #333;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--bg-darker);
}

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

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

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

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

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  font-size: 0.95rem;
}

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

.hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.4;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-gray);
}

.intro-section {
  background: var(--bg-dark);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.intro-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-gray);
}

.video-list-section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  padding-left: 0.8rem;
  border-left: 4px solid var(--primary-color);
}

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

.video-card {
  background: var(--bg-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
  border-color: var(--primary-color);
}

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

.video-cover {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  background: var(--bg-darker);
  overflow: hidden;
}

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

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

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.video-one-line {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-footer {
  background: var(--bg-dark);
  border-top: 2px solid var(--primary-color);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  color: var(--text-gray);
}

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

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

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

.detail-page {
  padding-top: 0;
}

.video-player-section {
  background: var(--bg-darker);
  padding: 2rem 0;
}

.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(0, 199, 90, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.player-play-btn:hover {
  background: rgba(0, 199, 90, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 2rem;
  color: white;
}

.video-header-section {
  padding: 2rem 0 1rem;
}

.video-main-title {
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.video-basic-info {
  background: var(--bg-dark);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.info-title {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.8rem;
  max-width: 800px;
}

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

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

.content-module {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.module-title {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--primary-color);
}

.module-content {
  max-width: 800px;
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 1rem;
}

.module-content p {
  margin-bottom: 1rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

.related-section {
  padding: 2.5rem 0;
}

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

.list-page .page-header {
  padding: 2rem 0;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 2rem;
}

.list-page .page-header h1 {
  font-size: 2rem;
  color: var(--text-light);
}

.page--grid {
  padding: 1rem 0;
}

.page--top {
  padding: 1rem 0;
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.top-list__item {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.top-list__item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--card-shadow);
}

.rank-badge {
  min-width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

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

.top-item-content a {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.top-item-cover {
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

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

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

@media (max-width: 768px) {
  .main-nav {
    gap: 0.8rem;
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 1.3rem;
  }

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

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

  .video-info {
    padding: 0.8rem;
  }

  .video-title {
    font-size: 0.95rem;
  }

  .video-meta,
  .video-one-line {
    font-size: 0.8rem;
  }

  .video-main-title {
    font-size: 1.5rem;
  }

  .info-list {
    grid-template-columns: 80px 1fr;
    font-size: 0.9rem;
  }

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

  .top-item-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .top-item-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    gap: 0.8rem;
  }

  .main-nav {
    width: 100%;
    justify-content: space-around;
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .hero-section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.3rem;
  }

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

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