
/* UI Style 8 - Green Brand (深灰/黑 + 白文字 + 绿色品牌点缀) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-color: #00C75A;
  --bg-dark: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-light: #ffffff;
  --text-secondary: #b3b3b3;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

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

/* Header & Navigation */
.site-header {
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--brand-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-color);
}

/* Main Content */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-dark) 100%);
  border-radius: 12px;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--brand-color);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* Intro Section */
.intro-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.intro-section h2 {
  color: var(--brand-color);
  margin-bottom: 1rem;
}

/* Video Module */
.video-module {
  margin-bottom: 3rem;
}

.video-module h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--brand-color);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-color);
}

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

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

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

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

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

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

.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.9rem;
  color: var(--brand-color);
  margin-bottom: 0.5rem;
}

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

/* List Pages */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--brand-color);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Top List (L3) */
.top-list__items {
  list-style: none;
}

.top-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  transition: transform 0.3s;
}

.top-item:hover {
  transform: translateX(5px);
  box-shadow: -4px 0 0 var(--brand-color);
}

.top-rank {
  font-size: 2rem;
  font-weight: bold;
  color: var(--brand-color);
  min-width: 50px;
  text-align: center;
}

.top-item a {
  display: flex;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.top-item .video-cover {
  width: 200px;
  flex-shrink: 0;
}

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

/* Detail Pages */
.detail-page {
  max-width: 1000px;
}

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

.video-player {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--brand-color);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

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

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

.detail-header h1 {
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.detail-info, .detail-module, .related-section {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.detail-info h2, .detail-module h2, .related-section h2 {
  color: var(--brand-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-item {
  padding: 0.5rem 0;
}

.info-item strong {
  color: var(--brand-color);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-around;
    gap: 0.5rem;
  }

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

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

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

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

  .top-item .video-cover {
    width: 100%;
  }

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

  .detail-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    font-size: 0.85rem;
    gap: 0.3rem;
  }

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