.icon-selection-grid {
  padding: 16px 0;
  
  .icon-item-card {
    transition: all 0.3s;
    border: 1px solid #d9d9d9;
    
    &:hover, &.selected {
      border-color: #ab1941;
      background-color: #fff1f0;
    }
    
    .ant-card-body {
      display: none;
    }
    
    .icon-container {
      text-align: center;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 80px;
      
      img {
        width: 48px;
        height: 48px;
        object-fit: contain;
      }
    }
  }
}

.ant-icons-container {
  padding: 8px 0;
  
  .ant-icons-grid {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    background: #fafafa;
    border-radius: 4px;
  }
  
  .ant-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    color: #333; // 确保默认颜色可见
    
    .icon-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    &:hover {
      background: #fff;
      border-color: #ab1941;
      color: #ab1941;
    }
    
    &.selected {
      background: #fff1f0;
      border-color: #ab1941;
      color: #ab1941;
    }
    
    .ant-icon-name {
      font-size: 11px;
      margin-top: 8px;
      text-align: center;
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #666;
    }
    
    &.selected .ant-icon-name {
      color: #ab1941;
    }
  }
}
