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

:root {
  --bg: #0a0d12;
  --card: #141a22;
  --border: #232b36;
  --text: #e6edf3;
  --muted: #8b98a8;
  --accent: #4f8cff;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- 首页 ---------- */
.hero {
  background: radial-gradient(ellipse at 50% -10%, #1b2f4d 0%, #0d131b 55%, #0a0d12 100%);
  color: #fff;
  padding: 88px 24px 74px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.hero h1 {
  font-size: 2.6rem;
  letter-spacing: 4px;
  font-weight: 700;
  color: #fff;
}

.verse {
  margin-top: 20px;
  color: var(--muted);
  letter-spacing: 3px;
  font-size: 1rem;
  font-weight: 300;
}

.grid {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: -40px auto 0;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .55);
  border-color: #35507a;
}

.icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1;
}

.card h2 {
  font-size: 1.25rem;
  color: var(--text);
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  font-size: .92rem;
  flex: 1;
}

.go {
  margin-top: 20px;
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
}

footer {
  text-align: center;
  padding: 26px 16px 34px;
  color: #5c6878;
  font-size: .82rem;
}

footer a {
  color: #5c6878;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---------- 子页通用 ---------- */
.page-head {
  background: linear-gradient(135deg, #0d141d, #141d2b);
  color: #fff;
  padding: 26px 24px 30px;
  border-bottom: 1px solid var(--border);
}

.page-head a.back {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  font-size: .88rem;
}

.page-head a.back:hover {
  color: #fff;
}

.page-head h1 {
  margin-top: 10px;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #fff;
}

@media (max-width: 640px) {
  .hero {
    padding: 64px 20px 56px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .grid {
    margin-top: -28px;
    padding: 0 16px 40px;
  }
}
