:root {
  --app-bg: #f5f8fa;
  --app-surface: #ffffff;
  --app-surface-soft: #f9fbfc;
  --app-border: #dbe6ea;
  --app-border-strong: #c8d7dd;
  --app-text: #172033;
  --app-muted: #64748b;
  --app-primary: #16817e;
  --app-primary-strong: #0f6f6b;
  --app-primary-soft: #e6f5f3;
  --app-blue-soft: #eef5fb;
  --app-gold: #b88a2d;
  --app-danger: #c9413a;
  --app-warning: #b7791f;
  --app-success: #16817e;
  --app-shadow: 0 14px 36px rgba(42, 64, 78, 0.08);
  --app-shadow-soft: 0 8px 22px rgba(42, 64, 78, 0.055);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--app-text);
  background:
    linear-gradient(180deg, #f7fafb 0%, #eef4f6 100%);
  font-family:
    Inter, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

.page-head h2 {
  margin: 0;
  color: var(--app-text);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 0;
}

.page-head p {
  margin: 7px 0 0;
  color: var(--app-muted);
  line-height: 1.6;
}

.panel,
.el-card.panel,
.el-card.stat {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow-soft);
}

.el-card {
  --el-card-border-color: var(--app-border);
  --el-card-border-radius: 10px;
}

.el-button {
  --el-button-border-radius: 7px;
  font-weight: 600;
}

.el-button--primary {
  --el-button-bg-color: var(--app-primary);
  --el-button-border-color: var(--app-primary);
  --el-button-hover-bg-color: var(--app-primary-strong);
  --el-button-hover-border-color: var(--app-primary-strong);
  --el-button-active-bg-color: var(--app-primary-strong);
  --el-button-active-border-color: var(--app-primary-strong);
}

.el-input__wrapper,
.el-select__wrapper,
.el-textarea__inner {
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--app-border) inset;
}

.el-input__wrapper:hover,
.el-select__wrapper:hover,
.el-textarea__inner:hover {
  box-shadow: 0 0 0 1px var(--app-border-strong) inset;
}

.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused,
.el-textarea__inner:focus {
  box-shadow: 0 0 0 1px var(--app-primary) inset, 0 0 0 3px rgba(22, 129, 126, 0.12);
}

.el-form-item__label {
  color: #415466;
  font-weight: 650;
}

.el-table {
  --el-table-border-color: #e5edf0;
  --el-table-header-bg-color: #f6fafb;
  --el-table-header-text-color: #52677a;
  --el-table-row-hover-bg-color: #f8fcfc;
  border-radius: 8px;
  overflow: hidden;
}

.el-table th.el-table__cell {
  font-weight: 700;
}

.el-tag {
  border-radius: 999px;
  font-weight: 650;
}

.el-dialog {
  border-radius: 12px;
}

.el-dialog__header {
  padding: 22px 24px 12px;
  margin: 0;
}

.el-dialog__body {
  padding: 14px 24px 22px;
}

.el-dialog__title {
  color: var(--app-text);
  font-size: 20px;
  font-weight: 750;
}

.el-segmented {
  --el-segmented-item-selected-bg-color: var(--app-primary);
  --el-segmented-item-selected-color: #ffffff;
  border: 1px solid var(--app-border);
  background: #f4f8fa;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .el-form-item {
  margin-bottom: 0;
}

.toolbar,
.filters {
  align-items: center;
}

.pager {
  border-top: 1px solid #edf2f4;
  padding-top: 12px;
}

.stats {
  align-items: stretch;
}

.stat {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.stat:hover {
  border-color: var(--app-border-strong);
  box-shadow: var(--app-shadow);
  transform: translateY(-1px);
}

a {
  color: var(--app-primary-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-head {
    display: grid;
    align-items: start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
