@use "base";

ul, li {
  list-style: none; /* 移除项目符号（如圆点、数字等） */
  margin: 0; /* 清除默认外边距 */
  padding: 0; /* 清除默认内边距 */
}

// 重置样式
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none!important;
}

body {
  height: 100%;
  font-family: PingFangSC, PingFang SC, sans-serif;

  color: base.$text-primary;
  background-color: base.$background-color-base;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html{
  font-size: 16px;
}
@media screen and (max-width: 1920px) {
  html {
    font-size: 16px; // 适配 1920px 宽度的标准稿
  }
}
@media screen and (max-width: 1600px) {
  html {
    font-size: 14px; // 更小的字体以适配较小屏幕
  }
}
@media screen and (max-width: 1440px) {
  html {
    font-size: 12px; // 更小的字体以适配较小屏幕
  }
}
#app {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

html {

}

body {
  background-color: base.$background-color-base;
}

.center-wrapper {
  @include base.center-wrapper;
}

.container-wrapper {
  height: 100%;
  background-color: #fff;
  @include base.center-wrapper;
  //@include base.padding;
}

.space {
  @include base.space;
}

.container-wrapper_flex {
  @include base.center-wrapper;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.content-wrapper {
  flex: 1;
  overflow: auto;
  width: 100%;
  @include base.padding;
  @include base.border-radius;
  @include base.box-shadow;
  margin-top: 10px;
  min-height: 0;
}

// 清除圆角
.clear-border-radius {
  border-radius: 0;
}

// 清除背景色
.clear-background-color {
  background-color: transparent;
}

// 清除内边距
.clear-padding {
  padding: 0;
}

// 清除外边距
.clear-margin {
  margin: 0;
}
.el-popper.is-light.type-popper{
  padding: 0;
}
.el-popper.is-light.id-code-popper{
  width: 218px;
  border-radius: 8px;
  padding:0;
  border: 1px solid #EAEAEC;
}
.el-popper.is-light.traceability{
  padding:0;
  border: 1px solid #EAEAEC;
}
.el-popper.is-light.id-code-popper .el-popover__title{
  height: 35px;
  line-height: 35px;
  margin-bottom: 0;
  font-size: 14px;
  padding-left:24px;
  background:#F5FAFF;
  border-radius: 8px 8px 0 0;
}
$btn-color: #4D6DE4;
$lighter-color: rgba(#4D6DE4, 0.5);
.default-btn{
  cursor: pointer;
  display: inline-block;
  width: 120px;
  height: 42px;
  line-height: 42px;
  background: $btn-color;
  border-radius: 6px;
  color: #FFF;
  font-size: 16px;
  text-align: center;
  margin-left: 9px;
  &:hover{
    background: $lighter-color;
  }
}
.default-close-btn{
  cursor: pointer;
  display: inline-block;
  width: 119px;
  height: 42px;
  line-height: 42px;
  background: #fff;
  border-radius: 6px;
  color: #333333;
  font-size: 16px;
  text-align: center;
  margin-left: 9px;
  border:1px solid #D8D8D8;
  &:hover{
    background: $lighter-color;
    color: #fff;
    border:none;
  }
}

.small-btn{
    cursor: pointer;
    display: inline-block;
    line-height: 1;
    background: $btn-color;
    border-radius: 4px;
    color: #FFF;
    font-size: 14px;
    text-align: center;
    margin-left: 9px;
    padding: 8px 15px;
    &:hover{
      background: $lighter-color;
    }
}

.danger-btn{
  cursor: pointer;
  display: inline-block;
  line-height: 1;
  background: #EB5757;
  border-radius: 4px;
  color: #FFF;
  font-size: 14px;
  text-align: center;
  margin-left: 9px;
  padding: 8px 15px;
  &:hover{
    background:  rgba(#EB5757, 0.5);
  }
}
.close-btn{
  cursor: pointer;
  display: inline-block;
  line-height: 1;
  background: #fff;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  text-align: center;
  margin-left: 9px;
  padding: 7px 14px;
  border:1px solid #D8D8D8;
  &:hover{
    background:  rgba(#4D6DE4, 0.5);
    color: #fff;
    border:1px solid rgba(#4D6DE4, 0.5);
  }
}
