:root {
  --ink: #17211b;
  --muted: #66756c;
  --paper: #f6f4ef;
  --panel: #fffdf8;
  --line: #ddd8cc;
  --accent: #1f7a5a;
  --accent-2: #b45f24;
  --danger: #b33f37;
  --shadow: 0 18px 40px rgba(46, 39, 28, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(31, 122, 90, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(31, 122, 90, 0.02) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
}

.admin-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 100vh;
}

.side-rail {
  width: 248px;
  background: #18231d;
  color: #eef4ec;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 0.2s ease;
}

.side-rail.collapsed {
  width: 72px;
}

.brand-mark {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-sigil {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #d7a94b;
  color: #18231d;
  border-radius: 6px;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy span {
  color: #9fb2a7;
  font-size: 12px;
}

.collapsed .brand-copy {
  display: none;
}

.nav-menu {
  border: 0;
  background: transparent;
}

.nav-menu .el-menu-item {
  color: #cbd8d0;
}

.nav-menu .el-menu-item.is-active {
  color: #f7f3e9;
  background: rgba(31, 122, 90, 0.32);
}

.workbench {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 253, 248, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.crumb,
.operator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crumb span {
  color: var(--muted);
}

.page-stage {
  padding: 26px;
  max-width: 1600px;
}

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

.page-head h1 {
  margin: 0;
  font-family: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 26px;
  letter-spacing: 0;
  line-height: 1.25;
}

.page-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid rgba(221, 216, 204, 0.72);
  border-radius: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 14px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(46, 39, 28, 0.06);
}

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

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(46, 39, 28, 0.06);
}

.panel .el-table,
.page-stage .el-table {
  --el-table-border-color: var(--line);
  --el-table-header-bg-color: #f7f4ed;
  --el-table-header-text-color: var(--ink);
  border-radius: 8px;
  overflow: hidden;
}

.panel .el-table th.el-table__cell,
.page-stage .el-table th.el-table__cell {
  font-weight: 700;
}

.panel .el-pagination,
.page-stage .el-pagination {
  margin-top: 14px;
  justify-content: flex-end;
}

.toolbar .el-input,
.toolbar .el-select,
.toolbar .el-button {
  min-height: 36px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.chart-box {
  min-height: 320px;
}

.login-scene {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 460px;
  background:
    radial-gradient(1100px 600px at -10% -10%, rgba(31, 122, 90, 0.18), transparent 60%),
    radial-gradient(700px 480px at 110% 110%, rgba(180, 95, 36, 0.10), transparent 55%),
    var(--paper);
}

.login-brief {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7vw 6vw;
  gap: 28px;
}

.brief-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brief-sigil {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #d7a94b;
  color: #18231d;
  border-radius: 8px;
  font-weight: 800;
  font-size: 18px;
}

.brief-copy {
  display: grid;
  line-height: 1.15;
}

.brief-copy b {
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.brief-copy span {
  color: var(--muted);
  font-size: 12px;
}

.login-brief h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Source Han Serif SC", "Songti SC", Georgia, serif;
  font-size: 46px;
  line-height: 1.25;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.login-brief > p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.brief-points {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.brief-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.brief-points i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.login-card {
  align-self: center;
  margin: 0 42px;
  padding: 36px 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.login-card-head {
  margin-bottom: 22px;
}

.login-card-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.login-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.login-card-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.status-active {
  color: var(--accent);
}

.status-disabled {
  color: var(--danger);
}

@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .login-scene {
    grid-template-columns: 1fr;
  }

  .login-brief {
    padding: 48px 32px 16px;
    gap: 20px;
  }

  .login-brief h1 {
    font-size: 32px;
  }

  .login-card {
    margin: 0 32px 48px;
  }
}

@media (max-width: 720px) {
  .side-rail {
    display: none;
  }

  .topbar {
    padding: 0 14px;
  }

  .page-stage {
    padding: 16px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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