* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 209, 102, 0.35), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255, 138, 128, 0.30), transparent 40%),
    radial-gradient(circle at 70% 85%, rgba(129, 212, 250, 0.35), transparent 45%),
    radial-gradient(circle at 30% 90%, rgba(186, 104, 200, 0.25), transparent 40%),
    linear-gradient(160deg, #e3f2fd, #ede7f6);
  background-attachment: fixed;
}

.site-header { text-align: center; padding: 48px 16px 8px; }
.site-header h1 { font-size: 40px; color: #333; }
.site-sub { margin-top: 8px; color: #777; font-size: 16px; }

.cards {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  font-size: 20px;
  padding: 80px 0;
}

.card {
  display: block;          /* 整卡可点 */
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.card {
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(180deg, #ffffff, #fdf6ec);
}
.card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff3cd, #ffe0b2);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.06);
}
.card-icon { font-size: 56px; line-height: 1.2; }
.card-title { margin-top: 12px; font-size: 20px; font-weight: 700; color: #333; }
.card-desc { margin-top: 8px; font-size: 14px; color: #888; min-height: 2.8em; }
.card-start {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 18px;
  border-radius: 999px;
  background: #ffd166;
  color: #333;
  font-weight: 700;
  font-size: 14px;
}

/* 入场：依次淡入上浮 */
.card { animation: cardIn 0.4s ease backwards; }
.card:nth-child(2)  { animation-delay: 0.05s; }
.card:nth-child(3)  { animation-delay: 0.10s; }
.card:nth-child(4)  { animation-delay: 0.15s; }
.card:nth-child(5)  { animation-delay: 0.20s; }
.card:nth-child(6)  { animation-delay: 0.25s; }
.card:nth-child(7)  { animation-delay: 0.30s; }
.card:nth-child(8)  { animation-delay: 0.35s; }
.card:nth-child(9)  { animation-delay: 0.40s; }
.card:nth-child(10) { animation-delay: 0.45s; }
.card:nth-child(11) { animation-delay: 0.50s; }
.card:nth-child(12) { animation-delay: 0.55s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* 悬停：上浮 + 阴影加深 + 图标弹跳 */
.card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.card:hover .card-icon { animation: bounce 0.4s ease; }
@keyframes bounce {
  0%, 100% { transform: none; }
  40%      { transform: translateY(-6px) scale(1.15); }
}

/* 按下：回弹 */
.card:active { transform: scale(0.97); }

/* 手机：固定两列 */
@media (max-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 16px; }
  .site-header h1 { font-size: 30px; }
  .card { padding: 16px; }
  .card-icon { width: 64px; height: 64px; font-size: 40px; }
  .card-cover { border-radius: 10px; margin-bottom: 10px; }
  .card-title { font-size: 17px; }
  .card-desc { font-size: 13px; min-height: 3.6em; }
}
