* { box-sizing: border-box; }
body {
  margin: 0;
  color: #16202b;
  background: #e4e6e2;
  font-family: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  border-top: 4px solid;
  border-image: linear-gradient(90deg, #e2ad1f 0 33.3%, #2f8a57 33.3% 66.6%, #c63a2e 66.6%) 1;
}
:focus-visible { outline: 2px solid #e2ad1f; outline-offset: 2px; }
main {
  max-width: 840px;
  margin: 20px auto 48px;
  background: #f7f8f6;
  border: 1px solid #c9cdc7;
  border-radius: 10px;
  padding: 36px 44px 44px;
}
h1 { font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif; font-weight: 900; font-size: 30px; margin: 0 0 4px; letter-spacing: .02em; }
h2 { font-size: 17px; margin: 30px 0 6px; padding-left: 10px; border-left: 3px solid #1d3b63; }
.meta { color: #7d8692; font-size: 13px; margin: 0 0 24px; font-family: "SF Mono", Menlo, Consolas, monospace; }
a { color: #1d3b63; }
nav.top { max-width: 840px; margin: 22px auto 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0 4px; }
nav.top a { color: #4a5562; text-decoration: none; }
nav.top a:first-child { color: #16202b; font-weight: 600; }
nav.top a:hover { color: #1d3b63; text-decoration: underline; }
label { display: block; margin: 16px 0 4px; font-weight: 600; font-size: 14px; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: 9px 12px; border: 1px solid #c9cdc7; border-radius: 6px; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: #1d3b63; outline: none; box-shadow: 0 0 0 3px rgba(29,59,99,.12); }
textarea { min-height: 140px; resize: vertical; }
button.primary { margin-top: 20px; height: 44px; padding: 0 26px; border: 0; border-radius: 6px; background: #1d3b63; color: #fff; font-weight: 600; cursor: pointer; }
button.primary:hover { background: #132a48; }
.row { display: flex; gap: 8px; align-items: center; }
.row img { height: 42px; border-radius: 6px; cursor: pointer; flex: none; border: 1px solid #c9cdc7; }
.msg { margin-top: 12px; font-size: 14px; }
.msg.err { color: #b2382c; }
.msg.ok { color: #2f8a57; }
@media (max-width: 700px) { main { margin: 12px; padding: 22px; } }
