* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  background: #f0f2f5;
  color: #1f2937;
  line-height: 1.6;
}
.container { max-width: 880px; margin: 0 auto; padding: 24px 16px 60px; }
h1 { font-size: 26px; margin: 0 0 4px; color: #111827; }
h2 { font-size: 18px; margin: 0 0 12px; color: #1f2937; border-left: 4px solid #2563eb; padding-left: 8px; }
.subtitle { margin: 0 0 18px; color: #6b7280; font-size: 14px; }
.card {
  background: #fff;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 14px; font-weight: 600; }
.req { color: #dc2626; }
input[type=text], input[type=date], input[type=month], input[type=file],
select, textarea {
  width: 100%; padding: 9px 10px; font-size: 14px;
  border: 1px solid #d1d5db; border-radius: 6px; background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
textarea { resize: vertical; }
.actions { display: flex; gap: 10px; margin-top: 8px; }
.btn {
  border: 0; cursor: pointer; padding: 9px 18px; font-size: 14px;
  border-radius: 6px; font-weight: 600; transition: all .15s;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-success { background: #059669; color: #fff; }
.btn-success:hover { background: #047857; }
.btn-ghost { background: #f3f4f6; color: #374151; }
.btn-ghost:hover { background: #e5e7eb; }
.btn-danger { background: #dc2626; color: #fff; padding: 5px 12px; font-size: 13px; }
.btn-danger:hover { background: #b91c1c; }
.msg { margin-top: 14px; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.msg.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.msg.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.hint { font-size: 13px; color: #6b7280; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.row label { font-weight: 600; font-size: 14px; }
.chk { font-weight: 400 !important; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.chk input { width: auto; }
.tag {
  display: inline-block; background: #eff6ff; color: #1d4ed8;
  border: 1px solid #bfdbfe; padding: 3px 10px; border-radius: 12px;
  font-size: 13px; margin: 2px;
}
.emp-list { margin-top: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e5e7eb; }
th { background: #f9fafb; font-weight: 600; color: #374151; }
tr:hover td { background: #f9fafb; }
.empty { text-align: center; color: #9ca3af; padding: 18px; }
.footer { text-align: center; margin-top: 20px; }
.footer a { color: #2563eb; text-decoration: none; font-size: 14px; }
.footer a:hover { text-decoration: underline; }

/* ===== 可搜索下拉框（combobox） ===== */
.combobox { position: relative; }
.combobox input { width: 100%; }
.combo-panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 0; right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  z-index: 50;
  margin: 0;
  padding: 0;
  list-style: none;
}
.combo-item {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  color: #1f2937;
}
.combo-item:hover { background: #eff6ff; color: #1d4ed8; }
.combo-empty {
  padding: 10px 12px;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}
