@use './mixin.scss';
@use './transition.scss';
@use './element-ui.scss';
@use './sidebar.scss';
@use './btn.scss';
@use './yushu.scss';

body {
  height: 100%;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

// 现代化弹窗样式 - 毛玻璃效果
.el-message {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  padding: 12px 20px !important;
  min-width: 300px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background: rgba(255, 255, 255, 0.85) !important;
  
  .el-message__content {
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #303133 !important;
  }
  
  .el-icon {
    margin-right: 8px !important;
    font-size: 18px !important;
  }
  
  &.el-message--success {
    background: rgba(240, 249, 235, 0.85) !important;
    border-color: rgba(103, 194, 58, 0.2) !important;
    .el-icon { color: #67c23a !important; }
    .el-message__content { color: #67c23a !important; }
  }
  
  &.el-message--warning {
    background: rgba(253, 246, 236, 0.85) !important;
    border-color: rgba(230, 162, 60, 0.2) !important;
    .el-icon { color: #e6a23c !important; }
    .el-message__content { color: #e6a23c !important; }
  }
  
  &.el-message--error {
    background: rgba(254, 240, 240, 0.85) !important;
    border-color: rgba(245, 108, 108, 0.2) !important;
    .el-icon { color: #f56c6c !important; }
    .el-message__content { color: #f56c6c !important; }
  }
  
  &.el-message--info {
    background: rgba(244, 244, 245, 0.85) !important;
    border-color: rgba(144, 147, 153, 0.2) !important;
    .el-icon { color: #909399 !important; }
    .el-message__content { color: #909399 !important; }
  }
}

// 现代化 Notification 样式 - 毛玻璃效果
.el-notification {
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
  padding: 16px 20px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  
  .el-notification__title {
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #303133 !important;
  }
  
  .el-notification__content {
    color: #606266 !important;
    font-size: 14px !important;
    margin-top: 8px !important;
  }
}

// 现代化 MessageBox 样式 - 毛玻璃效果
.el-message-box {
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  padding-bottom: 20px !important;
  
  .el-message-box__header {
    padding: 20px 24px 10px !important;
    .el-message-box__title {
      font-weight: 600 !important;
      font-size: 18px !important;
    }
  }
  
  .el-message-box__content {
    padding: 10px 24px 20px !important;
    font-size: 14px !important;
    color: #606266 !important;
  }
  
  .el-message-box__btns {
    padding: 10px 24px 0 !important;
    
    .el-button {
      border-radius: 6px !important;
      padding: 9px 20px !important;
      font-weight: 500 !important;
      
      &--primary {
        background-color: #409eff !important;
        border-color: #409eff !important;
        &:hover {
          background-color: #66b1ff !important;
          border-color: #66b1ff !important;
        }
      }
    }
  }
}
