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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1d4ed8;
}

.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-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  gap: 8px;
  align-items: center;
}

nav li {
  flex: 0 0 auto;
  white-space: nowrap;
}

nav a {
  padding: 8px 16px;
  display: block;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 15px;
}

nav a:hover {
  background: #f3f4f6;
}

main {
  padding: 32px 0;
  min-height: calc(100vh - 200px);
}

h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #1f2937;
  line-height: 1.2;
}

h2 {
  font-size: 24px;
  margin: 32px 0 16px;
  color: #374151;
  line-height: 1.2;
}

h3 {
  font-size: 20px;
  margin: 24px 0 12px;
  color: #4b5563;
}

p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.intro-section {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.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;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
}

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

.video-card-content {
  padding: 16px;
}

.video-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #1f2937;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #6b7280;
}

.video-meta span {
  padding: 2px 8px;
  background: #f3f4f6;
  border-radius: 4px;
}

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

.video-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.video-list-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.video-list-item:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}

.detail-page {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.detail-meta {
  background: #f9fafb;
  padding: 24px;
  border-radius: 8px;
  margin: 24px 0;
}

.detail-meta-item {
  display: flex;
  margin-bottom: 12px;
  font-size: 15px;
}

.detail-meta-label {
  font-weight: 600;
  color: #4b5563;
  min-width: 80px;
}

.detail-meta-value {
  color: #6b7280;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 4px;
  font-size: 14px;
}

.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e5e7eb;
}

footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 32px 0;
  margin-top: 48px;
  text-align: center;
}

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

  .logo {
    font-size: 20px;
  }

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

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

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

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

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

  .intro-section, .section, .detail-page {
    padding: 20px;
  }
}

.ui-style-0 { --primary: #2563eb; --secondary: #3b82f6; }
.ui-style-1 { --primary: #dc2626; --secondary: #ef4444; }
.ui-style-2 { --primary: #059669; --secondary: #10b981; }
.ui-style-3 { --primary: #7c3aed; --secondary: #8b5cf6; }
.ui-style-4 { --primary: #ea580c; --secondary: #f97316; }
.ui-style-5 { --primary: #0891b2; --secondary: #06b6d4; }
.ui-style-6 { --primary: #db2777; --secondary: #ec4899; }
.ui-style-7 { --primary: #65a30d; --secondary: #84cc16; }
.ui-style-8 { --primary: #4f46e5; --secondary: #6366f1; }
.ui-style-9 { --primary: #c026d3; --secondary: #d946ef; }
.ui-style-10 { --primary: #0284c7; --secondary: #0ea5e9; }
.ui-style-11 { --primary: #ca8a04; --secondary: #eab308; }
.ui-style-12 { --primary: #be123c; --secondary: #e11d48; }
.ui-style-13 { --primary: #047857; --secondary: #059669; }
.ui-style-14 { --primary: #1d4ed8; --secondary: #2563eb; }
.ui-style-15 { --primary: #9333ea; --secondary: #a855f7; }
