:root {
  color-scheme: dark;
  --bg-top: #0b0e1a;
  --bg-bottom: #1a2138;
  --text: #f2f4fb;
  --text-dim: rgba(242, 244, 251, 0.62);
  --link-bg: rgba(255, 255, 255, 0.06);
  --link-border: rgba(255, 255, 255, 0.16);
  --link-hover: rgba(255, 255, 255, 0.12);
  --accent: #8aa7ff;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI",
    system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 24px;
  text-align: center;
}

.site-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 0 32px rgba(138, 167, 255, 0.35);
}

.site-subtitle {
  margin-top: 14px;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  letter-spacing: 0.35em;
  color: var(--text-dim);
}

.links {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  background: var(--link-bg);
  border: 1px solid var(--link-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, transform 0.25s ease;
}

.link::after {
  content: "→";
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.link:hover,
.link:focus-visible {
  background: var(--link-hover);
  border-color: rgba(138, 167, 255, 0.55);
  box-shadow: 0 0 24px rgba(138, 167, 255, 0.25);
  transform: translateY(-2px);
}

.link:hover::after,
.link:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-footer {
  position: fixed;
  bottom: 20px;
  z-index: 1;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
  .link {
    transition: none;
  }

  .link:hover,
  .link:focus-visible {
    transform: none;
  }
}
