@import "../../core/variables.less";
@top-height: 60px;
@icon-color: #939393;
.top-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: @top-height;
  background-color: #2966FF;
  // z-index:2;
  &::after{
    content:'';
    width:100%;
    height:60px;
    background: linear-gradient(180deg, #2966FF 0%, rgba(41, 102, 255, 0.82) 29%, rgba(41, 102, 255, 0.58) 55%, rgba(41, 102, 255, 0.27) 77%, rgba(7, 78, 255, 0) 100%);
    position:absolute;
    z-index:2;
    top:59px;
  }
  .logo {
    display: inline-block;
    height: 30px;
    margin-left: 20px;
  }
  .logo-name {
    font-size: 14px;
    font-weight: 500;
    color: #2966FF;
    line-height: 20px;
    vertical-align: middle;
    font-weight: bold;
    margin-left: 11px;
  }
  .top {
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    -webkit-flex-direction: row;
    align-items: center;
    -webkit-align-items: center;
    padding: 0 16px 0 0;
    height: 100%;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    border-bottom: 1px solid @xm-color-border;
    .backCenter {
      color: rgba(0, 0, 0, 1);
      font-size: 16px;
    }
    .top-left {
      display: flex;
      display: -webkit-flex;
      align-items: center;
      -webkit-align-items: center;
      height: 100%;
      min-width: 200px;
      padding-left: 20px;
      box-sizing: content-box;
      .org-logo-box {
        display: flex;
        display: -webkit-flex;
        flex-direction: row;
        -webkit-flex-direction: row;
        align-items: center;
        -webkit-align-items: center;
        justify-content: center;
        -webkit-justify-content: center;
        position: relative;
        .logo {
          width: 40px;
          height: 40px;
          border-radius: 50%;
          overflow: hidden;
          cursor: pointer;
          position: relative;
          img {
            width: 100%;
            height: 100%;
          }
          .edit {
            position: absolute;
            width: 40px;
            height: 0;
            top: 0;
            left: 0;
            overflow: hidden;
            color: #ffffff;
            display: flex;
            display: -webkit-flex;
            justify-content: center;
            -webkit-justify-content: center;
            align-items: center;
            -webkit-align-items: center;
          }
          &:hover {
            .edit {
              height: 40px;
              background: rgba(0, 0, 0, 0.3);
              .icon {
                font-size: 20px;
              }
            }
          }
        }
        .name-box {
          flex: 1;
          -webkit-flex: 1;
          margin-left: 10px;
          position: relative;
          cursor: pointer;
          .area-list {
            width: 128px;
            position: absolute;
            top: 100%;
            left: 0;
            height: 0;
            overflow-y: hidden;
            border-radius: 4px;
            padding: 4px 0;
            -webkit-transition: all 0.3s;
            -moz-transition: all 0.3s;
            -ms-transition: all 0.3s;
            -o-transition: all 0.3s;
            transition: all 0.3s;
            li {
              margin: 2px 10px;
              font-size: 12px;
              color: #ffffff;
            }
          }
          &:hover {
            .area-list {
              height: auto;
              background: rgba(0, 0, 0, 0.6);
              li {
                -webkit-transition: all 0.3s;
                -moz-transition: all 0.3s;
                -ms-transition: all 0.3s;
                -o-transition: all 0.3s;
                transition: all 0.3s;
              }
              li:hover {
                background-color: rgba(255, 255, 255, 0.2);
              }
            }
          }
          .name {
            width: 120px !important;
            font-size: 14px;
            vertical-align: middle;
            display: flex;
            display: -webkit-box;
            display: -moz-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            align-items: center;
            -webkit-align-items: center;
            flex-direction: row;
            -webkit-flex-direction: row;
            justify-content: space-between;
            -webkit-justify-content: space-between;
            .icon {
              cursor: pointer;
            }
          }
          .backCenter {
            cursor: pointer;
            &:hover {
              background: @xm-color-text-select-primary;
            }
          }
          .all-name {
            color: #afb7c7;
            font-size: 12px;
          }
        }
      }
    }
    .message-help {
      display: flex;
      display: -webkit-flex;
      align-items: center;
      -webkit-align-items: center;
      height: 100%;
      flex: 1;
      -webkit-flex: 1;
      justify-content: space-between;
      margin-left: 54px;
      .college-container {
        position: relative;
        width: 360px;
        height: 50px;
        display: flex;
        align-items: center;
        .college {
          display: flex;
          align-items: center;
          margin-right: 16px;
          cursor: pointer;
          width: 100%;
          height: 100%;
          .select {
            cursor: pointer;
          }
          .college-name {
            color:#FFFFFF;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            max-width: 280px;
          }
          .icon {
            font-size: 14px;
            margin-left: 8px;
            color: #FFF;
            &:hover {
              color:#FFF;
            }
          }
        }
        .select-college {
          position: absolute;
          top: 50px;
          left: 0;
          background: #fff;
          width: 282px;
          padding: 14px;
          box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.06);
          max-height: 240px;
          border-radius: 2px;
          display: none;
          padding-right: 0;
          z-index: 10;
          &.active {
            display: block;
          }
          h2 {
            margin-bottom: 10px;
            font-size: 16px;
            font-weight: 500;
          }
          .ant-radio-group {
            overflow-y: auto;
            width: 100%;
            max-height: 190px;
          }
          .ant-radio-wrapper {
            display: flex;
            width: calc(~'100% - 8px');
            margin: 8px 0;
            .ant-radio {
              float: left;
              margin: 3px 0;
            }
            .name {
              color: #666;
              white-space: pre-wrap;
            }
          }
          .control {
            display: flex;
            justify-content: flex-end;
            button {
              margin-left: 8px;
            }
          }
          .scroll-shadow {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40px;
            background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
          }
        }
      }
      .store-related {
        width: 360px;
        height: 49px;
        display: flex;
        position: relative;
        align-items: center;
        .store-name {
          font-size: 14px;
          color: #FFF;
          line-height: 49px;
          margin-left: 8px;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          max-width: 230px;
          margin-right: 16px;
        }
        .line {
          width: 1px;
          height: 16px;
          background-color: #f4f4f4;
          margin-right:16px;
        }
      }
      .right-box {
        display: flex;
        align-items: center;
      }
      .right-bg-img{
        img{
          width:277px;
          height:60px;
        }
      }
      .link-to-store {
        display: flex;
        height: 49px;
        line-height: 49px;
        .text {
          font-size: 14px;
          color: #FFF;
          line-height: 49px;
          margin-left: 7px;
        }
        .iconfont {
          color: #FFF;
        }
        .link {
          cursor: pointer;
          position: relative;
          .link-btn{
            padding:6px 12px;
            opacity: 0.5;
            border: 2px solid #FFFFFF;
            border-radius: 4px;
            &:hover{
              opacity: 1;
            }
          }
          .store-popover {
            display: none;
          }
          &:hover {
            .store-popover {
              position: absolute;
              display: flex;
              width: 216px;
              height: 260px;
              top: 49px;
              left: 0;
              background-color: #fff;
              flex-wrap: wrap;
              box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
              z-index: 10;
              .pc-url {
                display: flex;
                justify-content: space-between;
                width: 100%;
                height: 56px;
                padding: 16px;
                border-bottom: 1px solid #e8e8e8;
                .name {
                  width: 70px;
                  font-size: 14px;
                  color: #333333;
                  line-height: 20px;
                }
                .url-link {
                  color: #2966FF;
                  font-size: 14px;
                  line-height: 20px;
                }
              }
              .h5-url {
                width: 100%;
                .name,
                .tip {
                  width: 70px;
                  font-size: 14px;
                  color: #333333;
                  line-height: 52px;
                  margin: 0 auto;
                }
                #h5-qrcode {
                  width: 110px;
                  height: 110px;
                  margin: 0 auto;
                }
                .tip {
                  line-height: 41px;
                  width: 130px;
                }

              }
            }
          }
        }
        .share {
          cursor: pointer;
          margin-left: 16px;
          .share-btn{
            padding:6px 12px;
            opacity: 0.5;
            border: 2px solid #FFFFFF;
            border-radius: 4px;
            &:hover{
              opacity: 1;
            }
          }
        }
      }
      .drop-menu {
        height: 100%;
        display: flex;
        display: -webkit-flex;
        align-items: center;
        -webkit-align-items: center;
        justify-content: center;
        -webkit-justify-content: center;
        position: relative;
        .help-button {
          display: flex;
          align-items: center;
          height: 100%;
          cursor: pointer;
          padding: 0 12px;
          width: 106px;
          .icon-text {
            margin-left: 4px;
            color: #333;
          }
        }
        .icon {
          font-size: 16px;
          color: @icon-color;
          vertical-align: middle;
          white-space: nowrap;
          &.font-sm {
            font-size: 14px;
          }
        }
        &:hover {
          color: #555;
          .icon {
            color: #555;
          }
          .help-center,
          .message-center {
            color: black;
          }
        }
      }
      .help-menu {
        .help-center {
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
          position: absolute;
          overflow: hidden;
          top: 50px;
          left: 0;
          height: 0;
          background-color: #ffffff;
          &.active {
            height: auto;
          }
          .help-body {
            li {
              width: 125px;
              padding: 10px 20px;
              cursor: pointer;
              display: flex;
              align-items: center;
              span:nth-child(1) {
                margin-right: 10px;
                color: @primary;
                font-size: 18px;
              }
              span:nth-child(2) {
                font-size: 12px;
                vertical-align: middle;
                color: @primary;
              }
            }
          }
        }
      }
      .message-menu {
        .message-center {
          box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
          position: absolute;
          overflow: hidden;
          top: 50px;
          right: -96px;
          width: 320px;
          height: 0;
          // -webkit-animation: flipInY 1s 0s ease both;
          // -moz-animation: flipInY 1s 0s ease both;
          background-color: #ffffff;
          border-radius: 4px;
          z-index: 1;
          &.active {
            height: auto;
          }
          .message-body {
            overflow: auto;
            // max-height: 255px;
            .message-item:hover {
              background: #f3f6fa;
            }
            li,
            a {
              width: 100%;
              display: block;
              border-bottom: 1px solid @xm-color-border;
              cursor: pointer;
              padding: 16px;
              &.load-more {
                text-align: center;
                color: @xm-color-text-select-primary;
                font-size: 13px;
                padding: 10px;
              }
            }
          }
        }
      }
      .user {
        margin-left: 16px;
        max-width: 160px;
        display: flex;
        align-items: center;
        cursor: pointer;
        .name {
          margin-left: 8px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          color:#FFF;
        }
      }
    }
    .top-version {
      .version-title {
        cursor: pointer;
        color: #f47564;
      }
    }

    .edit-menu,
    .exit {
      height: 100%;
      padding: 0 15px;
      display: flex;
      display: -webkit-flex;
      align-items: center;
      -webkit-align-items: center;
      justify-content: center;
      -webkit-justify-content: center;
      position: relative;
      cursor: pointer;

      .icon {
        margin-right: 4px;
        font-size: 16px;
        color: @icon-color;
        vertical-align: middle;
        &.font-sm {
          font-size: 14px;
        }
      }
      &:hover {
        color: #ffffff;
        background-color: @xm-color-text-select-primary;
        .icon {
          color: #ffffff;
        }
        .help-center {
          color: black;
        }
        .message-center {
          color: black;
        }
      }
    }
  }
}

.user-center-dropdown {
  background: #fff;
  width: 274px;
  border-radius: 4px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  .user-detail {
    position: relative;
    padding-bottom: 16px;
    border-bottom: 1px solid #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .box {
      width: 160px;
      .name {
        font-size: 16px;
        color: #333;
        line-height: 22px;
        margin-bottom: 4px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
      .phone {
        line-height: 22px;
        color: #999999;
      }
    }
    .setting {
      color: #666;
      cursor: pointer;
      .iconfont {
        margin-left: 4px;
        font-size: 12px;
      }
    }
  }
  .menu {
    padding-top: 8px;
    .menu-item {
      height: 44px;
      line-height: 44px;
      cursor: pointer;
      color: #333;
      .menu-before {
        color: #BFBFBF;
        margin-right: 8px;
        font-size: 14px;
      }
      .menu-after {
        color: #999;
        float: right;
        font-size: 12px;
      }
    }
  }
}
