
/* 全局样式 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

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

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

.video-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2c5aa0;
}

.video-card .meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
}

.video-card .one-line {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* 列表页样式 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.video-item {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.item-number {
  background: #2c5aa0;
  color: #fff;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #2c5aa0;
}

.item-content .meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 10px;
}

.item-content .summary {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* 排行榜样式 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rank-item {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  gap: 20px;
  align-items: center;
}

.rank-badge {
  background: linear-gradient(135deg, #f39c12, #e74c3c);
  color: #fff;
  font-weight: bold;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.rank-content {
  flex: 1;
}

.rank-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #2c5aa0;
}

/* 专题页样式 */
.topic-section {
  background: #fff;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

.topic-section h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #27ae60;
  border-bottom: 2px solid #27ae60;
  padding-bottom: 10px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.topic-card {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
  border-left: 3px solid #27ae60;
}

.topic-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #2c5aa0;
}

/* 最新整理页样式 */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.latest-card {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: relative;
}

.date-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #e74c3c;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

.latest-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2c5aa0;
}

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

.related-card {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
  border-left: 3px solid #e74c3c;
}

.related-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #2c5aa0;
}

/* 响应式 */
@media (max-width: 768px) {
  .video-grid, .topic-grid, .latest-grid, .related-grid {
    grid-template-columns: 1fr;
  }

  .item-number, .rank-badge {
    font-size: 0.9rem;
  }

  .video-item, .rank-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
