/* Colours from www.bbsbattery.com: navy #073d88, blue→green button gradient. System fonts only
   (no web fonts or CDNs, so the site also loads well from mainland China). */
:root {
  --navy: #073d88;
  --blue: #468def;
  --green: #21ca5e;
  --ink: #222;
  --muted: #666;
  --line: #e3e7ee;
  --bg: #f1f4f9;
  --card: #fff;
  --error: #bf2a31;
  --grad: linear-gradient(90deg, var(--blue), var(--green));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--navy); }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 24px; padding-bottom: 32px; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { display: block; height: 36px; width: auto; }
.lang { display: flex; gap: 4px; }
.lang a {
  padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 14px;
  border: 1px solid transparent;
}
.lang a[aria-current] { color: var(--navy); border-color: var(--navy); font-weight: 600; }

.hero { background: var(--navy); color: #fff; padding: 28px 0 30px; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); }
.hero h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: .01em; }
.kicker { margin: 0 0 6px; color: rgba(255, 255, 255, .75); font-size: 14px; }

.card {
  background: var(--card); border-radius: 10px; padding: 20px 22px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(7, 61, 136, .06), 0 4px 14px rgba(7, 61, 136, .05);
}
.card h2 { margin: 0 0 12px; font-size: 18px; color: var(--navy); }
.search p { color: var(--muted); margin: 0 0 18px; }

.search-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.field { position: relative; flex: 1 1 260px; min-width: 0; }
.row input {
  width: 100%; font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 17px; letter-spacing: .03em; padding: 12px 44px 12px 14px; border: 1px solid #c9d1de; border-radius: 6px;
}
.clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px;
  border: 0; border-radius: 50%; background: #b8c0cc; color: #fff; font-size: 12px; line-height: 24px;
  padding: 0; cursor: pointer;
}
.clear:hover { background: #98a2b1; }
.clear[hidden] { display: none; }
.row input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.row input[aria-invalid] { border-color: var(--error); }
.btn {
  flex: 0 0 auto; font: inherit; font-weight: 600; color: #fff; background: var(--grad); border: 0;
  border-radius: 6px; padding: 12px 22px; cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.error { color: var(--error); margin: 10px 0 0; font-size: 15px; }

.id-line { margin: 0 0 16px; }
.id-line .mono {
  display: inline-block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green);
  padding: 8px 14px; border-radius: 6px; font-size: 18px; font-weight: 600; color: var(--navy);
}
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; word-break: break-all; }

dl { margin: 0; }
dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
dl > div:first-child { border-top: 0; padding-top: 0; }
dt { color: var(--muted); font-size: 14px; }
dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  dl > div { grid-template-columns: 1fr; gap: 2px; }
  .hero h1 { font-size: 24px; }
  .brand img { height: 30px; }
  .btn { flex: 1 1 100%; }
}

.back { margin: 8px 0 0; }
.foot { background: #1c1c1c; color: rgba(255, 255, 255, .7); font-size: 13px; padding: 18px 0; }
.foot a { color: #fff; }
.badge { display: inline-block; background: var(--grad); color: #fff; border-radius: 3px; padding: 0 6px; font-size: 12px; }
