:root {
  --bg: #070b18;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.16);
  --text-main: #f8faff;
  --text-muted: #aab5d4;
  --primary: #5a8cff;
  --success: #2dd36f;
  --warn: #ffb020;
  --danger: #ff5d73;
  --shadow: 0 12px 48px rgba(10, 16, 36, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(1200px 520px at 20% -15%, #1d2b63 0%, transparent 60%),
    radial-gradient(1000px 420px at 85% -20%, #3d206e 0%, transparent 65%),
    var(--bg);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.35;
  z-index: 0;
}

.bg-glow-a {
  width: 320px;
  height: 320px;
  background: #5a8cff;
  top: 20%;
  left: -70px;
}

.bg-glow-b {
  width: 360px;
  height: 360px;
  background: #9f5dff;
  bottom: -80px;
  right: -80px;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 44px 0 48px;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  margin-bottom: 26px;
}

.hero-tag {
  display: inline-block;
  margin: 0 0 12px;
  color: #dbe5ff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(90, 140, 255, 0.22);
  border: 1px solid rgba(147, 182, 255, 0.4);
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
}

.hero-subtitle {
  margin: 12px auto 0;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.65;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.control-title,
.control-hint {
  margin: 0;
}

.control-title {
  font-weight: 600;
}

.control-hint {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.control-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.btn-primary {
  background: linear-gradient(120deg, #4a79ff, #5dd0ff);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e4ebff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.address-card {
  padding: 16px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.address-name {
  margin: 0;
  font-size: 18px;
}

.address-url {
  margin: 6px 0 0;
  color: #d3ddff;
  font-size: 13px;
  word-break: break-all;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-good {
  background: rgba(45, 211, 111, 0.2);
  color: #76f8ab;
}

.status-medium {
  background: rgba(255, 176, 32, 0.22);
  color: #ffcf73;
}

.status-bad {
  background: rgba(255, 93, 115, 0.22);
  color: #ffa4b0;
}

.status-pending {
  background: rgba(255, 255, 255, 0.16);
  color: #dce6ff;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.metric-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
}

.metric-label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.metric-value {
  font-weight: 700;
  font-size: 15px;
}

.latency-fast {
  color: #8ef7ba;
}

.latency-mid {
  color: #ffd382;
}

.latency-slow {
  color: #ffa2b0;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.card-actions .btn {
  flex: 1;
  text-align: center;
}

@media (max-width: 760px) {
  .controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .control-right {
    width: 100%;
  }

  .control-right .btn {
    flex: 1;
    text-align: center;
  }
}
