:root {
  color-scheme: light;
  --blue: #123b66;
  --blue-dark: #0c2b4a;
  --blue-soft: #eaf2f9;
  --ink: #203040;
  --muted: #687787;
  --line: #d7e0e8;
  --warning: #fff6dc;
  --danger: #a32828;
  font-family: "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); line-height: 1.6; }
a { color: var(--blue); }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { border-bottom: 4px solid var(--blue); background: #fff; }
.site-header .wrap { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--blue-dark); font-size: 19px; font-weight: 700; text-decoration: none; }
nav { display: flex; gap: 18px; }
nav a { text-decoration: none; font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; margin-top: 48px; padding: 22px 0; }
.hero { padding: 50px 0 30px; max-width: 820px; }
.hero.compact { padding-top: 34px; display: flex; justify-content: space-between; gap: 20px; }
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .08em; margin: 0 0 8px; }
h1 { color: var(--blue-dark); font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin: 0 0 14px; }
h2 { color: var(--blue-dark); font-size: 19px; margin: 0 0 12px; }
p { margin: 8px 0 14px; }
.muted { color: var(--muted); font-size: 14px; }
.card { border: 1px solid var(--line); background: #fff; padding: 24px; margin-bottom: 22px; box-shadow: 0 3px 12px rgb(18 59 102 / 5%); }
.narrow { max-width: 620px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.notice { background: var(--blue-soft); border-left: 4px solid var(--blue); padding: 12px 15px; margin-bottom: 20px; font-size: 14px; }
.warning { background: var(--warning); border-left: 4px solid #c79000; padding: 12px 15px; margin: 14px 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
label > span { color: var(--blue-dark); font-weight: 600; }
input, select, textarea { border: 1px solid #b8c6d3; border-radius: 2px; color: var(--ink); font: inherit; padding: 9px 10px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9fc2e2; border-color: var(--blue); }
textarea { resize: vertical; min-height: 84px; }
button { border: 1px solid var(--blue); border-radius: 2px; background: #fff; color: var(--blue); cursor: pointer; font: inherit; font-weight: 600; padding: 9px 16px; }
button:hover { background: var(--blue-soft); }
button.primary { background: var(--blue); color: #fff; padding: 11px 24px; }
button.primary:hover { background: var(--blue-dark); }
.link-button { border: 0; padding: 0; color: var(--blue); text-decoration: underline; }
.upload-box { border-top: 1px solid var(--line); padding-top: 16px; }
.upload-box a { display: inline-block; margin-top: 8px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form-result { margin-top: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.form-result.error { color: var(--danger); }
.result-box { background: #f6f8fa; border: 1px solid var(--line); padding: 12px; }
.filter-form { display: flex; align-items: end; gap: 14px; margin-bottom: 20px; }
.filter-form label { flex: 1; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; white-space: nowrap; }
th { background: var(--blue-soft); color: var(--blue-dark); }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 7px 12px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.item-card { border: 1px solid var(--line); padding: 20px; margin: 22px 0; }
.item-heading { align-items: center; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; padding-bottom: 10px; }
.item-heading h2 { margin: 0; }
.item-heading span { color: var(--muted); font-size: 13px; }
.item-card ul, .card ul { padding-left: 22px; }
.decision-form { display: flex; gap: 10px; margin: 14px 0; }
.decision-form select { width: 115px; }
.decision-form input { flex: 1; }
.compact-form { border-top: 1px solid var(--line); padding-top: 15px; }
.audit-list { max-height: 280px; overflow-y: auto; font-size: 13px; }
code { background: #f2f4f6; padding: 1px 4px; }
@media (max-width: 760px) {
  .site-header .wrap, .hero.compact { align-items: flex-start; flex-direction: column; padding-bottom: 14px; padding-top: 14px; }
  nav { flex-wrap: wrap; }
  .form-grid, .two-col { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .filter-form, .decision-form { align-items: stretch; flex-direction: column; }
  .decision-form select { width: 100%; }
  .wrap { width: min(100% - 22px, 1180px); }
  .card { padding: 16px; }
}
