:root {
  --color-text: #555;
  --color-muted: #999;
  --color-waiting: #10aeff;
  --color-success: #1aad19;
  --color-btn: #1aad19;
  --color-link: #3385e3;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #fff;
  color: var(--color-text);
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 16px 120px;
}

.status {
  text-align: center;
  width: 100%;
  max-width: 420px;
}

.icon {
  width: 96px;
  height: 96px;
  margin: 20px auto;
  position: relative;
}

.icon-waiting,
.icon-success {
  position: absolute;
  inset: 0;
  display: none;
}

.icon.is-waiting .icon-waiting {
  display: block;
}

.icon.is-success .icon-success {
  display: block;
}

/* 检测中：圆环旋转 */
.spinner {
  width: 100%;
  height: 100%;
  border: 6px solid #e8f6ff;
  border-top-color: var(--color-waiting);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 通过：绿色对勾 */
.check {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
}

.check svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.title {
  margin: 0;
  font-size: 24px;
  color: var(--color-text);
  font-weight: 400;
}

.subtitle {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--color-muted);
  min-height: 1.4em;
}

.actions {
  display: none;
  width: 100%;
  max-width: 320px;
  padding: 28px 14px 10px;
}

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

.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 0 14px;
  line-height: 2.55;
  font-size: 18px;
  font-family: inherit;
  color: #fff;
  background: var(--color-btn);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  opacity: 0.9;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px 20px;
  text-align: center;
  color: var(--color-muted);
  font-size: 13px;
  background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, 0));
}

.footer p {
  margin: 4px 0;
}

.footer a {
  color: var(--color-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-link);
}
