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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #e57373 0%, #3882bb 50%, #e57373 100%);
}

.card {
  width: 100%;
  max-width: 620px;
  background: #fff;
  border-radius: 20px;
  padding: 32px 36px 36px;
  box-shadow: 0 20px 50px rgba(120, 170, 175, 0.25);
}

.header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }

.radar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  position: relative; overflow: hidden;
  background: radial-gradient(circle, #d4f1ee 0%, #eafaf8 70%);
}
.radar::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid #e72525;
  border-top-color: transparent;
  border-right-color: transparent;
  animation: spin 2.5s linear infinite;
}
.radar::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 2px solid #e72525;
  border-bottom-color: transparent;
  border-left-color: transparent;
  animation: spin 1.6s linear infinite reverse;
}
.radar-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #e72525;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
@keyframes spin { to { transform: rotate(360deg); } }

.title-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.badge-ready {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #e72525;
  background: #dfadad;
  padding: 3px 8px;
  border-radius: 4px;
}
.title-wrap h1 { font-size: 20px; font-weight: 700; color: #1f2d3d; }
.subtitle { font-size: 13px; color: #8a99a8; margin-top: 6px; }

.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 12px;
}
.status-text { font-size: 14px; color: #55636f; }
.status-text b {color: #e72525;font-weight: 700;}
.btn-refresh {
  background: #e72525;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-refresh:hover { background: #229e90; }
.btn-refresh:active { transform: scale(0.97); }
.btn-refresh:disabled { opacity: 0.6; cursor: not-allowed; }

.progress { height: 4px; background: #eef3f4; border-radius: 4px; overflow: hidden; margin-bottom: 22px; }
.progress-fill {height: 100%;width: 0;background: #e72525;border-radius: 4px;transition: width 0.4s ease;}

.line-list { display: flex; flex-direction: column; gap: 12px; }
.line-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1.5px solid #e72525;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.line-item:hover {
  background: #f2fbfa; border-color: #2bb3a3; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(43, 179, 163, 0.15);
}

.tag {
  font-size: 12px;
  font-weight: 700;
  color: #e72525;
  background: #e3f6f3;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  min-width: 44px;
  text-align: center;
}
.tag.fail { color: #e57373; background: #fdeaea; }

.line-info { flex: 1; min-width: 0; }
.line-info .name { font-size: 15px; font-weight: 600; color: #1f2d3d; }
.line-info .desc { font-size: 12px; color: #95a3ae; margin-top: 3px; }

.ms {font-size: 15px;font-weight: 700;color: #e72525;flex-shrink: 0;}
.ms.fail { color: #e57373; }

@media (max-width: 480px) {
  .card { padding: 24px 20px 28px; border-radius: 16px; }
  .title-wrap h1 { font-size: 17px; }
  .btn-refresh { padding: 8px 16px; font-size: 13px; }
  .ms { font-size: 13px; }
}