/* ── 基础重置 ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f4f6f9; color: #303133; }

/* ── 登录页 ───────────────────────────────────────── */
.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d2d44 0%, #3a5a8c 100%);
}

.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 40px 32px;
  width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.login-header { text-align: center; }

.login-logo {
  width: 64px;
  height: 64px;
  background: #1d2d44;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.login-title { font-size: 20px; font-weight: 600; color: #1d2d44; }
.login-subtitle { font-size: 13px; color: #909399; margin-top: 4px; }
.login-footer { text-align: center; font-size: 12px; color: #c0c4cc; margin-top: 20px; }

/* ── 侧边栏 ───────────────────────────────────────── */
.sidebar { background: #1d2d44; }

.sidebar-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
  padding-top: 16px;
}

/* ── 顶部栏 ───────────────────────────────────────── */
.main-header {
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
}

.header-title { font-size: 16px; font-weight: 600; color: #303133; }
.header-subtitle { color: #909399; margin-left: 12px; font-size: 12px; }
.header-user el-tag,
.header-user .el-tag {
  margin-left: 8px;
}

/* ── 仪表盘卡片 ─────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.dashboard-card {
  min-height: 140px;
}

.card-label { font-size: 14px; color: #606266; margin-bottom: 10px; }
.card-value { font-size: 28px; font-weight: 700; color: #1d2d44; }
.card-note { font-size: 12px; color: #909399; margin-top: 12px; }

.card-header { font-size: 14px; font-weight: 600; color: #303133; margin-bottom: 12px; }

.module-card { max-width: 900px; margin: 0 auto; }
.module-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.module-description { color: #606266; line-height: 1.8; margin-bottom: 16px; }
.module-status { margin-bottom: 16px; }
.module-section { margin-top: 18px; }
.section-heading { font-weight: 600; margin-bottom: 10px; }

.todo-list {
  border-top: 1px solid #ebeef5;
}

.todo-item {
  padding: 10px 0;
  border-bottom: 1px solid #f2f6fc;
  color: #606266;
}

.feature-list {
  border-top: 1px solid #ebeef5;
}

.feature-item {
  padding: 8px 0;
  border-bottom: 1px dashed #ebeef5;
  color: #606266;
}

/* ── 字典中心样式 ─────────────────────────────────── */
.dict-controls {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.dict-controls .el-input,
.dict-controls .el-select {
  margin-right: 16px;
}

.dict-controls .el-button {
  margin-left: auto;
}

/* ── 登录页补充样式 ─────────────────────────────────── */
.login-accounts {
  margin-top: 16px;
  color: #606266;
  font-size: 13px;
}

.login-accounts ul {
  margin-top: 8px;
  padding-left: 18px;
  color: #606266;
}

.login-accounts li {
  margin-bottom: 4px;
}
