:root {
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: #172233;
  background: #f2f5f9;
}

body {
  margin: 0;
  padding: clamp(1rem, 8vh, 5rem) 1rem;
}

main {
  box-sizing: border-box;
  max-width: 28rem;
  margin: auto;
  padding: clamp(1.25rem, 5vw, 2rem);
  background: #fff;
  border: 1px solid #dbe3ed;
  border-radius: 0.9rem;
}

h1 { margin: 0 0 1.5rem; font-size: 1.5rem; }
h2 { margin: 0; font-size: 1.1rem; }
form, section { display: grid; gap: 0.9rem; }
[hidden] { display: none !important; }
.status { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
label { display: grid; gap: 0.4rem; font-weight: 600; }

button, input {
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid #aebbc9;
  border-radius: 0.5rem;
  font: inherit;
}

button { color: #fff; background: #244f86; border-color: #244f86; font-weight: 600; cursor: pointer; }
button.secondary { color: #244f86; background: #fff; border-color: #aebbc9; }
button[data-action="lock"] { background: #912a32; border-color: #912a32; }
button:disabled { opacity: 0.6; cursor: wait; }
:focus-visible { outline: 3px solid #437dbd; outline-offset: 2px; }
p { color: #40536a; line-height: 1.5; margin: 0.9rem 0 0; }
p:empty { display: none; }
