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

.ui-style-8 {
  --primary-color: #00C75A;
  --bg-dark: #141414;
  --text-light: #fff;
  --card-bg: #1e1e1e;
  --hover-color: #00E865;
}

.ui-style-8 body {
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.ui-style-8 .site-header {
  background: #0a0a0a;
  box-shadow: 0 2px 8px rgba(0, 197, 90, 0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-link {
  color: #333;
  text-decoration: none;
}

.ui-style-8 .logo-link {
  color: var(--primary-color);
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-item {
  display: inline-block;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-item--active .nav-link {
  background: #f0f0f0;
  color: #333;
}

.ui-style-8 .nav-link {
  color: #999;
}

.ui-style-8 .nav-link:hover,
.ui-style-8 .nav-item--active .nav-link {
  background: var(--primary-color);
  color: #000;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.ui-style-8 .page-header {
  border-bottom-color: var(--primary-color);
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  color: #222;
}

.ui-style-8 .page-title {
  color: var(--text-light);
}

.content-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #222;
  position: relative;
  padding-left: 1rem;
}

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

.ui-style-8 .section-title {
  color: var(--text-light);
}

.ui-style-8 .section-title::before {
  background: var(--primary-color);
}

.intro-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.ui-style-8 .intro-content p {
  color: #ccc;
}

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

.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;
}

.ui-style-8 .video-card {
  background: var(--card-bg);
}

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

.ui-style-8 .video-card:hover {
  box-shadow: 0 4px 16px rgba(0, 197, 90, 0.3);
}

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

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

.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: 1rem;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-style-8 .video-title {
  color: var(--text-light);
}

.video-one-line {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ui-style-8 .video-one-line {
  color: #999;
}

.video-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 0.85rem;
  color: #999;
  background: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.ui-style-8 .meta-item {
  background: #2a2a2a;
  color: #aaa;
}

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

.top-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  align-items: center;
}

.ui-style-8 .top-item {
  background: var(--card-bg);
}

.top-rank {
  font-size: 2rem;
  font-weight: bold;
  color: #007bff;
  min-width: 3rem;
  text-align: center;
}

.ui-style-8 .top-rank {
  color: var(--primary-color);
}

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

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

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

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

.ui-style-8 .top-title a {
  color: var(--text-light);
}

.ui-style-8 .top-title a:hover {
  color: var(--primary-color);
}

.top-desc {
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.ui-style-8 .top-desc {
  color: #999;
}

.top-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.video-player-section {
  margin-bottom: 2rem;
}

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

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

.detail-header {
  margin-bottom: 2rem;
}

.detail-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #222;
}

.ui-style-8 .detail-title {
  color: var(--text-light);
}

.detail-module {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ui-style-8 .detail-module {
  background: var(--card-bg);
}

.module-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #222;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.ui-style-8 .module-title {
  color: var(--text-light);
  border-bottom-color: var(--primary-color);
}

.module-content p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 0.5rem;
}

.ui-style-8 .module-content p {
  color: #ccc;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

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

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

.ui-style-8 .info-list dt {
  color: #999;
}

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

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: #f0f0f0;
  color: #555;
  border-radius: 20px;
  font-size: 0.9rem;
}

.ui-style-8 .tag-item {
  background: #2a2a2a;
  color: var(--primary-color);
}

.site-footer {
  background: #333;
  color: #fff;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.ui-style-8 .site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--primary-color);
}

.footer-text {
  font-size: 0.9rem;
  color: #ccc;
}

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

  .nav-list {
    gap: 0.3rem;
    font-size: 0.85rem;
    justify-content: center;
  }

  .nav-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }

  .site-main {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

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

  .video-cover {
    aspect-ratio: 16 / 9;
  }

  .video-title {
    font-size: 1rem;
    white-space: normal;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .top-item {
    flex-direction: column;
  }

  .top-cover {
    width: 100%;
  }

  .top-rank {
    font-size: 1.5rem;
  }

  .detail-title {
    font-size: 1.8rem;
  }

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