html, body, #app { height: 100%; margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  color: #303133;
  background: #f0f2f5;
}
.boot-loading { display: flex; height: 100vh; align-items: center; justify-content: center; color: #909399; }

/* ---------- 登录页 ---------- */
.login-wrap {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1f2d3d 0%, #2b4c6f 55%, #3a6ea5 100%);
}
.login-card {
  width: 380px; background: #fff; border-radius: 8px;
  padding: 34px 36px 26px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.login-title { text-align: center; font-size: 24px; font-weight: 700; color: #263445; letter-spacing: 2px; }
.login-sub { text-align: center; color: #909399; font-size: 12px; margin: 6px 0 24px; letter-spacing: 1px; }
.login-tip { text-align: center; color: #c0c4cc; font-size: 12px; margin-top: 16px; }

/* ---------- 布局 ---------- */
.layout { height: 100%; display: flex; }
.sidebar {
  width: 200px; background: #263445; color: #bfcbd9;
  display: flex; flex-direction: column; flex-shrink: 0; transition: width .25s;
  overflow: hidden;
}
.sidebar.collapsed { width: 64px; }
.logo {
  height: 50px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 16px; letter-spacing: 2px;
  gap: 6px; flex-shrink: 0; white-space: nowrap; background: #1f2a3a;
}
.logo .logo-ico { color: #67c23a; font-size: 20px; }
.sidebar .el-menu { border-right: none; background: transparent; }
.sidebar .el-menu-item { background: transparent; }
.sidebar .el-menu-item:hover { background: #1f2a3a !important; }
.sidebar .el-menu-item.is-active { background: #1f2a3a !important; }
.layout-right { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.navbar {
  height: 50px; background: #fff; display: flex; align-items: center;
  padding: 0 15px; box-shadow: 0 1px 4px rgba(0, 21, 41, .08); gap: 12px; flex-shrink: 0; z-index: 5;
}
.navbar .spacer { flex: 1; }
.nav-icon { cursor: pointer; color: #606266; font-size: 17px; display: flex; align-items: center; }
.nav-user { display: flex; align-items: center; gap: 6px; cursor: pointer; color: #606266; }
.tabs-bar {
  background: #fff; padding: 5px 15px 0; display: flex; align-items: flex-start;
  border-bottom: 1px solid #e4e7ed; flex-shrink: 0;
}
.tabs-bar .el-tabs { flex: 1; }
.tabs-bar .el-tabs__item { font-size: 13px; height: 32px; line-height: 32px; }
.tabs-bar .el-tabs__header { margin-bottom: 0; }
.page { flex: 1; overflow: auto; padding: 15px; }

.table-card { background: #fff; border-radius: 4px; padding: 15px; }
.btn-row { margin-bottom: 14px; display: flex; gap: 10px; }
.search-form .el-form-item { margin-right: 10px; margin-bottom: 12px; }

/* ---------- 首页 ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 15px; }
.stat-card { background: #fff; border-radius: 4px; padding: 20px; display: flex; align-items: center; gap: 15px; }
.stat-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; flex-shrink: 0; }
.stat-num { font-size: 26px; font-weight: 700; color: #303133; line-height: 1.2; }
.stat-label { font-size: 13px; color: #909399; }

.url-cell { display: flex; align-items: center; gap: 4px; }
.mono { font-family: Consolas, Monaco, monospace; }
