html,
body,
#root {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: transparent !important;
}

div {
  line-height: 1;
  font-family: "PingFang SC", "思源黑体", "微软雅黑", "Microsoft YaHei", "Arial", "sans-serif";
}

/* 组件的基础样式 */
.g__component {
  position: relative;
  width: 100%;
  height: 100%;

  &--has-title {
    margin-top: 60px;
    height: calc(100% - 60px);
  }
}

/* 组件用的浮动样式 */
.g__float {
  position: absolute;
  right: 30px;
  top: -20px;
  font-size: 16px;
  color: #e5e5e5;
  cursor: pointer;
}

/* 页面的基础样式 */
.g__page {
  position: relative;
  margin-top: 2px;
  box-sizing: border-box;
  width: 100%;
  height: calc(100% - 2px);
  overflow: auto;
}

/* 页面的带边框的盒子 */
.g__box {
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.04);

  &--radius {
    border-radius: 8px;
  }
}

/* 页面的带边框不带背景色的盒子 */
.g__box__border {
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.18);

  &--radius {
    border-radius: 8px;
  }
}

/* 页面标签 */
.g__tag {
  margin-left: 10px;
  box-sizing: border-box;
  width: 84px;
  height: 26px;
  line-height: 26px;
  font-size: 18px;
  border-radius: 4px;
  text-align: center;

  &--accept-reserv {
    color: #1fb5f9;
    border: 1px solid #1fb5f9;
  }

  &--accept-sample {
    color: #fdb82c;
    border: 1px solid #fdb82c;
  }
}

/* 超出文字省略号显示 */
.g__text-overflow {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}