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

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

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

.page-header h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.site-intro {
  color: #666;
  line-height: 1.8;
}

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

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

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

.video-card {
  background: #fafafa;
  padding: 15px;
  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.15);
}

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

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

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

/* 列表项 */
.list-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
}

.list-item {
  padding: 20px;
  border-bottom: 1px solid #eee;
  position: relative;
}

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

.list-item .rank {
  position: absolute;
  left: 0;
  top: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #ff6b6b;
}

.list-item .tag,
.list-item .year {
  display: inline-block;
  padding: 2px 8px;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 3px;
  font-size: 12px;
  margin-right: 8px;
}

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

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

.detail-page article > header h1 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.info-section,
.highlight-section,
.summary-section,
.review-section,
.related-section {
  margin-bottom: 30px;
}

.info-section h2,
.highlight-section h2,
.summary-section h2,
.review-section h2,
.related-section h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
  border-left: 4px solid #0066cc;
  padding-left: 10px;
}

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

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

.highlight {
  background: #fff3cd;
  padding: 15px;
  border-left: 4px solid #ffc107;
  font-size: 16px;
  line-height: 1.6;
}

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

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

.related-item {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
}

.related-item h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

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

/* 专题链接 */
.topic-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.topic-card {
  display: block;
  padding: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.2s;
}

.topic-card:hover {
  transform: scale(1.05);
  text-decoration: none;
}

/* 更多链接 */
.more-link {
  text-align: right;
  margin-top: 15px;
  font-size: 14px;
}

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

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

  .page-header {
    padding: 20px;
  }

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

  .section {
    padding: 15px;
  }

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

  .detail-page {
    padding: 20px;
  }
}