#footer {
    background: transparent !important;
}

#footer::before{
    background: transparent !important;
}

#page-header {
    background: transparent !important;
}

#page-header::before {
    background: transparent !important;
}

[data-theme="dark"] #footer::before {
    background: transparent !important;
}

[data-theme="dark"] #page-header::before {
    background: transparent !important;
}


[data-theme="dark"] .magnet_link_context {
    background: #1e1e1e;
    color: antiquewhite;
}

[data-theme="dark"] .magnet_link_context:hover {
    background: #3ecdf1;
    color: #f2f2f2;
}
@font-face {
    /* 为载入的字体取名字(随意) */
    font-family: 'YSHST';
    /* 字体文件地址(相对或者绝对路径都可以) */
    src: url(/font/优设好身体.woff2);
    /* 定义加粗样式(加粗多少) */
    font-weight: normal;
    /* 定义字体样式(斜体/非斜体) */
    font-style: normal;
    /* 定义显示样式 */
    font-display: block; }

/* 翻页按钮居中 */
#pagination {
    width: 100%;
    margin: auto; }

/* 一级菜单居中 */
#nav .menus_items {
    position: absolute !important;
    width: fit-content !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* 子菜单横向展示 */
#nav .menus_items .menus_item:hover .menus_item_child {
    display: flex !important;
}

/* 这里的2是代表导航栏的第2个元素，即有子菜单的元素，可以按自己需求修改 */
.menus_items .menus_item:nth-child(5) .menus_item_child {
    left: -70px; }

        /* 日间模式不生效 */
        [data-theme="light"] #site-name,
        [data-theme="light"] #site-title,
        [data-theme="light"] #site-subtitle,
        [data-theme="light"] #post-info {
            animation: none;
        }
    
        /* 夜间模式生效 */
        [data-theme="dark"] #site-name,
        [data-theme="dark"] #site-title {
            animation: light_15px 10s linear infinite;
        }
    
        [data-theme="dark"] #site-subtitle {
            animation: light_10px 10s linear infinite;
        }
    
        [data-theme="dark"] #post-info {
            animation: light_5px 10s linear infinite;
        }
    
        /* 关键帧描述 */
        @keyframes light_15px {
            0% {
                text-shadow: #5636ed 0 0 15px;
            }
    
            12.5% {
                text-shadow: #11ee5e 0 0 15px;
            }
    
            25% {
                text-shadow: #f14747 0 0 15px;
            }
    
            37.5% {
                text-shadow: #f1a247 0 0 15px;
            }
    
            50% {
                text-shadow: #f1ee47 0 0 15px;
            }
    
            50% {
                text-shadow: #b347f1 0 0 15px;
            }
    
            62.5% {
                text-shadow: #002afa 0 0 15px;
            }
    
            75% {
                text-shadow: #ed709b 0 0 15px;
            }
    
            87.5% {
                text-shadow: #39c5bb 0 0 15px;
            }
    
            100% {
                text-shadow: #5636ed 0 0 15px;
            }
        }
    
        @keyframes light_10px {
            0% {
                text-shadow: #5636ed 0 0 10px;
            }
    
            12.5% {
                text-shadow: #11ee5e 0 0 10px;
            }
    
            25% {
                text-shadow: #f14747 0 0 10px;
            }
    
            37.5% {
                text-shadow: #f1a247 0 0 10px;
            }
    
            50% {
                text-shadow: #f1ee47 0 0 10px;
            }
    
            50% {
                text-shadow: #b347f1 0 0 10px;
            }
    
            62.5% {
                text-shadow: #002afa 0 0 10px;
            }
    
            75% {
                text-shadow: #ed709b 0 0 10px;
            }
    
            87.5% {
                text-shadow: #39c5bb 0 0 10px;
            }
    
            100% {
                text-shadow: #5636ed 0 0 10px;
            }
        }
    
        @keyframes light_5px {
            0% {
                text-shadow: #5636ed 0 0 5px;
            }
    
            12.5% {
                text-shadow: #11ee5e 0 0 5px;
            }
    
            25% {
                text-shadow: #f14747 0 0 5px;
            }
    
            37.5% {
                text-shadow: #f1a247 0 0 15px;
            }
    
            50% {
                text-shadow: #f1ee47 0 0 5px;
            }
    
            50% {
                text-shadow: #b347f1 0 0 5px;
            }
    
            62.5% {
                text-shadow: #002afa 0 0 5px;
            }
    
            75% {
                text-shadow: #ed709b 0 0 5px;
            }
    
            87.5% {
                text-shadow: #39c5bb 0 0 5px;
            }
    
            100% {
                text-shadow: #5636ed 0 0 5px;
            }
        }
/* 侧边栏个人信息卡片动态渐变色 */
#aside-content>.card-widget.card-info {
    background: linear-gradient(-45deg,
            #e8d8b9,
            #eccec5,
            #a3e9eb,
            #bdbdf0,
            #eec1ea);
    box-shadow: 0 0 5px rgb(66, 68, 68);
    position: relative;
    background-size: 400% 400%;
    -webkit-animation: Gradient 10s ease infinite;
    -moz-animation: Gradient 10s ease infinite;
    animation: Gradient 10s ease infinite !important;
}

@-webkit-keyframes Gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@-moz-keyframes Gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes Gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 黑夜模式适配 */
[data-theme="dark"] #aside-content>.card-widget.card-info {
    background: #191919ee;
}

/* 个人信息Follow me按钮 */
#aside-content>.card-widget.card-info>#card-info-btn {
    background-color: #3eb8be;
    border-radius: 8px; }
/* 夜间模式菜单栏发光字 */
/* [data-theme="dark"] #nav .site-page,
[data-theme="dark"] #nav .menus_items .menus_item .menus_item_child li a {
    text-shadow: 0 0 2px rgb(179, 71, 241) !important;
} */

/* 手机端适配 */
/* [data-theme="dark"] #sidebar #sidebar-menus .menus_items .site-page {
    text-shadow: 0 0 2px rgb(179, 71, 241) !important;
} */

/* 闪烁变动颜色连续渐变 */
/* #site-name,
#site-title,
#site-subtitle,
#post-info,
.author-info__name,
.author-info__description {
    transition: text-shadow 1s linear !important;
} */


:root {
    --trans-light: rgba(255, 255, 255, 0.88);
    --trans-dark: rgba(25, 25, 25, 0.88);
    --border-style: 1px solid rgb(169, 169, 169);
    --backdrop-filter: blur(5px) saturate(150%);
}

/* 首页文章卡片 */
#recent-posts>.recent-post-item {
    background: var(--trans-light);
    backdrop-filter: var(--backdrop-filter);
    border-radius: 25px;
    border: var(--border-style);
}

/* 首页侧栏卡片 */
#aside-content .card-widget {
    background: var(--trans-light);
    backdrop-filter: var(--backdrop-filter);
    border-radius: 18px;
    border: var(--border-style);
}

/* 文章页、归档页、普通页面 */
div#post,
div#page,
div#archive {
    background: var(--trans-light);
    backdrop-filter: var(--backdrop-filter);
    border: var(--border-style);
    border-radius: 20px;
}

/* 导航栏 */
#page-header.nav-fixed #nav {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: var(--backdrop-filter);
}

[data-theme="dark"] #page-header.nav-fixed #nav {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* 夜间模式遮罩 */
[data-theme="dark"] #recent-posts>.recent-post-item,
[data-theme="dark"] #aside-content .card-widget,
[data-theme="dark"] div#post,
[data-theme="dark"] div#archive,
[data-theme="dark"] div#page {
    background: var(--trans-dark);
}


/* 夜间模式页脚页头遮罩透明 */
[data-theme="dark"] #footer::before {
    background: transparent !important;
}

[data-theme="dark"] #page-header::before {
    background: transparent !important;
}

/* 阅读模式 */
.read-mode #aside-content .card-widget {
    background: rgba(158, 204, 171, 0.5) !important;
}

.read-mode div#post {
    background: rgba(158, 204, 171, 0.5) !important;
}

/* 夜间模式下的阅读模式 */
[data-theme="dark"] .read-mode #aside-content .card-widget {
    background: rgba(25, 25, 25, 0.9) !important;
    color: #ffffff;
}

[data-theme="dark"] .read-mode div#post {
    background: rgba(25, 25, 25, 0.9) !important;
    color: #ffffff; }
        .iconfont {
            font-family: "iconfont" !important;
            /* 这里可以自定义图标大小 */
            font-size: 3em;
            font-style: normal;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;     }

svg.icon {
  width: 1.28em;
  height: 1.28em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

/*哔哩哔哩视频适配*/
.aspect-ratio {
    position: relative;
    width: 90%;
    height: auto;
    padding-bottom: 75%;
    margin: 3% auto;
    text-align: center;
}

.aspect-ratio iframe {
    position: absolute;
    width: 100%;
    height: 86%;
    left: 0;
    top: 0; }
/* 文章页H1-H6图标样式效果 */
/* 控制风车转动速度 4s那里可以自己调节快慢 */
h1::before,
h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
    -webkit-animation: ccc 4s linear infinite;
    animation: ccc 4s linear infinite;
}

/* 控制风车转动方向 -1turn 为逆时针转动，1turn 为顺时针转动，相同数字部分记得统一修改 */
@-webkit-keyframes ccc {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(-1turn);
        transform: rotate(-1turn);
    }
}

@keyframes ccc {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(-1turn);
        transform: rotate(-1turn);
    }
}

/* 设置风车颜色 */
#content-inner.layout h1::before {
    color: #ef50a8;
    margin-left: -1.55rem;
    font-size: 1.3rem;
    margin-top: -0.23rem;
}

#content-inner.layout h2::before {
    color: #fb7061;
    margin-left: -1.35rem;
    font-size: 1.1rem;
    margin-top: -0.12rem;
}

#content-inner.layout h3::before {
    color: #ffbf00;
    margin-left: -1.22rem;
    font-size: 0.95rem;
    margin-top: -0.09rem;
}

#content-inner.layout h4::before {
    color: #a9e000;
    margin-left: -1.05rem;
    font-size: 0.8rem;
    margin-top: -0.09rem;
}

#content-inner.layout h5::before {
    color: #57c850;
    margin-left: -0.9rem;
    font-size: 0.7rem;
    margin-top: 0rem;
}

#content-inner.layout h6::before {
    color: #5ec1e0;
    margin-left: -0.9rem;
    font-size: 0.66rem;
    margin-top: 0rem;
}

/* s设置风车hover动效 6s那里可以自己调节快慢*/
#content-inner.layout h1:hover,
#content-inner.layout h2:hover,
#content-inner.layout h3:hover,
#content-inner.layout h4:hover,
#content-inner.layout h5:hover,
#content-inner.layout h6:hover {
    color: var(--theme-color);
}

#content-inner.layout h1:hover::before,
#content-inner.layout h2:hover::before,
#content-inner.layout h3:hover::before,
#content-inner.layout h4:hover::before,
#content-inner.layout h5:hover::before,
#content-inner.layout h6:hover::before {
    color: var(--theme-color);
    -webkit-animation: ccc 6s linear infinite;
    animation: ccc 6s linear infinite;
}


body::-webkit-scrollbar {
    width: 0;
}

.neko {
    width: 64px;
    height: 64px;
    background-image: url("https://bu.dusays.com/2022/07/20/62d812db74be9.png");
    position: absolute;
    right: 32px;
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateX(50%);
    cursor: pointer;
    font-family: tzy;
    font-weight: 600;
    font-size: 16px;
    color: #6f42c1;
    display: none;
}

.neko::after {
    display: none;
    width: 100px;
    height: 100px;
    background-image: url("https://bu.dusays.com/2022/07/20/62d812d95e6f5.png");
    background-size: contain;
    z-index: 9999;
    position: absolute;
    right: 50%;
    text-align: center;
    line-height: 100px;
    top: -115%;

}

.neko.showMsg::after {
    content: attr(data-msg);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.neko:hover::after {
    content: attr(data-msg);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.neko.fontColor::after {
    color: #333;
}

/**
 * @description: 滚动条样式  跟猫二选一
 */
@media screen and (max-width:992px) {
    ::-webkit-scrollbar {
        width: 8px !important;
        height: 8px !important
    }

    ::-webkit-scrollbar-track {
        border-radius: 2em;
    }

    ::-webkit-scrollbar-thumb {
        background-color: rgb(255 255 255 / .3);
        background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
        border-radius: 2em
    }

    ::-webkit-scrollbar-corner {
        background-color: transparent
    }
    
}/* 父容器保持双列布局 */
.recent-post-items {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-gap: 25px !important;
    padding: 20px;
}

/* 固定大小的透明卡片 - 父容器 */
.recent-post-item {
    width: 100%;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 图片容器 - 与父容器同宽同高 */
.post_cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
}

.post_cover>a {
    display: block;
    width: 100%;
    height: 100%;
}

.post_cover>a>img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 卡片内容容器 - 叠加在图片上方 */
.recent-post-item .recent-post-info {
    position: relative;
    z-index: 1;
    color: #ffffff;
    height: 100%;
    width: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    /* 移除渐变背景，让内容直接叠加在图片上 */
    /* background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)); */
}

/* 标题样式 */
.post-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 元信息样式 */
.post-meta {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
}

/* 摘要样式 - 自动适应剩余空间 */
.post-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

/* 滚动条美化 */
.post-excerpt::-webkit-scrollbar {
    width: 6px;
}

.post-excerpt::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* 悬停效果 */
.recent-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.recent-post-item:hover .post_cover img {
    transform: scale(1.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .recent-posts-items {
        grid-template-columns: 1fr !important;
        grid-gap: 20px !important;
    }

    .recent-post-item {
        height: 380px;
        min-height: 380px;
        max-height: 380px;
    }

    .recent-post-item .recent-post-info {
        padding: 20px;
    }
}