html,
body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: radial-gradient(1200px 600px at 10% 0%, #eef3ff 0%, #f5f7fb 45%, #f7f8fb 100%);
  color: #1f2329;
}

#app {
  height: 100%;
}

.el-container.layout {
  background: transparent;
}

.login-wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 420px;
  border-radius: 14px;
}

/* 管理端登录页 */
.admin-login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.admin-login-page__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(64, 158, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 90%, rgba(122, 92, 255, 0.14), transparent 50%),
    linear-gradient(160deg, #f4f7fc 0%, #eef2f8 45%, #f8f9fb 100%);
}

.admin-login-panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 12px 40px rgba(27, 36, 50, 0.08),
    0 2px 8px rgba(27, 36, 50, 0.04);
  backdrop-filter: blur(8px);
}

.admin-login-panel__head {
  text-align: center;
  margin-bottom: 28px;
}

.admin-login-panel__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #409eff 0%, #7a5cff 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(64, 158, 255, 0.28);
}

.admin-login-panel__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #303133;
  letter-spacing: 0.3px;
}

.admin-login-panel__subtitle {
  margin: 0;
  font-size: 13px;
  color: #909399;
}

.admin-login-panel__badge {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #606266;
  background: #f0f2f5;
  border: 1px solid #e4e7ed;
}

.admin-login-form .el-form-item__label {
  font-weight: 500;
  color: #606266;
  padding-bottom: 6px;
}

.admin-login-form .el-input__wrapper {
  border-radius: 10px;
  box-shadow: 0 0 0 1px #dcdfe6 inset;
}

.admin-login-form .el-input__wrapper:hover,
.admin-login-form .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px #409eff inset;
}

.admin-login-form__options {
  margin: -4px 0 12px;
}

.admin-login-form__options .el-checkbox__label {
  font-size: 13px;
  color: #606266;
}

.admin-login-form__submit {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
}

.layout {
  height: 100%;
}

.el-aside {
  background: #ffffff;
  border-right: 1px solid #ebeef5;
}

.el-menu {
  border-right: none !important;
}

.el-menu-vertical-demo {
  height: calc(100vh - 56px);
  overflow: auto;
}

.layout__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ebeef5;
}

.layout__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.layout__brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #409eff 0%, #7a5cff 100%);
  color: #fff;
  font-size: 14px;
}

.layout__content {
  padding: 16px 16px 24px;
}

.layout__content > * {
  max-width: 1240px;
  margin: 0;
}

/* 覆盖 Element Plus 默认 main padding */
.el-main.layout__content {
  padding: 16px 16px 24px !important;
}

.aside-header {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.aside-header--collapsed {
  padding: 0 6px;
}

.aside-header__row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aside-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.aside-header__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px 0;
}

.page-title h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.muted {
  color: #909399;
}

.el-card {
  border-radius: 14px !important;
  border: 1px solid rgba(235, 238, 245, 0.9) !important;
  box-shadow: 0 6px 20px rgba(27, 36, 50, 0.06) !important;
}

.el-card__header {
  font-weight: 600;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-card__value {
  font-size: 24px;
  font-weight: 700;
}

.kpi-card__label {
  color: #909399;
  margin-top: 4px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 900px) {
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mini-stat {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fafbff;
  border: 1px solid #eef2f7;
}

.mini-stat__value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.mini-stat__label {
  margin-top: 4px;
  font-size: 12px;
  color: #909399;
}

.stat-row {
  margin-bottom: 12px;
}

.stat-card {
  margin-bottom: 12px;
}

.stat-card__value {
  font-size: 22px;
  font-weight: 700;
  color: #303133;
  line-height: 1.2;
}

.stat-card__label {
  margin-top: 6px;
  font-size: 12px;
  color: #909399;
}

.stat-card--ok .stat-card__value {
  color: #67c23a;
}

.stat-card--warn .stat-card__value {
  color: #e6a23c;
}

.stat-card--danger .stat-card__value {
  color: #f56c6c;
}

.card-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sparkline {
  width: 100%;
  height: 44px;
  display: block;
}

.hint-line {
  font-size: 12px;
  color: #909399;
}

.subgrid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .subgrid-2 {
    grid-template-columns: 1fr;
  }
}

.subcard {
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #eef2f7;
}

.subcard__title {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.echarts-line {
  width: 100%;
  height: 200px;
}

.el-progress-bar__outer {
  background-color: #eef2f7 !important;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.table-toolbar__left,
.table-toolbar__right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tag-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* 表格与交互细节 */
.el-table {
  border-radius: 12px;
  overflow: hidden;
}

.cell-ellipsis {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.el-table .col-plan .cell,
.el-table .col-ops .cell {
  white-space: nowrap;
}

.el-table .col-ops .ops-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.el-table .col-ops .ops-inline .el-button.is-link {
  padding-left: 4px;
  padding-right: 4px;
}

.el-table th.el-table__cell {
  background: #fafbff !important;
  color: #303133;
}

.el-table__row:hover > td.el-table__cell {
  background: #f5f7ff !important;
}

/* 让链接按钮更像“可点” */
.el-button.is-link {
  font-weight: 600;
}

