html, body, div, span, h1, button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button {
  outline: none;
}

body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #030306;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  position: relative;
}

.bg-glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow-1 {
  position: absolute;
  top: 20%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 127, 255, 0.15) 0%, rgba(0, 127, 255, 0) 70%);
  transform: translate(-50%, -50%);
  filter: blur(80px);
  animation: drift1 25s ease-in-out infinite alternate;
}

.bg-glow-2 {
  position: absolute;
  top: 70%;
  left: 80%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 86, 179, 0.1) 0%, rgba(0, 86, 179, 0) 70%);
  transform: translate(-50%, -50%);
  filter: blur(80px);
  animation: drift2 30s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0% { top: 20%; left: 30%; transform: translate(-50%, -50%) scale(1); }
  100% { top: 35%; left: 45%; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes drift2 {
  0% { top: 70%; left: 80%; transform: translate(-50%, -50%) scale(1.1); }
  100% { top: 60%; left: 70%; transform: translate(-50%, -50%) scale(0.9); }
}

body:before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 100%);
  width: 100%;
  height: 100%;
  z-index: -1;
}

.container {
  padding: 2.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.4);
  max-width: 90%;
  width: 420px;
  animation: fadeInContainer 1s ease-out;
  position: relative;
  overflow: hidden;
}

.title-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 1.5rem;
  width: 100%;
}

h1 {
  margin-bottom: 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(120deg, #fff 40%, #bbb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.signal-pulse {
  width: 9px;
  height: 9px;
  background-color: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 12px #00e676;
  animation: pulseGreen 2s infinite ease-in-out;
  display: inline-block;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(0.85); opacity: 0.5; box-shadow: 0 0 8px rgba(0, 230, 118, 0.4); }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 16px rgba(0, 230, 118, 0.8); }
}

.text-container {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.status-wrapper {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dots::after {
  content: '';
  animation: dotAnim 1.5s infinite steps(4);
}

.loader-glow {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 15px auto;
  transition: all 0.5s ease;
}

.orbit-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-top-color: #007fff;
  border-radius: 50%;
  animation: spinClockwise 1.5s cubic-bezier(0.4, 0.1, 0.3, 0.9) infinite;
  box-shadow: 0 0 12px rgba(0, 127, 255, 0.35);
}

.orbit-2 {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border: 2px solid transparent;
  border-bottom-color: #00e676;
  border-radius: 50%;
  animation: spinCounterClockwise 1.2s cubic-bezier(0.4, 0.1, 0.3, 0.9) infinite;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.25);
}

.orbit-3 {
  position: absolute;
  top: 14px;
  left: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: spinClockwise 6s linear infinite;
}

.loader-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseCenter 1.2s ease-in-out infinite;
  box-shadow: 0 0 10px #fff;
}

@keyframes spinClockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.5rem;
}

.action-btn {
  width: 100%;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  letter-spacing: 1px;
  text-decoration: none;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.action-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: none;
}

.action-btn:hover::after {
  left: 150%;
  transition: all 0.8s ease-in-out;
}

.check-log {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.8rem;
  color: rgba(0, 127, 255, 0.8);
  text-shadow: 0 0 5px rgba(0, 127, 255, 0.2);
  height: 20px;
  margin-bottom: 0.8rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  font-weight: 400;
}

.check-log.success {
  color: #00e676;
  text-shadow: 0 0 5px rgba(0, 230, 118, 0.3);
}

.jump-btn {
  display: none;
  opacity: 0;
  color: #fff;
  background: linear-gradient(90deg, #007fff, #0056b3);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}

.jump-btn.show {
  display: block;
  animation: fadeInUpBtn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             activePulseGlow 2s infinite ease-in-out;
}

.jump-btn:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(90deg, #1a8cff, #0066d4);
}

@keyframes activePulseGlow {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(0, 127, 255, 0.45), 0 0 0 0px rgba(0, 127, 255, 0.3);
  }
  50% {
    box-shadow: 0 12px 28px rgba(0, 127, 255, 0.6), 0 0 0 8px rgba(0, 127, 255, 0);
  }
}

.download-btn {
  display: block; 
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.recheck-btn {
  display: none;
  opacity: 0;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.recheck-btn.show {
  display: block;
  animation: fadeInUpBtn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.recheck-btn:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.action-btn:active {
  transform: translateY(-1px) scale(0.99);
}

@keyframes fadeInContainer {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dotAnim {
  0%, 100% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

@keyframes spinGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseCenter {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

@keyframes fadeInUpBtn {
  from { opacity: 0; transform: translateY(15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  .container { padding: 2rem 1.5rem; }
  h1 { font-size: 1.8rem; }
}

.wechat-guide {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 3, 6, 0.92);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 2rem;
}

.wechat-arrow {
  position: absolute;
  top: 15px;
  right: 10px;
  animation: arrowBounce 1.5s infinite ease-in-out;
  color: #007fff;
  filter: drop-shadow(0 0 8px rgba(0, 123, 255, 0.5));
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.1); }
}

.wechat-card {
  padding: 3rem 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-sizing: border-box;
}

.wechat-warning-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 152, 0, 0.4)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(255, 152, 0, 0.8)); }
}

.wechat-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.wechat-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}
