/* 全局样式已在内联中定义，这里补充页面特定样式 */

main {
  min-height: calc(100vh - 200px);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.video-card {
  background: white;
  padding: 1.5rem;
  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: 1.1rem;
  margin-bottom: 0.5rem;
}

.video-card h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.video-card h3 a:hover {
  color: #667eea;
}

.video-card .meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

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

.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.video-item .rank {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
  min-width: 50px;
  text-align: center;
}

.video-item .date {
  font-size: 1rem;
  font-weight: bold;
  color: #764ba2;
  min-width: 60px;
  text-align: center;
  background: #f0f0f0;
  padding: 0.5rem;
  border-radius: 4px;
}

.video-item .video-content {
  flex: 1;
}

.video-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.video-item h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.video-item h3 a:hover {
  color: #667eea;
}

.video-item .meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.video-item .desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.video-item .review {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  line-height: 1.6;
  padding-left: 1rem;
  border-left: 3px solid #667eea;
}

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

.related-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-item h4 a {
  color: #2c3e50;
  text-decoration: none;
}

.related-item h4 a:hover {
  color: #667eea;
}

.related-item .meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.related-item .desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

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

  .video-item {
    flex-direction: column;
  }

  .video-item .rank,
  .video-item .date {
    min-width: auto;
    align-self: flex-start;
  }
}
