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

main {
  flex: 1;
}

/* 卡片样式 */
.video-card {
  background: #fff;
  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: 10px;
}

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

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

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

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

/* 列表链接样式 */
.list-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.list-link {
  display: block;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, box-shadow 0.3s;
}

.list-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.list-link h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #e53935;
}

.list-link p {
  font-size: 14px;
  color: #666;
}

/* 排行卡片 */
.video-card.ranked {
  position: relative;
  padding-left: 70px;
}

.rank-badge {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  background: #e53935;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50%;
}

.video-card .review {
  margin-top: 10px;
  font-size: 13px;
  color: #888;
  font-style: italic;
}

/* 专题卡片 */
.video-card.topic-card .topic-tag {
  display: inline-block;
  background: #e53935;
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

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

/* 最新卡片 */
.video-card.latest-card .latest-date {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

/* 资源大全卡片 */
.video-card .card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.video-card .card-id {
  font-size: 12px;
  color: #999;
}

.video-card .card-type {
  font-size: 12px;
  background: #2196f3;
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
}

/* 相关推荐卡片 */
.related-card {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  border-left: 3px solid #e53935;
}

.related-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.related-card h4 a {
  color: #333;
  text-decoration: none;
}

.related-card h4 a:hover {
  color: #e53935;
}

.related-card .meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

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

/* UI 风格变体（示例） */
.ui-style-0 { --primary-color: #e53935; }
.ui-style-1 { --primary-color: #d32f2f; }
.ui-style-2 { --primary-color: #c62828; }
.ui-style-3 { --primary-color: #b71c1c; }
.ui-style-4 { --primary-color: #ff5252; }
.ui-style-5 { --primary-color: #ff1744; }
.ui-style-6 { --primary-color: #d50000; }
.ui-style-7 { --primary-color: #e91e63; }
.ui-style-8 { --primary-color: #c2185b; }
.ui-style-9 { --primary-color: #ad1457; }
.ui-style-10 { --primary-color: #880e4f; }
.ui-style-11 { --primary-color: #ff4081; }
.ui-style-12 { --primary-color: #f50057; }
.ui-style-13 { --primary-color: #c51162; }
.ui-style-14 { --primary-color: #e53935; }
.ui-style-15 { --primary-color: #d32f2f; }

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

  .list-links {
    grid-template-columns: 1fr !important;
  }

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