:root {
  --bg: #eef4fb;
  --ink: #111827;
  --muted: #667085;
  --glass: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.72);
  --teal: #0f766e;
  --blue: #2563eb;
  --amber: #d97706;
  --shadow: 0 30px 90px rgba(15, 23, 42, 0.18);
}

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

html,
body {
  height: 100%;
}

body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 12%, #ffffff 0%, var(--bg) 58%, #dbeafe 100%);
  background-size: 36px 36px, 36px 36px, auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: pageFade 0.7s ease both;
}

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  width: 42vw;
  height: 42vw;
  min-width: 360px;
  min-height: 360px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.34;
  animation: auroraFloat 8s ease-in-out infinite alternate;
}

.aurora-one {
  left: -8vw;
  top: -14vh;
  background: #38bdf8;
}

.aurora-two {
  right: -10vw;
  top: 6vh;
  background: #2dd4bf;
  animation-delay: -2.2s;
}

.aurora-three {
  left: 34vw;
  bottom: -24vh;
  background: #f59e0b;
  animation-delay: -4s;
}

.page {
  position: relative;
  width: min(980px, 100%);
  max-height: 100%;
  z-index: 1;
}

.panel {
  position: relative;
  overflow: hidden;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: clamp(22px, 4vh, 34px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
    var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-align: center;
  backdrop-filter: blur(18px);
  animation: panelRise 0.76s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.75), transparent 42%);
  transform: translateX(-120%);
  animation: panelSheen 3.2s ease 0.45s both;
}

.brand {
  position: relative;
  z-index: 1;
}

.brand::before {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin: 0 auto clamp(12px, 2vh, 18px);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber));
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.26);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 13px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

h1 {
  margin-top: clamp(10px, 2vh, 16px);
  margin-bottom: 10px;
  font-size: clamp(38px, 7vw, 60px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  background: linear-gradient(100deg, #111827 0%, #0f766e 42%, #2563eb 76%, #111827 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin-bottom: clamp(12px, 2vh, 18px);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.product-wrap {
  position: relative;
  z-index: 1;
  width: min(310px, 42%);
  margin: 0 auto clamp(16px, 3vh, 26px);
}

.product-wrap::before {
  content: "";
  position: absolute;
  inset: 18% 4% 0;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  filter: blur(22px);
  transform: translateY(12px);
}

.product-wrap img {
  position: relative;
  width: 100%;
  height: min(17vh, 126px);
  object-fit: contain;
  display: block;
  animation: productFloat 3.8s ease-in-out infinite;
}

.actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.jump-card {
  --accent: var(--teal);
  position: relative;
  top: 12px;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(152px, 23vh, 196px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.64)),
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 42%);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  opacity: 0;
  animation: cardIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  will-change: transform;
}

.jump-card::before {
  content: "";
  position: absolute;
  inset: auto -36px -48px auto;
  width: 134px;
  height: 134px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  z-index: -1;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.jump-card::after {
  content: "进入 >";
  position: absolute;
  left: 22px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
  transition: transform 0.22s ease, background 0.22s ease;
}

.card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.56) 46%, transparent 58%);
  transform: translateX(-130%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.card-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
  width: 100%;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: rgba(15, 118, 110, 0.1);
  background: color-mix(in srgb, var(--accent) 13%, #ffffff);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),
    0 10px 24px color-mix(in srgb, var(--accent) 14%, transparent);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.jump-label {
  display: block;
  padding-top: 3px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.15;
}

.jump-desc {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}

.jump-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 34%, rgba(255, 255, 255, 0.8));
  box-shadow:
    0 26px 54px rgba(15, 23, 42, 0.16),
    0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.jump-card:hover::before {
  transform: scale(1.24);
  opacity: 0.95;
}

.jump-card:hover::after {
  transform: translateX(4px);
}

.jump-card:hover .card-glow {
  opacity: 1;
  animation: cardSheen 0.82s ease both;
}

.jump-card:hover .card-icon {
  transform: translateY(-3px) rotate(-4deg);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent),
    0 14px 30px color-mix(in srgb, var(--accent) 20%, transparent);
}

.jump-card:active {
  transform: translateY(-2px);
}

.jump-card[data-tone="mini"] {
  --accent: var(--teal);
  animation-delay: 0.12s;
}

.jump-card[data-tone="v2"] {
  --accent: var(--blue);
  animation-delay: 0.2s;
}

.jump-card[data-tone="v1"] {
  --accent: var(--amber);
  animation-delay: 0.28s;
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(10px, 2vh, 18px);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-height: 720px) {
  .product-wrap {
    width: min(220px, 32%);
  }

  .product-wrap img {
    height: min(13vh, 92px);
  }

  .jump-card {
    min-height: 136px;
    padding: 18px;
  }

  .jump-card::after {
    left: 18px;
    bottom: 16px;
  }

  .jump-label {
    font-size: 20px;
  }
}

@media (max-width: 620px) {
  body {
    padding: 16px;
  }

  .panel {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 18px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .product-wrap {
    width: min(210px, 70%);
    margin-bottom: 12px;
  }

  .product-wrap img {
    height: min(13vh, 86px);
  }

  .actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .jump-card {
    min-height: 92px;
    padding: 15px 16px;
    border-radius: 18px;
  }

  .jump-card::after {
    left: auto;
    right: 16px;
    bottom: 50%;
    transform: translateY(50%);
  }

  .jump-card:hover::after {
    transform: translate(4px, 50%);
  }

  .card-body {
    padding-right: 82px;
    column-gap: 12px;
  }

  .card-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 14px;
  }

  .jump-label {
    font-size: 18px;
  }

  .jump-desc {
    margin-top: 5px;
  }
}

@keyframes pageFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelSheen {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    top: 0;
  }
}

@keyframes cardSheen {
  from {
    transform: translateX(-130%);
  }

  to {
    transform: translateX(130%);
  }
}

@keyframes productFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes auroraFloat {
  from {
    transform: translate3d(-2%, -2%, 0) scale(1);
  }

  to {
    transform: translate3d(3%, 4%, 0) scale(1.08);
  }
}

@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;
  }
}
