* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 14px;
  // user-select: none;
}

body {
  font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB',
    'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
  height: 100%;
  color: black;
}

i {
  font-style: normal;
}

img {
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
  // object-fit: cover;
}

ul {
  list-style: none;
}

body {
  overflow: auto;
  overflow-y: overlay;
}

/* 文本域取消下拉 */
textarea {
  resize: none !important;
  min-height: 100px !important;
}

/* 主题色 */
:root {
  --themeColor: #4c7f7a;
  --themeColor2: #d3b453;
}

/* 找不到页面 */
.noFindPage {
  opacity: 0;
  transition: opacity 0.5s;
}

/* 兼容360浏览器的下拉框 */
.ant-select-selector {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

// 气泡框闪烁问题
.ant-popconfirm {
  width: 240px;
}

// 重置antd样式
#root {
  width: 100vw;
  height: 100vh;
  min-width: 1600px;
  min-height: 900px;
  overflow: auto;
  overflow-y: overlay;

  a {
    text-decoration: none;
    color: black;
    outline: none;
  }

  // ？的提示
  .iconHoverTit {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .iconHoverTitTxt {
    background-color: var(--themeColor);
    color: #fff;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 12px;
    border-radius: 50%;
  }

  // a {
  //   color: var(--themeColor);
  // }

  /* 普通文字按钮的颜色 */
  .ant-btn-text {
    color: var(--themeColor);
  }

  .ant-btn-text:disabled {
    cursor: not-allowed;
    color: rgba(0, 0, 0, 0.25);
  }

  /* 按钮的危险颜色 */
  .ant-btn-text.ant-btn-dangerous {
    color: #ff4d4d;
  }

  /* antd分页器样式 */
  // .ant-pagination .ant-pagination-item {
  //   border-radius: 50%;
  //   border: 1px solid #999;
  //   background-color: transparent !important;
  // }

  // .ant-pagination .ant-pagination-item-active {
  //   background-color: var(--themeColor) !important;
  // }

  // .ant-pagination .ant-pagination-item-active a {
  //   color: #fff !important;
  // }

  // .ant-pagination .ant-pagination-item:hover {
  //   background-color: var(--themeColor) !important;
  // }

  // .ant-pagination .ant-pagination-item:hover a {
  //   color: #fff !important;
  // }

  // .ant-pagination-prev {
  //   border-radius: 50% !important;
  //   border: 1px solid #999;
  // }

  // .ant-pagination-prev:hover {
  //   background-color: var(--themeColor);
  // }

  // .ant-pagination-prev:hover button {
  //   color: #fff;
  // }

  // .ant-pagination-next {
  //   border-radius: 50% !important;
  //   border: 1px solid #999;
  // }

  // .ant-pagination-next:hover {
  //   background-color: var(--themeColor);
  // }

  // .ant-pagination-next:hover button {
  //   color: #fff;
  // }

  // .ant-pagination-disabled {
  //   border: 1px solid #ccc;
  // }

  // .ant-pagination-disabled:hover {
  //   background-color: transparent;
  // }

  /* 表格的图片居中 */
  .tableImgAuto {
    display: flex;
    justify-content: center;
    .TvideoBox {
      cursor: pointer;
      width: 60px;
      height: 60px;
      position: relative;
      .TvideoBoxLook {
        position: absolute;
        z-index: 10;
        opacity: 0;
        transition: opacity 0.3s;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14px;
        color: #fff;
        background-color: rgba(0, 0, 0, 0.6);
        .anticon-eye {
          font-size: 18px;
        }
      }
      video {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      &:hover {
        .TvideoBoxLook {
          opacity: 1;
        }
      }
    }
  }

  /* antd图片预览组件 */
  .ant-image {
    display: none;
  }

  /* antd表格居中 */

  .ant-table-cell {
    text-align: center !important;
  }

  // 树型 表格 定制化
  #A2Table3 {
    .ant-table-row-expand-icon {
      background-color: var(--themeColor);
      color: #fff;
    }

    .ant-table-cell-with-append {
      display: flex;
      justify-content: flex-start;
    }
  }
}

[hidden] {
  display: none !important;
}

#upInput {
  display: none;
}

#upInput2 {
  display: none;
}

#upInputAudio {
  display: none;
}

// 页面标题
.pageTitle {
  font-size: 18px;
  font-weight: 700;
  position: absolute;
  z-index: 11;
  top: -56px;
  left: -18px;
  padding-left: 40px;

  &::before {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    content: '';
    width: 6px;
    height: 20px;
    background-color: var(--themeColor);
  }
}

// 滚动条
.mySorrl::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 5px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 1px;
}

.mySorrl::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 5px transparent;
  background: var(--themeColor);
}

.mySorrl::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  -webkit-box-shadow: inset 0 0 5px transparent;
  border-radius: 10px;
  background: transparent;
}
.ant-image-preview-operations {
  background-color: rgba(0, 0, 0, 0.8) !important;
}
.ant-image-preview-mask {
  z-index: 10000 !important;
}
.ant-image-preview-wrap {
  z-index: 10001 !important;
}
.ant-image-preview-operations-wrapper {
  z-index: 10002 !important;
}

// .ant-notification-notice {
//   max-height: 500px !important;
//   overflow-y: auto !important;
// }

// 热点页面打开透明的变化
// #Y1cathet {
//   animation: Y1cathet 0.5s linear forwards;
// }
// @keyframes Y1cathet {
//   0% {
//     right: -700px;
//   }

//   100% {
//     right: 0;
//   }
// }

.Y2xia {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
}

// 打开侧边栏高亮
.D1GtNum {
  cursor: pointer;
  text-decoration: underline;
  // &:hover {
  //   color: var(--themeColor);
  // }
}

.D1GtNumAc {
  color: var(--themeColor);
}

// 侧边栏藏品详情
.Y1info {
  width: 100%;
  margin-top: 5px;
  height: calc(100% - 35px);
  font-size: 16px;
  padding: 15px;
  overflow-y: auto;
  .Y1tit {
    font-size: 18px;
    padding-left: 15px;
    font-weight: 700;
    position: relative;
    margin-bottom: 15px;
    color: var(--themeColor);
    &::before {
      position: absolute;
      left: 0px;
      top: 50%;
      transform: translateY(-50%);
      content: '';
      width: 6px;
      height: 18px;
      background-color: var(--themeColor);
    }
  }

  .Y1row {
    width: 100%;
    display: flex;
    margin-bottom: 10px;
    .Y1rowll {
      width: 120px;
      text-align: right;
      font-weight: 700;
    }
    .Y1rowrr {
      width: calc(100% - 120px);
      word-wrap: break-word;
      max-height: 130px;
      overflow-y: auto;
      white-space: pre-wrap;
    }
  }

  // ------------------------档案信息
  .Y1rowZ {
    .Y1z1 {
      margin-bottom: 20px;
      display: flex;
      justify-content: space-between;
      .Y1rowZll {
        width: 48%;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }
      .Y1rowZrr {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 48%;
      }
    }

    .Y1z2 {
      margin-bottom: 20px;
      .y1z2_1 {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        .y1z2_1row1 {
          margin-bottom: 10px;
          width: 48%;
          display: flex;
          .y1z2_1r11 {
            width: 120px;
            text-align: right;
            font-weight: 700;
          }
          .y1z2_1r11long {
            width: 132px;
            position: relative;
            left: -6px;
          }
          .y1z2_1r12 {
            width: calc(100% - 120px);
            word-wrap: break-word;
            max-height: 130px;
            overflow-y: auto;
            white-space: pre-wrap;
          }
        }
        .y1z2_1row1Full {
          width: 100%;
          .y1z2_1r12 {
            max-height: 1000px;
          }
        }
      }
    }
  }

  // ------------------------库存信息
  .Y22com {
    .Y22sta {
      font-weight: 700;
      font-size: 18px;
      margin-bottom: 20px;
    }
    .Y22No {
      font-size: 16px;
      letter-spacing: 4px;
      height: 200px;
      display: flex;
      align-items: center;
    }
    .Y22Info {
      width: 800px;
      border: 1px solid #ccc;
      border-bottom: none;
      .Y22row {
        display: flex;
        align-items: center;
        & > div {
          width: 200px;
          text-align: center;
          padding: 8px 4px;
          border-bottom: 1px solid #ccc;
          &:nth-of-type(2) {
            width: 600px;
          }
        }
      }
      .Y22row1 {
        background-color: #eaeaea;
      }
      .Y22rowNo {
        height: 40px;
        line-height: 40px;
        text-align: center;
        border-bottom: 1px solid #ccc;
      }
    }
  }

  // ------------------------藏品附件
  .Y33com {
    .Y33top {
      margin-bottom: 20px;
      display: flex;
      justify-content: space-around;
      .ant-btn {
        margin-right: 15px;
      }
    }
    .Y33no {
      font-size: 16px;
      letter-spacing: 4px;
      height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}

// 点击藏品编辑
.C22revampBox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.6);
  & > div {
    position: relative;
    width: 100%;
    height: 100%;
  }
}
