.basic-container {
  padding: 12px;
}
.basic-scene-select {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.basic-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.basic-scene-btn {
  height: 40px;
  border: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 16px;
  outline: none;
  cursor: pointer;
  background: rgba(#1677ff, 0.1);
  color: #1677ff;
  transition: all 0.2s;
}
.basic-scene-btn.selected {
  background: #1677ff;
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.08);
}
.basic-scene-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(#1677ff, 0.1);
  color: #1677ff;
}
.basic-scene-btn.disabled.selected {
  background: #1677ff;
  color: #fff;
  opacity: 0.8;
}
.basic-label {
  margin-bottom: 12px;
  font-weight: 500;
}
.basic-input-block {
  border: 1px solid #eee;
  margin-bottom: 16px;
}
.basic-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-bottom: 16px;
}
.basic-tag-item {
  margin-bottom: 6px;
}
.basic-custom-tag-input {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.basic-success-tip {
  display: flex;
}
.basic-materials {
  margin: 16px 0;
}
.basic-materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.basic-material-preview {
  position: absolute;
  top: 8px;
  padding-left: 2px;
  right: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
}
.basic-material-card {
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  background: #fff;
  text-align: center;
  position: relative;
  min-height: 192px;
  transition: border 0.2s;
}
.basic-material-card.selected {
  border: 2px solid #1890ff;
  background: #e6f7ff;
}
.basic-material-img {
  width: 100px;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0;
  display: block;
}
.basic-material-name {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 14px;
  padding: 4px 0;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  text-align: center;
  z-index: 3;
}
.basic-add-material {
  border: 2px dashed #bbb;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  background: #fafbfc;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 190px;
}
.basic-order-upload {
  margin: 16px 0;
}
.basic-order-upload-label {
  font-weight: 500;
  margin-bottom: 8px;
}
.basic-order-upload-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}
.basic-order-upload-tip {
  color: #888;
  font-size: 13px;
  margin-bottom: 8px;
}
.basic-phone-settings {
  margin: 16px 0;
  background: #f7f8fa;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 12px;
}
.basic-wechat-group {
  margin: 16px 0;
}
.basic-footer-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
}

// 分销渠道选择弹框样式 - 参考设备选择
.channelList {
  flex: 1;
  overflow-y: auto;
}

.channelListInner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.channelItem {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  border: 1px solid #f5f5f5;

  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
}

.headerRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkboxContainer {
  flex-shrink: 0;
}

.codeText {
  font-size: 13px;
  color: #666;
  font-family: monospace;
  flex: 1;
}

.mainContent {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;

  &:hover {
    background-color: #f8f9fa;
  }
}

.channelCheckbox {
  flex-shrink: 0;
}

.channelContent {
  flex: 1;
  min-width: 0;
}

.channelInfoRow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.channelName {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusEnabled {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 8px;
  color: #52c41a;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  font-weight: 500;
}

.statusDisabled {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 8px;
  color: #ff4d4f;
  background: #fff2f0;
  border: 1px solid #ffccc7;
  font-weight: 500;
}

.channelInfoDetail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.infoItem {
  display: flex;
  align-items: center;
  gap: 8px;
}

.infoLabel {
  font-size: 13px;
  color: #666;
  min-width: 60px;
}

.infoValue {
  font-size: 13px;
  color: #333;

  &.customerCount {
    font-weight: 500;
  }
}

.loadingBox {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.loadingText {
  color: #888;
  font-size: 15px;
}

// 分销设置
.basic-distribution {
  margin: 16px 0;
  padding: 16px;
  background: #f7f8fa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);

  .basic-distribution-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;

    .basic-distribution-title {
      font-size: 15px;
      font-weight: 500;
      color: #333;
    }

    .basic-distribution-desc {
      font-size: 12px;
      color: #999;
      margin-top: 4px;
    }
  }

  .distribution-input-wrapper {
    position: relative;
    margin-top: 12px;

    .ant-input {
      padding-left: 38px !important;
      height: 56px;
      border-radius: 16px !important;
      border: 1px solid #e5e6eb !important;
      font-size: 16px;
      background: #f8f9fa;
    }
  }

  .distribution-selected-list {
    .distribution-selected-item {
      &:last-child {
        border-bottom: none;
      }
    }
  }

  .distribution-rewards {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e6eb;
  }
}

.basic-distribution-modal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.basic-distribution-modal-tag {
  margin-bottom: 4px;
}
