// @app-detail-padding: 40px;
@app-collapse-hover: 40px;

/*头部高度*/
@app-header-height: 50px;

/*侧导航宽度，正常情况下logo宽度=侧导航宽度*/
@app-nav-width: 188px;
@app-nav-height: 46px;
@app-nav-bg: #303a58;

.top-notice {
  a {
    color: white;
  }
}

.app-body {
  position: relative;
  background-color: var(--app-bg);

  &.custom-detail {
    background-color: var(--color-bg);

    .app-detail {
      padding: 0;
    }
  }
}

.app-detail {
  position: relative;
  margin-left: 0;
  // padding: @app-detail-padding;
  transition: margin-left var(--duration) ease-out;

  &.side-expand {
    margin-left: @app-nav-width;
  }

  &.side-collapse {
    margin-left: @app-collapse-hover;
  }
}

/*默认状态无侧导航*/
.app-navs {
  position: absolute;
  top: 0;
  left: 0 - @app-nav-width;
  bottom: 0;
  z-index: 2;
  width: @app-nav-width;
  background-color: @app-nav-bg;
  transition: left var(--duration) ease-out;

  .nav-wrapper {
    position: relative;
    padding-top: 16px;
    padding-bottom: @app-header-height + 60px;
  }

  /*侧导航收起时上方显示的按钮*/
  .nav-fold {
    position: absolute;
    top: 0;
    right: 0;
    width: @app-collapse-hover;
    height: 40px;
    overflow: hidden;
    text-align: center;

    .fold-icon {
      line-height: 40px;
      color: #fff;
      font-size: 14px;
      opacity: 0.5;
    }
  }

  .nav-lock {
    position: absolute;
    left: 24px;
    bottom: @app-header-height + 20px;

    .lock-icon {
      display: inline-block;
      padding: 2px 12px;
      line-height: 20px;
      border-radius: 3px;
      color: rgba(255, 255, 255, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.4);

      &:hover {
        color: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.6);
      }
    }
  }

  .nav-content {
    height: 100%;
    font-size: 14px;
    overflow-y: auto;

    &::-webkit-scrollbar {
      width: 0;
      height: 0;
    }

    &::-webkit-scrollbar-thumb {
      background-color: transparent;
      border-radius: 0;
    }

    .nav-second {
      display: block;
      height: @app-nav-height;
      padding-left: 24px;
      padding-right: 20px;
      line-height: @app-nav-height;
      color: #9ea0a6;
      cursor: pointer;
      transition: all 0.2s ease-out;

      .second-icon {
        float: right;
        line-height: @app-nav-height;
        cursor: pointer;
        color: #9ea0a6;
        transition: all 0.2s ease-out;
      }

      /*若为二级组，组展开时状态*/
      &.second-expand {
        background-color: #702ad140;

        .second-icon {
          transform: rotate(180deg);
        }
      }

      /*选中态在该二级组内*/
      &.second-on,
      &:hover {
        color: #fff;

        .second-icon {
          color: #fff;
        }
      }
    }

    .nav-third {
      display: block;
      height: @app-nav-height;
      padding-left: 20px;
      line-height: @app-nav-height;
      border-left: 4px solid transparent;
      color: #9ea0a6;
      overflow-y: hidden;
      transition: all 0.2s ease-out;

      &:hover {
        color: #fff;
      }

      &.third-on {
        // border-left: 4px solid var(--color-brand);
        color: #fff;
        background-color: var(--color-brand);
      }
    }

    .nav-thirds {
      overflow: hidden;
      // background-color: #242d46;
      box-shadow: 0 6px 8px rgba(51, 51, 51, 0.08);

      .nav-third {
        height: 0;
      }

      &.third-expand {
        .nav-third {
          height: @app-nav-height;
        }
      }
    }
  }

  /*侧导航展开时状态*/
  &.navs-expand {
    left: 0;
  }

  /*有侧导航，侧导航收起状态，鼠标hover时状态*/
  &.navs-collapse {
    left: @app-collapse-hover - @app-nav-width;
  }
}

@logo-width: 220px;
.app-header {
  position: relative;
  z-index: 3;
  height: @app-header-height;
  background: white;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.08);
  // background-color: var(--color-brand);

  .header-brand {
    position: absolute;
    top: 0;
    left: 0;
    width: @logo-width;
    // width: @app-nav-width;
    text-align: center;

    .brand-logo {
      font-size: 23px;
      line-height: @app-header-height;
    }
  }

  .header-menus {
    position: absolute;
    top: 0;
    // left: @app-nav-width;
    left: @logo-width;

    .header-menu {
      float: left;
      font-size: 14px;
      line-height: 48px;
      height: 50px;
      padding: 0 8px;
      margin: 0 8px;
      // color: var(--color-brand)-text;
      // opacity: .6;
      transition: opacity var(--duration) ease-out;

      &:hover {
        // opacity: .8;
      }

      &.on {
        border-bottom: 2px solid var(--color-brand);
        font-weight: bold;
        // opacity: 1;
      }
    }
  }
}

body {
  background-color: #fafafa;
}

.header-userinfo {
  position: absolute;
  height: 50px;
  // line-height: 50px;
  padding-top: 15px;
  color: #888;
  top: 0;
  right: 30px;
  z-index: 100;
}

.sms-count-icon {
  position: absolute;
  top: 0px;
  right: -12px;
  background-color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  color: #6a4c9c;
  border: 2px solid #6a4c9c;
  font-family: tahoma;
}

.sms-list {
  position: absolute;
  width: 420px;
  background-color: white;
  right: 0;
  // display: none;
  top: 25px;
  z-index: 10000;
  line-height: 1.8;
  color: #000;

  // border: 1px solid #ddd;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);

  .hd {
    padding: 11px 15px;
    border-bottom: 1px solid #ddd;

    a {
      color: var(--color-brand);
    }
  }

  ul {
    padding: 12px 15px;
    height: 150px;
  }
}

.sms-list li {
  margin: 3px 0;
}

.sms-list a {
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.sms-list a:hover {
  color: #68499e;
}

.sms-list a.more {
  color: #68499e;
}

// .sms-icon:hover .sms-list {
//     display: block;
// }

.global-notice {
  position: fixed;
  z-index: 9999999;
  bottom: 20px;
  right: 5px;
  border: 1px solid #ddd;
  background: white;
  width: 36px;
  padding: 8px 0;
  color: #888;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s;

  &:hover {
    color: var(--color-brand);
  }
}

.btn-guide {
  background: white;
}

.new-guide {
  width: 980px;
  background-color: white;
  position: absolute;
  top: 10px;
  left: 200px;
  z-index: 100001;
  overflow: hidden;
  border-radius: 4px;

  .hd {
    // background-color: var(--color-brand);
    border-radius: 10px 10px 0 0;
    font-size: 28px;
    line-height: 80px;
    padding-top: 10px;
    // border-bottom: 1px solid #E6E6E6;
    // box-shadow: 0 4px 4px rgba(0,0,0,0.08);
    // color: white;
  }

  .bd {
    .desc {
      // color: white;
      line-height: 1.8;
    }

    // min-height: 500px;
    padding: 20px 100px 40px;
    // background-color: #8c6fbf;
    border-radius: 0 0 10px 10px;

    > div {
      margin-bottom: 15px;

      &:last-child {
        margin-bottom: 0;
      }
    }

    // display: grid;
    // grid-gap: 15px;
    // grid-template-rows: 40px auto;
    .ct {
      align-self: center;
    }
  }

  .left-hand,
  .right-hand {
    display: none;
    position: absolute;
    top: 50%;
    color: white;
    width: 30px;
    height: 72px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 72px;

    &:hover {
      background-color: rgba(0, 0, 0, 0.4);
    }
  }

  .left-hand {
    left: 0;
    border-radius: 0 3px 3px 0;
  }

  .right-hand {
    right: 0;
    border-radius: 3px 0 0 3px;
  }

  &:hover {
    .left-hand,
    .right-hand {
      display: block;
    }
  }

  .close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ccc;
    cursor: pointer;

    &:hover {
      color: var(--color-brand);
    }
  }

  .total {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;

    .dot {
      margin: 0 5px;
      border-radius: 50%;
      cursor: pointer;
      display: inline-block;
      width: 10px;
      height: 10px;
      background-color: rgba(0, 0, 0, 0.3);

      &.active {
        background-color: var(--color-brand);
      }
    }
  }
}

.new-guide-mask {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 100000;
  background-color: rgba(0, 0, 0, 0.8);
}

.header-account {
  // color: #333;
  a {
    color: #333;
  }

  // &:hover {
  //     .popover {
  //         display: block;
  //     }
  // }
  display: inline-block;

  .popover {
    // display: none;
    a {
      &:hover {
        color: var(--color-brand);
      }
    }

    width: 125px;
    padding: 12px 15px;
    line-height: 2.4;
    position: absolute;
    top: 40px;
    right: 0;
    background-color: white;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  }
}

.sms-roll {
  width: 250px;
  height: 21px;
  vertical-align: middle;
  line-height: 1.8;
  overflow: hidden;
  display: inline-block;

  ul {
    position: relative;
    transition: all 0.8s;

    li {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
}

.guide-cards {
  display: grid;
  grid-template-columns: 190px 190px 190px;
  grid-gap: 30px;
  justify-content: center;
}

.cards {
  background-color: #fff;
  box-shadow: 0 0px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.guide-photo {
  height: 180px;
  background-color: #f8f3fe;
  display: grid;
  justify-items: center;
  align-items: center;
}

.menu-mark {
  position: absolute;
  top: -30px;
  left: 0;
}
