* {
  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 #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #1a1a1a;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
  white-space: nowrap;
}

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.site-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
  line-height: 1.4;
}

.site-intro {
  font-size: 16px;
  color: #666;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.video-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #1a1a1a;
}

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

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

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

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

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

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

.video-info {
  padding: 18px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

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

.page-header {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.page-header h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.page-intro {
  font-size: 16px;
  color: #666;
}

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

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

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

.top-item:hover {
  background: #fafafa;
}

.top-rank {
  font-size: 28px;
  font-weight: bold;
  color: #007bff;
  min-width: 50px;
  text-align: center;
}

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

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

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

.top-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.top-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.top-title a:hover {
  color: #007bff;
}

.top-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}

.top-one-line {
  font-size: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-player {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #1a1a1a;
}

.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.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}

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

.player-play-icon {
  font-size: 32px;
  color: #007bff;
  margin-left: 4px;
}

.detail-header {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.detail-header h1 {
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
}

.detail-info, .detail-module {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.detail-info h2, .detail-module h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 20px;
}

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

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

.detail-module p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  transition: background 0.3s;
}

.tag:hover {
  background: #e0e0e0;
}

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

.site-footer {
  background: #fff;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #e5e5e5;
  margin-top: 60px;
  color: #666;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #007bff;
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
  transition: transform 0.3s;
}

.back-to-top:hover {
  transform: scale(1.1);
}

.back-to-top.show {
  display: flex;
}

.ui-style-2 {
  --primary-color: #007bff;
  --bg-color: #f5f5f5;
}

.ui-style-2 .logo {
  color: #007bff;
}

.ui-style-2 .nav-links a:hover {
  color: #007bff;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
    font-size: 14px;
  }

  .logo {
    font-size: 20px;
  }

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

  .hero-section {
    padding: 40px 20px;
  }

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

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

  .video-info {
    padding: 12px;
  }

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

  .top-item {
    flex-wrap: wrap;
    padding: 15px;
  }

  .top-rank {
    font-size: 20px;
    min-width: 40px;
  }

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

  .detail-header, .detail-info, .detail-module {
    padding: 20px;
  }

  .page-header {
    padding: 25px 20px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    height: 50px;
    padding: 0 15px;
  }

  .nav-links {
    gap: 10px;
    font-size: 13px;
  }

  .logo {
    font-size: 18px;
  }

  main {
    padding: 20px 15px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

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