/* 自定义字体 */
@font-face {
    font-family: "PingFangSCRegular";
    src: url(../fonts/PingFangSCRegular.ttf) format("truetype");
}

html {
    scroll-behavior: smooth;
}

/* 确定版心 */
.container {
    width: 1226px;
    margin: 0 auto;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

/* 通用字体样式 */
body {
    font: 14px/1.5 "PingFangSCRegular", Arial, "Microsoft YaHei";
    color: #333;
    background-color: #fff;
    min-width: 1226px;
}

/* 单行文本显示省略号 */
.ellipsis-single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 多行文本显示省略号 常用2行 */
.ellipsis-single-line2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 图片等比裁剪 */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 块级元素水平垂直居中 Flex布局 */
.center-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 块级元素水平垂直居中 绝对定位 */
.center-absolute {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}