@mainColor: #1179B3;
@primaryColor: #1179B3;
@linkColor: #07d;

@import "./../../../../../resources/assets/ui-brick/base/export";
@import "./../../../../../resources/assets/ui-brick/bricks/component/misc/misc";
@import "./../../../../../resources/assets/ui-brick/bricks/component/misc/html";
@color-biz-primary: @primaryColor;
@color-primary: @color-biz-primary;

@font-face {
  font-family: 'iconfont';  /* project id 359250 */
  src: url('//at.alicdn.com/t/font_359250_ag0szrwe259g4x6r.eot');
  src: url('//at.alicdn.com/t/font_359250_ag0szrwe259g4x6r.eot?#iefix') format('embedded-opentype'),
  url('//at.alicdn.com/t/font_359250_ag0szrwe259g4x6r.woff') format('woff'),
  url('//at.alicdn.com/t/font_359250_ag0szrwe259g4x6r.ttf') format('truetype'),
  url('//at.alicdn.com/t/font_359250_ag0szrwe259g4x6r.svg#iconfont') format('svg');
}

.iconfont {
  font-family: "iconfont" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}

@import "../../../../../resources/assets/lib/css/pager";

// MUI改造部分
body {

  input,
  textarea,
  select {
    font-size: 14px;
  }

  select,
  textarea,
  input[type='text'],
  input[type='search'],
  input[type='password'],
  input[type='datetime'],
  input[type='datetime-local'],
  input[type='date'],
  input[type='month'],
  input[type='time'],
  input[type='week'],
  input[type='number'],
  input[type='email'],
  input[type='url'],
  input[type='tel'],
  input[type='color'] {
    font-size: 14px;
  }

  .mui-btn {
    font-size: 14px;
    padding: 10px 0;
  }

  .mui-btn-primary {
    background: @mainColor !important;
    border-color: @mainColor;

    &:link, &:focus, &:active, &:hover {
      color: #FFF;
      background: darken(@mainColor, 5%);
    }
  }

  .mui-title {
    color: @mainColor;

    img {
      height: 30px;
    }
  }

  .mui-input-group-title {
    padding: 0 17px 0 17px;
    background: none;
  }

  .mui-input-group {
    margin: 10px 0;
  }

  .mui-bar-tab {
    .mui-tab-item {
      text-decoration: none;

      &.mui-active {
        color: @mainColor;
      }
    }
  }

  .mui-bar-nav.mui-bar {
    a {
      color: @mainColor;
      font-size: 16px;
    }

    .mui-icon {
      color: @mainColor;
      text-decoration: none;
    }
  }

  .mui-content {
    > .mui-table-view {
      margin-top: 10px;

      &:first-child {
        margin-top: 10px;
      }
    }

    .mui-table-view {
      margin-top: 10px;

      &:first-child {
        margin-top: 10px;
      }
    }
  }

  .mui-radio input[type='radio']:checked:before, .mui-checkbox input[type='checkbox']:checked:before {
    color: @mainColor;
  }

  .mui-segmented-control {
    border: none;
    border-radius: 0px;
    background: #FFF;

    .mui-control-item {
      border: none;
      color: #999;

      &.mui-active {
        color: @mainColor;
        border-bottom: 2px solid @mainColor;
        background: #FFF;
      }
    }
  }

  .mui-table-view-cell {
    overflow: hidden;

    .name {
      float: left;
      color: #999;
    }

    .value {
      float: right;
    }
  }

  .mui-search.mui-active:before {
    top: 25px;
  }

  .mui-input-row {
    .mui-active {
      color: @mainColor !important;
    }

    .value {
      line-height: 1.1;
      padding: 11px 15px;
      color: #666;
    }

    &.image {
      height: auto;
      padding: 10px 0;
    }

    &.captcha {
      position: relative;

      input {
        width: 30%;
        margin-right: 35%;
      }

      .mui-icon {
        margin-right: 30%;
      }

      img {
        position: absolute;
        height: 30px;
        width: 100px;
        border: 1px solid #EEE;
        border-radius: 3px;
        right: 5px;
        top: 5px;
      }

      .btn {
        position: absolute;
        right: 5px;
        top: 5px;

        button {
          height: 30px;
          line-height: 30px;
          width: 100px;
          padding: 0;
          text-align: center;
        }
      }
    }
  }

}

// MUI改造部分

@import "./../../../../../resources/assets/lib/css/pager";
@import "./../../../../../resources/assets/lib/css/widget";
@import "./../../../../../resources/assets/lib/css/html";

.uk-button-primary {
  background: @mainColor;

  &:hover, &:focus, &:link {
    background: darken(@mainColor, 5%);
  }
}

.uk-form {
  line-height: 2em;

  h1 {
    font-size: 20px;
    color: @mainColor;
    line-height: 50px;
    margin: 0;
    padding: 0;
  }

  .line {
    padding: 0px 0 20px 0;

    .label {
      color: #666;
    }

    .field {
      padding: 2px 0 0 0;

      .help {
        color: #999;
        padding: 5px 0 0 0;
      }
    }
  }
}

html, body {
  background: #efeff4;
  font-size: 14px;
  color: #666;
  //  a:hover, a:focus, a:link {
  //    text-decoration: none;
  //  }
  //  * {
  //    text-shadow: none !important;
  //  }
  //  &.lock {
  //    overflow: hidden;
  //  }
}

//.page-container {
//  .pages {
//    a:hover {
//      color: @primaryColor;
//      border-color: @primaryColor;
//    }
//  }
//}
//
.pb {
  margin: 10px 0;
  border-radius: 2px;

  &.pb-full {
    padding: 0;
  }

  & > .head {
    color: #999;
    line-height: 30px;
    border-bottom: 1px solid #EEE;
    padding: 0 10px;

    .btn {
      display: inline-block;
      line-height: 24px;
      color: #333;
      padding: 0 5px;
      border-radius: 3px;

      &.primary {
        background: @primaryColor;
        color: #FFF;
      }

      &.cur {
        background: #FFF;
      }
    }

    .more {
      float: right;
    }

    .tab {
      a {
        &.cur {

        }
      }
    }
  }

  & > .body {
    padding: 10px;
    color: #666;
    background: #FFF;
  }
}

//header {
//  height: 40px;
//  background: @mainColor;
//  text-align: center;
//  position: fixed;
//  top: 0px;
//  left: 0px;
//  right: 0px;
//  z-index: 1000;
//  .left {
//    position: absolute;
//    left: 0;
//    top: 0;
//    a {
//      color: #FFF;
//      line-height: 40px;
//      width: 40px;
//      text-align: center;
//      font-size: 13px;
//      display: inline-block;
//    }
//  }
//  .right {
//    position: absolute;
//    right: 0;
//    top: 0;
//    a {
//      color: #FFF;
//      line-height: 40px;
//      display: inline-block;
//      width: 40px;
//      font-size: 13px;
//      &.txt {
//        font-size: 10px;
//        padding: 0 5px;
//        width: auto;
//      }
//    }
//  }
//  .title {
//    padding: 5px 65px;
//    line-height: 30px;
//    color: #FFF;
//    font-size: 12px;
//    overflow: hidden;
//    text-overflow: ellipsis;
//    white-space: nowrap;
//    .logo {
//      display: block;
//      img {
//        height: 30px;
//      }
//    }
//  }
//}
//
//nav {
//  background: #FFF;
//  border-right: 1px solid #CCC;
//  position: fixed;
//  left: -140px;
//  top: 40px;
//  bottom: 0px;
//  width: 120px;
//  overflow: auto;
//  box-shadow: 0 0 5px #EEE;
//  padding: 0;
//  margin: 0;
//  transition: 0.4s left;
//  z-index: 990;
//  &.expand {
//    left: 0px;
//    transition: 0.4s left;
//  }
//  .home {
//    padding: 10px 20px 0 20px;
//    font-size: 12px;
//    a {
//      color: @mainColor;
//    }
//  }
//  .category {
//    padding: 10px 20px;
//    font-size: 12px;
//    .head {
//      color: #666;
//      line-height: 30px;
//    }
//    .body {
//      a {
//        color: #333;
//        display: block;
//        line-height: 14px;
//        margin-bottom: 5px;
//        padding: 5px 0;
//        height: 14px;
//        overflow: hidden;
//        text-overflow: ellipsis;
//        white-space: nowrap;
//        img {
//          width: 14px;
//          height: 14px;
//          vertical-align: top;
//          margin-right: 5px;
//        }
//      }
//    }
//  }
//}
//
.pb-banner {
  background: none;
  padding: 0 !important;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin: 0 !important;

  .swiper-slide {
    height: 200px;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #FFF;
    background-position: center;
  }

  .swiper-pagination {
    .swiper-pagination-bullet-active {
      background: @mainColor;
    }
  }
}

.pb-thread-list {
  .thread-tag {
    padding: 10px;

    a {
      color: #666;
      display: inline-block;
      margin: 0 5px 5px 0;
      border: 1px solid #CCC;
      padding: 0 5px;
      border-radius: 3px;

      &.cur {
        color: @primaryColor;
        border-color: @primaryColor;
      }
    }
  }

  .empty {
    line-height: 100px;
    text-align: center;
    color: #999;
  }

  .item {
    border-bottom: 1px solid #EEE;
    overflow: hidden;
    padding: 10px 0;
    text-decoration: none;

    .avatar {
      display: block;
      float: left;

      img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #EEE;
      }
    }

    .main {
      padding-left: 50px;
      display: block;
      text-decoration: none;

      .title {
        color: #666;
        font-size: 14px;
      }

      .attr {
        color: #999;

        .tag {
          color: #666;
        }

        .right {
          float: right;
        }
      }
    }
  }
}

.pb-thread {
  h1 {
    padding: 0;
    margin: 0;
    font-size: 13px;
    line-height: 20px;
    color: @primaryColor;
  }

  .attr {
    color: #999;
    border-bottom: 1px solid #EEE;
    padding: 5px 0;

    a {
      color: #666;
    }
  }

  .content {
    padding: 10px 0;

    p {
      line-height: 2em;
      padding: 0;
      margin: 0;
    }

    img {
      max-width: 90%;
    }
  }

  .thread-action {
    text-align: center;
    padding: 10px 0;

    a {
      display: inline-block;
      line-height: 30px;
      border: 1px solid #CCC;
      background: #EEE;
      color: #999;
      text-decoration: none;
      border-radius: 2px;
      padding: 0 5px;

      &.cur {
        color: @primaryColor;
      }
    }
  }

  .action {
    text-align: right;
    padding: 10px 0;

    a {
      display: inline-block;
      margin-left: 10px;
      color: #CCC;
    }
  }
}

.pb-post-list {
  .item {
    padding: 0px 0 10px 50px;
    margin: 0 0 10px 0;
    position: relative;
    border-bottom: 1px solid #EEE;

    .avatar {
      position: absolute;
      left: 0px;
      top: 0px;
      display: block;
      height: 40px;
      width: 40px;

      img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #EEE;
      }
    }

    .user {
      color: #999;

      a {
      }
    }

    .content {
      padding: 0;

      p {
        padding: 0;
        margin: 0;
        line-height: 2em;
      }

      img {
        max-width: 80%;
      }
    }

    .action {
      text-align: right;

      a {
        color: #CCC;
      }
    }
  }
}

.pb-member-info {
  .avatar {
    display: block;
    text-align: right;
    padding-right: 10px;

    img {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      border: 1px solid #CCC;
      padding: 2px;
    }
  }

  .profile {
    float: right;
    color: #999;
  }

  .username {
    color: #333;
  }

  .info {
    color: #666;
  }
}

.pb-member-stat {
  text-align: center;

  .count {
    color: @primaryColor;
    font-size: 13px;
    line-height: 30px;
    text-decoration: none;

    &:hover {
      color: @primaryColor;
      text-decoration: none;
    }
  }

  .title {
    color: #999;
  }
}

.pb-member-action {
  a {
    display: block;
  }
}

.pb-member-thread-list {
  .empty {
    text-align: center;
    line-height: 100px;
    color: #999;
  }

  .item {
    border-bottom: 1px solid #EEE;
    color: #999;
    vertical-align: bottom;

    &:last-child {
      border: none;
    }

    a {
      color: @primaryColor;
      vertical-align: bottom;

      &:hover {
        color: @primaryColor;
      }
    }
  }
}

.pb-member-comment-list {
  .empty {
    text-align: center;
    line-height: 100px;
    color: #999;
  }

  .item {
    border-bottom: 1px solid #EEE;

    &:last-child {
      border: none;
    }

    .thread {
      color: #999;

      a {
        color: @primaryColor;
        vertical-align: bottom;

        &:hover {
          color: @primaryColor;
        }
      }
    }

    .comment {
      padding: 5px 0 0 0;
      color: #999;
      line-height: 2em;
    }

  }
}

.pb-member-menu-list {
  overflow: hidden;

  a {
    display: block;
    text-align: center;
    color: #333;
    border-bottom: 1px solid #EEE;
    line-height: 30px;
    width: 50%;
    float: left;

    &.cur {
      color: @primaryColor;
    }

    &:hover {
      color: @primaryColor;
    }

    i {
      width: 1.5em;
    }
  }
}

.pb-member-profile-nav {
  background: #FFF;

  a {
    height: 40px;
    line-height: 40px;
    color: #999;
    text-align: center;
    border-bottom: 2px solid #FFF;

    &.active {
      border-bottom: 2px solid @mainColor;
      color: @mainColor;
    }
  }
}

.pb-member-message-list {
  background: #FFF;

  .time {
    color: #999;
  }

  .message {
    p {
      margin: 0;
      padding: 0;
      line-height: 1.5em;
    }
  }

  .empty {
    color: #999;
    line-height: 200px;
    text-align: center;
  }
}

.pb-home-search {
  padding: 5px;

  .mui-placeholder {
    font-size: 14px;
  }

  input {
    margin-bottom: 0;
  }
}

.pb-oauth {
  text-align: center;
  padding: 20px 0;

  .title {
    color: #999;
  }

  .body {
    padding: 10px 0 0 0;

    a {
      display: inline-block;
      width: 50px;
      height: 50px;
      background: #999;
      color: #FFF;
      border-radius: 50%;
      text-align: center;
      margin: 0 10px;

      i {
        font-size: 36px;
        line-height: 50px;
      }

      &.wechat {
        background: #00bb29;
      }

      &.qq {
        background: #498ad5;
      }

      &.weibo {
        background: #e05244;
      }
    }
  }
}

.pb-forum {
  background: #FFF;

  .item {
    padding: 5px 5px 5px 5px + 50px;
    overflow: hidden;

    .icon {
      float: left;
      margin-left: -50px;
      width: 40px;
      height: 40px;
      display: block;

      img {
        width: 40px;
        height: 40px;
        margin-top: 5px;
      }
    }

    .title {
      color: @primaryColor;
      font-size: 14px;
      text-decoration: none;
      line-height: 18px;
    }

    .desc {
      font-size: 12px;
      line-height: 14px;
      color: #999;
      margin-top: 5px;
    }

    .stat {
      font-size: 12px;
      line-height: 14px;
      color: #999;
      margin-top: 5px;
    }
  }
}

.pb-form {
  .submit {
    padding: 0 10px;
  }
}

.pb-center-link {
  text-align: center;
  padding: 20px 0;
}

.pb-member-avatar {
  .preview {
    text-align: center;

    img {
      width: 50%;
      padding: 10px 0;
    }
  }

  .upload {
    button {
      position: relative;

      input {
        position: absolute;
        display: block;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        opacity: 0;
      }
    }
  }

  .editor {
    display: none;

    .view {
      border: 1px solid #EEE;
      background: #FFF;

      img {
        max-width: 100%;
        min-height: 300px;
      }
    }

    .tool {
      overflow: hidden;
      margin-top: 10px;

      button {
        display: block;
        width: 50%;
        float: left;
        color: #999;
        font-size: 20px;
        line-height: 40px;
        padding: 0;
      }
    }
  }
}

.pb-partner {
  .item {
    display: block;
    border: 1px solid #EEE;
    border-radius: 3px;
    padding: 2px;
    background: #F8F8F8;
    margin-bottom: 10px;

    &:hover {
      border-color: darken(#CCC, 10%);
    }

    .cover {
      display: block;
      background: transparent no-repeat center;
      background-size: contain;
      overflow: hidden;

      &:after {
        content: '';
        display: block;
        margin-top: 30%;
      }
    }
  }
}



