* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #f3f5f9;
  color: #1f2733;
  line-height: 1.5;
}
a { color: #2563eb; text-decoration: none; }
h1, h2, h3 { margin: 0 0 8px; }

.navbar { background: #1e3a8a; color: #fff; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.brand { font-weight: 700; font-size: 16px; }
.navbar nav { display: flex; gap: 14px; align-items: center; }
.navbar nav a { color: #e0e7ff; }
.navbar nav a:hover { color: #fff; }
.navbar .who { color: #93c5fd; font-size: 13px; }

.container { max-width: 1100px; margin: 16px auto; padding: 0 16px 40px; }

.card { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card.narrow { max-width: 420px; margin: 40px auto; }

.summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; gap: 20px; }
.stat { text-align: center; }
.stat .num { display: block; font-size: 26px; font-weight: 700; }
.stat .lbl { font-size: 12px; color: #6b7280; }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input { flex: 1; min-width: 200px; }

.hint { color: #6b7280; font-size: 13px; }
.strong { font-weight: 600; }
.green { color: #16a34a; }
.orange { color: #ea580c; }

.btn {
  display: inline-block; padding: 8px 14px; border: 1px solid #d1d5db; background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 14px; color: #1f2733;
}
.btn:hover { background: #f9fafb; }
.btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn.primary:hover { background: #1d4ed8; }
.btn.ghost { border: none; background: transparent; font-size: 18px; padding: 0 8px; }
.btn.small { padding: 4px 10px; font-size: 13px; }

input[type=text], input[type=password], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 14px; background: #fff; margin-bottom: 12px;
}
label { display: block; font-size: 13px; color: #374151; margin-bottom: 4px; }
label em { color: #dc2626; font-style: normal; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eef0f3; white-space: nowrap; }
th { color: #6b7280; font-weight: 600; font-size: 13px; background: #f9fafb; }
tbody tr:hover { background: #f8fafc; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.hukou-local { background: #e0f2fe; color: #0369a1; }
.hukou-nonlocal { background: #fef3c7; color: #b45309; }
.hukou-other { background: #f3f4f6; color: #6b7280; }
.status-green { background: #dcfce7; color: #16a34a; }
.status-orange { background: #ffedd5; color: #ea580c; }
.status-blue { background: #e0f2fe; color: #0369a1; }
.status-red { background: #fee2e2; color: #dc2626; }
.status-gray { background: #f3f4f6; color: #6b7280; }

.progress { background: #eef0f3; border-radius: 999px; height: 8px; overflow: hidden; }
.progress .bar { background: #2563eb; height: 100%; border-radius: 999px; }

/* 登录页 */
.auth-bg { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.auth-card { background: #fff; border-radius: 14px; padding: 32px; width: 360px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.auth-card h1 { font-size: 22px; }
.auth-card .sub { color: #6b7280; margin-bottom: 20px; }
.auth-card .hint { margin-top: 16px; }

.alert { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.alert.error { background: #fee2e2; color: #b91c1c; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-mask[hidden] { display: none; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 460px; max-height: 90vh; overflow: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #eef0f3; }
.modal-body { padding: 16px; }
.modal-foot { padding: 12px 16px; border-top: 1px solid #eef0f3; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.modal-foot .hint { margin-right: auto; }
.m-info { background: #f8fafc; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
