:root {
  --brand: #1f6feb;
  --brand-dark: #144a9e;
  --ok: #1a9d5a;
  --bad: #d23f3f;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1c2433;
  --muted: #6b7688;
  --line: #e6eaf2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 16px; }
.topbar {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; padding: 18px 16px; text-align: center;
}
.topbar .logo { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.topbar .sub { font-size: 12px; opacity: .85; margin-top: 4px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; margin-top: 16px;
  box-shadow: 0 2px 10px rgba(31,111,235,.05);
}
h2 { font-size: 16px; margin: 0 0 12px; }
.field { display: flex; gap: 8px; margin-bottom: 10px; }
input, select, textarea, button { font-size: 15px; }
input, select, textarea {
  flex: 1; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--text);
}
textarea { min-height: 70px; resize: vertical; }
button {
  background: var(--brand); color: #fff; border: none;
  border-radius: 10px; padding: 11px 18px; cursor: pointer; font-weight: 600;
}
button.ghost { background: #eef2fb; color: var(--brand); }
button:hover { filter: brightness(1.05); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.result { text-align: center; padding: 8px 0; }
.badge {
  display: inline-block; font-size: 20px; font-weight: 800;
  padding: 10px 22px; border-radius: 999px; margin: 6px 0 12px;
}
.badge.ok { background: #e7f7ee; color: var(--ok); }
.badge.bad { background: #fdeaea; color: var(--bad); }
.timeline { list-style: none; padding: 0; margin: 12px 0 0; }
.timeline li {
  position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line);
}
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--brand);
}
.timeline .et { font-weight: 600; }
.timeline .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.muted { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.qr { text-align: center; }
.qr img, .qr svg { width: 180px; height: 180px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #222; color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.toast.show { opacity: .95; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.section-title { font-size: 13px; color: var(--muted); margin: 18px 0 6px; font-weight: 600; }
