/*----------------------------------[Table of contents]----------------------------------
# blog-sidebar css
# article css
# search-blog css
---------------------------------------------------------------------------------------*/

/************************************* blog-sidebar css start *************************************/
/*====================================
    blog-post-sidebar css
====================================*/
.blog-sidebar-wrap .blog-post-sidebar {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(var(--border-color),var(--border-opacity));
}
.blog-sidebar-wrap .blog-post-sidebar:first-child {
    padding: 0;
    margin: 0;
    border: none;
}

/*====================================
    blog-recent css
====================================*/
.blog-sidebar-wrap .blog-post-sidebar .blog-recent-post .blog-img-content .blog-recent-content span a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/*====================================
    blog-tag css
====================================*/
ul.tag-ul li.tag-li a {
    -webkit-transition: color 0.3s ease-in-out,background-color 0.3s ease-in-out,border-color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out,background-color 0.3s ease-in-out,border-color 0.3s ease-in-out;
}
ul.tag-ul li.tag-li a:hover {
    color: var(--extra-font-color);
    background-color: var(--secondary-font-color);
    border-color: var(--secondary-font-color);
}
ul.tag-ul li.tag-li a::before {
    content: "#";
}
/************************************* blog-sidebar css end *************************************/

/************************************* article css start *************************************/
/*====================================
    article-comments css
====================================*/
.blog-sidebar-wrap .blog-search,
.blog-sidebar-wrap .blog-recent {
    display: block;
}

/* 小屏隐藏侧栏：搜索栏 + 最新文章（< 992px） */
@media (max-width: 991px) {
    .blog-sidebar-wrap .blog-search,
    .blog-sidebar-wrap .blog-recent {
        display: none !important;
    }
}

.article-video {
    background-color: var(--extra-font-color);
    border: 1px solid rgba(var(--border-color),var(--border-opacity));
    border-radius: var(--border-radius);
    padding: 12px;
    box-shadow: rgba(var(--box-shadow-outer),var(--box-shadow-outer-opacity));
}
.article-video video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    background-color: #000;
}
.article-video p {
    margin: 0;
}

/* 正文单图/双图的统一观感 */
.article-single-img img,
.article-banner img {
    display: block;
}
.article-single-img a,
.article-banner a {
    display: block;
}
.article-single-img a img,
.article-banner a img {
    -webkit-transition: transform 0.25s ease, filter 0.25s ease;
    transition: transform 0.25s ease, filter 0.25s ease;
}
.article-single-img a:hover img,
.article-banner a:hover img {
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
    -webkit-filter: brightness(0.96);
    filter: brightness(0.96);
}

.article-comments form .article-cmt .article-cmt-wrap .article-cmt-wrapper .article-cmt-content .article-cmt-red ul li .article-edit-reply button {
    position: relative;
    margin-left: 10px;
    padding-left: 10px;
}
.article-comments form .article-cmt .article-cmt-wrap .article-cmt-wrapper .article-cmt-content .article-cmt-red ul li .article-edit-reply button:first-child {
    margin: 0;
    padding: 0;
}
.article-comments form .article-cmt .article-cmt-wrap .article-cmt-wrapper .article-cmt-content .article-cmt-red ul li .article-edit-reply button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background-color: rgba(var(--border-color),var(--border-opacity));
}
.article-comments form .article-cmt .article-cmt-wrap .article-cmt-wrapper .article-cmt-content .article-cmt-red ul li .article-edit-reply button:first-child::before {
    display: none;
}
/************************************* article css end *************************************/

/************************************* search-blog css start *************************************/
/*====================================
    search-blog css
====================================*/
.search-page .search-bar-page form.search-form .section-title h2 span::before {
    content: '"';
}
.search-page .search-bar-page form.search-form .section-title h2 span::after {
    content: '"';
}

/* search-blog result css */
.blog-post-sidebar .search-bar .search-results ul.search-ul,
.search-page .search-bar .search-results ul.search-ul {
    max-height: 153px;
}
/************************************* search-blog css end *************************************/
