* {
  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-color: #f5f5f5;
}

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

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

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

.nav-brand a {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

.main-content {
  min-height: calc(100vh - 200px);
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.site-intro {
  background: #fff;
  padding: 40px 20px;
}

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

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

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #000;
}

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 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 {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e0e0e0;
}

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

.video-info {
  padding: 16px;
}

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

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

.video-one-line {
  font-size: 14px;
  color: #777;
  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 20px;
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #000;
}

.page-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

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

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

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

.top-rank {
  font-size: 24px;
  font-weight: 700;
  color: #ff4757;
  min-width: 50px;
  text-align: center;
}

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

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

.top-info {
  flex: 1;
}

.top-info h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

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

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

.video-desc {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
}

.video-player-section {
  background: #000;
  padding: 40px 20px;
}

.video-player {
  max-width: 1000px;
  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;
  border-radius: 50%;
  background: rgba(255, 71, 87, 0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-title {
  font-size: 36px;
  font-weight: 700;
  margin: 40px 0 24px;
  color: #000;
}

.detail-module {
  background: #fff;
  padding: 32px;
  margin-bottom: 24px;
  border-radius: 8px;
}

.detail-module h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #000;
  border-left: 4px solid #ff4757;
  padding-left: 12px;
}

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

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  font-size: 16px;
}

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

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

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

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

.tag:hover {
  background: #ff4757;
  color: #fff;
}

.site-footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 32px 20px;
  margin-top: 40px;
}

.site-footer p {
  font-size: 14px;
  opacity: 0.8;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: #ff4757;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top:hover {
  background: #ff3747;
  transform: translateY(-4px);
}

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

.ui-style-0 {
  --primary-color: #000;
  --accent-color: #ff4757;
}

.ui-style-1 {
  --primary-color: #000;
  --accent-color: #ff6348;
}

.ui-style-2 {
  --primary-color: #fff;
  --accent-color: #ff6348;
}

.ui-style-3 {
  --primary-color: #fff;
  --accent-color: #e84118;
}

.ui-style-4 {
  --primary-color: #fff;
  --accent-color: #c23616;
}

.ui-style-5 {
  --primary-color: #1e1e1e;
  --accent-color: #e84118;
}

.ui-style-6 {
  --primary-color: #192a56;
  --accent-color: #00a8ff;
}

.ui-style-7 {
  --primary-color: #2c3e50;
  --accent-color: #3498db;
}

.ui-style-8 {
  --primary-color: #2d3436;
  --accent-color: #00b894;
}

.ui-style-9 {
  --primary-color: #000;
  --accent-color: #fff;
}

.ui-style-10 {
  --primary-color: #fff;
  --accent-color: #00C75A;
}

.ui-style-11 {
  --primary-color: #fff;
  --accent-color: #0099FF;
}

.ui-style-12 {
  --primary-color: #fff;
  --accent-color: #FF6700;
}

.ui-style-13 {
  --primary-color: #fff;
  --accent-color: #00A1D6;
}

.ui-style-14 {
  --primary-color: #fff;
  --accent-color: #1a5490;
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    gap: 16px;
    font-size: 14px;
  }

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

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

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

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

  .detail-module {
    padding: 20px;
  }

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

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

  .top-info h3 {
    font-size: 16px;
  }

  .video-cover {
    max-height: 180px;
  }

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

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 12px;
  }

  .top-list__item {
    flex-wrap: wrap;
    padding: 16px;
  }

  .top-rank {
    min-width: 100%;
    text-align: left;
    margin-bottom: 8px;
  }

  .top-cover {
    margin: 0 12px 0 0;
  }
}
