:root {
    --card-box-shadow: 0 2px 11px 0 rgba(0, 0, 0, 5%);
    --card-hover-box-shadow: 0 2px 11px 0 rgba(0, 0, 0, 13%);
}

/* 全局图片禁止拖拽 */
img {
    -webkit-user-drag: none;
}
.announcement_content {
    text-align: center;
}

h1 {
    font-size: 2.1em;
}
h2 {
    font-size: 1.6em !important;
}
h3 {
    font-size: 1.4em !important;
}
h4 {
    font-size: 1.2em !important;
}
/* 全局圆角边框 */

.button--animated,
.button--animated:before,
.post-reward .reward-button,
#article-container .btn-beautify,
psw,
.tk-content img,
.article-sort-item-img,
#post .post-copyright,
#article-container img:not(.link-card .left img),
#article-container pre,
#article-container code,
#pagination .page-number,
#pagination .extend,
#aside-content #card-toc .toc-content .toc-link.active,
#aside-content .aside-list > .aside-list-item .thumbnail,
#aside-content .card-archives ul.card-archive-list > .card-archive-list-item a:hover,
#aside-content .card-categories ul.card-category-list > .card-category-list-item a:hover {
    border-radius: 5px !important;
}

#aside-content .card-info #card-info-btn {
    border-radius: 18px;
    overflow: hidden;
}

.hl-label,
#article-container p > code,
#article-container table code {
    margin: auto 2px;
    padding-top: 0rem !important;
}
.hl-label {
    margin-right: -2px;
}

/* 菜单栏子标签添加右移动态效果 */
#nav .menus_items .menus_item .menus_item_child li a:hover {
    transform: translateX(0.3rem);
}
.item-headline > .fa-folder-open:before {
    margin-right: -5px;
}

/*文章标题居中*/
#page h1.page-title,
#post > #post-info {
    text-align: center;
}

#article-container.post-content ol > li:before {
    margin-top: 0.75em !important;
}

#article-container.post-content ul > li:not(.tab):before {
    top: 0.9em !important;
}

#nav .site-page:not(.child):after {
    height: 2px !important;
}
/*页脚美化*/
#footer-wrap .footer_custom_text {
    margin-top: 8px;
    line-height: 2.3;
}
#footer-wrap .footer_custom_text a:nth-child(n + 2) {
    margin-left: 8px;
}
@media screen and (max-width: 576px) {
    #footer-wrap .footer_custom_text a:nth-child(n + 2) {
        margin-left: 5px !important;
    }
}
#footer-wrap .footer_custom_text a {
    display: inline;
}
@media screen and (max-width: 576px) {
    #footer-wrap .footer_custom_text a:nth-child(4) {
        margin-left: 0 !important;
    }
}
@media screen and (max-width: 576px) {
    #footer-wrap {
        font-size: 14px;
        padding: 1rem;
    }
}
@media screen and (max-width: 576px) {
    #footer-wrap .footer_custom_text {
        margin-bottom: -7px;
    }
}

/* 文章卡片优化 */
@media screen and (min-width: 900px) {
    #aside-content {
        padding-left: 1rem;
    }
}
@media screen and (min-width: 900px) {
    #recent-posts > .recent-post-item {
        height: 18em !important;
    }
}

#aside-content .card-widget {
    padding: 0.8rem 1rem;
}
#recent-posts > .recent-post-item > .recent-post-info > .article-meta-wrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media screen and (max-width: 768px) {
    #recent-posts .recent-post-item .post_cover {
        height: 355px;
    }
}
@media screen and (max-width: 768px) {
    #recent-posts .recent-post-item .recent-post-info {
        padding-bottom: 1rem !important;
    }
}
@media screen and (max-width: 768px) {
    #recent-posts > .recent-post-item > .recent-post-info > .content {
        -webkit-line-clamp: 2;
    }
}
@media screen and (max-width: 576px) {
    #recent-posts > .recent-post-item > .recent-post-info > .content {
        -webkit-line-clamp: 1;
    }
}
@media screen and (max-width: 576px) {
    #recent-posts .recent-post-item .post_cover {
        height: 200px;
    }
}

/* 全局自定义字体 */
/* @font-face {
    font-family: "HarmonyOS_Sans_SC_Regular";
    font-style: normal;
    font-display: swap;
    src: local("HarmonyOS_Sans_SC_Regular"), 
        url("https://unpkg.zhimg.com/gahotx-cdn@1.0.7/fonts/HarmonyOS_Sans_SC_Regular.woff2") format("woff2"),
        url("https://unpkg.zhimg.com/gahotx-cdn@1.0.7/fonts/HarmonyOS_Sans_SC_Regular.woff") format("woff"),
        url("https://unpkg.zhimg.com/gahotx-cdn@1.0.7/fonts/HarmonyOS_Sans_SC_Regular.ttf") format("truetype");
} */
#nav #site-name {
    font-size: 22px;
}
#nav .site-page {
    font-size: 16px;
}

/* 哔哔美化 */
.xk-card .xk-card-content[data-v-185689ea] {
    white-space: initial !important;
    margin-bottom: -17px;
    padding: 16px 0 !important;
}
#article-container .xk-card-content[data-v-185689ea] .fancybox img {
    margin-bottom: 0;
    margin-top: 0;
}
.xk-card-content {
    font-size: 0.8rem !important;
}
.xk-card-label {
    /* background-color: #3B3D42!important; */
    font-size: 0.1rem !important;
}
.xk-card-content p img {
    display: inline-block !important;
    margin: 0 !important;
}
#latestBB {
    display: none;
}
@media screen and (min-width: 768px) {
    #article-container .xk-card-content[data-v-185689ea] .fancybox,
    #article-container .xk-card-content[data-v-185689ea] video {
        max-width: 50% !important;
    }
}
.xk-card[data-v-185689ea] {
    transition: all 0.25s !important;
}

div.checkbox p {
    margin-top: 0 !important;
}

/* twikoo */
.tk-content p {
    margin: 0 !important;
}
.el-textarea__inner {
    min-height: 150px !important;
}
.tk-main .tk-content {
    background-color: rgba(144, 147, 153, 0.1);
    padding: 12px 16px;
    border-radius: 4px;
}
.tk-expand,
.tk-expand:hover {
    border-radius: 4px;
}
.tk-replies .tk-comment:last-child {
    margin-bottom: 1rem;
}
.tk-avatar {
    margin-right: 0.5rem !important;
    border-radius: 50% !important;
}
.tk-main[data-v-d82ce9a0] {
    margin-top: 5px;
}
.tk-row.actions[data-v-619b4c52] {
    margin-left: 0 !important;
}
@media screen and (max-width: 768px) {
    .tk-avatar[data-v-619b4c52] {
        display: none;
    }
}
.tk-avatar[data-v-d82ce9a0],
.tk-avatar[data-v-32f45298],
.tk-avatar .tk-avatar-img[data-v-32f45298] {
    height: 2rem !important;
    width: 2rem !important;
}
.tk-replies .tk-avatar[data-v-32f45298],
.tk-replies .tk-avatar .tk-avatar-img[data-v-32f45298] {
    height: 1.6rem !important;
    width: 1.6rem !important;
}
.tk-replies .tk-avatar[data-v-32f45298] {
    margin-top: 5px;
}
.tk-avatar .tk-avatar-img {
    transition: all 0.4s;
}
.tk-avatar .tk-avatar-img:hover {
    transform: rotate(360deg);
}
.tk-row {
    position: relative;
}
.tk-avatar[data-v-619b4c52] {
    position: absolute;
    top: -5px;
    left: 0;
}
.tk-meta-input[data-v-619b4c52] {
    margin-left: 2.5rem;
}
@media screen and (max-width: 768px) {
    .tk-meta-input[data-v-619b4c52] {
        margin-left: 0;
    }
}
.OwO .OwO-body {
    border-radius: 4px !important;
}
.tk-preview-container[data-v-619b4c52] {
    margin-left: 0 !important;
}
.tk-tag-green[data-v-d82ce9a0] {
    background-color: #99cc99 !important;
    border: 0 !important;
    color: #fff !important;
}
.tk-nick,
.tk-tag {
    margin-right: 5px !important;
}
.tk-action-link:first-child {
    margin-left: 0 !important;
}
.tk-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tk-actions[data-v-d82ce9a0] {
    margin-left: 0 !important;
}
.tk-actions > a:nth-of-type(1) {
    margin-right: 3px !important;
    margin-left: 5px !important;
}
.tk-admin-close[data-v-45b8c260] {
    position: absolute !important;
}
.tk-owo-emotion,
.twikoo .OwO-item img {
    width: 35px !important;
}
.OwO .OwO-body .OwO-items-show {
    margin: 12px 8px !important;
    max-height: 183px !important;
    min-height: 183px;
}
@media screen and (max-width: 576px) {
    .OwO .OwO-body .OwO-items .OwO-item {
        margin-right: 2px !important;
    }
}
.tk-content img {
    max-width: 100% !important;
    vertical-align: baseline !important;
}
.tk-content .tk-owo-emotion {
    vertical-align: middle !important;
}

/* 滚动条 */
::-webkit-scrollbar-thumb {
    border-radius: 6px;
    border-style: dashed;
    border-color: transparent;
    border-width: 2px;
    background-color: #c1c1c1;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
::-webkit-scrollbar-thumb:active {
    background: #787878;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background-color: #787878;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:active {
    background: #c1c1c1;
}

/* a链接下划线动画 */
#post .post-copyright .post-copyright-info a,
#article-container
    a:not(.link-card):not(.link-card > div > a):not(.fancybox):not(.button):not(.btn-beautify):not(.ghcard):not(.btns
        > a):not(.site-card):not(.moments-item-img):not(.moments-item-title) {
    border-bottom-style: dotted;
    border-bottom-color: #49b1f5;
    border-bottom-width: 0.07rem;
    position: relative;
    text-decoration: none;
    white-space: normal;
    background: 0 0;
    word-break: break-all;
}
#post .post-copyright .post-copyright-info a:hover:after,
#article-container
    a:not(.link-card):not(.link-card > div > a):not(.fancybox):not(.button):not(.btn-beautify):not(.ghcard):not(.btns
        > a):not(.site-card):not(.moments-item-img):not(.moments-item-title):hover:after {
    left: 0;
    width: 100%;
    outline: 0;
    text-decoration: underline;
    transition: width 0.35s !important;
}
#post .post-copyright .post-copyright-info a:after,
#article-container
    a:not(.link-card):not(.link-card > div > a):not(.fancybox):not(.button):not(.btn-beautify):not(.ghcard):not(.btns
        > a):not(.site-card):not(.moments-item-img):not(.moments-item-title):after {
    position: absolute;
    bottom: -0.07rem;
    left: 100%;
    width: 0;
    content: "";
    border-bottom: 0.07rem solid #49b1f5;
    transition: width 0.35s, left 0.35s;
}
.tip a {
    color: #fff !important;
    border-bottom-color: #fff !important;
}
.tip a:after {
    border-bottom-color: #fff !important;
}
.moments-item-info a {
    color: #99a9bf !important;
}
.moments-item-info a:hover {
    text-decoration: none !important;
    color: #49b1f5 !important;
}

/* 留言板每日一言 */
.poemm-wrap {
    line-height: 1;
    position: relative;
    width: 730px;
    max-width: 70%;
    border: 2px solid var(--font-color);
    border-top: 0;
    text-align: center;
    margin: 60px auto;
}

.poemm-left {
    left: -1px;
}

.poemm-border {
    position: absolute;
    height: 1.5px;
    width: 27%;
    background-color: var(--font-color);
}

.poemm-right {
    right: 0;
}

.poemm-wrap h1 {
    position: relative;
    margin-top: -20px;
    display: inline-block;
    letter-spacing: 4px;
    color: var(--font-color);
    margin-bottom: 30px !important;
}

.poemm-wrap p {
    line-height: 30px;
    color: var(--font-color);
    margin: 0 10px 23px !important;
}

.poemm-wrap p:nth-of-type(1) {
    font-size: 24px;
}

.poemm-wrap p:nth-of-type(2) {
    font-size: 18px;
    margin-bottom: 20px !important;
}

@media screen and (max-width: 768px) {
    .poemm-wrap {
        max-width: 95%;
    }
}

/* 暗黑模式美化 */
[data-theme="dark"] #footer:before,
[data-theme="dark"] #web_bg:before {
    background-color: #0c0c0c !important;
}

[data-theme="dark"] #page-header.nav-fixed > #nav,
[data-theme="dark"] #page-header.not-top-img > #nav {
    background-color: rgba(22, 22, 26, 0.8);
}

[data-theme="dark"] {
    --card-bg: #16161a;
    --btn-bg: #3e3e48;
    --text-bg-hover: #3e3e48;
}

/* diff代码块美化 */
:root {
    --hl-color: #6e7175;
}

figure.highlight pre .deletion {
    color: #c82829;
}
figure.highlight pre .addition {
    color: #008c41;
}

#article-container a.link-card {
    transition: all 0.5s;
}

#aside-content .aside-list > .aside-list-item .content > .title,
#aside-content .aside-list > .aside-list-item .content > .comment {
    -webkit-line-clamp: 1 !important;
}

#article-container a.link-card p.text,
#article-container a.link-card p.url {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

/* fcircle */

#moments_container h2 {
    margin: revert !important;
}

#info_user_pool {
    margin-top: 0 !important;
    border: 1px solid #dddfe4;
    border-radius: 5px !important;
}