/* ===== 资源弹窗（轮播图 / 图片导航等）：简洁布局 v4，颜色完全跟随后台主题 20261126 =====
   仅作用于带 ds-resource-modal 标识的资源新增/编辑弹窗。
   不写死任何背景色/文字色/边框色，全部继承 Naive UI 当前主题（浅色主题=浅色，深色主题=深色）。
   1:1 复刻参考图：居中卡片、四角圆角、左右留边、紧凑横向表单、单选两列平铺（20261128）。 */
.ds-resource-modal.n-modal,
.n-modal.ds-resource-modal,
.ds-resource-modal .n-card {
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .32) !important;
  width: 96vw !important;
  max-width: 96vw !important;
  margin: 0 auto !important;
}
.ds-resource-modal .n-card-header { padding: 18px 24px 12px !important; }
.ds-resource-modal .n-card-header__main { font-size: 18px !important; font-weight: 600 !important; }
.ds-resource-modal .n-card__content { padding: 16px 24px 20px !important; }
.ds-resource-modal .n-card__footer { padding: 12px 24px 20px !important; }

/* 表单项：label 在左、右对齐、紧凑（强制横向 flex，覆盖 top 布局）；颜色继承主题 */
.ds-resource-modal .n-form-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  margin-bottom: 18px !important;
}
.ds-resource-modal .n-form-item-label {
  width: 104px !important;
  flex: 0 0 104px !important;
  text-align: right !important;
  padding-right: 14px !important;
  font-size: 14px !important;
  line-height: 34px !important;
}
.ds-resource-modal .n-form-item-blank { min-width: 0 !important; flex: 1 1 auto !important; }

/* 单选按钮组（轮播图类型）：横向平铺、自动换行、间距舒展，颜色继承主题 */
.ds-resource-modal .n-form-item-blank .n-radio-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px 28px !important;
  align-items: center !important;
  min-height: 34px !important;
}
.ds-resource-modal .n-radio { margin-right: 0 !important; }

/* 底部按钮：圆角（颜色继承主题，主按钮用主题主色） */
.ds-resource-modal .n-button { border-radius: 6px !important; min-width: 82px !important; }

/* 移动端：居中卡片、左右留边、四角圆角、接近满屏高度（1:1 复刻参考图），颜色继承主题 */
@media (max-width: 768px) {
  .n-modal-container:has(.ds-resource-modal) { align-items: center !important; justify-content: center !important; padding: 12px !important; }
  .ds-resource-modal.n-modal,
  .n-modal.ds-resource-modal {
    width: 96vw !important;
    max-width: 96vw !important;
    margin: 0 auto !important;
    border-radius: 14px !important;
  }
}
