* {
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-drag: none;
  user-select: none;
}

// HarmonyOS Sans
html,
body,
#app {
  -webkit-font-smoothing: antialiased;
  font-family: "HarmonyOS_Regular", sans-serif !important;
}

// Dialog
.s-dialog {
  border-radius: 8px;
  .n-dialog__close {
    margin: 16px 26px 0 0;
  }

  .n-dialog__title {
    transform: translateX(-8px);
    font-size: 18px;
    // font-weight: bold;

    i {
      font-size: 24px;
      // transform: translateY(-1px);
    }
  }
}

// Modal
.s-modal {
  width: 60vw;
  max-width: 700px;
  min-width: min(24rem, 100vw);
  border-radius: 8px;
  &.close {
    .n-card-header {
      .n-base-close {
        display: none;
      }
    }
  }
  .n-card-header {
    .n-card-header__main {
      font-size: 18px;
    }
  }
  .n-card__content {
    padding-right: 28px;
  }
  .n-scrollbar {
    max-height: 60vh;
    font-size: 16px;
    line-height: 32px;
  }
}
.n-modal-container {
  // z-index: 2006 !important;
  .n-modal-body-wrapper {
    .n-modal-mask {
      -webkit-backdrop-filter: blur(16px);
      backdrop-filter: blur(16px);
    }
  }
}

// Nscrollbar
.n-scrollbar {
  .n-scrollbar-rail {
    right: 0 !important;
  }
}

// Dropdown
.n-dropdown-menu {
  border-radius: 8px !important;
}

// Tab
.main-tab {
  .n-tabs-tab {
    &.n-tabs-tab--active {
      font-weight: bold !important;
      transition: all 0.3s;
    }
  }
}

// Notification
.n-notification {
  border-radius: 8px !important;
}

// Nalert
.n-alert {
  border-radius: 8px !important;
}

// Drawer
.n-drawer-container {
  .n-drawer {
    border-radius: 8px 0 0 8px;
    transition: all 0.3s;
    @media (max-width: 450px) {
      width: 100% !important;
      border-radius: 0;
    }
  }
}

// NSlider
.n-slider {
  &:hover {
    .n-slider-rail {
      .n-slider-rail__fill {
        background-color: var(--main-color);
      }
    }
  }
  .n-slider-rail {
    .n-slider-rail__fill {
      background-color: var(--main-color);
    }
  }
}

// 文本超出隐藏
.text-hidden {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  word-break: break-all;
}

// 响应式布局
@mixin changeWidth($padding: 10vw) {
  .n-layout-header {
    padding: 0 $padding;
  }

  .n-layout-content {
    .main {
      padding: 24px $padding 54px $padding;
      .player {
        padding: 0 $padding;
      }
    }
  }
}

@include changeWidth;

/* 小于1200px时 */
@media (max-width: 1200px) {
  @include changeWidth($padding: 5vw);
}
