:root {
  font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #24334a;
  background: #fff;
  --blue: #2159a5;
  --line: #e2e8ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  padding: 10px 17px;
  color: var(--blue);
}
button:hover {
  background: #eff5fc;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  max-width: 1440px;
  margin: auto;
  padding: 26px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 23px;
  font-weight: 700;
  color: var(--blue);
}
small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 7px;
}
.seal {
  border: 2px solid var(--blue);
  border-radius: 50%;
  height: 48px;
  width: 48px;
  display: grid;
  place-items: center;
  font-family: serif;
  font-size: 27px;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 48px;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 48px 0 42px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #7b8ba0;
}
.intro h1 {
  font-size: 29px;
  letter-spacing: 1px;
  margin: 16px 0;
}
.intro h1 span {
  color: var(--blue);
}
.intro p:not(.eyebrow) {
  color: #7b8797;
  font-size: 13px;
  line-height: 1.9;
}
.stats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}
.stats div {
  text-align: center;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.stats strong {
  display: block;
  color: var(--blue);
  font-size: 31px;
  font-weight: 500;
}
.stats span {
  font-size: 11px;
  color: #8590a0;
  display: block;
  margin-top: 8px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 32px 0 23px;
}
h2 {
  font-size: 22px;
  margin: 8px 0 0;
}
#count {
  font-size: 12px;
  color: #8590a0;
}
.filters {
  display: flex;
  gap: 10px;
  background: #f6f8fb;
  padding: 16px;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  margin-bottom: 24px;
}
.filters input {
  flex: 2;
  min-width: 150px;
}
.filters select {
  max-width: 170px;
  flex: 1;
}
input,
select,
textarea {
  border: 1px solid #dce3ec;
  border-radius: 4px;
  background: white;
  padding: 10px 12px;
  color: #42516a;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b9d1f2;
  outline-offset: 1px;
}
.text {
  border: 0;
  background: transparent;
  padding: 8px;
  white-space: nowrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: white;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.card:hover,
.card:focus {
  border-color: #a6bedb;
  box-shadow: 0 6px 20px #263f6012;
  outline: none;
}
.portrait {
  height: 220px;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.portrait img {
  height: 100%;
  max-width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: 2px;
}
.placeholder {
  color: #b2c2d5;
  font-size: 64px;
}
.card-info {
  padding: 18px 16px;
}
.name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.name strong {
  font-size: 19px;
}
.badge {
  color: #6080a7;
  background: #f0f5fb;
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 3px;
}
.label {
  font-size: 11px;
  color: #8c98a7;
  margin: 12px 0 5px;
}
.value {
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  min-height: 23px;
}
.dest {
  color: var(--blue);
  height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bio {
  font-size: 12px;
  color: #8490a0;
  line-height: 1.8;
  height: 65px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  border-top: 1px solid #edf0f4;
  padding-top: 8px;
  margin: 13px 0 0;
}
.add-area {
  text-align: center;
  margin: 36px 0 45px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.primary:hover {
  background: #16467f;
}
.add-area p {
  font-size: 12px;
  color: #98a2b0;
  margin-top: 15px;
}
footer {
  padding: 24px 48px;
  background: #f7f9fc;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #7b8a9e;
  font-size: 12px;
}
footer small {
  font-size: 9px;
}
#pagination {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
  margin-top: 25px;
  font-size: 13px;
}
.empty {
  text-align: center;
  padding: 65px 20px;
  background: #fafbfd;
  border: 1px dashed #dce4ee;
  border-radius: 6px;
  color: #8c99aa;
}
.empty b {
  display: block;
  color: #455970;
  font-size: 18px;
  margin-bottom: 12px;
}
dialog {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 20px 70px #17253d40;
  padding: 32px;
  width: min(720px, 94vw);
  max-height: 90vh;
  color: #26374b;
}
dialog::backdrop {
  background: #1429407a;
}
.close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  font-size: 24px;
  padding: 2px 8px;
}
dialog h2 {
  margin: 0 0 12px;
}
dialog p {
  font-size: 13px;
  color: #7a899c;
  line-height: 1.8;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
}
label small {
  letter-spacing: 0;
  font-size: 11px;
  color: #8b97a6;
  margin: 0;
}
.wide {
  grid-column: 1/-1;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.error {
  color: #b33c3c;
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
}
.password-line {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.password-line input {
  flex: 1;
  width: 0;
}
.upload {
  border: 1px dashed #b4c6dd;
  padding: 20px;
  border-radius: 6px;
  background: #f7faff;
}
.preview-photo {
  height: 150px;
  width: 112px;
  object-fit: cover;
  object-position: top;
  display: block;
  margin: 12px auto;
}
.detail {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  margin-top: 25px;
}
.detail img {
  width: 180px;
  max-height: 300px;
  object-fit: contain;
  background: #f4f7fb;
}
.detail .value {
  white-space: pre-wrap;
}
.detail h3 {
  font-size: 25px;
  margin: 0 0 12px;
}
nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
nav .active {
  background: var(--blue);
  color: white;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  background: #f4f7fb;
  color: #7f8da0;
  font-weight: 400;
}
th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
td img {
  width: 32px;
  height: 43px;
  object-fit: cover;
}
td button {
  font-size: 11px;
  padding: 5px 7px;
  margin: 2px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #243c59;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  display: none;
  z-index: 10;
}
.summary {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 25px;
  background: #f5f8fc;
}
.summary p {
  margin: 0;
}
.summary strong {
  font-size: 28px;
  display: block;
  color: var(--blue);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1199px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .intro {
    align-items: flex-start;
  }
  .stats {
    gap: 15px;
  }
  .stats div {
    padding-left: 15px;
  }
  .intro h1 {
    font-size: 24px;
  }
  .filters {
    flex-wrap: wrap;
  }
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  header {
    padding: 22px 24px;
  }
  main {
    padding: 0 24px;
  }
  .intro {
    display: block;
  }
  .stats {
    margin-top: 25px;
  }
  .stats div:first-child {
    border: 0;
    padding-left: 0;
  }
  .filters select {
    max-width: none;
    min-width: 110px;
  }
}
@media (max-width: 650px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .portrait {
    height: 200px;
    padding: 13px;
  }
  .brand {
    font-size: 18px;
    gap: 10px;
  }
  .seal {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 1px;
  }
  header {
    padding: 18px 16px;
  }
  header button {
    padding: 8px;
    font-size: 12px;
  }
  main {
    padding: 0 16px;
  }
  .intro {
    padding: 30px 0;
  }
  .intro h1 {
    font-size: 23px;
    line-height: 1.5;
  }
  .card-info {
    padding: 14px 12px;
  }
  .name strong {
    font-size: 17px;
  }
  .name {
    flex-wrap: wrap;
  }
  .filters {
    padding: 12px;
  }
  .filters input {
    flex-basis: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .detail {
    grid-template-columns: 1fr;
  }
  .detail img {
    margin: auto;
  }
  .detail h3 {
    margin-top: 8px;
  }
  footer {
    padding: 24px 16px;
    font-size: 10px;
  }
  dialog {
    padding: 28px 22px;
  }
}
@media (max-width: 359px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    height: 250px;
  }
}
.preview-card {
  max-width: 240px;
  margin: auto;
}
