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

body.ui-style-8 {
  --primary-color: #00C75A;
  --primary-dark: #00a048;
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --border-color: #e5e5e5;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,199,90,0.15);
}

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

.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

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

.site-logo a {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 15px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-color);
  color: #fff;
}

.site-main {
  padding: 32px 0;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 48px 0;
  margin-bottom: 32px;
  border-radius: 12px;
}

.hero-title {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 16px;
  opacity: 0.95;
}

.site-intro {
  margin-bottom: 40px;
}

.intro-content {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

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

.content-section {
  margin-bottom: 48px;
}

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

.section-title {
  font-size: 24px;
  color: var(--text-primary);
  font-weight: 600;
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
}

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

.video-card {
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

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

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

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.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: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  margin-top: 48px;
}

.footer-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

.page-header {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.page-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.video-player-section {
  margin-bottom: 32px;
}

.video-player {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 199, 90, 0.9);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  display: inline-block;
  margin-left: 4px;
}

.detail-main {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.detail-title {
  font-size: 36px;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.detail-section {
  margin-bottom: 32px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 600;
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
}

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

.info-item {
  display: flex;
  gap: 8px;
}

.info-label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 60px;
}

.info-value {
  color: var(--text-secondary);
}

.detail-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

.detail-text p {
  margin-bottom: 12px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  padding: 6px 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.video-card--related {
  box-shadow: var(--shadow);
}

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

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

.top-item {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: center;
  transition: all 0.3s ease;
}

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

.top-rank {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 60px;
  text-align: center;
}

.top-cover {
  width: 120px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.top-info {
  flex: 1;
}

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

.top-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.top-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page--grouped .group {
  margin-bottom: 48px;
}

.group__title {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 600;
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
}

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

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .main-nav {
    justify-content: space-between;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 14px;
    flex-shrink: 0;
  }

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

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

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

  .video-info {
    padding: 12px;
  }

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

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

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

  .detail-main {
    padding: 20px;
  }

  .top-item {
    flex-direction: column;
    text-align: center;
  }

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

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

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
