
/*
*主题：森木博客
*作者：森木
*网址：www.zblogsm.com
*时间：2020-03-16
*/
/* CSS Variables for Theming */
:root {
    --bg-body: #dee2e6;
    --bg-card: #F8F9FA;
    --bg-nav-mobile: #343a40;
    --text-primary: #343a40;
    --text-secondary: #444;
    --text-nav: #333;
    --text-nav-mobile: #fff;
    --link-hover: #0066ff;
    --border-light: #f0f0f0;
    --shadow-card: 0 0 10px rgba(0,0,0,0.1);
    --header-bg: #fff;
}

/*reset*/
body,input,button,select,textarea {font:14px/1.5 Helvetica,Tahoma,'Microsoft Yahei','Simsun';}
textarea {resize:none;}
h1,h2,h3,h4,h5,h6 {font-weight:normal;font-size:1em;}
body,ul,ol,li,dl,dd,p,h1,h2,h3,h4,h5,h6,form,fieldset,.pr,.pc {margin:0;padding:0;}
table {empty-cells:show;border-collapse:collapse;}
caption,th {text-align:center;font-weight:400;}
em,cite,i {font-style:normal;}
a {color:#343a40;text-decoration:none;}
a:hover {text-decoration:underline;}
a img {border:none;}
label {cursor:pointer;}
img {border:0}
dd,div,dl,dt,form,h1,h2,h3,h4,h5,img,input,label,p,span,textarea,ul {margin:0;padding:0;outline:0}
input,textarea,button{outline-style:none;-webkit-appearance:none;}
/*color*/
body {color:var(--text-primary);background-color:var(--bg-body);}
a {color:var(--text-secondary);text-decoration:none;outline:0;}
a:hover {color:#0066ff;}
/*public*/
.container {width:1200px;margin:0 auto;}
.fl{float:left;}
.fr{float:right;}
.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}
.clear{clear:both}
.br{border-radius:8px;}
.card{background-color:var(--bg-card);box-shadow:var(--shadow-card);}
.red{color:red;}
/*Headroom.js所需样式*/
.header--fixed{position: fixed;z-index: 10;right: 0;left: 0;top: 0}
.animated {-webkit-animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}
@-webkit-keyframes slideDown {0% {-webkit-transform:translateY(-60px);}100% {-webkit-transform:translateY(0);}}
.animated.slideDown {-webkit-animation-name:slideDown;animation-name:slideDown}
@-webkit-keyframes slideUp {0% {-webkit-transform:translateY(0);}100% {-webkit-transform:translateY(-60px);}}
.animated.slideUp {-webkit-animation-name:slideUp;animation-name:slideUp}
/*header*/
#header {height:60px;line-height:60px;margin-bottom:20px;width:1200px;margin:0 auto;}
.logo {float:left;font-size:0}
.logo img {max-height:60px;vertical-align:middle}
.nav {float:left;margin-left:30px;}
.nav ul {list-style:none}
.nav li {float:left;font-size:16px;position:relative;z-index:2}
.nav li+#nvabar-item-index {display:none}
.nav li a {color:var(--text-nav);padding:0 20px;display:inline-block}
.nav li.active > a {color:#0066ff;}
.nav ul ul {display:none;position:absolute;top:100%;left:0;background: #f8f9fa;border-radius: 8px;margin-top: -8px;padding: 10px 0;}
@media screen and (max-width:992px) {.nav ul ul {background: none;padding: 0;}}
.nav ul li:hover>ul {display:block;}
.nav ul ul li {white-space:nowrap;line-height:45px}
.nav ul ul ul {top:0;left:100%}
.login {float:right}
.user {float:right;position:relative;margin:0 10px;z-index: 8;}
/*面包屑导航,breadcrumb2用于search.php*/
.index-breadcrumb{margin:20px 0;padding-top:40px;}
.breadcrumb,.breadcrumb2{width:1200px;margin:0 auto;color:#767c82;margin: 20px auto;padding-top: 40px;}
.breadcrumb a,.breadcrumb2 a{color:#767c82;}
.breadcrumb i {display:inline-block;margin:0 7px 0 5px;}
#pt {margin:18px 0;height:25px;border:none;background:transparent;line-height:25px;padding-left: 10px;}
#pt .z {padding-right:10px;}
#pt .z a,#pt .z em,#pt .z span {float:left;height:25px;}
#pt .z em {width:20px;color:#797b7d;text-align: center;}
@media screen and (max-width:992px) {.index-breadcrumb{padding-top:35px;}.breadcrumb,.breadcrumb2 {margin: 25px 3% 10px 3%;width: 94%;}}

#aside_about {padding:0;}
#aside_about .bg {width:100%;height:142px;background: #fff;}
#aside_about .avatar {width:100%;text-align:center;margin-top:-42px}
#aside_about .img {width:60px;height:60px;margin:0 auto;}
#aside_about .wrap {padding-top:0;padding:0px 10px 0px 10px;}
#aside_about .title {text-align:center;font-size:20px;color:#333}
#aside_about .info {color:#666;line-height:26px;overflow:hidden;padding: 13px;text-align: center;}
#aside_about .ul {display:flex;flex-wrap:wrap;position:relative;margin-top:5px}
#aside_about .line {position:absolute;left:46%;top:5px;z-index:1;color:#aaa;font-size:22px}
#aside_about .li {width:50%;text-align:center;box-sizing:border-box;}
#aside_about .num {text-align:center;font-size:22px;font-weight:100;line-height:25px}
#aside_about .num-sm {text-align:center;font-size:13px;font-weight:400;line-height:25px;color:#666;white-space:nowrap;}
#aside_about small {display:block;color:#999}
#widget_aside_author .title {margin:-1.5em;background:#f8f8f8;padding:1.5em;background-size:100%!important}
#widget_aside_author .img {border-radius:100px;width:70px;height:70px;margin:0 auto;display:block;border:5px solid rgba(255,255,255,.8)}
#widget_aside_author .avatar {margin-top:50px;display:block}
#widget_aside_author .name {font-size:22px;text-align:center}
#widget_aside_author .level {font-size:12px;background-color:#0084ff;padding:2px 6px;color:#fff;text-align:center;display:inline-block;vertical-align:middle}
#widget_aside_author .intro {color:#888;text-align:center}
#renmenw {margin-top:7px;}
#renmenwb {margin-top:13px;}
#ttds {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
#ttds55 {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
/*首页友情链接*/
.f-link {width:1160px;float:left;height:auto;margin-bottom:20px;overflow:hidden;padding: .5em 1.5em;}
.f-link h4{height: 40px;line-height: 40px;font-size: 16px;position: relative;font-weight: bold;}
.f-link .wrap {float:left;margin:0px;padding-bottom:6px;overflow:hidden;}
.f-link .wrap ul {list-style:none;}
.f-link .wrap ul li {float:left;font-size:14px;line-height:35px;list-style:none;white-space:nowrap;padding-right: 20px;}
.f-link .wrap ul li a {color:#696969;}


.user .avatar {padding:0 15px;font-size:0;cursor:pointer}
.user .avatar img {width:32px;height:32px;border-radius:50%;vertical-align:middle}
.user .login {display:none;position:absolute;top:52px;right:0;white-space:nowrap;background-color:#fff;border:1px solid #ddd;padding:15px;line-height:24px;color:#333}
.user .login span {display:inline-block}
.user .login span:first-child {margin-right:10px}
.user .login span a {color:#333}
.user.active .avatar {background-color:#dee2e6}
.search {float:right;margin-top:15px;margin-right: 30px;}
.search form {width:200px;height:30px;line-height:30px;overflow:hidden;color:#ddd;}
.search form input {float:left;width:75%;height:30px;line-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #ddd;border-right:0;padding-left:5%;border-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0;}
.search form button {float:left;width:25%;height:30px;line-height:30px;text-align:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;background-color:#fff;border:1px solid #ddd;border-left:0;color:#666;border-radius:4px;border-top-left-radius:0;border-bottom-left-radius:0;cursor: pointer;}

/* 🌗 手动切换深色模式按钮 */
#theme-toggle {float:right;margin-top:15px;margin-right:10px;cursor:pointer;color:#666;font-size:16px;line-height:30px;border:none;background:none;padding:0;}
#theme-toggle:hover {color:#0066ff;}
@media screen and (max-width:992px) {
    #theme-toggle {float:none;margin:0;line-height:60px;border:none;background:none;padding:0;}
}

/* 手动深色模式覆盖（优先级高于系统偏好） */
html[data-theme="dark"] { --bg-body: #121212; --bg-card: #1e1e1e; --bg-nav-mobile: #0a0a0a; --text-primary: #e0e0e0; --text-secondary: #c0c0c0; --text-nav: #e0e0e0; --text-nav-mobile: #e0e0e0; --link-hover: #4d94ff; --border-light: #333333; --shadow-card: 0 0 10px rgba(0,0,0,0.4); --header-bg: #1a1a1a; }
html[data-theme="dark"][data-color="amber"] { --link-hover: #f0a030; }
html[data-theme="dark"][data-color="emerald"] { --link-hover: #34d399; }
html[data-theme="dark"][data-color="gold"] { --link-hover: #e8b840; }
html[data-theme="light"][data-color="amber"] { --link-hover: #d97706; }
html[data-theme="light"][data-color="emerald"] { --link-hover: #059669; }
html[data-theme="light"][data-color="gold"] { --link-hover: #b8860b; }

/* ===== 主题配色切换（覆盖硬编码的 #0066ff） ===== */
html[data-color="amber"] a:hover,
html[data-color="amber"] .nav li.active > a,
html[data-color="amber"] #theme-toggle:hover,
html[data-color="amber"] .post .tags .tag i,
html[data-color="amber"] .article_content a,
html[data-color="amber"] .compost .com_name,
html[data-color="amber"] .clbody .creply a,
html[data-color="amber"] .clbody p a { color: #d97706; }
html[data-color="amber"] .pagebar span,
html[data-color="amber"] .pagebar a:hover,
html[data-color="amber"] .bottom_tools a:hover,
html[data-color="amber"] .qr_tool:hover { background-color: #d97706; }
html[data-color="amber"] .compost .com_info button { background-color: #d97706; box-shadow: 1px 2px 8px rgba(217,119,6,0.7); }
html[data-color="amber"] .article_content h1,
html[data-color="amber"] .article_content h2,
html[data-color="amber"] .article_content h3,
html[data-color="amber"] .article_content h4,
html[data-color="amber"] .article_content h5,
html[data-color="amber"] .article_content h6 { border-left-color: #d97706; }
html[data-color="amber"] .widget_calendar td a { background: #d97706; }
html[data-color="amber"] .widget_author li::before { background-color: #d97706; }
html[data-color="amber"] .pagebar a:hover { box-shadow: 0 4px 8px rgba(217,119,6,0.7); }

html[data-color="emerald"] a:hover,
html[data-color="emerald"] .nav li.active > a,
html[data-color="emerald"] #theme-toggle:hover,
html[data-color="emerald"] .post .tags .tag i,
html[data-color="emerald"] .article_content a,
html[data-color="emerald"] .compost .com_name,
html[data-color="emerald"] .clbody .creply a,
html[data-color="emerald"] .clbody p a { color: #059669; }
html[data-color="emerald"] .pagebar span,
html[data-color="emerald"] .pagebar a:hover,
html[data-color="emerald"] .bottom_tools a:hover,
html[data-color="emerald"] .qr_tool:hover { background-color: #059669; }
html[data-color="emerald"] .compost .com_info button { background-color: #059669; box-shadow: 1px 2px 8px rgba(5,150,105,0.7); }
html[data-color="emerald"] .article_content h1,
html[data-color="emerald"] .article_content h2,
html[data-color="emerald"] .article_content h3,
html[data-color="emerald"] .article_content h4,
html[data-color="emerald"] .article_content h5,
html[data-color="emerald"] .article_content h6 { border-left-color: #059669; }
html[data-color="emerald"] .widget_calendar td a { background: #059669; }
html[data-color="emerald"] .widget_author li::before { background-color: #059669; }
html[data-color="emerald"] .pagebar a:hover { box-shadow: 0 4px 8px rgba(5,150,105,0.7); }

html[data-color="gold"] a:hover,
html[data-color="gold"] .nav li.active > a,
html[data-color="gold"] #theme-toggle:hover,
html[data-color="gold"] .post .tags .tag i,
html[data-color="gold"] .article_content a,
html[data-color="gold"] .compost .com_name,
html[data-color="gold"] .clbody .creply a,
html[data-color="gold"] .clbody p a { color: #b8860b; }
html[data-color="gold"] .pagebar span,
html[data-color="gold"] .pagebar a:hover,
html[data-color="gold"] .bottom_tools a:hover,
html[data-color="gold"] .qr_tool:hover { background-color: #b8860b; }
html[data-color="gold"] .compost .com_info button { background-color: #b8860b; box-shadow: 1px 2px 8px rgba(184,134,11,0.7); }
html[data-color="gold"] .article_content h1,
html[data-color="gold"] .article_content h2,
html[data-color="gold"] .article_content h3,
html[data-color="gold"] .article_content h4,
html[data-color="gold"] .article_content h5,
html[data-color="gold"] .article_content h6 { border-left-color: #b8860b; }
html[data-color="gold"] .widget_calendar td a { background: #b8860b; }
html[data-color="gold"] .widget_author li::before { background-color: #b8860b; }
html[data-color="gold"] .pagebar a:hover { box-shadow: 0 4px 8px rgba(184,134,11,0.7); }

/* 侧边栏用户卡片按钮 */
.uc-widget-btn { background: #0066ff; }
html[data-color="amber"] .uc-widget-btn { background: #d97706; }
html[data-color="emerald"] .uc-widget-btn { background: #059669; }
html[data-color="gold"] .uc-widget-btn { background: #b8860b; }
/* 继承式深色模式适配 */
html[data-theme="dark"] .uc-widget-btn { background: var(--link-hover); }
html[data-theme="light"] { --bg-body: #dee2e6; --bg-card: #F8F9FA; --bg-nav-mobile: #f0f2f5; --text-primary: #343a40; --text-secondary: #444; --text-nav: #333; --text-nav-mobile: #333; --link-hover: #0066ff; --border-light: #f0f0f0; --shadow-card: 0 0 10px rgba(0,0,0,0.1); --header-bg: #fff; }

/*首页幻灯片*/
.swiper {float:left;width:100%;height:260px;overflow:hidden;position:relative;margin-bottom:20px;}
.swiper .swiper-container {width:100%;height:100%}
.swiper .swiper-slide {font-size:18px;background:#f8f9fa;position:relative;display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}
.swiper .swiper-slide:hover {-moz-opacity:.9;opacity:.9}
.swiper .swiper-pagination{left:auto!important;right:1%;width:auto!important;}
.swiper .swiper-pagination-bullet{background:#fff;}
.swiper .swiper-slide img {width:860px;height:260px;display:block;object-fit:cover;overflow:hidden}
.swiper .swiper-slide p {position:absolute;left:0;right:0;bottom:0;color:#fff;background-color:rgba(0,0,0,.6);height:40px;line-height:40px;padding-left:3%;padding-right:20%;overflow:hidden;font-size:14px;}
/*限时推荐板块*/
.timed-rec {padding: 1em 1.5em;margin-bottom:20px;overflow:hidden;}
.timed-rec-header {display:flex;align-items:baseline;gap:12px;margin-bottom:1em;padding-bottom:.5em;border-bottom:1px solid var(--border-light);}
.timed-rec-title {font-size:16px;font-weight:700;color:var(--text-primary);white-space:nowrap;}
.timed-rec-subtitle {font-size:13px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.timed-rec-body {overflow:hidden;}
.timed-rec-list {list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:15px;}
.timed-rec-item {display:flex;gap:12px;align-items:center;padding:10px;border-radius:8px;transition:background .2s;}
.timed-rec-item:hover {background:rgba(0,0,0,.04);text-decoration:none;}
.timed-rec-img {width:72px;height:72px;border-radius:6px;overflow:hidden;flex-shrink:0;}
.timed-rec-img img {width:100%;height:100%;object-fit:cover;display:block;}
.timed-rec-info {flex:1;min-width:0;overflow:hidden;}
.timed-rec-name {font-size:14px;font-weight:600;color:var(--text-primary);line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:4px;}
.timed-rec-meta {font-size:12px;color:#999;}
.timed-rec-item:hover .timed-rec-name {color:var(--link-hover);}
@media screen and (max-width:992px) {
    .timed-rec-list {grid-template-columns:repeat(2,1fr);gap:10px;}
    .timed-rec-img {width:64px;height:64px;}
}
@media screen and (max-width:576px) {
    .timed-rec-list {grid-template-columns:1fr;}
    .timed-rec-img {width:60px;height:60px;}
    .timed-rec-header {flex-direction:column;gap:4px;}
    .timed-rec-subtitle {font-size:12px;}
}
/* 深色模式 */
html[data-theme="dark"] .timed-rec-item:hover {background:rgba(255,255,255,.06);}
html[data-theme="dark"] .timed-rec-header {border-bottom-color:var(--border-light);}

/*分类选项卡*/
.cat-tabs {margin-bottom:18px;overflow:hidden;clear:both;}
.cat-tabs-scroll {display:flex;gap:8px;flex-wrap:wrap;padding:4px 0;}
.cat-tab {flex-shrink:0;display:inline-flex;align-items:center;padding:7px 18px;font-size:13px;font-weight:500;color:var(--text-secondary,#444);background:var(--bg-card,#F8F9FA);border-radius:20px;transition:all .2s;border:1px solid transparent;white-space:nowrap;text-decoration:none;cursor:pointer;}
.cat-tab:hover {color:var(--link-hover,#0066ff);background:rgba(0,102,255,.06);text-decoration:none;border-color:rgba(0,102,255,.15);}
.cat-tab.active {color:#fff;background:#0066ff;border-color:#0066ff;font-weight:600;box-shadow:0 2px 8px rgba(0,102,255,.3);}
/* 深色模式 */
html[data-theme="dark"] .cat-tab {background:var(--bg-card,#1e1e1e);color:var(--text-secondary,#c0c0d0);}
html[data-theme="dark"] .cat-tab:hover {background:rgba(100,150,255,.12);color:var(--link-hover,#4d94ff);border-color:rgba(100,150,255,.2);}
html[data-theme="dark"] .cat-tab.active {background:var(--link-hover,#4d94ff);border-color:var(--link-hover,#4d94ff);color:#fff;}
@media (prefers-color-scheme: dark) {
    .cat-tab {background:var(--bg-card,#1e1e1e);color:var(--text-secondary,#c0c0d0);}
    .cat-tab:hover {background:rgba(100,150,255,.12);color:var(--link-hover,#4d94ff);border-color:rgba(100,150,255,.2);}
    .cat-tab.active {background:var(--link-hover,#4d94ff);border-color:var(--link-hover,#4d94ff);color:#fff;}
}
@media screen and (max-width:992px) {
    .cat-tabs {margin-bottom:14px;}
    .cat-tabs-scroll {flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:6px;}
    .cat-tabs-scroll::-webkit-scrollbar {display:none;}
    .cat-tab {padding:6px 14px;font-size:12px;}
}
@media screen and (max-width:576px) {
    .cat-tab {padding:5px 12px;font-size:12px;}
}

/*首页文章列表*/
.index-post {width:100%; overflow:hidden;}
.index-post .title {height:45px;line-height:45px;padding:0 15px}
.index-post .title h4 {display:inline-block;font-size:16px;font-weight:400}
.index-post .title i {float:right;display:inline-block;font-style:normal;color:#999}
.index-post .title i a {color:#999}
.index-post .ul {overflow:hidden}
.index-post ul {list-style:none;margin-right:-1.5%}
.index-post .post-card {float:left;width:48%;margin-right:2.5%;margin-bottom:20px}
.index-post .post-card:nth-child(even){margin-right:0;}
.index-post .post-card:nth-last-child(1){margin-bottom:0;}
.index-post .post-card:nth-last-child(2){margin-bottom:0;}
.index-post .post-card .cate {color:#999;display:block;margin-right: 25px;}
.index-post .post-card .img {width:100%;height:240px;overflow:hidden}
.index-post .post-card .img a {display:block;width:100%;height:100%;}
.index-post .post-card .img img {width:100%;height:100%;object-fit:cover;overflow:hidden;margin-bottom:0px;}
.index-post li p {line-height:32px;height:32px;overflow:hidden;text-align:center;font-size:14px}
.index-post .title {font-size:18px;line-height:40px;height:40px;font-weight:900;text-align:left;padding: .5em 1.4em 0 1.4em;}
.index-post .post-card .title {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}
.index-post .intro {height:50px;overflow:hidden;text-align:left;font-size:14px;line-height:24px;color:#999999;padding: 0 2em;}
.index-post .info {text-align:left;color:#999;font-size:14px;font-weight:normal;padding: .5em 2em 1em 2em;}
.index-post .info i{padding-right:5px;}
.index-post .info span {margin-right:25px;color:#999;font-weight:normal;}
@media screen and (max-width:768px) {
.index-post ul {list-style:none;margin-right:-2%}
.index-post .post-card {float:left;width:48%;margin-right:2%;margin-bottom:5px}
}
/*页脚*/
#footer {background-color:#343a40;color:#868e96}
.footer {padding:20px 0;text-align:center}
.footer a {color:#b8bbc0}
.footer .fnav {margin-bottom:15px;padding:10px;}
.footer .fnav a {display:inline-block;margin:0 10px}

.main-box {width:860px;}
/*网格列表*/
.grid {width:100%;}
.grid .list-box {display:grid;grid-template-columns:repeat(4, 1fr);gap:20px;}
.grid article {width:100%;background-color:#f8f9fa;display:flex;flex-direction:column;overflow:hidden;}
.grid article .img {width:100%;height:160px;flex-shrink:0;overflow:hidden;position:relative;display:block;padding: 0;margin: 0;}
.grid article .img img {width:100%;height:100%;object-fit:cover;overflow:hidden}
.grid article h2, .grid article .title {font-size:16px;font-weight:600;height:50px;line-height:24px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding:10px 20px 0 20px;}
.grid .info{padding:0 20px 10px 20px;margin-top:auto;}
.grid article span {line-height:28px;padding-right: 20px;font-size:14px;color:#999}
.grid article span i {margin-right:4px}
/*分页*/
.pagebar {padding:20px 0;text-align:center;margin:20px 0;}
.pagebar span,.pagebar a {display:inline-block;width:35px;height:35px;line-height:35px;text-align:center;border-radius: 5px;margin:2px;font-size: 12px;background: #c9cfd5;}
.pagebar a {color:#343a40}
.pagebar span,.pagebar a:hover {background-color:#0066ff;color:#fff;box-shadow: 0 4px 8px rgba(0, 102, 255, 0.7);}
/*文章详情*/
.post {padding:30px;overflow:hidden;margin-bottom:20px;}
.post .title {overflow:hidden;border-bottom:1px solid #e1e1e1}
.post .title h1 {font-size:28px;font-weight: bold;margin-bottom:5px}
.post .title .info {line-height:32px;padding-bottom:10px;color:#999}
.post .title .info span{margin-right:20px;}
.post .title .info span a {color:#999}
.post .title .info span i {margin-right:4px}
.post .tags{margin-top:20px;}
.post .tags .tag i{padding-right:3px;color:#0066ff;}
.post .tags .tag a {background:#fff;border-radius:5px;text-align:center;height:30px;line-height:30px;margin-right:5px;display:inline-block;padding:0 8px;border: 1px solid #ced6dd;box-shadow: 1px 2px 8px rgba(206, 213, 217, 0.9);font-size: 12px;margin-bottom: 10px;}
.post .tags .tag a:hover{background:#f8f9fa;}
.article_content {padding:10px 0;overflow:hidden;color:#333;font-size:16px;line-height:32px;word-break:break-all;word-wrap:break-word;padding-bottom:5px;position:relative}
.article_content img {max-width:100%;height:auto}
@media screen and (max-width:992px) {
    .post{padding:20px;}
    .article_content img {max-width: 100% !important;height:auto!important}
    
}
.article_content h1,.article_content h2,.article_content h3,.article_content h4,.article_content h5,.article_content h6 {margin-bottom:18px;background-image: linear-gradient(to right, #fff , #F8F9FA);color:#333;border-left:4px solid #0066ff;padding:5px;padding-left:10px;margin:20px 0;border-top-left-radius:2px;border-bottom-left-radius:2px;font-weight:bold;}
.article_content h2 {font-size:24px}
.article_content h2 {font-size:20px}
.article_content h3 {font-size:18px}
.article_content h4 {font-size:16px}
.article_content h5 {font-size:14px}
.article_content h6 {font-size:14px}
.article_content ol,.article_content ul {margin: 18px 0 18px 30px;}
.article_content ul {list-style:disc}
.article_content ol {list-style:decimal}
.article_content li {margin-bottom:6px}
.article_content p {margin:2px 0;color:#333;line-height:32px;word-wrap:break-word}
.article_content pre {word-wrap:break-word}
.article_content table {border-top:solid 1px #cacaca;border-left:solid 1px #cacaca;width:100%;margin-bottom:18px}
.article_content table thead th {background-color: #dee2e6;}
.article_content table tr:nth-child(2n) { background: #EAEDEE;}
.article_content table th {background-color:#f9f9f9;text-align:center}
.article_content table td,.article_content table th {border-bottom:solid 1px #cacaca;border-right:solid 1px #cacaca;padding:5px 10px}
.article_content .alignnone {margin:0 auto}
.article_content .alignleft {float:left;text-align:left;margin-right:10px}
.article_content .aligncenter {margin:0 auto;text-align:center;display:block}
.article_content .alignright {float:right;text-align:right;margin-left:10px}
.article_content a {color:#0066ff}
.article_content a:hover {text-decoration:underline}
/*文章过期提示*/
.stetement {color:#ad9948;background:#fff4b9;border:1px solid #eac946;overflow:hidden;margin:3px 0;padding:15px 15px 15px 35px;font-size:14px;text-indent:0;border-radius:6px;}
.stetement:before {content:'⚠️ ';}
.article_content pre,.comment pre {font-size: 14px;background: #dee2e6;padding: .5em 1em;border-radius: 5px;box-shadow: inset 0 0 .5em #ccc;overflow: auto;word-wrap: normal;border: 1px solid #ccc;}
.article_content blockquote {margin:20px 0;padding:15px 20px 1px;border-left:6px solid #bdc3ce;background-color:#dee2e6}
.article_content blockquote p {margin:0;padding:0;margin-bottom:10px}
.article_content embed,.article_content iframe,.article_content video {width:100%}
.rights {margin:40px 0;counter-increment:#999;line-height:26px;overflow:hidden;padding-bottom:30px;border-bottom:1px solid #ededed}
.rights h5 {font-weight:400;font-size:16px;color:#333;margin-bottom:20px}
@media screen and (max-width:780px) {}
/*相关文章*/
.related {overflow:hidden;margin-bottom:20px;}
.related h4 {height:45px;line-height:45px;font-size:16px;padding: .5em 1.5em;font-weight:600}
.related ul {list-style:none;padding: .5em 1.5em 1.5em 1.5em;overflow:hidden}
.related li {float:left;width:23.15%;margin-right:20px;overflow:hidden;margin-bottom:20px;}
.related li:nth-child(4n+4){margin-right:0;}
.related li:nth-child(n+5){margin-bottom:0;}
.related li .img {width:100%;height:120px;overflow:hidden}
.related li .img img {width:100%;height:100%;object-fit:cover;overflow:hidden}
.related li p {line-height:32px;height:32px;overflow:hidden;text-indent: 5px;margin-top: 5px;}
/*评论*/
.post_comments {overflow:hidden;padding: .5em 1.5em;margin-bottom:20px;}
#comments {border:1px solid #e5e5e5;background-color:#fdfdfd;position:relative}
#comment {overflow:hidden}
#comment h4 {height:45px;line-height:45px;font-size:16px;font-weight:600}
#comment .ping {color:#333;padding-bottom:10px;border-bottom:1px dashed #ededed;height:24px;line-height:24px;font-size:20px;font-weight:400}
#comment .compost {margin:20px 0}
.compost .com_name {margin:10px 0;overflow:hidden;color:#0066ff}
.compost .com_name a {color:#ff5e52}
.compost .com_box {margin:10px 0}
.compost .com_box textarea {width:100%;border:1px solid #ddd;display:block;padding:10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius: 6px;box-shadow: 0 1px 6px 0 rgba(41,47,54,.15), 0 5px 10px 0 rgba(41,47,54,.025);}
.compost .com_info {margin:0;}
.compost .submit-div{height: 45px;}
.compost .com_info ul {list-style:none}
.compost .com_info li {float:none;margin-bottom:8px}
.compost .com_info li input {width:40%;height:38px;line-height:38px;padding-left:8px;border:1px solid #ddd;border-radius: 6px;}
@media screen and (max-width:980px) {
    .compost .com_info li input {width:60%}
}
.compost .com_info li span {margin-left:4px}
.compost .com_info li span img {height:40px;line-height:40px;display:inline-block;vertical-align:top;border-radius:5px;}
.compost .com_info button {float:left;background-color:#0066ff;border:0;border-radius:6px;height: 35px;
    line-height: 35px;padding:0 20px;color:#fff;display:inline-block;cursor:pointer;box-shadow: 1px 2px 8px rgb(1, 102, 254);}
#comment .comlist {margin:10px 0}
.comlist .title {font-size:16px;overflow:hidden;height:45px;line-height:45px}
.comlist ul {list-style:none;border-top:1px solid #ededed}
.comlist .pagebar {border-top:1px solid #ededed}
.comlist ul ul {margin-left:3%}
.comlist li {overflow:hidden;padding:20px 0}
.comlist li:hover {background-color:#fafafa}
.comlist li img {float:left;width:50px;height:50px;border-radius:8px;}
.comlist li .clbody {margin-left:70px}
.clbody .cinfo {overflow:hidden;margin-bottom:8px;display:flex;align-items:center;gap:8px}
.clbody .cinfo h5 {height:18px;line-height:18px;font-size:14px;font-weight:bold;margin:0}
.clbody .cinfo .cdate {color:#999;font-size:12px;line-height:18px}
.clbody .creply {margin-top:6px}
.clbody .creply a {color:#0066ff;font-size:13px}
.clbody .creply a i {margin-right:4px}
.clbody em {color:#888;height:24px;line-height:24px;font-size:12px;font-style:normal;display:block}
.clbody p {line-height:24px;color:#4a4a4a;overflow:hidden}
.clbody p a {color:#0066ff}
.bottom_tools {position:fixed;z-index:999;right:20px;bottom:20px;font-size:38px}
.bottom_tools a {width:50px;height:50px;line-height:46px;display:block;background-color:rgba(0,0,0,.6);color:#fff;text-align:center;margin-bottom:4px}
.bottom_tools a.topcomment {margin-bottom:0;line-height:50px}
.bottom_tools a:hover {background-color:#0066ff}
.qr_tool {width:50px;height:50px;line-height:56px;text-align:center;color:#fff;background-color:rgba(0,0,0,.6);margin-bottom:4px}
.qr_tool:hover {background-color:#0066ff}
.bottom_tools .qr_img {position:absolute;top:0;left:-160px;width:146px;height:146px;display:none;background-color:#ededed;padding:6px}
.bottom_tools .qr_img img {width:146px;height:146px}
.side-box {width:315px;}
.widget {padding: .5em 1em;margin-bottom:20px}
.widget ul {list-style:none;padding: 10px .5em;overflow:hidden}
.widget li {float:left;line-height:26px;width:50%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.widget h4 {height:40px;padding-left:.5em;line-height:40px;font-size:16px;position:relative;font-weight:bold;}
.widget_div {padding:10px 0;overflow:hidden}
.widget_searchpanel input[type="text"]{float:left;border:none;border-right-color:currentcolor;border-right-style:none;border-right-width:medium;border-right-color:currentcolor;border-right-style:none;border-right-width:medium;width:75%;height:30px;line-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-right:0;padding-left:5%;background-color:#f0f0f0;border-top-left-radius: 5px;border-bottom-left-radius: 5px;}
.widget_searchpanel input[type="submit"]{float:left;border:none;border-left-color:currentcolor;border-left-style:none;border-left-width:medium;border-left-color:currentcolor;border-left-style:none;border-left-width:medium;width:25%;height:30px;line-height:30px;text-align:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;background-color:#f0f0f0;border-left:0;color:#666;cursor:pointer;border-top-right-radius: 5px;border-bottom-right-radius: 5px;}
.widget_searchpanel form{padding:0 10px;}
.widget_catalog ul ul {display:none}
.widget_previous li {width:100%;font-size:15px;line-height:32px;}
.widget_previous li::before {content:"";width:4px;height:4px;background-color:#919ba6;border-radius:50%;position:absolute;margin-top:15px}
.widget_previous li a {padding-left:14px}
.widget_hotpost ul {list-style:none}
.widget_hotpost li {width:100%;font-size:15px;line-height:32px;}
.widget_hotpost li i {background: #dee2e6;color: #515355;font-size: 12px;border: 1px solid #afb5bb;border-radius: 5px;height: 18px;line-height: 20px;display: inline-block;width: 18px;text-align: center;font-weight: 100;margin-right: 5px;box-shadow: 1px 1px 4px rgb(194, 200, 206,.8);}
.widget_hotpost li i.red {color:#fff;font-size:12px}
.widget_hotpost li:nth-child(1) i.red{background-color:#f62020;border: 1px solid #f62020;box-shadow: 1px 1px 4px rgba(246, 32, 32, 0.8);}
.widget_hotpost li:nth-child(2) i.red{background-color:#f65220;border: 1px solid #f65220;box-shadow: 1px 1px 4px rgba(246, 82, 32, 0.8);}
.widget_hotpost li:nth-child(3) i.red{background-color:#f0a413;border: 1px solid #f0a413;box-shadow: 1px 1px 4px rgba(240, 164, 18, 0.8);}
.widget_tags ul {margin-right:-10px}
.widget_tags li {width:auto;margin-right:8px;margin-bottom:8px;border-radius: 5px;}
.widget_tags li a {display:block;padding:0 10px;color:#fff;font-size:12px;}
.widget_tags li.tagbgc0 a {background-color:#4a4a4a}
.widget_tags li.tagbgc0{box-shadow: 1px 2px 8px rgba(74, 74, 74, 0.9);}
.widget_tags li.tagbgc1 a {background-color:#4689ee}
.widget_tags li.tagbgc1{box-shadow: 1px 2px 8px rgba(70, 137, 238, 0.9);}
.widget_tags li.tagbgc2 a {background-color:#5da25d}
.widget_tags li.tagbgc2{box-shadow: 1px 2px 8px rgba(93, 162, 93, 0.9);}
.widget_tags li.tagbgc3 a {background-color:#d9534f}
.widget_tags li.tagbgc3{box-shadow: 1px 2px 8px rgba(217, 83, 79, 0.9);}
.widget_tags li.tagbgc4 a {background-color:#567e95}
.widget_tags li.tagbgc4{box-shadow: 1px 2px 8px rgba(86, 126, 149, 0.9);}
.widget_tags li.tagbgc5 a {background-color:#cc569e}
.widget_tags li.tagbgc5{box-shadow: 1px 2px 8px rgba(204, 86, 158, 0.9);}
.widget_tags li.tagbgc6 a {background-color:#00aba9}
.widget_tags li.tagbgc6{box-shadow: 1px 2px 8px rgba(0, 171, 169, 0.9);}
.widget_tags li.tagbgc7 a {background-color:#b37333}
.widget_tags li.tagbgc7{box-shadow: 1px 2px 8px rgba(179, 115, 51, 0.9);}
.widget_tags li.tagbgc8 a {background-color:#f60}
.widget_tags li.tagbgc8{box-shadow: 1px 2px 8px rgba(255, 102, 0, 0.9);}
.widget_tags li.tagbgc9 a {background-color:#e1b01b}
.widget_tags li.tagbgc9{box-shadow: 1px 2px 8px rgba(225, 176, 27, 0.9);}
.widget_comments li {width:100%;margin-bottom:15px;overflow:hidden;white-space:inherit}
.widget_comments li .p{width:77%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.widget_comments li:last-child{margin-bottom:0}
.widget_comments li img {float:left;width:50px;height:50px;margin-right:10px}
.widget_comments li span {display:inline-block;color:#999;font-size:12px}
.widget_calendar #tbCalendar {width:100%;text-align:center}
.widget_calendar caption {background-color:#fafafa;height:20px;line-height:20px;font-size: 18px;margin-bottom: 20px;}
.widget_calendar td a {display:block;margin:5px 8px;background:#0066ff;color:#fff;border-radius: 5px;}
/* ===== 新增侧边栏组件：search / sort / archive / link / twitter / custom_text ===== */
/* 搜索：复用 .widget_searchpanel 既有样式，仅补清除浮动，避免 float 子元素撑不开容器高度 */
.widget_searchpanel form {padding:0 10px;overflow:hidden}
.widget_searchpanel input[type="text"] {color:var(--text-primary)}
/* 既有样式把搜索框底色写死为 #f0f0f0，深色模式下需换深底，否则浅底浅字不可读 */
html[data-theme="dark"] .widget_searchpanel input[type="text"],
html[data-theme="dark"] .widget_searchpanel input[type="submit"] {background-color:#2b2b2b;color:var(--text-primary)}
/* 分类 / 链接：复用 .widget_previous 单列圆点列表；右侧带文章数 */
.wx-widget-num {float:right;font-style:normal;font-size:12px;opacity:.7}
.wx-widget-num::before {content:"("}
.wx-widget-num::after {content:")"}
.widget_previous li.wx-widget-sub > a {padding-left:26px}
.wx-widget-linkitem {display:flex;align-items:center;gap:6px}
.wx-widget-linkitem img {flex-shrink:0;border-radius:3px;vertical-align:middle}
/* 归档：原生下拉框，配色跟随主题变量 */
.wx-widget-pad {padding:0 .5em 10px;overflow:hidden}
.widget_archive select.wx-archive-select {display:block;width:100%;height:34px;line-height:34px;padding:0 8px;font-size:14px;cursor:pointer;border:1px solid var(--border-light);border-radius:5px;background-color:transparent;color:var(--text-primary)}
/* 微语 / 自定义组件：单列排版，正文可换行 */
.widget_twitter li,.widget_custom_text li {width:100%;white-space:normal}
.wx-widget-twitem {margin-bottom:16px}
.wx-widget-twitem:last-child {margin-bottom:0}
.wx-widget-twhead {display:flex;align-items:center;gap:8px;margin-bottom:6px}
.wx-widget-twhead img {width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0}
.wx-widget-twhead span {font-size:12px;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wx-widget-twbody {font-size:14px;line-height:1.7;color:var(--text-primary);word-break:break-word}
.wx-widget-html {padding:10px .5em;overflow:hidden;font-size:14px;line-height:1.8;color:var(--text-primary);word-break:break-word}
.widget_author {padding-top:20px}
.widget_author .title {text-align:center;border-bottom:1px solid #eee;padding-bottom:10px}
.widget_author .title img {border-radius:50%;width:50px;height:50px;overflow:hidden;margin-bottom:5px}
.widget_author .title h5 {font-weight:400;font-size:16px}
.widget_author .title p {line-height:24px}
.widget_author li {width:100%;overflow:hidden;font-size:15px;line-height:32px;}
.widget_author li::before {content:"";width:4px;height:4px;background-color:#0066ff;border-radius:50%;position:absolute;margin-top:15px}
.widget_author li a {padding-left:14px;color:#444;line-height:24px}
.widget_tuijian .box {width:100%;height:0;padding-bottom:60%;overflow:hidden;position:relative;background-color:#fff;margin:10px 0}
.widget_tuijian .box:hover {-moz-opacity:.9;opacity:.9}
.widget_tuijian .box img {width:100%;height:auto}
.widget_tuijian .box p {position:absolute;left:0;bottom:0;width:98%;height:38px;line-height:38px;background-color:rgba(0,0,0,.6);color:#fff;padding:0 10px}
#mnav,#search,.muser {display:none}
@media screen and (max-width:992px) {
.container {width:94%;margin-left:3%;margin-right:3%}
#header {width:94%;height:60px;line-height:60px;margin-bottom:0;position:fixed;z-index:2;top:0}
.logo {width:100%;text-align:center}
.logo img {max-height:48px;vertical-align:middle}
#mnav,#search,#theme-toggle {display:block;position:absolute;top:0;z-index:10;color:#ffffff;cursor:pointer;border:none;background:none;padding:0;font-size:inherit;}
#mnav i, #search i, #theme-toggle i {color:#343a40;width: 60px;height: 60px;line-height: 60px;text-align: center;font-size: 18px;}
#mnav {left:2%}
#search {right:2%}
#theme-toggle {right:62px;width:60px;height:60px;text-align:center;line-height:60px;}
.nav {display:none;margin-left:0;width:100%;position:absolute;top:60px;left:0;right:0;background-color:var(--bg-nav-mobile);padding: 1em 0 1em 1.5em;opacity:.98;}
.nav li {float:none;width:100%;position:static;line-height: 52px;}
.nav li a {padding:0 5px;display:block;color:var(--text-nav-mobile);}
.nav ul ul {display:none;position:static;padding-left:1.2em;overflow:hidden}
.nav li.active > ul {display:block}
.nav li.has-sub > a::after {content:'\f107';font-family:'Font Awesome 5 Free';font-weight:900;float:right;margin-right:15px;transition:transform .2s}
.nav li.has-sub.active > a::after {-webkit-transform:rotate(180deg);transform:rotate(180deg)}
.nav ul ul li {line-height:34px;margin-right:10px;width:auto}
.nav ul ul ul {display:none}
.nav ul ul li:hover ul {display:none}
.search {display:none;float:none;margin-top:0;position:absolute;top:100%;left:0;right:0;margin-right:0;background: rgba(0,0,0,.5);
border-radius: 5px;}
.search form {width:95%;margin:10px auto;height:48px;line-height:46px}
.search form input {height:48px;line-height:46px}
.search form button {height:48px;line-height:46px}
.user {display:none}
.swiper{margin-bottom:15px;}
.swiper,.swiper .swiper-container,.swiper .swiper-slide img{width:100%;height:40vw;border-radius: 8px;}
.slider {width:100%;height:auto;margin-bottom:0px}
.slider a {margin-bottom:-7px;}
.main-box{width:100%}
.grid {width:100%;}
.grid .list-box {grid-template-columns:1fr;}
.grid article .img{height:56vw;}
.grid article{width:100%;margin:0;}
.post .title h1 {white-space:inherit;font-size:18px}
.post .title .info .cate,.post .title .info .comment{display:none}
.index-post .info .view{display:none;}
.index-post .intro{padding:0 1em;}
.index-post .title{padding:.5em 1em;font-size:18px;padding-bottom: 0;}
.index-post .info{padding:.5em 1em;padding-top: 0;}
.article_content embed,.article_content iframe,.article_content video {width:100%}
.related ul {margin-right:-2%}
.related li {width:48%;margin-right:2%}
.related li .img {height:100px}
.side-box {width:100%;display:none}
#pt{margin:8px 0;padding-left:0;}
.index-post .post-card:nth-last-child(2),.related li:nth-child(n+5){margin-bottom:20px;}
.related li:nth-child(n+5){margin-bottom:20px;}
.f-link {width:94%;height:auto;padding:3%;margin-bottom:15px;overflow:hidden;}
.f-link h4,.f-link .wrap {padding: 0 .2em;}
.f-link .wrap {float:left;width:100%;margin:0px;padding-bottom:6px;overflow:hidden;}
.nav {float:left;margin-left:0px;width:50%;}
.footer .fnav a{line-height:28px;}
.comlist li img {width:30px;height:30px;}
.comlist li .clbody {margin-left:50px}
}

@media only screen and (max-width:780px) {
.index-post .post-card {float:left;width:98%;margin-bottom:15px}
.index-post .post-card a {display:block}
.index-post .post-card .img {width:100%;height:56vw;overflow:hidden}
.index-post .post-card .img img {width:100%;height:100%;object-fit:cover;overflow:hidden;margin-bottom:0px;}
.index-post li p {line-height:32px;height:32px;overflow:hidden;text-align:center;font-size:14px}
}

/*回顶*/
#totop {z-index:200;right:10px;}
#totop i{font-size: 20px;color: #f9fbff;box-shadow: 0 4px 8px rgba(0, 102, 255, 0.7);display: block;width: 50px;height: 50px;border-radius: 500px;background: #06f;line-height: 50px;text-align: center;}
#totop,#totop a {border:none;}
#totop {position:fixed;bottom:100px;display:block;width:50px;background:none;cursor:pointer;}
#totop:hover {text-decoration:none;}
#totop a {display:block;width:50px;height:50px;text-align:center;text-decoration:none;}

/*广告位*/
.ad{padding:20px 0;}
.ad img{display:block;border:none;width:100%;}

/* ===== 手动深色模式覆盖（data-theme 优先级高于 @media） ===== */
html[data-theme="dark"] .card { background-color: var(--bg-card); }
html[data-theme="dark"] #header { background: var(--header-bg) !important; }
html[data-theme="dark"] .nav li a { color: var(--text-nav); }
html[data-theme="dark"] .nav ul ul { background: #252525; }
html[data-theme="dark"] .nav ul ul li a { color: #c0c0d0; }
html[data-theme="dark"] .article_content { color: var(--text-primary); }
html[data-theme="dark"] .article_content p { color: var(--text-primary); }
html[data-theme="dark"] .clbody p { color: var(--text-primary); }
html[data-theme="dark"] .post .title h1 { color: var(--text-primary); }
html[data-theme="dark"] .grid article h2 a { color: var(--text-primary); }
html[data-theme="dark"] .author-profile .profile-info .nickname { color: var(--text-primary); }

/* 用户卡片 */
html[data-theme="dark"] .widget_user h4 { color: var(--text-primary); }
html[data-theme="dark"] .widget_user p { color: var(--text-secondary); }

/* 友情链接 */
html[data-theme="dark"] .f-link .wrap ul li a { color: #999; }
html[data-theme="dark"] .f-link h4 { color: var(--text-primary); }

/* 页脚 */
html[data-theme="dark"] #footer { background: var(--bg-card); color: #888; }
html[data-theme="dark"] .footer a { color: #b8bbc0; }
html[data-theme="dark"] #theme-toggle { color: #c0c0d0; }
html[data-theme="dark"] #theme-toggle:hover { color: #4d94ff; }

/* 移动端导航暗色模式分隔线 */
@media screen and (max-width:992px) {
    html[data-theme="dark"] .nav li a { border-bottom: 1px solid #333; }
}

/* 友情链接卡片在暗色模式下确保背景统一 */
html[data-theme="dark"] .f-link { background: var(--bg-card); }

/* ===== 深色模式完整规则 ===== */
html[data-theme="dark"] body { background-color: var(--bg-body); }
html[data-theme="dark"] .nav li.active > a { color: var(--link-hover); }
html[data-theme="dark"] .post .title h1,
html[data-theme="dark"] .post .article_content,
html[data-theme="dark"] .post_comments,
html[data-theme="dark"] .related,
html[data-theme="dark"] .f-link,
html[data-theme="dark"] .side-bar .widget,
html[data-theme="dark"] .side-box .widget { background: var(--bg-card); }
html[data-theme="dark"] a:hover { color: var(--link-hover); }
html[data-theme="dark"] .author-profile .profile-info .bio { color: var(--text-secondary); }
html[data-theme="dark"] .author-profile .profile-stats .stat-item .num { color: var(--text-primary); }
html[data-theme="dark"] .author-profile .profile-stats { border-top-color: var(--border-light); }
html[data-theme="dark"] .author-profile .profile-stats .stat-item { border-right-color: var(--border-light); }
html[data-theme="dark"] .nav ul ul li a:hover { color: #fff; }
html[data-theme="dark"] .breadcrumb, html[data-theme="dark"] .breadcrumb2,
html[data-theme="dark"] .breadcrumb a, html[data-theme="dark"] .breadcrumb2 a,
html[data-theme="dark"] #pt .z em, html[data-theme="dark"] #pt .z a, html[data-theme="dark"] #pt .z span { color: #999; }
html[data-theme="dark"] #aside_about .title { color: var(--text-primary); }
html[data-theme="dark"] #aside_about .info { color: var(--text-secondary); }
html[data-theme="dark"] #aside_about .num { color: var(--text-primary); }
html[data-theme="dark"] #aside_about .num-sm { color: var(--text-secondary); }
html[data-theme="dark"] #aside_about small { color: #888; }
html[data-theme="dark"] #widget_aside_author .name { color: var(--text-primary); }
html[data-theme="dark"] #widget_aside_author .intro { color: var(--text-secondary); }
html[data-theme="dark"] #widget_aside_author .level { background-color: #0055cc; }
html[data-theme="dark"] .widget li a { color: var(--text-secondary); }
html[data-theme="dark"] .widget li a:hover { color: var(--link-hover); }
html[data-theme="dark"] .index-post .title i, html[data-theme="dark"] .index-post .title i a { color: #888; }
html[data-theme="dark"] .index-post .intro { color: #aaa; }
html[data-theme="dark"] .index-post .info, html[data-theme="dark"] .index-post .info span { color: #999; }
html[data-theme="dark"] .index-post .post-card .cate { color: #aaa; }
html[data-theme="dark"] .grid article { background-color: var(--bg-card); }
html[data-theme="dark"] .grid article span { color: #999; }
html[data-theme="dark"] .post .title { border-bottom-color: var(--border-light); }
html[data-theme="dark"] .post .title .info, html[data-theme="dark"] .post .title .info span a { color: #999; }
html[data-theme="dark"] .article_content h1, html[data-theme="dark"] .article_content h2,
html[data-theme="dark"] .article_content h3, html[data-theme="dark"] .article_content h4,
html[data-theme="dark"] .article_content h5, html[data-theme="dark"] .article_content h6 {
    color: var(--text-primary);
    background-image: linear-gradient(to right, var(--bg-card), #3a3a3a);
    border-left-color: var(--link-hover);
}
html[data-theme="dark"] .article_content blockquote { background-color: #252525; border-left-color: #555555; }
html[data-theme="dark"] .article_content table { border-color: #444; }
html[data-theme="dark"] .article_content table thead th { background-color: #333333; }
html[data-theme="dark"] .article_content table tr:nth-child(2n) { background: #2a2a2a; }
html[data-theme="dark"] .article_content table th, html[data-theme="dark"] .article_content table td { border-color: #444; }
html[data-theme="dark"] .article_content pre { background: #252525; border-color: #444; box-shadow: inset 0 0 .5em #333; }
html[data-theme="dark"] .article_content a { color: var(--link-hover); }

/* ====== layer-shim.js 轻量提示（P1-3 去除 Layui 垫片） ====== */
.wx-toast--error{background:rgba(180,30,30,.92)!important;}
.wx-toast--ok{background:rgba(40,140,70,.92)!important;}
html[data-theme="dark"] .post .tags .tag a { background: var(--bg-card); border-color: #444; box-shadow: none; color: var(--text-secondary); }
html[data-theme="dark"] .post .tags .tag a:hover { background: #3a3a3a; }
html[data-theme="dark"] .related li p a { color: var(--text-secondary); }
html[data-theme="dark"] #comments { background-color: var(--bg-card); border-color: var(--border-light); }
html[data-theme="dark"] #comment .ping { color: var(--text-primary); border-bottom-color: var(--border-light); }
html[data-theme="dark"] .comlist ul, html[data-theme="dark"] .comlist .pagebar { border-top-color: var(--border-light); }
html[data-theme="dark"] .comlist li:hover { background-color: #333333; }
html[data-theme="dark"] .clbody .cinfo h5 { color: var(--text-primary); }
html[data-theme="dark"] .clbody .cinfo .cdate { color: #999; }
html[data-theme="dark"] .clbody em { color: #888; }
html[data-theme="dark"] .comlist .title { color: var(--text-primary); }
html[data-theme="dark"] .compost .com_name { color: var(--link-hover); }
html[data-theme="dark"] .compost .com_box textarea { background-color: #252525; border-color: #444; color: var(--text-primary); }
html[data-theme="dark"] .compost .com_info li input { background-color: #252525; border-color: #444; color: var(--text-primary); }
html[data-theme="dark"] .user .login { background-color: var(--bg-card); border-color: var(--border-light); color: var(--text-primary); }
html[data-theme="dark"] .user .login span a { color: var(--text-secondary); }
html[data-theme="dark"] .pagebar span, html[data-theme="dark"] .pagebar a { background: #333333; }
html[data-theme="dark"] .pagebar a { color: var(--text-secondary); }
html[data-theme="dark"] .search form input, html[data-theme="dark"] .search form button { background-color: #252525; border-color: #444; color: var(--text-primary); }
html[data-theme="dark"] .rights h5 { color: var(--text-primary); }
html[data-theme="dark"] .bottom_tools a, html[data-theme="dark"] .qr_tool { background-color: rgba(255,255,255,0.15); }
html[data-theme="dark"] .red { color: #ff6b6b; }
html[data-theme="dark"] .stetement { border-color: #555 !important; background-color: #2a2a2a !important; color: #ddd !important; border-radius: 6px !important; }
/* ==========================================================================
   日程日历（主题内嵌）— 独立命名空间 #wxCalendar / .wxcal-*
   与核心文章归档日历（#tbCalendar / .calendar）完全隔离，并存不冲突。
   颜色一律走 CSS 变量，禁止硬编码；高亮块强制带前景色。
   ========================================================================== */
:root {
    --wxcal-hi: #0066ff;
    --wxcal-hi-fg: #ffffff;
    --wxcal-today: #0066ff;
}
html[data-color="blue"]    { --wxcal-hi: #0066ff; --wxcal-today: #0066ff; }
html[data-color="amber"]   { --wxcal-hi: #d97706; --wxcal-today: #d97706; }
html[data-color="emerald"] { --wxcal-hi: #059669; --wxcal-today: #059669; }
html[data-color="gold"]    { --wxcal-hi: #b8860b; --wxcal-today: #b8860b; }
/* 深色模式：高亮块始终保留浅色前景，避免「黑底黑字」 */
html[data-theme="dark"] { --wxcal-hi-fg: #ffffff; }

/* ---------- 卡片外壳 ---------- */
.widget_calendar { overflow: hidden; }
.widget_calendar .wxcal-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#wxCalendar { width: 100%; box-sizing: border-box; }

/* ---------- 月切换 ---------- */
#wxCalendar .wxcal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 6px;
}
#wxCalendar .wxcal-nav__btn {
    width: 28px;
    height: 28px;
    line-height: 1;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-light, #eee);
    border-radius: 6px;
    color: var(--text-primary, #333);
    cursor: pointer;
    box-sizing: border-box;
}
#wxCalendar .wxcal-nav__btn:hover {
    color: var(--link-hover, #0066ff);
    border-color: var(--link-hover, #0066ff);
}
#wxCalendar .wxcal-nav__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #333);
}

/* ---------- 星期标题 + 网格 ---------- */
#wxCalendar .wxcal-dow,
#wxCalendar .wxcal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    width: 100%;
}
#wxCalendar .wxcal-dow { margin-bottom: 2px; }
#wxCalendar .wxcal-dow span {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary, #888);
}
#wxCalendar .wxcal-day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    font-size: 12px;
    line-height: 1;
    border-radius: 5px;
    box-sizing: border-box;
    overflow: hidden;
    color: var(--text-primary, #333);
}
#wxCalendar .wxcal-day--empty { visibility: hidden; }
#wxCalendar .wxcal-day--has {
    background: var(--wxcal-hi, #0066ff);
    color: var(--wxcal-hi-fg, #fff);
    font-weight: 600;
    cursor: pointer;
}
#wxCalendar .wxcal-day--today { box-shadow: inset 0 0 0 2px var(--wxcal-today, #0066ff); }
#wxCalendar .wxcal-day--today.wxcal-day--has { box-shadow: inset 0 0 0 2px var(--wxcal-hi-fg, #fff); }
#wxCalendar .wxcal-day__dot {
    position: absolute;
    top: 1px;
    right: 2px;
    min-width: 11px;
    height: 11px;
    line-height: 11px;
    padding: 0 2px;
    border-radius: 8px;
    font-size: 9px;
    font-style: normal;
    text-align: center;
    background: var(--wxcal-hi-fg, #fff);
    color: var(--wxcal-hi, #0066ff);
}

/* ---------- 议程列表 ---------- */
#wxCalendar .wxcal-agenda {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light, #eee);
}
#wxCalendar .wxcal-agenda__title {
    font-size: 13px;
    color: var(--text-secondary, #888);
    margin-bottom: 6px;
}
#wxCalendar .wxcal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
/* 单列全宽：1 条活动 = 1 个横向区块（3 行结构），便于向下扩展。
   行 1：日期时间（左） + 地点（右对齐）
   行 2：标题
   行 3：人物
   ⚠️ 必须显式覆盖 style.css 顶部的通用规则
   `.widget li { float:left; width:50%; white-space:nowrap }`，
   否则议程项会被排成两列方块（#wxCalendar .wxcal-item 特异性 1,1,0 足以覆盖）。 */
#wxCalendar .wxcal-item {
    float: none;
    width: 100%;
    white-space: normal;
    line-height: 1.45;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light, #eee);
}
#wxCalendar .wxcal-item:last-child { border-bottom: none; }
#wxCalendar .wxcal-item--past { opacity: .55; }
/* 第 1 行：日期时间靠左、地点靠右（无地点时日期时间自然贴左） */
#wxCalendar .wxcal-item__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
#wxCalendar .wxcal-item__time {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--wxcal-today, #0066ff);
}
#wxCalendar .wxcal-item__location {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary, #999);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 第 2 行：标题（单行省略，全宽后基本不会截断） */
#wxCalendar .wxcal-item__title {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-primary, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#wxCalendar a.wxcal-item__title { text-decoration: none; }
#wxCalendar a.wxcal-item__title:hover { color: var(--link-hover, #0066ff); }
/* 第 3 行：人物（保留 metas 容器便于后续扩展；与弹层 .wxcal-mitem__metas 同一套排版） */
#wxCalendar .wxcal-item__metas {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin-top: 3px;
}
#wxCalendar .wxcal-item__meta {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary, #999);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#wxCalendar .wxcal-empty {
    margin: 0;
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary, #999);
}

/* ---------- 当日详情弹层（自研，零依赖） ---------- */
.wxcal-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wxcal-modal__mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .45);
}
.wxcal-modal__dialog {
    position: relative;
    z-index: 1;
    width: 92vw;
    max-width: 360px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #333);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.wxcal-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light, #eee);
}
.wxcal-modal__date { font-size: 14px; font-weight: 600; }
.wxcal-modal__close {
    padding: 0 4px;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--text-secondary, #888);
    cursor: pointer;
}
.wxcal-modal__body {
    padding: 10px 14px;
    overflow-y: auto;
}
.wxcal-mlist { list-style: none; margin: 0; padding: 0; }
.wxcal-mitem {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light, #eee);
}
.wxcal-mitem:last-child { border-bottom: none; }
.wxcal-mitem__hd {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.wxcal-mitem__time {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--wxcal-hi, #0066ff);
}
.wxcal-mitem__title {
    font-size: 14px;
    color: var(--text-primary, #333);
    word-break: break-word;
}
a.wxcal-mitem__title { text-decoration: none; }
a.wxcal-mitem__title:hover { color: var(--link-hover, #0066ff); }
.wxcal-mitem__metas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 3px;
}
.wxcal-mitem__meta { font-size: 12px; color: var(--text-secondary, #888); }
.wxcal-mitem__note {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-secondary, #999);
}
