deal-screen2-box {
  $main-font-color: #84BC27;

  display: flex;
  align-items: center;
  height: 177px;

  &:not(:hover) .operations {
    visibility: hidden;
  }

  article {
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    width: 250px;
  }

  .title {
    height: 34px;
    font-size: 14px;
    color: var(--global-theme-color-light, #00c8c1);
    padding: 0 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;

    &:not(:only-child) {
      border-bottom: 1px solid #E5E5E5;
    }
  }

  .metric {
    margin: 12px 8px;
    background: #f4f4f4;
    border-radius: 3px;

    header {
      background: $main-font-color;
      border-radius: 3px 3px 0 0;
      height: 22px;
      line-height: 22px;
      text-align: center;
      font-size: 12px;
      color: white;
    }

    div {
      line-height: 45px;
      height: 45px;
      text-align: center;
      font-weight: bold;
      color: $main-font-color;
      font-size: 32px;
    }
  }

  .xprogress {
    margin: 12px 8px 0;
    color: #545454;

    .content {
      display: flex;
      line-height: 16px;
      height: 16px;
      font-size: 14px;
    }

    .my-progress {
      background: #EBEBEB;
      border-radius: 3px;
      flex: 1;
      margin: 0;
      overflow: hidden;
    }

    .my-progress-bar {
      height: 100%;
      border-radius: 3px;
      background: $main-font-color;
    }

    em {
      display: block;
      text-align: right;
      font-size: 12px;
      margin-top: 6px;
      height: 18px;
    }
  }

  .the-arrow {
    position: absolute;
    overflow: hidden;
    height: 40px;
    display: none;

    .circle {
      position: absolute;
      z-index: 10;
      background: var(--global-theme-color-light, #00c8c1);
      border-radius: 50%;
      width: 24px;
      height: 24px;
      top: calc(50% - 12px);

      &-left { left: -12px; }
      &-right { right: -12px; }
    }

    .line {
      position: absolute;
      z-index: 5;
      height: 7px;
      background: #93E3E0;
      border-radius: 4px;
      width: 100%;

      &::before {
        content: "";
        display: block;
        height: 0;
        width: calc(100% - 7px);
        border-top: 1px dashed #C0EEED;
        margin: 3px auto;
      }

      &-top {
        top: calc(50% - 8px);

        &-right {
          top: calc(50% - 8px);
          right: 0;
          transform-origin: calc(100% - 3.5px) center;
          width: 30px;
          transform: rotate(30deg);
        }
      }

      &-bottom {
        bottom: calc(50% - 8px);

        &-left {
          bottom: calc(50% - 8px);
          left: 0;
          transform-origin: 3.5px center;
          width: 30px;
          transform: rotate(30deg);
        }
      }
    }

    .number {
      transform: scale(.5);
      color: white;
      position: absolute;
      z-index: 10;
      left: 0;
      right: 0;
      width: 18px;
      height: 13px;
      background: #84BC27;
      border-radius: 50%;
      margin: auto;

      &::before {
        content: attr(title);
        font-size: 13px;
        line-height: 1;
        display: block;
        width: 100%;
        height: 100%;
        text-align: center;
      }

      &-top {
        top: calc(50% - 11px);
      }

      &-bottom {
        bottom: calc(50% - 11px);
      }
    }

    &.arrow-L, &.arrow-R {
      width: 90px;
      display: block;
      top: 0;
      bottom: 0;
      margin: auto;
    }

    &.arrow-T, &.arrow-B {
      width: 51px;
      display: block;
      left: 0;
      right: 0;
      margin: auto;
    }

    &.arrow-R {
      left: 100%;
    }

    &.arrow-L {
      right: 100%;
    }

    &.arrow-B {
      top: 100%;

      /*因为箭头的宽高不一致，旋转后导致位置偏移。使用translateY修正*/
      transform: translateY(+5px) rotate(270deg);

      .number::before {
        transform: rotate(-270deg);
      }
    }

    &.arrow-T {
      bottom: 100%;
      transform: translateY(-5px) rotate(270deg);

      .number::before {
        transform: rotate(-270deg);
      }
    }
  }
}
