@mainColor: #cd3a3a;
@linkColor: #07d;

@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";
@import "./../../../../../resources/assets/lib/css/html";

.page-container {
  .pages {
    a:hover {
      color: @mainColor;
      border-color: @mainColor;
    }
  }
}

// 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 {
    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改造部分

.pb-text-primary {
  color: #2d7091 !important;
}

.pb-text-success {
  color: #659f13 !important;
}

.pb-text-warning {
  color: #e28327 !important;
}

.pb-text-danger {
  color: #d85030 !important;
}

.pb-text-muted {
  color: #999 !important;
}

html, body {
  background: #EEE;
  color: #333;
  font-size: 14px;
  &.locked {
    ovflow: hidden;
  }
}

.pb {
  margin: 10px 0 0 0;
  background: #FFF;
  .head {
    color: #666;
    padding: 10px;
    border-bottom: 1px solid #EEE;
  }
  .body {
  }
}

.pb-event-list {
  background: none;
  .head {
    text-align: center;
    font-size: 18px;
  }
  .empty {
    text-align: center;
    line-height: 100px;
    color: #999;
  }
  .item {
    display: block;
    background: #FFF;
    margin: 10px 0 0 0;
    position: relative;
    .cover {
      background: #FFF no-repeat center;
      background-size: cover;
      overflow: hidden;
      &:after {
        content: '';
        display: block;
        margin-top: 50%;
      }
    }
    .title {
      background: rgba(0, 0, 0, 0.5);
      color: #FFF;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      line-height: 30px;
      padding: 0 10px;
    }
  }
}

.pb-home-search {
  padding: 5px;
  .mui-placeholder {
    font-size: 14px;
  }
  input {
    margin-bottom: 0;
  }
}

.pb-event-basic {
  background: #FFF;
  .images {
    .swiper-slide {
      display: block;
      background-repeat: no-repeat;
      background-size: cover;
      background-color: #FFF;
      background-position: center;
      &:after {
        content: '';
        display: block;
        margin-top: 50%;
      }
    }
    .swiper-pagination {
      .swiper-pagination-bullet-active {
        background: rgba(255, 255, 255, 1);
      }
    }
  }
  h1 {
    font-size: 18px;
    margin: 0;
    padding: 10px;
  }
  .info {
    padding: 0 0 0 10px;
    .attr {
      padding: 5px 0 5px 80px;
      border-top: 1px solid #EEE;
      .name {
        float: left;
        margin: 0 0 0 -80px;
        color: #999;
      }
      .value {
      }
    }
  }
}

.pb-event-action {
  padding: 10px;
  background: #FFF;
  position: fixed;
  bottom: 0;
  right: 0px;
  left: 0px;
  border-top: 1px solid #CCC;
  a, div {
    background: @mainColor;
    color: #FFF;
    display: block;
    text-align: center;
    border-radius: 3px;
    line-height: 40px;
    &.disabled {
      background: #999;
      color: #FFF;
    }
  }
}

.pb-event-detail {
  .content {
    padding: 10px;
  }
}

.pb-event-submit-dialog {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9;
  .mask {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    .content {
      background: #FFF;
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      overflow: auto;
      max-height: 90%;
      .title {
        text-align: center;
        .close {
          float: right;
          font-size: 20px;
          line-height: 40px;
          width: 40px;
          display: block;
          color: #999;
        }
        h2 {
          font-size: 16px;
          color: @mainColor;
          line-height: 40px;
        }
      }
      .apply-field {
        width: 100%;
        padding: 10px;
        .line {
          .label {
            color: #999;
          }
          .field {
            input, select {
              border: 1px solid #EEE !important;
            }
          }
        }
      }
      .action {
        padding: 10px;
        button {
          background: @mainColor;
          color: #FFF;
          display: block;
          text-align: center;
          border-radius: 3px;
          line-height: 40px;
          border: none;
          width: 100%;
          padding: 0;
        }
      }
    }
  }
}

.pb-home-banner {
  .swiper-slide {
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #FFF;
    background-position: center;
    &:after {
      content: '';
      display: block;
      margin-top: 50%;
    }
  }
  .swiper-pagination {
    .swiper-pagination-bullet-active {
      background: rgba(255, 255, 255, 1);
    }
  }
}

.pb-member-home-head {
  padding: 0;
  margin: 0;
  .body {
    padding: 40px 0;
    background: linear-gradient(@mainColor, darken(@mainColor, 10%));
    position: relative;
    .logout {
      position: absolute;
      right: 10px;
      top: 10px;
      color: #FFF;
    }
    .avatar {
      text-align: center;
      display: block;
      img {
        background: #EEE;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 2px solid #FFF;
        border-color: rgba(255, 255, 255, 0.5);
      }
    }
    .name {
      text-align: center;
      color: #FFF;
      padding-top: 10px;
    }
    .assets {
      color: #FFF;
      font-size: 10px;
      line-height: 16px;
      padding-top: 15px;
      .credit {
        text-align: center;
      }
    }
  }
}

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

.pb-center-link {
  text-align: center;
  padding: 20px 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-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-category-filter {
  background: #FFF;
  padding: 15px 0;
  .filter {
    padding-left: 60px;
    .label {
      float: left;
      margin: 0 0 0 -60px;
      font-weight: bold;
      color: #666;
      line-height: 30px;
      padding: 0 0 0 10px;
    }
    .value {
      a {
        line-height: 30px;
        display: inline-block;
        color: #333;
        padding: 0 10px;
        border-radius: 3px;
        &.active {
          color: @mainColor;
        }
      }
    }
  }
}

.pb-member-home-order {
  margin-top: 0;
  .head {
    padding: 10px;
    color: #999;
  }
  .body {
    background: #FFF;
    overflow: hidden;
    a {
      display: block;
      text-align: center;
      width: 33%;
      float: left;
      padding: 10px 0;
      i {
        display: block;
        font-size: 30px;
        line-height: 40px;
        color: #999;
      }
      span {
        display: block;
        color: #666;
      }
    }
  }
}

.pb-member-order-list {
  .list-box {
    .empty {
      line-height: 100px;
      color: #999;
      text-align: center;
    }
    .item {
      margin: 10px 0;
      background: #FFF;
      .head {
        padding: 10px;
        color: #333;
        .status {
          float: right;
        }
      }
      .event {
        background: #F8F8F8;
        padding: 10px 10px 10px 50px;
        display: block;
        overflow: hidden;
        .cover {
          width: 40px;
          height: 40px;
          float: left;
          margin-left: -40px;
          border-radius: 3px;
          border: 1px solid #CCC;
          background: #FFF no-repeat center;
          background-size: cover;
        }
        .title {
          padding: 0 0 0 10px;
          color: #333;
          font-size: 12px;
          height: 40px;
          line-height: 20px;
          overflow: hidden;
        }
        .buyInfo {
          padding: 0 0 0 10px;
          font-size: 12px;
          color: #999;
          line-height: 16px;
        }
      }
      .attr {
        padding: 10px;
        color: #999;
        .time {
          float: right;
        }
        .fee {
          color: @mainColor;
        }
      }
      .action {
        text-align: right;
        line-height: 20px;
        padding: 10px;
        border-top: 1px solid #EEE;
        a {
          display: inline-block;
          overflow: hidden;
          background: #FFF;
          padding: 0 5px;
          border-radius: 3px;
          color: #666;
          border: 1px solid #999;
          line-height: 20px;
          vertical-align: middle;
          &.main {
            border: 1px solid @mainColor;
            color: @mainColor;
          }
        }
      }
    }
  }
}

.pb-member-order-pay {
  .pay-list {
    background: #FFF;
    margin-top: 10px;
    a {
      display: block;
      line-height: 50px;
      border-top: 1px solid #EEE;
      border-bottom: 1px solid #EEE;
      padding: 0 10px;
      color: #333;
      img {
        width: 20px;
        height: 20px;
        vertical-align: middle;
      }
      .check {
        float: right;
        color: @mainColor;
        display: none;
      }
      &.cur {
        .check {
          display: block;
        }
      }
    }
  }
}

.pb-member-order-pay-submit {
  position: fixed;
  left: 0px;
  right: 0px;
  bottom: 0px;
  a {
    display: block;
    margin: 0;
  }
}

