html,
body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #10131a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

.box {
  width: 88%;
  max-width: 440px;
  padding: 30px 22px;
  background: linear-gradient(160deg, #1b2233, #0e1420);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.t {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #ffd54f, #ff8a00, #ff4d6d, #ffd54f);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tt 4s linear infinite;
}

@keyframes tt {
  to {
    background-position: 200% center;
  }
}

.s {
  font-size: 13px;
  color: #9aa4b5;
  margin-bottom: 20px;
  line-height: 1.6;
}

.node-box {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(35, 209, 139, 0.08);
  border: 1px solid rgba(35, 209, 139, 0.28);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 20px;
  color: #23d18b;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(35, 209, 139, 0.1);
  transition: all 0.3s ease;
}

.node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23d18b;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 8px #23d18b;
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 4px #23d18b;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 12px #23d18b;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 4px #23d18b;
  }
}

a.go {
  position: relative;
  display: block;
  padding: 17px 0;
  border-radius: 14px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(90deg, #23d18b, #00c6ff, #7c4dff, #ff4d6d, #ffb300, #23d18b);
  background-size: 300% 100%;
  animation: flow 3s linear infinite;
  box-shadow: 0 8px 26px rgba(124, 77, 255, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.12) inset;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  -webkit-tap-highlight-color: transparent;
}

@keyframes flow {
  to {
    background-position: 300% 0;
  }
}

a.go::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -70%;
  width: 45%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  animation: shine 2.2s ease-in-out infinite;
}

@keyframes shine {
  0% {
    left: -70%;
  }
  55% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}

a.go:active {
  transform: scale(0.97);
}

button.copy {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dbe2ec;
  font-size: 15px;
  padding: 13px 0;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 14px;
  font-weight: 600;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

button.copy:active {
  background: rgba(255, 255, 255, 0.16);
}

button.copy:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button.ref {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  color: #8aa2c4;
  font-size: 13px;
  padding: 10px 0;
  cursor: pointer;
  margin-top: 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
}

.st {
  font-size: 13px;
  color: #23d18b;
  margin-top: 12px;
  min-height: 18px;
}

.load {
  font-size: 13px;
  color: #ff6b6b;
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .t,
  a.go,
  a.go::after,
  .node-dot {
    animation: none;
  }
}
