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

body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef3f8, #e8ecf6);
  color: #333;
  padding: 24px;
}

.wrap { width: 100%; max-width: 720px; }

header { text-align: center; margin-bottom: 40px; position: relative; }
h1 { font-size: 2.2rem; letter-spacing: 0.2em; }
.sub { margin-top: 8px; color: #888; }

.back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}
.back:hover { background: #fff; }

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card.disabled { opacity: 0.55; }

.icon { font-size: 2rem; }
.card h2 { font-size: 1.15rem; }
.card p { font-size: 0.85rem; color: #999; }

.badge {
  align-self: flex-start;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #2e7d32;
}
.card.disabled .badge { background: #eee; color: #999; }

footer { text-align: center; margin-top: 40px; color: #aaa; font-size: 0.8rem; }
