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

main {
  flex: 1;
  padding: 40px 0;
}

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

/* 首页样式 */
.hero {
  text-align: center;
  padding: 60px 0 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 40px;
}

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

.site-intro {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.site-intro p {
  margin-bottom: 15px;
}

.site-intro a {
  color: #ffd700;
  text-decoration: underline;
}

.site-intro a:hover {
  color: #ffed4e;
}

/* 视频网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

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

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

.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
}

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

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

/* 分区样式 */
.section-hot,
.section-new,
.section-links {
  margin-bottom: 60px;
}

.section-hot h2,
.section-new h2,
.section-links h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid #d32f2f;
  padding-left: 15px;
}

/* 频道链接 */
.channel-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.channel-link {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
  text-align: center;
}

.channel-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  background: #f9f9f9;
}

.channel-link h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #d32f2f;
}

.channel-link p {
  font-size: 14px;
  color: #666;
}

/* 列表页样式 */
.list-main {
  background: #fff;
}

.list-main h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
}

.list-intro {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 40px;
  padding: 20px;
  background: #f9f9f9;
  border-left: 4px solid #d32f2f;
}

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

.video-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s;
  position: relative;
}

.video-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #d32f2f;
}

.video-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #333;
  font-weight: 600;
}

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

.video-item .desc {
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
  font-weight: 500;
}

.video-item .summary {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

/* 排行榜专属 */
.card-top .rank-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #d32f2f;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

/* 最新整理专属 */
.card-latest .date-tag {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

/* 专题专属 */
.card-topic .genre-tag {
  display: inline-block;
  background: #2196f3;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

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

.detail-article h1 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
  border-bottom: 3px solid #d32f2f;
  padding-bottom: 15px;
}

.detail-article h2 {
  font-size: 24px;
  margin: 30px 0 20px;
  color: #444;
  border-left: 4px solid #d32f2f;
  padding-left: 15px;
}

.detail-info {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
}

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

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

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

.info-list strong {
  color: #333;
  display: inline-block;
  min-width: 80px;
}

.detail-highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.highlight-text {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 500;
}

.detail-summary p,
.detail-review p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  text-indent: 2em;
}

/* 相关推荐 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s;
  border: 1px solid #e0e0e0;
}

.related-item:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #d32f2f;
}

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

.related-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.related-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}

/* 页脚 */
.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

.footer p {
  font-size: 14px;
  line-height: 1.6;
}

/* UI 风格变体 */
.ui-style-0 { --primary-color: #d32f2f; }
.ui-style-1 { --primary-color: #1976d2; }
.ui-style-2 { --primary-color: #388e3c; }
.ui-style-3 { --primary-color: #f57c00; }
.ui-style-4 { --primary-color: #7b1fa2; }
.ui-style-5 { --primary-color: #c2185b; }
.ui-style-6 { --primary-color: #0097a7; }
.ui-style-7 { --primary-color: #5d4037; }
.ui-style-8 { --primary-color: #455a64; }
.ui-style-9 { --primary-color: #e64a19; }
.ui-style-10 { --primary-color: #00897b; }
.ui-style-11 { --primary-color: #6a1b9a; }
.ui-style-12 { --primary-color: #0288d1; }
.ui-style-13 { --primary-color: #689f38; }
.ui-style-14 { --primary-color: #d84315; }
.ui-style-15 { --primary-color: #303f9f; }

/* 响应式设计 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 24px;
  }

  .site-intro {
    font-size: 14px;
  }

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

  .section-hot h2,
  .section-new h2,
  .section-links h2 {
    font-size: 22px;
  }

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

  .detail-article {
    padding: 20px;
  }

  .detail-article h1 {
    font-size: 24px;
  }

  .detail-article h2 {
    font-size: 20px;
  }

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

  .list-main h1 {
    font-size: 24px;
  }

  .video-item {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 30px;
  }

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

  main {
    padding: 20px 0;
  }

  .section-hot,
  .section-new,
  .section-links {
    margin-bottom: 40px;
  }
}
