:root {
  color-scheme: light;
  --ink: #66536f;
  --muted: #9b8ca4;
  --pink: #e89cbd;
  --pink-light: #f9dbe9;
  --blue: #96c9e8;
  --blue-light: #dff3fb;
  --cream: #fffdfd;
  --yellow: #ffe99a;
  --shadow: rgba(109, 78, 124, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: #fbf1f7;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.96) 0 8%, transparent 28%),
    radial-gradient(circle at 84% 82%, rgba(204, 236, 249, 0.78), transparent 34%),
    linear-gradient(145deg, #fffafa 0%, #f9eaf3 48%, #e9f5fb 100%);
}

button {
  font: inherit;
}

.dream-space,
.dream-space::before,
.dream-space::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.dream-space {
  overflow: hidden;
}

.dream-space::before {
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(133, 173, 201, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 173, 201, 0.11) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, #000 5%, transparent 72%);
}

.dream-space::after {
  content: "";
  inset: -30%;
  opacity: 0.26;
  background: repeating-linear-gradient(
    118deg,
    transparent 0 88px,
    rgba(255, 255, 255, 0.7) 89px,
    transparent 91px 180px
  );
  animation: data-drift 24s linear infinite;
}

.aurora {
  position: absolute;
  width: min(52vw, 650px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  animation: aurora-float 12s ease-in-out infinite alternate;
}

.aurora--pink {
  top: -25%;
  right: 4%;
  background: radial-gradient(circle, rgba(249, 191, 218, 0.7), rgba(255, 255, 255, 0));
}

.aurora--blue {
  bottom: -32%;
  left: -4%;
  background: radial-gradient(circle, rgba(180, 226, 246, 0.78), rgba(255, 255, 255, 0));
  animation-delay: -6s;
}

.star,
.data-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
}

.star {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.84);
  opacity: 0.3;
  animation: star-breathe var(--duration) ease-in-out var(--delay) infinite;
}

.star:nth-child(3n) {
  background: #f6b8d1;
  box-shadow: 0 0 8px 2px rgba(246, 184, 209, 0.62);
}

.star:nth-child(4n) {
  background: #a9d9ee;
  box-shadow: 0 0 8px 2px rgba(169, 217, 238, 0.62);
}

.data-particle {
  width: var(--size);
  height: var(--size);
  border: 1px solid rgba(126, 180, 213, 0.45);
  border-radius: 2px;
  opacity: 0;
  transform: rotate(45deg);
  animation: particle-rise var(--duration) ease-in-out var(--delay) infinite;
}

.data-particle:nth-child(3n) {
  border-color: rgba(231, 143, 184, 0.5);
}

.data-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  box-shadow: inset 0 0 34px rgba(166, 216, 239, 0.12);
}

.data-orbit::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 15px 4px rgba(236, 171, 203, 0.55);
}

.data-orbit--one {
  width: 380px;
  height: 380px;
  left: -210px;
  top: 18%;
  animation: slow-spin 26s linear infinite;
}

.data-orbit--one::before {
  right: 38px;
  top: 62px;
}

.data-orbit--two {
  width: 270px;
  height: 270px;
  right: -130px;
  bottom: 6%;
  animation: slow-spin 20s linear infinite reverse;
}

.data-orbit--two::before {
  left: 14px;
  bottom: 82px;
}

.home-shell {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 72px 24px 82px;
}

.portal-card {
  position: relative;
  width: min(720px, 100%);
  padding: clamp(44px, 7vw, 74px) clamp(24px, 7vw, 82px) 32px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 253, 0.52));
  box-shadow:
    0 28px 70px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(211, 181, 206, 0.2);
  backdrop-filter: blur(22px);
}

.portal-card::before,
.portal-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.portal-card::before {
  inset: 10px;
  border: 1px solid rgba(221, 185, 210, 0.24);
  border-radius: 28px;
}

.portal-card::after {
  z-index: -1;
  inset: -20px;
  border-radius: 48px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.68), transparent 56%);
  filter: blur(6px);
}

.card-corners span {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(130, 185, 215, 0.6);
}

.card-corners span:nth-child(1) {
  top: 23px;
  left: 23px;
  border-top: 1px solid;
  border-left: 1px solid;
  border-radius: 8px 0 0;
}

.card-corners span:nth-child(2) {
  top: 23px;
  right: 23px;
  border-top: 1px solid;
  border-right: 1px solid;
  border-radius: 0 8px 0 0;
}

.card-corners span:nth-child(3) {
  right: 23px;
  bottom: 23px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  border-radius: 0 0 8px;
}

.card-corners span:nth-child(4) {
  bottom: 23px;
  left: 23px;
  border-bottom: 1px solid;
  border-left: 1px solid;
  border-radius: 0 0 0 8px;
}

.node-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #a38a9e;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.node-signal {
  width: 7px;
  height: 7px;
  border: 1px solid #dda6bf;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(232, 156, 189, 0.12);
  animation: signal-pulse 3s ease-in-out infinite;
}

.title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 25px);
}

h1 {
  margin: 0;
  color: #70556f;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(3.25rem, 12vw, 6.85rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.025em;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9),
    0 10px 30px rgba(207, 146, 184, 0.22);
}

.tiny-star {
  position: relative;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: #e8aec8;
  box-shadow: 0 0 12px rgba(232, 174, 200, 0.8);
  animation: star-breathe 4s ease-in-out infinite;
}

.tiny-star--right {
  width: 6px;
  height: 6px;
  background: #9fd0e8;
  animation-delay: -2s;
}

.loading-copy {
  margin: 24px 0 0;
  color: #766379;
  font-size: clamp(1rem, 3vw, 1.17rem);
  letter-spacing: 0.08em;
}

.loading-dots::after {
  content: "……";
  display: inline-block;
  width: 2em;
  overflow: hidden;
  vertical-align: bottom;
  animation: dots 3s steps(3, end) infinite;
}

.memory-copy {
  margin: 12px 0 0;
  color: #a494a8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  font-style: italic;
  letter-spacing: 0.11em;
}

.soft-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(290px, 78%);
  margin: 28px auto 25px;
}

.soft-divider span {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 164, 191, 0.46));
}

.soft-divider span:last-child {
  transform: scaleX(-1);
}

.soft-divider i {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  border: 1px solid #d9acc3;
  border-radius: 1px;
}

.enter-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: min(260px, 100%);
  min-height: 54px;
  padding: 14px 20px 14px 26px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  outline: none;
  background: linear-gradient(110deg, #eaa5c3, #beaed8 52%, #95c9e6);
  box-shadow:
    0 12px 28px rgba(178, 131, 177, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.enter-button::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -35%;
  width: 42%;
  height: 160%;
  transform: rotate(16deg);
  background: rgba(255, 255, 255, 0.3);
  transition: left 650ms ease;
}

.enter-button span,
.enter-button i {
  position: relative;
  z-index: 1;
}

.enter-button span {
  letter-spacing: 0.1em;
}

.enter-button i {
  font-size: 1.12rem;
  font-style: normal;
  transition: transform 220ms ease;
}

.enter-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
  box-shadow: 0 16px 32px rgba(178, 131, 177, 0.29);
}

.enter-button:hover::before {
  left: 110%;
}

.enter-button:hover i {
  transform: translateX(3px);
}

.enter-button:focus-visible {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.88),
    0 0 0 7px rgba(153, 198, 225, 0.6),
    0 16px 32px rgba(178, 131, 177, 0.28);
}

.enter-button:active {
  transform: translateY(1px) scale(0.99);
}

.domain-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: #806c85;
  font-size: 0.86rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-7px);
  transition: max-height 500ms ease, margin 500ms ease, opacity 500ms ease, transform 500ms ease;
}

.domain-message span {
  color: #e5a1bf;
}

.domain-message.is-visible {
  max-height: 80px;
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
}

.status-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: #b2a6b4;
  font-size: 0.56rem;
  letter-spacing: 0.13em;
}

.status-line {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(188, 180, 196, 0.22);
}

.status-line i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #eab1ca, #9fcfe8);
  animation: status-scan 5s ease-in-out infinite alternate;
}

.lemon-garden {
  --decor-scale: 1;
  position: absolute;
  left: max(4vw, calc(50% - 430px));
  bottom: max(10vh, 82px);
  width: 140px;
  height: 118px;
  filter: drop-shadow(0 10px 15px rgba(138, 116, 122, 0.13));
  transform: rotate(-7deg) scale(var(--decor-scale));
  animation: float-lemon 6s ease-in-out infinite;
}

.lemon {
  position: absolute;
  width: 61px;
  height: 47px;
  transform: rotate(-15deg);
  border: 2px solid rgba(198, 169, 88, 0.36);
  border-radius: 58% 44% 57% 44%;
  background: linear-gradient(145deg, #fff9c9 0%, var(--yellow) 63%, #f4d66e 100%);
  box-shadow: inset 8px 7px 11px rgba(255, 255, 255, 0.48);
}

.lemon::before,
.lemon::after {
  content: "";
  position: absolute;
  top: 46%;
  width: 6px;
  height: 6px;
  background: #f4d66e;
}

.lemon::before {
  left: -4px;
  transform: rotate(45deg);
  border-radius: 1px;
}

.lemon::after {
  right: -4px;
  transform: rotate(45deg);
  border-radius: 1px;
}

.lemon i {
  position: absolute;
  top: 9px;
  left: 16px;
  width: 14px;
  height: 7px;
  transform: rotate(-18deg);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.lemon--one {
  left: 12px;
  bottom: 10px;
}

.lemon--two {
  right: 2px;
  bottom: 20px;
  transform: rotate(23deg) scale(0.84);
}

.leaf {
  position: absolute;
  z-index: 1;
  width: 42px;
  height: 22px;
  border: 1px solid rgba(83, 150, 111, 0.32);
  border-radius: 100% 5% 100% 5%;
  background: linear-gradient(145deg, #bce1b9, #83c39b);
}

.leaf::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 29px;
  height: 1px;
  transform: rotate(-18deg);
  transform-origin: left;
  background: rgba(72, 135, 95, 0.35);
}

.leaf--one {
  left: 47px;
  top: 33px;
  transform: rotate(-18deg);
}

.leaf--two {
  left: 67px;
  top: 14px;
  transform: rotate(38deg) scale(0.78);
}

.lemon-spark {
  position: absolute;
  top: 2px;
  left: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  text-shadow: 0 0 9px #fff;
}

.little-fish {
  --decor-scale: 1;
  position: absolute;
  right: max(5vw, calc(50% - 448px));
  top: max(12vh, 90px);
  width: 122px;
  height: 82px;
  filter: drop-shadow(0 12px 13px rgba(100, 144, 171, 0.14));
  animation: fish-swim 7s ease-in-out infinite;
}

.fish-body {
  position: absolute;
  z-index: 2;
  right: 5px;
  bottom: 6px;
  width: 79px;
  height: 52px;
  transform: rotate(-4deg);
  border: 2px solid rgba(99, 161, 197, 0.36);
  border-radius: 62% 48% 52% 61%;
  background: linear-gradient(145deg, #f9fdff, #ccecf9 68%, #9ed4eb);
  box-shadow: inset 8px 7px 10px rgba(255, 255, 255, 0.78);
}

.fish-tail {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 11px;
  width: 40px;
  height: 45px;
  transform: rotate(3deg);
  border: 2px solid rgba(99, 161, 197, 0.3);
  border-radius: 85% 14% 85% 18%;
  background: linear-gradient(135deg, #dff5fb, #a9dced);
  animation: tail-wave 2.8s ease-in-out infinite;
}

.fish-eye {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #695d73;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.76);
}

.fish-blush {
  position: absolute;
  right: 22px;
  bottom: 10px;
  width: 14px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 158, 191, 0.42);
  filter: blur(1px);
}

.fish-fin {
  position: absolute;
  left: 30px;
  bottom: -9px;
  width: 23px;
  height: 17px;
  transform: rotate(15deg);
  border: 2px solid rgba(99, 161, 197, 0.25);
  border-top: 0;
  border-radius: 0 0 90% 30%;
  background: rgba(179, 224, 241, 0.78);
}

.fish-bubble {
  position: absolute;
  border: 1px solid rgba(121, 184, 217, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  animation: bubble-rise 4s ease-in-out infinite;
}

.fish-bubble--one {
  top: 9px;
  right: 0;
  width: 10px;
  height: 10px;
}

.fish-bubble--two {
  top: 0;
  right: 17px;
  width: 6px;
  height: 6px;
  animation-delay: -1.8s;
}

.page-footer {
  position: fixed;
  z-index: 3;
  right: 0;
  bottom: 24px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(113, 98, 120, 0.46);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
}

.footer-star {
  color: rgba(225, 151, 186, 0.7);
}

@keyframes aurora-float {
  to { transform: translate3d(4%, 5%, 0) scale(1.08); }
}

@keyframes data-drift {
  to { transform: translate3d(12%, -10%, 0); }
}

@keyframes slow-spin {
  to { transform: rotate(360deg); }
}

@keyframes star-breathe {
  0%, 100% { opacity: 0.2; transform: scale(0.75); }
  50% { opacity: 0.82; transform: scale(1.25); }
}

@keyframes particle-rise {
  0% { opacity: 0; transform: translateY(22px) rotate(45deg) scale(0.7); }
  30% { opacity: 0.55; }
  70% { opacity: 0.32; }
  100% { opacity: 0; transform: translateY(-44px) rotate(135deg) scale(1); }
}

@keyframes signal-pulse {
  50% { background: #f5b4d0; box-shadow: 0 0 0 6px rgba(232, 156, 189, 0.08); }
}

@keyframes dots {
  0% { width: 0; }
  100% { width: 2em; }
}

@keyframes status-scan {
  0% { width: 20%; opacity: 0.56; }
  100% { width: 78%; opacity: 0.88; }
}

@keyframes float-lemon {
  0%, 100% { transform: translateY(0) rotate(-7deg) scale(var(--decor-scale)); }
  50% { transform: translateY(-9px) rotate(-4deg) scale(var(--decor-scale)); }
}

@keyframes fish-swim {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg) scale(var(--decor-scale)); }
  50% { transform: translate3d(-10px, 8px, 0) rotate(2deg) scale(var(--decor-scale)); }
}

@keyframes tail-wave {
  0%, 100% { transform: rotate(3deg) skewY(0); }
  50% { transform: rotate(-6deg) skewY(5deg); }
}

@keyframes bubble-rise {
  0%, 100% { opacity: 0; transform: translateY(8px) scale(0.75); }
  40% { opacity: 0.7; }
  80% { opacity: 0.2; transform: translateY(-11px) scale(1); }
}

@media (max-width: 760px) {
  .home-shell {
    padding: 68px 18px 76px;
  }

  .portal-card {
    padding: 46px 22px 27px;
    border-radius: 30px;
  }

  .portal-card::before {
    border-radius: 23px;
  }

  .node-label {
    margin-bottom: 22px;
    font-size: 0.61rem;
  }

  .lemon-garden {
    --decor-scale: 0.7;
    left: -8px;
    bottom: 52px;
    transform-origin: left bottom;
  }

  .little-fish {
    --decor-scale: 0.72;
    top: 34px;
    right: -5px;
    transform-origin: right top;
  }

  .page-footer {
    bottom: 16px;
  }

  .page-footer span:first-child,
  .page-footer span:last-child {
    font-size: 0.52rem;
  }
}

@media (max-width: 420px) {
  .home-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .portal-card {
    padding-right: 17px;
    padding-left: 17px;
  }

  .title-wrap {
    gap: 9px;
  }

  .tiny-star {
    width: 6px;
    height: 6px;
  }

  .memory-copy {
    font-size: 0.76rem;
    letter-spacing: 0.07em;
  }

  .status-row {
    gap: 7px;
    font-size: 0.49rem;
  }

  .domain-message {
    padding: 0 8px;
    font-size: 0.79rem;
  }

  .page-footer {
    gap: 8px;
  }
}

@media (max-height: 680px) and (min-width: 480px) {
  .home-shell {
    padding-top: 40px;
    padding-bottom: 54px;
  }

  .portal-card {
    padding-top: 36px;
    padding-bottom: 24px;
  }

  .node-label {
    margin-bottom: 16px;
  }

  .loading-copy {
    margin-top: 18px;
  }

  .soft-divider {
    margin-top: 20px;
    margin-bottom: 18px;
  }

  .status-row {
    margin-top: 22px;
  }

  .page-footer {
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
