/* ============================================
 * 全局工具类 (Utility Classes)
 * ============================================
 * 命名规则：{属性缩写}-{档位}
 *   mt = margin-top, mb = margin-bottom
 *   ml = margin-left, mr = margin-right
 *   pt/pb/pl/pr = padding
 *   gap = flex/grid gap
 *   w = width
 */

/* ---- Margin Top ---- */
.mt-xs  { margin-top: var(--wo-spacing-xs); }
.mt-sm  { margin-top: var(--wo-spacing-sm); }
.mt-md  { margin-top: var(--wo-spacing-md); }
.mt-lg  { margin-top: var(--wo-spacing-lg); }
.mt-xl  { margin-top: var(--wo-spacing-xl); }

/* ---- Margin Bottom ---- */
.mb-xs  { margin-bottom: var(--wo-spacing-xs); }
.mb-sm  { margin-bottom: var(--wo-spacing-sm); }
.mb-md  { margin-bottom: var(--wo-spacing-md); }
.mb-lg  { margin-bottom: var(--wo-spacing-lg); }
.mb-xl  { margin-bottom: var(--wo-spacing-xl); }

/* ---- Margin Left ---- */
.ml-xs  { margin-left: var(--wo-spacing-xs); }
.ml-sm  { margin-left: var(--wo-spacing-sm); }
.ml-md  { margin-left: var(--wo-spacing-md); }
.ml-lg  { margin-left: var(--wo-spacing-lg); }

/* ---- Margin Right ---- */
.mr-xs  { margin-right: var(--wo-spacing-xs); }
.mr-sm  { margin-right: var(--wo-spacing-sm); }
.mr-md  { margin-right: var(--wo-spacing-md); }
.mr-lg  { margin-right: var(--wo-spacing-lg); }

/* ---- Gap ---- */
.gap-xs { gap: var(--wo-spacing-xs); }
.gap-sm { gap: var(--wo-spacing-sm); }
.gap-md { gap: var(--wo-spacing-md); }
.gap-lg { gap: var(--wo-spacing-lg); }

/* ---- 文字辅助 ---- */
.text-regular   { color: var(--wo-text-regular); }
.text-secondary { color: var(--wo-text-secondary); }
.text-placeholder { color: var(--wo-text-placeholder); }
.text-title     { font-weight: var(--wo-font-weight-title); }
.text-hint      { font-size: 12px; color: var(--wo-text-secondary); }

/* ---- 行高 ---- */
.lh-loose { line-height: var(--wo-line-height-loose); }

/* ---- 宽度 ---- */
.w-full { width: 100%; }
.w-input-xs { width: var(--wo-input-xs); }
.w-input-sm { width: var(--wo-input-sm); }
.w-input-md { width: var(--wo-input-md); }
.w-input-lg { width: var(--wo-input-lg); }

/* ---- Flex 快捷 ---- */
.flex-center {
  display: flex;
  align-items: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-end {
  display: flex;
  justify-content: flex-end;
}
.flex-wrap {
  display: flex;
  flex-wrap: wrap;
}
.flex-col {
  display: flex;
  flex-direction: column;
}

/* ---- 预览盒（通知策略等处使用） ---- */
.preview-box {
  width: 100%;
  background: var(--wo-bg-light);
  border: 1px solid var(--wo-border-light);
  border-radius: var(--wo-radius-md);
  padding: 10px 12px;
  line-height: var(--wo-line-height-loose);
}

/* ---- 图片缩略图 ---- */
.thumbnail-sm {
  width: 56px;
  height: 56px;
  border-radius: var(--wo-radius-sm);
  object-fit: cover;
}

/* ---- 审核状态文字 ---- */
.text-danger  { color: var(--el-color-danger, #f56c6c); }
.text-warning { color: var(--el-color-warning, #e6a23c); }

/* ---- Display helpers ---- */
.flex      { display: flex; }
.inline-flex { display: inline-flex; }
.flex-1    { flex: 1; }

/* ---- Padding ---- */
.p-sm  { padding: var(--wo-spacing-sm); }
.p-md  { padding: var(--wo-spacing-md); }

/* ---- Compound helpers ---- */
.ml-sm-text-danger   { margin-left: var(--wo-spacing-sm); color: var(--el-color-danger, #f56c6c); }
.ml-sm-text-warning  { margin-left: var(--wo-spacing-sm); color: var(--el-color-warning, #e6a23c); }
.ml-sm-text-regular  { margin-left: var(--wo-spacing-sm); color: var(--wo-text-regular); }
.ml-sm-text-secondary { margin-left: var(--wo-spacing-sm); color: var(--wo-text-secondary); }
.mt-xs-text-danger   { margin-top: var(--wo-spacing-xs); color: var(--el-color-danger, #f56c6c); }

/* ---- Section Card (bordered content area) ---- */
.section-card {
  border: 1px solid var(--wo-border-light);
  border-radius: var(--wo-radius-md);
  padding: var(--wo-spacing-md);
}
.section-card-sm {
  border: 1px solid var(--wo-border-light);
  border-radius: var(--wo-radius-sm);
  padding: var(--wo-spacing-sm);
}

/* ---- Font Weight ---- */
.fw-600 { font-weight: 600; }
