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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.main-nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  overflow: visible;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #000;
}

.home-page, .list-page, .detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-section {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.hero-desc {
  font-size: 1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  color: #222;
}

.more-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.more-link:hover {
  color: #000;
}

.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;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

.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: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #999;
}

.video-meta span {
  padding: 0.2rem 0.5rem;
  background: #f5f5f5;
  border-radius: 4px;
}

.page-header {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

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

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

.top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.top-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s;
}

.top-list__item:hover {
  background: #f9f9f9;
}

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

.top-list__item:nth-child(1) .top-rank { color: #ff4757; }
.top-list__item:nth-child(2) .top-rank { color: #ff6348; }
.top-list__item:nth-child(3) .top-rank { color: #ffa502; }

.top-cover {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

.top-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

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

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

.top-info p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.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;
  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: background 0.3s, transform 0.3s;
  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: 2rem;
  color: #333;
}

.detail-header {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.detail-header h1 {
  font-size: 2rem;
  color: #222;
}

.detail-info, .detail-module, .related-section {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.detail-info h2, .detail-module h2, .related-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #222;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

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

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

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

.detail-module p {
  color: #444;
  line-height: 1.8;
}

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

.tag {
  padding: 0.3rem 0.8rem;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #666;
}

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

@media (max-width: 768px) {
  .nav-links {
    gap: 0.8rem;
    font-size: 0.9rem;
  }

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

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

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

  .top-cover {
    width: 80px;
    height: 45px;
  }

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

.ui-style-0 body { background: #0a0a0a; color: #fff; }
.ui-style-0 .main-nav, .ui-style-0 .video-card, .ui-style-0 .hero-section,
.ui-style-0 .page-header, .ui-style-0 .detail-header, .ui-style-0 .detail-info,
.ui-style-0 .detail-module, .ui-style-0 .related-section, .ui-style-0 .top-list__items {
  background: #1a1a1a;
  border-color: #2a2a2a;
}
.ui-style-0 .hero-title, .ui-style-0 h1, .ui-style-0 h2, .ui-style-0 .video-title { color: #fff; }
.ui-style-0 .hero-desc, .ui-style-0 p, .ui-style-0 .video-one-line { color: #ccc; }
.ui-style-0 .logo { color: #fff; }

.ui-style-5 body, .ui-style-6 body, .ui-style-9 body { background: #141414; color: #fff; }
.ui-style-5 .main-nav, .ui-style-6 .main-nav, .ui-style-9 .main-nav { background: #1a1a1a; }
.ui-style-5 .video-card, .ui-style-6 .video-card, .ui-style-9 .video-card { background: #1f1f1f; }
