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

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

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

.hero h1 {
  font-size: 28px;
  line-height: 1.4;
  margin: 0;
}

/* 介绍区 */
.intro {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.8;
}

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

.section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid #1890ff;
  padding-left: 12px;
}

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

.video-card {
  background: #fafafa;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s;
}

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

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

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

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

/* 视频列表 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.video-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fafafa;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s;
}

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

.video-item .rank {
  font-size: 24px;
  font-weight: bold;
  color: #1890ff;
  min-width: 40px;
  text-align: center;
}

.video-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
  color: #333;
}

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

/* 更多链接 */
.more-link {
  text-align: center;
  padding-top: 10px;
  font-size: 15px;
}

.more-link a {
  margin: 0 10px;
}

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

.page-header h1 {
  font-size: 26px;
  margin-bottom: 12px;
  color: #333;
}

.page-header .intro {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  box-shadow: none;
  background: transparent;
}

.list-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-item-rank {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.video-item-rank:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.video-item-rank .rank-num {
  font-size: 32px;
  font-weight: bold;
  color: #ff6b6b;
  min-width: 50px;
  text-align: center;
}

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

.video-item-topic:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.video-item-topic .topic-tag {
  display: inline-block;
  background: #1890ff;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 10px;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.item-content .meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

.item-content .summary {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 8px;
}

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

.item-content .review {
  font-size: 14px;
  color: #52c41a;
  line-height: 1.6;
  margin-top: 8px;
  font-style: italic;
}

/* 详情页 */
.detail-page {
  padding-top: 30px;
}

.detail-content {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-content h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  border-bottom: 2px solid #1890ff;
  padding-bottom: 12px;
}

.detail-content h2 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 16px;
  color: #333;
}

.detail-info .info-list {
  list-style: none;
  padding: 0;
}

.detail-info .info-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  line-height: 1.6;
}

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

.detail-oneline .highlight {
  font-size: 18px;
  color: #1890ff;
  font-weight: 500;
  line-height: 1.6;
  padding: 16px;
  background: #e6f7ff;
  border-left: 4px solid #1890ff;
  border-radius: 4px;
}

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

.detail-review .review-text {
  font-size: 15px;
  line-height: 1.8;
  color: #52c41a;
  padding: 16px;
  background: #f6ffed;
  border-left: 4px solid #52c41a;
  border-radius: 4px;
  font-style: italic;
}

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

.related-item {
  background: #fafafa;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s;
}

.related-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

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

.related-item .meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}

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

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

.footer p {
  margin: 0;
  font-size: 14px;
}

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

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

  .section {
    padding: 20px 15px;
  }

  .section h2 {
    font-size: 20px;
  }

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

  .detail-content {
    padding: 20px 15px;
  }

  .detail-content h1 {
    font-size: 22px;
  }

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