/* 清除浮动 */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* 清除塌陷 */
.clearcollapse::before {
    content: "";
    display: table;
}

.pt1 {
    padding-top: 1px;
}

/* 单行文本省略 */
.textellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bg {
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.border1px {
    position: relative;
}

.border1px::before {
    content: '';
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    color: inherit;
    border-radius: inherit;
    border: 1px solid currentColor;
    -webkit-transform-origin: left top;
    transform-origin: left top;
    pointer-events: none;
}

.vertical-border1px {
    border-left: 1px solid currentColor;
}

.horizontal-border1px {
    border-top: 1px solid currentColor;
}

.vertical-line,
.horizontal-line {
    position: relative;
}

.vertical-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 1px;
    height: 100%;
    background-color: currentColor;
}

.horizontal-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 1px;
    background-color: currentColor;
}

@media only screen and (-webkit-min-device-pixel-ratio:2),
only screen and (min-device-pixel-ratio: 2),
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min-resolution: 2dppx) {
    .border::before {
        width: 200%;
        height: 200%;
        -webkit-transform: scale(.5);
        transform: scale(.5);
    }

    .vertical-border1px {
        -webkit-transform: translateX(.5);
        transform: translateX(.5)
    }

    .horizontal-border1px {
        -webkit-transform: translateY(.5);
        transform: translateY(.5)
    }

    .vertical-line::before {
        -webkit-transform: translateX(.5);
        transform: translateX(.5)
    }

    .horizontal-line::before {
        -webkit-transform: translateY(.5);
        transform: translateY(.5)
    }
}

@media only screen and (-webkit-min-device-pixel-ratio:3),
only screen and (min-device-pixel-ratio: 3),
only screen and (-webkit-min-device-pixel-ratio: 3),
only screen and (min-resolution: 3dppx) {
    .border::before {
        width: 300%;
        height: 300%;
        -webkit-transform: scale(.33);
        transform: scale(.33);
    }

    .vertical-border1px {
        -webkit-transform: translateX(.33);
        transform: translateX(.33)
    }

    .horizontal-border1px {
        -webkit-transform: translateY(.33);
        transform: translateY(.33)
    }

    .vertical-line::before {
        -webkit-transform: translateX(.33);
        transform: translateX(.33)
    }

    .horizontal-line::before {
        -webkit-transform: translateY(.33);
        transform: translateY(.33)
    }
}
