/* =====================================================================
 * ChargeOps · 统一界面规范（v2026.10.31-11）
 * 目标：所有页面结构一致、层级清晰、留白统一、组件风格统一
 * 只覆盖视觉，不改业务逻辑
 * ===================================================================== */

/* ---------------------------------------------------------------- 页面骨架 */
.page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 2px 2px 14px;
  border-bottom: 1px solid var(--c-border-soft);
  margin-bottom: 2px;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--c-text);
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--c-primary), #7aa2f7);
  display: inline-block;
}

.page-sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--c-text-3);
  letter-spacing: .2px;
}

.page-head .el-button + .el-button { margin-left: 6px; }

/* 工具栏 / 筛选条：统一成一条整洁的操作带 */
.page > div[style*="display:flex"][style*="gap"],
.page > .toolbar,
.page > .filters {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  box-shadow: var(--sh-1);
}

/* ---------------------------------------------------------------- 卡片 */
.el-card {
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--c-border) !important;
  box-shadow: var(--sh-1) !important;
  transition: box-shadow .18s ease, transform .18s ease;
}
.el-card:hover { box-shadow: var(--sh-2) !important; }
.el-card__body { padding: 16px !important; }

/* ---------------------------------------------------------------- 小标题 */
.section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-text);
  margin: 2px 0 10px;
  padding-left: 10px;
  position: relative;
  line-height: 1.4;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 3px; height: 13px;
  border-radius: 2px;
  background: var(--c-primary);
}
.section-title .tips,
.section-title + .tips { font-weight: 400; }

/* ---------------------------------------------------------------- 统计卡 */
.stat-card { padding: 4px 2px; }
.stat-card .num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.4px;
}
.stat-card .lbl {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--c-text-3);
}

/* ---------------------------------------------------------------- 表格 */
.el-table {
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 13.5px;
}
.el-table th.el-table__cell {
  background: #f8fafd !important;
  color: var(--c-text-2) !important;
  font-weight: 600 !important;
  height: 42px;
}
.el-table td.el-table__cell { height: 44px; }
.el-table .el-table__row:hover > td.el-table__cell { background: #f6f9ff !important; }
.el-table__empty-text { color: var(--c-text-3); font-size: 13px; }

/* ---------------------------------------------------------------- 按钮 */
.el-button { border-radius: var(--r-sm); font-weight: 500; }
.el-button--small { height: 30px; padding: 0 11px; }
.el-button--primary { box-shadow: 0 1px 2px rgba(37, 99, 235, .18); }
.el-button.is-plain { background: #fff; }

/* ---------------------------------------------------------------- 表单 */
.el-form-item { margin-bottom: 16px; }
.el-form-item__label {
  font-size: 13px !important;
  color: var(--c-text-2) !important;
  font-weight: 500;
}
.el-input__wrapper,
.el-textarea__inner,
.el-select__wrapper {
  border-radius: var(--r-sm) !important;
  box-shadow: 0 0 0 1px var(--c-border) inset !important;
}
.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused {
  box-shadow: 0 0 0 1px var(--c-primary) inset !important;
}
.el-input__inner, .el-textarea__inner { font-size: 13.5px; }

/* ---------------------------------------------------------------- 标签 */
.el-tag {
  border-radius: 6px;
  font-weight: 500;
  padding: 0 8px;
  height: 22px;
  line-height: 20px;
}

/* ---------------------------------------------------------------- 页签 */
.el-tabs__header { margin-bottom: 14px !important; }
.el-tabs__nav-wrap::after { height: 1px; background: var(--c-border-soft); }
.el-tabs__item {
  font-size: 13.5px !important;
  font-weight: 500;
  height: 40px !important;
  line-height: 40px !important;
  color: var(--c-text-2);
}
.el-tabs__item.is-active { color: var(--c-primary) !important; font-weight: 600; }
.el-tabs__active-bar { height: 2.5px; border-radius: 2px; }

/* ---------------------------------------------------------------- 弹窗/抽屉 */
.el-dialog { border-radius: var(--r-lg); overflow: hidden; }
.el-dialog__header {
  padding: 16px 20px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--c-border-soft);
}
.el-dialog__title { font-size: 15px !important; font-weight: 700; }
.el-dialog__body { padding: 18px 20px !important; }
.el-dialog__footer { padding: 12px 20px 16px !important; border-top: 1px solid var(--c-border-soft); }
.el-drawer__header { margin-bottom: 0 !important; padding: 16px 20px !important; border-bottom: 1px solid var(--c-border-soft); }
.el-drawer__body { padding: 16px 20px 24px !important; }

/* ---------------------------------------------------------------- 其他 */
.el-pagination { padding: 4px 0; }
.pager { display: flex; justify-content: flex-end; }
.el-alert { border-radius: var(--r-md); }
.empty-box, .el-table__empty-block {
  padding: 26px 0;
  color: var(--c-text-3);
  background: transparent;
}
.tips { font-size: 12.5px; color: var(--c-text-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* 让页面内的 mb/mt 间距统一 */
.mb8 { margin-bottom: 8px; }
.mb12 { margin-bottom: 12px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 900px) {
  .page-title { font-size: 17px; }
  .el-card__body { padding: 12px !important; }
}
