/* 汉都后台 — 与 old 青云优仕版式统一的 UI 变量与布局 */
:root {
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-light: #ccfbf1;
  --brand-muted: #5eead4;
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --text: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

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

.text-red {
  color: #dc2626 !important;
}
.text_color {
  color: #0d9488;
}

/* 顶栏 */
.header {
  height: 52px;
  background: var(--brand-dark);
}

.header-center {
  max-width: 1200px;
  width: 100%;
  height: 52px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header .header-left h2 {
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  margin: 0;
}

.header .header-right {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 主布局 */
.page-wrapper {
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 52px);
}

.page-wrapper-inner {
  display: flex;
  max-width: 1200px;
  width: 100%;
}

.left_body {
  width: 180px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-placeholder {
  padding: 0 12px 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: center;
}

.logo-placeholder img {
  width: 100%;
  max-width: 120px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.left_body .nav-item {
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 14px;
  margin: 0 0 4px;
  padding: 0 16px;
  cursor: pointer;
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.2s;
  box-sizing: border-box;
  border: none;
  background: transparent;
  font: inherit;
}

.left_body .nav-item:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.left_body .nav-item.active_p {
  font-weight: 500;
  color: var(--brand-dark) !important;
  background: var(--brand-light) !important;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 20px 24px;
  background: var(--bg-page);
  display: flex;
  justify-content: center;
}

.main-center {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 52px - 80px);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--border);
}

/* 名额统计 */
.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s;
}

.stat-card:hover {
  box-shadow: var(--shadow);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.stat-card-body {
  flex: 1;
  min-width: 0;
}

.stat-card-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-card-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-card-value input {
  width: 100%;
  max-width: 80px;
  font-size: 24px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: inherit;
}

.stat-card-value input:focus {
  outline: none;
}

.stat-card.total .stat-card-icon {
  background: rgba(13, 148, 136, 0.15);
}
.stat-card.total .stat-card-value,
.stat-card.total .stat-card-value input {
  color: var(--brand);
}

.stat-card.applied .stat-card-icon {
  background: rgba(185, 28, 28, 0.12);
}
.stat-card.applied .stat-card-value,
.stat-card.applied .stat-card-value input {
  color: #b91c1c;
}

.stat-card.remaining .stat-card-icon {
  background: rgba(34, 197, 94, 0.15);
}
.stat-card.remaining .stat-card-value,
.stat-card.remaining .stat-card-value input {
  color: #16a34a;
}

/* 筛选栏 */
.border.filter-bar {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-page);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-row label,
.filter-row .filter-label {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  min-width: 2.5em;
  white-space: nowrap;
}

.filter-row select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  background: var(--bg-card);
  height: 36px;
  color: var(--text);
}

.filter-row .time-display {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  min-width: 180px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 13px;
  color: var(--text);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 20px;
  height: 36px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-brand:hover {
  background: var(--brand-dark);
}

/* 表格区 */
.table-wrap {
  border-radius: var(--radius);
  overflow: auto;
  border: 1px solid var(--border);
  max-height: min(60vh, 520px);
}

.table-wrap h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
}

.student {
  padding-top: 0;
}

.student table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 0;
  overflow: visible;
  border: none;
}

.student .table-header-row td,
.student thead th {
  background: var(--brand-dark) !important;
  color: #fff !important;
  font-weight: 500;
  border-color: var(--brand-dark);
  vertical-align: middle !important;
  padding: 12px;
  font-size: 13px;
  text-align: center;
}

.student .table tr td {
  border-color: var(--border);
  vertical-align: middle !important;
  padding: 12px;
  font-size: 13px;
  text-align: center;
}

.student .table tr:not(.table-header-row):hover {
  background: #f0fdfa;
}

.student input {
  font-size: 13px;
  border: none;
  background: transparent;
  text-align: center;
  width: 100%;
  color: var(--text);
}

.student input:focus {
  outline: none;
}

.green {
  color: #0d9488;
  font-weight: 500;
}

/* 数据统计页 — 与 old/success.html 版式一致（index3 主内容区） */
.stats-data-page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.stats-content-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}

.stats-chart-wrap {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 400px;
}

.stats-chart-wrap #main {
  width: 100%;
  height: 400px;
}

.stats-detail-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats-detail-card .stats-detail-title {
  width: 100%;
  height: 48px;
  margin: 0;
  background: var(--brand-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-detail-row {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.stats-detail-row:last-child {
  border-bottom: none;
}

.stats-detail-row:nth-child(2n + 2) {
  background: rgba(0, 0, 0, 0.02);
}

.stats-detail-label {
  min-width: 140px;
  color: var(--text-muted);
  padding-right: 16px;
}

.stats-detail-value {
  flex: 1;
}

.stats-edit-box {
  width: 100%;
  max-width: 160px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  text-align: center;
  background: var(--bg-card);
  color: var(--text);
}

.stats-edit-box:focus {
  outline: none;
  border-color: var(--brand);
}

.stats-pass-rate {
  color: var(--brand);
  font-weight: 600;
}

.stats-zhuan-num {
  color: #d97706 !important;
  font-weight: 600;
}

.stats-ben-num {
  color: #16a34a !important;
  font-weight: 600;
}

@media (max-width: 992px) {
  .page-wrapper-inner {
    flex-direction: column;
  }
  .left_body {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px;
  }
  .logo-placeholder {
    margin-right: auto;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    width: auto;
  }
  .left_body .nav-item {
    flex: 1;
    min-width: 80px;
    width: auto;
  }
  .stats-section {
    grid-template-columns: 1fr;
  }
  .stats-content-grid {
    grid-template-columns: 1fr;
  }
}
