:root {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #132f29;
  background: #f3f5ee;
  color-scheme: light;
  --muted: #4f665e;
  --line: #d4ddd4;
  --accent: #165849;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.top {
  min-height: 72px;
  background: #fbfcf6;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px max(24px, calc((100% - 1080px) / 2));
}
.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  overflow-wrap: anywhere;
}
.mark, .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: none;
}
.mark {
  display: grid;
  place-items: center;
  background: #dcece1;
  color: #104c3f;
}
.logo { object-fit: contain; }
.muted { color: var(--muted); font-size: 14px; white-space: nowrap; }
main { width: min(100% - 40px, 560px); margin: clamp(40px, 10vw, 96px) auto 48px; }
.intro { margin: 0 0 28px; }
.intro h1 { font-size: clamp(34px, 7vw, 51px); margin: 0 0 12px; letter-spacing: -.025em; }
.intro p, .support p { margin: 0; color: var(--muted); line-height: 1.7; }
.intro .preview { color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.panel {
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 32px #1f3a2910;
}
label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 700; }
input, button { display: block; width: 100%; min-height: 49px; border-radius: 10px; font: inherit; }
input { padding: 10px 13px; border: 1px solid #a7b9b0; color: inherit; }
button {
  appearance: none;
  margin-top: 15px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 700;
}
button:hover:not(:disabled) { background: #114638; }
button:disabled { opacity: .65; cursor: default; }
:focus-visible { outline: 2px solid #1b715a; outline-offset: 3px; }
.help { font-size: 13px; margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.result {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #f1f7f1;
  line-height: 1.6;
}
.result[data-error="true"] { background: #fff2eb; border-color: #edc7b7; color: #843010; }
.result p { margin: 4px 0 0; font-size: 14px; }
.support { padding: 25px 2px; font-size: 14px; }
.support h2 { font-size: 15px; margin: 0 0 6px; }
.support a { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 700; }


/* Query modes use radio controls so keyboard users can switch with the arrow keys. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.logo { object-fit: cover; object-position: center 48%; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  background: #eef3ee;
  padding: 4px;
  border-radius: 12px;
}
.modes label { margin: 0; position: relative; text-align: center; }
.modes input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
}
.modes span { display: block; border-radius: 8px; padding: 9px 4px; cursor: pointer; }
.modes input:checked + span { background: white; box-shadow: 0 1px 4px #193c1e18; }
.modes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
textarea {
  display: block;
  width: 100%;
  min-height: 116px;
  resize: vertical;
  border: 1px solid #a7b9b0;
  border-radius: 10px;
  padding: 10px 13px;
  font: inherit;
  color: inherit;
}
.batch-results { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.batch-results li {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
}
.batch-results li strong { text-align: right; overflow-wrap: anywhere; }

