:root {
  --bg: #f6f8fc;
  --bg-soft: #edf3ff;
  --text: #1f2a3d;
  --muted: #6b7890;
  --line: rgba(126, 150, 191, 0.18);
  --accent: #1363d1;
  --accent-soft: rgba(19, 99, 209, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  overflow: hidden auto;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.layout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(1000px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 0 28px;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-wash {
  background:
    radial-gradient(circle at 12% 16%, rgba(153, 208, 255, 0.28), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(255, 210, 166, 0.28), transparent 26%),
    radial-gradient(circle at 50% 84%, rgba(190, 205, 255, 0.34), transparent 30%);
}

.bg-orb {
  width: 28rem;
  height: 28rem;
  margin: auto;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
}

.orb-a {
  inset: -8% auto auto -8%;
  background: rgba(134, 190, 255, 0.34);
  animation: floatOrb 16s ease-in-out infinite;
}

.orb-b {
  inset: auto -10% 12% auto;
  background: rgba(255, 212, 168, 0.3);
  animation: floatOrb 20s ease-in-out infinite reverse;
}

.orb-c {
  inset: 26% auto auto 38%;
  background: rgba(204, 218, 255, 0.4);
  animation: floatOrb 22s ease-in-out infinite;
}

.home-content {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0 36px;
}

.site-header {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(126, 150, 191, 0.22);
}

.site-name {
  color: var(--accent);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.intro-block {
  padding: 30px 0 18px;
  border-bottom: 1px solid rgba(126, 150, 191, 0.22);
}

.intro-block h1,
.intro-block p,
.links-block h2 {
  margin: 0;
}

.intro-block h1 {
  font-size: clamp(2rem, 3.9vw, 3.15rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.05em;
}

.wave {
  display: inline-block;
  transform-origin: 72% 72%;
  animation: waveHand 2.4s ease-in-out infinite;
}

.intro-block p {
  margin-top: 22px;
  max-width: 28em;
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  color: var(--text);
}

.links-block {
  padding-top: 76px;
}

.links-block h2 {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 24px;
  margin-top: 26px;
  max-width: 980px;
}

.link-chip {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: inset 0 0 0 1px rgba(126, 150, 191, 0.12);
  color: var(--accent);
  font-family: "Consolas", "JetBrains Mono", "Courier New", monospace;
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  font-weight: 700;
  transition:
    transform 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.link-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(19, 99, 209, 0.12),
    0 14px 30px rgba(111, 139, 182, 0.12);
}

.page-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 48px 36px 14px;
  color: var(--muted);
  text-align: center;
  font-size: clamp(0.95rem, 1vw, 1.06rem);
}

.page-footer-line {
  margin: 0;
  color: inherit;
}

@keyframes waveHand {
  0%,
  100% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(16deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  45% {
    transform: rotate(14deg);
  }
  60% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(24px, -18px, 0);
  }
}

@media (max-width: 920px) {
  .layout {
    width: min(100% - 24px, 1000px);
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .home-content {
    padding: 0 12px;
  }

  .links-block {
    padding-top: 56px;
  }
}

@media (max-width: 640px) {
  .layout {
    padding-top: 16px;
  }

  .home-content,
  .page-footer {
    padding-left: 6px;
    padding-right: 6px;
  }

  .intro-block {
    padding-top: 24px;
    padding-bottom: 16px;
  }

  .intro-block p {
    margin-top: 18px;
  }

  .links-block {
    padding-top: 40px;
  }

  .link-list {
    gap: 16px;
  }

  .link-chip {
    width: 100%;
  }
}
