/* 宽高 */
.w {
    width: 100%;
}
.h {
    height: 100%;
}
.m-h {
    min-height: 100%;
}
.v-h {
    height: 100vh;
}
.v-m-h {
    min-height: 100vh;
}

/**
 * 隐藏显示
*/
.hide {
    display: none !important;
}
.block {
    display: block !important;
}
.inline-block {
    display: inline-block;
}
.inline-flex {
    display: inline-flex;
}

.c-pointer {
    cursor: pointer;
}

/**
 * flex布局
*/
.flex {
    display: flex;
}
.flex-row {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
}
.flex-col {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.jc-sb {
    justify-content: space-between;
}
.jc-sa {
    justify-content: space-around;
}
.jc-c {
    justify-content: center;
}
.jc-s {
    justify-content: flex-start;
}
.jc-e {
    justify-content: flex-end;
}
.align-c {
    align-items: center;
}
.align-e {
    align-items: flex-end;
}
.align-s {
    align-items: flex-start;
}
.self-c {
    align-self: center;
}
.self-s {
    align-self: flex-start;
}
.self-e {
    align-self: flex-end;
}
.flex-1 {
    flex: 1;
}
.flex-2 {
    flex: 2;
}
.flex-shrink {
    flex-shrink: 0;
}
.flex-shrink-1 {
    flex-shrink: 1;
}
.flex-width {
    width: 0;
}
.flex-width-half {
    width: 50%;
}
.flex-width-half-half {
    width: 25%;
}
.flex-wrap {
    flex-wrap: wrap;
}
.flex-nowrap {
    flex-wrap: nowrap;
}

/**
 * 字体宽度
*/
.fw-n {
    font-weight: 400;
}
.fw {
    font-weight: 500;
}
.fw-b {
    font-weight: 700;
}

/**
 * 字体居中
*/
.tc {
    text-align: center;
}
.tl {
    text-align: left;
}
.tr {
    text-align: right;
}

// 边框为0
.br-none {
    border: 0 !important;
}

/**
 * 圆角
*/
.radius-xs {
    border-radius: 0.2rem;
}
.radius-sm {
    border-radius: 0.4rem;
}
.radius,
.radius-md {
    border-radius: 0.6rem;
}
.radius-lg {
    border-radius: 0.8rem;
}
.radius-xl {
    border-radius: 1.2rem;
}
.round {
    border-radius: 10000rem;
}

/**
 * 定位
*/
.re {
    position: relative;
}
.abs {
    position: absolute;
}
.fi {
    position: fixed;
}
.middle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.fill {
    position: absolute;
    inset: 0;
}
.x-middle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.z-i {
    z-index: 1;
}
.z-deep {
    z-index: 2;
}
.z-top {
    z-index: 9;
}

// 超出隐藏
.oh {
    overflow: hidden;
}
.o-auto {
    overflow: auto;
}

/**
 * 不允许换行
*/
.nowrap {
    white-space: nowrap;
}

// 阴影
.box-shadow-sm {
    box-shadow: 0 0.5rem 2rem rgba(50, 55, 58, 0.1);
}
.box-shadow-md {
    box-shadow: 0 0.2rem 0.8rem rgba(50, 55, 58, 0.1);
}
.box-shadow-lg {
    box-shadow: 0 0.8rem 3.4rem rgba(50, 55, 58, 0.1);
}

/*css主要部分的样式*/
/*定义滚动条宽高及背景，宽高分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
    width: 0.6rem;
    height: 0.6rem;
}
/*定义滚动条的轨道颜色、内阴影及圆角*/
::-webkit-scrollbar-track {
    border-radius: 0.4rem;
}
/*定义滑块颜色、内阴影及圆角*/
::-webkit-scrollbar-thumb {
    border-radius: 0.8rem;
    background-color: #dddee0;
}
/*定义滑块悬停变化颜色、内阴影及圆角*/
::-webkit-scrollbar-thumb:hover {
    background-color: #c7c9cc;
}
/*setting content和style的高度控制，仅限只有一块区域的时候使用 */
.common-content-height {
    height: calc(100vh - 16.8rem);
}
.common-style-height {
    height: calc(100vh - 36.8rem);
}

.animate-linear {
    transition: all 0.3s linear;
}

// 透明背景
.mask {
    background-color: rgba(0, 0, 0, 0.2);
}
