:root {
  --la-side: #202744;
  --la-side-active: #4a5dff;
  --la-primary: #4a5dff;
  --la-bg: #f0f2f5;
  --la-header: #ffffff;
}

* { box-sizing: border-box; }
html, body, #app {
  margin: 0;
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--la-bg);
  color: #333;
}

/* likeadmin 布局 */
.la-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.la-aside {
  width: 210px;
  background: var(--la-side);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.2s;
}
.la-aside.collapsed { width: 64px; }

.la-logo {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
}
.la-logo .dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6b7cff, #4a5dff);
  flex-shrink: 0;
}

.la-menu {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
}
.la-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 4px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  user-select: none;
}
.la-menu-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.la-menu-item.active {
  background: var(--la-side-active);
  color: #fff;
  box-shadow: 0 6px 16px rgba(74, 93, 255, 0.35);
}
.la-menu-item .el-icon { font-size: 18px; }

.la-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.la-header {
  height: 56px;
  background: var(--la-header);
  border-bottom: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}
.la-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.la-collapse-btn {
  cursor: pointer;
  font-size: 20px;
  color: #606266;
}
.la-breadcrumb { font-size: 14px; color: #909399; }
.la-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.la-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.la-content {
  flex: 1;
  overflow: auto;
  padding: 16px;
}

.la-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-card .label { color: #909399; font-size: 13px; margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: #303133; }
.stat-card .icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}
.stat-card .icon-box.b1 { background: linear-gradient(135deg, #6b7cff, #4a5dff); }
.stat-card .icon-box.b2 { background: linear-gradient(135deg, #36d1c6, #1abc9c); }
.stat-card .icon-box.b3 { background: linear-gradient(135deg, #ffb347, #ff9f1a); }
.stat-card .icon-box.b4 { background: linear-gradient(135deg, #ff7878, #ff5a5a); }

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}

.doors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.door-item {
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 16px 10px;
  text-align: center;
  background: #fafafa;
}
.door-item.idle { background: #f0fdf4; border-color: #bbf7d0; }
.door-item.occupied { background: #fffbeb; border-color: #fde68a; }
.door-item.fault { background: #fef2f2; border-color: #fecaca; }
.door-item.offline { background: #f8fafc; border-color: #e2e8f0; }
.door-item .no { font-size: 20px; font-weight: 700; }
.door-item .st { font-size: 12px; color: #606266; margin-top: 4px; }
.door-item .door-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
}
.door-item.selected {
  outline: 2px solid #4a5dff;
  box-shadow: 0 0 0 3px rgba(74, 93, 255, 0.15);
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2b3355 0%, #4a5dff 55%, #7b8cff 100%);
}
.login-box {
  width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 40px 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #303133;
}
.login-sub {
  text-align: center;
  color: #909399;
  font-size: 13px;
  margin-bottom: 28px;
}

.mock-pre {
  background: #1e2438;
  color: #c7d2fe;
  padding: 14px;
  border-radius: 8px;
  font-size: 12px;
  overflow: auto;
  max-height: 360px;
}

@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .la-aside { position: absolute; z-index: 20; height: 100%; }
  .la-aside.collapsed { width: 0; padding: 0; overflow: hidden; }
}
