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

main {
  flex: 1;
}

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

/* UI 风格变体 */
.ui-style-0 { --primary-color: #e53935; --secondary-color: #1976d2; }
.ui-style-1 { --primary-color: #d32f2f; --secondary-color: #0288d1; }
.ui-style-2 { --primary-color: #c62828; --secondary-color: #0097a7; }
.ui-style-3 { --primary-color: #b71c1c; --secondary-color: #00838f; }
.ui-style-4 { --primary-color: #f44336; --secondary-color: #03a9f4; }
.ui-style-5 { --primary-color: #e91e63; --secondary-color: #00bcd4; }
.ui-style-6 { --primary-color: #c2185b; --secondary-color: #0097a7; }
.ui-style-7 { --primary-color: #ad1457; --secondary-color: #00838f; }
.ui-style-8 { --primary-color: #880e4f; --secondary-color: #006064; }
.ui-style-9 { --primary-color: #ff5722; --secondary-color: #0288d1; }
.ui-style-10 { --primary-color: #f4511e; --secondary-color: #01579b; }
.ui-style-11 { --primary-color: #e64a19; --secondary-color: #1565c0; }
.ui-style-12 { --primary-color: #d84315; --secondary-color: #1976d2; }
.ui-style-13 { --primary-color: #bf360c; --secondary-color: #1e88e5; }
.ui-style-14 { --primary-color: #ff6f00; --secondary-color: #0277bd; }
.ui-style-15 { --primary-color: #f57c00; --secondary-color: #0288d1; }

/* 首页样式 */
.hero {
  background: linear-gradient(135deg, var(--primary-color, #e53935) 0%, var(--secondary-color, #1976d2) 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero .intro {
  font-size: 18px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

.featured, .quick-links, .latest {
  margin-bottom: 50px;
}

.featured h2, .quick-links h2, .latest h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: var(--primary-color, #e53935);
  border-left: 4px solid var(--primary-color, #e53935);
  padding-left: 15px;
}

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

.video-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  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 h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.video-card h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.video-card h3 a:hover {
  color: var(--primary-color, #e53935);
}

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

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

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.link-card {
  display: block;
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color, #e53935);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-list {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

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

.video-item a {
  color: #333;
  text-decoration: none;
  flex: 1;
  transition: color 0.3s;
}

.video-item a:hover {
  color: var(--primary-color, #e53935);
}

.video-item .year {
  color: #999;
  font-size: 14px;
}

.more-link {
  text-align: center;
  margin-top: 20px;
}

.more-link a {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color, #e53935);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.more-link a:hover {
  background: var(--secondary-color, #1976d2);
}

/* 列表页样式 */
.page-header {
  background: white;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-header h1 {
  font-size: 32px;
  color: var(--primary-color, #e53935);
  margin-bottom: 15px;
}

.page-header p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

.list-container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-item {
  display: flex;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

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

.list-item .rank {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color, #e53935);
  min-width: 50px;
}

.list-content {
  flex: 1;
}

.list-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.list-content h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.list-content h3 a:hover {
  color: var(--primary-color, #e53935);
}

.list-content .meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.list-content .summary {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
}

/* 详情页样式 */
.detail {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-header h1 {
  font-size: 36px;
  color: var(--primary-color, #e53935);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.detail-info, .detail-oneline, .detail-summary, .detail-review, .detail-related {
  margin-bottom: 40px;
}

.detail-info h2, .detail-oneline h2, .detail-summary h2, .detail-review h2, .detail-related h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 3px solid var(--primary-color, #e53935);
}

.info-list {
  list-style: none;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
}

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  line-height: 1.6;
}

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

.info-list strong {
  color: var(--primary-color, #e53935);
  min-width: 80px;
  display: inline-block;
}

.detail-oneline p, .detail-summary p, .detail-review p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

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

.related-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  transition: background 0.3s;
}

.related-item:hover {
  background: #f0f0f0;
}

.related-item h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.related-item h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.related-item h4 a:hover {
  color: var(--primary-color, #e53935);
}

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

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

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

/* 响应式 */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .hero {
    padding: 40px 20px;
  }

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

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

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

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

  .detail {
    padding: 20px;
  }

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

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