.container {
  width: 1346px;
  height: 723px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;

  .mapTitle {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0px;
    left: 0px;
    width: 134px;
    height: 48px;
    background: rgb(30, 107, 180);
    border-radius: 20px 0px 20px 0px;
    font-size: 24px;
    font-family: 'DingTalk JinBuTi';
    color: #ffffff;
    z-index: 2;
  }

  .listContainer {
    position: absolute;
    top: 48px;
    right: 0;
    width: 352px;
    height: 479px;
    background: rgba(12, 60, 112, 0.7);
    border-radius: 20px 0px 0px 20px;
    transition: all 0.3s ease;
    z-index: 2;

    &.collapsed {
      width: 0;

      .collapseBtn {
        right: 352px;
      }
    }

    .collapseBtn {
      position: absolute;
      left: -38px;
      top: 38px;
      width: 40px;
      height: 82px;
      background: rgba(12, 60, 112, 0.7);
      border-radius: 10px 0px 0px 10px;
      // backdrop-filter: blur(20px);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;

      .text {
        writing-mode: vertical-lr;
        color: rgb(179, 214, 247);
        font-size: 18px;
        font-weight: 400;
        line-height: 24px;
        display: flex;
        align-items: center;

        .arrowIcon {
          margin-top: 10px;
          width: 9px;
          height: 10px;
          background-size: contain;
          transition: all 0.3s;

          &.reverse {
            transform: rotate(180deg);
          }
        }
      }
    }

    .listContent {
      height: 100%;
      padding: 16px;

      .tabHeader {
        display: flex;
        margin-bottom: 16px;

        .tabItem {
          padding: 8px 16px;
          color: #b3d6f7;
          cursor: pointer;
          position: relative;
          font-family: 'DingTalk JinBuTi';
          font-size: 22px;
          font-weight: 400;
          line-height: 26px;

          &.active {
            color: #ffffff;
          }
        }
      }

      .pipelineList {
        height: 385px;
        overflow-y: auto;
        padding-right: 8px;
      }

      .typeGroup {
        margin-bottom: 8px;
        width: 313px;
        background: rgba(67, 177, 255, 0.13);
        border-radius: 18px;
        transition: all 0.3s;

        &.active {
          // background: rgba(67, 177, 255, 0.2);
          background: #43b1ff;
        }

        .typeHeader {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 12px 16px;
          height: 60px;
        }

        .typeTitle {
          color: rgb(228, 237, 255);
          font-size: 20px;
          font-weight: 700;
          line-height: 29px;
          display: flex;
          align-items: center;
          gap: 8px;

          .count {
            color: rgb(228, 237, 255);
            // color: rgba(203, 237, 255, 0.6);
            font-size: 20px;
          }
        }

        .expandIcon {
          width: 16px;
          height: 16px;
          background: url('@/assets/images/packUpIcon.png') no-repeat center;
          background-size: contain;
          cursor: pointer;
          transition: transform 0.3s;

          &.expanded {
            transform: rotate(180deg);
          }
        }
      }

      .itemList {
        margin-top: 1px;
        margin-bottom: 8px;
        background: rgba(67, 177, 255, 0.08);
        border-radius: 18px;
        // overflow: hidden;

        .listItem {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 12px 16px;
          cursor: pointer;
          transition: all 0.3s;

          &:hover {
            background: rgba(67, 177, 255, 0.15);
          }

          &.active {
            background: rgba(67, 177, 255, 0.2);
          }

          .itemName {
            padding-left: 10px;
            color: rgb(228, 237, 255);
            font-size: 20px;
            font-weight: 400;
            line-height: 29px;
            flex: 1;
            margin-right: 12px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }

          .itemActions {
            display: flex;
            gap: 12px;

            img {
              width: 20px;
              height: 20px;
              cursor: pointer;
            }
          }
        }
      }
    }
  }

  .layerControl {
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 208px;
    height: 303px;
    background: rgba(12, 60, 112, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    padding: 16px;
    color: #ffffff;
    pointer-events: auto;

    .title {
      color: rgb(188, 206, 233);
      font-size: 18px;
      font-weight: 400;
      line-height: 24px;
      margin-bottom: 12px;
    }

    :global {
      .ant-tree {
        background: transparent;
        color: #cbedff;

        .ant-tree-switcher {
          display: none !important; // 添加此属性，隐藏展开/折叠按钮
        }

        .ant-tree-node-content-wrapper {
          color: #cbedff;
        }

        .ant-tree-checkbox {
          .ant-tree-checkbox-inner {
            background-color: transparent;
            border-color: #cbedff;
          }
        }

        .ant-tree-checkbox-checked {
          .ant-tree-checkbox-inner {
            background-color: #1890ff;
            border-color: #1890ff;
          }
        }
      }
    }
  }
}

.pipelineInfo {
  box-sizing: border-box;
  border: 2px solid rgba(64, 146, 217, 0.95);
  border-radius: 10px;
  background: rgb(3, 85, 135);
  width: 306px;
  padding: 19px 17px 16px 16px;

  &::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: rgb(3, 85, 135) transparent transparent transparent;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
  }

  &::before {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: rgba(64, 146, 217, 0.95) transparent transparent transparent;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
  }

  .infoHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;

    .title {
      font-size: 20px;
      font-weight: 400;
      font-family: 'DingTalk JinBuTi';
      line-height: 24px;
      color: rgb(255, 255, 255);
    }

    .closeBtn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      background: rgba(128, 202, 255, 0.27);
      border-radius: 31.5px;
      cursor: pointer;
      font-size: 20px;
      line-height: 1;

      &:hover {
        opacity: 0.8;
      }
    }
  }

  .infoContent {
    .infoItem {
      margin: 0 0 12px 12px;
      display: flex;
      align-items: flex-start;
      color: rgb(203, 237, 255);
      font-size: 16px;
      font-weight: 400;
      line-height: 23px;

      .label {
        width: 120px;
        flex-shrink: 0;
      }

      .value {
        flex: 1;
        word-break: break-all;
      }
    }
  }

  .infoFooter {
    text-align: center;
    margin-top: 16px;

    .detailBtn {
      width: 106px;
      height: 40px;
      background: linear-gradient(
        180deg,
        rgb(28, 192, 255),
        rgb(82, 148, 255) 100%
      );
      border-radius: 25px;
      border: none;
      color: #fff;
      padding: 6px 16px;
      cursor: pointer;

      &:hover {
        background: #2970e6;
      }
    }
  }
}

.subLayer {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;

  .dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
  }

  .subLayerImg {
    width: 14px;
    height: 16px;
  }
}
