@charset "utf-8";html {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased
}

html,body,h1,h2,h3,h4,h5,h6,div,dl,dt,dd,ul,ol,li,p,blockquote,pre,hr,figure,table,caption,th,td,form,fieldset,legend,input,button,textarea,menu {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box
}

* {
    margin: 0;
    padding: 0;
    list-style: none
}

h1,h2 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 10px
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
}

body {
    background: #eef1e9;
    font-family: "Consolas","Microsoft JhengHei","Apple LiGothic Medium,Microsoft YaHei","微软雅黑","Arial",sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    line-height: 1.5
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

.md_content li {
    list-style: disc;
}
.md_content ol, .md_content ul {
    padding-left: 2em;
}

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

code {
    background: #F3F3F3;
    font-family: Menlo,Monaco,Consolas,"Lucida Console","Courier New",monospace;
    font-size: .92857em;
}

code {
    padding: 2px 4px;
    color: #B94A48;
}
pre code {
    color: #2d2d2d;
    background: transparent;
    padding: 0;
}


pre {
    position: relative;
    margin: 0 0 18px;
    padding: 30px 0 0;
    font-size: 14px;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
    border: 1px solid rgba(0,0,0,0);
}

pre code[class*='language-'] {
    display: block;
    overflow: auto;
    padding: 0 15px 12px;
    white-space: pre;
    line-height: 1.5;
    background: #f3f3f3;
}

pre::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fc625d;
    box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
    z-index: 1;
}

blockquote {
    margin: 1em 0;
    padding-left: 1.5em;
    border-left: 4px solid #eee;
    color: #666;
}

table {
    border: 1px solid #ddd;
    width: 100%;
}

table th,table td {
    padding: 5px 10px;
    border: 1px solid #eee;
}

table th {
    background: #f3f3f3;
}

h1,h2,h3,h4,h5,h6 {
    font-family: "Helvetica Neue",Helvetica,Arial,"PingFang SC","Hiragino Sans GB","WenQuanYi Micro Hei","Microsoft Yahei",sans-serif;
}

input[type="text"],input[type="email"],input[type="url"],input[type="password"],textarea {
    padding: 5px;
    border: 1px solid #E9E9E9;
    width: 100%;
    border-radius: 2px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

/* 头部 */
.header{
    border-bottom: 1px solid #e8e9e7;
    background-color: rgba(255,255,255,1);
}
.logo{
    position: absolute;
    left: 10px;
    top: 16px;
    font-size: 1.4em;
}
.logo img{
    width: 82px;
    height: 31px;
}

.header .layui-nav{
    position: absolute;
    right: 0;top: 0;
    padding: 0;
    background: none;
}
.header .layui-nav .layui-nav-item{
    margin: 0 10px;
}
.header .layui-nav .layui-nav-item:after,.header .layui-nav .layui-nav-bar{
    height: 1px;
    background-color: #6bc30d;
}
.header .layui-nav .layui-nav-item a{
    color: #212220;
    padding: 0 16px;
}
.header .layui-nav .layui-nav-item a:hover{
    color: #6bc30d;
}
.header .layui-nav .layui-nav-item[mobile]{
    display: none;
}

.header .layui-nav .layui-nav-more {
    /*margin-top: -4px;*/
    /*border-color: #212220 transparent transparent;*/
}
.header .layui-nav .layui-nav-mored {
    margin-top: -2px;
    /*border-style: dashed dashed solid;*/
    /*border-color: transparent transparent #212220;*/
}

.layui-container {
    min-height: calc(100vh - 135px);
}

.layui-container .main{
    margin: 10px auto;
}

.layui-bg-gray {
    background-color: #eee!important;
    color: #666!important
}

.layui-badge:empty {
    display: none;
}

.map {
    margin-bottom: 10px;
}

/* 面板 */
.list-card {
    border-radius: 6px;
    margin-bottom: 10px;
}

.list-card .list-pic {
    width: 150px;
    height: 150px;
    line-height: 150px;
    float: left;
    text-align: center;
    overflow: hidden;
    margin-right: 25px
}

.list-card .list-pic img {
    max-width: 100%
}

.list-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.title-article {
    background: rgba(255,255,255,0.72);
    overflow: hidden;
    padding: 20px 20px 10px 20px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.title-article:hover {
    background: rgba(255,255,255,0.92);
    box-shadow: 0 6px 20px rgba(0,0,0,0.14);
    transform: translateY(-2px);
}

.title-article h1 {
    padding-bottom: 10px
}

.title-article p {
    margin-bottom: 10px;
    color: #666
}

.title-article p span {
    margin-right: 10px
}

.title-article .titlepic {
    background: #fff;
    width: 150px;
    height: 150px;
    line-height: 150px;
    float: left;
    text-align: center
}

.title-article .titlepic img {
    max-width: 110px;
    max-height: 110px
}

.title-article .title-msg {
    margin-bottom: 10px
}

.title-article .title-msg span {
    color: #999;
    margin-right: 10px
}

.title-article .title-msg span a {
    color: inherit
}

.title-article .title-msg span a:hover {
    color: #1e9fff
}

.title-article .title-right {
    position: absolute;
    top: 20px;
    right: 15px;
    background: #f5f5f5;
    padding: 10px;
    overflow: hidden
}

.title-article .title-right img {
    max-width: 120px !important;
    max-height: 120px !important
}

.title-sidebar {
    border-bottom: 1px solid #eee;
    width: 100%;
    color: #666;
    font-weight: 600;
    padding-bottom: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.title-sidebar i {
    color: #666;
    margin: 5px
}

.title-sidebar h3 {
    font-weight: 600
}

.text,.reward,.copy-text,.page-text,.relates,.user-text,.comment-text,.tags-text {
    background: #fff;
    padding: 20px;
}

.text {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 2;
    overflow: hidden
}

.text .tab-content {
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 10px;
    height: 500px;
    overflow-y: scroll
}

.text img:not([class]) {
    max-width: 80% !important;
    height: auto !important;
    margin: 20px auto;
    display: block;
}

.copy-text {
    color: #666;
}

.copy-text div {
    font-size: 12px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    overflow: hidden;
    line-height: 2
}

.page-text {
    margin-bottom: 10px;
    font-size: 14px;
    overflow: hidden
}

.page-text div:first-child {
    margin-bottom: 10px
}

.page-text a {
    width: 90%;
    display: inline-block
}

.page-text span {
    margin-right: 10px
}


/* 搜索框 */
.component {
    background: rgba(255,255,255,0.72);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}
.component:hover {
    background: rgba(255,255,255,0.92);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.component .layui-input {
    width: 190px;
    height: 30px;
    padding-left: 12px;
    font-size: 12px;
}

/* 搜索不到内容 */
.post {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden
}
.post .post-title {
    text-align:center;
}

/* 分类 */
.column {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden
}

.column ul {
    overflow: hidden
}

.column ul li {
    padding: 5px 10px
}

.column ul span {
    float: right;
    color: #999
}

.column ul i {
    color: #666
}

/* 博主动态 */
.dynamic {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden
}

.dynamic ul {
    padding-left: 10px;
    padding-right: 10px;
    height: 350px;
    overflow: scroll;
    overflow-x: hidden
}

.dynamic ul li {
    position: relative;
    padding: 10px 10px 0 20px;
    border-left: 2px solid #c0c0c0
}

.dynamic ul li span {
    position: absolute;
    left: -12px;
    top: 10px;
    padding: 2px;
    border: 5px solid #fff
}

.dynamic ul li a {
    color: #3f3f3f
}

.dynamic ul li p {
    margin-top: 5px;
    padding-bottom: 14px;
    color: #666;
    border-bottom: 1px solid #f1f1f1
}

.dynamic ul li small {
    display: inherit;
    color: #999;
    margin-top: 10px
}

.dynamic ul li img {
    width: 50%
}

.dynamic ul li:hover span {
    background: #888 !important
}

.dynamic ul li:hover a {
    color: #3280fc
}

.dynamic ul li:hover p {
    color: #303030
}

/* 标签云 */
.tags {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden
}

.tags div a {
    margin: 0 6px 5px 0 !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden
}

.tags-text i {
    color: #666
}

/* 广告 */
.ads {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden
}

/* 友情链接 */
.link {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden
}

.link div a {
    display: inline-block;
    text-align: center;
    width: 45%;
    margin: 0 6px 5px 0 !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    height: 22px;
    line-height: 22px;
    font-size: 12px;
    background-color: #fff;
    color: #555;
}

.link i {
    color: #666
}

/* 页码 */
.page-navigator {
    padding: 15px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: inherit
}

.page-navigator a:hover {
    background: #393d49;
    color: #fff
}

.page-navigator .current {
    background: #333742;
    color: #fff
}

/* 底部 */
.footer {
    background: #fff;
    margin-top: 15px;
    padding-top: 20px;
    padding-bottom: 30px
}

.footer span {
    color: #999
}

.footer .t-copy {
    text-align: center;
}

/* ===== 备案信息统一底部 ===== */
.footer .t-footer {
    text-align: center;
    color: #999;
}

.footer .t-footer a {
    color: #999;
    transition: color .2s;
}

.footer .t-footer a:hover {
    color: #5FB878;
}

.footer .t-footer .t-footer-copy {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.7;
}

.footer .t-footer .t-footer-copy a {
    font-weight: 500;
    color: #666;
}

.footer .t-footer .t-footer-copy a:hover {
    color: #5FB878;
}

.footer .t-footer-beian {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 2;
}

.footer .beian-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    vertical-align: middle;
    text-decoration: none;
    margin: 0 6px;
}

.footer .beian-link img {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
    border: 0;
    background: transparent;
    flex: 0 0 20px;
}

.footer .beian-sep {
    color: #bbb;
    margin: 0 4px;
    font-size: 12px;
}

.footer .t-footer-meta {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #aaa;
}

.footer .t-footer-meta a {
    color: #aaa;
}

.footer .t-footer-meta a:hover {
    color: #5FB878;
}

/* 深色模式下底部适配 */
body.dark .footer .t-footer,
body.dark .footer .t-footer a {
    color: #9a9aa2;
}

body.dark .footer .t-footer-copy a {
    color: #cfcfd6;
}

body.dark .footer .t-footer-beian .beian-link {
    color: #9a9aa2;
}

body.dark .footer .beian-sep {
    color: #555;
}

body.dark .footer .t-footer-meta,
body.dark .footer .t-footer-meta a {
    color: #7a7a82;
}

/* 手机端: 备案两行紧凑对齐 */
@media (max-width: 767px) {
    .footer .t-footer-copy { margin-bottom: 8px; }
    .footer .t-footer-beian { margin-bottom: 8px; font-size: 12px; line-height: 1.6; }
    .footer .beian-link { margin: 0 3px; }
    .footer .beian-link img { width: 18px; height: 18px; margin-right: 4px; flex-basis: 18px; }
    .footer .t-footer-meta { font-size: 11px; }
}

/* 评论 */
.pinglun {
    margin-bottom: 10px
}

.pinglun li {
    margin-bottom: 10px
}

.pinglun .pl-dan {
    border-radius: 4px
}

.pinglun .t-p {
    float: left
}

.pinglun .t-p img {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(210,210,210,0.2);
    border-radius: 200px
}

.pinglun .t-u {
    margin-left: 70px;
    line-height: 22px;
    padding-bottom: 10px;
    margin-bottom: 10px
}

.pinglun .t-u .t-g {
    color: #999;
    font-size: 12px
}

.pinglun .t-u .t-btn a {
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 4px;
    margin-right: 10px;
    border: #e2e2e2 1px solid;
    color: #909090
}

.pinglun .t-u .t-btn a:hover {
    background: #1ab667;
    color: #fff;
    border: #1ab667 1px solid
}

.pinglun .t-s {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #888
}

.pinglun .t-s a {
    float: left;
    margin-right: 10px;
    color: #888
}

.pinglun .t-s p {
    word-break: break-all;
}

.pinglun .cancel-comment-reply {
    background: #f05050;
    padding: 2px 5px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px
}

.pinglun .cancel-comment-reply a {
    color: #fff
}

.comment-children .pl-dan {
    padding-left: 65px;
}

.comment-children .t-u {
    margin-left: 30px;
    padding-left: 38px;
    border-left: 1px solid #eee;
}

/* 头条新闻 */
.detail {
    background: #fff;
    padding: 20px;
    margin-bottom: 10px;
    overflow: hidden;
    clear: both
}

.detail h3 {
    display: block;
    margin-top: 28px;
    margin-bottom: 14px;
    padding-left: 15px;
    border-left: 5px solid #ffc81f;
    background-color: transparent;
    color: #363636;
    text-align: left;
    font-weight: 700;
    font-size: 24px;
    font-family: Tahoma,Arial,Hiragino Sans GB,å†¬é’é»‘,Microsoft YaHei,å¾®è½¯é›…é»‘,SimSun,å®‹ä½“,Heiti,é»‘ä½“,sans-serif;
    line-height: 32px
}

.detail a {
    border-bottom: 1px solid #ffc81f;
    text-decoration: none;
}

.detail>* {
    margin-bottom: 24px;
}

.detail img {
    display: block;
    margin: 0 auto 8px;
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* 动态页 */
.mylife {
    background: #fff;
    padding: 20px;
    margin-bottom: 10px;
    overflow: hidden;
    clear: both
}

.mylife .t-p {
    float: left;
    height: auto
}

.mylife .t-p img {
    width: 42px;
    height: 42px;
    border-radius: 200px;
    /*box-shadow: 2px 5px 25px #efefef*/
}

.mylife .t-r {
    margin-left: 50px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px #eee solid;
    color: #555
}

.mylife .t-r strong {
    font-size: 16px
}

.mylife .t-r p {
    margin-top: 5px;
    margin-bottom: 5px
}

.mylife .t-r p img {
    max-width: 200px;
    margin-top: 10px;
    display: inherit
}

.mylife .t-r p video {
    background: #222
}

.mylife .t-r span {
    font-size: 12px
}

.about-life {
    height: 180px;
    background: #fff;
    overflow: hidden
}

.about-life .t-w {
    background: #eee;
    padding-left: 15px;
    padding-right: 15px;
    height: 65%
}

.about-life .t-u {
    float: left;
    margin-top: 30px
}

.about-life .t-u img {
    border-radius: 200px
}

.about-life .t-t {
    margin-left: 150px;
    padding-top: 20px
}

.about-life .t-t h1 span {
    font-size: 12px;
    color: #666
}

.about-life .t-t h1 span i {
    margin-right: 6px;
    margin-left: 8px
}

.about-life .t-d {
    color: #666
}

/* .about-life .t-i {
    margin-top: 15px;
    padding-top: 10px
} */

.about-life .t-i i {
    font-size: 12px !important
}

.about-life .t-i a {
    background: #aaa;
    margin: 0;
    display: inline-block;
    color: #fff;
    white-space: nowrap;
    text-align: center;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 100px;
}

.title-life {
    clear: both;
    background: #fff;
    width: 100%;
    float: left;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 10px;
    border-bottom: 1px #eee solid;
    line-height: 48px;
    box-sizing:border-box;
}

.title-life h3 {
    float: left;
    font-weight: 600
}

.title-life span {
    float: right;
    font-size: 12px;
    color: #666
}

/* 归档 */
.archives {
    padding: 15px;
    background: #fff;
    color: #666
}

.archives legend {
    font-size: 16px
}

.archives a {
    color: #555 !important;
    line-height: 2
}

.archives h3 a {
    line-height: 0
}

.archives small {
    display: block;
    margin-bottom: 20px;
    color: #999
}

.title-page {
    margin-bottom: 15px;
    color: #666;
    line-height: 2.4
}

.title-page h3 {
    color: #555
}

/* 新归档 */
.timeline-header {
    display: block;
    width: 12em;
    margin-right: 2px;
    margin-left: 2px;
    text-align: center
}

.timeline-header .layui-btn {
    height: 30px;
    line-height: 30px;
}

.timeline-header h2 {
    padding: 0px;
    margin: 0px;
    font-size: 14px;
    font-weight: normal;
    line-height: 30px;
}

.timeline-item {
    display: block
}

.timeline-item:after, .timeline-item:before {
    box-sizing: border-box;
    display: table;
    content: " "
}

.timeline-wrap {
    border-color: #bfbfbf;
    display: block;
    padding: 10px 0 5px 20px;
    margin-left: 6em;
    border-style: solid;
    border-width: 0 0 0 1px;
    margin-bottom: 0px !important;
}

.timeline-wrap:after, .timeline-wrap:before {
    box-sizing: border-box;
    display: table;
    content: " "
}

.timeline-wrap:before {
    top: 4px;
    float: left;
    width: 10px;
    height: 10px;
    margin-left: -26px;
    background: #edf1f2;
    border-color: inherit;
    border-style: solid;
    border-width: 3px;
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 4px #f0f3f4;
    transition: all .3s ease;
}

.timeline-wrap:hover:before {
    border-color: #1e87f0;
}

.timeline-date {
    display: block;
    float: left;
    width: 4.5em;
    margin-left: -7.5em;
    text-align: right
}

.timeline-content {
    display: inline-block;
    border-radius: 2px;
}

.timeline-content, .timeline-date, .timeline-wrap:before {
    position: relative;
}

.timeline-content a {
    line-height: 0
}

.timeline-content a:hover {
    text-decoration: none;
    color: #1e87f0 !important;
}

.timeline-text {
    padding: 5px;
    border-bottom: 0px !important;
}

.timeline-text a:before, .timeline-content a:before {
    content: "";
    padding: 0px;
    box-sizing: border-box;
}

.timeline-menu {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.timeline-menu ul {
    padding-left: 10px;
    padding-right: 10px;
    max-height: 500px;
    overflow: scroll;
    overflow-x: hidden
}

.timeline-menu-fixed {
    position: fixed;
    top: 10px;
}

.timeline-menu .active {
    background: rgba(175, 167, 167, 0.1);
}

/* 首页轮播图 */
.layui-carousel img{
    width: 100%;
    height: 180px;
}

/* 密码保护美化 */
.protected p {
    text-align:center;
}
.protected input[type="password"] {
    width: 50%;
}
.protected .submit {
    display: inline-block;
    height: 38px;
    line-height: 38px;
    padding: 0 18px;
    background-color: #1E9FFF;
    color: #fff;
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

/* 自适应布局 */
@media (min-width: 1200px) {

}

@media (max-width: 1200px) {
    .layui-main {
        width: 100%;
    }
    .component .layui-input {
        width: 140px;
    }
}

@media (max-width: 992px) {
    .layui-main {
        width: 100%;
    }
    .component .input {
        width: 82%;
    }
    .component .layui-input {
        width: 100%;
    }
}

@media (min-width: 768px) {

}

@media (max-width: 768px) {
    .header .layui-nav .layui-nav-more {
        display: none!important;
    }
    .header .layui-nav .layui-nav-mored {
        display: none!important;
    }

    .layui-header .layui-nav-item a {
        padding-left: 10px;
        padding-right: 10px
    }
    .nav-btn .layui-nav-child {
        left: auto;
        right: 0;
    }
    .list-card .list-pic {
        width: 100%;
        /* height: 100%; */
        line-height: 200px;
        margin-bottom: 10px
    }

    .tags-text {
        font-size: 12px
    }

    .page-text a {
        margin-top: 10px
    }
    .title-article {
        padding: 15px
    }

    .title-article .title-right {
        position: initial;
        height: 100% !important;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 10px;
        background: none
    }

    .title-article .title-msg span {
        font-size: 12px
    }

    .relates ul li {
        width: 100%
    }
    .about-life .t-u {
        margin-top: 50px
    }

    .about-life .t-u img {
        height: 100px
    }

    .about-life .t-t {
        margin-left: 116px
    }

    .about-life .t-t h1 {
        margin: 0
    }

    .about-life .t-d {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 60px
    }

    .about-life .t-i {
        margin: 0
    }
}


/* 兼容系统默认markdown排版样式 */
.text p {
    margin: 14px 0px;
}

.text ol, .text ul {
    margin: 14px 0px;
    padding-left: 40px;
}

.text ol li {
    list-style: decimal;
}

.text ul li {
    list-style: disc;
}

/* ===== 排版优化：美学比例（字号/行高/间距/字重）===== */
body {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
}

/* 首页文章卡片：标题层级清晰、摘要透气 */
.title-article h1 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #222;
    line-height: 1.5;
    margin-bottom: 8px;
}
.title-article p {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.85;
    color: #555;
}

/* 文章页正文：17px 舒适阅读 */
.text {
    font-size: 17px;
    line-height: 1.9;
    color: #3f3f3f;
    word-break: break-word;
}
.text p {
    margin: 1.2em 0;
}
.text h1, .text h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    margin: 1.5em 0 0.85em;
    color: #222;
}
.text h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin: 1.4em 0 0.75em;
    color: #222;
}
.text h4 {
    font-size: 17px;
    font-weight: 700;
    margin: 1.3em 0 0.65em;
    color: #222;
}
.text a {
    color: #c8932e;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.text blockquote {
    margin: 1.1em 0;
    padding: 0.7em 1.1em;
    border-left: 4px solid #d4a84b;
    background: rgba(212,168,75,0.1);
    color: #555;
    font-size: 0.95em;
}
.text img {
    border-radius: 6px;
}
.text code {
    background: #f4f4f0;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #c7254e;
}

/* 侧边栏模块标题 */
.title-sidebar {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.3px;
}

/* 标签、元信息文字 */
.tags-text, .copy-text {
    font-size: 14px;
    color: #777;
}

/* 移动端微调：字号略收、行高保持透气 */
@media (max-width: 768px) {
    body { font-size: 15px; }
    .title-article h1 { font-size: 19px; }
    .text { font-size: 16px; line-height: 1.8; }
    .text h1, .text h2 { font-size: 21px; }
    .text h3 { font-size: 18px; }
    .title-sidebar { font-size: 15px; }
}

/* 手机端侧边栏折叠收纳（手风琴） */
@media (max-width: 768px) {
    .sidebar .sidebar-box {
        background: rgba(255,255,255,0.72);
        border-radius: 6px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        margin-bottom: 10px;
        overflow: hidden;
    }
    .sidebar .sidebar-box .title-sidebar {
        cursor: pointer;
        margin: 0;
        padding: 12px 14px;
        position: relative;
        border-bottom: 1px solid transparent;
    }
    .sidebar .sidebar-box .title-sidebar::after {
        content: '+';
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        font-size: 16px;
        line-height: 1;
    }
    .sidebar .sidebar-box.open .title-sidebar::after {
        content: '-';
    }
    .sidebar .sidebar-box .sidebar-body {
        display: none;
        padding: 10px 14px 14px;
    }
    .sidebar .sidebar-box.open .sidebar-body {
        display: block;
    }
}

/* ===== 多引擎搜索组件（本站/百度/必应/夸克）===== */
.multi-search {
    width: 100%;
}
.ms-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.ms-tab {
    padding: 4px 14px;
    font-size: 13px;
    color: #666;
    background: #f4f2ec;
    border-radius: 20px;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
    -webkit-user-select: none;
}
.ms-tab.active {
    background: #d4a84b;
    color: #fff;
}
.ms-form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ms-form .input {
    flex: 1;
    min-width: 0;
}
.ms-form .layui-input {
    height: 36px;
    line-height: 34px;
    border: 1px solid #e6e3da;
    border-radius: 20px;
    padding: 0 16px;
    background: rgba(255,255,255,0.85);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ms-form .layui-input:focus {
    border-color: #d4a84b;
    box-shadow: 0 0 0 3px rgba(212,168,75,0.15);
    outline: none;
}
.ms-form .layui-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.component .ms-form .layui-input {
    width: 100%;
}

/* ===== 移动端导航三个点菜单 ===== */
@media (max-width: 768px) {
    .nav-btn { position: relative; }
    .nav-btn .layui-nav-child {
        display: none !important;
        position: absolute !important;
        top: 100%;
        right: -8px;
        z-index: 9999;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.14);
        min-width: 130px;
        padding: 6px 0;
        margin: 0;
        border: none;
    }
    .nav-btn.nav-open .layui-nav-child {
        display: block !important;
    }
    .nav-btn .layui-nav-child dd {
        border-bottom: 1px solid #f5f3ee;
    }
    .nav-btn .layui-nav-child dd:last-child {
        border-bottom: none;
    }
    .nav-btn .layui-nav-child dd a {
        display: block;
        padding: 11px 18px;
        color: #333;
        font-size: 14px;
        line-height: 1.5;
        transition: background .2s ease;
    }
    .nav-btn .layui-nav-child dd a:hover {
        background: #f7f4ec;
        color: #d4a84b;
    }
}

/* 多引擎标签栏：13 个引擎横向滚动，简洁美观 */
.ms-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.ms-tabs::-webkit-scrollbar {
    display: none;
}
.ms-tab {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* ===== 首页大横幅：智能轮播（圆角卡片 + 动效 + 悬停暂停 + 进度指示器） ===== */
.echo-banner {
    margin-bottom: 4px;
}
.echo-banner-inner {
    position: relative;
    width: 100%;
    height: 340px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0efe9;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    outline: none;
}
.echo-banner-slides {
    position: absolute;
    inset: 0;
}
.echo-banner-slides > * {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease;
    pointer-events: none;
    z-index: 1;
}
.echo-banner-slides > .active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.echo-banner-slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 缓慢缩放动效（Ken Burns） */
.echo-banner-slides > .active img {
    animation: echoKen 8s linear forwards;
}
@keyframes echoKen {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}
/* 底部渐变遮罩，让标题更清晰 */
.echo-banner-shade {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.45));
    z-index: 3;
    pointer-events: none;
}
/* 标题 + 页码 */
.echo-banner-meta {
    position: absolute;
    left: 20px; bottom: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.echo-banner-title {
    display: none;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.echo-banner.has-title .echo-banner-title {
    display: inline-block;
}
.echo-banner-index {
    color: rgba(255,255,255,.85);
    font-size: 12px;
    background: rgba(0,0,0,.25);
    padding: 3px 9px;
    border-radius: 100px;
    font-family: Consolas, "Microsoft YaHei", monospace;
}
/* 指示器：进度条式圆点 */
.echo-banner-dots {
    position: absolute;
    right: 18px; bottom: 18px;
    z-index: 4;
    display: flex;
    gap: 6px;
}
.echo-banner-dots i {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: width .3s ease, background .3s ease;
}
.echo-banner-dots i:hover {
    background: rgba(255,255,255,.9);
}
.echo-banner-dots i.active {
    width: 22px;
    background: rgba(255,255,255,.3);
}
.echo-banner-dots i.active::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 100%;
    background: #fff;
    border-radius: 100px;
    transform-origin: left;
    animation: dotFill var(--dot-dur, 4200ms) linear forwards;
}
.echo-banner.paused .echo-banner-dots i.active::after {
    animation-play-state: paused;
}
@keyframes dotFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
/* 箭头按钮：悬停显示 */
.echo-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease, background .3s ease, color .3s ease;
}
.echo-banner:hover .echo-banner-arrow {
    opacity: 1;
}
.echo-banner-arrow:hover {
    background: rgba(255,255,255,.8);
    color: #333;
}
.echo-banner-arrow.prev { left: 12px; }
.echo-banner-arrow.next { right: 12px; }
.echo-banner-arrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
}
.echo-banner-arrow.prev::before {
    transform: rotate(-45deg);
    margin-left: 3px;
}
.echo-banner-arrow.next::before {
    transform: rotate(135deg);
    margin-right: 3px;
}
/* 图片加载失败兜底 */
.echo-banner-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 600;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .echo-banner-inner {
        border-radius: 8px;
    }
    .echo-banner-arrow {
        display: none;
    }
    .echo-banner-meta {
        left: 10px; bottom: 6px;
        gap: 6px;
    }
    .echo-banner-title {
        font-size: 12px;
        padding: 3px 10px;
    }
    .echo-banner-index {
        font-size: 10px;
        padding: 2px 7px;
    }
    .echo-banner-dots {
        right: 10px; bottom: 9px;
        gap: 4px;
    }
    .echo-banner-dots i {
        width: 6px;
        height: 6px;
    }
    .echo-banner-dots i.active {
        width: 16px;
    }
    .echo-banner-shade {
        height: 70%;
    }
}

/* ===== Restore fixes (2026-08-13) ===== */
/* Tablet: sidebar fully visible (601-768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .sidebar .sidebar-box .title-sidebar {
        cursor: default;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
    .sidebar .sidebar-box .title-sidebar::after {
        content: none;
    }
    .sidebar .sidebar-box .sidebar-body {
        display: block !important;
        padding: 0;
    }
}
/* Search tabs: fit in one line, no hidden overflow */
.ms-tabs {
    gap: 4px;
    flex-wrap: wrap;
    overflow-x: visible;
}
.ms-tab {
    padding: 4px 8px;
}
/* ===== Header v5-GOLD (2026-08-13) ===== */
/* 1. Warm-white gradient bg + soft shadow (raised, blends with theme) */
.header {
    background: linear-gradient(180deg, #ffffff 0%, #faf7ef 100%);
    border-bottom: none;
    box-shadow: 0 3px 14px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
    position: relative;
    z-index: 100;
}
/* 2. Gold gradient hairline at bottom, fade at both ends (no hard line) */
.header::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent 0%, #d4a84b 18%, #d4a84b 82%, transparent 100%);
    opacity: 0.5;
    overflow: hidden;
    pointer-events: none;
}
/* 3. Nav bg transparent so header gradient shows */
.header .layui-nav {
    background: transparent;
}
/* 4. Logo: light-gold gradient text, no subtitle */
.logo {
    font-size: 1.5em;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: "Microsoft YaHei","PingFang SC","Hiragino Sans GB",sans-serif;
    background: linear-gradient(135deg, #d4a84b 0%, #a8812e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* 5. Dark nav text, gold hover + gold underline */
.header .layui-nav .layui-nav-item a {
    color: #2c2e2a;
    transition: color 0.2s ease;
}
.header .layui-nav .layui-nav-item a:hover {
    color: #b8860b;
}
.header .layui-nav .layui-nav-item:after,
.header .layui-nav .layui-nav-bar {
    height: 2px !important;
    background-color: #d4a84b !important;
}
/* ===== sr-only (2026-08-13) ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Fixbar glass + auto-hide (2026-08-13) ===== */
.layui-fixbar li[lay-type=bar1] {
    background: rgba(255,255,255,0.55) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.6) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease;
    color: #444;
}
.layui-fixbar li[lay-type=bar1]:hover {
    background: rgba(255,255,255,0.75) !important;
}
.layui-fixbar li[lay-type=bar1].is-hidden {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}
body.dark .layui-fixbar li[lay-type=bar1] {
    background: rgba(20,20,20,0.5) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #ddd;
}
body.dark .layui-fixbar li[lay-type=bar1]:hover {
    background: rgba(50,50,50,0.7) !important;
}
/* ===== 文章页护眼暖底 (2026-08-13) ===== */
/* 仅作用于文章正文页：#preview 只在 post.php 出现，用 :has 精确定位，不波及首页/列表 */
.post-content .title-article,
.post-content #preview,
.post-content .tags-text,
.post-content .copy-text,
.post-content .page-text {
    background-color: #f6f1e3; /* 护眼暖米色，柔和低刺激 */
}
/* 正文文字色微调，保证在暖底上清晰舒适 */
.post-content #preview {
    color: #3d3d33;
}

/* ===== 文章页标题/正文接缝分隔阴影 (2026-08-13) ===== */
/* 标题区底部加柔和渐变分隔线，隔开标题与正文；仅文章页(.post-content)生效 */
.post-content .title-article {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.post-content .title-article::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.07), rgba(0,0,0,0));
    pointer-events: none;
}

/* ===== 文章页右侧栏自动隐藏·鼠标/触摸靠近才显示 (2026-08-13) ===== */
/* 仅文章页生效：JS 给 .main 加 peek-sidebar 类，侧栏变成右侧悬浮面板，文章区占满 */
.main.peek-sidebar { position: relative; }
/* 滑入动画：轻微回弹(overshoot)+淡入，更具动感 */
@keyframes sidebarPeekIn {
    0%   { transform: translateX(105%); opacity: 0; }
    70%  { transform: translateX(-14px); opacity: 1; }
    100% { transform: translateX(0); opacity: 1; }
}
.main.peek-sidebar .sidebar.layui-col-md3.peek-visible,
.main.peek-sidebar .sidebar.layui-col-lg3.peek-visible {
    transform: translateX(0);
    opacity: 1;
    animation: sidebarPeekIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
/* 面板内每个模块(搜索/栏目/广告/动态/标签/链接)依次淡入上移，更有节奏 */
.main.peek-sidebar .sidebar .sidebar-box,
.main.peek-sidebar .sidebar .component {
    opacity: 0;
    transform: translateX(24px);
}
.main.peek-sidebar .sidebar.peek-visible .component,
.main.peek-sidebar .sidebar.peek-visible .sidebar-box {
    animation: sidebarItemIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.main.peek-sidebar .sidebar.peek-visible .component           { animation-delay: 0.08s; }
.main.peek-sidebar .sidebar.peek-visible .sidebar-box:nth-child(1) { animation-delay: 0.14s; }
.main.peek-sidebar .sidebar.peek-visible .sidebar-box:nth-child(2) { animation-delay: 0.22s; }
.main.peek-sidebar .sidebar.peek-visible .sidebar-box:nth-child(3) { animation-delay: 0.30s; }
.main.peek-sidebar .sidebar.peek-visible .sidebar-box:nth-child(4) { animation-delay: 0.38s; }
.main.peek-sidebar .sidebar.peek-visible .sidebar-box:nth-child(5) { animation-delay: 0.46s; }
.main.peek-sidebar .sidebar.peek-visible .sidebar-box:nth-child(6) { animation-delay: 0.54s; }
@keyframes sidebarItemIn {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}
/* 模块标题/链接悬停动感：颜色渐变过渡 */
.main.peek-sidebar .sidebar .title-sidebar {
    transition: color 0.25s ease, transform 0.25s ease;
}
.main.peek-sidebar .sidebar .sidebar-box:hover .title-sidebar {
    color: #c8932e;
    transform: translateX(4px);
}
.main.peek-sidebar .sidebar a {
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.main.peek-sidebar .sidebar a:hover {
    color: #c8932e;
    padding-left: 3px;
}
/* 面板避开页头：top 下移 60px(页头高)，z-index 高于页头(1000)以免搜索按钮被遮挡 */
.main.peek-sidebar .sidebar.layui-col-md3,
.main.peek-sidebar .sidebar.layui-col-lg3 {
    top: 60px !important;
    height: calc(100vh - 60px) !important;
    z-index: 1001 !important;
}
.main.peek-sidebar .layui-col-md9,
.main.peek-sidebar .layui-col-lg9 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    transition: flex 0.35s ease, max-width 0.35s ease;
}
.main.peek-sidebar .sidebar.layui-col-md3,
.main.peek-sidebar .sidebar.layui-col-lg3 {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 92vw;
    height: 100vh;
    margin: 0;
    padding: 20px;
    overflow-y: auto;
    background: #fbf9f2;
    box-shadow: -8px 0 28px rgba(0,0,0,0.16);
    transform: translateX(105%);
    /* 动感：位移+透明度+圆角同时过渡，滑出更灵动 */
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s ease;
    opacity: 0.85;
    border-radius: 12px 0 0 12px;
}
.main.peek-sidebar .sidebar.layui-col-md3.peek-visible,
.main.peek-sidebar .sidebar.layui-col-lg3.peek-visible {
    transform: translateX(0);
}
/* 悬浮面板内的搜索组件在桌面也应显示 */
.main.peek-sidebar .sidebar .component.layui-hide-xs { display: block; }

/* ===== 文章页侧栏隐藏时容器+列整体居中屏幕 (2026-08-13) ===== */
/* 把容器缩成 1100px 居中(比默认 75% 更宽)；用 longhand flex 属性强制列占满行宽，让阅读列真正居中 */
.layui-container:has(.main.peek-sidebar) {
    max-width: 1100px !important;
    width: 1100px !important;
}
.main.peek-sidebar .layui-col-md9,
.main.peek-sidebar .layui-col-lg9 {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ===== 文章正文阅读优化 (2026-08-14) ===== */
#preview {
    font-size: 17px;
    line-height: 1.9;
    color: #333;
}
#preview p {
    margin: 0 0 1em;
    padding: 0;
}
#preview h1,
#preview h2,
#preview h3,
#preview h4,
#preview h5,
#preview h6 {
    margin: 1.4em 0 0.6em;
    font-weight: 600;
    line-height: 1.4;
}
#preview h1 { font-size: 1.7em; }
#preview h2 { font-size: 1.5em; }
#preview h3 { font-size: 1.3em; }
#preview h4 { font-size: 1.15em; }
#preview ul,
#preview ol {
    margin: 0 0 1em;
    padding-left: 1.6em;
}
#preview li {
    margin-bottom: 0.35em;
}
#preview li p {
    margin-bottom: 0.35em;
}
#preview pre {
    margin: 1.1em 0;
    font-size: 15px;
    line-height: 1.7;
}
#preview pre code {
    font-size: 15px;
}
#preview code {
    font-size: 0.92em;
}
#preview blockquote {
    margin: 1.2em 0;
    padding: 0.6em 1em;
    border-left: 4px solid #ddd;
    background: #f8f8f8;
    color: #555;
}
#preview table {
    font-size: 15px;
    margin: 1.2em 0;
}
#preview img {
    margin: 1.2em auto;
}

/* ============================================================
   文章正文 现代排版 v2 (2026-08-14)
   更大字号 + 清晰层级 + 统一间距
   ============================================================ */
#preview {
    font-size: 18px;
    line-height: 1.85;
    color: #3a3a3a;
    word-break: break-word;
}

/* 段落 */
#preview p {
    margin: 0 0 1.25em;
    padding: 0;
}

/* 标题层级 */
#preview h1,
#preview h2,
#preview h3,
#preview h4,
#preview h5,
#preview h6 {
    font-weight: 700;
    line-height: 1.4;
    margin: 1.6em 0 0.7em;
    color: #222;
}
#preview h1 { font-size: 1.9em; border-bottom: 1px solid #eee; padding-bottom: .4em; }
#preview h2 { font-size: 1.55em; border-bottom: 1px solid #eee; padding-bottom: .35em; }
#preview h3 { font-size: 1.3em; }
#preview h4 { font-size: 1.12em; }
#preview h5 { font-size: 1em; }

/* 列表 */
#preview ul,
#preview ol {
    margin: 0 0 1.25em;
    padding-left: 1.9em;
}
#preview li {
    margin-bottom: 0.5em;
    line-height: 1.85;
}
#preview li > ul,
#preview li > ol {
    margin-top: 0.5em;
    margin-bottom: 0.3em;
}
#preview li p {
    margin-bottom: 0.4em;
}

/* 代码块：现代卡片风格（保留 mac 圆点） */
#preview pre {
    margin: 1.4em 0;
    padding: 34px 0 0;
    font-size: 15px;
    line-height: 1.7;
    background: #282c34;
    border: 1px solid #1f232b;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
#preview pre code {
    display: block;
    overflow: auto;
    padding: 6px 18px 16px;
    background: transparent;
    color: #e6e6e6;
    font-size: 15px;
    line-height: 1.7;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Monaco, "Courier New", monospace;
    white-space: pre;
}
#preview pre code[class*='language-'],
#preview pre code[class*='lang-'] {
    background: transparent;
}

/* 行内代码 */
#preview code {
    padding: 0.15em 0.45em;
    font-size: 0.9em;
    background: rgba(175,184,193,.2);
    color: #d73a49;
    border-radius: 4px;
    font-family: "SFMono-Regular", Consolas, Menlo, Monaco, "Courier New", monospace;
}

/* 表格 */
#preview table {
    width: 100%;
    margin: 1.4em 0;
    font-size: 15px;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
#preview th {
    background: #f0f2f5;
    color: #333;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border: 1px solid #e1e4e8;
}
#preview td {
    padding: 10px 14px;
    border: 1px solid #e1e4e8;
    background: #fff;
}
#preview tbody tr:nth-child(odd) td {
    background: #fafbfc;
}

/* 引用 */
#preview blockquote {
    margin: 1.4em 0;
    padding: 0.8em 1.2em;
    border-left: 4px solid #4f8ef7;
    background: #f6f9ff;
    color: #444;
    border-radius: 0 8px 8px 0;
}
#preview blockquote p {
    margin: 0.3em 0;
}

/* 图片 */
#preview img {
    margin: 1.4em auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    display: block;
}

/* 链接 */
#preview a {
    color: #2b6cb0;
    text-decoration: none;
    border-bottom: 1px solid rgba(43,108,176,.3);
}
#preview a:hover {
    color: #1a4870;
    border-bottom-color: #1a4870;
}

/* 分隔线 */
#preview hr {
    border: 0;
    height: 1px;
    background: #e1e4e8;
    margin: 2em 0;
}

/* ===== 评论区 v3：独立暖色卡片 + 邀请评论氛围 (2026-08-14) ===== */
/* 与正文(暖米色)区分：评论区为浅暖渐变卡片，暖金点缀，营造"欢迎留言"感 */
.post-content .comment-text {
    background: linear-gradient(180deg, #fffdf6 0%, #faf2e0 100%);
    border: 1px solid #eadfc4;
    border-radius: 12px;
    padding: 24px 22px;
    margin-top: 16px;
    box-shadow: 0 4px 18px rgba(178,148,92,0.10);
}
/* 标题区：暖咖色 + 装饰，亲切有活力 */
.post-content .comment-text h4 {
    font-size: 20px;
    color: #9c6400;
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: 1px;
}
.post-content .comment-text h4::before {
    content: '\260E';
    display: inline-block;
    margin-right: 8px;
    color: #e8a33d;
    font-size: 18px;
    transform: rotate(-20deg);
}
.post-content .comment-text h3 {
    color: #8a6d3b;
    font-size: 16px;
    font-weight: 600;
    margin: 14px 0 6px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e5d8ba;
}
/* 输入区：白色干净底，暖色描边，聚焦暖橙高亮 */
.post-content .comment-text .layui-textarea,
.post-content .comment-text .layui-input {
    background: #ffffff;
    border: 1.5px solid #e8dcc0;
    border-radius: 8px;
    color: #3a3a3a;
    transition: border-color .25s, box-shadow .25s;
}
.post-content .comment-text .layui-textarea:focus,
.post-content .comment-text .layui-input:focus {
    border-color: #e8a33d;
    box-shadow: 0 0 0 3px rgba(232,163,61,0.15);
}
.post-content .comment-text .layui-textarea::placeholder,
.post-content .comment-text .layui-input::placeholder {
    color: #c6b48f;
}
/* 评论列表：白色卡片 + 左侧暖金条，悬停轻微上浮 */
.post-content .pinglun .comment-body {
    background: #ffffff;
    border: 1px solid #efe6d0;
    border-left: 4px solid #e8b45a;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(178,148,92,0.08);
    transition: all .25s;
}
.post-content .pinglun .comment-body:hover {
    border-left-color: #e8903a;
    box-shadow: 0 5px 14px rgba(178,148,92,0.16);
    transform: translateY(-2px);
}
/* 博主徽章、头像圆环暖化 */
.post-content .pinglun .t-p img {
    border-color: rgba(232,180,90,0.4);
}
/* 提交按钮：暖橙渐变，醒目有吸引力 */
.post-content .comment-text .layui-btn-normal {
    background: linear-gradient(135deg, #f2a54a 0%, #e8823a 100%);
    border: none;
    color: #ffffff;
    border-radius: 6px;
    font-size: 15px;
    padding: 0 28px;
    box-shadow: 0 3px 10px rgba(232,130,58,0.35);
    transition: all .25s;
}
.post-content .comment-text .layui-btn-normal:hover {
    background: linear-gradient(135deg, #f5b25e 0%, #ee9048 100%);
    box-shadow: 0 5px 16px rgba(232,130,58,0.45);
    transform: translateY(-1px);
}
/* 回复链接暖色 */
.post-content .comment-text .t-btn a {
    color: #b07121;
}
.post-content .comment-text .t-btn a:hover {
    color: #e8823a;
}
/* ===== 关于页 / 收藏页 融合配色 (2026-08-14) =====
   品牌金 #d4a84b → #8b7d3c 渐变；暖白底；统一卡片语言 */
.fusion-card {
    background: #fff;
    border: 1px solid #f0e6d2;
    border-radius: 12px;
    padding: 30px 32px;
    box-shadow: 0 6px 24px rgba(212, 168, 75, 0.08);
    margin-bottom: 24px;
    position: relative;
}
.fusion-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, #d4a84b, #8b7d3c);
}
.fusion-title {
    color: #b8944a;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: 1px;
}
.fusion-sub {
    color: #8a8a8a;
    font-size: 14px;
    margin: 0 0 18px;
}
.fusion-divider {
    height: 1px;
    background: linear-gradient(90deg, #d4a84b, transparent);
    margin: 18px 0;
    border: 0;
}
.fusion-meaning {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}
.fusion-meaning li {
    padding: 8px 0;
    color: #4a4a4a;
    font-size: 15px;
    border-bottom: 1px dashed #f2ead8;
}
.fusion-meaning li:last-child { border-bottom: 0; }
.fusion-letter {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin-right: 12px;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, #d4a84b, #8b7d3c);
    box-shadow: 0 2px 8px rgba(212,168,75,.35);
}
.fusion-top {
    color: #b8944a;
    font-size: 16px;
    margin: 0 0 8px;
}
.fusion-top + p {
    color: #666;
    font-size: 15px;
    line-height: 2;
    margin: 0 0 18px;
}
.fusion-mail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #faf6ec;
    border: 1px solid #f0e6d2;
    border-radius: 10px;
    padding: 14px 18px;
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}
.fusion-mail a {
    color: #b8944a;
    font-weight: 700;
    text-decoration: none;
}
.fusion-mail a:hover { color: #8b7d3c; }
.fusion-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fusion-links li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin: 0 0 10px;
    background: #fdfbf6;
    border: 1px solid #f2ead8;
    border-radius: 10px;
    transition: all .25s ease;
}
.fusion-links li:hover {
    background: #fff;
    border-color: #d4a84b;
    box-shadow: 0 4px 14px rgba(212,168,75,.18);
    transform: translateX(4px);
}
.fusion-links a {
    color: #4a4a4a;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.fusion-links a:hover { color: #b8944a; }
.fusion-links .fusion-tag {
    font-size: 12px;
    color: #b8944a;
    background: rgba(212,168,75,.12);
    border-radius: 20px;
    padding: 2px 12px;
    margin-left: 10px;
    white-space: nowrap;
}
/* 暗色模式适配 */
body.dark .fusion-card {
    background: #2b2e35;
    border-color: #3a3e48;
    box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
body.dark .fusion-title,
body.dark .fusion-top { color: #e0c27a; }
body.dark .fusion-sub { color: #9a9aa2; }
body.dark .fusion-meaning li { color: #cfcfd6; border-bottom-color: #3a3e48; }
body.dark .fusion-letter {
    background: linear-gradient(135deg, #d4a84b, #8b7d3c);
}
body.dark .fusion-meaning li:last-child { border-bottom: 0; }
body.dark .fusion-top + p { color: #b0b0b8; }
body.dark .fusion-mail {
    background: #23262c;
    border-color: #3a3e48;
    color: #9a9aa2;
}
body.dark .fusion-mail a { color: #e0c27a; }
body.dark .fusion-mail a:hover { color: #d4a84b; }
body.dark .fusion-links li {
    background: #262a31;
    border-color: #3a3e48;
}
body.dark .fusion-links li:hover {
    background: #2e323a;
    border-color: #d4a84b;
}
body.dark .fusion-links a { color: #cfcfd6; }
body.dark .fusion-links a:hover { color: #e0c27a; }
body.dark .fusion-links .fusion-tag {
    color: #e0c27a;
    background: rgba(212,168,75,.15);
}
/* ===== 侧边栏 栏目分类卡片 v2 (2026-08-14, 仅桌面端 >=769px) ===== */
@media (min-width: 769px) {
.column.sidebar-box {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 14px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 24px;
}
.column.sidebar-box .title-sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 16px;
    font-weight: 600;
    color: #2c2e2f;
}
.column.sidebar-box .title-sidebar > i {
    margin-right: 6px;
    color: #2c2e2f;
    font-size: 17px;
}
.column.sidebar-box .title-sidebar::after {
    content: '\2212';
    color: #b0b0b0;
    font-size: 20px;
    line-height: 1;
    font-weight: 300;
    position: static;
    transform: none;
}
.column.sidebar-box ul.sidebar-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
    padding: 14px;
    list-style: none;
    margin: 0;
}
.column.sidebar-box ul.sidebar-body li {
    width: auto !important;
    padding: 0 !important;
    float: none;
    min-width: 0;
}
.column.sidebar-box ul.sidebar-body li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    color: #2c2e2f;
    text-decoration: none;
    transition: background .2s;
    min-width: 0;
    gap: 6px;
}
.column.sidebar-box ul.sidebar-body li a:hover {
    background: #f7f7f7;
}
.column.sidebar-box ul.sidebar-body li a > i.layui-icon {
    flex-shrink: 0;
    font-size: 14px;
    color: #2c2e2f;
}
.column.sidebar-box ul.sidebar-body li a .cat-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}
.column.sidebar-box ul.sidebar-body li a .layui-badge {
    flex-shrink: 0;
    background: #f1f1f1;
    color: #2c2e2f;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    min-width: 20px;
    text-align: center;
}
body.dark .column.sidebar-box {
    background: #2b2e35;
    border-color: #3a3e48;
    box-shadow: 0 2px 14px rgba(0,0,0,.35);
}
body.dark .column.sidebar-box .title-sidebar {
    color: #e0e0e6;
    border-bottom-color: #3a3e48;
}
body.dark .column.sidebar-box .title-sidebar > i,
body.dark .column.sidebar-box .title-sidebar::after { color: #b0b0b8; }
body.dark .column.sidebar-box ul.sidebar-body li a { color: #cfcfd6; }
body.dark .column.sidebar-box ul.sidebar-body li a:hover { background: #3a3e48; }
body.dark .column.sidebar-box ul.sidebar-body li a > i.layui-icon { color: #cfcfd6; }
body.dark .column.sidebar-box ul.sidebar-body li a .layui-badge {
    background: #3a3e48;
    color: #e0e0e6;
}
}

/* ===== 侧边栏 栏目分类卡片 v3 彩色版 (2026-08-14) ===== */
/* 8 组渐变色循环分配给各个分类 */
.column.sidebar-box ul.sidebar-body li:nth-child(8n+1) a { --cat1: #d4a84b; --cat2: #e8c87e; }
.column.sidebar-box ul.sidebar-body li:nth-child(8n+2) a { --cat1: #5b8def; --cat2: #8fb5ff; }
.column.sidebar-box ul.sidebar-body li:nth-child(8n+3) a { --cat1: #34a879; --cat2: #6fd0a8; }
.column.sidebar-box ul.sidebar-body li:nth-child(8n+4) a { --cat1: #9b72d9; --cat2: #c4a2f0; }
.column.sidebar-box ul.sidebar-body li:nth-child(8n+5) a { --cat1: #e8894a; --cat2: #f4b183; }
.column.sidebar-box ul.sidebar-body li:nth-child(8n+6) a { --cat1: #3fa8a0; --cat2: #7ccfc8; }
.column.sidebar-box ul.sidebar-body li:nth-child(8n+7) a { --cat1: #e06f8b; --cat2: #f0a1b5; }
.column.sidebar-box ul.sidebar-body li:nth-child(8n+8) a { --cat1: #5f6bd6; --cat2: #98a1ef; }

/* 桌面端 (>=769px) */
@media (min-width: 769px) {
.column.sidebar-box .title-sidebar {
    position: relative;
    padding-left: 32px;
}
.column.sidebar-box .title-sidebar::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 16px;
    border-radius: 3px;
    background: linear-gradient(180deg, #d4a84b, #b8893a);
}
.column.sidebar-box .title-sidebar::after { content: none; }
.column.sidebar-box ul.sidebar-body {
    gap: 8px;
    padding: 14px;
}
.column.sidebar-box ul.sidebar-body li a {
    position: relative;
    padding: 9px 10px 9px 12px;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #f2f2f2;
    overflow: hidden;
    transition: all .25s ease;
}
.column.sidebar-box ul.sidebar-body li a::before {
    content: '';
    position: absolute;
    left: 0; top: 22%; bottom: 22%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--cat1), var(--cat2));
    opacity: 0;
    transition: opacity .25s;
}
.column.sidebar-box ul.sidebar-body li a:hover {
    background: #fff;
    border-color: color-mix(in srgb, var(--cat1) 30%, #fff);
    box-shadow: 0 5px 16px color-mix(in srgb, var(--cat1) 18%, rgba(0,0,0,.06));
    transform: translateY(-1px);
}
.column.sidebar-box ul.sidebar-body li a:hover::before { opacity: 1; }
.column.sidebar-box ul.sidebar-body li a > i.layui-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cat1), var(--cat2));
    color: #fff;
    font-size: 14px;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--cat1) 35%, transparent);
    transition: transform .25s ease;
}
.column.sidebar-box ul.sidebar-body li a:hover > i.layui-icon { transform: scale(1.08); }
.column.sidebar-box ul.sidebar-body li a .cat-name {
    font-size: 14px;
    font-weight: 500;
    color: #3a3d42;
}
.column.sidebar-box ul.sidebar-body li a .layui-badge {
    background: linear-gradient(135deg, var(--cat1), var(--cat2));
    color: #fff;
    border-radius: 999px;
    min-width: 22px;
    padding: 2px 8px;
    font-weight: 600;
}
}

/* 手机端 (<769px) 手风琴展开后同样彩色 */
@media (max-width: 768px) {
.column.sidebar-box .title-sidebar {
    padding-left: 36px;
}
.column.sidebar-box .title-sidebar::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 14px;
    border-radius: 3px;
    background: linear-gradient(180deg, #d4a84b, #b8893a);
}
.column.sidebar-box.open ul.sidebar-body {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 !important;
    padding: 12px !important;
}
.column.sidebar-box.open ul.sidebar-body li {
    width: auto !important;
    padding: 0 !important;
    float: none;
}
.column.sidebar-box.open ul.sidebar-body li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #f2f2f2;
    overflow: hidden;
}
.column.sidebar-box.open ul.sidebar-body li a > i.layui-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cat1), var(--cat2));
    color: #fff;
    font-size: 13px;
}
.column.sidebar-box.open ul.sidebar-body li a .cat-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #3a3d42;
}
.column.sidebar-box.open ul.sidebar-body li a .layui-badge {
    background: linear-gradient(135deg, var(--cat1), var(--cat2));
    color: #fff;
    border-radius: 999px;
    min-width: 20px;
    font-weight: 600;
}
}

/* ===== 栏目分类 v3 强制修复: 桌面端 2x2 网格 (2026-08-14) ===== */
@media (min-width: 769px) {
.column.sidebar-box ul.sidebar-body {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-flow: row !important;
    gap: 8px !important;
    padding: 14px !important;
    margin: 0 !important;
    list-style: none !important;
}
.column.sidebar-box ul.sidebar-body li {
    display: block !important;
    grid-column: span 1 !important;
    grid-row: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}
}


/* ===== 栏目分类 v3.1 桌面端单列布局 (2026-08-14) ===== */
/* 解决：两列布局在窄视口下分类名被截断，改为单列让每行信息完整 */
@media (min-width: 769px) {
.column.sidebar-box ul.sidebar-body {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px 14px !important;
}
.column.sidebar-box ul.sidebar-body li {
    width: 100% !important;
    margin: 0 !important;
}
.column.sidebar-box ul.sidebar-body li:last-child { margin-bottom: 0 !important; }
.column.sidebar-box ul.sidebar-body li a {
    padding: 10px 14px 10px 12px !important;
    justify-content: flex-start !important;
    gap: 10px !important;
}
.column.sidebar-box ul.sidebar-body li a > i.layui-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 15px !important;
}
.column.sidebar-box ul.sidebar-body li a .cat-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #3a3d42 !important;
}
.column.sidebar-box ul.sidebar-body li a .layui-badge {
    margin-left: auto !important;
    min-width: 24px !important;
    padding: 2px 9px !important;
    font-size: 12px !important;
}
}

/* ===== B站/嵌入视频播放器 响应式适配(2026-09-06) =====
   让正文里直接粘贴的裸 B 站 iframe(无容器)也自动满宽 + 16:9 比例,
   长宽高随正文容器缩放, 不溢出、不被截断、不留过高空隙。
   命中条件: 正文 #preview 内 src 指向 B 站官方播放器的 iframe。
   注: DPlayer 插件已输出带 16:9 容器的 iframe(内层 absolute+100%高),
       其内联宽高优先于此规则, 故不受影响。 */
#preview iframe[src*="player.bilibili.com"],
#preview iframe[src*="bilibili.com/player"] {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    border: 0;
    margin: 16px 0;
    background: #000;
}
