/* ── base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #f0f2f5;
  --surface:  #ffffff;
  --primary:  #1a3a5c;
  --accent:   #2a6fc9;
  --accent2:  #e8f0fb;
  --text:     #1a1a2e;
  --muted:    #6b7280;
  --border:   #e2e8f0;
  --shadow:   0 2px 12px rgba(26,58,92,.10);
  --radius:   12px;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #254d80 100%);
  color: #fff;
  padding: 56px 24px 48px;
}
.hero-inner { max-width: 900px; margin: 0 auto; }

.logo-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.logo-icon { font-size: 48px; line-height: 1; }
.site-title { font-size: 28px; font-weight: 700; letter-spacing: 2px; }
.site-sub { font-size: 14px; opacity: .75; }

.hero-desc { font-size: 16px; opacity: .88; max-width: 640px; margin-bottom: 28px; line-height: 1.8; }

.hero-stats { display: flex; gap: 36px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 32px; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 13px; opacity: .7; }

/* ── container ────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 36px 24px 60px; }

.roadmap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 28px;
}

.roadmap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.roadmap-title {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}

.roadmap-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.roadmap-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent2);
  border-radius: 999px;
  padding: 6px 12px;
}

.roadmap-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.roadmap-flow span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--primary);
}

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

.roadmap-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.roadmap-card h3 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 8px;
}

.roadmap-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── filters ───────────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.filter-btn {
  padding: 7px 18px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ── grid ──────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.empty { color: var(--muted); font-size: 15px; grid-column: 1/-1; text-align: center; padding: 48px 0; }

/* ── card (detail) ───────────────────────────────────────────────────── */
.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
}

/* ── card ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(26,58,92,.15); }

.card-header { display: flex; justify-content: space-between; align-items: center; }
.card-icon { font-size: 32px; line-height: 1; }

.card-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}
.card-status.active  { background: #d1fae5; color: #065f46; }
.card-status.in-dev   { background: #fef3c7; color: #92400e; }
.card-status.planning { background: #ede9fe; color: #5b21b6; }

.card-title { font-size: 16px; font-weight: 700; color: var(--primary); line-height: 1.3; }
.card-owner { font-size: 13px; color: var(--muted); }
.card-desc  { font-size: 13.5px; color: var(--text); line-height: 1.7; flex: 1; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px;
  padding: 3px 9px;
  background: var(--accent2);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 500;
}

.card-footer { border-top: 1px solid var(--border); padding-top: 10px; }
.card-tech { font-size: 12px; color: var(--muted); }

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

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 36px 16px 32px; }
  .site-title { font-size: 22px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 24px; }
  .container { padding: 24px 16px 48px; }
  .grid { grid-template-columns: 1fr; }
  .roadmap { padding: 18px; }
  .roadmap-head { flex-direction: column; }
}
