/* noto-serif-sc-regular - chinese-simplified */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Serif SC';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/noto-serif-sc-v31-chinese-simplified-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* 以下是基本样式 */
[data-user-color-scheme='dark'] .markdown-body {
    color: #e0e0e0!important;
}

.markdown-body {
    font-size: 1rem;
    line-height: 1.6;
    font-family: Noto Serif SC, "Microsoft Yahei", Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
    margin-bottom: 2rem;
    margin-top: 0;
    color:#212529;
}

/* 导航栏居中样式 */
.navbar .navbar-nav {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    float: none;
    transform: translateX(40px);
}

.navbar .navbar-collapse {
    text-align: center;
}

/*针对于暗色模式下的透明*/
@media not print {
   
}

/* 苹果风格代码块样式 - 完全移除上下边距 */
.markdown-body figure.highlight {
    margin-top:2rem;
    margin-bottom: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

/* 代码块顶部栏 */
.markdown-body figure.highlight::before {
    content: '';
    height: 20px; /* 减少顶部栏高度 */
    width: 100%;
    background: #f6f8fa;
    display: block;
    border-bottom: 1px solid #e1e4e8;
    border-radius: 10px 10px 0 0;
    position: relative;
    padding: 0;
}

/* 代码块顶部按钮 */
.markdown-body figure.highlight::after {
    content: '';
    position: absolute;
    top: 6px; /* 调整按钮位置 */
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 
        18px 0 0 #ffbd2e, 
        36px 0 0 #27c93f;
}

/* 代码块内容区域 */
.markdown-body figure.highlight pre {
    margin: 0;
    padding: 0.3rem 0.6rem; /* 减少内容区域内边距 */
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    border-radius: 0 0 10px 10px;
    background: #f8f9fa;
    line-height: 1.4; /* 控制行高 */
}

/* 暗色模式适配 */
[data-user-color-scheme='dark'] .markdown-body figure.highlight {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

[data-user-color-scheme='dark'] .markdown-body figure.highlight::before {
    background: var(--highlight-bg-color);
    border-bottom: 1px solid #333842;
}

[data-user-color-scheme='dark'] .markdown-body figure.highlight pre {
    background: var(--highlight-bg-color);
    
}

/* 代码块悬停效果 */
.markdown-body figure.highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 行号样式 */
.markdown-body figure.highlight .gutter pre {
    border-right: 1px solid #e1e4e8;
    padding-right: 10px;
    color: #999;
    background: transparent;
}

[data-user-color-scheme='dark'] .markdown-body figure.highlight .gutter pre {
    border-right: 1px solid #333842;
    color: #636d83;
}



/* 代码语法高亮样式 */
.markdown-body code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    padding: 0.2em 0.4em;
    background: rgba(175, 184, 193, 0.2);
    border-radius: 6px;
    transition: background 0.3s ease;
}




/* 移动端适配 */
@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin: 0;
        display: block;
        text-align: center;
        transform: none;
    }
    
    .navbar .nav-item .nav-link::after {
        display: none;
    }
    
    .navbar .nav-item .nav-link i {
        width: 1.5rem;
        height: 1.5rem;
        line-height: 1.5rem;
    }

    .navbar .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        margin: 0.5rem;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    [data-user-color-scheme='dark'] .navbar .navbar-collapse {
        background-color: rgba(18, 18, 18, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .navbar .dropdown-menu {
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        animation: none;
        transition: none;
    }
    
    .navbar .dropdown-item {
        color: rgba(0, 0, 0, 0.85);
        padding: 0.5rem 1rem 0.5rem 2rem;
        border-left: 2px solid rgba(0, 0, 0, 0.1);
        margin-left: 1rem;
    }
    
    .navbar .dropdown-item:hover {
        transform: none;
        background-color: transparent;
    }
    
    [data-user-color-scheme='dark'] .navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        border-left: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .navbar .nav-item.dropdown > .nav-link::after {
        float: right;
        margin-top: 0.5rem;
    }
    
    .navbar .nav-item.dropdown {
        position: relative;
    }
    
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .navbar .nav-item.dropdown .dropdown-menu.show {
        display: block;
    }
}

/* 导航栏基础样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
    backdrop-filter: none;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 暗色模式导航栏 */
[data-user-color-scheme='dark'] .navbar {
    background-color: rgba(18, 18, 18, 0) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-user-color-scheme='dark'] .navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* 导航栏链接颜色 */
[data-user-color-scheme='dark'] .navbar .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-user-color-scheme='dark'] .navbar.scrolled .nav-item .nav-link {
    text-shadow: none;
}

/* 导航栏品牌名称 */
[data-user-color-scheme='dark'] .navbar .navbar-brand {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-user-color-scheme='dark'] .navbar.scrolled .navbar-brand {
    text-shadow: none;
}

/* 导航栏菜单项样式 */
.navbar .nav-item .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
    color: rgba(0, 0, 0, 0.7) !important;
    font-weight: 500;
    position: relative;
}

/* 删除导航栏链接下方的横线动画 */
.navbar .nav-item .nav-link::after {
    content: none; /* 不显示伪元素 */
}

.navbar .nav-item .nav-link:hover {
    color: #3a7bd5 !important;
}

/* 下拉菜单箭头样式修改 */
.navbar .nav-item.dropdown > .nav-link::after {
    content: none; /* 不显示箭头 */
}

.navbar .nav-item.dropdown:hover > .nav-link::after {
    transform: none;
}

/* 导航栏滚动效果 */
.navbar-scrolled {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9) !important;
}

/* 导航项动画 */
.nav-item-animated {
    opacity: 0;
    animation: fadeInDown 0.5s forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面加载动画 */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.page-loaded {
    opacity: 1;
}

/* 导航栏美化 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: rgba(240, 245, 255, 0.8);  /* 淡蓝色背景 */
}

[data-user-color-scheme='dark'] body::before {
    background-color: rgba(18, 24, 36, 0.95);
}

/* 图标美化 - 使其更像图片 */
.navbar .navbar-brand {
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: rgba(0, 0, 0, 0.8) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    background: transparent;
    border-radius: 8px;
    margin-right: 1rem;
}

.navbar .navbar-brand:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 导航菜单图标样式 */
.navbar .nav-item .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.4rem;
    display: inline-block;
    transition: all 0.3s ease;
    color: #3a7bd5;
    width: auto;
    height: auto;
    line-height: normal;
    background: none;
    box-shadow: none;
}

.navbar .nav-item .nav-link:hover i {
    transform: translateY(-2px);
    color: #00c6ff;
    animation: none;
}

/* 导航栏魔术贴效果 */
.navbar .nav-item {
    perspective: 1000px;
    margin: 0 0.2rem;
}

.navbar .nav-item .nav-link {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.navbar .nav-item .nav-link:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar .nav-item .nav-link:active {
    transform: translateY(0);
}

/* 头图banner样式优化 - 仅保留自定义的悬停效果 */
.banner:hover .banner-inner {
    transform: scale(1.05);
}

/* 文章卡片样式优化 */
.index-card {
    
    margin-top: 2rem;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
}

[data-user-color-scheme='dark'] .index-card {
    background: rgba(30, 32, 40, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

/* 文章卡片装饰 */
.index-card::before {
    content: '📝';
    position: absolute;
    top: -30px;
    left: -10px;
    font-size: 2rem;
    transform: rotate(-15deg);
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    z-index: 1;
}

.index-card:hover::before {
    transform: rotate(0deg) scale(1.1);
}

/* 文章封面图样式 */
.index-img {
    height: 240px;
    object-fit: cover;
    width: 100%;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.index-card:hover .index-img {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 文章信息区域 */
.index-info {
    padding: 1rem 1.2rem;  /* 减小内部填充 */
    position: relative;
    z-index: 1;
}

/* 文章标题样式 */
.index-header {
    margin-bottom: 0.8rem;  /* 减小标题下方间距 */
    position: relative;
    padding-left: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.index-header::before {
    content: '🌟';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.index-header a:first-child {
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
    transition: all 0.3s ease;
    margin-right: 1rem;
    flex: 1;
}

/* 标题中的阅读更多按钮样式 */
.title-read-more-btn {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: var(--link-hover-color) !important;
    background: rgba(var(--link-hover-color-rgb), 0.1);
    border-radius: 1.2rem;
    padding: 0.15rem 0.7rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-left: auto;
    align-self: flex-start;
}

.title-read-more-btn i {
    font-size: 0.85rem;
    margin-left: 0.2rem;
    transition: transform 0.3s ease;
}

.title-read-more-btn:hover {
    color: #fff !important;
    background: var(--link-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(var(--link-hover-color-rgb), 0.3);
}

.title-read-more-btn:hover i {
    transform: translateX(3px);
}

[data-user-color-scheme='dark'] .title-read-more-btn {
    background: rgba(var(--link-hover-color-rgb), 0.2);
}

/* 移动端样式适配 */
@media (max-width: 767.98px) {
    .index-card {
        margin-bottom: 1.2rem;
        padding: 0.2rem;
        max-width: 98%;
        border-radius: 10px;
    }
    
    .index-img {
        height: 180px;
        border-radius: 8px;
        margin-bottom: 0.3rem;
    }
    
    .index-info {
        padding: 0.5rem 0.7rem;
    }
    
    .index-header {
        margin-bottom: 0.5rem;
        padding-left: 1.1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .index-header::before {
        font-size: 0.9rem;
    }
    
    .index-header a:first-child {
        font-size: 1rem;
        margin-right: 0.3rem;
        line-height: 1.3;
    }
    
    .title-read-more-btn {
        font-size: 0.7rem !important;
        padding: 0.1rem 0.4rem;
        margin-left: 0.3rem;
    }
    
    .title-read-more-btn i {
        font-size: 0.65rem;
    }
    
    .index-excerpt-wrap {
        margin-top: 0.2rem;
        
    }
    
    .index-excerpt {
        font-size: 0.83rem;
        line-height: 1.35;
        max-height: 4rem; /* 约3行高度 */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    
    .index-btm {
        border-top: 1px dashed rgba(125, 125, 125, 0.15);
        padding-top: 0.25rem;
        margin-top: 0.25rem;
        gap: 0.15rem;
    }
    
    .index-btm .post-meta {
        margin-right: 0.25rem !important;
        font-size: 0.7rem;
    }
    
    .index-btm i {
        font-size: 0.75rem;
        margin-right: 0.15rem;
    }
    
    /* 分类和标签 */
    .index-category, .index-tag {
        padding: 0.08rem 0.3rem;
        margin-right: 0.2rem;
        font-size: 0.65rem;
    }
    
    .index-category::before, .index-tag::before {
        font-size: 0.7rem;
        margin-right: 0.12rem;
    }
    
    /* 标签链接 */
    .index-tag a {
        margin-right: 0.12rem;
    }

    /* 分隔符 */
    .index-btm .post-meta:not(:last-child)::after {
        margin-left: 0.25rem;
        font-size: 0.6rem;
    }
    
    /* 日期和分类标签间距优化 */
    .post-meta {
        padding: 0;
        margin: 0.15rem 0.15rem 0.15rem 0;
    }
}

/* 文章分类和标签装饰 */
.index-category::before {
    content: '📚';
    margin-right: 0.5rem;
}

.index-tag::before {
    content: '🏷️';
    margin-right: 0.5rem;
}

/* 悬浮效果 */
.index-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 文章元信息样式 */
.index-btm {
    margin-top: 1rem;  /* 减小底部信息上方间距 */
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(125, 125, 125, 0.2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.index-btm > div {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.index-btm i {
    font-size: 1.1rem;
    margin-right: 0.4rem;
    color: var(--link-hover-color);
}

/* 文章分类和标签样式 */
.index-tag, .index-category {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    margin-right: 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    background: rgba(58, 123, 213, 0.1);
    color: var(--link-hover-color);
    transition: all 0.3s ease;
}

[data-user-color-scheme='dark'] .index-tag,
[data-user-color-scheme='dark'] .index-category {
    background: rgba(58, 123, 213, 0.2);
}

.index-tag:hover, .index-category:hover {
    background: var(--link-hover-color);
    color: #fff;
    transform: translateY(-2px);
}

/* 文章分割线 */
.post-content p {
    margin-bottom: 1.5rem;
}

.post-content hr {
    height: 3px;
    background-image: linear-gradient(to right, transparent, var(--link-hover-color), transparent);
    border: none;
    margin: 2rem 0;
}

/* 文章图片效果 */
.post-content img {
    max-width: 80%;
    max-height: 600px;
    margin: 1rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

[data-user-color-scheme='dark'] .post-content img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 目录样式 - 仅保留自定义的样式 */
#toc-wrapper {
    background-color: var(--board-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#toc-wrapper:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

#toc a {
    color: var(--text-color);
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
    display: block;
    margin: 0.3rem 0;
}

#toc a:hover, #toc a.active {
    color: var(--link-hover-color);
    border-left-color: var(--link-hover-color);
    background-color: rgba(0, 0, 0, 0.03);
}

[data-user-color-scheme='dark'] #toc a:hover, 
[data-user-color-scheme='dark'] #toc a.active {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 文章内容样式 */
.post-content {
    background-color: var(--board-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* 文章内容区域样式 */
#board {
    position: relative;
    padding:  0;
}

#board::before,
#board::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 1;
}

#board::before {
    left: -180px;
    background: 
        radial-gradient(circle at 20% 20%, rgba(58, 123, 213, 0.15) 4px, transparent 4px),
        radial-gradient(circle at 60% 40%, rgba(58, 123, 213, 0.1) 6px, transparent 6px),
        radial-gradient(circle at 40% 60%, rgba(58, 123, 213, 0.15) 4px, transparent 4px),
        radial-gradient(circle at 80% 80%, rgba(58, 123, 213, 0.1) 8px, transparent 8px);
    background-size: 100px 100px;
}

#board::after {
    right: -180px;
    background: 
        radial-gradient(circle at 80% 20%, rgba(58, 123, 213, 0.1) 8px, transparent 8px),
        radial-gradient(circle at 40% 40%, rgba(58, 123, 213, 0.15) 4px, transparent 4px),
        radial-gradient(circle at 60% 60%, rgba(58, 123, 213, 0.1) 6px, transparent 6px),
        radial-gradient(circle at 20% 80%, rgba(58, 123, 213, 0.15) 4px, transparent 4px);
    background-size: 100px 100px;
}

/* 移动端隐藏装饰 */
@media (max-width: 991.98px) {
    #board::before,
    #board::after {
        display: none;
    }
}

/* 文章页面整体背景 */
.post-page {
    background-color: rgba(var(--board-bg-color), 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-top: 2rem;
    padding: 1rem;
    position: relative;
    overflow: visible;
}

/* 文章两侧装饰 */
.post-page::before,
.post-page::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 200px;
    pointer-events: none;
    z-index: -1;
}

.post-page::before {
    left: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(58, 123, 213, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 60% 40%, rgba(58, 123, 213, 0.1) 3px, transparent 3px),
        radial-gradient(circle at 40% 60%, rgba(58, 123, 213, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(58, 123, 213, 0.1) 4px, transparent 4px);
    background-size: 100px 100px;
}

.post-page::after {
    right: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(58, 123, 213, 0.1) 4px, transparent 4px),
        radial-gradient(circle at 40% 40%, rgba(58, 123, 213, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 60% 60%, rgba(58, 123, 213, 0.1) 3px, transparent 3px),
        radial-gradient(circle at 20% 80%, rgba(58, 123, 213, 0.1) 2px, transparent 2px);
    background-size: 100px 100px;
}

/* 暗色模式下的装饰样式 */
[data-user-color-scheme='dark'] .post-page::before,
[data-user-color-scheme='dark'] .post-page::after {
    opacity: 0.15;
}

[data-user-color-scheme='dark'] .post-page::before {
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.2) 3px, transparent 3px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 4px, transparent 4px);
    background-size: 100px 100px;
}

[data-user-color-scheme='dark'] .post-page::after {
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 4px, transparent 4px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.2) 3px, transparent 3px),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 100px 100px;
}

/* 文章摘要和按钮样式 */
.index-excerpt-wrap {
    margin-top: 0.5rem;  /* 减小摘要上方间距 */
    margin-bottom: 0.5rem;
}


.index-excerpt {
    color: var(--sec-text-color);
    
    line-height: 1.7;
    font-size: 0.95rem;
    font-family: 'Noto Serif SC', serif;
    text-align: justify;
    display: block;
    overflow: visible;
    max-height: none;
    white-space: normal;
    word-break: break-word;
}

/* 响应式摘要内容控制 */
.excerpt-mobile {
    display: none;
}

.excerpt-small-mobile {
    display: none;
}

/* 联系方式图标样式 */
.contact-icons {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.contact-icons .nav-link {
    padding: 0.3rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 0.15rem;
}

.contact-icons .nav-link i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

.contact-icons .nav-link:hover {
    transform: translateY(-2px);
}

.contact-icons .nav-link:hover i {
    color: #fff;
}

/* 每个图标的特殊颜色 */
.contact-icons .nav-link i.ri-mail-line:hover {
    color: #D44638;
}

.contact-icons .nav-link i.ri-github-fill:hover {
    color: #24292e;
}

.contact-icons .nav-link i.ri-twitter-fill:hover {
    color: #1DA1F2;
}

.contact-icons .nav-link i.ri-telegram-fill:hover {
    color: #0088cc;
}

/* 导航栏滚动后的图标样式 */
.navbar.scrolled .contact-icons .nav-link i {
    color: var(--text-color);
}

/* 暗色模式下的图标样式 */
[data-user-color-scheme='dark'] .contact-icons .nav-link i {
    color: rgba(255, 255, 255, 0.85);
}

[data-user-color-scheme='dark'] .navbar.scrolled .contact-icons .nav-link i {
    color: var(--text-color-dark);
}

/* 移动端适配 */
@media (max-width: 991.98px) {
    .contact-icons {
        margin: 0.5rem 0;
        justify-content: center;
        width: 100%;
    }
    
    .contact-icons .nav-link {
        margin: 0 0.4rem;
    }
}

/* 首页头图下方联系方式图标样式 */
.banner-contact-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.banner-contact-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0.6rem;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.banner-contact-icons a:hover {
    transform: translateY(-5px);
    color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 特定图标的悬停效果 */
.banner-contact-icons a:nth-child(1):hover {
    background: #D44638; /* 邮箱图标 */
}

.banner-contact-icons a:nth-child(2):hover {
    background: #24292e; /* GitHub图标 */
}

.banner-contact-icons a:nth-child(3):hover {
    background: #12B7F5; /* QQ图标 */
}

/* 手机端适配 */
@media (max-width: 767.98px) {
    .banner-contact-icons {
        margin-top: 1rem;
    }
    
    .banner-contact-icons a {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
        margin: 0 0.4rem;
    }
}

/* footer相关的样式优化 */
.footer-content-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 20px;
    margin-right: 15px;
}

.footer-section {
    max-width: 300px;
    margin: 10px;
    text-align: center;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto 10px;
    transition: transform 0.3s ease;
    display: block;
}

.footer-logo:hover {
    transform: rotate(10deg);
}

.footer-section h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
    text-align: center;
}

.footer-section h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #0d6efd;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--link-hover-color);
}

/* 暗色模式适配 */
[data-user-color-scheme="dark"] .footer-links a {
    color: var(--text-color-dark);
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #495057;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    transform: translateY(-3px);
}

.footer-contact a i {
    font-size: 1.2rem;
}

.footer-contact a:hover i.ri-mail-line {
    color: #D44638;
}

.footer-contact a:hover i.ri-rss-fill {
    color: #24292e;
}

.footer-contact a:hover i.ri-twitter-fill {
    color: #12B7F5;
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #6c757d;
}

.footer-copyright a {
    color: #0d6efd;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* 更多友链按钮样式 */
.more-links {
    display: inline-block;
    margin-left: 15px;
    color: #0d6efd;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.more-links:hover {
    color: #0a58ca;
    transform: translateX(-2px);
}

.more-links i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.more-links:hover i {
    transform: translateX(3px);
}

[data-user-color-scheme='dark'] .more-links {
    color: #63b3ed;
}

[data-user-color-scheme='dark'] .more-links:hover {
    color: #4299e1;
}

/* 暗色模式适配 */
[data-user-color-scheme='dark'] .footer-contact a {
    background: #2d3748;
    color: #cbd5e0;
}

[data-user-color-scheme='dark'] .footer-section h5:after {
    background: #3182ce;
}

[data-user-color-scheme='dark'] .footer-copyright {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #a0aec0;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .footer-content-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-section {
        margin: auto;
        min-width: auto;
    }
}

/* 头图下方引言样式 */
.banner-motto {
    margin-top: 1.5rem;
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.banner-motto p {
    margin: 0.8rem 0;  /* 增加段落之间的间距 */
    line-height: 1.6;
}

.banner-motto:hover {
    opacity: 1;
    transform: translateY(-3px);
}

[data-user-color-scheme='dark'] .banner-motto {
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
    .banner-motto {
        font-size: 0.9rem;
        margin-top: 10px;
    }
}

/* 移动端适配 */
@media (max-width: 767.98px) {
    .read-more-btn {
        font-size: 0.85rem;
        padding: 0.25rem 0.8rem;
    }
    
    .index-excerpt {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* 超链接样式优化 */
.post-content p a, 
.post-content li a, 
.post-content blockquote a {
    color: var(--post-text-color); /* 与文章正文颜色一致 */
    font-weight: normal; /* 正常字重，与文章一致 */
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(var(--link-hover-color-rgb), 0.4);
    text-decoration-thickness: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative; /* 添加相对定位，用于放置上标 */
}

.post-content p a:hover, 
.post-content li a:hover, 
.post-content blockquote a:hover {
    text-decoration-color: var(--link-hover-color);
    text-decoration-thickness: 1.5px;
}

/* 自定义引用块样式 */
.markdown-body blockquote {
    border-left: 4px solid #30a9de;
    background-color: rgba(var(--board-bg-color), 0.3);
    padding: 0.8rem 1rem;
    border-radius: 0 4px 4px 0;
    margin: 1.2rem 0;
    color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
}

.markdown-body blockquote p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

.markdown-body blockquote::before {
    content: "\201C";
    position: absolute;
    left: 5px;
    top: -8px;
    font-size: 2rem;
    font-family: Georgia, serif;
    color: #30a9de;
    opacity: 0.5;
}

/* 暗色模式下的引用块样式 */
[data-user-color-scheme='dark'] .markdown-body blockquote {
    border-left-color: #30a9de;
    background-color: rgba(48, 169, 222, 0.1);
}

[data-user-color-scheme='dark'] .markdown-body blockquote::before {
    color: #ffffff;
    opacity: 0.3;
}

/* 文章底部分类和标签样式优化 */
.post-metas {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-metas .post-meta {
    display: flex;
    align-items: center;
}

.post-metas i {
    margin-right: 0.25rem;
    color: var(--link-hover-color);
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
}

[data-user-color-scheme='dark'] .post-metas i {
    color: #ffffff;
    opacity: 0.95;
    margin-right: 0.25rem;
}

.post-metas a {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    margin: 0.1rem;
    background: rgba(var(--link-hover-color-rgb), 0.08);
    border-radius: 0.25rem;
    color: var(--text-color);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.post-metas a:hover {
    background: rgba(var(--link-hover-color-rgb), 0.15);
    color: var(--link-hover-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.post-metas .tags a {
    padding: 0.2rem 0.5rem;
}

/* 暗色模式适配 */
[data-user-color-scheme='dark'] .post-metas a {
    background: rgba(var(--link-hover-color-rgb), 0.25);
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-user-color-scheme='dark'] .post-metas a:hover {
    background: rgba(var(--link-hover-color-rgb), 0.4);
    color: #ffffff;
}

/* 移动端适配 - 保持一左一右 */
@media (max-width: 767.98px) {
    .post-metas {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .post-metas .post-meta {
        margin-right: auto;
        font-size: 0.8rem;
    }
    
    .post-metas .tags {
        margin-left: auto;
        font-size: 0.8rem;
    }
    
    .post-metas a {
        padding: 0.15rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .post-metas i {
        margin-right: 0.3rem;
        font-size: 0.9rem;
    }
}

/* 超窄屏幕适配 */
@media (max-width: 350px) {
    .post-metas {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-metas .post-meta {
        margin: 0.3rem 0;
    }
}

@media (max-width: 575.98px) {
    .excerpt-desktop {
        display: none;
    }
    
    .excerpt-mobile {
        display: none;
    }
    
    .excerpt-small-mobile {
        display: inline;
    }
    
    .index-excerpt {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

/* 暗色模式下页脚文字适配 */
[data-user-color-scheme='dark'] .footer-inner,
[data-user-color-scheme='dark'] .footer-inner .statistics span,
[data-user-color-scheme='dark'] .footer-inner .beian span,
[data-user-color-scheme='dark'] .footer-inner .beian a,
[data-user-color-scheme='dark'] .footer-inner .footer-content {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-user-color-scheme='dark'] .footer-inner a {
    color: #63b3ed !important;
}

[data-user-color-scheme='dark'] .footer-inner a:hover {
    color: #90caf9 !important;
}

[data-user-color-scheme='dark'] .footer-copyright {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-user-color-scheme='dark'] .footer-copyright a {
    color: #63b3ed !important;
}

[data-user-color-scheme='dark'] .footer-copyright a:hover {
    color: #90caf9 !important;
}

/* 页脚条目暗色适配 */
[data-user-color-scheme='dark'] .footer-inner > div,
[data-user-color-scheme='dark'] .footer-inner > div:not(:first-child) {
    color: rgba(255, 255, 255, 0.7);
}

/* 关于页图标样式优化 */
.about-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.about-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.8);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-icons a:hover {
    transform: translateY(-5px);
    color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 特定图标的悬停效果 */
.about-icons a i.ri-mail-line,
.about-icons a i.fa-envelope {
    color: #495057;
}

.about-icons a i.ri-github-fill,
.about-icons a i.fa-github {
    color: #495057;
}

.about-icons a i.ri-twitter-fill,
.about-icons a i.fa-twitter {
    color: #495057;
}

.about-icons a i.ri-qq-fill,
.about-icons a i.fa-qq {
    color: #495057;
}

.about-icons a:hover i.ri-mail-line,
.about-icons a:hover i.fa-envelope {
    color: #fff;
}

.about-icons a:hover i.ri-github-fill,
.about-icons a:hover i.fa-github {
    color: #fff;
}

.about-icons a:hover i.ri-twitter-fill,
.about-icons a:hover i.fa-twitter {
    color: #fff;
}

.about-icons a:hover i.ri-qq-fill,
.about-icons a:hover i.fa-qq {
    color: #fff;
}

/* 邮箱图标悬停背景 */
.about-icons a:has(i.ri-mail-line):hover,
.about-icons a:has(i.fa-envelope):hover {
    background: #D44638;
}

/* GitHub图标悬停背景 */
.about-icons a:has(i.ri-github-fill):hover,
.about-icons a:has(i.fa-github):hover {
    background: #24292e;
}

/* Twitter图标悬停背景 */
.about-icons a:has(i.ri-twitter-fill):hover,
.about-icons a:has(i.fa-twitter):hover {
    background: #1DA1F2;
}

/* QQ图标悬停背景 */
.about-icons a:has(i.ri-qq-fill):hover,
.about-icons a:has(i.fa-qq):hover {
    background: #12B7F5;
}

/* 暗色模式适配 */
[data-user-color-scheme='dark'] .about-icons a {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

[data-user-color-scheme='dark'] .about-icons a i {
    color: rgba(255, 255, 255, 0.9);
}

/* 暗色模式下的QR码图片 */
[data-user-color-scheme='dark'] .about-icons .qr-img {
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* 手机端适配 */
@media (max-width: 767.98px) {
    .about-icons {
        margin-top: 1rem;
        gap: 0.7rem;
    }
    
    .about-icons a {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }
}

/* 关于页标题和介绍在暗色模式下的样式 */
[data-user-color-scheme='dark'] .about-name {
    color: rgba(255, 255, 255, 0.9);
}

[data-user-color-scheme='dark'] .about-intro {
    color: rgba(255, 255, 255, 0.8);
}

/* 导航栏居中对齐 */
.navbar .navbar-nav {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* 导航栏左侧logo和右侧功能区域对称布局 */
.navbar-brand {
    margin-right: 0;
}

.navbar .navbar-collapse {
    justify-content: space-between;
}

/* 适配移动端 */
@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin: 0;
        text-align: center;
        transform: none;
    }
    
    .navbar-collapse {
        padding-top: 0.5rem;
    }
}

#subtitle {
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

/* 字数统计样式 */
.footer-section .wordcount-statistics {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    text-align: center;
}

.footer-section .wordcount-statistics i {
    margin-right: 5px;
    color: #3a7bd5;
}

.footer-section .wordcount-statistics span {
    font-weight: 500;
    margin-left: 3px;
    margin-right: 3px;
    color: #3a7bd5;
    display: inline-block;
}

/* 页脚中间内容整体居中 */
.footer-section:nth-child(2) > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

/* 版权信息和备案信息居中并右移 */
.footer-copyright, .beian {
    text-align: center;
    padding-left: 3rem;
}

/* 移动端适配 */
@media (max-width: 767.98px) {
    .footer-copyright, .beian {
        padding-right: 3rem;
        text-align: center;
    }
}

[data-user-color-scheme='dark'] .footer-section .wordcount-statistics {
    color: rgba(255, 255, 255, 0.7);
}

[data-user-color-scheme='dark'] .footer-section .wordcount-statistics i,
[data-user-color-scheme='dark'] .footer-section .wordcount-statistics span {
    color: #63b3ed;
}

@media (max-width: 767.98px) {
    .footer-section .wordcount-statistics {
        justify-content: center;
    }
}

/* 归档页样式优化 */
.list-group-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

/* 归档页暗色模式适配 - 修复全黑问题 */
[data-user-color-scheme='dark'] .list-group-item {
    background-color: rgba(50, 55, 65, 0.6) !important; /* 使用更亮的背景色并确保优先级 */
    border-color: rgba(255, 255, 255, 0.1);
}

/* 归档页悬浮效果 */
.list-group-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    border-left: 3px solid var(--link-hover-color);
}

[data-user-color-scheme='dark'] .list-group-item:hover {
    background-color: rgba(70, 75, 85, 0.8) !important; /* 使用更亮的悬浮背景色并确保优先级 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 归档页日期样式 */
.list-group-item span.archive-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

[data-user-color-scheme='dark'] .list-group-item span.archive-date {
    color: rgba(255, 255, 255, 0.8) !important; /* 增加亮度并确保优先级 */
}

/* 归档页标题样式 */
.list-group-item a.archive-title {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

[data-user-color-scheme='dark'] .list-group-item a.archive-title {
    color: rgba(255, 255, 255, 0.95) !important; /* 使文字更亮并确保优先级 */
}

.list-group-item:hover a.archive-title {
    color: var(--link-hover-color);
}

/* 修复归档页背景、标题、分类等元素的暗色模式 */
[data-user-color-scheme='dark'] .archive,
[data-user-color-scheme='dark'] #board .container .card-content {
    background-color: transparent !important;
}

[data-user-color-scheme='dark'] .list-group {
    background-color: transparent !important;
}

[data-user-color-scheme='dark'] .archive-timeline-title,
[data-user-color-scheme='dark'] .archive-group-year {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* 归档页年份标题样式 */
.archive-group-year {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1.5rem 0 1rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-color);
}

.archive-group-year::before {
    content: '🗂️';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

[data-user-color-scheme='dark'] .archive-group-year {
    color: rgba(255, 255, 255, 0.95);
}

/* 归档页文章计数样式 */
.archive-group-count {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: normal;
    margin-left: 0.5rem;
    background: rgba(var(--link-hover-color-rgb), 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease;
}

[data-user-color-scheme='dark'] .archive-group-count {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(var(--link-hover-color-rgb), 0.2);
}

/* 归档页月份标题样式 */
.archive-group-month {
    font-size: 1.2rem;
    margin: 1rem 0 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-color);
}

.archive-group-month::before {
    content: '📅';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

[data-user-color-scheme='dark'] .archive-group-month {
    color: rgba(255, 255, 255, 0.9);
}

/* 归档页导航标签样式 */
.archive-tags-container {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.archive-tag-item {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(var(--link-hover-color-rgb), 0.1);
    color: var(--link-hover-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.archive-tag-item:hover {
    background: var(--link-hover-color);
    color: white;
    transform: translateY(-2px);
}

[data-user-color-scheme='dark'] .archive-tag-item {
    background: rgba(var(--link-hover-color-rgb), 0.2);
    color: rgba(255, 255, 255, 0.9);
}

[data-user-color-scheme='dark'] .archive-tag-item:hover {
    background: var(--link-hover-color);
}

/* 归档页分页样式 */
.pagination {
    margin-top: 2rem;
}

.page-link {
    border-radius: 8px;
    margin: 0 0.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: rgba(var(--link-hover-color-rgb), 0.1);
    color: var(--link-hover-color);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: var(--link-hover-color);
    border-color: var(--link-hover-color);
    color: white;
}

[data-user-color-scheme='dark'] .page-link {
    background-color: rgba(40, 44, 52, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

[data-user-color-scheme='dark'] .page-link:hover {
    background-color: rgba(var(--link-hover-color-rgb), 0.3);
    color: rgba(255, 255, 255, 0.95);
}

[data-user-color-scheme='dark'] .page-item.active .page-link {
    background-color: var(--link-hover-color);
    border-color: var(--link-hover-color);
    color: white;
}

/* 移动端适配 */

/* 归档页面样式优化 - 基于archive-list.ejs模板结构 */
.list-group {
    margin-bottom: 2rem;
}

.list-group .h4 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
    margin-top: 3rem;
    position: relative;
    padding-left: 1.8rem;
}

.list-group .h4::before {
    content: '📚';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
}

.list-group hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    margin: 1rem 0 1.5rem;
}

.list-group .h5 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
    position: relative;
    padding-left: 1.8rem;
    display: flex;
    align-items: center;
}

.list-group .h5::before {
    content: '📅';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.list-group .list-group-item {
    border-radius: 8px;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.list-group .list-group-item:hover {
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.9);
    border-left: 3px solid var(--link-hover-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.list-group .list-group-item time {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #6c757d;
    font-size: 0.9rem;
    margin-right: 1rem;
    min-width: 45px;
    display: inline-block;
}

.list-group .list-group-item-title {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.05rem;
    flex: 1;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

/* 暗色模式归档页适配 */
[data-user-color-scheme='dark'] .list-group .h4,
[data-user-color-scheme='dark'] .list-group .h5 {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-user-color-scheme='dark'] .list-group hr {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

[data-user-color-scheme='dark'] .list-group .list-group-item {
    background-color: rgba(60, 65, 75, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-user-color-scheme='dark'] .list-group .list-group-item:hover {
    background-color: rgba(70, 75, 85, 0.8) !important;
    border-left-color: var(--link-hover-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-user-color-scheme='dark'] .list-group .list-group-item time {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-user-color-scheme='dark'] .list-group .list-group-item-title {
    color: rgba(255, 255, 255, 0.9) !important;
    border-left-color: rgba(255, 255, 255, 0.15);
}

/* 分页样式优化 */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.page-item {
    margin: 0 0.2rem;
}

.page-link {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

.page-link:hover {
    background-color: rgba(var(--link-hover-color-rgb), 0.1);
    color: var(--link-hover-color);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: var(--link-hover-color);
    border-color: var(--link-hover-color);
    color: white !important;
    box-shadow: 0 4px 8px rgba(var(--link-hover-color-rgb), 0.3);
}

[data-user-color-scheme='dark'] .page-link {
    background-color: rgba(60, 65, 75, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

[data-user-color-scheme='dark'] .page-link:hover {
    background-color: rgba(var(--link-hover-color-rgb), 0.3);
    color: rgba(255, 255, 255, 0.95);
}

[data-user-color-scheme='dark'] .page-item.active .page-link {
    background-color: var(--link-hover-color);
    border-color: var(--link-hover-color);
    color: white !important;
}

/* 卡片内容区域暗色模式优化 */
[data-user-color-scheme='dark'] #board .container .card-content {
    background-color: rgba(30, 35, 45, 0.7) !important;
}

[data-user-color-scheme='dark'] .card-content {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* 汉堡菜单图标样式 */
.navbar .animated-icon span {
    background-color: rgba(255, 255, 255, 0.9) !important;
    transition: background-color 0.3s ease;
}

/* 滚动时的图标颜色 */
.navbar.scrolled .animated-icon span {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

/* 暗色模式下的图标颜色始终保持白色 */
[data-user-color-scheme='dark'] .navbar .animated-icon span,
[data-user-color-scheme='dark'] .navbar.scrolled .animated-icon span {
    background-color: rgba(255, 255, 255, 0.9) !important;
}
/* 文章元信息样式优化 */
.index-btm {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: none;  /* 移除原有的虚线边框 */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  position: relative;  /* 添加相对定位 */
}

/* 添加丝带装饰效果 */
.index-btm::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(
      90deg,
      transparent,
      var(--link-hover-color) 20%,
      var(--link-hover-color) 80%,
      transparent
  );
}

.index-btm::after {
  content: "✦";  /* 使用星星装饰 */
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--link-hover-color);
  background: var(--board-bg-color);
  padding: 0 10px;
  font-size: 16px;
  line-height: 20px;
}

/* 暗色模式适配 */
[data-user-color-scheme='dark'] .index-btm::before {
  background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.3) 20%,
      rgba(255, 255, 255, 0.3) 80%,
      transparent
  );
}

[data-user-color-scheme='dark'] .index-btm::after {
  color: rgba(255, 255, 255, 0.8);
  background: var(--board-bg-color);
}

/* 移动端适配 */
@media (max-width: 767.98px) {
  .index-btm::before {
      width: 90%;
  }
  
  .index-btm::after {
      font-size: 14px;
      top: -8px;
  }
  
  .index-btm {
      margin-top: 1rem;
      margin-bottom: -0.1rem;
      padding-top: 0.8rem;
      gap: 0.5rem;

  }
}
.about-avatar img {
    width: 100%;
    height: 100%;
    border-radius:
  50%;
    background-color: transparent;
    object-fit: cover;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
    margin-top: 1rem;
  }

/* 导航栏头像样式优化 */
.navbar-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important; /* 确保圆形显示 */
    overflow: hidden !important;
    display: inline-block !important;
    cursor: pointer !important;
    margin-left: 10px;
    
  }
  
  .navbar-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important; /* 确保图片也是圆形 */
    
  }
  
  /* 移除头像悬停时的旋转效果 */
  .navbar-avatar:hover {
    /* 移除旋转变换 */
    transform: none !important;
    border-color: var(--link-hover-color, #0085a1) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2) !important;
  }
  



  /* 导航栏三栏布局 */
.navbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  
  /* 修改导航菜单位置为居中 */
  .navbar .navbar-nav {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    float: none !important;
  }
  
  /* 头像和站点标题放在左侧 */
  .navbar-brand {
    margin-right: auto !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  /* 搜索和主题切换按钮放在右侧 */
  .navbar .right-container {
    margin-left: auto !important;
    position: relative !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
  }
  
  /* 确保导航栏内元素垂直居中 */
  .navbar-avatar,
  .navbar-brand,
  .navbar .navbar-nav,
  .navbar .nav-item,
  .navbar .right-container {
    display: flex !important;
    align-items: center !important;
  }
  
  /* 移动端适配 */
  @media (max-width: 991.98px) {
    /* 移除居中定位，恢复正常文档流 */
    .navbar .navbar-nav {
      position: static !important;
      transform: none !important;
      margin: 0 auto !important;
      text-align: center !important;
      width: 100% !important;
    }
    
    /* 确保折叠菜单正常显示 */
    .navbar-collapse {
      flex-basis: 100% !important;
      flex-grow: 1 !important;
    }
    
    /* 恢复移动端下的按钮布局 */
    .navbar-collapse .nav-item#search-btn,
    .navbar-collapse .nav-item#color-toggle-btn {
      width: 100% !important;
      text-align: center !important;
      display: flex !important;
      justify-content: center !important;
    }
    
    /* 隐藏顶部右侧的按钮（它们会显示在折叠菜单中） */
    .navbar > .right-container {
      display: none !important;
    }
  }
  /* 修复移动端汉堡菜单显示为侧边栏的问题 */
@media (max-width: 991.98px) {
    /* 确保折叠菜单正确显示为下拉式而非侧边栏 */
    .navbar-collapse {
      position: absolute !important;
      top: 100% !important;
      left: 0 !important;
      right: 0 !important;
      width: 100% !important;
      transform: none !important;
      z-index: 1030 !important;
      transition: height 0.35s ease !important;
      height: auto !important;
      overflow-y: auto !important;
      background-color: rgba(255, 255, 255, 0.95) !important;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1) !important;
      margin: 0 !important;
    }
    
    /* 暗色模式下菜单背景 */
    [data-user-color-scheme='dark'] .navbar-collapse {
      background-color: rgba(18, 18, 18, 0.95) !important;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) !important;
    }
  
    /* 去除任何可能导致侧边栏效果的样式 */
    .navbar-collapse,
    .navbar-collapse.collapse,
    .navbar-collapse.show {
      left: 0 !important;
      right: 0 !important;
      transform: none !important;
      position: absolute !important;
      width: 100% !important;
      max-width: 100% !important;
      height: auto !important;
      max-height: calc(100vh - 3.5rem) !important;
      margin-top: 0 !important;
      border-radius: 0 0 0.5rem 0.5rem !important;
    }
    
    /* 修复 offcanvas 相关样式 */
    .offcanvas,
    .offcanvas-lg,
    .offcanvas-md,
    .offcanvas-sm,
    .offcanvas-xl,
    .offcanvas-xxl {
      position: static !important;
      transform: none !important;
      width: auto !important;
      visibility: visible !important;
      background-color: transparent !important;
      border: none !important;
    }
    
    /* 移除任何可能导致侧边滑动的样式 */
    .offcanvas-backdrop,
    .modal-backdrop {
      display: none !important;
    }
    
    /* 确保导航项垂直排列 */
    .navbar-nav {
      flex-direction: column !important;
      padding: 0.5rem 1rem !important;
      margin: 0 !important;
    }
    
    /* 确保导航项宽度正确 */
    .navbar-nav .nav-item {
      width: 100% !important;
      text-align: center !important;
      margin: 0.25rem 0 !important;
    }
    
    /* 导航项链接样式 */
    .navbar-nav .nav-item .nav-link {
      padding: 0.5rem 1rem !important;
      margin: 0 !important;
      width: 100% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    
    /* 确保搜索和主题切换按钮在折叠菜单中正确显示 */
    .navbar-collapse .nav-item#search-btn,
    .navbar-collapse .nav-item#color-toggle-btn {
      width: 100% !important;
      text-align: center !important;
      display: flex !important;
      justify-content: center !important;
      margin: 0.5rem 0 !important;
    }
  }
  /* 导航菜单展开和收起的平滑动画 */
@media (max-width: 991.98px) {
    /* 控制菜单收起状态 */
    .navbar-collapse.collapse:not(.show) {
      display: block !important;
      height: 0 !important;
      padding-top: 0 !important;
      padding-bottom: 0 !important;
      overflow: hidden !important;
      transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
      opacity: 0 !important;
      transform: translateY(-10px) !important;
      visibility: hidden !important;
    }
    
    /* 控制菜单展开状态 */
    .navbar-collapse.collapse.show {
      opacity: 1 !important;
      transform: translateY(0) !important;
      transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
      visibility: visible !important;
      height: auto !important;
    }
    
    /* 过渡中的状态 */
    .navbar-collapse.collapsing {
      height: auto !important;
      transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
      opacity: 0 !important;
      transform: translateY(-10px) !important;
    }
  }
 /*对于标题离顶部页的距离*/
 .markdown-body > h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 {
    color: var(--post-heading-color);
    transition:
  color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
    font-weight: bold;
    margin-bottom: 0.75em;
    margin-top: -2em;
  }

  /*解决目录点击问题*/
  /* 修复目录点击失效和样式问题 */
#toc {
    visibility: visible !important;
  }
  
  /* 确保目录容器可点击 */
  #toc-body, .tocbot-list, .tocbot-item, .tocbot-link {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  /* 高亮当前活动链接 */
  .tocbot-active-link {
    color: var(--link-hover-color) !important;
    font-weight: bold !important;
  }
  
  /* 设置活动项左侧边框 */
  .tocbot-link {
    position: relative !important;
    display: block !important;
    padding: 0.3rem 0.5rem 0.3rem 0.8rem !important;
    transition: all 0.2s ease !important;
  }
  
  .tocbot-link::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 3px !important;
    background-color: transparent !important;
    transition: background-color 0.2s ease !important;
  }
  
  .tocbot-active-link::before {
    background-color: var(--link-hover-color) !important;
  }
  
  /* 确保鼠标悬停效果 */
  .tocbot-link:hover {
    color: var(--link-hover-color) !important;
    background-color: rgba(var(--link-hover-color-rgb), 0.1) !important;
  }
  
  /* 为活动项的父项添加样式 */
  .is-active-li > .tocbot-item {
    background-color: rgba(var(--link-hover-color-rgb), 0.05) !important;
  }
  /* 强制所有目录相关元素可点击 - 添加到custom.css */
.sidebar,
#toc, 
#toc-body,
.tocbot-list,
.tocbot-item,
.tocbot-link,
.toc-list-item {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
  cursor: pointer !important;
  user-select: text !important;
}

.tocbot-link {
  display: inline-block !important;
  width: 100% !important;
  text-decoration: none !important;
}

/* 移除任何可能阻止点击的伪元素覆盖 */
.tocbot-link::after, 
.tocbot-link::before {
  content: none !important;
  display: none !important;
}

/* 确保目录容器可见并且不被其他元素覆盖 */
#toc-wrapper, 
.sidebar {
  z-index: 5 !important;
  position: relative !important;
  overflow: visible !important;
}
/*---------------解决方案--------------------*/
/* 目录样式修复 - 确保可点击且保持样式 */
#toc, 
#toc-body, 
.tocbot-list,
.tocbot-item,
.tocbot-link {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 1 !important;
}

.tocbot-list {
  padding: 0 !important;
}

.tocbot-link {
  cursor: pointer !important;
  display: block !important;
  padding: 0.3rem 0.5rem 0.3rem 0.8rem !important;
  position: relative !important;
}

.tocbot-active-link {
  color: var(--link-hover-color) !important;
  font-weight: bold !important;
}

.tocbot-active-link::before {
  content: '';
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 3px !important;
  background-color: var(--link-hover-color) !important;
}

.is-active-li > .tocbot-item {
  background-color: rgba(var(--link-hover-color-rgb), 0.05) !important;
}

.tocbot-link:hover {
  color: var(--link-hover-color) !important;
  background-color: rgba(var(--link-hover-color-rgb), 0.1) !important;
}
/* 修复目录容器滚动问题 */
.sidebar {
    height: auto !important;
    max-height: 70vh !important; /* 限制最大高度为视窗高度的70% */
    overflow-y: auto !important; /* 启用垂直滚动 */
    overflow-x: hidden !important; /* 禁用水平滚动 */
    position: sticky !important; /* 使侧边栏粘性定位 */
    top: 80px !important; /* 距顶部距离 */
    padding-right: 5px !important; /* 为滚动条预留空间 */
  }
  
  /* 美化滚动条 */
  .sidebar::-webkit-scrollbar {
    width: 4px !important;
  }
  
  .sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 2px !important;
  }
  
  .sidebar::-webkit-scrollbar-thumb {
    background: rgba(var(--link-hover-color-rgb), 0.3) !important;
    border-radius: 2px !important;
  }
  
  .sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--link-hover-color-rgb), 0.6) !important;
  }
  
  /* 确保目录项在目录容器内可见 */
  .tocbot-link {
    transition: all 0.2s ease-in-out !important;
  }

  
  /*-----------------解决方案-------------------*/


  /*---------解决标题-------------------*/
  /* 品牌容器左偏移样式 */
.brand-container.d-flex.align-items-center {
    margin-left: -15px; /* 向左偏移15px */
    /* 或者使用transform方式 */
    /* transform: translateX(-15px); */
  }
  
  /* 如果需要在移动端调整偏移量 */

  /*--------评论样式---------*/
  /* Waline自定义样式 */
/* 评论框容器 */
.wl-panel {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
  }
  
  /* 评论编辑器 */
  .wl-editor {
    min-height: 120px;
    border-radius: 6px;
    padding: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
  }
  
  .wl-editor:focus {
    border-color: var(--link-hover-color);
    box-shadow: 0 0 5px rgba(var(--link-hover-color-rgb), 0.3);
  }
  
  /* 提交按钮 */
  .wl-btn {
    background-color: var(--link-hover-color) !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 6px 16px;
    transition: all 0.3s ease;
  }
  
  .wl-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(var(--link-hover-color-rgb), 0.3);
  }
  
  /* 评论卡片 */
  .wl-card {
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    background-color: rgba(255, 255, 255, 0.8);
  }
  
  .wl-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  }
  
  /* 评论者头像 */
  .wl-avatar {
    border-radius: 50%;
    border: 2px solid rgba(var(--link-hover-color-rgb), 0.2);
  }
  
  /* 评论者昵称 */
  .wl-nick {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none !important;
  }
  
  /* 评论内容 */
  .wl-content {
    font-size: 15px;
    line-height: 1.6;
    margin: 10px 0;
    color: var(--post-text-color);
  }
  
  /* 评论元数据(日期、回复等) */
  .wl-meta {
    font-size: 13px;
    color: var(--sec-text-color);
  }
  
  /* 回复/点赞按钮 */
  .wl-like, .wl-reply {
    transition: all 0.2s ease;
    opacity: 0.8;
  }
  
  .wl-like:hover, .wl-reply:hover {
    opacity: 1;
    color: var(--link-hover-color);
  }
  
  /* 暗色模式适配 */
  [data-user-color-scheme='dark'] .wl-card {
    background-color: rgba(40, 44, 52, 0.8);
    border: 1px solid #3a3f4c;
  }
  
  [data-user-color-scheme='dark'] .wl-editor {
    background-color: rgba(40, 44, 52, 0.8);
    border-color: #3a3f4c;
    color: var(--text-color-dark);
  }
/* Waline 评论系统暗色模式增强 */
/* 评论计数区域暗色适配 */
[data-user-color-scheme='dark'] .wl-count,
[data-user-color-scheme='dark'] .wl-count a {
  color: rgba(255, 255, 255, 0.8) !important;
  background-color: transparent !important;
  transition: color 0.3s ease;
}

[data-user-color-scheme='dark'] .wl-count a:hover {
  color: var(--link-hover-color) !important;
  text-decoration: underline;
}

/* 评论输入框暗色适配 */
[data-user-color-scheme='dark'] .wl-editor {
  background-color: rgba(40, 44, 52, 0.8) !important;
  border-color: rgba(80, 85, 90, 0.5) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* placeholder 文本暗色适配 */
[data-user-color-scheme='dark'] .wl-editor::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic;
}

/* 评论审核提示样式 */
.wl-moderation-notice {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: rgba(var(--link-hover-color-rgb), 0.1);
  border-left: 3px solid var(--link-hover-color);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: var(--sec-text-color);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.wl-moderation-notice i {
  margin-right: 8px;
  font-size: 16px;
  color: var(--link-hover-color);
}

/* 评论审核提示暗色模式 */
[data-user-color-scheme='dark'] .wl-moderation-notice {
  background-color: rgba(var(--link-hover-color-rgb), 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/* 评论框底部区域适配 */
[data-user-color-scheme='dark'] .wl-footer,
[data-user-color-scheme='dark'] .wl-meta {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* 提交按钮暗色适配 */
[data-user-color-scheme='dark'] .wl-btn {
  background-color: var(--link-hover-color) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
}

[data-user-color-scheme='dark'] .wl-btn:hover {
  background-color: rgba(var(--link-hover-color-rgb), 0.8) !important;
  transform: translate(-2px)
}
  /* Waline 评论系统暗色模式增强 */
/* 评论计数区域暗色适配 */
[data-user-color-scheme='dark'] .wl-count,
[data-user-color-scheme='dark'] .wl-count a {
  color: rgba(255, 255, 255, 0.8) !important;
  background-color: transparent !important;
  transition: color 0.3s ease;
}

[data-user-color-scheme='dark'] .wl-count a:hover {
  color: var(--link-hover-color) !important;
  text-decoration: underline;
}

/* 评论输入框暗色适配 */
[data-user-color-scheme='dark'] .wl-editor {
  background-color: rgba(40, 44, 52, 0.8) !important;
  border-color: rgba(80, 85, 90, 0.5) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* placeholder 文本暗色适配 */
[data-user-color-scheme='dark'] .wl-editor::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic;
}

/* 评论审核提示样式 - 确保显示在面板下方 */
.wl-moderation-notice {
    display: block;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 8px 15px;
    background-color: rgba(var(--link-hover-color-rgb), 0.1);
    border-left: 3px solid var(--link-hover-color);
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    color: var(--sec-text-color);
    text-align: left;
    line-height: 1.6;
  }
  
  .wl-moderation-notice i {
    margin-right: 8px;
    font-size: 16px;
    color: var(--link-hover-color);
    vertical-align: middle;
  }

/* 评论审核提示暗色模式 */
[data-user-color-scheme='dark'] .wl-moderation-notice {
  background-color: rgba(var(--link-hover-color-rgb), 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/* 评论框底部区域适配 */
[data-user-color-scheme='dark'] .wl-footer,
[data-user-color-scheme='dark'] .wl-meta {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* 提交按钮暗色适配 */
[data-user-color-scheme='dark'] .wl-btn {
  background-color: var(--link-hover-color) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
}

[data-user-color-scheme='dark'] .wl-btn:hover {
  background-color: rgba(var(--link-hover-color-rgb), 0.8) !important;
  transform: translate
  }
  /* Waline 评论计数区域暗色适配 */
[data-user-color-scheme='dark'] .wl-count,
[data-user-color-scheme='dark'] .wl-count a {
  color: rgba(255, 255, 255, 0.8) !important;
  background-color: transparent !important;
  transition: color 0.3s ease;
}

[data-user-color-scheme='dark'] .wl-count a:hover {
  color: var(--link-hover-color) !important;
  text-decoration: underline;
}

/* 评论输入框暗色适配 */
[data-user-color-scheme='dark'] .wl-editor {
  background-color: rgba(40, 44, 52, 0.8) !important;
  border-color: rgba(80, 85, 90, 0.5) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* placeholder 文本暗色适配 */
[data-user-color-scheme='dark'] .wl-editor::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic;
}

/* 评论审核提示样式 */
.wl-moderation-notice {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: rgba(var(--link-hover-color-rgb), 0.1);
  border-left: 3px solid var(--link-hover-color);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: var(--sec-text-color);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.wl-moderation-notice i {
  margin-right: 8px;
  font-size: 16px;
  color: var(--link-hover-color);
}

/* 评论审核提示暗色模式 */
[data-user-color-scheme='dark'] .wl-moderation-notice {
  background-color: rgba(var(--link-hover-color-rgb), 0.2);
  color: rgba(255, 255, 255, 0.7);
}
/* Waline评论系统增强 - 预览区域暗色模式适配 */
[data-user-color-scheme='dark'] .wl-preview {
    background-color: rgba(40, 44, 52, 0.8) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(80, 85, 90, 0.5) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    border-radius: 6px;
  }
  
  [data-user-color-scheme='dark'] .wl-preview .wl-content {
    color: rgba(255, 255, 255, 0.9) !important;
  }
  
  [data-user-color-scheme='dark'] .wl-preview pre,
  [data-user-color-scheme='dark'] .wl-preview code {
    background-color: rgba(30, 34, 42, 0.8) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(80, 85, 90, 0.5) !important;
  }
  
  /* 评论预览标题暗色适配 */
  [data-user-color-scheme='dark'] .wl-preview-header {
    color: rgba(255, 255, 255, 0.8) !important;
    border-bottom-color: rgba(80, 85, 90, 0.5) !important;
  }
  
  /* 评论加载动画暗色适配 */
  [data-user-color-scheme='dark'] .wl-loading svg circle {
    stroke: rgba(255, 255, 255, 0.7) !important;
  }
  /*------------------------------------分割线-------------*/

  /*------------分类页---------*/
  
  .row {
    padding: top 1rem;
    padding-bottom: 1rem;
  }
  .category:not(:last-child) {
	margin-bottom: 1rem;
	margin-top: 2rem;
}


/*------------友链页------------*/
/* 友链卡片尺寸优化 - 减小宽度并确保文字完整显示 */
/* 卡片容器 - 进一步减小宽度 */
.card.col-lg-4.col-md-6.col-sm-12 {
    padding: 6px; /* 减小内边距 */
    margin-bottom: 14px;
    float: none;
    display: flex;
    flex-direction: column;
    max-width: 240px; /* 进一步减小最大宽度 */
    width: calc(33.33% - 12px); /* 保持三列布局 */
  }
  
  /* 卡片内容区域 - 使布局更紧凑 */
  .card .card-content {
    display: flex;
    padding: 10px; /* 减小填充 */
    align-items: center;
  }
  
  /* 头像缩小 */
  .card .link-avatar {
    flex-shrink: 0;
    margin-right: 8px; /* 减小间距 */
    width: 40px; /* 更小的头像 */
    height: 40px;
  }
  
  /* 确保文字区域合理利用空间 */
  .card .link-text {
    flex: 1;
    min-width: 0; /* 重要：让文本容器能够缩小 */
    overflow: hidden;
  }
  
  /* 标题样式调整 */
  .card .link-title {
    font-size: 0.9rem;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* 简介文字样式 - 确保多行文本正确显示 */
  .card .link-intro {
    font-size: 0.8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制显示两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }
  
  /* 移除旋转效果，保留平滑上移效果 */
  .card .hover-with-bg:hover {
    transform: translateY(-3px); /* 减小上移距离 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  
  /* 移除头像旋转效果 */
  .card .hover-with-bg:hover img {
    transform: none; /* 移除旋转 */
    transition: none; /* 移除过渡效果 */
  }
  
  /* 暗色模式适配 - 保留之前的深色背景 */
  [data-user-color-scheme='dark'] .card .card-body {
    background-color: rgba(30, 30, 35, 0.8) !important; /* 恢复更深的背景色 */
    border-color: rgba(255, 255, 255, 0.08);
  }
  
  /* 移动端响应式适配 */
  @media (max-width: 991px) {
    .card.col-lg-4.col-md-6.col-sm-12 {
      width: calc(50% - 16px); /* 平板设备两列显示 */
    }
  }
  
  @media (max-width: 767.98px) {
    .card.col-lg-4.col-md-6.col-sm-12 {
      width: calc(100% - 16px); /* 手机设备单列显示 */
      max-width: 320px; /* 限制手机端最大宽度 */
    }
  }

  /* 备案信息左移样式 */
.beian {
    margin-left: -15px; /* 向左偏移15px */
  }
  
  /* 如果需要在移动端也保持一致的偏移 */
  @media (max-width: 767.98px) {
    .beian {
      margin-left: -15px;
    }
  }
  
  /* 如果您希望调整文本对齐方式 */
  .beian, .beian span, .beian a {
    text-align: left;
    margin-right: 2rem;
  }

  .links .card-body {
    padding:1rem;
    border-radius:0.3rem;
    display: block;
    width: 100%;
    height: 100%;
    margin-top: 0.5rem;
  }

  /*----------页脚备案---------*/
  /* 手机端备案信息向右偏移 */
@media (max-width: 767.98px) {
    .beian {
      margin-left: 0; /* 清除左偏移 */
      margin-right: -15px; /* 向右偏移 */
      text-align: right;
      display: flex;
      justify-content: flex-end;
    }
    
    /* 手机端备案文字样式调整 */
    .beian span, .beian a {
      margin-right: 0;
      margin-left: 0.5rem;
    }
  }
  

  
  /* 在flex布局中修正备案信息位置 */
  @media (max-width: 767.98px) {
    .footer-inner > div {
      width: 100%;
      text-align: center;
      margin: 5px 0;
    }
    
    /* 备案信息容器样式 */
    .footer-inner .beian {
      order: 2; /* 调整显示顺序 */
      flex: 0 0 100%;
    }
  }
  @media (max-width: 424px) {
    .footer-inner .beian {
      flex-direction: row;
    }
  }
  .wl-cards .wl-user img {
    height: auto;
    
  }

  /* 目录标题暗色模式样式优化 */
[data-user-color-scheme='dark'] #toc-wrapper .toc-header,
[data-user-color-scheme='dark'] #toc-wrapper .toc-header i {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: none;
}

/* 目录容器暗色模式优化 */
[data-user-color-scheme='dark'] #toc-wrapper {
    background-color: rgba(40, 44, 52, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 目录链接暗色模式优化 */
[data-user-color-scheme='dark'] #toc a {
    color: rgba(255, 255, 255, 0.8);
}

[data-user-color-scheme='dark'] #toc a:hover, 
[data-user-color-scheme='dark'] #toc a.active {
    color: var(--link-hover-color);
    background-color: rgba(255, 255, 255, 0.08);
}

/* 简化目录暗色模式样式，只保持文字颜色为白色 */
[data-user-color-scheme='dark'] #toc .toc-header,
[data-user-color-scheme='dark'] #toc .toc-header i,
[data-user-color-scheme='dark'] #toc .toc-header span {
    color: #ffffff !important;
}

/* ===== Lab Page Card 极简风格专用样式 ===== */
.lab-card-col {
  padding-top: 18px;
  padding-bottom: 18px;
}
.lab-card-link {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(60,72,88,0.06);
  background: var(--board-bg-color, #fff);
  transition: box-shadow 0.2s, transform 0.2s;
  padding: 0;
  margin: 0;
  border: 1px solid #eaecef;
}
.lab-card-link:hover {
  box-shadow: 0 6px 24px rgba(60,72,88,0.12);
  transform: translateY(-2px);
}
[data-user-color-scheme='dark'] .lab-card-link {
  background: #252d38;
  border: 1px solid #435266;
}
.lab-card-body {
  display: flex;
  align-items: center;
  padding: 18px 20px;
}
.lab-card-icon {
  font-size: 1.7rem;
  color: #495060;
  flex-shrink: 0;
  margin-right: 18px;
}
[data-user-color-scheme='dark'] .lab-card-icon {
  color: #c4c6c9;
}
.lab-card-title {
  font-weight: bold;
  font-size: 1.08rem;
  color: #2c3e50;
  margin-bottom: 2px;
}
[data-user-color-scheme='dark'] .lab-card-title {
  color: #c4c6c9;
}
.lab-card-desc {
  font-size: 0.98rem;
  color: #718096;
}
[data-user-color-scheme='dark'] .lab-card-desc {
  color: #a7a9ad;
}

/* 保证三列分布且间距明显 */
@media (min-width: 992px) {
  .lab-card-col {
    width: 33.3333%;
    max-width: 33.3333%;
    flex: 0 0 33.3333%;
  }
}
@media (max-width: 991.98px) {
  .lab-card-col {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
  }
}
@media (max-width: 767.98px) {
  .lab-card-col {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
}

/* 移除原有 .card.col-lg-4.col-md-6.col-sm-12 样式对实验室卡片的影响 */
.lab-card-col .card,
.lab-card-col .card.col-lg-4.col-md-6.col-sm-12 {
  all: unset;
}

.banner-text {
    color: #ffffff;
    overflow-wrap: break-word;
  }