:root {
  --brand: #2468e8;
  --brand-dark: #1855c8;
  --brand-soft: #edf4ff;
  --ink: #172033;
  --muted: #6b778c;
  --line: #e5eaf1;
  --bg: #f5f7fa;
  --card: #fff;
  --success: #17a66a;
  --warning: #e69a20;
  --danger: #df4b4b;
  --sidebar: #17335f;
  --sidebar-2: #10294d;
  --shadow: 0 4px 18px rgba(31, 51, 84, 0.06);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #edf3fb;
}
.login-brand {
  position: relative;
  padding: 10vh 8vw;
  color: white;
  background: linear-gradient(145deg, var(--sidebar), #245caa);
  overflow: hidden;
}
.login-brand:after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 90px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  right: -180px;
  bottom: -220px;
}
.brand-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: white;
  color: var(--brand);
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 28px;
}
.login-brand h1 {
  font-size: 38px;
  margin: 0 0 18px;
  letter-spacing: 1px;
}
.login-brand p {
  font-size: 17px;
  line-height: 1.9;
  color: #dce9ff;
  max-width: 520px;
}
.login-points {
  display: grid;
  gap: 14px;
  margin-top: 42px;
}
.login-points span:before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  margin-right: 10px;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-box {
  width: min(390px, 100%);
  background: white;
  padding: 42px;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(31, 61, 108, 0.14);
}
.login-box h2 {
  font-size: 25px;
  margin: 0 0 8px;
}
.login-box .sub {
  color: var(--muted);
  margin-bottom: 30px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}
.field label {
  font-weight: 600;
  color: #3c475a;
}
.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #d9e0ea;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  outline: none;
  transition: 0.15s;
}
.textarea {
  min-height: 84px;
  resize: vertical;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(36, 104, 232, 0.1);
}
.btn {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 15px;
  background: white;
  color: var(--ink);
  transition: 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: white;
}
.btn-primary:hover {
  background: var(--brand-dark);
}
.btn-outline {
  border-color: #d8e0eb;
}
.btn-outline:hover {
  color: var(--brand);
  border-color: #9dbdf7;
  background: #f8fbff;
}
.btn-danger {
  color: var(--danger);
  border-color: #f2b6b6;
}
.btn-sm {
  padding: 6px 10px;
  font-size: 13px;
}
.btn-block {
  width: 100%;
  padding: 11px;
}
.login-tip {
  margin-top: 18px;
  padding: 10px 12px;
  background: #fff8e8;
  color: #8a6115;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.6;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 214px 1fr;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  width: 214px;
  background: var(--sidebar);
  color: #cddbf1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 20;
}
.logo {
  flex: 0 0 68px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  color: white;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.logo b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  font-size: 17px;
}
.nav {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 10px;
  display: grid;
  gap: 4px;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(205, 219, 241, 0.45) transparent;
}
.nav::-webkit-scrollbar {
  width: 6px;
}
.nav::-webkit-scrollbar-track {
  background: transparent;
}
.nav::-webkit-scrollbar-thumb {
  background: rgba(205, 219, 241, 0.38);
  border-radius: 999px;
}
.nav::-webkit-scrollbar-thumb:hover {
  background: rgba(205, 219, 241, 0.58);
}
.nav-group {
  color: #7890b8;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 12px 14px 3px;
}
.nav button {
  border: 0;
  background: transparent;
  color: #cedaf0;
  border-radius: 7px;
  padding: 10px 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 11px;
}
.nav button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}
.nav button.active {
  background: var(--brand);
  color: white;
  font-weight: 600;
}
.nav .icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
}
.sidebar-foot {
  flex: 0 0 auto;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #90a7c8;
}
.sidebar-foot strong {
  display: block;
  color: white;
  margin-bottom: 4px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 68px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar h1 {
  font-size: 19px;
  margin: 0;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-pill {
  padding: 7px 11px;
  background: #f4f7fb;
  border-radius: 20px;
  color: #4f5d73;
}
.user-pill b {
  color: var(--ink);
}
.content {
  padding: 24px 26px 40px;
  max-width: 1540px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.page-head h2 {
  font-size: 22px;
  margin: 0 0 6px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat:after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.stat .label {
  color: var(--muted);
  margin-bottom: 9px;
}
.stat .value {
  font-size: 29px;
  font-weight: 700;
}
.stat .value.small {
  font-size: 22px;
}
.stat .foot {
  margin-top: 8px;
  color: #8a96a8;
  font-size: 12px;
}
.stat.warn:after {
  background: #fff3d8;
}
.stat.success:after {
  background: #e8f8f1;
}
.stat.danger:after {
  background: #ffeded;
}
.row-alert {
  background: #fff6f4;
}
.section-title {
  margin: 28px 0 12px;
  font-size: 18px;
}
.nine-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px;
}
.nine-cell {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nine-cell:nth-child(1),
.nine-cell:nth-child(2),
.nine-cell:nth-child(4) {
  background: #edf8f3;
}
.nine-cell:nth-child(9) {
  background: #fff0ee;
}
.nine-cell strong {
  font-size: 26px;
  color: var(--brand);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 18px;
  margin-bottom: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head {
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-head h3 {
  font-size: 16px;
  margin: 0;
}
.card-body {
  padding: 18px 19px;
}
.todo-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.todo {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}
.todo strong {
  font-size: 22px;
  display: block;
  margin-top: 5px;
}
.todo span {
  color: var(--muted);
}
.todo-link {
  width: 100%;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.todo-link:hover,
.todo-link:focus-visible {
  border-color: var(--brand);
  background: #f2f7ff;
  outline: none;
}
.todo-link small {
  display: block;
  margin-top: 5px;
  color: var(--brand);
}
.progress-list {
  display: grid;
  gap: 15px;
}
.progress-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 2fr 58px;
  align-items: center;
  gap: 12px;
}
.progress-track {
  height: 7px;
  border-radius: 5px;
  background: #edf0f5;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 5px;
  background: var(--brand);
}
.toolbar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar .input,
.toolbar .select {
  width: auto;
  min-width: 170px;
}
.toolbar .grow {
  flex: 1;
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.table th {
  background: #f7f9fc;
  color: #59677b;
  text-align: left;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f4;
}
.table tbody tr:hover {
  background: #f7faff;
}
.table .money {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.empty {
  text-align: center;
  padding: 55px 20px;
  color: #91a0b3;
}
.muted {
  color: var(--muted);
}
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 13px;
  padding: 3px 9px;
  font-size: 12px;
  background: #eef3f9;
  color: #53657c;
}
.tag-blue {
  background: #eaf2ff;
  color: #2468e8;
}
.tag-green {
  background: #e8f7f0;
  color: #13885a;
}
.tag-orange {
  background: #fff3df;
  color: #b87411;
}
.tag-red {
  background: #ffeded;
  color: #c83d3d;
}
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 29, 50, 0.45);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 100;
}
.modal {
  background: white;
  border-radius: 12px;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 28px 80px rgba(15, 36, 72, 0.25);
}
.modal-lg {
  width: min(980px, 100%);
}
.modal-head {
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.modal-head h3 {
  margin: 0;
  font-size: 18px;
}
.close {
  border: 0;
  background: transparent;
  font-size: 24px;
  color: #7b8797;
}
.modal-body {
  padding: 21px;
}
.modal-foot {
  padding: 15px 21px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  position: sticky;
  bottom: 0;
  background: white;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-grid .span-2 {
  grid-column: 1/-1;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.detail-item {
  padding: 12px;
  background: #f7f9fc;
  border-radius: 7px;
}
.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 4px;
  margin-bottom: 16px;
}
.tabs button {
  border: 0;
  background: white;
  padding: 10px 14px;
  color: var(--muted);
}
.tabs button.active {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
  font-weight: 600;
}
.tag-wrap {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 320px;
}
.profile-block {
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.profile-block h4 {
  margin: 0 0 10px;
  font-size: 15px;
}
.profile-block p {
  margin: 0;
  line-height: 1.8;
  color: #536176;
}
.profile-block ul,
.profile-block ol {
  margin: 0;
  padding-left: 22px;
  line-height: 1.9;
  color: #536176;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.resume-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.resume-row:last-child {
  border-bottom: 0;
}
.toast {
  position: fixed;
  right: 25px;
  top: 82px;
  background: #172033;
  color: white;
  padding: 11px 16px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 200;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.error {
  background: #c83d3d;
}
.mobile-menu {
  display: none;
}
.section-note {
  padding: 12px 14px;
  background: #eef5ff;
  border: 1px solid #d9e8ff;
  border-radius: 8px;
  color: #42618c;
  margin-bottom: 16px;
  line-height: 1.7;
}
.quality-card,
.quality-center {
  margin-bottom: 18px;
}
.quality-summary {
  display: grid;
  grid-template-columns: 160px 180px 1fr;
  align-items: center;
  gap: 20px;
}
.quality-score strong {
  display: inline-block;
  margin: 0 4px 0 10px;
  font-size: 30px;
  color: var(--brand);
}
.quality-summary > div:nth-child(2) span,
.quality-summary > div:nth-child(2) b,
.quality-counts span,
.quality-counts b {
  display: block;
  margin: 3px 0;
}
.quality-top {
  display: grid;
  gap: 7px;
}
.quality-top button {
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  background: #f7f9fc;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.quality-top button b {
  float: right;
}
.quality-counts {
  display: grid;
  grid-template-columns: repeat(3, max-content) 1fr;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 12px;
}
.quality-counts small {
  color: var(--muted);
}
.quality-description {
  max-width: 440px;
  white-space: normal;
  line-height: 1.5;
}
.metric-definitions {
  margin-top: 18px;
}
.metric-definitions summary {
  cursor: pointer;
}
.locked {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.locked strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 8px;
}
.import-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.import-summary div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.import-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.import-summary strong {
  font-size: 25px;
}
.import-summary .has-error {
  background: #fff4f4;
  border-color: #f3c3c3;
}
.import-summary .has-error strong,
.error-text {
  color: var(--danger);
}
.import-warning {
  background: #fff8e8;
  border-color: #f5dfaa;
  color: #8a6115;
}
.audit-json {
  margin: 0;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.entity-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 16px;
}
.entity-cards > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}
.entity-cards span,
.entity-cards small {
  display: block;
  color: var(--muted);
}
.entity-cards b {
  display: block;
  font-size: 25px;
  margin: 7px 0;
}
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checklist label {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.salary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 14px;
}
.analysis-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 2fr 54px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.analysis-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.analysis-row span {
  color: var(--muted);
}
@media (max-width: 1050px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .entity-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .salary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quality-summary {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    grid-column: auto;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .content {
    padding: 18px 14px;
  }
  .topbar {
    padding: 0 14px;
  }
  .topbar h1 {
    font-size: 17px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 14px;
  }
  .stat .value {
    font-size: 24px;
  }
  .page-head {
    display: block;
  }
  .page-head .actions {
    margin-top: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .toolbar .input,
  .toolbar .select {
    width: 100%;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-brand {
    display: none;
  }
  .login-panel {
    padding: 20px;
  }
  .login-box {
    padding: 28px;
  }
  .todo-list {
    grid-template-columns: 1fr;
  }
  .table {
    font-size: 13px;
  }
  .import-summary {
    grid-template-columns: 1fr 1fr;
  }
  .entity-cards {
    grid-template-columns: 1fr 1fr;
  }
  .checklist,
  .salary-grid {
    grid-template-columns: 1fr;
  }
  .analysis-row {
    grid-template-columns: 1fr;
  }
  .analysis-row > strong {
    text-align: right;
  }
  .nine-box {
    grid-template-columns: 1fr 1fr;
  }
}
