* {
  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 {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.ui-style-8 .site-header {
  background: #000;
  border-bottom: 1px solid #333;
}

body.ui-style-8 .site-logo {
  color: #00C75A;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}

body.ui-style-8 .nav-link {
  color: #e0e0e0;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
  white-space: nowrap;
}

body.ui-style-8 .nav-link:hover {
  color: #00C75A;
}

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

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

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

.site-nav {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.hero-section {
  padding: 3rem 0;
  text-align: center;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
}

body.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #0a4d2c 0%, #00C75A 100%);
}

.hero-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.9;
}

.intro-section {
  padding: 2rem 0;
  background: #fff;
}

body.ui-style-8 .intro-section {
  background: #242424;
}

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

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

.video-grid-section,
.top-preview-section,
.latest-section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #333;
  font-weight: 700;
}

body.ui-style-8 .section-title {
  color: #e0e0e0;
}

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

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.ui-style-8 .video-card {
  background: #2a2a2a;
}

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

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

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

body.ui-style-8 .video-cover {
  background: #1a1a1a;
}

.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;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

body.ui-style-8 .video-meta {
  color: #999;
}

.video-one-line {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.top-list-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

body.ui-style-8 .top-item {
  background: #2a2a2a;
}

.top-rank {
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  color: #00C75A;
}

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

.top-cover {
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #ddd;
}

body.ui-style-8 .top-cover {
  background: #1a1a1a;
}

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.top-meta {
  font-size: 0.85rem;
  color: #888;
}

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

.view-more-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: #00C75A;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
}

.view-more-btn:hover {
  background: #00a84d;
}

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

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #00C75A;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

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

.back-to-top:hover {
  background: #00a84d;
}

.page-header {
  text-align: center;
  padding: 2rem 0;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

body.ui-style-8 .page-header h1 {
  color: #e0e0e0;
}

.page-header p {
  color: #666;
  font-size: 1rem;
}

body.ui-style-8 .page-header p {
  color: #aaa;
}

.video-player-section {
  padding: 2rem 0;
  background: #000;
}

.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;
  font-size: 2rem;
  color: white;
  transition: background 0.3s, transform 0.3s;
}

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

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

.detail-page {
  background: #f5f5f5;
}

body.ui-style-8 .detail-page {
  background: #1a1a1a;
}

.detail-content {
  padding: 2rem 0;
}

.detail-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #333;
}

body.ui-style-8 .detail-title {
  color: #e0e0e0;
}

.basic-info {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

body.ui-style-8 .basic-info {
  background: #2a2a2a;
}

.module-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  border-left: 4px solid #00C75A;
  padding-left: 1rem;
}

body.ui-style-8 .module-title {
  color: #e0e0e0;
}

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

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

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

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

body.ui-style-8 .info-list dd {
  color: #e0e0e0;
}

.content-module {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

body.ui-style-8 .content-module {
  background: #2a2a2a;
}

.module-content {
  color: #666;
  line-height: 1.8;
}

body.ui-style-8 .module-content {
  color: #b0b0b0;
}

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

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #e0e0e0;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #333;
}

body.ui-style-8 .tag {
  background: #1a1a1a;
  color: #e0e0e0;
}

.related-section {
  margin-top: 3rem;
}

.video-card--related {
  background: white;
}

body.ui-style-8 .video-card--related {
  background: #2a2a2a;
}

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

.top-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

body.ui-style-8 .top-list__item {
  background: #2a2a2a;
}

.top-list__item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.top-rank--medal {
  color: #FFD700;
}

.top-rank--normal {
  color: #00C75A;
}

.top-desc {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.3rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

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

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

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

  .video-info {
    padding: 0.75rem;
  }

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

  .header-inner {
    gap: 1rem;
  }

  .site-logo {
    font-size: 1.2rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

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

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

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

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

  .player-play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}
