@import '~antd/es/style/themes/default.less';
@pro-header-hover-bg: rgba(0, 0, 0, 0.025);

.menu {
  :global(.@{ant-prefix}icon) {
    margin-right: 8px;
  }
  :global(.@{ant-prefix}-dropdown-menu-item) {
    min-width: 160px;
  }
}

.right {
  display: flex;
  float: right;
  height: 46px;
  margin-left: auto;
  overflow: hidden;
  .action {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 9px;
    cursor: pointer;
    transition: all 0.3s;
    > span {
      vertical-align: middle;
      margin: 0 8px 0 0!important;
    }
    &:hover {
      background: @pro-header-hover-bg;
    }
    &:global(.opened) {
      background: @pro-header-hover-bg;
    }
  }
  .search {
    padding: 0 12px;
    &:hover {
      background: transparent;
    }
  }
  .account {
    .avatar {
      margin: ~'calc((@{layout-header-height} - 24px) / 2)' 0;
      // margin-right: 8px;
      color: @primary-color;
      vertical-align: top;
      background: rgba(255, 255, 255, 0.85);
      width: 36px;
      height: 36px;
      border-radius: 50%;
      box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
      transition: box-shadow 0.1s linear, opacity 0.4s linear;
      background-position: center;
      overflow: hidden;
    }
  }
}

.dark {
  .action {
    color: rgba(255, 255, 255, 0.85);
    > span {
      color: rgba(255, 255, 255, 0.85);
    }
    &:hover,
    &:global(.opened) {
      background: @primary-color;
    }
  }
}
.userWrapper {
  .userInfo {
    background-color: #fff;
    width: 300px;
    position: absolute;
    right: 0;
    top: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    .header {
      width: 100%;
      height: 80px;
      position: relative;
      background: #40b3f7;
      padding: 14px 12px;
      display: flex;
      border-top-left-radius: 6px;
      border-top-right-radius: 6px;
      .avatar {
        display: inline-block;
        width: 52px;
        height: 52px;
        border: 2px solid #fff;
        background-color: #fff;
        border-radius: 50%;
        background-size: 100%;
        background-repeat: no-repeat;
        background-position: center center;
        background-position: center;
        cursor: pointer;
      }
      .name {
        display: inline-block;
        width: 214px;
        font-size: 18px;
        color: #fff;
        font-weight: bold;
        padding: 14px;
      }
    }
    .body {
      .item {
        border-bottom: 1px solid #e0e0e0;
        ul {
          padding: 0 12px;
          list-style: none;
          margin: 0;
          li {
            height: 40px;
            line-height: 42px;
            border-bottom: 1px dashed #eee;
            position: relative;
            text-indent: 3px;
            overflow: hidden;
            width: 100%;
            font-size: 12px;
            font-weight: 100;
            span.label {
              padding: 0 2px;
              max-width: 200px;
            }
            span.value {
              padding: 0 2px;
              max-width: 200px;
            }
          }
        }
      }
      .exit {
        height: 30px;
        line-height: 30px;
        text-align: right;
        padding: 0 10px;
        a {
          color: #777;
          text-decoration: none;
          margin: 0 5px;
          &:hover {
            color: @primary-7;
          }
        }
      }
    }
  }
}
.nav {
  display: flex;
  align-items: center;
  span {
    &:first-child {
      margin-right: 20px;
      margin-left: 20px;
    }
    svg {
      transform: scale(0.88);
    }
  }
  .item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    height: 100%;
    padding: 0 16px;
    cursor: pointer;
    transition: border-color .3s,background .3s,padding .1s cubic-bezier(.215,.61,.355,1);
    span:first-child {
      margin: 0 8px 0 0!important;
    }
    span:last-child {
      color: hsla(221, 100%, 95%, 0.7)
    }
    &:hover {
      background: transparent!important;
      path {
        fill: #FFFFFF!important;
      }
      span:last-child {
        color: #fff;
      }
    }
    &.active {
      background: rgba(22,133,255, 0.4)!important;
      path {
        fill: #FFFFFF!important;
      }
      span:last-child {
        color: #fff;
      }
    }
  }
}
.platformModal {
  //
  border-radius: 30px;
  :global {
    .@{ant-prefix}-modal-header {
      background: linear-gradient(
        90deg,
        rgba(255, 71, 93, 1) 0%,
        rgba(255, 104, 93, 1) 100%
      );
      padding: 8px 24px;
      .@{ant-prefix}-modal-title {
        color: #fff;
      }
    }

    .@{ant-prefix}-modal-close {
      color: #fff;
      .@{ant-prefix}-modal-close-x {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 14px;
      }
    }
    .@{ant-prefix}-list-items {
      .@{ant-prefix}-list-item-meta-description {
        div {
          b {
            color: rgba(255, 36, 36, 1);
          }
          &:first-child {
            color: #616f88;
          }
          &:last-child {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            span {
              &:last-child {
                font-weight: bold;
                color: rgba(51, 62, 81, 1);
              }
            }
          }
        }
      }
      .@{ant-prefix}-avatar-image {
        top: 10px;
        width: 63px;
        height: 63px;
        line-height: 63px;
      }
      .@{ant-prefix}-list-item-extra {
        cursor: pointer;
      }
    }
    .@{ant-prefix}-list-vertical {
      .@{ant-prefix}-list-pagination {
        .mini {
          .@{ant-prefix}-pagination-prev,
          .@{ant-prefix}-pagination-next {
            line-height: 5px;
          }
        }
      }
    }
  }
  .alarmContent {
    display: flex;
    flex-direction: row;
    flex: 1;
    padding: 10px;
    width: 100%;
    img {
      width: 63px;
      height: 63px;
      margin: 20px 20px 20px 0;
    }
    .content {
      display: flex;
      flex-direction: column;
      flex: 1;
      &-top {
        font-size: 20px;
        font-family: Source Han Sans CN;
        font-weight: 500;
        color: rgba(51, 62, 81, 1);
        line-height: 32px;
        display: flex;
        flex-direction: row;
        white-space: nowrap;
        justify-content: space-between;
        align-items: center;
        a {
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
          width: 60%;
        }
        span {
          width: 18px;
          height: 14px;
          margin: 17px 0;
          background: url(https://panda-water.com/web4/assets/images/message/已读-默认.svg)
            no-repeat center;
          background-size: 100% 100%;
          cursor: pointer;
        }
      }
      &-mid {
        font-size: 16px;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #616f88;
        line-height: 32px;
        b {
          color: rgba(255, 36, 36, 1);
        }
      }
      &-bottom {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        line-height: 32px;
        p {
          b {
            color: #ff2929;
          }
        }
        span {
          font-size: 16px;
          font-family: Source Han Sans CN;
          font-weight: bold;
          color: rgba(51, 62, 81, 1);
        }
      }
    }
  }
}
.videoPopup {
  :global(.@{ant-prefix}-modal-content) {
    height: 520px;
  }
  :global(.@{ant-prefix}-modal-header) {
    padding: 8px 24px;
  }
  :global(.@{ant-prefix}-modal-close-x) {
    width: 36px;
    height: 36px;
    line-height: 36px;
  }
  :global(.@{ant-prefix}-modal-body) {
    padding: 0;
    height: 100%;
    width: 100%;
  }
}

:global(.@{ant-prefix}-pro-global-header) {
  .dark {
    .action {
      color: @text-color;
      > span {
        color: @text-color;
      }
      &:hover {
        color: rgba(255, 255, 255, 0.85);
        > span {
          color: rgba(255, 255, 255, 0.85);
        }
      }
    }
  }
}

@media only screen and (max-width: @screen-md) {
  :global(.@{ant-prefix}-divider-vertical) {
    vertical-align: unset;
  }
  .name {
    display: none;
  }
  .right {
    position: absolute;
    top: 0;
    right: 12px;
    .account {
      .avatar {
        margin-right: 0;
      }
    }
    .search {
      display: none;
    }
  }
}
.updatePassword {
  :global(.@{ant-prefix}-modal-header) {
    padding: 10px 24px !important;
  }
  :global(.@{ant-prefix}-modal-close .@{ant-prefix}-modal-close-x) {
    width: 45px;
    height: 45px;
    font-size: 12px;
    line-height: 35px;
  }
  :global(.@{ant-prefix}-modal-body) {
    padding: 10px 24px;
  }
  :global(.@{ant-prefix}-modal-footer) {
    padding: 8px 12px;
  }
  :global(.@{ant-prefix}-modal-footer .@{ant-prefix}-btn) {
    line-height: 1.2px;
    height: 28px;
  }
}

.noticeModal {
  :global {
    .@{ant-prefix}-modal-body {
      padding: 10px 24px;
      b {
        float: right;
        text-align: right;
        display: block;
        &:last-child {
          float: inherit;
        }
      }
      .@{ant-prefix}-form-item {
        margin-bottom: 20px;
        padding-top: 4px;
      }
      .@{ant-prefix}-form-item {
        &:last-child {
          text-align: center;
        }
      }
    }
  }
  :global(.@{ant-prefix}-modal-header) {
    padding: 10px 24px !important;
  }
  :global(.@{ant-prefix}-modal-close .@{ant-prefix}-modal-close-x) {
    width: 45px;
    height: 45px;
    font-size: 12px;
    line-height: 35px;
  }
  .title {
    font-size: 20px;
    font-weight: bold;
  }
  .content {
    text-indent: 24px;
    padding-top: 4px;
  }
  .time {
    display: block;
    font-weight: 500;
    font-size: 16px;
    text-align: right;
  }
}

.newYearMessage {
  .topPopup-body {
    width: 876px;
    max-height: 90%;
    background: 0;
    box-shadow: none;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    .topPopup-title{
      width: 100%;
      height: 263px;
      flex: none;
      background: url(https://panda-water.com/web4/assets/images/message/%E8%83%8C%E6%99%AF%E4%B8%8A.png) center center no-repeat;
      background-size: 100% 100%;
      font-size: 40px;
      font-family: ZhenyanGB;
      font-weight: 400;
      color: #ffe59f;
      line-height: 60px;
      text-shadow: 0 3px 3px rgb(0 0 0 / 35%);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border-radius: 10px 10px 0 0;
      padding: 18px;
      > img {
        width: 40px;
        height: 40px;
        cursor: pointer;
        margin: 0 0 0 auto;
      }
      .newYearTitle {
        display: flex;
        flex-direction: row;
        justify-content: center;
        padding-bottom: 35px;
        > span {
          border-bottom: 2px solid;
          background-image: -webkit-linear-gradient(#fff2c3,#ffbd49);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
          text-shadow: none;
          font-size: 40px;
          line-height: 60px;
        }
        > img {
          width: 47px;
          height: 20px;
          margin: 27px 25px 0 25px;
        }
      }
    }
    .topPopup-content {
      display: flex;
      flex-direction: column;
      background: url(https://panda-water.com/web4/assets/images/message/%E8%83%8C%E6%99%AF%E4%B8%AD.png) center center no-repeat;
      background-size: 100% 100%;
      flex: 1;
      padding: 0 0 10px 0;
      overflow: hidden;
      margin-top: -30px;
      height: 230px;
      .content {
        display: flex;
        flex-direction: column;
        flex: 1;
        margin: 0 66px;
        overflow-y: auto;
        .content-mid {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 700;
          color: #fffaee;
          line-height: 28px;
          padding: 0 10px;
          b {
            font-weight: 600;
            float: right;
          }
          span {
             font-weight: 100;
          }

        }
        .content-bottom {
          display: flex;
          flex-direction: row-reverse;
          justify-content: space-between;
          line-height: 48px;
          padding: 0 5px;
          .message-time {
            color: #fffaee;
          }
        }
      }
    }
    .feedbackBox {
      flex: none;
      height: 304px;
      border-top: 0;
      padding: 10px 105px;
      background: url(https://panda-water.com/web4/assets/images/message/%E8%83%8C%E6%99%AF%E4%B8%8B.png) center center no-repeat;
      background-size: 100% 100%;
      .question {
        font-size: 15px;
        font-family: "Microsoft YaHei";
        font-weight: 400;
        color: #ffe59f;
        line-height: 26px;
        margin-bottom: 8px;
      }
      .horiztion {
        display: flex;
        width: 100%;
        :global {
          .ant-form-item {
            &:first-child {
              width: 55%;
            }
          }
          .ant-btn {
            border-color: transparent;
            background: url(https://panda-water.com/web4/assets/images/message/提交.png) center center / 100% 100% no-repeat;
            width: 249px;
            height: 51px;
            padding: 0;
            margin: -8px 0 0 10px;
          }
        }
      }
      :global {
        .ant-form {
          .ant-form-item {
            margin-bottom: 8px!important;
            .ant-input {
              border-radius: 4px!important;
              background: #FFFEEC!important;
              border: 1px solid #ffe59f;
              &:focus, &:hover {
                border-color: #ffe59f;
              }
            }
          }
        }

      }
    }
  }
  :global {
    .ant-modal-content {
      background-color: transparent!important;
      box-shadow: none!important;
      .ant-modal-close {
        display: none!important;
      }
    }
  }
}
