:root {
  --ink: #14212b;
  --muted: #5b6b76;
  --paper: #f7f3ea;
  --panel: rgba(255, 252, 246, 0.88);
  --line: rgba(20, 33, 43, 0.12);
  --accent: #0f6e56;
  --accent-2: #c45c26;
  --ok: #0f6e56;
  --warn: #9a3412;
  --shadow: 0 24px 60px rgba(20, 33, 43, 0.12);
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 110, 86, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 92, 38, 0.16), transparent 55%),
    linear-gradient(160deg, #efe8d8 0%, #f7f3ea 45%, #e7eef0 100%);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2314212b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.shell {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 12vh, 120px) 0 64px;
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-name {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.query {
  margin-top: 36px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: rise 0.8s ease 0.08s both;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fffef9;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: rgba(15, 110, 86, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 110, 86, 0.12);
}

button {
  width: 100%;
  height: 52px;
  border: 0;
  background: var(--ink);
  color: #f7f3ea;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s;
}

button:hover { background: #1d3140; }
button:active { transform: scale(0.985); }
button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  animation: rise 0.45s ease both;
}

.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid currentColor;
}

.badge.ok { color: var(--ok); }
.badge.miss { color: var(--warn); }

.result-qq {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.result-qq strong {
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0.03em;
}

.result-status {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--accent-2);
  word-break: break-all;
}

.result-status .status-line {
  display: block;
  padding: 2px 0;
  font-size: 15px;
}

.result-status.muted {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.result-status.muted .status-line {
  display: block;
}

.result-time {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .query { padding: 22px 18px; }
  .result-status,
  .result-status .status-line { font-size: 14px; }
}
