/* 宝宝指令页：在群指令 UI 内适配 mzui 内容 */

.baobao-body .container.display,
.baobao-body .container.display .heading {
  display: none;
}

.baobao-body .list.with-divider.compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0 16px 16px;
  border: none;
  background: transparent;
}

.baobao-body .list.with-divider.compact > .item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(88px, 36%) 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid rgba(255, 107, 157, 0.28);
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.12);
}

.baobao-body .list.with-divider.compact > .item:nth-child(5n+1) { border-color: rgba(255, 107, 157, 0.35); }
.baobao-body .list.with-divider.compact > .item:nth-child(5n+2) { border-color: rgba(190, 75, 219, 0.3); }
.baobao-body .list.with-divider.compact > .item:nth-child(5n+3) { border-color: rgba(51, 154, 240, 0.3); }
.baobao-body .list.with-divider.compact > .item:nth-child(5n+4) { border-color: rgba(32, 201, 151, 0.3); }
.baobao-body .list.with-divider.compact > .item:nth-child(5n+5) { border-color: rgba(250, 176, 5, 0.35); }

.baobao-body .list.with-divider.compact > .item:first-child {
  grid-template-columns: 1fr;
  padding: 12px;
  background: rgba(255, 240, 246, 0.88);
}

.baobao-body .list.with-divider.compact > .item:first-child .title {
  border: none;
  padding: 0;
  background: transparent;
  text-align: center;
}

.baobao-body .list.with-divider.compact > .item:first-child .label {
  margin: 4px 3px;
  font-size: 11px;
}

.baobao-body .item > .title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #5c3d52;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.4));
  border-right: 2px dashed rgba(255, 107, 157, 0.2);
  word-break: break-all;
}

.baobao-body .item > .title .label.green,
.baobao-body .item > .title .label.primary,
.baobao-body .item > .title .label.warning {
  display: inline-block;
  margin: 2px;
}

.baobao-body .item > .label.blue.rounded {
  display: none;
}

/* 超管权限行：指令名 | 说明 | 超管 */
.baobao-body .item-super {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 48px;
}

.baobao-body .item-super > .title {
  display: contents;
}

.baobao-body .item-super .label.primary {
  grid-column: 1;
  align-self: center;
  margin: 0 0 0 12px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.baobao-body .item-super .item-desc {
  grid-column: 2;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #5c3d52;
  line-height: 1.5;
  word-break: break-all;
}

.baobao-body .item-super > .label.blue.rounded {
  display: inline-flex;
  grid-column: 3;
  align-self: center;
  margin: 0 12px 0 8px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #03b8cf;
  border-color: #03b8cf;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.baobao-body .item > .title:only-child {
  grid-column: 1 / -1;
  display: block;
  text-align: left;
  align-items: flex-start;
  border-right: none;
  padding: 12px 14px;
}

.baobao-body .baobao-notes {
  margin: 0 16px 16px;
  padding: 14px;
  border-radius: 16px;
  border: 2px solid rgba(255, 107, 157, 0.35);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.75;
  color: #5c3d52;
}

.baobao-body .baobao-notes font[color="#DC143C"] { color: #e03131 !important; }
.baobao-body .baobao-notes font[color="#FF00FF"] { color: #c2255c !important; }
.baobao-body .baobao-notes font[color="#1E90FF"] { color: #1971c2 !important; }

.baobao-body .label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.3;
  border: 1px solid transparent;
  vertical-align: middle;
}

.baobao-body .label.primary { background: #3280fc; color: #fff; border-color: #3280fc; }
.baobao-body .label.primary.outline { background: transparent; color: #3280fc; }
.baobao-body .label.green { background: #38b03f; color: #fff; border-color: #38b03f; }
.baobao-body .label.warning { background: #f0ad4e; color: #fff; border-color: #f0ad4e; }
.baobao-body .label.warning.outline { background: transparent; color: #e67700; border-color: #f0ad4e; }
.baobao-body .label.blue { background: #03b8cf; color: #fff; border-color: #03b8cf; }

@media (max-width: 360px) {
  .baobao-body .list.with-divider.compact > .item:not(:first-child):not(.item-super) {
    grid-template-columns: 1fr;
  }
  .baobao-body .item:not(.item-super) > .title {
    border-right: none;
    border-bottom: 2px dashed rgba(255, 107, 157, 0.15);
  }
}
