/* Lentasy Alert Block - 前后端通用样式 */
.lentasy-alert {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-left: 4px solid;
  border-radius: 4px;
  margin: 10px 0;
  font-family: "Microsoft Yahei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.6;
}

/* 不同状态的样式 */
.lentasy-alert-warning {
  background-color: #fff7e6;
  border-color: #faad14;
  color: #d48806;
}

.lentasy-alert-error {
  background-color: #fff1f0;
  border-color: #ff4d4f;
  color: #cf1322;
}

.lentasy-alert-info {
  background-color: #e6f7ff;
  border-color: #1890ff;
  color: #096dd9;
}

.lentasy-alert-success {
  background-color: #f6ffed;
  border-color: #52c41a;
  color: #237804;
}

.lentasy-alert-disabled {
  background-color: #f5f5f5;
  border-color: #bfbfbf;
  color: #8c8c8c;
}

.lentasy-alert-icon {
  margin-right: 8px;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
}

/* 内容容器，保证与图标分隔 */
.lentasy-alert-content {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

/* 确保编辑器与前端颜色一致：RichText 内的元素继承父级颜色（避免后台编辑器默认样式覆盖） */
.lentasy-alert .lentasy-alert-content,
.lentasy-alert .lentasy-alert-content p,
.lentasy-alert .lentasy-alert-content a,
.lentasy-alert .lentasy-alert-content strong,
.lentasy-alert .lentasy-alert-content em {
  color: inherit;
}