:root {
  --bg: #12141a;
  --surface: #1a1e28;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --muted: #8b92a3;
  --accent: #9b8cf2;
  --accent-dim: rgba(155, 140, 242, 0.18);
  --accent-glow: rgba(155, 140, 242, 0.35);
  --radius: 14px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 15% 0%, var(--accent-dim), transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 10%, rgba(120, 180, 220, 0.08), transparent 55%);
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(18, 20, 26, 0.85);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  color: var(--accent);
  font-size: 1.1rem;
}

.brand-name {
  letter-spacing: 0.02em;
}

.env-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent);
  background: var(--accent-dim);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.hero {
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.lead code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--text);
  background: var(--surface);
  padding: 0.12em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.panel {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--border);
}

.panel-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
}

.status-grid dt {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.status-grid dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.status-grid dd.is-ok {
  color: #9ed4a8;
}

.status-grid dd.is-err {
  color: #e8a0a0;
}

.hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.panel-muted {
  opacity: 0.92;
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.url-input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 5.5rem;
}

.url-input:focus {
  outline: 2px solid var(--accent-dim);
  border-color: var(--accent);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.btn-primary {
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #12141a;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status-text {
  font-size: 0.85rem;
  color: var(--muted);
}

.status-text.is-err {
  color: #e8a0a0;
}

.results {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.result-card {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}

.result-card.is-ok {
  border-color: rgba(158, 212, 168, 0.35);
}

.result-card.is-err {
  border-color: rgba(232, 160, 160, 0.35);
}

.result-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.result-id {
  font-family: var(--font-mono);
  font-weight: 600;
}

.result-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.result-preview {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-soft, var(--muted));
  max-height: 8rem;
  overflow: auto;
  white-space: pre-wrap;
}
