@charset "utf-8";

/* 链接样式 */
a:link, a:visited, a:active {
    text-decoration: none;
    color: #000;
}

a:active {
    font-size: 12px;
}

a:hover {
    text-decoration: underline;
    color: #000;
}

/* 修复：确保侧边栏分类链接显示为 #FF0000，并覆盖通用 a:link 规则 */
a.td-fontff0000,
a.td-fontff0000:link,
a.td-fontff0000:visited {
    color: #FF0000;
    text-decoration: none;
}

    a.td-fontff0000:hover {
        text-decoration: underline;
        color: #FF0000;
    }

/* headerlist */
#headerlist {
    color: #000;
}

/* 桌面首页左侧栏：站点公告表格 */
.sidebar-announcement-header td,
.sidebar-announcement-item td,
.sidebar-announcement-divider td {
    width: 100%;
}

/* 桌面归档左侧栏：分类与TOP10表格 */
.sidebar-category-header td,
.sidebar-category-list td,
.sidebar-category-divider td,
.sidebar-top10-header td,
.sidebar-top10-divider td {
    width: 100%;
}

/* 桌面首页左侧栏：站内搜索表格 */
.sidebar-search-row td,
.sidebar-search-header td,
.sidebar-search-body td,
.sidebar-search-divider td {
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

/* 桌面归档左侧栏：站内搜索表格 */
.sidebar-search-header .showd,
.sidebar-search-body .td-sidebar-search {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* 桌面归档左侧栏：声明表格 */
.sidebar-note-row td {
    width: 100%;
}

/* 桌面首页左侧栏：站点统计表格 */
.sidebar-stats-header td,
.sidebar-stats-item td,
.sidebar-stats-divider td {
    width: 100%;
}

/* 桌面首页左侧栏：本站链接表格 */
.sidebar-links-header td,
.sidebar-links-body td {
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

/* 桌面首页左侧栏：友情链接表格 */
.sidebar-friends-header td,
.sidebar-friends-body td,
.sidebar-more-row td {
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

.sidebar-links-body .td-border,
.sidebar-friends-body .td-border {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-links-body .td-center.td-border,
.sidebar-friends-body .td-center.td-border {
    height: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 16px;
}

.sidebar-search-header .showd,
.sidebar-search-body .td-sidebar-search {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

#home-search-inner,
.sidebar-search-row table.td-w155 {
    width: 100% !important;
    box-sizing: border-box;
}
/* 评论区样式调整 */

/* 1. “已有几条评论”标题靠左显示 */
#comments > b {
    display: block; /* 将其变为块级元素以控制对齐 */
    text-align: left;
    margin-bottom: 10px; /* 与下方评论列表拉开一点距离 */
}

/* 2. 回复的层级缩进显示 */
.comment-children {
    padding-left: 20px; /* 为回复区域增加左内边距，形成缩进 */
    margin-top: 10px; /* 与父评论内容拉开距离 */
    border-left: 2px solid #e5e5e5; /* 添加一条竖线，增强层级感 */
}

/* 3. 调整回复评论本身的间距 */
.comment-child {
    margin-top: 10px;
}
/* 评论列表：移除默认的数字序号和左侧缩进 */
#comments ol.comment-list {
    list-style-type: none !important;
    padding-left: 0 !important;
}
/* 基础字体和布局 */
.body {
    margin: 0;
    font-size: 12px;
    font-family: "宋体";
}

/* 表格和字体 */
.table_top1 {
    border: 0;
    width: 755px;
    font-size: 12px;
    color: #000000;
    text-align: left;
    border-spacing: 0;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.bar, .menufont {
    font-size: 12px;
}

.bodymfont, .bodymfont2, .bodymfont3 {
    font-size: 12px;
    text-align: center;
}

.bodymfont {
    color: red;
}

.bodymfont2 {
    font-weight: bold;
}

.bodymfontr1, .bodymfontr2 {
    font-size: 12px;
    color: #09E;
    text-align: center;
}

td, th {
    border-collapse: collapse;
    margin: 0;
    font-size: 12px;
}

/* 其它表格样式 */
.footertable {
    text-align: center;
}

.border {
    border-right: 1px dotted;
    border-top: 1px dotted;
    border-left: 1px dotted;
    color: #000000;
    border-bottom: 1px dotted;
    border-collapse: collapse;
    background-color: #efefef;
}

/* 分类宽度等 */
.slhr {
    width: 155px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.slhm {
    width: 220px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    float: left;
}

.slhl {
    width: 440px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.slhdiv {
    float: left;
}

/* 分类显示块 */
.showd, .showdr {
    display: inline-block;
    width: 155px;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid #EFEFEF;
    font-size: 12px;
    table-layout: fixed;
    word-break: break-all;
    height: 16px;
    padding-left: 1px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.td-w155 td.showd,
.td-w155 td.showdr {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 16px;
}

.showm {
    display: inline-block;
    width: 418px;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid #EFEFEF;
    font-size: 12px;
    table-layout: fixed;
    word-break: break-all;
    height: 16px;
    vertical-align: middle;
    padding-top: 5px;
    padding-bottom: 5px;
}

.showm1 {
    display: inline-block;
    width: 63px;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 0px solid #EFEFEF;
    font-size: 12px;
    table-layout: fixed;
    word-break: break-all;
    height: 16px;
    vertical-align: middle;
}

.showm2 {
    display: inline-block;
    width: 230px;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 0px solid #EFEFEF;
    font-size: 12px;
    table-layout: fixed;
    word-break: break-all;
    height: 16px;
    vertical-align: middle;
}

.showm3 {
    display: inline-block;
    width: 118px;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 0px solid #EFEFEF;
    font-size: 12px;
    table-layout: fixed;
    word-break: break-all;
    height: 16px;
    vertical-align: middle;
    text-align:right;
}

.showt {
    display: inline-block;
    width: 418px;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showm-lb {
    width: 460px;
    border: 1px solid #EFEFEF;
    font-size: 12px;
    height: 16px;
    vertical-align: middle;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    box-sizing: border-box;
}

.showm-lb-bt {
    width: 460px;
    border: 1px solid #EFEFEF;
    font-size: 12px;
    height: 27.6px;
    vertical-align: middle;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    box-sizing: border-box;
}

.showm-lb .td-font000 {
    display: inline-block;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    text-decoration: inherit;
}

.showm-lb-time {
    width: 115px;
    border: 1px solid #EFEFEF;
    font-size: 12px;
    height: 27.6px;
    vertical-align: middle;
    padding-top: 5px;
    padding-bottom: 5px;
    box-sizing: border-box;
}

.showm-lb-bt a.style5:hover,
.showm-lb a.style5:hover {
    color: #000 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 0 #000;
}

.showm-lb-bt a.style5:hover .td-font000,
.showm-lb a.style5:hover .td-font000 {
    color: #000 !important;
    text-decoration: none !important;
}

.showm-lb-bt a.style5:visited,
.showm-lb a.style5:visited {
    color: #000 !important;
    text-decoration: none;
}

/* index.css 部分 */
.td-index, .td-index2, .td-index-top {
    padding-left: 5px;
    padding-right: 5px;
    border: 1px solid #EFEFEF;
    font-family: 宋体;
    table-layout: fixed;
    word-break: break-all;
    font-size: 9px;
}

.td-index {
    height: 18px;
}

.td-index-top {
    height: 18px;
}

.td-search {
    padding-left: 5px;
    padding-right: 5px;
    border: 1px solid #EFEFEF;
    font-family: 宋体;
    table-layout: fixed;
    word-break: break-all;
    height: 40px;
    font-size: 9px;
}

/* 优化：内容多行省略 */
.clamp-5 {
    line-clamp: 5;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

/* archive.php专用表格样式 */
.td-h18 {
    height: 18px;
}

.td-w72 {
    width: 72px;
}

.td-w75 {
    width: 75px;
}

.td-w210 {
    width: 210px;
}

.td-bg-f5 {
    background-color: #f5f5f5;
}

.td-bg-fff {
    background-color: #fff;
}

.td-center {
    text-align: center;
}

.td-right {
    text-align: right;
}

.td-top {
    vertical-align: top;
}

.td-colspan2 {
}

.td-colspan4 {
}

.td-style5 {
}

.td-font666 {
    color: #666666;
}

.td-font000 {
    color: #000000;
}

.td-fontff6600 {
    color: #FF6600;
}

.td-fontff9933 {
    color: #ff9933;
}

.td-font12 {
    font-size: 12px;
}

.td-font9 {
    font-size: 9px;
}

/* 左中右栏宽度和高度 */
.td-w159 {
    width: 159px;
}

.td-w155 {
    width: 155px;
}

.td-w420 {
    width: 420px;
}

.td-w418 {
    width: 418px;
}

.td-top {
    vertical-align: top;
}

.td-center {
    text-align: center;
}

.td-right {
    text-align: right;
}

.td-bold {
    font-weight: bold;
    padding-top: 5px;
    padding-bottom: 5px;
}

.td-h16 {
    height: 16px;
}

/* 颜色类 */
.td-fontff0000 {
    color: #FF0000;
}

.td-fontff9900 {
    color: #FF9900;
}

.td-font666 {
    color: #666666;
}

.td-font000 {
    color: #000000;
}

.td-fontff6600 {
    color: #FF6600;
}

.td-fontb1b8c2 {
    color: #B1B8C2;
}

.td-border {
    border: 1px solid #EFEFEF;
}

.td-w583 {
    width: 583px;
}

.td-w581 {
    width: 581px;
}

.td-w580 {
    width: 580px;
}

.td-h87 {
    height: 87px;
}

.td-h18 {
    height: 18px;
}

.td-w72 {
    width: 72px;
}

.td-w210 {
    width: 210px;
}

.td-w75 {
    width: 75px;
}

.td-bg-f5 {
    background-color: #f5f5f5;
}

.td-bg-fff {
    background-color: #fff;
}

.td-center {
    text-align: center;
}

.td-right {
    text-align: right;
}

.td-left {
    text-align: left;
}

.td-top {
    vertical-align: top;
}

.td-colspan2 {
}

.td-colspan4 {
}

.td-font000 {
    color: #000000;
}

.td-font666 {
    color: #666666;
}

.td-table-fixed {
    table-layout: fixed;
}

.td-wordbreak {
    word-break: break-all;
}

.td-fontff6600 {
    color: #FF6600;
}

.td-fontff9900 {
    color: #FF9900;
}

.td-fontb1b8c2 {
    color: #B1B8C2;
}

.clamp-5 {
    line-clamp: 5;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.td-w155 {
    width: 155px;
}


.td-middle {
    vertical-align: middle;
    padding-top: 5px;
    padding-bottom: 5px;
}

.td-fontff0000 {
    color: #FF0000;
    padding-top: 5px;
    padding-bottom: 5px;
}

.td-font999 {
    color: #999999;
}

.td-sidebar-search {
    border: 1px solid #EFEFEF;
    font-size: 9pt;
    font-family: 宋体;
    table-layout: fixed;
    word-break: break-all;
}

.td-sidebar-note {
    border: 1px solid #EFEFEF;
    padding-top: 5px;
    padding-left: 5px;
    padding-bottom: 5px;


}

.td-left {
    text-align: left;
}

.td-center {
    text-align: center;
}
/* 表格分隔线和边框风格（仿原版） */
.table-top-border, .post-table {
    border: 1px solid #c8cbce;
    border-collapse: separate;
    border-spacing: 1px;
    background-color: #c8cbce;
}

    .post-table td, .post-table th {
        background: #fff;
        border: 1px solid #c8cbce;
        padding: 4px;
        font-size: 12px;
    }

    .post-table .td-bg-f5 {
        background: #f5f5f5;
    }

    .post-table .td-bg-fff {
        background: #fff;
    }

#comments :not(input):not(textarea):not(button) {
    color: #777777 !important;
}
/* 默认桌面/通用规则（可放在 main.css / mobile.css 中） */
.logo-cell {
    vertical-align: middle;
}

    .logo-cell img.main-logo {
        display: inline-block;
        max-width: 100%;
        height: auto;
    }

.mobile-logo-text {
    display: none; /* 桌面隐藏文字，移动端显示 */
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-top: 6px;
}
/* 使 header 中的 bar 图片与下方内容等宽并居中（响应式） */
.bar-cell {
    padding: 0;
    text-align: center;
}

    .bar-cell img {
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 577px; /* 保留原设计最大宽度，必要时调整为 100% 或 755px */
        height: auto;
        box-sizing: border-box;
    }

/* Footer 调整：让 footer 宽度与页面主体保持一致并居中；规范 hr 样式 */
.footer-table {
    width: 100%;
    max-width: 760px; /* 与 header bar 最大宽度对齐，解决横线过长问题 */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 10px; /* 视需要调整左右内边距 */
    width: 760px;
    padding-right: 0px;
    padding-left: 0px;
}

.footer-hr {
    height: 12px; /* 控制横线上下间距，可按需微调 */
}

    .footer-hr hr {
        border: 0;
        height: 1px;
        background: #c8cbce; /* 与 .table-top-border 边框颜色一致 */
        margin: 0;
        max-width: 100%;
        display: block;
    }

/* footer 其余样式保持原样以保证桌面一致性 */
.footer-bar {
    font-size: 9pt;
    color: #333;
}

.footer-link-group {
    font-size: 9pt;
}

.footer-link {
    color: #000;
    text-decoration: none;
}

    .footer-link:hover {
        text-decoration: underline;
    }

.footer-sep {
    color: #000;
}

.footer-stats {
    font-size: 9pt;
}

.footer-orange {
    color: #ff9933;
}

.footer-title {
    font-size: 9pt;
}

.footer-green {
    color: #00FF00;
}

.footer-copyright {
    font-size: 9pt;
}

.footer-powered {
    font-size: 9pt;
}

.footer-brown {
    color: #CC6600;
}

.footer-icp {
    font-size: 9pt;
}

.footer-black {
    color: #000;
}

.td-center {
    text-align: center;
}

.post-body {
    padding-top: 0;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    border-right-width: 5px; /* 仅设置宽度，不会显示边框 */
    line-height: 1.65; /* 新增：正文行距 */
}

.post-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 代码块自适应换行 */
.post-body pre,
.post-body code {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
}

.post-body pre {
    overflow-x: auto;
    padding: 5px;
    background-color: #f0f4f8;
    border: 1px solid #c8d6e5;
}
.table_top1 td[width="583"] table[bgcolor="#c8cbce"] td {
    padding-top: 5px;
    padding-bottom: 5px;
}
/* 放大整体页面并字体 */
body.zoomed {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), font-size 0.3s cubic-bezier(.4,0,.2,1);
    transform: scale(1.12);
    transform-origin: 50% 0;
    font-size: 15px !important; /* 原12px，放大一号 */
}
/* 点击标题仅放大文章内容框文字（不影响整体页面） */
.post-body.content-zoomed,
.post-body.content-zoomed * {
    font-size: 15px !important;
}
.post-body.content-zoomed h1 { font-size: 22px !important; }
.post-body.content-zoomed h2 { font-size: 20px !important; }
.post-body.content-zoomed h3 { font-size: 18px !important; }
.post-body.content-zoomed h4 { font-size: 16px !important; }
.post-body.content-zoomed h5 { font-size: 15px !important; }
.post-body.content-zoomed h6 { font-size: 15px !important; }
body.zoomed td,
body.zoomed th,
body.zoomed .post-body,
body.zoomed .body,
body.zoomed .showm,
body.zoomed .showd,
body.zoomed .showm1,
body.zoomed .showm2,
body.zoomed .showm3 {
    font-size: 15px !important;
}
/* Markdown渲染内容缩放 */
body.zoomed .post-body *,
body.zoomed .post-content * {
    font-size: 15px !important;
}
body.zoomed .post-body h1 { font-size: 22px !important; }
body.zoomed .post-body h2 { font-size: 20px !important; }
body.zoomed .post-body h3 { font-size: 18px !important; }
body.zoomed .post-body h4 { font-size: 16px !important; }
body.zoomed .post-body h5 { font-size: 15px !important; }
body.zoomed .post-body h6 { font-size: 15px !important; }
body.zoomed .post-body blockquote { font-size: 15px !important; }
/* 桌面端：侧边栏分类表头和分类内容居中，且有边框，仅桌面生效 */
@media only screen and (min-width: 768px) {
    .category-header-row > td,
    .category-list-row > td {
        text-align: center !important;
        border: 1px solid #EFEFEF !important;
        vertical-align: middle !important;
        padding: 6px 0 !important;
        background: #fff !important;
        height: 27.6px !important;
        box-sizing: border-box !important;
    }

        .category-header-row > td strong {
            font-weight: bold;
            font-size: 12px;
        }

    .category-list-td {
        text-align: center !important;
        border: 1px solid #EFEFEF !important;
        background: #fff !important;
        padding: 6px 0 !important;
        font-size: 12px;
    }

    /* 侧边栏表格整体宽度修正，保证表头和内容对齐 */
    #side-td > table.td-w155,
    td[width="159"] > table.td-w155 {
        width: 159px !important;
        max-width: 159px !important;
        min-width: 159px !important;
        table-layout: fixed !important;
        border-collapse: separate !important;
    }
    /* 分类表头、分类内容、TOP10表头单元格宽度和对齐修正 */
    .category-header-row > td,
    .category-list-row > td,
    .bodymfont > td.showd,
    .bodymfontr1 > td.showd,
    .bodymfontr2 > td.showd {
        width: 155px !important;
        max-width: 155px !important;
        min-width: 155px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        border: 1px solid #EFEFEF !important;
        background: #fff !important;
        vertical-align: middle !important;
    }
    /* 分类内容单元格特殊样式 */
    .category-list-td {
        width: 155px !important;
        max-width: 155px !important;
        min-width: 155px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        border: 1px solid #EFEFEF !important;
        background: #fff !important;
        padding: 6px 0 !important;
        font-size: 12px !important;
    }
    /* 保证TOP10表头不偏移 */
    .bodymfontr1 > td.showd,
    .bodymfontr2 > td.showd {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* 保证侧边栏表格内所有td宽度一致 */
    #side-td table.td-w155 td,
    td[width="159"] table.td-w155 td {
        width: 155px !important;
        max-width: 155px !important;
        min-width: 155px !important;
        box-sizing: border-box !important;
    }
    .bodymfont > td.showd,
    .bodymfontr1 > td.showd,
    .bodymfontr2 > td.showd,
    tr > td.showd {
        width: 155px !important;
        max-width: 155px !important;
        min-width: 155px !important;
        box-sizing: border-box;
        text-align: left; /* 让文字靠左 */
        /*    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;*/
        padding-left: 4px; /* 可选，微调左边距 */
        height: 27.6px !important;
    }

    .showd, .showdr {
        width: 155px !important;
        box-sizing: border-box;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        text-align: left;
        padding-left: 4px;
    }

    .bodymfontr1 > td.showd,
    .bodymfontr2 > td.showd {
        width: 155px !important;
        box-sizing: border-box;
    }

    .showd strong {
        display: inline-block;
        padding-left: 4px;
        text-align: left;
    }

    .td-w155 {
        width: 155px;
        table-layout: fixed;
    }

    #home-left td,
    #home-left .showd {
        width: 155px !important;
        box-sizing: border-box;
    }

    #home-left .td-sidebar-search {
        width: 155px !important;
        box-sizing: border-box;
        padding: 0;
        text-align: center; /* 让内容居中 */
    }
}

/* ====== 深色模式（桌面端）====== */
body.dark-mode {
    background-color: #000 !important;
}

    /* 深色模式：代码块样式 */
    body.dark-mode .post-body pre {
        background-color: #1a1a2e !important;
        border-color: #333 !important;
    }

    body.dark-mode .post-body code {
        color: #a4baff !important;
    }

    /* 表格边框和背景 */
    body.dark-mode .table_top1,
    body.dark-mode table,
    body.dark-mode td,
    body.dark-mode th {
        border-color: #242424 !important;
        background-color: #000 !important;
    }

    /* 全局字体变淡蓝色，排除红色字体 */
    body.dark-mode,
    body.dark-mode .body,
    body.dark-mode .bodymfont,
    body.dark-mode .bodymfont2,
    body.dark-mode .bodymfont3,
    body.dark-mode .bodymfontr1,
    body.dark-mode .bodymfontr2,
    body.dark-mode .bar,
    body.dark-mode .menufont,
    body.dark-mode .td-font000,
    body.dark-mode .td-font666,
    body.dark-mode .td-font999,
    body.dark-mode .footer-black,
    body.dark-mode .footer-link,
    body.dark-mode .footer-sep,
    body.dark-mode .footer-title,
    body.dark-mode .footer-copyright,
    body.dark-mode .footer-powered,
    body.dark-mode .footer-icp,
    body.dark-mode .footer-bar,
    body.dark-mode .footer-stats,
    body.dark-mode .footer-link-group,
    body.dark-mode .mobile-logo-text,
    body.dark-mode #headerlist,
    body.dark-mode #jnkc,
    body.dark-mode td,
    body.dark-mode td strong,
    body.dark-mode .td-center,
    body.dark-mode .td-right,
    body.dark-mode .td-left,
    body.dark-mode .td-bold,
    body.dark-mode .td-middle,
    body.dark-mode .td-sidebar-search,
    body.dark-mode .td-sidebar-note,
    body.dark-mode .showd,
    body.dark-mode .showdr,
    body.dark-mode .showm,
    body.dark-mode .showm1,
    body.dark-mode .showm2,
    body.dark-mode .showm3,
    body.dark-mode .showm-lb,
    body.dark-mode .showm-lb-bt,
    body.dark-mode .showm-lb-time,
    body.dark-mode .category-list-td,
    body.dark-mode .mobile-category-cell,
    body.dark-mode .fs-refresh,
    body.dark-mode .fs-peak-left,
    body.dark-mode .fs-peak-right,
    body.dark-mode .fs-open,
    body.dark-mode .fs-line2 {
        color: #a4baff !important;
    }

    /* 导航、更多文章等链接变蓝色 */
    body.dark-mode .bar-cell a,
    body.dark-mode .footer-link,
    body.dark-mode .footer-sep,
    body.dark-mode .td-right a,
    body.dark-mode .showm a,
    body.dark-mode .showm1 a,
    body.dark-mode .showm2 a,
    body.dark-mode .showm3 a,
    body.dark-mode .showm-lb a,
    body.dark-mode .showm-lb-bt a,
    body.dark-mode td[align="right"] a {
        color: #a4baff !important;
    }

    /* 深色模式：文章标题hover时变蓝色带下划线 */
    body.dark-mode .showm-lb-bt a.style5:hover,
    body.dark-mode .showm-lb a.style5:hover {
        color: #a4baff !important;
        text-decoration: underline !important;
        box-shadow: none !important;
    }

    body.dark-mode .showm-lb-bt a.style5:hover .td-font000,
    body.dark-mode .showm-lb a.style5:hover .td-font000 {
        color: #a4baff !important;
        text-decoration: underline !important;
    }

    /* 分隔符 | 变蓝色（导航分隔符） */
    body.dark-mode td[align="right"],
    body.dark-mode td[align="right"] strong,
    body.dark-mode td[align="right"] span {
        color: #a4baff !important;
    }

    /* hr分割线变蓝色 */
    body.dark-mode hr,
    body.dark-mode .footer-hr hr,
    body.dark-mode .table_top1 td[colspan="3"] > hr {
        background: #a4baff !important;
        border-color: #a4baff !important;
    }

    /* 搜索区域分割线变蓝色 */
    body.dark-mode .table_top1 td[width="159"] .td-w155 hr,
    body.dark-mode #side-search-inner hr,
    body.dark-mode #home-search-inner hr {
        border-top-color: #3b5cff !important;
        background: #3b5cff !important;
    }

    /* 红色字体保持原色 */
    body.dark-mode .td-fontff0000,
    body.dark-mode .td-fontff6600,
    body.dark-mode .td-fontff9900,
    body.dark-mode .td-fontff9933 {
        color: #FF0000 !important;
    }

    /* 输入框和按钮 */
    body.dark-mode .border,
    body.dark-mode input.border,
    body.dark-mode select.border {
        background-color: #1a1a1a !important;
        border-color: #333 !important;
        color: #a4baff !important;
    }

/* ============================================ */
/* Markdown样式优化 */
/* ============================================ */

/* 表格样式 - 简约美观 */
.post-body table {
    width: 100% !important;
    margin: 10px 0 !important;
    border-collapse: collapse !important;
    border: 1px solid #ddd !important; /* 白天浅灰色边框 */
    font-size: 13px !important;
}

.post-body th,
.post-body td {
    padding: 8px 12px !important;
    border: 1px solid #ddd !important; /* 白天浅灰色边框 */
    text-align: left !important;
    vertical-align: top !important;
}

.post-body th {
    background-color: #f5f7fa !important;
    font-weight: bold !important;
    color: #333 !important;
}

.post-body tr:nth-child(even) {
    background-color: #fafafa !important;
}

.post-body tr:hover {
    background-color: #f0f4f8 !important;
}

/* 深色模式表格样式 - 浅蓝色边框 */
body.dark-mode .post-body table {
    border-color: #4a6fa5 !important; /* 夜间浅蓝色边框 */
}

body.dark-mode .post-body th,
body.dark-mode .post-body td {
    border-color: #4a6fa5 !important; /* 夜间浅蓝色边框 */
}

body.dark-mode .post-body th {
    background-color: #1e3a5f !important;
    color: #a4baff !important;
}

body.dark-mode .post-body tr:nth-child(even) {
    background-color: #0a1929 !important;
}

body.dark-mode .post-body tr:hover {
    background-color: #162844 !important;
}

.post-body h1 { font-size: 14px !important; font-weight: bold !important; margin: 15px 0 10px !important; }
.post-body h2 { font-size: 14px !important; font-weight: bold !important; margin: 12px 0 8px !important; }
.post-body h3 { font-size: 14px !important; font-weight: bold !important; margin: 10px 0 6px !important; }
.post-body h4 { font-size: 14px !important; font-weight: bold !important; margin: 8px 0 4px !important; }
.post-body h5 { font-size: 13px !important; font-weight: bold !important; }
.post-body h6 { font-size: 12px !important; font-weight: bold !important; }

/* 引用样式 */
.post-body blockquote {
    margin: 12px 0 !important;
    padding: 10px 15px !important;
    border-left: 4px solid #667eea !important;
    background-color: #f5f7fa !important;
    color: #666 !important;
    /* font-style: italic !important; 桌面端markdown引用格式的斜体字*/
    font-size: 13px !important;
    quotes: "\201C""\201D""\2018""\2019";
}

.post-body blockquote::before {
    content: "\201C";
    font-size: 24px;
    color: #667eea;
    margin-right: 5px;
}

/* 深色模式引用样式 */
body.dark-mode .post-body blockquote {
    background-color: #1a1a2e !important;
    border-left-color: #a4baff !important;
    color: #a4baff !important;
}

body.dark-mode .post-body blockquote::before {
    color: #a4baff;
}

/* 列表样式优化 */
.post-body ul,
.post-body ol {
    margin: 8px 0 !important;
    padding-left: 20px !important; /* 减少默认缩进 */
    line-height: 1.8 !important;
}

.post-body li {
    margin: 6px 0 !important;
    padding-left: 6px !important;
}

/* 无序列表圆点样式 */
.post-body ul {
    list-style-type: disc !important;
}

.post-body ul ul {
    list-style-type: circle !important;
    padding-left: 15px !important;
}

.post-body ul ul ul {
    list-style-type: square !important;
    padding-left: 15px !important;
}

/* 有序列表样式 */
.post-body ol {
    list-style-type: decimal !important;
}

.post-body ol ol {
    list-style-type: lower-alpha !important;
    padding-left: 15px !important;
}

/* 深色模式列表样式 */
body.dark-mode .post-body ul,
body.dark-mode .post-body ol {
    color: #a4baff !important;
}

body.dark-mode .post-body li::marker {
    color: #667eea !important;
}

    /* 文章列表边框颜色 */
    body.dark-mode .showm-lb,
    body.dark-mode .showm-lb-bt,
    body.dark-mode .showm-lb-time,
    body.dark-mode .category-header-row > td,
    body.dark-mode .category-list-row > td {
        border-color: #242424 !important;
    }

    /* 修正 jnkc 的颜色 */
    body.dark-mode #jnkc {
        color: #a4baff !important;
    }

    /* 深色模式：软件详情表格( bgcolor=c8cbce 制作网格线)统一改为蓝色网格线 */
    body.dark-mode .table_top1 td[width="581"] > table[bgcolor="#c8cbce"],
    body.dark-mode .table_top1 td[width="583"] > table[bgcolor="#c8cbce"],
    body.dark-mode table[bgcolor="#c8cbce"] {
        background-color: #3b5cff !important;
        border-color: #3b5cff !important;
        border-collapse: separate !important;
        border-spacing: 1px !important;
    }

    body.dark-mode .table_top1 td[width="581"] > table[bgcolor="#c8cbce"] td[bgcolor="#f5f5f5"],
    body.dark-mode .table_top1 td[width="583"] > table[bgcolor="#c8cbce"] td[bgcolor="#f5f5f5"],
    body.dark-mode table[bgcolor="#c8cbce"] td[bgcolor="#f5f5f5"],
    body.dark-mode table[bgcolor="#c8cbce"] th[bgcolor="#f5f5f5"] {
        background-color: #0f0f0f !important;
    }

    body.dark-mode .table_top1 table[bgcolor="#c8cbce"] tr:first-child td,
    body.dark-mode .table_top1 table[bgcolor="#c8cbce"] tr:first-child td *,
    body.dark-mode .table_top1 table[bgcolor="#c8cbce"] tr:nth-child(2) td:nth-child(1),
    body.dark-mode .table_top1 table[bgcolor="#c8cbce"] tr:nth-child(2) td:nth-child(1) *,
    body.dark-mode .table_top1 table[bgcolor="#c8cbce"] tr:nth-child(2) td:nth-child(2),
    body.dark-mode .table_top1 table[bgcolor="#c8cbce"] tr:nth-child(2) td:nth-child(2) * {
        color: #4da3ff !important;
    }

    /* 深色模式下切换头部 bar/bbar 与底部 logo */
    body.dark-mode #bar-img {
        display: none !important;
    }

    body.dark-mode #bar-img-dark {
        display: block !important;
    }

    body.dark-mode #logo-img {
        display: none !important;
    }

    body.dark-mode #logo-img-dark {
        display: inline-block !important;
    }

    /* post-table/table-top-border 蓝色网格线 */
    body.dark-mode .post-table,
    body.dark-mode .table-top-border {
        background-color: #3b5cff !important;
        border-color: #3b5cff !important;
        border-collapse: separate !important;
        border-spacing: 1px !important;
    }

    /* 下载页面下载地址链接变蓝色 */
    body.dark-mode .post-table a,
    body.dark-mode .table-top-border a {
        color: #a4baff !important;
    }

    /* 下载页面表格内的链接（匹配width=580的表格） */
    body.dark-mode table[width="580"] a,
    body.dark-mode table[width="581"] a {
        color: #a4baff !important;
    }

    /* 深色模式：bar-cell img#bar-img-dark 可点击 */
    body.dark-mode .bar-cell img#bar-img-dark {
        cursor: pointer !important;
    }

    /* 搜索框提交按钮 */
    body.dark-mode #home-search-inner input[type="submit"],
    body.dark-mode #side-search-inner input[type="submit"],
    body.dark-mode #home-search-inner button[type="submit"],
    body.dark-mode #side-search-inner button[type="submit"],
    body.dark-mode .act-but {
        background-color: #1a1a1a !important;
        border: 1px solid #333 !important;
        color: #a4baff !important;
    }

    /* 侧边栏内部表格背景强制为黑色 */
    body.dark-mode td[width="159"] table.td-w155,
    body.dark-mode td[width="159"] table.td-w155 td,
    body.dark-mode .sidebar-announcement-header td,
    body.dark-mode .sidebar-announcement-item td,
    body.dark-mode .sidebar-announcement-divider td,
    body.dark-mode .sidebar-search-header td,
    body.dark-mode .sidebar-search-body td,
    body.dark-mode .sidebar-search-divider td,
    body.dark-mode .bodymfontr1 td,
    body.dark-mode .bodymfontr2 td,
    body.dark-mode .sidebar-stats-header td,
    body.dark-mode .sidebar-stats-item td,
    body.dark-mode .sidebar-links-header td,
    body.dark-mode .sidebar-links-item td,
    body.dark-mode .sidebar-friends-header td,
    body.dark-mode .sidebar-friends-item td,
    body.dark-mode .bodymfont1 td,
    body.dark-mode .sidebar-top10-header td,
    body.dark-mode .sidebar-top10-divider td,
    body.dark-mode .sidebar-note-row td,
    body.dark-mode .side-bottom-hr td,
    body.dark-mode .sidebar-search-row td,
    body.dark-mode td.sidebar-search-row {
        background-color: #000 !important;
        border-color: #242424 !important;
        box-shadow: none !important;
    }

    /* 侧边栏表格边框 */
    body.dark-mode td[width="159"] table.td-w155,
    body.dark-mode .sidebar-top10-header,
    body.dark-mode .sidebar-top10-divider,
    body.dark-mode .sidebar-search-row,
    body.dark-mode .sidebar-note-row,
    body.dark-mode .side-bottom-hr {
        border-collapse: separate !important;
        box-shadow: none !important;
    }

    /* 侧边栏内部td背景 */
    body.dark-mode td[width="159"] table.td-w155 > tr > td,
    body.dark-mode .sidebar-top10-header > td,
    body.dark-mode .sidebar-top10-divider > td,
    body.dark-mode .sidebar-note-row > td {
        background-color: #000 !important;
        box-shadow: none !important;
    }

    /* 确保搜索表单区域也没有阴影 */
    body.dark-mode #side-search-wrap,
    body.dark-mode #home-search-wrap,
    body.dark-mode .collapse-wrap {
        box-shadow: none !important;
        background-color: #000 !important;
    }

    /* 深色模式：评论区输入框样式（仿站内搜索） */
    body.dark-mode #comments form input[type="text"],
    body.dark-mode #comments form input[type="email"],
    body.dark-mode #comments form input[type="url"],
    body.dark-mode #comments form textarea {
        background-color: #1a1a1a !important;
        border: 1px dotted #333 !important;
        color: #a4baff !important;
        box-shadow: none !important;
    }

    /* 深色模式：评论区提交按钮样式 */
    body.dark-mode #comments form .submit,
    body.dark-mode #comments form button.submit {
        background-color: #1a1a1a !important;
        border: 1px dotted #333 !important;
        color: #a4baff !important;
        display: block !important;
        margin: 0 auto !important;
        box-shadow: none !important;
    }
