/* 全局样式 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* 导航增强 */
nav a:hover {
  background: #f0f0f0;
  text-decoration: none;
}

/* 页面头部 */
.page-header {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-header h1 {
  font-size: 28px;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-header p {
  color: #666;
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
}

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

section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0066cc;
}

/* 列表 */
.video-list {
  list-style: none;
}

.video-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.video-list li:last-child {
  border-bottom: none;
}

.video-list a {
  display: block;
  transition: color 0.2s;
}

.video-list a:hover {
  color: #0052a3;
}

/* 网格布局 */
.video-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.video-card {
  background: #fff;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.video-card .meta {
  color: #888;
  font-size: 14px;
  margin-bottom: 10px;
}

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

/* 详情页 */
.video-detail {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
}

.video-detail h1 {
  font-size: 28px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #0066cc;
}

.basic-info ul {
  list-style: none;
}

.basic-info li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.related-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.related-list li {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
  transition: background 0.2s;
}

.related-list li:hover {
  background: #f0f0f0;
}

.related-list small {
  color: #666;
  font-size: 13px;
}

/* 页脚 */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* 响应式 */
@media (max-width: 767px) {
  main {
    padding: 15px;
  }

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

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

  section {
    padding: 20px 15px;
  }

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

  .video-detail {
    padding: 25px 15px;
  }

  .related-list {
    grid-template-columns: 1fr;
  }
}

/* UI 风格变体 */
.ui-style-0 { --primary: #0066cc; }
.ui-style-1 { --primary: #c00; }
.ui-style-2 { --primary: #0a8; }
.ui-style-3 { --primary: #f60; }
.ui-style-4 { --primary: #9063cd; }
.ui-style-5 { --primary: #008080; }
.ui-style-6 { --primary: #8b4513; }
.ui-style-7 { --primary: #2e8b57; }
.ui-style-8 { --primary: #4169e1; }
.ui-style-9 { --primary: #dc143c; }
.ui-style-10 { --primary: #ff8c00; }
.ui-style-11 { --primary: #9932cc; }
.ui-style-12 { --primary: #006400; }
.ui-style-13 { --primary: #b8860b; }
.ui-style-14 { --primary: #000080; }
.ui-style-15 { --primary: #8b0000; }
