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

.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: 1000;
}

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

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

nav ul {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

nav a {
  color: #555;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
  display: block;
  white-space: nowrap;
}

nav a:hover {
  background: #3498db;
  color: #fff;
}

main {
  padding: 30px 0;
  min-height: 60vh;
}

.page-title {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #3498db;
}

.intro-section {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.8;
}

.content-section {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #3498db;
}

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

.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(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

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

.video-title {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 10px;
}

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

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

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

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

.video-desc {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
}

.video-list {
  list-style: none;
}

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

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

.detail-page {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-title {
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ecf0f1;
}

.detail-meta-item {
  font-size: 15px;
  color: #555;
}

.detail-meta-label {
  font-weight: bold;
  color: #2c3e50;
  margin-right: 5px;
}

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

.tag {
  background: #3498db;
  color: #fff;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 13px;
}

.detail-section {
  margin-bottom: 30px;
}

.detail-section h2 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ecf0f1;
}

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

.related-videos {
  margin-top: 40px;
}

footer {
  background: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
}

.back-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: #3498db;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.3s;
}

.back-top:hover {
  background: #2980b9;
}

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

  nav ul {
    width: 100%;
    justify-content: space-between;
    gap: 2px;
  }

  nav a {
    padding: 6px 8px;
    font-size: 13px;
    text-align: center;
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

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

  .detail-page {
    padding: 20px;
  }

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

@media (max-width: 480px) {
  nav a {
    font-size: 12px;
    padding: 5px 4px;
  }

  .logo {
    font-size: 20px;
  }
}

body.ui-style-0 {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
}

body.ui-style-1 {
  --primary-color: #e74c3c;
  --secondary-color: #c0392b;
}

body.ui-style-2 {
  --primary-color: #2ecc71;
  --secondary-color: #27ae60;
}

body.ui-style-3 {
  --primary-color: #9b59b6;
  --secondary-color: #8e44ad;
}

body.ui-style-4 {
  --primary-color: #f39c12;
  --secondary-color: #e67e22;
}

body.ui-style-5 {
  --primary-color: #1abc9c;
  --secondary-color: #16a085;
}

body.ui-style-6 {
  --primary-color: #34495e;
  --secondary-color: #2c3e50;
}

body.ui-style-7 {
  --primary-color: #e67e22;
  --secondary-color: #d35400;
}

body.ui-style-8 {
  --primary-color: #95a5a6;
  --secondary-color: #7f8c8d;
}

body.ui-style-9 {
  --primary-color: #16a085;
  --secondary-color: #1abc9c;
}

body.ui-style-10 {
  --primary-color: #2980b9;
  --secondary-color: #3498db;
}

body.ui-style-11 {
  --primary-color: #8e44ad;
  --secondary-color: #9b59b6;
}

body.ui-style-12 {
  --primary-color: #c0392b;
  --secondary-color: #e74c3c;
}

body.ui-style-13 {
  --primary-color: #d35400;
  --secondary-color: #e67e22;
}

body.ui-style-14 {
  --primary-color: #27ae60;
  --secondary-color: #2ecc71;
}

body.ui-style-15 {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
}
