@keyframes swing {
  20% {
    transform: rotate(15deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(5deg);
  }
  80% {
    transform: rotate(-5deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.main-box {
  &-one {
    display: flex;
    margin: 0 -7px 14px -7px;
    &__item {
      margin: 0 7px;
      width: calc(25% - 14px);
      display: flex;
      height: 180px;
      align-items: center;
      border-radius: 10px;
      padding: 0 72px 0 40px;
      justify-content: space-between;
      &:nth-of-type(1) {
        background: #1bc5bd;
      }
      &:nth-of-type(2) {
        background: #ff9f43;
      }
      &:nth-of-type(3) {
        background: #158df7;
      }
      &:nth-of-type(4) {
        background: #f64e60;
      }
      &-icon {
        width: 64px;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.25);
        i {
          font-size: 40px;
          color: #fff;
        }
      }
      &-text {
        &-title {
          font-size: 14px;
          font-weight: 400;
          line-height: 24px;
          color: rgba(255, 255, 255, 1);
          text-align: left;
        }
        &-num {
          font-size: 40px;
          font-weight: 500;
          line-height: 48px;
          color: rgba(255, 255, 255, 1);
          margin: 6px 0 10px 0;
        }
        a {
          display: flex;
          align-items: center;
          font-size: 12px;
          font-weight: 400;
          line-height: 16px;
          color: rgba(255, 255, 255, 1);
          i {
            margin-left: 5px;
            font-size: 12px;
          }
        }
      }
    }
  }

  &-item {
    border-radius: 10px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
    margin: 0 7px;
    box-sizing: border-box;
    .total-rank {
      text-align: center;
      color: #666666;
      font-size: 15px;
      span {
        color: #111111;
        font-size: 18px;
        font-weight: bold;
      }
      strong {
        color: #fe041f;
        font-size: 30px;
      }
    }
    .rank-flex {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      margin-top: 15px;
      .title {
        color: #333333;
        font-size: 15px;
        font-weight: bold;
      }
      a {
        display: block;
        color: #fff;
        font-size: 13px;
        width: 75px;
        height: 25px;
        background: #409eff;
        border-radius: 3px;
        text-align: center;
        line-height: 25px;
        &:hover {
          background: #0069cb;
        }
      }
    }
  }

  &-two {
    display: flex;
    margin: 0 -7px 14px -7px;
    &__infos {
      width: calc(25% - 14px);
      padding: 30px;
      &-title {
        font-size: 15px;
        font-weight: 700;
        line-height: 21.72px;
        color: rgba(55, 74, 94, 1);
        margin-bottom: 22px;
        .search-at {
          float: right;
          font-weight: normal;
        }
      }
      &-list {
        &-item {
          padding: 22px 0;
          border-bottom: 1px dashed rgba(222, 226, 230, 1);
          display: flex;
          align-items: center;
          font-size: 14px;
          font-weight: 400;
          line-height: 21px;
          color: rgba(55, 74, 94, 1);
          > span:first-child {
            width: 90px;
            margin-right: 60px;
          }
          .meal-type {
            span:last-child {
              display: inline-block;
              padding: 2px 15px;
              border-radius: 37px;
              background: rgba(27, 197, 189, 0.2);
              font-size: 14px;
              font-weight: 400;
              line-height: 20.27px;
              color: rgba(27, 197, 189, 1);
              margin-right: 10px;
            }
          }
        }
      }
    }
    &__echarts {
      width: calc(50% - 14px);
      padding: 30px 20px 10px 20px;
    }
  }

  &-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    h3 {
      font-size: 15px;
      font-weight: 700;
      line-height: 21.72px;
      color: rgba(55, 74, 94, 1);
      margin: 0;
    }
    a {
      font-size: 14px;
      font-weight: 400;
      line-height: 20.27px;
      color: rgba(55, 74, 94, 1);
      display: flex;
      align-items: center;
      i {
        font-size: 12px;
        margin-left: 5px;
      }
    }
  }

  &-three {
    margin: 0 -7px 14px -7px;
    display: flex;
    &__langs {
      width: calc(70% - 14px);
      padding: 30px;
      &-lists {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -12px;
        height: 235px;
        overflow-x: hidden;
        &::-webkit-scrollbar {
          background: #f0f2f5;
          width: 7px;
        }
        &::-webkit-scrollbar-thumb {
          background-color: rgba(0, 0, 0, 0.4);
          border-radius: 7px;
        }
        &::-webkit-scrollbar-thumb:hover {
          background-color: rgba(0, 0, 0, 0.5);
        }
        li {
          margin: 0 12px 24px 12px;
          width: calc(10% - 24px);
          a {
            display: block;
            border: 1px solid rgba(227, 227, 227, 1);
            border-radius: 6px;
            overflow: hidden;
            padding-bottom: 69%;
            position: relative;
            font-size: 0;
            img,
            svg {
              width: 100%;
              height: 100%;
              object-fit: cover;
              position: absolute;
            }
            svg image {
              height: auto;
              width: 100%;
            }
          }
          &.no {
            filter: grayscale(100%);
          }
        }
      }
      &-tips {
        margin-top: 10px;
        display: flex;
        align-items: center;
        font-size: 14px;
        font-weight: 400;
        line-height: 20.27px;
        color: rgba(55, 74, 94, 1);
        i {
          font-size: 14px;
          color: rgba(255, 159, 67, 1);
          margin-right: 10px;
        }
      }
    }
    &__echarts {
      width: calc(30% - 14px);
      padding: 30px;
      &_list {
        &-item {
          border-bottom: 1px dashed rgba(222, 226, 230, 1);
          display: flex;
          justify-content: space-between;
          padding: 10px 14px;
          span {
            font-size: 14px;
            font-weight: 400;
            line-height: 20.27px;
            color: rgba(55, 74, 94, 1);
          }
        }
      }
      &-pie {
        display: flex;
        justify-content: center;
        margin-bottom: 25px;
        .pie {
          width: 134px;
          height: 134px;
          line-height: 134px;
        }
        .no-data {
          font-size: 16px;
          color: red;
        }
      }
      &-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        p {
          font-size: 14px;
          font-weight: 400;
          line-height: 20.27px;
          color: rgba(55, 74, 94, 1);
        }
        a {
          margin-top: 20px;
          font-size: 14px;
          font-weight: 400;
          line-height: 20.27px;
          color: rgba(4, 122, 116, 1);
          padding: 7px 0;
          background: rgba(27, 197, 189, 0.3);
          border-radius: 4px;
          align-self: stretch;
          text-align: center;
          &:hover {
            background: rgba(27, 197, 189, 0.5);
          }
        }
      }
    }
  }
  &-four {
    display: flex;
    margin: 0 -7px;
    &__echarts {
      width: calc(70% - 14px);
      padding: 30px;
    }
    &__news {
      width: calc(30% - 14px);
      padding: 30px;
      &-list {
        li {
          display: flex;
          align-items: center;
          font-size: 14px;
          font-weight: 400;
          line-height: 20.27px;
          color: rgba(55, 74, 94, 1);
          padding: 17px 0;
          border-bottom: 1px dashed rgba(222, 226, 230, 1);
          a {
            flex: 1;
            min-width: 1px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            display: flex;
            align-items: center;
            color: rgba(55, 74, 94, 1);
            &:before {
              content: "";
              width: 8px;
              height: 8px;
              border-radius: 50%;
              border: 2px solid rgba(27, 197, 189, 0.6);
              margin-right: 7px;
            }
            &:hover {
              color: rgba(27, 197, 189, 1);
            }
          }
        }
      }
    }
  }

  &-five {
    margin: 14px 0 0 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    .main-box-item {
      margin: 0;
    }
    &__title {
      font-size: 15px;
      font-weight: 700;
      line-height: 1.4;
      color: rgba(55, 74, 94, 1);
      margin-bottom: 24px;
      align-self: flex-start;
    }
    &__box {
      position: relative;
      &-img {
        max-width: 1100px;
        display: block;
        margin: 0 auto;
      }
      &-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        &:hover {
          animation-name: swing;
          animation-duration: 1s;
          animation-duration: 1s;
          animation-fill-mode: both;
        }
        &-en {
          top: 49%;
          left: 16%;
          &:hover {
            transform-origin: top center;
          }
        }
        &-de {
          top: 39%;
          left: 53%;
          flex-direction: row;
          justify-content: center;
          &:hover {
            transform-origin: left center;
          }
        }
        &-ru {
          top: 16%;
          left: 68%;
          .main-box-five__box-item-address {
            order: 1;
          }
          &:hover {
            transform-origin: bottom center;
          }
        }
        &-zh {
          top: 55%;
          right: 2%;
          flex-direction: row;
          justify-content: center;
          &:hover {
            transform-origin: left center;
          }
        }
        &-sing {
          bottom: 13%;
          right: 14%;
          &:hover {
            transform-origin: top center;
          }
        }
        &-britain {
          top: 37%;
          left: 35%;
          flex-direction: row;
          justify-content: center;
          .main-box-five__box-item-address {
            order: 1;
          }
          &:hover {
            transform-origin: right center;
          }
        }
        &-alq {
          bottom: 19%;
          right: 27%;
          &:hover {
            transform-origin: top center;
          }
        }
        &-main {
          display: flex;
          flex-direction: column;
          &-right {
            background-image: url("../images/wordarea/right-bg.png");
            width: 149px;
            height: 72px;
            padding: 14px 0 0 15px;
          }
          &-left {
            background-image: url("../images/wordarea/left-bg.png");
            width: 149px;
            height: 72px;
            padding: 14px 0 0 18px;
          }
          &-top {
            background-image: url("../images/wordarea/top-bg.png");
            padding: 19px 0 0 10px;
            width: 142px;
            height: 79px;
          }
          &-bottom {
            background-image: url("../images/wordarea/bottom-bg.png");
            padding: 14px 0 0 15px;
            width: 142px;
            height: 79px;
          }
          &-title {
            display: flex;
            align-items: center;
            margin-bottom: 5px;
            span {
              font-size: 14px;
              font-weight: 700;
              line-height: 1.6;
              color: rgba(55, 74, 94, 1);
              margin-left: 6px;
            }
          }
          &-ip {
            font-size: 14px;
            font-weight: 400;
            color: rgba(55, 74, 94, 1);
          }
        }
      }
    }
  }
}
