:root {
  color-scheme: light;
  --text: #fff;
  --glass: rgba(255, 255, 255, .18);
  --glass-border: rgba(255, 255, 255, .42);
  --panel: rgba(0, 0, 0, .25);
  --accent: #f59e0b;
}

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

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 20px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: linear-gradient(45deg, #ff6b6b, #f5c500, #48a935, #1d386f);
  background-size: 180% 180%;
  animation: bg 12s ease-in-out infinite alternate;
}

@keyframes bg {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.particle {
  position: fixed;
  left: var(--x, 0);
  top: var(--y, 0);
  width: 5px;
  height: 5px;
  pointer-events: none;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: float 6s infinite;
  animation-delay: var(--d, 0s);
}

@keyframes float {
  0% { opacity: 0; transform: translateY(0); }
  50% { opacity: .8; }
  100% { opacity: 0; transform: translateY(-120px); }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 32px;
  overflow: hidden;
  color: var(--text);
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  animation: show .8s ease-out;
}

@keyframes show {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(24px, 6vw, 28px);
  line-height: 1.35;
}

.desc {
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.7;
  opacity: .92;
}

.status {
  min-height: 24px;
  margin-bottom: 13px;
  font-size: 15px;
}

.progress {
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .3);
  border-radius: 20px;
}

.bar {
  width: var(--p, 0%);
  height: 100%;
  background: linear-gradient(90deg, #fff, #ffd700);
  transition: width .3s ease;
}

.percent {
  margin-top: 5px;
  color: #fff;
  text-align: right;
  font-size: 12px;
}

.log {
  height: 140px;
  margin-top: 14px;
  padding: 12px;
  overflow: auto;
  color: #fff;
  text-align: left;
  font-size: 12px;
  line-height: 1.65;
  background: var(--panel);
  border-radius: 12px;
  user-select: text;
}

.btn,
.manual-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.btn {
  display: none;
  position: relative;
  height: 46px;
  margin-top: 20px;
  overflow: hidden;
  color: var(--accent);
  line-height: 46px;
  font-weight: 700;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(255, 255, 255, .6);
}

.btn.is-visible {
  display: block;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .8), transparent);
  transition: left .5s;
}

.btn:hover::before {
  left: 100%;
}

.manual-link {
  margin-top: 14px;
  color: #fff;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .9;
}

.btn:focus-visible,
.manual-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.seo-info {
  margin-top: 22px;
  padding-top: 18px;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, .3);
}

.seo-info h2 {
  margin-bottom: 8px;
  font-size: 16px;
}

.seo-info p {
  font-size: 12px;
  line-height: 1.75;
  opacity: .9;
}

@media (max-width: 600px) {
  body {
    align-items: flex-start;
    padding: 16px;
  }

  .card {
    padding: 24px 20px;
  }

  .log {
    height: 125px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .card,
  .particle {
    animation: none !important;
  }

  .bar,
  .btn::before {
    transition: none !important;
  }
}
