/* kPay Admin - 全局样式 */

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f0f2f5; }

/* ── 布局 ── */
.app-container { height: 100vh; }

.app-aside {
  background: #001529;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.logo {
  height: 60px;
  line-height: 60px;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  background: #000c17;
  flex-shrink: 0;
}

.app-aside .el-menu {
  border-right: none;
  flex: 1;
  overflow-y: auto;
}

.app-aside .el-menu-item {
  height: 48px;
  line-height: 48px;
}

.app-aside .el-menu-item.is-active {
  background: #1890ff !important;
}

.app-aside .el-menu-item:hover {
  background: #ffffff18 !important;
}

.app-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px !important;
  box-shadow: 0 1px 4px rgba(0,21,41,.08);
}

.header-title {
  font-size: 16px;
  font-weight: 500;
  color: #262626;
}

.header-right {
  display: flex;
  align-items: center;
}

.username {
  color: #595959;
  font-size: 14px;
}

.app-main {
  background: #f0f2f5;
  padding: 20px;
  overflow-y: auto;
}

/* ── 登录页 ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #001529 0%, #003a70 100%);
}

.login-card {
  width: 380px;
  border-radius: 8px;
}

.login-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 28px;
}

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

.captcha-img {
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #dcdfe6;
}

/* ── 统计卡片 ── */
.stat-cards .el-card__body {
  padding: 20px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: #262626;
  line-height: 1.2;
}

.stat-item.success .stat-num { color: #52c41a; }
.stat-item.primary .stat-num { color: #1890ff; }
.stat-item.warning .stat-num { color: #faad14; }

.stat-label {
  font-size: 13px;
  color: #8c8c8c;
  margin-top: 6px;
}

/* ── 筛选卡片 ── */
.filter-card .el-card__body {
  padding: 16px 20px 4px;
}

.filter-card .el-form-item {
  margin-bottom: 12px;
}

/* ── 表格 ── */
.el-table th {
  background: #fafafa !important;
  color: #595959;
  font-weight: 500;
}

/* ── 通用间距 ── */
.el-card + .el-card {
  margin-top: 12px;
}
