@use "./themes.scss";
@use "./element-plus/index.scss";
@use "./custom.css";

// 全局变量
:root {
  // 头部宽度（默认自适应宽度，可固定宽度，固定宽度后为居中显示）
  --g-header-width: 100%;
  // 头部高度
  --g-header-height: 70px;
  // 侧边栏宽度
  --g-main-sidebar-width: 70px;
  --g-sub-sidebar-width: 220px;
  // 侧边栏Logo高度
  --g-sidebar-logo-height: 50px;
  // 顶栏高度
  --g-topbar-height: 50px;
}
// 全局样式
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(0 0 0 / 40%);
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgb(0 0 0 / 50%);
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  box-sizing: border-box;
  font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;

  &.overflow-hidden {
    overflow: hidden;
  }
}

* {
  box-sizing: inherit;
}
// 右侧内容区针对fixed元素，有横向铺满的需求，可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
  position: fixed;
  left: 50%;
  right: 0;
  width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
  transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}

[data-mode="mobile"] {
  [data-fixed-calc-width] {
    width: 100% !important;
    transform: translateX(-50%) !important;
  }
}
// textarea 字体跟随系统
textarea {
  font-family: inherit;
}
// 列表页全局样式
.el-table.list-table {
  margin: 20px 0;

  .el-button + .el-dropdown {
    margin-left: 10px;
  }
}

.el-loading-mask {
  z-index: 900 !important;
}

.notice {
  .banner {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    border-radius: 6px;
    background-image: url("https://chevereto.jiangly.com/images/2023/11/12/nine_banner.png");
  }

  .tag {
    padding: 3px 10px;
    display: flex;
    font-size: 14px;
    justify-content: center;
    align-items: center;
    background: #6692f5;
    border-radius: 8px;
    opacity: 0.8;
    color: #fff;
    margin-right: 10px;
    user-select: none;
  }

  .title {
    user-select: none;
    font-size: 2.5rem;
    font-family: "PingFang SC-Bold", "PingFang SC";
    color: #fff;
    text-shadow: 0 3px 3px rgb(0 0 0 / 10%);
    position: absolute;
    left: 50px;
    top: 70px;
    background-clip: text;
  }

  .subtitle {
    position: absolute;
    left: 50px;
    top: 140px;
  }

  .info {
    font-weight: 400;
    color: #fff;
    margin-right: 10px;
    user-select: none;
  }

  .message {
    font-size: 20px;
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brage {
    width: 4px;
    height: 18px;
    background: #6692f5;
    border-radius: 6px;
    margin-right: 10px;
  }

  .notice-text {
    color: #999 !important;
    margin-top: 10px;
    padding-left: 15px;
    font-size: 16px;
  }

  .author-info {
    color: #999 !important;
    margin-top: 10px;
    padding-left: 15px;
    font-size: 16px;
  }

  .red {
    color: red;
  }

  .notice_block {
    // border: 1px solid rgb(156 145 145);
    box-shadow: 0 8px 10px 1px rgb(0 0 0 / 16.1%);
    border-radius: 6px;
    padding: 10px;
    margin-top: 25px;
  }
}
