@import '../../app.less';

#page {
  padding-top: 44px;
}

#header {
  width: 100%;
  box-shadow: 0 4px 14px 0 rgba(189, 199, 215, 0.25);
  background-color: #ffffff;
  text-align: center;
  position: fixed;
  top: 0;
  z-index: 1;

  .body {
    margin: 0 auto;
    width: @content_width;
    height: 44px;
    line-height: 44px;
    position: relative;
  }

  .left {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
  }

  .center {
    text-align: center;

    .tabs {
      .tab {
        display: inline-block;
        margin: 0 8px;
        width: 96px;
        position: relative;
        text-align: center;
        font-size: 18px;
        color: @base_color;
      }

      .tab::after {
        content: '';
        width: 0;
        height: 4px;
        background: @theme_color;
        transform: translateX(-50%);
        transition: all 0.25s;
        position: absolute;
        bottom: 0;
        left: 50%;
      }

      .tab:hover,
      .tab.active {
        color: #444;
      }

      .tab:hover::after,
      .tab.active::after {
        width: 100%;
      }
    }
  }

  .right {
    position: absolute;
    right: 0;
    top: 0;

    .button {
      font-size: 14px;
      padding: 5px 22px;
      line-height: 20px;
    }
  }
}

#page.main {
  padding-top: 72px;
}

.main #header {
  .body {
    margin: auto;
    width: auto;
    height: 72px;
    line-height: 72px;
  }

  .left {
    left: 20px;
    width: 90px;
  }

  .right {
    right: 20px;
  }

  .tabs {
    .tab {
      width: 120px;
      margin: 0 24px;
      font-size: 24px;
    }
  }
}