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

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

/* 页头 */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.page-header .logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-header h1 {
  font-size: 28px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-header .subtitle {
  font-size: 16px;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

/* 主内容区 */
main {
  flex: 1;
  padding: 40px 20px;
}

section {
  margin-bottom: 50px;
}

section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #667eea;
}

/* 首页样式 */
.intro-section .intro-content {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  line-height: 1.8;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 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: 8px;
}

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

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

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

.topic-item,
.latest-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.topic-item:last-child,
.latest-item:last-child {
  border-bottom: none;
}

.topic-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.latest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.latest-item .year {
  color: #888;
  font-size: 14px;
}

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

.more-link a {
  color: #667eea;
  font-weight: 500;
  padding: 0 10px;
}

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

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

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

.list-card .card-number,
.list-card .rank-badge,
.list-card .topic-tag,
.list-card .date-mark {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #667eea;
  color: white;
  font-weight: bold;
  border-radius: 8px;
}

.list-card.top .rank-badge {
  background: #f59e0b;
}

.list-card.topic .topic-tag {
  background: #10b981;
  font-size: 14px;
  text-align: center;
  padding: 5px;
}

.list-card.latest .date-mark {
  background: #ef4444;
  font-size: 16px;
}

.list-card .card-content {
  flex: 1;
}

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

.list-card .meta,
.list-card .genre,
.list-card .tags {
  color: #666;
  font-size: 14px;
  margin-bottom: 6px;
}

.list-card .summary,
.list-card .desc,
.list-card .one-line {
  color: #444;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 8px;
}

.list-card .review-snippet {
  color: #555;
  font-size: 13px;
  font-style: italic;
  margin-top: 8px;
  padding-left: 10px;
  border-left: 3px solid #667eea;
}

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

.detail-article h1 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
}

.detail-article h2 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #667eea;
  border-bottom: 2px solid #667eea;
  padding-bottom: 8px;
}

.info-list {
  line-height: 1.8;
}

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

.one-line-highlight {
  background: #f0f4ff;
  padding: 20px;
  border-left: 4px solid #667eea;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  font-weight: 500;
}

.summary-content,
.review-content {
  line-height: 1.8;
  color: #444;
}

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

.related-card {
  background: #f9fafb;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: background 0.3s;
}

.related-card:hover {
  background: #f3f4f6;
}

.related-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

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

.related-card .desc {
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}

/* 页脚 */
.site-footer {
  background: #1f2937;
  color: #9ca3af;
  text-align: center;
  padding: 30px 20px;
  margin-top: auto;
}

/* 响应式 */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 22px;
  }

  .page-header .subtitle {
    font-size: 14px;
  }

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

  .detail-article {
    padding: 20px;
  }

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

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

  .list-card {
    flex-direction: column;
    gap: 10px;
  }

  .list-card .card-number,
  .list-card .rank-badge,
  .list-card .topic-tag,
  .list-card .date-mark {
    width: 50px;
    height: 50px;
    font-size: 14px;
  }
}

/* UI 风格变体 */
body.ui-style-0 { --primary-color: #667eea; }
body.ui-style-1 { --primary-color: #f59e0b; }
body.ui-style-2 { --primary-color: #10b981; }
body.ui-style-3 { --primary-color: #ef4444; }
body.ui-style-4 { --primary-color: #3b82f6; }
body.ui-style-5 { --primary-color: #8b5cf6; }
body.ui-style-6 { --primary-color: #ec4899; }
body.ui-style-7 { --primary-color: #14b8a6; }
body.ui-style-8 { --primary-color: #f97316; }
body.ui-style-9 { --primary-color: #06b6d4; }
body.ui-style-10 { --primary-color: #84cc16; }
body.ui-style-11 { --primary-color: #a855f7; }
body.ui-style-12 { --primary-color: #22c55e; }
body.ui-style-13 { --primary-color: #eab308; }
body.ui-style-14 { --primary-color: #6366f1; }
body.ui-style-15 { --primary-color: #d946ef; }
