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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "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: #1a1a1a;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links li a {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,0.85);
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 15px;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.main-content {
  min-height: calc(100vh - 140px);
}

.hero-section {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 18px;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

.site-intro {
  background: #fff;
  padding: 40px 20px;
  margin-bottom: 40px;
}

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

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

.section-title {
  font-size: 28px;
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 4px solid #333;
}

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

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

.video-card__link {
  display: block;
}

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

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

.video-info {
  padding: 16px;
}

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

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

.video-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #999;
}

.video-meta span {
  position: relative;
}

.video-meta span:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -7px;
}

.page-header {
  background: #fff;
  padding: 40px;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.page-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

.page--l3 .top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page--l3 .top-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s ease;
}

.page--l3 .top-item:hover {
  background: #f9f9f9;
}

.page--l3 .top-item:last-child {
  border-bottom: none;
}

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

.top-item:nth-child(1) .top-rank { color: #ff4444; }
.top-item:nth-child(2) .top-rank { color: #ff8800; }
.top-item:nth-child(3) .top-rank { color: #ffbb00; }

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

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

.top-info {
  flex: 1;
}

.top-info .video-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.top-info .video-title a {
  color: #333;
  transition: color 0.3s ease;
}

.top-info .video-title a:hover {
  color: #000;
}

.video-player-section {
  background: #000;
  padding: 40px 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;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-content {
  background: #fff;
  padding: 40px;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-header h1 {
  font-size: 36px;
  margin-bottom: 24px;
  color: #333;
  line-height: 1.4;
}

.detail-module {
  margin: 40px 0;
  padding: 24px 0;
  border-top: 1px solid #f0f0f0;
}

.detail-module:first-of-type {
  border-top: none;
}

.detail-module h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #333;
}

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

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 24px;
  font-size: 15px;
}

.info-list dt {
  color: #999;
  font-weight: normal;
}

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

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.tag:hover {
  background: #e0e0e0;
  color: #333;
}

.module-related .video-grid {
  margin-top: 24px;
}

.site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 24px 20px;
  margin-top: 60px;
}

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

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

.ui-style-8 .nav-links li a.active {
  background: var(--primary-color);
  color: #fff;
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #008040 100%);
}

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

.ui-style-8 .player-play-btn {
  background: var(--primary-color);
}

.ui-style-8 .player-play-btn:hover {
  background: var(--primary-dark);
}

.ui-style-8 .player-play-icon {
  color: #fff;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

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

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

@media (max-width: 768px) {
  .nav-container {
    padding: 0 12px;
    height: auto;
    min-height: 56px;
  }

  .nav-logo {
    font-size: 20px;
  }

  .nav-links {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .nav-links li a {
    padding: 6px 12px;
    font-size: 14px;
  }

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

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

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

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

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

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

  .page-header {
    padding: 24px 16px;
  }

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

  .top-item {
    flex-wrap: wrap;
    padding: 16px;
  }

  .top-rank {
    min-width: 40px;
    font-size: 20px;
  }

  .top-cover {
    width: 80px;
    margin: 0 12px;
  }

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

  .detail-content {
    padding: 24px 16px;
  }

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

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 8px 16px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
