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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

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

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

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

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  flex-wrap: nowrap;
}

nav a {
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}

nav a:hover {
  background: #f0f0f0;
  color: #e74c3c;
}

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

.hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

section {
  padding: 48px 0;
  background: #fff;
  margin-bottom: 16px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 24px;
  color: #222;
  border-left: 4px solid #e74c3c;
  padding-left: 16px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 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-content {
  padding: 16px;
}

.video-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #222;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.video-meta span {
  font-size: 13px;
  color: #666;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 3px;
}

.video-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card a {
  color: inherit;
  text-decoration: none;
}

.detail-header {
  background: #fff;
  padding: 32px 0;
  border-bottom: 1px solid #eee;
}

.detail-header h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #222;
}

.detail-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-info-label {
  font-weight: bold;
  color: #666;
}

.detail-info-value {
  color: #333;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-tag {
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  color: #666;
}

.detail-section {
  background: #fff;
  padding: 32px 0;
  margin-bottom: 16px;
}

.detail-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #222;
  border-left: 4px solid #e74c3c;
  padding-left: 16px;
}

.detail-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

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

.related-item {
  background: #f9f9f9;
  padding: 16px;
  border-radius: 8px;
  border-left: 3px solid #e74c3c;
  transition: all 0.3s;
}

.related-item:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #222;
}

.related-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.related-item a {
  text-decoration: none;
  color: inherit;
}

footer {
  background: #333;
  color: #fff;
  padding: 24px 0;
  text-align: center;
  margin-top: 48px;
}

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

.list-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 48px 20px;
  text-align: center;
}

.list-header h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.list-header p {
  font-size: 16px;
  opacity: 0.95;
}

.list-content {
  padding: 48px 0;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-list-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.video-list-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.video-list-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #222;
}

.video-list-item a {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  nav ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0;
    flex-wrap: nowrap;
    overflow: visible;
  }

  nav li {
    flex: 1 1 0;
    min-width: 0;
  }

  nav a {
    padding: 6px 4px;
    font-size: 13px;
    display: block;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    padding: 40px 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

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

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

  .detail-header h1 {
    font-size: 26px;
  }

  .detail-info {
    flex-direction: column;
    gap: 8px;
  }
}

.ui-style-0 { --primary: #e74c3c; }
.ui-style-1 { --primary: #3498db; }
.ui-style-2 { --primary: #2ecc71; }
.ui-style-3 { --primary: #f39c12; }
.ui-style-4 { --primary: #9b59b6; }
.ui-style-5 { --primary: #1abc9c; }
.ui-style-6 { --primary: #e67e22; }
.ui-style-7 { --primary: #34495e; }
.ui-style-8 { --primary: #16a085; }
.ui-style-9 { --primary: #27ae60; }
.ui-style-10 { --primary: #2980b9; }
.ui-style-11 { --primary: #8e44ad; }
.ui-style-12 { --primary: #c0392b; }
.ui-style-13 { --primary: #d35400; }
.ui-style-14 { --primary: #2c3e50; }
.ui-style-15 { --primary: #7f8c8d; }
