.field-selector {
  width: 350px;
  max-height: 600px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1100; // 与 @/utils/floating-layer 一致（勿单独改数字）
}

.field-selector-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;

  .field-selector-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 12px;
    color: #999999;

    &::placeholder {
      color: #999;
    }
  }
}

.field-selector-content {
  flex: 1;
  overflow-y: auto;
}

.field-selector-section {
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 6px;

  &:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
}

.field-selector-section-title {
  font-family: Alibaba PuHuiTi 3;
  font-size: 12px;
  font-weight: normal;
  line-height: 12px;
  letter-spacing: normal;
  color: #999999;
  padding: 12px 12px 0px 12px;
}

.field-selector-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px 12px;
}

.field-selector-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: #333;

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

  .field-selector-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
  }

  > span:last-child {
    flex: 1;
    font-family: Alibaba PuHuiTi 3;
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
    letter-spacing: normal;
    color: #333333;
  }
}

.field-selector-section-more {
  font-size: 12px;
  color: #1890ff;
  cursor: pointer;
  text-align: right;
  margin-top: 8px;

  &:hover {
    color: #40a9ff;
  }
}
