@charset "utf-8";

/* ===== 基础重置样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "HarmonyOS-Sans", "PingFang SC", "Arial", "Helvetica", "Microsoft YaHei", sans-serif;
}

html {
    font-size: calc(100vw / 192);
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-width: thin;
    scrollbar-color: #333 #e2e2e2;
    letter-spacing: .1rem;
    overflow-x: hidden;
}

body {
    font-family: "HarmonyOS-Sans", "PingFang SC", "Arial", "Helvetica", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    line-height: 1.5;
    font-size: 1.4rem;
    overflow-x: hidden;
    min-height: 100vh;
    background-color: #fff;
    color: #333;
}

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

a,input,img,:focus,:active {
    outline-style: none;
    border: none;
}

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

ul {
    list-style: none
}

img {
    border: 0;
    vertical-align: middle
}

ul,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,form,p {
    padding: 0;
    margin: 0;
    font-weight: 400
}

h3,h4,h5 {
    font-weight: 400
}

h4 a:hover,h5 a:hover {
    -moz-transition: all .36s ease-in-out;
    -webkit-transition: all .36s ease-in-out;
    -o-transition: all .36s ease-in-out;
    -ms-transition: all .36s ease-in-out;
    transition: all .36s ease-in-out
}

hr {
    display: block;
    height: .1rem;
    border: 0;
    background: #d8d8d8;
    padding: 0;
    margin-bottom: 0;
    margin-top: 2.4rem
}

abbr,article,aside,audio,canvas,datalist,details,dialog,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video {
    display: block
}

html::-webkit-scrollbar {
    width: .8rem;
    height: .8rem;
    border-radius: 0;
    background-color: rgba(35, 97, 172, .1);
}

html::-webkit-scrollbar-thumb {
    border-radius: 0;
    background-color: rgba(35, 97, 172, 1);
}

/* ===== 文本处理工具类 ===== */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.text-ellipsis-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.text-ellipsis-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
}


.text-ellipsis-4 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-clamp: 4;
}

.text-ellipsis-5 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-clamp: 5;
}

.text-ellipsis-6 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    line-clamp: 6;
}

.text-ellipsis-7 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    line-clamp: 7;
}

.text-ellipsis-8 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    line-clamp: 8;
}

.text-nowrap {
    white-space: nowrap;
}

.text-break {
    word-wrap: break-word;
}

.scrollbar-custom::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: .3rem;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: .3rem;
}

.scrollbar-custom::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.visibility-hidden {
    visibility: hidden;
}

.box-shadow {
    box-shadow: 0 1.6rem 3rem 0 rgba(35, 97, 172, .1);
}

/* 文章 hover 缩放 */
.el-hover
,.el-hover img {
    overflow: hidden;
    background-size: 100%!important;
    -moz-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out
}

.img-hover
,.img-hover img{
    -moz-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out
}

div.el-hover:hover img
,a.el-hover:hover img
,article.el-hover:hover img
,article.el-hover:hover{
    transform: scale(1.05) !important
}

div.img-hover:hover img{
    transform: scale(1.05) !important
}

.gray-bg-color {
    /*background: #E5E7EB;*/
    background: #F8F8F8;
}