/* 基本样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body,
#app {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        Segoe UI,
        PingFang SC,
        Hiragino Sans GB,
        Microsoft YaHei,
        sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    background-color: var(--ba-bg-color);
    color: var(--el-text-color-primary);
    font-size: var(--el-font-size-base);
}

html {
    text-rendering: optimizeLegibility;
}

html,
body {
    overscroll-behavior: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.38);
    outline-offset: 2px;
}

::selection {
    background: rgba(37, 99, 235, 0.18);
}

// 阿里 iconfont Symbol引用css
.iconfont-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.w100 {
    width: 100% !important;
}
.h100 {
    height: 100% !important;
}
.ba-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-main {
    margin: var(--ba-main-space) var(--ba-main-space) 64px var(--ba-main-space);
}
.zoom-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    bottom: -10px;
    right: -10px;
    cursor: se-resize;
}
.block-help {
    display: block;
    width: 100%;
    color: var(--ba-text-muted);
    font-size: 13px;
    line-height: 1.45;
    padding-top: 6px;
}

/* 表格顶部菜单-s */
.table-header {
    .table-header-operate .icon {
        font-size: 14px !important;
        color: var(--el-color-white) !important;
    }
    .el-button.is-disabled .icon {
        color: var(--el-button-disabled-text-color) !important;
    }
}
/* 表格顶部菜单-e */

/* 鼠标置入浮动效果-s */
.suspension {
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease;
}
.suspension:hover {
    -webkit-transform: translateY(-4px) scale(1.02);
    -moz-transform: translateY(-4px) scale(1.02);
    -ms-transform: translateY(-4px) scale(1.02);
    -o-transform: translateY(-4px) scale(1.02);
    transform: translateY(-4px) scale(1.02);
    -webkit-box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    z-index: 2147483600;
    border-radius: var(--ba-radius-panel);
}
/* 鼠标置入浮动效果-e */

/* 表格-s */
.ba-table-box {
    border-radius: var(--ba-radius-panel);
    overflow: hidden;
    background: var(--ba-bg-color-overlay);
    box-shadow: var(--ba-shadow-card);
}
.ba-table-alert {
    background-color: var(--ba-bg-color-soft) !important;
    border: 1px solid var(--ba-border-color);
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
/* 表格-e */

/* 新增/编辑表单-s */
.ba-operate-dialog {
    overflow: hidden;
    border-radius: var(--ba-radius-panel);
    padding-bottom: 58px;
}
.ba-operate-dialog .el-dialog__header {
    border-bottom: 1px solid var(--ba-border-color-soft);
    padding: 18px 22px;
    .el-dialog__headerbtn {
        top: 8px;
    }
}
.ba-operate-dialog .el-dialog__body {
    height: 58vh;
    padding: 20px 22px;
}
.ba-operate-dialog .el-dialog__footer {
    padding: 12px 22px;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    background: var(--ba-bg-color-overlay);
}
.ba-operate-form {
    padding-top: 16px;
}
/* 新增/编辑表单-e */

/* 全局遮罩-s */
.ba-layout-shade {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100vw;
    background-color: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
    z-index: 2147483599;
}
/* 全局遮罩-e */

/* 图片上传预览-s */
.img-preview-dialog .el-dialog__body {
    display: flex;
    align-items: center;
    justify-content: center;
    img {
        max-width: 100%;
    }
}
/* 图片上传预览-e */

/* 页面切换动画-s */
.slide-right-enter-active,
.slide-right-leave-active,
.slide-left-enter-active,
.slide-left-leave-active {
    will-change: transform;
    transition:
        transform 0.22s ease,
        opacity 0.22s ease;
}
// slide-right
.slide-right-enter-from {
    opacity: 0;
    transform: translateX(-20px);
}
.slide-right-leave-to {
    opacity: 0;
    transform: translateX(20px);
}
// slide-left
.slide-left-enter-from {
    @extend .slide-right-leave-to;
}
.slide-left-leave-to {
    @extend .slide-right-enter-from;
}
/* 页面切换动画-e */

/* 布局相关-s */
.frontend-footer-brother {
    min-height: calc(100vh - 120px);
}
.user-views {
    padding-left: var(--ba-main-space);
    .user-views-card {
        margin-bottom: var(--ba-main-space);
    }
}
.ba-aside-drawer {
    .el-drawer__body {
        padding: 0;
    }
}
/* 布局相关-e */

/* 暗黑模式公共样式-s */
.ba-icon-dark {
    color: var(--el-text-color-primary) !important;
}
/* 暗黑模式公共样式-e */

/* NProgress-s */
#nprogress {
    .bar,
    .spinner {
        z-index: 2147483600;
    }
}
/* NProgress-e */

/* 自适应-s */
@media screen and (max-width: 768px) {
    .xs-hidden {
        display: none;
    }
    .default-main {
        margin: 12px 12px 48px 12px;
    }
}
@media screen and (max-width: 1024px) {
    .ba-operate-dialog {
        width: 96%;
    }
}
@media screen and (max-width: 991px) {
    .user-views {
        padding: 0;
    }
}
/* 自适应-e */
