:root {
  --bg: #f4f7f2;
  --panel: #ffffff;
  --head: #84c44b;
  --head-dark: #4e8f22;
  --line: #b8c7b0;
  --text: #1f2d1f;
  --muted: #66745f;
  --blue: #2269c9;
  --soft: #eef6eb;
  --shadow: 0 12px 34px rgba(44, 72, 36, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button {
  font: inherit;
}

.page {
  width: min(100% - 32px, 1600px);
  margin: 0 auto;
  padding: 28px 0 40px;
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
}

.header p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.count-card {
  min-width: 120px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  text-align: center;
  box-shadow: var(--shadow);
}

.count-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.count-card strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.table-panel,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.table-panel {
  overflow: hidden;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title h2 {
  font-size: 18px;
}

.panel-title span {
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
  max-height: 68vh;
}

table {
  width: 100%;
  min-width: 1760px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

th,
td {
  padding: 12px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  line-height: 1.6;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--head);
  color: #10220a;
  font-weight: 700;
  text-align: center;
}

td {
  background: #fbfdf9;
}

tbody tr:nth-child(even) td {
  background: #f7fbf4;
}

tbody tr.is-selected td {
  background: #edf6ff;
}

th:nth-child(1),
td:nth-child(1) {
  width: 170px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 120px;
}

th:nth-child(3),
td:nth-child(3),
th:nth-child(5),
td:nth-child(5) {
  width: 330px;
}

th:nth-child(4),
td:nth-child(4) {
  width: 270px;
}

th:nth-child(6),
td:nth-child(6) {
  width: 170px;
}

th:nth-child(7),
td:nth-child(7) {
  width: 160px;
}

th:nth-child(8),
td:nth-child(8),
th:nth-child(9),
td:nth-child(9) {
  width: 120px;
  text-align: center;
}

th:nth-child(10),
td:nth-child(10) {
  width: 260px;
}

.name-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.grade {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 4px;
  background: #dff1d8;
  color: var(--head-dark);
  font-size: 12px;
}

.detail-panel {
  margin-top: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  margin: 0;
  padding: 8px 18px 18px;
}

.detail-grid dt,
.detail-grid dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #e3ecdf;
  line-height: 1.65;
}

.detail-grid dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-grid dd {
  color: var(--text);
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 20px, 1600px);
    padding-top: 18px;
  }

  .header,
  .panel-title {
    flex-direction: column;
  }

  h1 {
    font-size: 24px;
  }

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

  .detail-grid dt {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .detail-grid dd {
    padding-top: 0;
  }
}
