:root {
  --bg: #0b0d12;
  --bg-soft: #11141c;
  --card: #161a24;
  --border: #232936;
  --text: #e8eaf0;
  --muted: #8a91a3;
  --accent: #6d5ef2;
  --accent-soft: rgba(109, 94, 242, 0.15);
  --green: #34d399;
  --yellow: #fbbf24;
  --grey: #6b7280;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.hero {
  padding: 96px 24px 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(109, 94, 242, 0.22), transparent),
    linear-gradient(180deg, #0e1119, var(--bg));
  border-bottom: 1px solid var(--border);
}

.logo {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6d5ef2, #9d7bff);
  box-shadow: 0 8px 24px rgba(109, 94, 242, 0.35);
}

.hero h1 {
  font-size: 40px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.subtitle { color: var(--muted); font-size: 17px; margin-bottom: 6px; }

.description { color: var(--muted); font-size: 14px; max-width: 560px; margin: 8px auto 0; line-height: 1.7; }

main { max-width: 1080px; margin: 0 auto; padding: 56px 24px; }

.projects h2 {
  font-size: 20px;
  margin-bottom: 24px;
  display: flex; align-items: baseline; gap: 8px;
}

.count { color: var(--muted); font-size: 14px; font-weight: normal; }

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

.card {
  display: flex; flex-direction: column;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(109, 94, 242, 0.18);
}

.card.offline { opacity: 0.55; }
.card.offline:hover { transform: none; border-color: var(--border); box-shadow: none; }

.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

.icon { font-size: 30px; }

.status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 99px;
  display: inline-flex; align-items: center; gap: 5px;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.online { color: var(--green); background: rgba(52, 211, 153, 0.1); }
.status.wip { color: var(--yellow); background: rgba(251, 191, 36, 0.1); }
.status.warning { color: #fb923c; background: rgba(251, 146, 60, 0.12); }
.status.offline { color: var(--grey); background: rgba(107, 114, 128, 0.12); }

.card h3 { font-size: 19px; margin-bottom: 8px; }

.desc { color: var(--muted); font-size: 14px; line-height: 1.65; flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }

.tag {
  font-size: 12px;
  color: #b3b9c9;
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 6px;
}

.enter {
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.loading, .empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
}

footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .hero { padding: 64px 20px 40px; }
  .hero h1 { font-size: 30px; }
  main { padding: 36px 20px; }
  .grid { grid-template-columns: 1fr; }
}
