@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=ZCOOL+KuaiLe&display=swap');

:root {
  --bg-1: #f4efe6;
  --bg-2: #dfe9ff;
  --ink: #1f2337;
  --subtle: #545a73;
  --card: rgba(255, 255, 255, 0.86);
  --primary: #ff6b35;
  --primary-ink: #ffefe8;
  --ring: rgba(255, 107, 53, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Outfit', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background:
    radial-gradient(circle at 14% 10%, #fff7d1 0, rgba(255, 247, 209, 0) 45%),
    radial-gradient(circle at 84% 76%, #e8dcff 0, rgba(232, 220, 255, 0) 38%),
    linear-gradient(125deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: 0;
  filter: blur(0.4px);
}

.bg-shape--left {
  width: 340px;
  height: 340px;
  left: -110px;
  top: 9vh;
  border-radius: 42% 58% 65% 35% / 47% 33% 67% 53%;
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.25), rgba(255, 107, 53, 0.06));
  animation: drift 9s ease-in-out infinite;
}

.bg-shape--right {
  width: 380px;
  height: 380px;
  right: -120px;
  bottom: -50px;
  border-radius: 64% 36% 46% 54% / 48% 62% 38% 52%;
  background: linear-gradient(145deg, rgba(57, 96, 255, 0.21), rgba(57, 96, 255, 0.06));
  animation: drift 11s ease-in-out infinite reverse;
}

.portal {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 2.2rem));
  margin: 5.5rem auto 3.6rem;
}

.hero {
  margin-bottom: 2rem;
}

.brand {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: #263154;
  text-transform: uppercase;
}

h1 {
  margin: 0.55rem 0 0.8rem;
  font-size: clamp(2rem, 4.3vw, 3.5rem);
  line-height: 1.1;
  font-family: 'ZCOOL KuaiLe', 'Outfit', sans-serif;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--subtle);
  font-size: 1.06rem;
  line-height: 1.7;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.nav-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: var(--card);
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 36px rgba(23, 30, 71, 0.12);
  padding: 1.2rem 1.2rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.nav-card--primary:hover,
.nav-card--primary:focus-visible {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 46px rgba(20, 28, 68, 0.18);
  border-color: var(--ring);
  outline: none;
}

.nav-card h2 {
  margin: 0.45rem 0 0.62rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

.nav-card p {
  margin: 0;
  color: var(--subtle);
  line-height: 1.58;
}

.nav-tag {
  display: inline-flex;
  align-items: center;
  margin: 0;
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.nav-card--primary .nav-tag {
  background: rgba(255, 107, 53, 0.16);
  color: #8d340f;
}

.nav-card--coming .nav-tag {
  background: rgba(57, 96, 255, 0.13);
  color: #1d2f85;
}

.nav-card--coming {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 560ms ease forwards;
  animation-delay: 120ms;
}

.nav-card--coming:nth-child(3) {
  animation-delay: 220ms;
}

.nav-action {
  display: inline-block;
  margin-top: 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-card--primary .nav-action {
  color: var(--primary);
}

.nav-card--coming .nav-action {
  color: #41519b;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(14px, -10px) rotate(3deg);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .portal {
    margin-top: 4.4rem;
  }

  .nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .portal {
    width: min(680px, calc(100% - 1.2rem));
    margin-top: 3.2rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .nav-grid {
    grid-template-columns: 1fr;
  }

  .nav-card {
    border-radius: 18px;
  }
}
