* {
    font-family: "Microsoft YaHei"
}

#main a:hover {
    color: #333;
}

#main {
    border: 1px solid #ebeef5;
    min-height: 700px;
    margin-top: 20px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
    padding: 2px;
    display: flex;
    flex-direction: column;
}

.postlist {
    min-height: 500px;
    overflow: auto
}

.close {
    text-align: center;
    line-height: 30px;
    width: 45px;
    height: 30px;
    float: right;
    background-blend-mode: lighten;
    background-size: cover
}

.close:hover {
    background: red;
    color: #fff
}
.close:hover a {
    color: #fff!important;
}

.blog-title {
    padding-left: 10px;
    user-select: none;
    padding: 5px;
}

.content {
    margin-top: 10px;
    min-height: 500px
}

.sidebar {
    border-right: 1px solid #ebeef5;
    display: none;
    max-height: 600px;
    overflow: auto
}

.widget {
    padding-bottom: 5px;
    padding-top: 5px
}

.widget li {
    padding-bottom: 5px;
    padding-top: 5px;
    padding-left: 40px;
    user-select: none
}

.widget li:hover {
    background-color: #e5f3ff
}

.sidebar-cat li {
    padding-bottom: 5px;
    padding-top: 5px;
    padding-left: 40px;
    user-select: none
}

.sidebar-cat-title {
    padding-left: 20px;
    padding-bottom: 5px;
    padding-top: 5px;
    user-select: none
}

.sidebar-cat-title:hover {
    background-color: #e5f3ff
}

.sidebar-cat li:hover {
    background-color: #e5f3ff
}

.postlist-table {
    width: 100%
}

.postlist th:hover {
    background-color: #e5f3ff !important
}

.postlist-table-list td {
    padding: 2px;
    color: #6d6d6d
}

.postlist-table-list:hover {
    background-color: #e5f3ff !important
}

.postlist-table-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px
}

.postlist-table th {
    padding: 5px
}

.postlist-table-title {
    text-align: left
}

.postlist-table-title th {
    border-right: 1px solid #f0f0f0
}

.postlist table {
    cursor: default
}


th {
    font-weight: lighter
}

.post-list-post {
    padding: 5px;

}

.post-list-post:hover {
    background-color: #e5f3ff !important
}

.view {
    text-align: right;
    padding-right: 20px
}

.post-namelist-title {
    padding: 5px;
    border-right: 1px solid #f0f0f0;
    user-select: none;
}

.post-namelist-title:hover {
    background-color: #e5f3ff;
}

.toolbar-url {
    cursor: default;
    border: 1px solid #ebeef5
}

.toolbar-url span:hover {
    background-color: #e5f3ff;
    border: 1px solid #e5f3ff
}

.toolbar-url span {
    padding: 4px 8px;
    display: inline-block;
    border: 1px solid #fff
}

.toolbar-search {
    margin-left: 10px;
    border: 1px solid #ebeef5
}

.toolbar-search input {
    padding: 4px;
    border: 1px solid #fff
}

.toobar-icon {
    width: 18px;
    height: 18px
}

.toobar-col {
    font-weight: lighter;
    text-align: center;
    color: #808080;
    line-height: 30px
}

.toobar-col i {
    margin-right: 10px
}

.post-content {
    padding: 10px;
    max-height: 600px;
    overflow: auto
}

.post-content img {
    max-width: 100%;
    height: auto
}

.post-content h2 {
    padding-bottom: 12px;
    border-bottom: 1px solid #efefef;
    margin: 30px 0 20px;
    line-height: 1.4;
    font-weight: 700
}

.post-content table {
    font-family: verdana, arial, sans-serif;
    font-size: 11px;
    color: #333;
    border-width: 1px;
    border-color: #666;
    border-collapse: collapse
}

.post-content th {
    border-width: 1px;
    padding: 8px;
    border-style: solid;
    border-color: #666;
    background-color: #dedede
}

.post-content td {
    border-width: 1px;
    padding: 8px;
    border-style: solid;
    border-color: #666;
    background-color: #fff
}

.post-content p {
    line-height: 1.8;
    margin: 0 0 10px
}

.post-title {
    display: inline-block;
    text-align: center
}

footer {
    margin: 15px 0;
    text-align: center
}

.posts-nav {
    text-align: center
}

.menu_header > li {
    line-height: 20px;
    display: inline-block;
    min-height: 20px
}

.menu_header li {
    padding: 5px 10px
}

.menu_header > li {
    min-width: 40px;
    position: relative;
    border: 1px solid #fff
}

.menu_header > li:hover {
    background-color: #fdfdff;
    border: 1px solid #e5f3ff
}

.sub-menu {
    white-space: nowrap;
    position: absolute;
    z-index: 999;
    background: #fff;
    display: none;
    left: 0;
    top: 28px;
    transition: all .2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .21);
    min-width: 60px
}

.sub-menu li {
    padding: 8px 20px;
    min-width: 60px
}

.sub-menu li:hover {
    background-color: #e5f3ff
}

.menu-item-has-children:hover .sub-menu {
    display: block
}

.menu-item-has-children:active .sub-menu {
    display: block
}

.post-content-content {
    min-height: 450px
}

.comment_form_textarea {
    height: 100px;
    border: 1px solid #ebeef5;
    margin-top: 20px;
    padding: 5px
}

.comment_form_input input {
    border: 1px solid #ebeef5;
    margin-top: 5px;
    min-height: 30px;
    padding: 5px
}

.form_comment_nav {
    text-align: center
}

.page-numbers {
    padding: 5px;
    background: #f0f0f0;
    border: 1px solid #f0f0f0;
    border-right: 3px
}

.gravatar {
    display: inline-block
}

.comment_content {
    display: inline-block
}

.button_submit {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .21);
    border: 0;
    background: #0066b4;
    color: #fff;
    padding: 10px 20px;
    border-radius: 2px
}

.button_submit:hover {
    cursor: pointer;
    background: #007ddd;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .21)
}

#comments {
    padding-bottom: 30px;
    line-height: 1
}

.comments-title {
    position: relative;
    padding-bottom: 10px;
    font-size: 18px;
    color: #666;
    border-bottom: 1px solid #f1f1f1
}

h3.comments-title:after {
    position: absolute;
    content: '';
    top: 29px;
    left: 0;
    width: 135px;
    height: 2px;
    background: #0066b4
}

.commentCount {
    color: #000
}

.commentlist {
    list-style: none;
    margin: 10px 0 0;
    padding: 0
}

.commentlist ol {
    list-style: none
}

.comment {
    padding: 10px 0 5px
}

.comment .media-left {
    display: table-cell;
    vertical-align: top;
    padding-right: 10px
}

.comment .media-left img {
    border-radius: 50%
}

.comment .media-body {
    display: table-cell;
    vertical-align: top
}

.comment .media-body .author_name {
    margin-bottom: 5px;
    font-size: 14px;
    color: #777
}

.comment .media-body p {
    font-size: 14px;
    line-height: 1.5em;
    color: #777
}

.comment .media-body p a {
    color: #000
}

.comment .comment-metadata {
    margin-left: 58px;
    padding: 5px 0
}

.comment .comment-metadata span {
    margin-right: 15px;
    font-size: 13px
}

.comment .comment-metadata span {
    font-size: 12px;
    color: #999
}

.comment .comment-metadata span.comment-btn-reply a:hover {
    color: #666
}

.comment .comment-metadata span.comment-btn-reply i {
    color: #d1d1d1
}

.comment .comment-metadata span.comment-btn-reply a {
    color: #999
}

.commentlist > .comment {
    border-bottom: #f2f2f2 1px solid
}

.commentlist .children {
    padding-left: 58px
}

.commentlist .children > .comment {
    border-top: #f2f2f2 1px solid
}

#reply-title {
    font-size: 14px;
    color: #666;
    border-bottom: 0;
    color: #999
}

#reply-title a:first-child, .warning-text a:first-child {
    display: inline-block;
    margin: 2px;
    padding: 5px;
    background: #0066b4;
    border-radius: 2px;
    color: #fff;
    font-size: 14px
}

#reply-title #cancel-comment-reply-link {
    background: #fff;
    color: #999
}

#reply-title #cancel-comment-reply-link:hover {
    text-decoration: underline
}

.warning-text {
    color: #999
}

.link-logout {
    color: #999
}

.comment-navigation {
    width: 100%;
    margin: 0 auto;
    padding: 15px 0;
    text-align: center
}

.comment-navigation .page-numbers {
    display: inline-block;
    padding: 9px 16px;
    color: #999;
    background: #f1f1f1
}

.comment-navigation .page-numbers:hover {
    background: #e8e8e8;
    color: #666
}

.comment-navigation .current, .comment-navigation .current:hover {
    background: #0066b4;
    color: #fff
}

.commentform-info {
    float: left
}

.commentform-info input {
    margin-right: 10px;
    width: 230px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f5f5f5;
    font-weight: normal;
    transition: background .5s
}

.commentform-info input:focus {
    box-shadow: none;
    color: #fff !important;
    background: #0066b4
}

.commentform-info input:focus:-moz-input-placeholder {
    color: #fff
}

.commentform-info input:focus::-moz-input-placeholder {
    color: #fff
}

.commentform-info input:focus::-webkit-input-placeholder {
    color: #fff
}

.commentform-info input:focus:-ms-input-placeholder {
    color: #fff
}

.commentBtn .btn {
    padding: 8px 0;
    width: 140px !important;
    text-align: center;
    background: #0066b4;
    border: 0
}

.commentBtn .btn:hover {
    opacity: .8
}

.comment-from {
    color: #fff;
    background: #0066b4;
    border-radius: 2px;
    padding: 1px 2px;
    margin: 2px 5px
}

.comment-from a {
    color: #fff !important
}

@media (max-width: 991px) {
    body {

        background: #efefef;
    }

    .layui-container {
        width: 95% !important;

    }

    #main {
        margin-top: 20px !important;
        box-shadow: none;
        background-color: #fff;
        height: 100%;

    }

    .content {
        height: 100% !important;
    }

    .post-namelist-title {
        font-size: 25px;
    }

    .post-content {
        height: 100%;
        max-height: none;
    }

    .toolbar-url {
        cursor: default;
        border: none;
    }

    .toolbar {
        font-size: medium;
    }

    .post-namelist-title {
        font-size: medium;
    }
}

#searchform {
    padding-left: 40px;

}

.screen-reader-text {
    display: none;
}

#s {
    width: 90%;
}

#searchsubmit {
    display: none;
}

.widget:after {
    content: '';
    clear: both;
}
.post-content-content  blockquote {
    position: relative;
    margin: 30px 0;
    padding: 10px 45px;
    border-radius: 3px;
    background-color: #f8f8fa;
}
.post-content-content blockquote:before{
    position: absolute;
    top: 20px;
    left: 20px;
    display: block;
    width: 16px;
    height: 14px;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAANCAYAAADISGwcAAAABmJLR0QA/wD/AP+gvaeTAAABJUlEQVQ4y62UzVHDMBCFPxgX4BJcQkpIKgAqwKkguAJDBSQdmAooAXPhlINLcDowFSQHr0fPipTMJHozmlnJT6u3f35o//YIlkBt9hroOccb8AQMwAvwY/d8vAMfZh8JY/XoHdTiLPR4LpyOBFABpTz+FeF/mohLnJsE5OZ8irwJcJcmEvvekwCTgI1Etotwa7FjnJsEFIwNA2NjhaIvceVpSVR/gAx4lX1v2QA4iBjlDJKNX6DCZU+b+F/urMT+Fv6QeYIWtqZIQ9l4tgXzUSvkcT+TrWQyl7POH8N7sBG7MhGXOGuYj+E9yHET0hGfooXZW2yKUgkocamtrmRowJUtmYDJeYOrt6LA9c2sPBljt4cudRFbcTDnje1jf8cCN+qNfjgBbfA/pMbdZOcAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAAAElFTkSuQmCC) no-repeat;
    content: '';
}
.post-content-content blockquote:after{
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: block;
    width: 16px;
    height: 14px;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAANCAYAAADISGwcAAAABmJLR0QA/wD/AP+gvaeTAAABJUlEQVQ4y62UzVHDMBCFPxgX4BJcQkpIKgAqwKkguAJDBSQdmAooAXPhlINLcDowFSQHr0fPipTMJHozmlnJT6u3f35o//YIlkBt9hroOccb8AQMwAvwY/d8vAMfZh8JY/XoHdTiLPR4LpyOBFABpTz+FeF/mohLnJsE5OZ8irwJcJcmEvvekwCTgI1Etotwa7FjnJsEFIwNA2NjhaIvceVpSVR/gAx4lX1v2QA4iBjlDJKNX6DCZU+b+F/urMT+Fv6QeYIWtqZIQ9l4tgXzUSvkcT+TrWQyl7POH8N7sBG7MhGXOGuYj+E9yHET0hGfooXZW2yKUgkocamtrmRowJUtmYDJeYOrt6LA9c2sPBljt4cudRFbcTDnje1jf8cCN+qNfjgBbfA/pMbdZOcAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAAAElFTkSuQmCC) -16px 0 no-repeat;
}
.win10-taskbar {
    width: 100%;
    height: 30px;
    background: #f3f3f3;
    border-top: 1px solid #dadada;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.win10-taskbar a {
    color: #0078d7;
    text-decoration: none;
    margin-left: 12px;
}

.win10-taskbar a:hover {
    text-decoration: underline;
}
#main {
    display: flex;
    flex-direction: column;
}

/* 内容区域自动占满剩余空间 */
.content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
}

/* 让 postlist 可伸缩 */
.postlist {
    flex: 1;
}

.dark-btn {
    cursor: pointer;
    margin-left: 10px;
    font-size: 16px;
    user-select: none;
    transition: transform 0.2s ease;
}

.dark-btn:hover {
    transform: scale(1.2);
}

body, #main, .sidebar, .postlist, .toolbar {
    transition: background 0.3s ease, color 0.3s ease;
}

/* 深色模式*/

/* 全局过渡效果 */
body, #main, .sidebar, .postlist, .toolbar {
    transition: background 0.3s ease, color 0.3s ease;
}

/* 深色模式开启 */
body.dark-mode {
    background: #1e1e1e;
    color: #ddd !important;
}

/* 主窗口 */
body.dark-mode #main {
    background: #252526;
    border: 1px solid #3c3c3c;
    box-shadow: none;
}

/* 侧栏 */
body.dark-mode .sidebar {
    background: #2d2d30;
    border-right: 1px solid #3c3c3c;
}

/* 内容区域 */
body.dark-mode .postlist {
    background: #252526;
}

/* 所有 hover 的浅蓝改成深灰 */
body.dark-mode .widget li:hover,
body.dark-mode .sidebar-cat-title:hover,
body.dark-mode .sidebar-cat li:hover,
body.dark-mode .postlist th:hover,
body.dark-mode .postlist-table-list:hover,
body.dark-mode .post-list-post:hover,
body.dark-mode .post-namelist-title:hover,
body.dark-mode .toolbar-url span:hover,
body.dark-mode .sub-menu li:hover {
    background-color: #323233 !important;
}

/* 表格边框 */
body.dark-mode .post-namelist-title,
body.dark-mode .postlist-table-title th {
    border-right: 1px solid #3c3c3c;
}

/* 工具栏 */
body.dark-mode .toolbar-url,
body.dark-mode .toolbar-search {
    border: 1px solid #3c3c3c;
}

/* 搜索框 */
body.dark-mode .toolbar-search input {
    background: #3c3c3c;
    border: 1px solid #3c3c3c;
    color: #fff !important;
}

/* 文章内容区域 */
body.dark-mode .post-content {
    background: #252526;
    color: #ddd !important;
}

/* blockquote */
body.dark-mode .post-content-content blockquote {
    background-color: #2d2d30;
    color: #ddd !important;
}

/* 文章表格 */
body.dark-mode .post-content table,
body.dark-mode .post-content th,
body.dark-mode .post-content td {
    color: #ddd !important;
    background-color: #252526 !important;
    border-color: #3c3c3c !important;
}

/* 文章内容内链接 */
body.dark-mode .post-content a {
    color: #4ea3ff !important;
}

/* 评论区域 */
body.dark-mode .commentlist > .comment,
body.dark-mode .commentlist .children > .comment {
    border-color: #3c3c3c;
    color: #ddd !important;
}

/* 评论内链接 */
body.dark-mode .comment .media-body p a {
    color: #4ea3ff !important;
}

/* 评论昵称 */
body.dark-mode .comment .media-body .author_name {
    color: #bbb !important;
}

/* 回复框标题 */
body.dark-mode #reply-title,
body.dark-mode .warning-text,
body.dark-mode .link-logout {
    color: #999 !important;
}

/* 输入框 */
body.dark-mode .commentform-info input,
body.dark-mode .layui-input {
    background: #3c3c3c !important;
    color: #fff !important;
    border-color: #555 !important;
}

/* 按钮 */
body.dark-mode .button_submit,
body.dark-mode .commentBtn .btn,
body.dark-mode #reply-title a:first-child,
body.dark-mode .comment-from {
    background: #0066b4 !important;
    color: #fff !important;
}

/* 按钮 hover */
body.dark-mode .button_submit:hover,
body.dark-mode .commentBtn .btn:hover,
body.dark-mode #reply-title #cancel-comment-reply-link:hover {
    opacity: 0.8;
}

/* 任务栏 */
body.dark-mode .win10-taskbar {
    background: #2d2d30;
    border-top: 1px solid #3c3c3c;
    color: #aaa !important;
}
body.dark-mode .win10-taskbar a {
    color: #3ea6ff !important;
}

/* layui table 覆盖 */
body.dark-mode .layui-table-view,
body.dark-mode .layui-table-header,
body.dark-mode .layui-table-header table,
body.dark-mode .layui-table-body,
body.dark-mode .layui-table-body table {
    background: #252526 !important;
    border-color: #3c3c3c !important;
}
body.dark-mode .layui-table td,
body.dark-mode .layui-table th {
    color: #ddd !important;
    border-color: #3c3c3c !important;
    background: transparent !important;
}
body.dark-mode .layui-table tr:hover td {
    background: #323233 !important;
}
body.dark-mode .layui-laypage a,
body.dark-mode .layui-laypage span {
    background: #2d2d30 !important;
    color: #ccc !important;
    border-color: #3c3c3c !important;
}
body.dark-mode a {
    color: #ddd !important; /* 深色模式下链接颜色，可按需修改 */
    text-decoration: none !important; /* 保持无下划线 */
}

body.dark-mode a:hover {
    color: #6cb8ff !important; /* 悬停颜色 */
}