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

.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
}

.main-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.nav-item {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #555;
  white-space: nowrap;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-item:hover,
.nav-item.active {
  background: #3498db;
  color: #fff;
}

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

.hero-section {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.4;
}

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

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

.section-title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
}

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

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

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

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

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #ddd;
  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: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.page-header {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  text-align: center;
}

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

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

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

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

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

.top-list__item:last-child {
  border-bottom: none;
}

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

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

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

.top-info {
  flex: 1;
  min-width: 0;
}

.top-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.top-title a {
  color: #2c3e50;
  text-decoration: none;
}

.top-title a:hover {
  color: #3498db;
}

.top-meta {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 0.25rem;
}

.top-desc {
  font-size: 0.875rem;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-page {
  max-width: 900px;
}

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

.video-player {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  font-size: 2rem;
  color: #667eea;
  margin-left: 5px;
}

.detail-header {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.detail-title {
  font-size: 2rem;
  color: #2c3e50;
  line-height: 1.4;
}

.detail-info {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.detail-info h2 {
  font-size: 1.25rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
}

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

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

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

.detail-module {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.detail-module h2 {
  font-size: 1.25rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
}

.detail-module p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

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

.tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: #e8f4f8;
  color: #3498db;
  border-radius: 20px;
  font-size: 0.875rem;
}

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

.related-section h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
}

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

.site-footer p {
  font-size: 0.875rem;
}

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

  .site-logo {
    text-align: center;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .nav-item {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }

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

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

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

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

  .video-info {
    padding: 0.75rem;
  }

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

  .video-one-line {
    font-size: 0.8rem;
  }

  .top-list__item {
    flex-wrap: wrap;
  }

  .top-rank {
    font-size: 1.25rem;
    min-width: 30px;
  }

  .top-cover {
    width: 100px;
    height: 56px;
  }

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

  .player-play-btn {
    width: 60px;
    height: 60px;
  }

  .player-play-icon {
    font-size: 1.5rem;
  }
}

.ui-style-4 body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.ui-style-4 .site-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.ui-style-4 .site-logo {
  color: white;
}

.ui-style-4 .nav-item {
  color: rgba(255, 255, 255, 0.9);
}

.ui-style-4 .nav-item:hover,
.ui-style-4 .nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.ui-style-4 .video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.ui-style-4 .section-title {
  border-bottom-color: #667eea;
}

.ui-style-4 .detail-info h2,
.ui-style-4 .detail-module h2,
.ui-style-4 .related-section h2 {
  border-bottom-color: #667eea;
}

.ui-style-4 .tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.ui-style-4 .top-rank {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
