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

:root {
  --cyan: #27e9df;
  --teal: #069daa;
  --blue: #55a7ff;
  --pink: #ff68a8;
  --coral: #ff8f72;
  --lemon: #ffe66f;
  --ink: #183044;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fbf8f2;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.scene,
.bg-art,
.bg-wash,
.stage-light,
.equalizer,
.sticker,
.note,
#particles {
  position: fixed;
  pointer-events: none;
}

.scene {
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-art {
  inset: 0;
  z-index: -6;
  background: url("assets/background.png") center center / cover no-repeat fixed;
  filter: saturate(1.08) contrast(1.02) brightness(1.03);
  transform: scale(1.015);
  animation: bgBreath 12s ease-in-out infinite alternate;
}

.bg-wash {
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 76% 43%, rgba(255, 255, 255, 0.03), transparent 25%),
    linear-gradient(90deg, rgba(244, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 246, 250, 0.22) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 58%, rgba(255, 255, 255, 0.14) 100%);
}

.stage-light {
  z-index: -4;
  width: 58vmax;
  height: 58vmax;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.4;
  mix-blend-mode: screen;
}

.light-a {
  left: -20vmax;
  top: -22vmax;
  background: conic-gradient(from 120deg, var(--cyan), transparent, var(--pink), transparent, var(--lemon), var(--cyan));
  animation: driftA 14s ease-in-out infinite alternate;
}

.light-b {
  right: -22vmax;
  bottom: -22vmax;
  background: conic-gradient(from 260deg, var(--blue), transparent, var(--cyan), transparent, var(--pink), var(--blue));
  animation: driftB 16s ease-in-out infinite alternate;
}

.equalizer {
  right: clamp(22px, 5vw, 70px);
  bottom: clamp(22px, 5vw, 70px);
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 7px;
  opacity: 0.78;
}

.equalizer span {
  width: 9px;
  height: 32px;
  border-radius: 99px;
  background: linear-gradient(180deg, #fff, var(--cyan), var(--pink));
  box-shadow: 0 0 18px rgba(39, 233, 223, 0.72);
  animation: bar 980ms ease-in-out infinite alternate;
}

.equalizer span:nth-child(2) { animation-delay: 120ms; }
.equalizer span:nth-child(3) { animation-delay: 240ms; }
.equalizer span:nth-child(4) { animation-delay: 80ms; }
.equalizer span:nth-child(5) { animation-delay: 320ms; }
.equalizer span:nth-child(6) { animation-delay: 180ms; }

.sticker {
  z-index: 1;
  padding: 8px 13px;
  color: #087b86;
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(39, 233, 223, 0.48);
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(14, 109, 123, 0.14);
  backdrop-filter: blur(8px);
  animation: floatSticker 5.8s ease-in-out infinite;
}

.sticker-a {
  top: 10%;
  left: 8%;
  transform: rotate(-8deg);
}

.note {
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 0 18px rgba(39, 233, 223, 0.8), 0 0 8px rgba(255, 104, 168, 0.4);
  font-size: clamp(24px, 4vw, 46px);
  animation: floatNote 6s ease-in-out infinite;
}

.note-a { top: 18%; left: 22%; }
.note-b { top: 29%; right: 18%; animation-delay: 1.2s; }
.note-c { left: 10%; bottom: 20%; animation-delay: 2s; }
.note-d { right: 20%; bottom: 24%; animation-delay: 0.6s; }

#particles {
  inset: 0;
  z-index: 1;
}

.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 16px rgba(39, 233, 223, 0.86), 0 0 28px rgba(255, 104, 168, 0.25);
  animation: particleRise var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 56px);
}

.panel {
  --mx: 0deg;
  --my: 0deg;
  position: relative;
  width: min(490px, 92vw);
  padding: clamp(24px, 4vw, 38px) clamp(18px, 3vw, 30px);
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(233, 255, 253, 0.52)),
    radial-gradient(circle at 18% 0%, rgba(39, 233, 223, 0.28), transparent 34%),
    radial-gradient(circle at 86% 100%, rgba(255, 104, 168, 0.2), transparent 32%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  box-shadow:
    0 30px 80px rgba(42, 79, 90, 0.24),
    0 0 0 1px rgba(39, 233, 223, 0.2) inset,
    0 0 50px rgba(39, 233, 223, 0.2);
  backdrop-filter: blur(18px) saturate(1.24);
  -webkit-backdrop-filter: blur(18px) saturate(1.24);
  transform: perspective(1000px) rotateX(var(--mx)) rotateY(var(--my));
  animation: panelIn 650ms cubic-bezier(0.2, 1, 0.25, 1);
}

.panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.52), transparent 58%);
  transform: translateX(-45%) rotate(8deg);
  animation: shine 5.5s ease-in-out infinite;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px dashed rgba(6, 157, 170, 0.24);
  border-radius: 20px;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 13px;
  padding: 6px 13px;
  color: #076f79;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(39, 233, 223, 0.55);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(6, 157, 170, 0.11);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(39, 233, 223, 0.82);
  animation: pulse 1.8s infinite;
}

.mini-stars {
  color: var(--pink);
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 18px);
  margin-bottom: 10px;
  color: var(--pink);
  text-shadow: 0 0 16px rgba(255, 104, 168, 0.45);
}

h1 {
  color: #067f88;
  font-size: clamp(44px, 9vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    2px 2px 0 rgba(255, 255, 255, 0.94),
    -2px 0 0 rgba(255, 104, 168, 0.2),
    0 0 24px rgba(39, 233, 223, 0.58);
}

.subtitle {
  margin-bottom: clamp(20px, 4vw, 30px);
  color: #334b61;
  font-size: clamp(14px, 2.7vw, 17px);
  font-weight: 800;
  line-height: 1.75;
}

.link-list {
  display: grid;
  gap: 13px;
}

.nav-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr 28px;
  align-items: center;
  min-height: 60px;
  padding: 12px 14px;
  overflow: hidden;
  color: #fff;
  font-size: clamp(14px, 2.8vw, 17px);
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 18px;
  box-shadow: 0 14px 26px rgba(6, 157, 170, 0.19);
  transform: translateY(14px);
  opacity: 0;
  animation: linkIn 560ms cubic-bezier(0.2, 1, 0.25, 1) forwards;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.nav-card:nth-child(1) { animation-delay: 170ms; }
.nav-card:nth-child(2) { animation-delay: 280ms; }
.nav-card:nth-child(3) { animation-delay: 390ms; }

.nav-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.5), transparent 48%);
  transform: translateX(-115%);
  transition: transform 520ms ease;
}

.nav-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
}

.nav-card:hover,
.nav-card:focus-visible {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 20px 38px rgba(6, 157, 170, 0.27);
  filter: saturate(1.1) brightness(1.03);
  outline: none;
}

.nav-card:hover::before,
.nav-card:focus-visible::before {
  transform: translateX(115%);
}

.nav-card:active {
  transform: translateY(-1px) scale(0.99);
}

.nav-card-primary {
  background: linear-gradient(135deg, #1fd2cd 0%, #4f8dff 55%, #886cff 100%);
}

.nav-card-candy {
  background: linear-gradient(135deg, #ff9b52 0%, #ff66a6 48%, #b35dff 100%);
}

.nav-card-chat {
  background: linear-gradient(135deg, #ff69b4 0%, #55a7ff 46%, #12b59f 100%);
}

.icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08) inset;
}

.arrow {
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1;
  opacity: 0.88;
}

.marquee {
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
  color: rgba(6, 127, 136, 0.54);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.marquee span {
  display: inline-block;
  min-width: 100%;
  animation: marquee 12s linear infinite;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 14px;
  color: rgba(24, 48, 68, 0.72);
  font-size: clamp(12px, 2.4vw, 14px);
  font-weight: 800;
}

.ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 520ms ease-out;
}

@keyframes bgBreath {
  to { transform: scale(1.035) translateY(-6px); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes shine {
  0%, 42% { transform: translateX(-45%) rotate(8deg); }
  72%, 100% { transform: translateX(45%) rotate(8deg); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(39, 233, 223, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 233, 223, 0); }
}

@keyframes driftA {
  to { transform: translate(8vmax, 7vmax) rotate(30deg); }
}

@keyframes driftB {
  to { transform: translate(-8vmax, -6vmax) rotate(-26deg); }
}

@keyframes floatSticker {
  50% { transform: translateY(-18px) rotate(4deg); }
}

@keyframes floatNote {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-30px) rotate(8deg); }
}

@keyframes bar {
  from { height: 20px; }
  to { height: 72px; }
}

@keyframes particleRise {
  from {
    transform: translate3d(0, 108vh, 0) scale(0.72);
    opacity: 0;
  }
  15%, 80% { opacity: 0.88; }
  to {
    transform: translate3d(var(--x-drift), -10vh, 0) scale(1.15);
    opacity: 0;
  }
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(12);
    opacity: 0;
  }
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

@media (max-width: 760px) {
  .bg-art {
    background:
      linear-gradient(180deg, #fffaf5 0%, #e9fbfb 48%, #fff6fb 100%);
    filter: none;
    transform: none;
    animation: none;
  }

  .bg-art::before,
  .bg-art::after {
    content: "";
    position: absolute;
    inset: 0;
  }

  .bg-art::before {
    inset: -28px;
    background: url("assets/background.png") center top / cover no-repeat;
    filter: blur(16px) saturate(1.08);
    opacity: 0.46;
    transform: scale(1.08);
  }

  .bg-art::after {
    background: url("assets/background.png") center top / 100% auto no-repeat;
    filter: saturate(1.08) contrast(1.02) brightness(1.02);
  }

  .bg-wash {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.1) 48%, rgba(255, 255, 255, 0.26) 100%),
      radial-gradient(circle at 50% 62%, rgba(39, 233, 223, 0.12), transparent 38%);
  }

  .wrap {
    justify-content: center;
    align-items: end;
    padding: 18px 18px max(20px, env(safe-area-inset-bottom));
  }

  .panel {
    width: min(430px, 88vw);
    padding: 22px 18px 20px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(232, 255, 253, 0.26)),
      radial-gradient(circle at 18% 0%, rgba(39, 233, 223, 0.18), transparent 34%),
      radial-gradient(circle at 86% 100%, rgba(255, 104, 168, 0.14), transparent 32%);
    border-color: rgba(255, 255, 255, 0.58);
    border-radius: 22px;
    box-shadow:
      0 22px 58px rgba(42, 79, 90, 0.18),
      0 0 0 1px rgba(39, 233, 223, 0.13) inset;
    backdrop-filter: blur(10px) saturate(1.12);
    -webkit-backdrop-filter: blur(10px) saturate(1.12);
  }

  .panel::before {
    opacity: 0.48;
  }

  .panel::after {
    inset: 9px;
    border-color: rgba(6, 157, 170, 0.18);
  }

  .topline {
    min-height: 28px;
    margin-bottom: 10px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.48);
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .subtitle {
    margin-bottom: 18px;
    font-size: clamp(13px, 3.7vw, 16px);
  }

  .link-list {
    gap: 11px;
  }

  .nav-card {
    min-height: 54px;
    border-radius: 16px;
  }

  .sticker-a {
    top: 9%;
    left: 7%;
    opacity: 0.68;
  }

  .equalizer {
    display: none;
  }
}

@media (max-width: 430px) {
  .nav-card {
    grid-template-columns: 34px 1fr 22px;
    min-height: 52px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  h1 {
    font-size: 44px;
  }

  .footer {
    margin-top: 12px;
  }

  .marquee {
    margin-top: 14px;
    font-size: 10px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .wrap {
    padding: 16px;
    justify-content: center;
  }

  .panel {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  h1 {
    font-size: 42px;
  }

  .subtitle {
    margin-bottom: 16px;
  }
}

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