* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #17304e;
  background: #f2f7fb;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.page-header,
.panel,
.overview-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid #d9e7f3;
  box-shadow: 0 10px 32px rgba(25, 59, 103, 0.06);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
}

.page-header h1,
.panel-header h2 {
  margin: 0;
}

.page-header p,
.panel-header span,
.meta-text,
.empty-text {
  color: #617a96;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.overview-card {
  padding: 20px 22px;
}

.overview-card span {
  display: block;
  color: #617a96;
}

.overview-card strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  color: #0f4875;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.form-grid,
.inline-form {
  display: grid;
  gap: 14px;
}

.form-grid label,
.inline-form label {
  display: grid;
  gap: 8px;
}

.form-grid input,
.inline-form input,
.form-grid select,
.assign-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d3e1ee;
  border-radius: 12px;
  background: #f8fbfd;
  outline: none;
}

.form-grid input:focus,
.inline-form input:focus,
.form-grid select:focus,
.assign-select:focus {
  border-color: #1790d4;
  box-shadow: 0 0 0 4px rgba(23, 144, 212, 0.14);
}

.inline-form {
  grid-template-columns: 140px 140px 1fr;
  align-items: end;
}

.primary-btn,
.ghost-btn,
.danger-btn {
  padding: 11px 16px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #1790d4, #0f5d9d);
}

.ghost-btn {
  color: #17304e;
  background: #edf4fa;
}

.danger-btn {
  color: #fff;
  background: #ef4444;
}

.table-list {
  display: grid;
  gap: 12px;
}

.list-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d9e7f3;
  border-radius: 16px;
  background: #fbfdff;
}

.list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.list-title {
  margin: 0;
  color: #0f4875;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #edf4fa;
  color: #0f5d9d;
}

.tag.success {
  color: #047857;
  background: #dcfce7;
}

.tag.warning {
  color: #b45309;
  background: #fef3c7;
}

.tag.danger {
  color: #b91c1c;
  background: #fee2e2;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.empty-text {
  margin: 0;
  padding: 18px 4px 6px;
}

@media (max-width: 1100px) {
  .overview-grid,
  .content-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .page-header,
  .list-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
