/* LECMS 适配：补充必要的局部样式，尽量保持 Discuz 视觉 */

body { background: var(--bthy-fs, #f7f8fa); }

/* SEO: visually hidden H1 (keeps structure, no layout impact) */
.seo-h1{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

/* 列表筛选按钮激活态 */
.list-lei.act,
.list-lei.active { background: #1e80ff; color: #fff; }

/* 收藏/点赞激活态（内容页顶部按钮） */
#p_btns [data-action="favorites"].is-active em,
#p_btns [data-action="likes"].is-active em{
  color:#ff7a00;
}

/* 顶部搜索与Logo强制显示 */
.mj-sq-dh .ju-logo.d-yc { display: flex !important; }
.mj-sq-dh .dhkj-so { /*display: block !important; */}
.mj-sq-dh #pc-dh { display: inline-flex !important; }
.mj-sq-dh .cebian { display: none; }
.mj-sq-dh { z-index: 70; }
.mj-sq-dh #pc-dh,
.mj-sq-dh .cebian { position: relative; z-index: 71; }
@media (max-width: 1024px) {
  .mj-sq-dh #pc-dh { display: none !important; }
  .mj-sq-dh .cebian { display: inline-flex !important; }
}

/* 侧边栏：桌面常显，移动端抽屉 */
@media (min-width: 1025px) {
  .sidebar { transform: translateX(0) !important; opacity: 1 !important; }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-240px); opacity: 0; transition: all .5s; }
  .sidebar.show-sidebar { transform: translateX(0); opacity: 1; }
  /* WAP 侧边栏下移，避免遮挡顶部按钮 */
  .sidebar { padding-top: 3rem; box-sizing: border-box; }
  .sidebar .nav-dh-kz { max-height: calc(100% - 3.5rem); }
}
.sidebar { z-index: 60; }
.overlay { z-index: 55; }

/* WAP 侧边栏导航（LECMS th_nav） */
.sidebar .wap_headernav { display: none; padding: 0 .5rem .6rem; }
.sidebar .nav-dh-kz { overflow-y: auto; }
.sidebar .wap_headernav .th_nav { list-style: none; margin: 0; padding: 0; display: block; }
.sidebar .wap_headernav .th_nav li { float: none; margin: 0 .4rem; white-space: nowrap; position: relative; border-bottom: 1px solid #f2f5f7; display: block; width: 100%; }
.sidebar .wap_headernav .th_nav li a { position: relative; line-height: 1rem; height: 2rem; width: 100%; font-size: .6rem; transition: .3s ease-out; display: inline-block; text-align: center; color: var(--bthy-z, #333); }
.sidebar .wap_headernav .th_nav li.act > a { color: #1e80ff; }
.sidebar .wap_headernav .th_nav li ul { overflow: hidden; display: block; padding: 0 .2rem .4rem; }
.sidebar .wap_headernav .th_nav li ul li { float: left; width: 48%; border-bottom: 1px dashed #cde9fd; }
.sidebar .wap_headernav .th_nav li ul li a { font-size: .8rem; line-height: 1.8rem; height: 1.8rem; }
@media (max-width: 1024px) {
  .sidebar .wap_headernav { display: block !important; visibility: visible; opacity: 1; }
  .sidebar.show-sidebar .wap_headernav { display: block !important; visibility: visible; opacity: 1; }
}

@media (max-width: 1024px) {
  .sidebar .wap_headernav { padding: .4rem .5rem .2rem; }
  .sidebar .wap_headernav .th_nav li { margin: .2rem 0; border-bottom: none; }
  .sidebar .wap_headernav .th_nav li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .6rem;
    height: 2.6rem;
    line-height: 2.6rem;
    padding: 0 .8rem;
    border-radius: .6rem;
    background: #f6f7fb;
    font-size: .75rem;
  }
  .sidebar .wap_headernav .th_nav li.act > a {
    background: #e9f0ff;
    color: #1e80ff;
  }
  .sidebar .wap_headernav .th_nav i { font-size: 1rem; }
  .sidebar .wap_headernav .th_nav .wap-nav-ico {
    width: 18px;
    height: 18px;
    border-radius: 4px;
  }
}

/* 面包屑：Discuz 风格 */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; list-style: none; margin: .5rem 0 1rem; padding: .2rem .6rem; background: var(--bthy-fs, #fff); border-radius: .4rem; }
.breadcrumb li { list-style: none; }
.breadcrumb li + li:before { content: "/"; margin: 0 .4rem 0 .2rem; color: var(--bthy-zcs, #9aa0a6); }
.breadcrumb a { color: var(--bthy-z, #333); text-decoration: none; }
.breadcrumb .breadcrumb-item.active a { color: var(--bthy-ys, #3858f6); }

/* 列表样式改为标准列表，文字列表模式已移除 */

.post-neirong img{
  -webkit-clip-path: inset(0 0 13% 0);
  clip-path: inset(0 0 13% 0);
  max-width: 100%;
  height: auto;
  display: block;
  margin: .6rem auto;
  max-height: 70vh;
  object-fit: contain;
}
@media (max-width: 768px){
  .post-neirong img{
    -webkit-clip-path: inset(0 0 15% 0);
    clip-path: inset(0 0 15% 0);
    max-height: 60vh;
  }
}

/* 列表图片裁剪 */
.tupiansa img{
  -webkit-clip-path: inset(0 0 13% 0);
  clip-path: inset(0 0 13% 0);
}
.bktz-lb-sx img{
  -webkit-clip-path: inset(0 0 13% 0);
  clip-path: inset(0 0 13% 0);
}
@media (max-width: 768px){
  .tupiansa img{
    -webkit-clip-path: inset(0 0 15% 0);
    clip-path: inset(0 0 15% 0);
  }
  .bktz-lb-sx img{
    -webkit-clip-path: inset(0 0 15% 0);
    clip-path: inset(0 0 15% 0);
  }
}

/* 统一分页样式 */
.pages { text-align: center; padding: 20px 0; }

/* 空间页：用户头部 + 瀑布流 */
.space-hero { position: relative; overflow: hidden; }
.space-cover img { width: 100%; height: 10rem; object-fit: cover; display: block; }
.space-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem 1.25rem; }
.space-avatar { width: 4.2rem; height: 4.2rem; border-radius: 50%; overflow: hidden; border: 3px solid #fff; background: #fff; margin-top: -2.6rem; flex: 0 0 auto; }
.space-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.space-name h2 { margin: 0; font-size: 1.1rem; }
.space-name .space-id { font-size: .75rem; color: #98a0ab; }
.space-stats { display: flex; gap: 1rem; }
.space-stats span { display: flex; flex-direction: column; align-items: center; font-size: .75rem; color: #6b7280; }
.space-stats strong { font-size: 1rem; color: #111827; }
@media (max-width: 768px) {
  .space-meta { flex-direction: column; align-items: flex-start; }
  .space-stats { width: 100%; justify-content: space-between; }
}

/* 文章内容页：WAP 搜索与布局适配 */
.thread-wap-search { display: none; }
@media (max-width: 1024px) {
  .thread-wap-search { display: block; }
  .post-zz-zl { width: 100% !important; position: static !important; float: none !important; }
  #postlist { width: 100% !important; float: none !important; }
	/* 内容页：WAP 取消固定高度，避免评论区遮挡 */
  .tienei-zhu,
  .tienei-zhu .post-tie,
  .tienei-zhu .post-tie .post-zuo,
  .tienei-zhu .post-tie .post-you,
  .tienei-zhu .post-you .you-tienei {
    height: auto !important;
  }
  .tienei-zhu .post-you .you-tienei {
    max-height: none !important;
    overflow: visible !important;
  }
}
.zz-zl-gr .avatar img { width: 50%; height: 50%; object-fit: cover; display: block; border-radius: 50%; }
/* 内容页：WAP 作者卡片更贴近 Discuz 布局 */
@media (max-width: 1024px) {
  .zz-zl-gr { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; }
  .zz-zl-gr .avatar { width: 3.2rem; height: 3.2rem; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: #fff; }
  .zz-zl-gr .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
  .zz-zl-gr .zl-gr { flex: 1; min-width: 0; }
  .zz-zl-gr .w-fit-content a { font-size: 1rem; }
  .zz-zl-gr .tn-sj-zs { flex-wrap: wrap; gap: .35rem .75rem; margin-top: .35rem; }
  .zz-zl-gr .tn-sj-zs a { background: #f6f7fb; padding: .2rem .55rem; border-radius: 999px; }
}

/* 内容页：WAP 热门帖子移到底部 */
.zz-zl-rd--wap { display: none; }
@media (max-width: 1024px) {
  .zz-zl-rd--pc { display: none; }
  .zz-zl-rd--wap { display: block; }
}

/* 搜索页：搜索框更明显一致 */
#scform { margin: 0 0 1rem; }
#scform_form { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; }
#scform_form input { flex: 1; height: 2.2rem; border: none; outline: none; background: transparent; }
#scform_submit { height: 2.2rem; border-radius: 999px; background: #f1f5ff; border: none; padding: 0 .9rem; }
#scform_submit i { font-size: 1rem; }

/* WAP 侧边栏导航图标 */
.wap_headernav .th_nav a { display: flex; align-items: center; gap: .5rem; }
.wap_headernav .th_nav i { font-size: 1rem; }

/* 作者卡片 VIP 图标 */
.vip-ico { font-size: 1rem; color: #ffb84d; }

/* 懒加载渐显 */
img.lazyload {
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
  transform: translateY(6px);
}
img.lazyload:not([data-src]):not([data-srcset]) {
  opacity: 1;
  transform: translateY(0);
}
img.lazyload.is-loaded {
  opacity: 1;
  transform: translateY(0);
}
/* 侧边栏图片：避免默认图不触发 load 时一直隐藏 */
.layout-side img.lazyload{
  opacity:1 !important;
  transform:none !important;
}

/* 滚动加载提示 */
.pbl-loader,
.pbl-end {
  text-align: center;
  color: #9aa0a6;
  font-size: .7rem;
  padding: .8rem 0 1.2rem;
}
.pbl-loader.is-loading {
  color: #1e80ff;
}
.pbl-sentinel { height: 1px; }

/* 评论区：Discuz 风格 */
.tie-huifu{
  background:#f3f5f9;
  border-radius:12px;
  padding:16px 16px 12px;
}
.tie-huifu .tienei-post textarea{
  background:transparent;
  border:0;
  min-height:64px;
  resize:vertical;
}
.tie-huifu .tienei-post input{
  margin-bottom:10px;
}
.tie-huifu .pnpost{
  margin-top:12px;
  display:flex;
  justify-content:flex-end;
}
.tie-huifu #ctf_submit{
  background:#3a5bff;
  color:#fff;
  border-radius:10px;
  padding:10px 28px;
  font-size:14px;
}
.post-huifu.huifu-yh{
  background:#fff;
  border-radius:12px;
  padding:14px 18px;
  border:1px solid #eef0f4;
}
.post-huifu.huifu-yh + .post-huifu.huifu-yh{
  margin-top:12px;
}
.post-huifu.huifu-yh .thi-z img{
  width:36px;
  height:36px;
}
.post-huifu.huifu-yh .bklb-fy em{
  color:#a0a4ad;
}
.post-huifu.huifu-yh .t_fsz{
  margin-top:8px;
  line-height:1.6;
}
.comment-head-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.comment-head-right{
  display:flex;
  align-items:center;
  gap:12px;
}
.comment-head-right a{
  color:#9aa0a6;
  font-size:16px;
}
.comment-date{
  width:100%;
  text-align:right;
  margin-top:6px;
}
.comment-actions{
  margin-top:10px;
  border-top:1px solid #eef0f4;
  padding-top:10px;
  display:flex;
  justify-content:flex-start;
  gap:12px;
}
.comment-actions .comment-reply{
  background:#f2f4f8;
  border-radius:8px;
  padding:6px 14px;
  color:#6b7280;
}
.comment-actions .comment-reply:hover{
  color:#3a5bff;
}
.comment-more-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:12px 0 0;
  padding:8px 16px;
  border-radius:10px;
  background:#f2f4f8;
  color:#6b7280;
}
.comment-more-btn:hover{
  background:#e9eef8;
  color:#3a5bff;
}
.comment-form{
  display:flex;
  align-items:center;
  gap:12px;
}
.comment-form .tienei-post{
  flex:1;
}
.comment-form .pnpost{
  margin:0 !important;
}
.comment-form #ctf_submit{
  min-width:96px;
  height:42px;
  border-radius:10px;
}
@media (max-width: 768px) {
  .comment-form{
    flex-direction:column;
    align-items:stretch;
  }
  .comment-form #ctf_submit{
    width:100%;
  }
  .comment-date{
    text-align:left;
  }
}
.reply-comment-box{
  background:#eef1f6;
  border-radius:10px;
  padding:10px 12px;
  margin-bottom:10px;
}
.reply-comment-title{
  display:flex;
  justify-content:space-between;
  color:#6b7280;
  font-size:12px;
  margin-bottom:6px;
}
.reply-comment-title a{ color:#6b7280; }
.reply-comment-content{
  font-size:13px;
  color:#6b7280;
  background:#f7f9fc;
  border-radius:8px;
  padding:8px 10px;
}
.reply-quote{
  background:#f6f7fb;
  border-radius:8px;
  padding:8px 10px;
  color:#6b7280;
  font-size:13px;
  margin-bottom:8px;
}
.comment-badge.author{
  background:#e8f5ee;
  color:#2f8f5b;
  font-size:12px;
  padding:2px 6px;
  border-radius:6px;
}
.comment-actions{
  margin-top:10px;
  border-top:1px solid #eef0f4;
  padding-top:10px;
  display:flex;
  justify-content:flex-end;
  gap:12px;
}
.comment-actions a{
  color:#9aa0a6;
  font-size:14px;
}
.comment-actions a.comment-reply{
  font-size:13px;
}
.comment-actions a.comment-like.is-liked{
  color:#3a5bff;
}
.comment-actions a.comment-more.is-open{
  color:#3a5bff;
}

/* 三栏布局：左侧导航 + 中间内容 + 右侧侧边栏 */
.layout-3col{
  display:flex;
  align-items:flex-start;
  gap:.9rem;
  width:100%;
}
.layout-main{
  flex:1 1 auto;
  min-width:0;
}
.layout-side{
  flex:0 0 320px;
  width:320px;
}
@media (max-width: 1200px){
  .layout-side{ flex-basis:280px; width:280px; }
}
@media (max-width: 1024px){
  .mj-you{
    margin-left:0 !important;
    width:98% !important;
    padding:3rem .2rem 1rem !important;
  }
  .wow{
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  #side_hot,
  #divTags{
    display:block !important;
  }
  .layout-3col{
    flex-direction:column;
    gap:.8rem;
  }
  .layout-side{
    flex-basis:auto;
    width:100%;
    float:none !important;
    order:2;
  }
  .layout-main{
    width:100%;
    float:none !important;
    order:1;
  }
}

/* 内容列表（default 结构，适配 seo_facai 视觉） */
.post-list-wrap{
  display:flex;
  flex-direction:column;
  gap:.1rem;
}
.post-list{
  background:#fff;
  border:1px solid #e9ecef;
  border-radius:6px;
  margin-bottom:6px !important;
  padding:14px !important;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
  transition:all .2s ease;
}
.post-list:hover{
  box-shadow:0 2px 8px rgba(0,0,0,.1);
  border-color:#ddd;
}
.post-list .entry-container{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0;
  padding:0;
}
.post-list .author-avatar{
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:50%;
  overflow:hidden;
  background:#f2f4f8;
}
.post-list .author-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border:2px solid #f8f9fa;
}
.post-list .entry-content{
  flex:1 1 auto;
  min-width:0;
}
.post-list .entry-header{ margin:0 0 8px; }
.post-list .entry-header{ margin:0 0 6px; }
.post-list .entry-header h3{
  margin:0;
  font-size:16px;
  line-height:1.4;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.post-list .entry-header a{
  color:var(--bthy-z, #111);
  text-decoration:none;
}
.post-list .entry-summary{
  display:none;
  margin:.4rem 0 .2rem;
}
.post-list .entry-cover-img{ display:none; }
.post-list .tupiansa{ display:none; }

/* 仅首页 + 板块列表显示外链图 */
.post-list-wrap[data-view-key="index"] .post-list .entry-summary,
.post-list-wrap[data-view-key="list"] .post-list .entry-summary{
  display:block;
}
.post-list-wrap[data-view-key="index"] .post-list .entry-cover-img,
.post-list-wrap[data-view-key="list"] .post-list .entry-cover-img{
  display:block;
}
.post-list-wrap[data-view-key="index"] .post-list .tupiansa,
.post-list-wrap[data-view-key="list"] .post-list .tupiansa{
  display:grid;
}
.post-list .entry-cover-img{
  width:17%;
  max-height:260px;
  border-radius:.45rem;
  object-fit:cover;
  display:block;
}
.post-list .tupiansa{
  display:grid !important;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:6px;
}
.post-list .tupiansa img{
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
  border-radius:6px;
  border:1px solid #e9ecef;
  display:block;
}
@media (max-width: 768px){
  .post-list-wrap[data-view-key="index"] .post-list .tupiansa,
  .post-list-wrap[data-view-key="list"] .post-list .tupiansa{
    grid-template-columns:repeat(6, minmax(0, 1fr));
  }
}
.post-list .entry-meta-items{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  flex-wrap:wrap;
  margin:4px 0 0;
  font-size:12px;
  color:#666;
}
.post-list .entry-meta{
  display:flex;
  align-items:center;
  gap:.6rem;
  flex-wrap:wrap;
  font-size:12px;
  color:#666;
  line-height:1.3;
}
.post-list .entry-meta i{
  margin-right:3px;
  color:#666;
}
.post-list .entry-meta .meta-viewnums{
  margin-right:8px;
  color:#666;
}
.post-list .entry-meta time{
  margin-right:8px;
}
.post-list .meta-vie{
  background:#409eff;
  height:20px;
  line-height:20px;
  padding:0 8px;
  color:#fff;
  font-size:12px;
  border-radius:10px;
  display:inline-block;
  margin-right:6px;
}
.post-list .entry-meta-author{
  margin-left:auto;
  color:#888;
  font-size:11px;
  display:flex;
  align-items:center;
  gap:4px;
}
@media (max-width: 580px){
  .post-list{ padding:10px !important; margin-bottom:6px !important; }
  .post-list .author-avatar{ display:none !important; }
  .post-list .entry-container{ display:block !important; }
  .post-list .entry-header h3{ font-size:15px; }
  .post-list .entry-meta{ font-size:11px; }
}

/* PC 三栏比例：左 13% / 中 77% / 右 13%（含间距） */
/* PC 三栏比例：左 13% / 中自适应 / 右 25%（含间距） */
:root{
  --layout-left: 13%;
  --layout-right: 25%;
  --layout-gap: 1.2rem;
}
@media (min-width: 1025px){
  .ju-dh{ width: var(--layout-left) !important; }
  .mj-you{
    margin-left: var(--layout-left) !important;
    width: calc(100% - 4rem - var(--layout-left)) !important;
  }
  .layout-3col{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--layout-right));
    column-gap: var(--layout-gap);
    align-items: start;
    justify-content: space-between;
  }
  .layout-3col > .layout-main,
  .layout-3col > .layout-side{
    float: none !important;
    width: auto !important;
  }
}

/* 右侧侧边栏（引自 default 结构，适配 seo_facai 视觉） */
.side{ width:100%; }
.side .widget{
  background: var(--bthy-fs, #fff);
  border:1px solid #edf0f5;
  border-radius:.6rem;
  padding:.8rem;
  margin-bottom:.8rem;
  box-shadow:0 6px 18px rgba(15,23,42,.04);
}
.side .widget-title{
  font-size:.75rem;
  font-weight:600;
  color:var(--bthy-z, #111);
  margin:0 0 .6rem;
  padding-bottom:.5rem;
  border-bottom:1px solid #eef0f4;
  position:relative;
  padding-right:3.2rem;
  overflow:hidden;
}
.side .widget-title:before{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width:36px;
  height:2px;
  background:#42a1ff;
}
.side .widget-title:after{
  content:"";
  position:absolute;
  right:.3rem;
  top:.05rem;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ff5d58;
  box-shadow:20px 0 #ffb528,40px 0 #26c73d;
}
.side .widget-box{
  list-style:none;
  margin:0;
  padding:0;
}

/* 标签列表（右侧边栏） */
.widget-box.divTags{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem .6rem;
}
.widget-box.divTags li{
  list-style:none;
}
.widget-box.divTags li a{
  display:inline-block;
  padding:.35rem .75rem;
  border-radius:.6rem;
  background:#f7f8fa;
  border:1px solid #edf0f5;
  color:var(--bthy-z, #333);
  font-size:.58rem;
  text-decoration:none;
  line-height:1.4;
  white-space:nowrap;
}
.widget-box.divTags li a:hover{
  background:#eef3ff;
  border-color:#dbe7ff;
  color:#2f5bff;
}

/* 板块列表头图 */
.cate-banner{
  width:100%;
  margin:0 0 .8rem;
  border-radius:.7rem;
  overflow:hidden;
  background:#f2f4f8;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
  position:relative;
}
.cate-banner img{
  width:100%;
  height:180px;
  display:block;
  object-fit:cover;
}
.cate-banner .cate-badge{
  position:absolute;
  left:1.1rem;
  bottom:1.1rem;
  padding:.55rem 1rem;
  border-radius:999px;
  font-size:.9rem;
  font-weight:600;
  color:#fff;
  background:linear-gradient(135deg, rgba(32,178,170,.9), rgba(56,88,246,.9));
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  letter-spacing:.05em;
}
@media (max-width: 768px){
  .cate-banner img{ height:140px; }
  .cate-banner .cate-badge{ font-size:.75rem; padding:.45rem .8rem; }
}

/* 板块列表：清理浮动，避免内容“乱序/环绕” */
.mj-bklb .mj-sq-tzy,
.mj-bklb .square-left,
.mj-bklb .sq-left-bk{
  display: flow-root;
}
.mj-bklb #threadlist{
  clear: both;
}
.mj-bklb .bklb-lt{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  flex-wrap:wrap;
}
.mj-bklb .bklb-lt .gc-xuan{
  width:auto;
}

/* PC 强制三栏并排（避免侧栏掉到底部） */
@media (min-width: 1025px){
  .layout-3col{
    display:flex !important;
    flex-wrap: nowrap;
    align-items:flex-start;
    gap: var(--layout-gap);
  }
  .layout-3col > .layout-main{
    flex: 1 1 0;
    min-width: 0;
  }
  .layout-3col > .layout-side{
    flex: 0 0 var(--layout-right);
    width: var(--layout-right) !important;
    float: none !important;
    align-self: flex-start;
  }
}

/* 站点卡片（default 视觉 1:1） */
.widget_avatar{
  background:#fff;
  padding:0 0 10px 0;
  border-radius:8px;
  margin-bottom:15px;
  box-shadow:0 0 10px -2px rgba(158,158,158,0.2);
}
.widget_user{
  position:relative;
  z-index:1;
  height:125px;
  background-repeat:no-repeat;
  background-position:center center;
  margin-bottom:88px;
  background-size:cover;
  border-top-left-radius:20px;
  border-top-right-radius:20px;
  overflow:visible;
}
.widget_user:before{
  content:" ";
  position:absolute;
  width:100%;
  height:100%;
  background:linear-gradient(to bottom,transparent,transparent,#fff);
  z-index:0;
}
.user-bgif{
  position:relative;
  padding-top:50px;
  z-index:1;
}
.widget_user img{
  margin:0 auto;
  display:block;
  width:80px;
  height:80px;
  border-radius:99px;
  padding:5px;
  background:rgba(255,255,255,.88);
}
.widget_user .name{
  padding:0 20px;
  text-align:center;
  margin:5px 0 10px;
}
.widget_user .name h3,
.widget_user .name h2{
  margin:0;
  font-size:16px;
  font-weight:600;
  color:#333;
}
.widget_user .name p{
  margin-top:5px;
  max-height:40px;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  text-overflow:ellipsis;
  overflow:hidden;
  color:#666;
  font-size:12px;
  line-height:1.5;
}
span.autlv{
  font-size:10px;
  color:#fff;
  display:inline-block;
  vertical-align:text-top;
  font-weight:normal;
  border-radius:2px;
  line-height:1.4;
  padding:0 5px;
  letter-spacing:0;
}
.widget_user .name .autlv{
  border-radius:50px;
  margin:0 0 0 3px;
  line-height:17px;
}
span.aut-1.vs-level{
  background-image:linear-gradient(to right, rgba(253,165,34,0.93) 0%, #fd4c4c 100%);
}
.widget_avatar .webinfo{
  width:100%;
  display:flex;
  align-items:center;
  padding-bottom:10px;
  border-bottom:0;
}
.widget_avatar .webinfo .item{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  user-select:none;
  font-size:14px;
  color:#666;
}
.widget_avatar .webinfo .item:nth-child(2){
  border-left:1px solid rgba(150,150,150,0.38);
  border-right:1px solid rgba(150,150,150,0.38);
}
.widget_avatar .webinfo .item .num{
  max-width:70px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:16px;
  color:#333;
  margin-bottom:3px;
}

/* 今日发布：红色高亮 */
.entry-meta time.is-today,
.list-footer time.is-today{
  color:#f54531;
  font-weight:600;
}
.webinfo .item span{
  font-size:.5rem;
  color:var(--bthy-zcs, #98a0ab);
}

/* 最近发表（new） */
.divPrevious{ display:flex; flex-direction:column; gap:.5rem; }
.side_new{ display:flex; gap:.5rem; align-items:flex-start; }
.side_new{ min-width:0; }
.side_new_dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--bthy-ys, #3858f6);
  margin-top:.4rem;
  flex:0 0 auto;
}
.side-new-title a{
  font-size:.62rem;
  color:var(--bthy-z, #111);
  text-decoration:none;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.side-new-time{
  margin-top:.15rem;
  font-size:.5rem;
  color:var(--bthy-zcs, #98a0ab);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.side-new-time .spot{
  display:inline-block;
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--bthy-zcs, #98a0ab);
  margin:0 .35rem;
  vertical-align:middle;
}

/* 随机 / 热门 */
.side_random{ display:grid; gap:.6rem; }
.side_random .r-item-wrap{
  display:flex;
  gap:.6rem;
  align-items:center;
  min-width:0;
}
.side_random .r-thumb{
  flex:0 0 84px;
  height:56px;
  border-radius:.4rem;
  overflow:hidden;
  background:#f2f4f8;
}
.side_random .r-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.side_random .r-title{
  margin:0;
  font-size:.62rem;
  line-height:1.35;
  color:var(--bthy-z, #111);
  min-width:0;
}
.side_random .r-title a{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.side_hot .list-media{
  display:flex;
  gap:.6rem;
  align-items:center;
  margin-bottom:.6rem;
  min-width:0;
}
.side_hot .list-media:last-child{ margin-bottom:0; }
.side_hot .list-content{
  min-width:0;
  flex:1 1 auto;
}
.side_hot .media-content{
  flex:0 0 84px;
  height:56px;
  border-radius:.4rem;
  background-size:cover;
  background-position:center;
  position:relative;
  overflow:hidden;
}
.side_hot .media-content img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.side_hot .list-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.45));
}
.side_hot .list-title{
  display:block;
  font-size:.62rem;
  color:var(--bthy-z, #111);
  line-height:1.35;
  margin-bottom:.15rem;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.side_hot .list-footer{
  margin:0;
  font-size:.5rem;
  color:var(--bthy-zcs, #98a0ab);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* 板块列表页：侧边栏“本周推荐”按 default 版式 */
.mj-bklb .side_random{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:.7rem .9rem;
}
.mj-bklb .side_random .r-item{
  margin:0;
}
.mj-bklb .side_random .r-item-wrap{
  display:block;
}
.mj-bklb .side_random .r-thumb{
  display:block;
  position:relative;
  width:100%;
  height:0;
  padding-top:68%;
  border-radius:.5rem;
  overflow:hidden;
  background:#f2f4f8;
}
.mj-bklb .side_random .r-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.mj-bklb .side_random .r-title{
  margin:.35rem 0 0;
  font-size:.62rem;
  line-height:1.4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  border-bottom:1px solid #e6e9ef;
  padding-bottom:.35rem;
}
.mj-bklb .side_random .r-item:nth-last-child(-n+2) .r-title{
  border-bottom:0;
}

/* 内容页右侧“热门帖子”改为随便看看样式 */
.zz-zl-rd .side_random{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:.7rem .9rem;
}
.zz-zl-rd .side_random .r-item{ margin:0; }
.zz-zl-rd .side_random .r-item-wrap{ display:block; }
.zz-zl-rd .side_random .r-thumb{
  display:block;
  position:relative;
  width:100%;
  height:0;
  padding-top:68%;
  border-radius:.5rem;
  overflow:hidden;
  background:#f2f4f8;
}
.zz-zl-rd .side_random .r-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.zz-zl-rd .side_random .r-title{
  margin:.35rem 0 0;
  font-size:.62rem;
  line-height:1.4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  border-bottom:1px solid #e6e9ef;
  padding-bottom:.35rem;
}
.zz-zl-rd .side_random .r-item:nth-last-child(-n+2) .r-title{
  border-bottom:0;
}

/* 首页右侧栏：本周推荐对齐 default */
body.pg_index .side_random{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:.7rem .9rem;
}
body.pg_index .side_random .r-item-wrap{ display:block; }
body.pg_index .side_random .r-thumb{
  display:block;
  position:relative;
  width:100%;
  height:0;
  padding-top:68%;
  border-radius:.5rem;
  overflow:hidden;
  background:#f2f4f8;
}
body.pg_index .side_random .r-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
body.pg_index .side_random .r-title{
  margin:.35rem 0 0;
  font-size:.62rem;
  line-height:1.4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  border-bottom:1px solid #e6e9ef;
  padding-bottom:.35rem;
}
body.pg_index .side_random .r-item:nth-last-child(-n+2) .r-title{
  border-bottom:0;
}

/* 三列列表（替代瀑布流） */
.gc-list-xx{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:.8rem;
  column-count:unset !important;
  column-gap:0 !important;
}
.gc-list-xx > .bktz-lb-sx{
  width:auto;
  display:block;
  break-inside:initial;
}
@media (max-width: 960px){
  .gc-list-xx{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .gc-list-xx{ grid-template-columns:1fr; }
}

/* Pagination (Discuz-like) */
.pg {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 16px 0;
  float: none !important;
}
.pg a,
.pg strong,
.pg span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e6e6e6;
  color: #333;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  float: none !important;
}
.pg a:hover {
  border-color: var(--ls);
  color: var(--ls);
}
.pg strong {
  background: var(--ls);
  color: #fff;
  border-color: var(--ls);
}
.pg a.prev::before {
  content: "‹";
  margin-right: 6px;
}
.pg a.nxt::after {
  content: "›";
  margin-left: 6px;
}
@media (max-width: 768px) {
  .pg {
    justify-content: center;
    margin: 12px 0;
  }
  .pg a,
  .pg strong,
  .pg span {
    min-width: 26px;
    height: 26px;
    padding: 0 10px;
  }
}

/* 404 */
.page-404{
  width:100%;
  padding:3rem 1.5rem 4rem;
  display:flex;
  align-items:center;
  justify-content:center;
}
.page-404-card{
  position:relative;
  width:100%;
  max-width:560px;
  background:#fff;
  border-radius:1rem;
  padding:2.4rem 2rem 2rem;
  box-shadow:0 12px 40px rgba(17,24,39,.08);
  text-align:center;
  overflow:hidden;
}
.page-404-card:before{
  content:"";
  position:absolute;
  right:-80px;
  top:-80px;
  width:200px;
  height:200px;
  background:radial-gradient(circle at 30% 30%, rgba(30,128,255,.18), rgba(30,128,255,0));
}
.page-404-code{
  font-size:5rem;
  font-weight:800;
  letter-spacing:.2rem;
  color:#1e80ff;
  line-height:1;
}
.page-404-title{
  margin:.6rem 0 0;
  font-size:1.3rem;
  color:#0f172a;
}
.page-404-desc{
  margin:.6rem 0 0;
  font-size:.7rem;
  color:#6b7280;
}
.page-404-actions{
  margin-top:1.2rem;
  display:flex;
  gap:.6rem;
  justify-content:center;
  flex-wrap:wrap;
}
.page-404-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:2.4rem;
  padding:0 1.1rem;
  border-radius:999px;
  text-decoration:none;
  font-size:.65rem;
}
.page-404-btn.primary{
  background:#1e80ff;
  color:#fff;
}
.page-404-btn.ghost{
  background:#f2f4f8;
  color:#111827;
}
.page-404-search{
  margin:1.2rem auto 0;
  display:flex;
  align-items:center;
  border:1px solid #e5e7eb;
  border-radius:999px;
  overflow:hidden;
  max-width:360px;
}
.page-404-search input{
  flex:1;
  height:2.4rem;
  border:0;
  outline:none;
  padding:0 .9rem;
  background:transparent;
}
.page-404-search button{
  width:2.6rem;
  height:2.4rem;
  border:0;
  background:#f1f5ff;
  color:#1e80ff;
  cursor:pointer;
}
@media (max-width: 768px){
  .page-404{ padding:2.2rem 1rem 3rem; }
  .page-404-card{ padding:2rem 1.5rem; border-radius:.9rem; }
  .page-404-code{ font-size:4rem; }
}
