/**
 * CSS Global Style
 * @date: 2024
 */

/* =========================================================
   全局盒子模型（统一 border-box）
   ========================================================= */
*, *::before, *::after {
   box-sizing: border-box;
}

/* =========================================================
   基础重置
   ========================================================= */
html, body, div, ol, ul, li, dl, dt, dd, h1, h2, h3, h4, h5, h6, input, button, textarea, p, span, form {
   margin: 0;
   padding: 0;
}

body, input, button, select, textarea {
   font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Helvetica, Arial, "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif;
   color: #3E4252;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   -moz-font-feature-settings: "liga", "kern";
}

table {
   border-collapse: collapse;
   border-spacing: 0;
}

img, a img {
   border: 0;
}

a {
   color: inherit;
   outline: medium none;
   text-decoration: none;
   transition: color .2s linear, background-color .2s linear;
}

a:hover {
   text-decoration: none;
   color: #364CC6;
}

label {
   cursor: pointer;
}

ul li, .ol li {
   list-style: none;
}

em, cite, i {
   font-style: normal;
}

input:focus, textarea:focus {
   outline: none;
}

input::-ms-clear {
   display: none;
}

textarea {
   resize: none;
}

html {
   height: 100%;
   width: 100%;
}

body {
   height: 100%;
   width: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   /* 页面底色：原来是 #F6F8FF，和白卡几乎同色，版式区间看不出来。
      现在压到 #D8E0F2 —— 和白卡拉开明显明度差，白壳和内容卡都能看出边界 */
   background-color: #D8E0F2;
   min-width: 1024px;
}

.hover-scale {
   transition: opacity .2s ease;
}

.hover-scale:hover {
   opacity: 0.8;
}

/* =========================================================
   布局框架
   ========================================================= */
.box-wrap {
   display: flex;
   flex-shrink: 0;
   width: calc(100% - 48px);
   max-width: 1440px;
   margin-top: 24px;
   background-color: #fff;
   border: 1px solid #CFD9EE;
   /* 原来是纯白无边界，贴在同样近白的底上就糊成一片 */
   box-shadow: 0 30px 80px rgba(20, 32, 72, 0.14);
   border-radius: 46px;
}

.header {
   display: flex;
   flex-direction: column;
   flex-shrink: 0;
   width: 168px;
   background: #364CC6;
   border-radius: 30px;
   margin: 24px 0 24px 24px;
   color: #fff;
   height: 768px;
   position: sticky;
   position: -webkit-sticky;
   top: 48px;
}

.main {
   flex-grow: 1;
   padding: 38px 56px;
   display: flex;
   flex-direction: column;
   min-width: 380px;
   height: auto !important;
}

.aside {
   width: 416px;
   flex-shrink: 0;
   position: relative;
}

/* =========================================================
   页脚
   ========================================================= */
.footer {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
   height: auto;
   min-height: 60px;
   padding: 12px 16px;
   font-size: 13px;
   color: #8086A0;
   width: 100%;
   max-width: 1440px;
   margin: 0 auto;
   text-align: center;
}

.footer-copyright {
   display: block;
   width: 100%;
   text-align: center;
   line-height: 1.8;
   word-break: break-word;
}

.footer a {
   margin-left: 6px;
}

/* =========================================================
   站点头部 / 菜单
   ========================================================= */
.logo-wrap {
   display: flex;
   flex-direction: column;
   align-items: center;
   margin-top: 32px;
}

.logo-img-wrap {
   font-weight: bolder;
   font-size: 16px;
   display: flex;
   flex-direction: column;
   align-items: center;
}

.logo-wrap h1,
.logo-wrap h2,
.logo-wrap .logo-title {
   font-size: 16px;
   font-weight: 900;
   margin-bottom: 5px;
}

.logo-wrap a {
   color: #fff;
}

.logo-wrap .sub-title {
   font-size: 12px;
   font-weight: 300;
}

.logo {
   display: block;
   width: 72px;
   height: 72px;
   margin-bottom: 5px;
   border-radius: 18px;
}

.menu-header-container {
   flex-grow: 1;
   margin-top: 50px;
}

.menu {
   display: flex;
   flex-direction: column;
   align-items: center;
}

.menu .menu-item>a {
   display: flex;
   width: 80px;
   height: 80px;
   justify-content: center;
   align-items: center;
   flex-direction: column;
   background: rgba(255, 255, 255, 0.06);
   border-radius: 22px;
   margin-bottom: 20px;
   font-size: 13px;
}

.menu .menu-item.current-menu-item>a {
   background-color: #fff;
   color: #364CC6;
}

.menu .menu-item>a:hover {
   color: #FFD55D;
   background: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   搜索 / 顶栏 / 面包屑
   ========================================================= */
.top-bar {
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.search-form {
   display: flex;
   width: 460px;
   height: 52px;
   box-sizing: border-box;
   align-items: center;
   /* 纯白外形 + 一圈细边和浅投影：在白色主壳和浅蓝侧栏卡上都「浮」出来，
     不再像浅蓝填充块那样看着发闷 */
   background-color: #FFFFFF;
   border: 1px solid #DCE4F4;
   box-shadow: 0 2px 12px rgba(24, 36, 78, 0.06);
   border-radius: 52px;
   overflow: hidden;
   flex-shrink: 0;
}

.aside-block .search-form {
   width: 100%;
   max-width: 100%;
}

.search-form>.icon-search {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 28px;
   height: 28px;
   font-size: 18px;
   margin-left: 10px;
   margin-right: 3px;
   color: #8086A0;
   cursor: pointer;
   border: none;
   background-color: transparent;
   background-size: 18px 18px;
}

.search-input {
   flex-grow: 1;
   border: none;
   height: 52px;
   background-color: transparent;
}

.search-input::placeholder {
   color: #8086A0;
}

.crumbs {
   flex-grow: 1;
   display: flex;
}

.crumbs a {
   margin-right: 16px;
   position: relative;
}

.crumbs a:after {
   content: '/';
   color: #8086A0;
   position: absolute;
   right: -12px;
   top: 50%;
   transform: translateY(-50%);
   pointer-events: none;
   cursor: default;
}

.crumbs span, .crumbs h2 {
   font-size: inherit;
   font-weight: normal;
   color: #8086A0;
   position: static;
}

/* =========================================================
   图标（无字体文件时 SVG 兜底）
   ========================================================= */
.tficon {
   display: inline-block;
   width: 1em;
   height: 1em;
   vertical-align: -.125em;
   background-repeat: no-repeat;
   background-position: center;
   background-size: contain;
   font-size: inherit;
}

.icon-search {
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239DA0B3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
}

.icon-left {
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23364CC6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}

.icon-right {
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD55D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}

.icon-fire-line {
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD55D'%3E%3Cpath d='M12 2c1 4-2 5-2 8a2 2 0 004 0c0-1 1-2 2-2 2 3 2 6 0 9a6 6 0 01-10-4c0-4 4-7 6-11z'/%3E%3C/svg%3E");
}

/* 上升箭头：热门推荐（拉伸至近乎布满视框，与其它栏目标题图标视觉等大） */
.icon-trend {
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD55D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2 20 8.5 13 13.5 17 21 5'/%3E%3Cpolyline points='15 5 21 5 21 11'/%3E%3C/svg%3E");
}

/* 星标：推荐栏 */
.icon-star {
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD55D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26'/%3E%3C/svg%3E");
}

/* 立方体：专题栏 */
.icon-cube {
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD55D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
}

/* 层叠方块：随机推荐栏 */
.icon-layers {
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD55D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E");
}

/* =========================================================
   区块标题 / 通用间距
   ========================================================= */
.block-title {
   font-size: 26px;
   color: #313546;
   margin-bottom: 20px;
}

.block-title .icon-right {
   display: inline-block;
   color: #FFD55D;
   font-weight: normal;
   font-size: inherit;
   transition: transform .25s ease;
}

.block-title a:hover .icon-right {
   transform: translateX(6px);
}

.block-wrap {
   margin-top: 28px;
}

/* =========================================================
   幻灯片
   ========================================================= */
.pic-cover-item {
   border-radius: 30px;
   overflow: hidden;
}

.pic-cover-item-title {
   font-size: 26px;
}

.pic-cover-item-placeholder {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 100%;
   height: 100%;
   background: #F3F6FD;
   color: #8086A0;
   border-radius: 30px;
   font-size: 14px;
}

/* =========================================================
   推荐板块（photo-list）
   ========================================================= */
.photo-list {
   display: flex;
   justify-content: space-between;
   flex-wrap: wrap;
}

.photo-item {
   width: calc(50% - 6px);
   display: flex;
   height: 128px;
   align-items: center;
   justify-content: center;
   background-color: #F3F6FD;
   border-radius: 16px;
   margin-top: 12px;
   overflow: hidden;
   position: relative;
}

/* 专题栏：条目统一采用通栏大卡样式 */
.topic-list .photo-item {
   width: 100%;
}

/* 专题栏：首条贴标题顶部（无上边距） */
.topic-list .photo-item:first-child {
   margin-top: 0;
}

/* 推荐栏：首行两张贴标题顶部，与专题栏行间距保持一致（避免双列网格错位） */
.photo-list:not(.topic-list) .photo-item:nth-child(-n+2) {
   margin-top: 0;
}

/* 专题栏：名称（标题）在大卡中央居中显示，宽度最多可达大卡 90% */
.topic-list .photo-item-inner {
   left: 0;
   right: 0;
   bottom: 50%;
   transform: translateY(50%);
   width: fit-content;
   max-width: 90%;
   margin: 0 auto;
   padding: 10px 20px;
   font-size: 26px;
}

/* 专题栏大卡标题字号（覆盖通用的 16px） */
.topic-list .photo-item-title {
   font-size: 26px;
}

.photo-item img,
.photo-item-img {
   display: block;
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   max-width: 100%;
}

.photo-item-inner {
   position: absolute;
   left: 12px;
   bottom: 12px;
   z-index: 9;
   display: block;
   padding: 4px 8px;
   font-size: 16px;
   color: #fff;
   border-radius: 8px;
   background: rgba(0, 0, 0, .4);
   box-shadow: 0 0 10px 10px rgb(0 0 0 / 10%);
   pointer-events: none;
}

.photo-item-title {
   font-size: 16px;
   font-weight: normal;
   margin: 0;
   line-height: 1.4;
}

.photo-item-placeholder {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 100%;
   height: 100%;
   background: #F3F6FD;
   color: #8086A0;
   font-size: 12px;
}

/* =========================================================
   侧栏横排卡片（sider-post-item）
   ========================================================= */
.sider-post-item {
   display: flex;
   align-items: center;
   margin-top: 26px;
}

.sider-post-item-img {
   flex-shrink: 0;
   width: 128px;
   height: 104px;
   margin-right: 16px;
}

.sider-post-item-img img {
   display: block;
   width: 100%;
   height: 100%;
   border-radius: 16px;
   object-fit: cover;
}

.sider-post-item-title {
   flex: 1;
   font-size: 14px;
}

.sider-post-placeholder {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 128px;
   height: 104px;
   background: #F3F6FD;
   color: #8086A0;
   border-radius: 16px;
   font-size: 12px;
}

/* =========================================================
   文章列表 / 卡片
   ========================================================= */
.post-list {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
}

.post-item {
   margin-top: 26px;
}

/* 文章列表卡片化：每篇独立成卡，图片、标题、分类、日期都在卡内
   —— 原来是「图片 + 文字」直接铺在白壳上，一篇和下一篇之间没有任何边界，
   整个主内容区糊成一块白。加卡后一篇一个区间，层次才立得住 */
.main .post-list .post-item {
   width: calc(50% - 12px);
   margin-top: 20px;
   padding: 14px 14px 16px;
   box-sizing: border-box;
   background: #FFFFFF;
   border: 1px solid #DCE4F4;
   border-radius: 24px;
   box-shadow: 0 12px 30px rgba(24, 36, 78, 0.06);
   transition: box-shadow .22s ease, transform .22s ease;
}

.main .post-list .post-item:hover {
   box-shadow: 0 18px 40px rgba(24, 36, 78, 0.12);
   transform: translateY(-2px);
}

/* 卡片内图片的圆角比卡片略小一档，贴边不冲突 */
.main .post-list .post-item .post-item-img,
.main .post-list .post-item .post-item-placeholder {
   border-radius: 14px;
}

.main .post-list .post-item .post-item-title {
   margin-top: 14px;
}

.post-item-cover {
   display: flex;
   justify-content: center;
   width: 100%;
   position: relative;
}

.post-item-cover::before {
   content: "";
   display: block;
   padding-top: 56.25%;
}

.post-item-img {
   width: 100%;
   border-radius: 16px;
   overflow: hidden;
   background-color: #F3F6FD;
   position: relative;
   transform: rotate(0deg);
}

.post-item-img img {
   position: absolute;
   width: 100%;
   top: 0;
   left: 0;
   height: 100%;
   object-fit: cover;
}

.post-item-placeholder {
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   background: #F3F6FD;
   color: #8086A0;
   border-radius: 16px;
   font-size: 13px;
   z-index: 1;
}

.post-item .post-categories {
   position: absolute;
   bottom: -8px;
   text-align: center;
   z-index: 9;
   width: 100%;
   left: 0;
   right: 0;
}

.post-item .post-categories li {
   display: inline-block !important;
   background-color: #FFD65D !important;
   padding: 6px !important;
   line-height: 1 !important;
   border-radius: 6px !important;
   font-size: 14px !important;
   color: #364CC7 !important;
   margin: 0 !important;
   list-style: none !important;
}

.post-item .post-categories li a {
   display: inline-block !important;
   background-color: transparent !important;
   color: #364CC7 !important;
   text-decoration: none !important;
   padding: 0 !important;
   border-radius: 0 !important;
   line-height: 1 !important;
}

.post-item .post-categories li a:hover {
   color: #364CC7 !important;
   text-decoration: none !important;
   background-color: transparent !important;
}

/* 上/下一篇标签为黄底蓝字，默认的黄色箭头在黄底上不可见，这里换成同文字色的蓝色箭头 */
.post-item .post-categories .icon-right {
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23364CC7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
   margin-left: 3px;
}

.post-item-title {
   display: block;
   margin-top: 12px;
   align-self: flex-start;
}

.post-item-title>h3 {
   display: -webkit-box;
   font-size: 18px;
   /* 底部留出空间，避免单行标题的 ::after 下划线被 overflow:hidden 裁剪（导致长短标题下划线粗细不一） */
   padding-bottom: 8px;
   overflow: hidden;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 3;
}

.post-item-footer {
   display: flex;
   align-items: center;
   justify-content: flex-end;
   margin-top: 8px;
}

.post-item-meta {
   font-size: 13px;
   color: #8086A0;
   flex-shrink: 0;
   margin-left: 5px;
}

.post-empty {
   width: 100%;
   margin-top: 26px;
   padding: 32px 0;
   text-align: center;
   color: #8086A0;
   background: #F3F6FD;
   border-radius: 16px;
}

.post-empty p {
   margin: 0;
}

/* =========================================================
   分页
   ========================================================= */
.pagination {
   display: flex;
   flex-direction: row;
   align-items: center;
   margin-top: 38px;
   list-style: none;
   padding: 0;
   flex-wrap: wrap;
}

.pagination li {
   margin-right: 6px;
   margin-bottom: 0;
   list-style: none;
   display: inline-block;
}

.pagination a, .pagination span {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 42px;
   height: 42px;
   background-color: #F3F6FD;
   border-radius: 50%;
   font-size: 16px;
   font-weight: 900;
   color: #8086A0;
   text-decoration: none;
}

.pagination a:hover {
   color: #364CC6;
   background-color: #E8EBFF;
}

.pagination .active span,
.pagination li.active span,
.pagination .active a,
.pagination li.active a {
   background-color: #364CC6;
   color: #fff;
}

.pagination li.active a:hover {
   background-color: #2a3da8;
   color: #fff;
}

.pagination li span {
   width: unset;
   background-color: transparent;
   border-radius: 0;
   color: #8086A0;
}

/* =========================================================
   文章页
   ========================================================= */
.post-wrap {
   margin-top: 38px;
}

.post-title {
   font-size: 32px;
   line-height: 1.2;
}

.post-meta {
   display: flex;
   min-height: 50px;
   height: auto;
   flex-wrap: wrap;
   align-items: center;
   font-size: 14px;
   color: #8086A0;
   margin-top: 12px;
   margin-bottom: 12px;
   white-space: nowrap;
}

.post-meta .post-categories {
   display: flex;
   margin-right: 10px;
}

.post-meta .post-categories li {
   margin-right: 10px;
}

.post-meta .post-views {
   margin-left: 10px;
   margin-right: 10px;
}

.post-meta .post-edit-link {
   display: inline-flex;
   align-items: center;
   height: 24px;
   padding: 0 10px;
   margin-right: 10px;
   font-size: 12px;
   line-height: 1;
   border-radius: 6px;
   border: 1px solid #364CC6;
   color: #364CC6;
   text-decoration: none;
   transition: background-color .2s ease, color .2s ease;
}

.post-meta .post-edit-link:hover {
   background-color: #364CC6;
   color: #FFFFFF;
}

html[data-theme="dark"] .post-meta .post-edit-link {
   border-color: #6D7FE8;
   color: #6D7FE8;
}

html[data-theme="dark"] .post-meta .post-edit-link:hover {
   background-color: #6D7FE8;
   color: #FFFFFF;
}

.post-content {
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Helvetica, Arial, "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif;
   font-size: 17px;
   line-height: 1.5;
   letter-spacing: 0.2px;
   word-break: break-word;
   text-align: justify;
   padding-bottom: 26px;
   border-bottom: 1px #E4EAF6 solid;
   /* 历史上是 overflow:hidden，超宽内容（长表头撑宽的表格、超长链接）会被直接裁掉看不到；
     改为横向可滚动：不溢出时无滚动条，真溢出时能滚到右端，内容不丢 */
   overflow-x: auto;
   overflow-y: hidden;
}

.post-content p {
   margin-top: 22px;
   margin-bottom: 22px;
   text-indent: 0;
}

.post-content p:first-child {
   margin-top: 0;
}

/* 正文内嵌视频：iframe 按 16:9 自适应高度。
   编辑器可能把外层 16:9 容器换成 p，并剥掉 padding / position，
   只剩 width:100% + height:100% 时高度会塌成 150px，播放器渲染不出画面。
   这里按标签兜底：height 解析为 auto 时由 aspect-ratio 算出高度 */
.post-content iframe {
   display: block;
   width: 100%;
   max-width: 100%;
   aspect-ratio: 16 / 9;
   height: auto;
   border: 0;
   border-radius: 10px;
   background: #000;
}

.post-content img,
.post-content video {
   max-width: 100%;
   height: auto;
   display: block;
   margin: 22px auto;
   border-radius: 16px;
}

.post-content a img {
   display: block;
}

.post-content h2,
.post-content h3,
.post-content h4 {
   margin-top: 22px;
   font-weight: bolder;
   position: relative;
   z-index: 1;
}

.post-content h2 {
   font-size: 24px;
}

.post-content h3 {
   font-size: 22px;
}

.post-content h4 {
   font-size: 20px;
}

/* h6：与正文同样字号/字重，只加一个黄色前缀圆点 */
.post-content h6 {
   font-size: 17px;
   font-weight: normal;
   line-height: 1.5;
   margin: 22px 0;
}

.post-content h2::before,
.post-content h3::before,
.post-content h4::before,
.post-content h6::before {
   content: '';
   display: inline-block;
   width: 0.5em;
   height: 0.5em;
   border-radius: 50%;
   background-color: #FFD55D;
   margin-right: 0.5em;
   vertical-align: 0.05em;
}

/* 正文代码块等宽字体 */
.post-content code,
.post-content pre,
.post-content kbd,
.post-content samp {
   font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
   font-size: 0.92em;
}

.post-content pre {
   background: #F3F6FD;
   padding: 16px;
   border-radius: 12px;
   overflow-x: auto;
   line-height: 1.6;
}

.post-content code {
   background: #F3F6FD;
   padding: 2px 6px;
   border-radius: 6px;
}

/* =========================================================
   标签
   ========================================================= */
.tag-wrap {
   flex-grow: 1;
   overflow: hidden;
   white-space: normal;
}

.tag-wrap>a {
   display: inline-flex;
   align-items: center;
   height: 16px;
   color: #C6A549;
   font-size: 12px;
   padding: 0 3px;
   margin-left: 1px;
   background-color: rgba(255, 213, 93, 0.18);
   border-radius: 22px;
}

.tag-wrap>a:hover {
   text-decoration: underline;
}

.tag-wrap>a:first-child {
   margin-left: 0;
}

/* 文章页标签：独立换到新行，多个标签自动换行 */
.tag-wrap.post-header-tags {
   flex-basis: 100%;
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   margin-top: 6px;
   overflow: visible;
   white-space: normal;
}

/* =========================================================
   分类 tab
   ========================================================= */
.cat-tab-wrap {
   display: flex;
   padding-top: 24px;
   padding-left: 0;
   margin-left: 0;
   height: 50px;
   align-items: center;
   background-color: #fff;
   position: sticky;
   position: -webkit-sticky;
   top: 0;
   z-index: 99;
   list-style: none;
}

.cat-tab-wrap>a:empty,
.cat-tab-wrap>a[href=""] {
   display: none;
   width: 0;
   height: 0;
   margin: 0;
   padding: 0;
}

.cat-tab-wrap>li {
   margin: 0;
   padding: 0;
   list-style: none;
}

.cat-tab-wrap>li:first-child {
   margin-left: 0;
}

.cat-tab-wrap>li>a {
   display: flex;
   align-items: center;
   margin-right: 24px;
   font-size: 16px;
}

.cat-tab-wrap>li.current-menu-item>a {
   font-size: 20px;
   font-weight: 900;
   position: relative;
   z-index: 1;
   display: inline-block;
   background: linear-gradient(to top, #FFD55D 6px, transparent 6px);
   background-size: 100% 100%;
   background-repeat: no-repeat;
   background-position: left bottom;
   padding-bottom: 8px;
}

.cat-tab-wrap>h2 {
   font-size: 20px;
   font-weight: 900;
   position: static;
   z-index: 1;
}

/* 标签页当前项：带 Tag: 前缀，下划线只盖标签名、前缀在划线前 */
.cat-tab-wrap>li.current-menu-item>a.cat-tab-has-prefix {
   background: none;
   padding-bottom: 0;
}
.cat-tab-wrap>li.current-menu-item>a.cat-tab-has-prefix .cat-tab-current {
   position: relative;
   z-index: 1;
   display: inline-block;
   background: linear-gradient(to top, #FFD55D 6px, transparent 6px);
   background-size: 2em 100%;
   background-repeat: no-repeat;
   background-position: left bottom;
   padding-bottom: 8px;
}

/* =========================================================
   侧栏区块
   ========================================================= */
.aside-block {
   padding: 32px;
   box-sizing: border-box;
   /* 侧栏块在白壳里原来是纯白 + 一层几乎看不见的阴影，等于消失。
      改成比白壳深一档的浅蓝卡面：白壳(白) → 侧栏(#E9EFFC) → 卡内缩略块(#F3F6FD)，
      三段层次分明 */
   background: #E9EFFC;
   border: 1px solid #D4DDF2;
   box-shadow: 0 8px 24px rgba(30, 45, 90, 0.05);
   border-radius: 38px;
}

.sidebar-post-list {
   margin-top: 20px;
}

/* =========================================================
   独立页 / 专题页：紧凑标题间距
   ========================================================= */
.page-scope .post-header,
.page-topic-scope .post-header {
   margin-bottom: 8px !important;
   padding-bottom: 0 !important;
}

.page-scope .post-title,
.page-topic-scope .post-title {
   margin-bottom: 0 !important;
   padding-bottom: 0 !important;
}

.page-scope .post-content,
.page-topic-scope .post-content {
   margin-top: 0 !important;
   padding-top: 0 !important;
}

.page-scope .post-content > *:first-child,
.page-topic-scope .post-content > *:first-child {
   margin-top: 0 !important;
}

.page-scope .post-content > *:last-child,
.page-topic-scope .post-content > *:last-child {
   margin-bottom: 0 !important;
}

/* 独立页（page.php）、独立页模板「归档」（page-archive.php）、「专题」（page-topic.php）：
   标题统一居中，面包屑仍在左上角 */
.page-scope .post-header,
.page-topic-scope .post-header {
   text-align: center;
}

/* page.php 独立页：正文与标题间距以归档页为标准（约 30px = 8px header + 22px，用 padding 避免 margin 合并） */
.page-simple .post-content {
   padding-top: 22px !important;
}

/* =========================================================
   专题页：自动卡片列表
   ========================================================= */
.page-topic-link-list {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
}

.page-topic-link-list .post-item {
   width: calc(50% - 13px);
}

/* 专题页自动卡片标题：与首页卡片字号一致（覆盖 .post-content h3 的 22px） */
.page-topic-link-list .post-item-title>h3 {
   font-size: 18px;
}

/* =========================================================
   幻灯片容器（细节由 slider.css 管）
   ========================================================= */
.slider-container {
   margin-bottom: 30px;
}

/* =========================================================
   首页公告条（全尺寸 + 4 色，放在 @media 之前）
   ========================================================= */
.notice-bar {
   display: block !important;
   width: 100% !important;
   box-sizing: border-box !important;
   margin: 0 0 20px 0 !important;
   padding: 14px 18px !important;
   border-radius: 12px !important;
   font-size: 14px !important;
   line-height: 1.7 !important;
   word-break: break-word;
}

/* 朱红 */
.notice-bar--red {
   background: #FFF1F0 !important;
   border: 1px solid #FFCCC7 !important;
   border-left: 4px solid #E53935 !important;
   color: #A61B1B !important;
}

/* 橙黄（默认） */
.notice-bar--orange {
   background: #FFF8E6 !important;
   border: 1px solid #FFE08A !important;
   border-left: 4px solid #FFD55D !important;
   color: #7A5B00 !important;
}

/* 深蓝 */
.notice-bar--blue {
   background: #EEF3FF !important;
   border: 1px solid #C7D6FF !important;
   border-left: 4px solid #364CC6 !important;
   color: #1E2F8A !important;
}

/* 墨绿 */
.notice-bar--green {
   background: #EEF8F1 !important;
   border: 1px solid #C3E6CF !important;
   border-left: 4px solid #2E7D4F !important;
   color: #1F5A37 !important;
}

.notice-bar-inner p {
   margin: 0 0 8px;
}

.notice-bar-inner p:last-child {
   margin-bottom: 0;
}

.notice-bar-inner img {
   max-width: 100%;
   height: auto;
   border-radius: 8px;
   vertical-align: middle;
}

.notice-bar-inner a {
   color: inherit;
   text-decoration: underline;
}

/* =========================================================
   公告特效（后台「首页公告特效」选择）
   ========================================================= */
/* 走马灯：内容横向循环滚动 */
.notice-bar--marquee {
   overflow: hidden !important;
}
.notice-bar--marquee .notice-bar-inner {
   display: inline-block;
   white-space: nowrap;
   padding-right: 2em;
   animation: notice-marquee 15s linear infinite;
   will-change: transform;
}
@keyframes notice-marquee {
   0%   { transform: translateX(100%); }
   100% { transform: translateX(-100%); }
}

/* 闪烁：文字明灭 */
.notice-bar--blink .notice-bar-inner {
   animation: notice-blink 1s steps(2, start) infinite;
}
@keyframes notice-blink {
   0%, 49%   { opacity: 1; }
   50%, 100% { opacity: 0; }
}

/* 彩虹灯：文字彩色渐变流动 */
.notice-bar--rainbow .notice-bar-inner {
   background: linear-gradient(90deg, #ff004c, #ff8a00, #ffee00, #19c37d, #0094ff, #8f00ff, #ff004c);
   background-size: 200% auto;
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
   color: transparent;
   animation: notice-rainbow 4s linear infinite;
}
@keyframes notice-rainbow {
   0%   { background-position: 0% center; }
   100% { background-position: -200% center; }
}

/* 切换按钮（桌面端：位于左侧导航栏下端；小屏：移入页脚） */
.theme-toggle {
   align-self: center;
   margin: 24px auto 28px;
   width: 44px;
   height: 44px;
   border: none;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.14);
   color: #fff;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
   transition: transform .2s ease, background .2s ease;
}
.theme-toggle:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.28); }
.theme-toggle svg { width: 22px; height: 22px; }
/* 顶部切换按钮：桌面隐藏，小屏显示 */
.theme-toggle--top { display: none; }

/* 主题键 + 语言键：桌面并排于左侧导航栏下端 */
.header-actions {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   margin: 24px 0 28px;
}
.header-actions .theme-toggle { margin: 0; }

/* 语言键 */
.lang-toggle {
   width: 44px;
   height: 44px;
   border: none;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.14);
   color: #fff;
   font-size: 13px;
   font-weight: 600;
   letter-spacing: .5px;
   line-height: 1;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
   transition: transform .2s ease, background .2s ease;
}
.lang-toggle:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.28); }
.lang-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* 顶部语言键：桌面隐藏，小屏显示 */
.lang-toggle--top { display: none; }
/* 顶部按钮行：桌面隐藏 */
.top-actions { display: none; }

/* =========================================================
   响应式
   ========================================================= */
@media screen and (max-width: 1023px) {
   body {
      min-width: 0;
   }
   /* 小屏（≤1023px）：头部按钮隐藏，语言键与主题键并排于页面顶部，各占一半 */
   .theme-toggle { display: none; }
   .header-actions { display: none; }
   .top-actions {
      display: flex;
      gap: 10px;
      width: calc(100% - 32px);
      margin: 16px 16px 0;
      flex-shrink: 0;
   }
   .theme-toggle--top,
   .lang-toggle--top {
      display: flex;
      position: static;
      flex: 1 1 0;
      width: auto;
      height: 44px;
      margin: 0;
      border-radius: 12px;
      background: #364CC6;
      box-shadow: 0 6px 20px rgba(54,76,198,.4);
      min-width: 0;
   }
   .theme-toggle--top:hover,
   .lang-toggle--top:hover { background: #2a3da8; transform: none; }
   .top-actions .theme-toggle svg { width: 22px; height: 22px; }
}

/* 平板端（569–1023px）：三栏改「顶栏 + 主内容 + 下方侧栏」，避免横向溢出 */
@media screen and (min-width: 569px) and (max-width: 1023px) {
   .box-wrap {
      flex-wrap: wrap;
   }

   .header {
      width: calc(100% - 32px);
      height: auto;
      min-height: 72px;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      position: static;
      margin: 16px 16px 0;
      border-radius: 24px;
      padding: 14px 20px;
   }

   .logo-wrap {
      margin-top: 0;
      flex-direction: row;
      align-items: center;
      gap: 14px;
   }

   .logo-img-wrap {
      flex-direction: row;
      align-items: center;
      gap: 10px;
   }

   .logo {
      width: 48px;
      height: 48px;
      margin-bottom: 0;
      border-radius: 12px;
   }

   .logo-wrap h1,
   .logo-wrap .logo-title {
      font-size: 16px;
      margin-bottom: 0;
      line-height: 1.2;
   }

   .logo-wrap .sub-title {
      display: none;
   }

   .menu-header-container {
      margin-top: 0;
      flex-grow: 0;
   }

   .menu {
      flex-direction: row;
      align-items: center;
      gap: 8px;
   }

   .menu .menu-item>a {
      width: 54px;
      height: 54px;
      margin-bottom: 0;
      border-radius: 14px;
      font-size: 12px;
   }

   .main {
      width: 100%;
      padding: 32px 24px;
      min-width: 0;
   }

   .aside {
      width: 100%;
      padding: 0 24px;
   }
}

@media screen and (max-width: 568px) {
   .box-wrap {
      width: 100%;
      margin-top: 0;
      border-radius: 0;
      flex-direction: column;
      padding-bottom: 38px;
   }

   .header {
      position: static;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      width: calc(100% - 32px);
      height: auto;
      top: auto;
      margin: 16px;
      padding: 16px 20px;
      border-radius: 16px;
      min-height: 80px;
   }

   .logo-wrap {
      margin-top: 0;
      flex-direction: column;
      align-items: flex-start;
      flex: 1;
   }

   .logo-img-wrap {
      flex-direction: column;
      align-items: center;
   }

   .logo {
      width: 48px;
      height: 48px;
      margin-bottom: 8px;
      margin-right: 0;
      border-radius: 12px;
   }

   .logo-wrap h1,
   .logo-wrap .logo-title {
      font-size: 14px;
      margin-bottom: 0;
      margin-right: 0;
      line-height: 1.2;
      /* 窄屏不再定死 48px：四字站名保持一行，超长时按可用宽度收缩 */
      width: auto;
      max-width: 100%;
      white-space: nowrap;
      text-align: center;
   }

   .logo-wrap .sub-title {
      display: none;
   }

   .menu-header-container {
      margin-top: 0;
      flex-grow: 0;
   }

   .menu {
      flex-direction: row;
      align-items: center;
      gap: 8px;
   }

   .menu .menu-item {
      margin-bottom: 0;
   }

   .menu .menu-item>a {
      width: 54px;
      height: 54px;
      padding: 0;
      margin-bottom: 0;
      font-size: 12px;
      border-radius: 12px;
      min-width: 54px;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
   }

   .menu .menu-item.current-menu-item>a {
      background-color: #fff;
      color: #364CC6;
   }

   .main {
      padding: 0 16px;
      min-width: 0;
   }

   .aside {
      width: auto;
      padding: 0;
      margin-top: 46px;
      height: auto;
   }

   .main .post-list .post-item {
      width: 100%;
   }

   .page-topic-link-list .post-item {
      width: 100%;
   }

   .photo-item img,
   .photo-item-img {
      height: auto;
      width: 100%;
   }

   .post-item .post-categories li {
      font-size: 12px;
      padding: 3px;
   }

   .sider-post-item-img {
      width: 98px;
      height: 80px;
   }

   .sider-post-item-img img {
      border-radius: 12px;
   }

   .sider-post-placeholder {
      width: 98px;
      height: 80px;
      border-radius: 12px;
   }

   .sider-post-item-title {
      font-size: 13px;
   }

   .top-bar {
      flex-wrap: wrap;
      gap: 12px;
   }

   .top-bar .crumbs {
      width: 100%;
      flex-shrink: 1;
   }

   .top-bar .search-form {
      width: 100%;
      max-width: 100%;
      flex-shrink: 1;
      height: 44px;
   }

   .top-bar .search-input {
      height: 44px;
   }

   body.post-template-default .main .top-bar .search-form,
   body.single .main .top-bar .search-form,
   body.archive .main .top-bar .search-form,
   body.category .main .top-bar .search-form {
      display: none;
   }

   /* 小屏公告条：4 色与 PC 一致，仅调整间距 */
   .notice-bar {
      display: block !important;
      width: 100% !important;
      box-sizing: border-box !important;
      margin: 0 0 16px 0 !important;
      padding: 12px 14px !important;
      border-radius: 12px !important;
      font-size: 14px !important;
      line-height: 1.7 !important;
      position: relative !important;
      z-index: 2 !important;
   }
   .notice-bar--red {
      background: #FFF1F0 !important;
      border: 1px solid #FFCCC7 !important;
      border-left: 4px solid #E53935 !important;
      color: #A61B1B !important;
   }
   .notice-bar--orange {
      background: #FFF8E6 !important;
      border: 1px solid #FFE08A !important;
      border-left: 4px solid #FFD55D !important;
      color: #7A5B00 !important;
   }
   .notice-bar--blue {
      background: #EEF3FF !important;
      border: 1px solid #C7D6FF !important;
      border-left: 4px solid #364CC6 !important;
      color: #1E2F8A !important;
   }
   .notice-bar--green {
      background: #EEF8F1 !important;
      border: 1px solid #C3E6CF !important;
      border-left: 4px solid #2E7D4F !important;
      color: #1F5A37 !important;
   }
}

/* =========================================================
   Markdown 表格美化（仅作用于文章正文 .post-content）
   ========================================================= */
/* 文末链接表标题：后台「文末链接表标题」填的文字，留空则整块不输出。
   不定义字号、字重与颜色 —— 一律继承正文，看起来就是正文里的一行普通文字 */
.post-content .mp-body-links-title {
   margin: 22px 0 0;
}
/* 标题与表格贴成一组，避免表格自带的 26px 上边距把两者拉开 */
.post-content .mp-body-links-title + .mp-body-links {
   margin-top: 10px;
}
.post-content table {
   /* 大屏一律铺满版面：宽度取正文的 100%，不因为单元格里字少就缩成一小块。
      table-layout 保持 auto —— 铺满后的多余空间按各列内容比例分配，
      不会被均分，短列也不会被压成一条 */
   width: 100%;
   max-width: 100%;
   margin: 26px 0;
   /* 保持 separate（collapse 会吃掉表格圆角），但间距归零：
      单元格的右/下边框彼此直接对接，内框线连续、没有断口 */
   border-collapse: separate;
   border-spacing: 0;
   border: 1px solid #E6EBF5;
   border-radius: 12px;
   overflow: hidden;
   font-size: 15px;
   line-height: 1.6;
   background-color: #fff;
   table-layout: auto;
   /* 正常断行：中文按字断、英文按词断。原来的 break-word 会让浏览器把英文
      单词也可能断在字中间，表头会变成「Categor / y」这种半截词 */
   word-break: normal;
}

.post-content thead {
   background-color: #F3F6FD;
}

.post-content thead th {
   padding: 12px 20px; /* 大屏：每格字符前后各留 20px，列被压缩时也保持 */
   vertical-align: middle;
   font-weight: 700;
   font-size: 15px;
   color: #313546;
   text-align: left;
   /* 默认允许折行：单列表格常被当作「段落容器」用，整段文字必须能在正文宽处换行。
      多列表格在大屏另按 nowrap 处理（只认 <br>），见文件末尾的媒体查询 */
   white-space: normal;
   border-right: 1px solid #E6EBF5;
   border-bottom: 1px solid #E6EBF5;
}

.post-content thead th:last-child,
.post-content tbody td:last-child {
   border-right: none;
}

.post-content tbody td {
   padding: 12px 20px; /* 大屏：每格字符前后各留 20px，列被压缩时也保持 */
   color: #3E4252;
   text-align: left;
   vertical-align: middle;
   /* 默认折行：单列表格里的长段落要能在正文宽处正常换行 */
   white-space: normal;
   /* 字符少的列（表头「LOGO」、单元格「A」这类）在 auto 布局下按自己的内容定宽，
      不会被前一轮的 width 声明拉成均分 */
   border-right: 1px solid #E6EBF5;
   border-bottom: 1px solid #E6EBF5;
}

.post-content tbody tr:last-child td {
   border-bottom: none;
}

.post-content tbody tr:nth-child(even) {
   background-color: #FAFBFF;
}

.post-content tbody tr:hover {
   background-color: #F0F3FF;
   transition: background-color .15s ease;
}

.post-content table a {
   color: #364CC6;
   text-decoration: underline;
   text-underline-offset: 2px;
}

.post-content table a:hover {
   color: #2a3da8;
}

.post-content table code {
   white-space: normal;
   word-break: break-word;
}

/* 表格内图片（单张）：按图片自身大小显示，「只缩不放」
   —— 图比单元格小就原样显示，比单元格宽才等比缩到列宽以内。
   这里不再设 240px 固定上限：上限是硬编码的猜测值，会把本来就小的图放大边界、
   也会把 500px 的截图硬压成 240。单图列的宽度交给表格 auto 布局按内容分配。 */
.post-content table img {
   max-width: 100%;
   height: auto;
   display: inline-block;
   vertical-align: middle;
   margin: 4px 2px;
   border-radius: 6px;
}

/* 含图片的列：列宽一律交给表格按内容分配
   —— 不再对含图列做 1% 收缩、也不取消图片的百分比上限：
      1% 收缩配合 max-width:100% 会把 500px 的截图压成 128px，
      一格并排多图时每张只剩二十几像素。 */
.post-content table:has(img) td:has(img),
.post-content table:has(img) th:has(img) {
   width: auto;
}

.post-content table:has(img) th,
.post-content table:has(img) td {
   /* 原本是 anywhere：允许在任意字符处断行，英文单词会被劈成两截
      （「Category」→「Categor」+「y」）。改成 break-word 只在
      单词本身比整列还宽时才断，正常情况一律整词换行 */
   overflow-wrap: break-word;
}

/* 同一单元格内并排多图 → 分两种图对待
   ① 没设宽度的：按数量均分该单元格宽度（flex: 1 1 0）
   ② 设了宽度的：按设置值显示，可缩不可伸（flex: 0 1 auto + max-width: 100%），
      所以「定宽 300」放进比 300 窄的列时会缩到列宽，不会溢出
   默认左对齐：只有单元格显式写了 align="center" 或用居中按钮时才居中 */
.post-content tbody td:has(img ~ img):not(:has(> *:not(img))) {
   display: flex;
   flex-wrap: wrap;
   gap: 4px;
   align-items: center;
   justify-content: flex-start;
}
.post-content tbody td:has(img ~ img):not(:has(> *:not(img)))
   img:not([width]):not([height]):not([style*="width"]):not([style*="height"]) {
   flex: 1 1 0;
   min-width: 0;
   max-width: 100%;
   /* 并排的图宽度被均分后，如果其中一张是竖长图，等比放大会把整行拽到七八百像素高。
      max-height 压住这个高度，object-fit: contain 让它在自己的格子里等比缩放、不变形 */
   max-height: 240px;
   object-fit: contain;
   height: auto;
   margin: 4px 0;
   border-radius: 6px;
}
/* 设了宽度的并排图：按设置值显示，不参与均分；列不够宽时缩到列宽为止 */
.post-content tbody td:has(img ~ img):not(:has(> *:not(img)))
   img:is([width], [height], [style*="width"], [style*="height"]) {
   flex: 0 1 auto;
   min-width: 0;
   max-width: 100%;
   height: auto;
   margin: 4px 0;
   border-radius: 6px;
}

/* 单元格与正文块的对齐
   —— Markdown 表格的对齐语法（|:---:| / ---: / :---）由 HyperDown 解析成
   th/td 上的 align 属性；SimpleEditor 的「居中 / 右对齐」按钮则写 ta-* 类。
   两类标记都要盖过表格默认的 text-align:left，否则文章里设置的对齐在前台看不到 */
.post-content .ta-left,
.post-content table th[align="left"],
.post-content table td[align="left"] {
   text-align: left;
}

.post-content .ta-center,
.post-content table th[align="center"],
.post-content table td[align="center"] {
   text-align: center;
}

.post-content .ta-right,
.post-content table th[align="right"],
.post-content table td[align="right"] {
   text-align: right;
}

/* 一个单元格内并排多图时单元格是 flex 容器，text-align 管不到，改由 justify-content 跟随对齐 */
.post-content tbody td[align="left"]:has(img ~ img),
.post-content tbody td.ta-left:has(img ~ img) {
   justify-content: flex-start;
}

.post-content tbody td[align="center"]:has(img ~ img),
.post-content tbody td.ta-center:has(img ~ img) {
   justify-content: center;
}

.post-content tbody td[align="right"]:has(img ~ img),
.post-content tbody td.ta-right:has(img ~ img) {
   justify-content: flex-end;
}

.post-content tbody td:first-child {
   font-weight: 600;
   color: #313546;
   background-color: #FBFBFF;
}

/* =========================================================
   大屏（≥769px）：只有表头 <th> 不换行
   —— 表头是短标签（类目 Category、详情 Details 这类），一行显示更好读；
      单元格正文照旧正常折行，长段落不会一行到底。
   宽度仍受 max-width: 100% 约束，所以长表头也不会把表格撑出正文。
   ========================================================= */
@media (min-width: 769px) {
   .post-content table thead th {
      white-space: nowrap;
   }

   /* 1×1 表格（一行一列）里只有一张图时，表格宽度收缩到图片本身
      —— 否则 width:100% 会把只有 64px 图标的表格拉成整版宽，右边空一大条。
      仅在「整格除这张图外没有任何元素（img:only-child）」时生效：
      一旦格子里还有文字、<br>、多图，或表格还有别的行，就照常铺满版面 */
   .post-content table:has(> tbody > tr:only-child > td:only-child > img:only-child),
   .post-content table:has(> tr:only-child > td:only-child > img:only-child) {
      width: fit-content;
   }
}

@media (max-width: 768px) {
   .post-content { overflow-x: auto; } /* 容器兜底：表格超宽时横向滚动，不破版 */

   .post-content table {
      display: table;
      width: 100%;
      table-layout: auto; /* 整表统一列宽，各列协调对齐 */
      font-size: 14px;
   }

   /* 小屏空间不够，含图片的表格改回固定布局，列宽均分，图片不再被压到看不清 */
   .post-content table:has(img) {
      table-layout: fixed;
   }

   .post-content thead th,
   .post-content tbody td {
      padding: 10px 4px;
      white-space: normal;
      word-break: normal; /* 英文单词不折断，整词换行 */
      overflow-wrap: normal;
      min-width: 0;
   }

   .post-content thead th {
      position: sticky;
      top: 0;
      z-index: 1;
   }

   /* 小屏：表格内图片同桌面逻辑——只缩不放，尊重内联宽高；上限随列宽走 */
   .post-content table img {
      max-width: min(100%, 240px);
      height: auto;
      display: inline-block;
      vertical-align: middle;
      margin: 4px 2px;
      border-radius: 6px;
   }
}

@media (min-width: 1200px) {
   .post-content table {
      font-size: 15px;
   }

   .post-content thead th,
   .post-content tbody td {
      padding: 14px 20px;
   }
}

/* 深色模式：统一由 html[data-theme="dark"] 驱动（header.php 已把系统偏好解析为显式 dark/light） */
html[data-theme="dark"] {
   --dm-bg: #0F1420;
   --dm-surface: #1A2030;
   --dm-surface-2: #222A3D;
   --dm-text: #D7DCE8;
   --dm-text-2: #8A93A8;
   --dm-border: #2A3348;
   --dm-primary: #5B6FE8;
   --dm-accent: #FFD55D;
}
html[data-theme="dark"] body { background-color: var(--dm-bg); color: var(--dm-text); }
html[data-theme="dark"] .box-wrap { background-color: var(--dm-surface); border-color: var(--dm-border); box-shadow: none; }
/* 浅色下新加的文章卡片在深色里必须换深卡面，否则会在深壳上炸出一片白 */
html[data-theme="dark"] .main .post-list .post-item { background: var(--dm-surface-2); border-color: var(--dm-border); box-shadow: none; }
html[data-theme="dark"] .main .post-list .post-item:hover { box-shadow: 0 0 30px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .header { background: #2A3A8F; }
html[data-theme="dark"] .menu .menu-item>a { background: rgba(255,255,255,.06); color: #E6EAF5; }
html[data-theme="dark"] .menu .menu-item.current-menu-item>a { background-color: #fff; color: #364CC6; }
html[data-theme="dark"] .aside-block,
html[data-theme="dark"] .post-item-img,
html[data-theme="dark"] .photo-item,
html[data-theme="dark"] .post-item-placeholder,
html[data-theme="dark"] .sider-post-placeholder,
html[data-theme="dark"] .photo-item-placeholder,
html[data-theme="dark"] .pic-cover-item-placeholder,
html[data-theme="dark"] .post-empty { background-color: var(--dm-surface-2); color: var(--dm-text-2); }
html[data-theme="dark"] .aside-block { border-color: var(--dm-border); box-shadow: 0 0 50px rgba(0,0,0,.4); }
html[data-theme="dark"] .search-form { border-color: var(--dm-border); box-shadow: none; }
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination span,
html[data-theme="dark"] .post-meta,
html[data-theme="dark"] .post-item-meta,
html[data-theme="dark"] .crumbs span,
html[data-theme="dark"] .crumbs h2,
html[data-theme="dark"] .footer { color: var(--dm-text-2); }
html[data-theme="dark"] .block-title,
html[data-theme="dark"] .post-title,
html[data-theme="dark"] .post-content h2,
html[data-theme="dark"] .post-content h3,
html[data-theme="dark"] .post-content h4,
html[data-theme="dark"] .logo-wrap .logo-title,
html[data-theme="dark"] .logo-wrap h1 { color: var(--dm-text); }
html[data-theme="dark"] .post-content { border-bottom-color: var(--dm-border); }
html[data-theme="dark"] .post-content img,
html[data-theme="dark"] .post-content video { background-color: var(--dm-surface-2); }
html[data-theme="dark"] .tag-wrap>a { color: var(--dm-accent); background-color: rgba(255,213,93,.12); }
html[data-theme="dark"] .pagination .active a,
html[data-theme="dark"] .pagination li.active a,
html[data-theme="dark"] .pagination .active span,
html[data-theme="dark"] .pagination li.active span { background-color: var(--dm-primary); color: #fff; }
html[data-theme="dark"] .pagination a:hover { background-color: var(--dm-surface-2); color: var(--dm-primary); }
html[data-theme="dark"] .cat-tab-wrap { background-color: var(--dm-surface); }
html[data-theme="dark"] .cat-tab-wrap>li.current-menu-item>a { background-image: linear-gradient(to top, var(--dm-accent) 6px, transparent 6px); }
html[data-theme="dark"] .cat-tab-wrap>li.current-menu-item>a.cat-tab-has-prefix .cat-tab-current { background-image: linear-gradient(to top, var(--dm-accent) 6px, transparent 6px); }
html[data-theme="dark"] .search-input::placeholder { color: var(--dm-text-2); }
html[data-theme="dark"] .notice-bar--orange { background: #3A2F14 !important; border-color: #6B5320 !important; border-left-color: #FFD55D !important; color: #F0D896 !important; }
html[data-theme="dark"] .notice-bar--red { background: #3A1A1A !important; border-color: #6B2A2A !important; border-left-color: #E53935 !important; color: #F0A8A8 !important; }
html[data-theme="dark"] .notice-bar--blue { background: #1A2340 !important; border-color: #2A3A6B !important; border-left-color: #5B6FE8 !important; color: #A8B8F0 !important; }
html[data-theme="dark"] .notice-bar--green { background: #16301F !important; border-color: #2A5A3A !important; border-left-color: #4CAF70 !important; color: #A8E0B8 !important; }
html[data-theme="dark"] .post-content table { background-color: var(--dm-surface-2); border-color: var(--dm-border); }
html[data-theme="dark"] .post-content thead { background-color: #252E42; }
html[data-theme="dark"] .post-content thead th,
html[data-theme="dark"] .post-content tbody td { color: var(--dm-text); border-right-color: var(--dm-border); border-bottom-color: var(--dm-border); }
html[data-theme="dark"] .post-content tbody tr:nth-child(even) { background-color: #1F2738; }
html[data-theme="dark"] .post-content tbody tr:hover { background-color: #2A3348; }
html[data-theme="dark"] .post-content tbody td:first-child { background-color: #252E42; color: var(--dm-text); }
html[data-theme="dark"] .post-content table a { color: #A8B8F0; }
html[data-theme="dark"] .post-content pre,
html[data-theme="dark"] .post-content code { background: #252E42; }

/* =========================================================
   键盘焦点样式（可访问性）
   ========================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
   outline: 3px solid #FFD55D;
   outline-offset: 2px;
}
.theme-toggle:focus-visible {
   outline-color: #fff;
}

/* =========================================================
   归档页（page-archive.php）
   ========================================================= */
.page-scope .archive-sec { margin-bottom: 24px; }
.page-scope .archive-sec:last-child { margin-bottom: 0; }
.archive-empty { color: #8086A0; font-size: 14px; }

/* 分类胶囊 */
.archive-cat-list {
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
}
.archive-cat-list li { margin: 0; }
.archive-cat-list li a {
   display: inline-block;
   padding: 8px 16px;
   border-radius: 20px;
   background: #EEF3FF;
   color: #364CC6;
   font-size: 14px;
   text-decoration: none;
   transition: background .2s ease, color .2s ease;
}
.archive-cat-list li a:hover { background: #364CC6; color: #fff; }
.archive-cat-count { color: #8086A0; font-size: 12px; margin-left: 5px; }

/* 标签云 */
.archive-tags { margin: 0; }
.archive-tags a {
   display: inline-block;
   margin: 0 8px 8px 0;
   padding: 6px 14px;
   border-radius: 16px;
   background: #F2F3F8;
   color: #555;
   font-size: 13px;
   text-decoration: none;
   transition: background .2s ease, color .2s ease;
}
.archive-tags a:hover {
   color: #364CC6;   /* 与正文链接 hover 一致：仅文字变主蓝，无背景/下划线 */
}

/* 年份分组（同年份内再按月份） */
.archive-year-group { margin-top: 26px; }
.archive-year-group:first-child { margin-top: 0; }
.archive-year {
   margin: 0 0 10px;
   padding-bottom: 6px;
   border-bottom: 2px solid #E5E7F0;
   font-size: 22px;
   font-weight: 700;
   line-height: 1.3;
   color: #364CC6;
   cursor: pointer;
   list-style: none;
   user-select: none;
}
.archive-year::-webkit-details-marker { display: none; }
.archive-year::after {
   content: '＋';
   float: right;
   margin-left: 8px;
   color: #8086A0;
   font-size: 16px;
   line-height: 1.3;
}
.archive-year-group[open] .archive-year::after { content: '－'; }
.archive-month-group { margin-top: 12px; }
.archive-month-group:first-child { margin-top: 0; }
.archive-month {
   margin: 0 0 6px;
   padding-left: 12px;
   border-left: 3px solid #364CC6;
   font-size: 15px;
   line-height: 1.4;
   color: #555;
}

/* 文章列表 */
.archive-post-list {
   list-style: none;
   margin: 0;
   padding: 0;
}
.archive-post-list li {
   display: flex;
   justify-content: space-between;
   align-items: baseline;
   padding: 9px 0;
   border-bottom: 1px dashed #E5E7F0;
}
.archive-post-list li:last-child { border-bottom: none; }
.archive-post-list a {
   color: #333;
   text-decoration: none;
   font-size: 15px;
   transition: color .2s ease;
}
.archive-post-list a:hover { color: #364CC6; }
.archive-post-date {
   color: #8086A0;
   font-size: 13px;
   flex-shrink: 0;
   margin-left: 16px;
}

/* 归档统计（侧栏） */
.archive-stats {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 8px;
   text-align: center;
}
.archive-stat-item {
   padding: 12px 8px;
   border-radius: 10px;
   background: #F2F3F8;
}
.archive-stat-num {
   display: block;
   font-size: 22px;
   font-weight: 600;
   color: #364CC6;
   line-height: 1.2;
}
.archive-stat-num--sm {
   display: block;
   padding-top: 4px;
   font-size: 12px;
   font-weight: 600;
   color: #364CC6;
   line-height: 1.3;
}
.archive-stat-label {
   display: block;
   margin-top: 4px;
   font-size: 12px;
   color: #8086A0;
}

/* 归档页深色模式 */
html[data-theme="dark"] .archive-cat-list li a { background: #1A2340; color: #A8B8F0; }
html[data-theme="dark"] .archive-cat-list li a:hover { background: var(--dm-primary); color: #fff; }
html[data-theme="dark"] .archive-cat-count { color: var(--dm-text-2); }
html[data-theme="dark"] .archive-tags a { background: #2A2F45; color: #C5C9DD; }
html[data-theme="dark"] .archive-tags a:hover {
   color: #364CC6;   /* 与正文链接 hover 一致（全局 a:hover） */
}
html[data-theme="dark"] .archive-year { color: #A8B8F0; border-bottom-color: #2A2F45; }
html[data-theme="dark"] .archive-year::after { color: var(--dm-text-2); }
html[data-theme="dark"] .archive-month { color: #C5C9DD; border-left-color: #5B6FE8; }
html[data-theme="dark"] .archive-post-list li { border-bottom-color: #2A2F45; }
html[data-theme="dark"] .archive-post-list a { color: #D5D9E8; }
html[data-theme="dark"] .archive-post-list a:hover { color: #A8B8F0; }
html[data-theme="dark"] .archive-post-date { color: var(--dm-text-2); }
html[data-theme="dark"] .archive-stat-item { background: #2A2F45; }
html[data-theme="dark"] .archive-stat-num { color: #A8B8F0; }
html[data-theme="dark"] .archive-stat-num--sm { color: #A8B8F0; }
html[data-theme="dark"] .archive-stat-label { color: var(--dm-text-2); }

/* =========================================================
   正文图片灯箱（lightbox.js）
   ========================================================= */
.mp-lightbox {
   display: none;
   position: fixed;
   inset: 0;
   z-index: 99999;
   background: rgba(10, 14, 26, .92);
   align-items: center;
   justify-content: center;
   text-align: center;
}
.mp-lightbox-open {
   display: flex;
}
.mp-lightbox-lock {
   overflow: hidden;
}
.mp-lightbox-figure {
   max-width: 92%;
   max-height: 88%;
   margin: 0;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
}
.mp-lightbox-figure img {
   max-width: 100%;
   max-height: 100%;
   border-radius: 8px;
   box-shadow: 0 12px 44px rgba(0, 0, 0, .45);
   transition: transform .12s ease;
   transform-origin: center;
}
.mp-lightbox-figure figcaption {
   color: #cfd6e8;
   margin-top: 12px;
   font-size: 13px;
   text-align: center;
   max-width: 90vw;
}
.mp-lightbox-close {
   position: absolute;
   top: 18px;
   right: 22px;
   width: 42px;
   height: 42px;
   cursor: pointer;
   opacity: .85;
   transition: opacity .15s;
}
.mp-lightbox-close:hover { opacity: 1; }
.mp-lightbox-close::before,
.mp-lightbox-close::after {
   content: '';
   position: absolute;
   left: 50%;
   top: 50%;
   width: 26px;
   height: 2px;
   background: #fff;
}
.mp-lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mp-lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.mp-lightbox-nav {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   width: 46px;
   height: 60px;
   cursor: pointer;
   opacity: .7;
   transition: opacity .15s;
}
.mp-lightbox-nav:hover { opacity: 1; }
.mp-lightbox-nav::before {
   content: '';
   position: absolute;
   left: 50%;
   top: 50%;
   width: 14px;
   height: 14px;
   border-top: 3px solid #fff;
   border-left: 3px solid #fff;
}
.mp-lightbox-prev { left: 18px; }
.mp-lightbox-prev::before { transform: translate(-50%, -50%) rotate(-45deg); }
.mp-lightbox-next { right: 18px; }
.mp-lightbox-next::before { transform: translate(-50%, -50%) rotate(135deg); }
.mp-lightbox-counter {
   position: absolute;
   bottom: 20px;
   left: 50%;
   transform: translateX(-50%);
   color: #9aa5bf;
   font-size: 13px;
}
@media (max-width: 768px) {
   .mp-lightbox-nav { width: 34px; height: 46px; }
   .mp-lightbox-prev { left: 8px; }
   .mp-lightbox-next { right: 8px; }
   .mp-lightbox-close { top: 12px; right: 14px; }
}

/* =========================================================
   评论区（MomentPro - 此刻浮现）
   ========================================================= */
.mp-comments {
   margin-top: 36px;
   padding-top: 30px;
   border-top: 1px solid #F0F2F8;
}

.mp-comments-head {
   display: flex;
   align-items: baseline;
   gap: 10px;
   margin-bottom: 20px;
}

.mp-comments-title {
   position: relative;
   font-size: 20px;
   font-weight: 800;
   color: #20232E;
   padding-bottom: 8px;
}

.mp-comments-title::after {
   content: '';
   position: absolute;
   left: 0;
   bottom: 0;
   width: 42px;
   height: 4px;
   border-radius: 2px;
   background: #FFD55D;
}

.mp-comments-count {
   font-size: 13px;
   color: #8086A0;
   background: #F1F3FA;
   border-radius: 999px;
   padding: 2px 10px;
}

.mp-comments-empty,
.mp-comments-closed {
   font-size: 14px;
   color: #8086A0;
   padding: 16px 0 6px;
}

/* 评论列表（覆盖 Typecho 内置输出结构） */
.mp-comments ol.comment-list,
.mp-comments .comment-list {
   list-style: none;
   margin: 0;
   padding: 0;
}

.mp-comments .comment-body {
   position: relative;
   list-style: none;
   background: #F7F9FF;
   border-radius: 18px;
   padding: 16px 18px;
   margin: 0 0 12px;
   transition: background-color .2s ease;
}

.mp-comments .comment-body .comment-children {
   margin: 12px 0 0 6px;
   padding-left: 16px;
   border-left: 2px solid #E8ECF7;
}

.mp-comments .comment-body .comment-children .comment-body {
   background: #FBFBFF;
   margin-bottom: 10px;
}

.mp-comments .comment-author {
   display: flex;
   align-items: center;
   gap: 10px;
}

.mp-comments .comment-author img {
   width: 36px;
   height: 36px;
   border-radius: 50%;
   display: block;
   margin: 0;
}

.mp-comments .comment-author .mp-author-badge {
   flex: 0 0 auto;
   display: inline-block;
   font-size: 11px;
   line-height: 1.6;
   color: #364CC6;
}

.mp-comments .comment-author .fn {
   font-size: 14px;
   font-weight: 700;
   color: #20232E;
}

.mp-comments .comment-meta {
   margin-top: 6px;
   font-size: 12px;
   color: #8086A0;
}

.mp-comments .comment-meta .comment-awaiting-moderation {
   color: #C98A00;
   font-style: normal;
   margin-left: 8px;
}

.mp-comments .comment-content {
   margin-top: 10px;
   font-size: 15px;
   line-height: 1.75;
   color: #3E4252;
   word-break: break-word;
}

.mp-comments .comment-content p {
   margin: 0 0 8px;
   text-indent: 0;
}

.mp-comments .comment-content p:last-child {
   margin-bottom: 0;
}

.mp-comments .comment-reply {
   margin-top: 10px;
}

.mp-comments .comment-reply a {
   display: inline-block;
   font-size: 12.5px;
   color: #364CC6;
   background: #EEF1FF;
   border-radius: 999px;
   padding: 4px 14px;
   transition: all .2s ease;
}

.mp-comments .comment-reply a:hover {
   background: #364CC6;
   color: #fff;
}

/* 评论分页 */
.mp-comments .page-navigator {
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
   gap: 8px;
   list-style: none;
   margin: 20px 0 6px;
   padding: 0;
}

.mp-comments .page-navigator li a,
.mp-comments .page-navigator li span {
   display: inline-block;
   min-width: 34px;
   text-align: center;
   padding: 6px 10px;
   border-radius: 10px;
   background: #F1F3FA;
   color: #6B7280;
   font-size: 13px;
}

.mp-comments .page-navigator li span.current {
   background: #364CC6;
   color: #fff;
}

/* 发表评论 */
.mp-respond {
   margin-top: 30px;
   background: #F7F9FF;
   border-radius: 20px;
   padding: 22px 24px;
}

.mp-respond-title {
   font-size: 16px;
   font-weight: 800;
   color: #20232E;
   margin-bottom: 16px;
}

.mp-cancel-reply {
   margin-bottom: 12px;
   font-size: 13px;
}

.mp-cancel-reply a {
   color: #364CC6;
}

.mp-comment-form .mp-form-row {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
   gap: 14px;
}

.mp-comment-form .mp-field {
   margin: 0 0 14px;
}

.mp-comment-form .mp-field label {
   display: block;
   font-size: 12.5px;
   color: #6B7280;
   margin-bottom: 6px;
}

.mp-comment-form .mp-req {
   color: #E5484D;
   margin-left: 2px;
}

.mp-comment-form .mp-label-line {
   display: flex;
   align-items: center;
   gap: 8px;
   margin-bottom: 6px;
}

.mp-comment-form .mp-label-line label {
   margin-bottom: 0;
   line-height: 1.6;
}

.mp-comment-form .mp-anon-btn {
   flex: 0 0 auto;
   height: 22px;
   padding: 0 10px;
   border: 1px solid #364CC6;
   border-radius: 11px;
   background: transparent;
   color: #364CC6;
   font-size: 12px;
   font-family: inherit;
   line-height: 20px;
   cursor: pointer;
   white-space: nowrap;
   transition: background-color .2s ease, color .2s ease;
}

.mp-comment-form .mp-anon-btn:hover {
   background: #364CC6;
   color: #fff;
}

.mp-comment-form input[type=text],
.mp-comment-form input[type=email],
.mp-comment-form input[type=url],
.mp-comment-form textarea {
   width: 100%;
   border: 1px solid #E4E8F4;
   background: #fff;
   color: #3E4252;
   border-radius: 12px;
   padding: 10px 12px;
   font-size: 14px;
   line-height: 1.5;
   font-family: inherit;
   transition: border-color .2s ease, box-shadow .2s ease;
}

.mp-comment-form textarea {
   resize: vertical;
   min-height: 120px;
}

.mp-comment-form input:focus,
.mp-comment-form textarea:focus {
   border-color: #364CC6;
   box-shadow: 0 0 0 3px rgba(54, 76, 198, .12);
}

.mp-comment-form .mp-form-submit {
   margin: 4px 0 0;
   text-align: right;
}

.mp-comment-form .mp-submit {
   border: 0;
   cursor: pointer;
   background: #364CC6;
   color: #fff;
   font-size: 14px;
   font-weight: 700;
   padding: 10px 28px;
   border-radius: 999px;
   transition: background-color .2s ease, transform .15s ease;
}

.mp-comment-form .mp-submit:hover {
   background: #2C3EA6;
}

.mp-comment-form .mp-submit:active {
   transform: scale(.97);
}

.mp-comment-form .mp-form-login {
   font-size: 13px;
   color: #6B7280;
   margin-bottom: 14px;
}

/* 深色模式 */
html[data-theme="dark"] .mp-comments {
   border-top-color: var(--dm-border);
}

html[data-theme="dark"] .mp-comments-title,
html[data-theme="dark"] .mp-respond-title {
   color: var(--dm-text);
}

html[data-theme="dark"] .mp-comments-count {
   color: var(--dm-text-2);
   background: var(--dm-surface-2);
}

html[data-theme="dark"] .mp-comments-empty,
html[data-theme="dark"] .mp-comments-closed {
   color: var(--dm-text-2);
}

html[data-theme="dark"] .mp-comments .comment-body {
   background: var(--dm-surface-2);
}

html[data-theme="dark"] .mp-comments .comment-body .comment-children {
   border-left-color: var(--dm-border);
}

html[data-theme="dark"] .mp-comments .comment-body .comment-children .comment-body {
   background: #202839;
}

html[data-theme="dark"] .mp-comments .comment-author .fn {
   color: var(--dm-text);
}

html[data-theme="dark"] .mp-comments .comment-author .mp-author-badge {
   color: #6D7FE8;
}

html[data-theme="dark"] .mp-comments .comment-meta {
   color: var(--dm-text-2);
}

html[data-theme="dark"] .mp-comments .comment-meta .comment-awaiting-moderation {
   color: var(--dm-accent);
}

html[data-theme="dark"] .mp-comments .comment-content {
   color: var(--dm-text);
}

html[data-theme="dark"] .mp-comments .comment-reply a {
   background: rgba(91, 111, 232, .16);
   color: #AAB6FF;
}

html[data-theme="dark"] .mp-comments .comment-reply a:hover {
   background: var(--dm-primary);
   color: #fff;
}

html[data-theme="dark"] .mp-comments .page-navigator li a,
html[data-theme="dark"] .mp-comments .page-navigator li span {
   background: var(--dm-surface-2);
   color: var(--dm-text-2);
}

html[data-theme="dark"] .mp-comments .page-navigator li span.current {
   background: var(--dm-primary);
   color: #fff;
}

html[data-theme="dark"] .mp-respond {
   background: var(--dm-surface-2);
}

html[data-theme="dark"] .mp-cancel-reply a {
   color: #AAB6FF;
}

html[data-theme="dark"] .mp-comment-form .mp-field label,
html[data-theme="dark"] .mp-comment-form .mp-form-login {
   color: var(--dm-text-2);
}

html[data-theme="dark"] .mp-comment-form input[type=text],
html[data-theme="dark"] .mp-comment-form input[type=email],
html[data-theme="dark"] .mp-comment-form input[type=url],
html[data-theme="dark"] .mp-comment-form textarea {
   background: var(--dm-surface);
   border-color: var(--dm-border);
   color: var(--dm-text);
}

html[data-theme="dark"] .mp-comment-form input:focus,
html[data-theme="dark"] .mp-comment-form textarea:focus {
   border-color: var(--dm-primary);
   box-shadow: 0 0 0 3px rgba(91, 111, 232, .22);
}

html[data-theme="dark"] .mp-comment-form .mp-submit {
   background: var(--dm-primary);
}

html[data-theme="dark"] .mp-comment-form .mp-submit:hover {
   background: #4A5FD6;
}

html[data-theme="dark"] .mp-comment-form .mp-anon-btn {
   border-color: var(--dm-primary);
   color: var(--dm-primary);
}

html[data-theme="dark"] .mp-comment-form .mp-anon-btn:hover {
   background: var(--dm-primary);
   color: #fff;
}

@media (max-width: 900px) {
   .mp-comment-form .mp-form-row {
      grid-template-columns: 1fr;
   }

   .mp-comments .comment-body {
      padding: 14px 14px;
   }

   .mp-comments .comment-body .comment-children {
      margin-left: 0;
      padding-left: 12px;
   }

   .mp-respond {
      padding: 18px 16px;
   }
}

/* ===== SimpleEditor 页面弹窗组件（由插件 asset/popup.css 同步而来，勿手改） ===== */
.se-pop {
    display: inline-block;
    max-width: 100%;
    margin: 6px 0;
    vertical-align: middle;
}

/* 触发按钮：三种外观 */
.se-pop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    border: 1px solid #364CC6;
    border-radius: 999px;
    background: #364CC6;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    font-family: inherit;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
    box-sizing: border-box;
}
.se-pop-btn:hover {
    background: #2B3FB0;
    border-color: #2B3FB0;
    box-shadow: 0 6px 18px rgba(54, 76, 198, 0.22);
}
.se-pop-btn--ghost {
    background: transparent;
    color: #364CC6;
}
.se-pop-btn--ghost:hover {
    background: rgba(54, 76, 198, 0.08);
    color: #2B3FB0;
}
.se-pop-btn--text {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #364CC6;
    text-decoration: underline;
    box-shadow: none;
}
.se-pop-btn--text:hover {
    background: none;
    color: #2B3FB0;
    box-shadow: none;
}

/* 浮层 */
.se-pop-layer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 14, 25, 0.66);
    box-sizing: border-box;
}
.se-pop-layer.is-open { display: flex; }

.se-pop-panel {
    position: relative;
    width: min(var(--se-pop-w, 560px), 92vw);
    max-height: 86vh;
    overflow: auto;
    padding: 28px 26px 22px;
    border-radius: 16px;
    background: #fff;
    color: #20242F;
    box-shadow: 0 26px 70px rgba(10, 14, 25, 0.34);
    box-sizing: border-box;
    outline: none;
    text-align: center;
}
/* 面板获得焦点时不要主题的亮色描边（.se-pop-panel 带 tabindex） */
.se-pop-panel:focus,
.se-pop-panel:focus-visible,
.se-pop-panel:focus-within {
    outline: none;
}

.se-pop-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(32, 36, 47, 0.06);
    color: #6B7280;
    font-size: 18px;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
}
.se-pop-x:hover { background: rgba(32, 36, 47, 0.14); color: #20242F; }

.se-pop-body {
    font-size: 16px;
    line-height: 1.75;
    word-break: break-word;
}
.se-pop-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    padding: 0 34px;
}
.se-pop-body p { margin: 0 0 10px; }
.se-pop-body p:last-child { margin-bottom: 0; }
.se-pop-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 12px;
    border-radius: 10px;
}
.se-pop-body video,
.se-pop-body iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
    border: 0;
    border-radius: 10px;
    background: #000;
}
.se-pop-body iframe { aspect-ratio: 16 / 9; height: auto; }
.se-pop-body video { height: auto; }

/* 深色站点：跟随主题的 data-theme，跟随系统时用 prefers-color-scheme */
html[data-theme="dark"] .se-pop-panel { background: #1A2030; color: #D7DCE8; }
html[data-theme="dark"] .se-pop-x { background: rgba(255, 255, 255, 0.08); color: #AAB2C4; }
html[data-theme="dark"] .se-pop-x:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
html[data-theme="dark"] .se-pop-btn { background: #5B6FE8; border-color: #5B6FE8; }
html[data-theme="dark"] .se-pop-btn--ghost { background: transparent; color: #8E9DF3; border-color: #5B6FE8; }
html[data-theme="dark"] .se-pop-btn--text { background: none; color: #8E9DF3; border: 0; }

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .se-pop-panel { background: #1A2030; color: #D7DCE8; }
    html:not([data-theme="light"]) .se-pop-x { background: rgba(255, 255, 255, 0.08); color: #AAB2C4; }
}

/* 打开浮层时锁住页面滚动 */
body.se-pop-lock { overflow: hidden; }

/* 窄屏 */
@media (max-width: 600px) {
    .se-pop-panel { padding: 24px 16px 16px; border-radius: 14px; width: 94vw; }
    .se-pop-body { font-size: 15px; }
    .se-pop-title { font-size: 18px; }
    .se-pop-layer { padding: 12px; }
}

/* 尊重「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
    .se-pop-btn { transition: none; }
}
