* {
/*    font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Helvetica,Segoe UI,Arial, Roboto,"PingFang SC","miui","Hiragino Sans GB",sans-serif !important;
*/}
html, body {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    background-color: #F9F9F9;
}
main {
    flex: 1;
}
footer {
    margin-top: 2rem;
}
footer .text-area {
    font-size: 0.75rem;
}

.object-fit {
    width: 100%; /* 宽度填满 */
    height: 100%; /* 高度自动 */
    flex-shrink: 0; /* 防止缩小 */
    object-fit: cover;
}

.navbar-brand {
    font-size: 1rem;
}
/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    margin: 0;
    padding: 0 20px;
    display: flex;
    flex-grow: 0;
    flex-direction: column;
    justify-content: center;
    text-shadow: 0.5px 0.5px 1px #CCCCCC;
}
/* Declare heights because of positioning of img element */
.carousel-item {
    height: 24rem;
}

.carousel #particles-js {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: linear-gradient(220.55deg, #24CFC5 0%, #001C63 100%);
}
.carousel canvas {
    width: 100%;
    height: 100%;
}

/* Featurettes
-------------------------------------------------- */
.featurette-divider {
    margin: 5rem 0; /* Space out the Bootstrap <hr> more */
}

/* Blog posts
-------------------------------------------------- */
.blog-post {
    margin-bottom: 2rem;
}
.blog-post-meta {
    margin-bottom: 1.25rem;
    color: #727272;
}
.blog-pagination {
    margin-bottom: 4rem;
}
.blog-post-content img {
    width: 100% !important;
}
/* slogan
-------------------------------------------------- */
.slogan {
    position: relative;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slogan div {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* RESPONSIVE CSS
-------------------------------------------------- */
@media (min-width: 40em) {
    /* Bump up size of carousel content */
    .carousel-caption p {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        line-height: 1.4;
    }
}

.sticky-container {
    position: relative;
}

.sticky-bg {
    position: sticky;
    width: 100%;
    height: 50vh;
    top: 0;
    z-index: -1;
}

.sticky-bg img {
    position: relative;
    width: 100%;
    height: 50vh;
    object-fit: cover;
}

.sticky-bg img::after {
    content: '';
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #000;
    opacity: 0.2;
}

.sticky-headline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    text-align: center;
}

.ellipsis {
    display: -webkit-box;
    height: 4.5rem;
    line-height: 1.5rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* 限制文本为3行 */
    text-overflow: ellipsis;
    overflow: hidden;
}