/* ================================================================
   Element Plus 主题覆盖（放在 element-plus.css 之后、业务样式之前）
   主色 #2563eb  圆角 8px  阴影分层  字号统一 14px
   ================================================================ */

/* ---- CSS 变量（Element Plus 2.7+ 支持用 CSS 变量覆盖）---- */
:root {
  --ep-primary: #2563eb;
  --ep-primary-light: #3b82f6;
  --ep-primary-lighter: #dbeafe;
  --ep-success: #16a34a;
  --ep-warning: #d97706;
  --ep-danger: #dc2626;
  --ep-info: #64748b;
  --ep-text-primary: #0f172a;
  --ep-text-regular: #334155;
  --ep-text-secondary: #64748b;
  --ep-text-placeholder: #94a3b8;
  --ep-border: #e2e8f0;
  --ep-border-light: #f1f5f9;
  --ep-bg: #ffffff;
  --ep-bg-page: #f1f5f9;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ---- 按钮 ---- */
.el-button { border-radius: var(--radius-md); font-weight: 500; transition: all .2s; }
.el-button--primary { --el-button-bg-color: var(--ep-primary); border-color: var(--ep-primary); }
.el-button--primary:hover { --el-button-hover-bg-color: var(--ep-primary-light); border-color: var(--ep-primary-light); }
.el-button + .el-button { margin-left: 8px; }

/* ---- 输入框 ---- */
.el-input__wrapper, .el-textarea__inner { border-radius: var(--radius-md) !important; }
.el-input__wrapper.is-focus { box-shadow: 0 0 0 1px var(--ep-primary) inset !important; }

/* ---- 表格 ---- */
.el-table { border-radius: var(--radius-md); overflow: hidden; }
.el-table th.el-table__cell { background: #f8fafc !important; color: var(--ep-text-regular); font-weight: 600; }
.el-table td.el-table__cell, .el-table th.el-table__cell.is-leaf { border-bottom-color: var(--ep-border-light); }
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell { background: #fafbfc; }
.el-table .el-table__body tr:hover > td.el-table__cell { background: #eff6ff !important; }

/* ---- 卡片 ---- */
.el-card { border-radius: var(--radius-lg); border: none; box-shadow: 0 1px 3px rgba(15,23,42,.06); transition: box-shadow .2s; }
.el-card:hover { box-shadow: 0 4px 16px rgba(15,23,42,.08); }
.el-card__header { border-bottom: 1px solid var(--ep-border-light); padding: 16px 20px; font-weight: 600; color: var(--ep-text-primary); }
.el-card__body { padding: 20px; }

/* ---- 对话框 ---- */
.el-dialog { border-radius: var(--radius-lg); overflow: hidden; }
.el-dialog__header { padding: 20px 24px 12px; border-bottom: 1px solid var(--ep-border-light); }
.el-dialog__title { font-weight: 600; color: var(--ep-text-primary); font-size: 16px; }
.el-dialog__body { padding: 20px 24px; color: var(--ep-text-regular); }
.el-dialog__footer { padding: 12px 24px 20px; border-top: 1px solid var(--ep-border-light); }

/* ---- 表单 ---- */
.el-form-item__label { color: var(--ep-text-regular); font-weight: 500; }

/* ---- Tag / Badge ---- */
.el-tag { border-radius: 999px; padding: 0 10px; height: 24px; line-height: 22px; font-size: 12px; }

/* ---- Menu ---- */
.el-menu-item.is-active { font-weight: 600; }

/* ---- Tabs ---- */
.el-tabs__item { font-size: 14px; }
.el-tabs__item.is-active { font-weight: 600; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---- 全局过渡 ---- */
.fade-enter-active, .fade-leave-active { transition: opacity .2s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }
