:root {
  --bg-color: #12002f;
  --glow-color-1: #a960ff;
  --glow-color-2: #ff47a7;
  --text-color: #e0e0e0;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(120deg, #f7f7fa 0%, #ececff 60%, #e6e6ff 100%);
  color: #222;
  font-family: 'Inter', '微软雅黑', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
}

body::before, body::after {
  content: '';
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.38;
}

body::before {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -120px;
  background: radial-gradient(circle, #b7aaff 0%, transparent 80%);
}

body::after {
  width: 340px;
  height: 340px;
  right: -100px;
  bottom: -100px;
  background: radial-gradient(circle, #ffb6c1 0%, transparent 80%);
}

#particles-js {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 0;
}

.nav-container {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.nav-title {
  font-size: 2.7rem;
  font-weight: 900;
  margin-bottom: 2.2rem;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #7b5cff 10%, #b7aaff 60%, #ffb6c1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-align: center;
  line-height: 1.18;
  text-shadow: 0 2px 16px #b7aaff22;
}

.nav-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  width: 100%;
  max-width: 1200px;
  padding: 0 1.2rem 2.5rem 1.2rem;
  box-sizing: border-box;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: rgba(255,255,255,0.75);
  border-radius: 22px;
  box-shadow: 0 4px 32px 0 #b7aaff22, 0 1.5px 8px 0 #e0e0f5;
  padding: 2.2rem 2.3rem 1.8rem 2.3rem;
  text-decoration: none;
  border: 1.5px solid #ececf6;
  backdrop-filter: blur(8px) saturate(1.2);
  background-clip: padding-box;
  position: relative;
  transition: box-shadow 0.28s cubic-bezier(.4,0,.2,1), border 0.18s, transform 0.28s cubic-bezier(.4,0,.2,1);
  min-width: 260px;
  max-width: 350px;
  min-height: 34px;
  box-sizing: border-box;
}

.nav-link:hover, .nav-link:focus {
  box-shadow: 0 16px 48px #b7aaff44, 0 2px 12px #e0e0f5;
  border: 1.5px solid #7b5cff;
  transform: translateY(-10px) scale(1.045);
}

.nav-link-icon {
  margin-bottom: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 54px;
  background: linear-gradient(135deg, #f3f0ff 60%, #f9f9ff 100%);
  border-radius: 50%;
  box-shadow: 0 2px 12px #ececf6;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), box-shadow 0.28s;
}

.nav-link:hover .nav-link-icon,
.nav-link:focus .nav-link-icon {
  transform: scale(1.22) rotate(-8deg);
  box-shadow: 0 4px 24px #b7aaff55;
}

.nav-link-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.7em;
}

.nav-link-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #3a2e6c;
  margin-bottom: 0.35em;
  text-align: center;
  line-height: 1.18;
  letter-spacing: 0.5px;
}

.nav-link-desc {
  font-size: 1.01rem;
  color: #8a8a9c;
  text-align: center;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.2px;
}

.nav-link-btn {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.55em 2.2em;
  font-size: 1.08em;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #7b5cff 0%, #b7aaff 100%);
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 16px #b7aaff33;
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.22s, transform 0.22s;
  letter-spacing: 0.7px;
  text-align: center;
  backdrop-filter: blur(2px);
}

.nav-link-btn:hover, .nav-link-btn:focus {
  background: linear-gradient(90deg, #ffb6c1 0%, #7b5cff 100%);
  box-shadow: 0 6px 32px #ffb6c155;
  transform: scale(1.11);
}

@media (max-width: 900px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 98vw;
    padding: 0 0.2rem 1.5rem 0.2rem;
  }
  .nav-link {
    min-width: 0;
    max-width: 98vw;
    width: 100%;
    padding: 1.5rem 1.1rem 1.2rem 1.1rem;
    min-height: 180px;
    border-radius: 28px;
  }
  .nav-link-icon {
    min-width: 38px;
    min-height: 38px;
    margin-bottom: 0.7em;
  }
  .nav-link-title {
    font-size: 1.08rem;
  }
  .nav-link-desc {
    font-size: 0.93rem;
  }
  .nav-link-btn {
    font-size: 0.97em;
    padding: 0.38em 1.3em;
    margin-top: 1.1em;
  }
  .nav-container {
    min-height: 100vh;
    justify-content: center;
    align-items: center;
  }
  .nav-title {
    margin-bottom: 1.2rem;
  }
}

.bg-glass1 {
  position: fixed;
  top: -40px;
  left: -60px;
  width: 520px;
  height: 400px;
  background: linear-gradient(120deg, rgba(123,92,255,0.32) 0%, rgba(0,212,255,0.22) 100%);
  border-radius: 180px 260px 180px 220px / 220px 180px 260px 180px;
  box-shadow: 0 8px 48px 0 #7b5cff44, 0 0 80px 40px #b7aaff33 inset;
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  opacity: 0.95;
  z-index: 0;
  transform: rotate(-7deg);
  pointer-events: none;
}

.bg-glass2 {
  position: fixed;
  right: -60px;
  bottom: -40px;
  width: 400px;
  height: 300px;
  background: linear-gradient(120deg, rgba(0,184,148,0.28) 0%, rgba(123,92,255,0.18) 100%);
  border-radius: 180px 220px 180px 160px / 180px 160px 220px 180px;
  box-shadow: 0 8px 48px 0 #00b89444, 0 0 80px 40px #7b5cff33 inset;
  backdrop-filter: blur(13px) saturate(1.5);
  -webkit-backdrop-filter: blur(13px) saturate(1.5);
  opacity: 0.92;
  z-index: 0;
  transform: rotate(8deg);
  pointer-events: none;
}

@media (max-width: 900px) {
  .bg-glass1 {
    top: -30px;
    left: -30px;
    width: 260px;
    height: 160px;
    border-radius: 100px 140px 120px 100px / 120px 100px 140px 120px;
  }
  .bg-glass2 {
    right: -20px;
    bottom: -20px;
    width: 160px;
    height: 100px;
    border-radius: 80px 100px 80px 80px / 100px 80px 100px 80px;
  }
}