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

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

/* PC 全站字体偏小：仅在桌面端统一放大一档 */
@media (min-width: 1025px) {
  :root{
    --z-d56:.7rem;
    --z-d60:.75rem;
    --z-d62:.78rem;
    --z-d65:.85rem;
    --z-d68:.88rem;
    --z-d70:.95rem;
    --z-d75:1rem;
    --z-d80:1.05rem;
    --z-d85:1.1rem;
  }
  body { font-size: 15px; }
}

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

/* 文字列表提示：瀑布流状态时显示在文字列表按钮上方 */
.list-tz{ font-weight:600; position:relative; }
.list-tz[data-view="text"]::before{
  content:"卡顿?切换文字列表";
  position:absolute;
  left:50%;
  top:-0.6rem;
  transform:translate(-50%,-100%);
  font-size:.48rem;
  line-height:1.2;
  color:#0f172a;
  background:#fff7d6;
  border:1px solid #f2d185;
  padding:.2rem .5rem;
  border-radius:.5rem;
  white-space:nowrap;
  opacity:1;
  pointer-events:none;
  box-shadow:0 4px 10px rgba(0,0,0,.06);
}
.list-tz[data-view="text"].act::before{ display:none; }
@media (max-width: 768px){
  .list-tz[data-view="text"]::before{
    font-size:.5rem;
    padding:.22rem .5rem;
  }
}

/* 顶部搜索与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); }

/* 瀑布流容器：每个帖子保留首图，按图片真实比例排列。 */
.gc-list-xx { display: block; column-count: 5; column-gap: .75rem; }
.gc-list-xx > .bktz-lb-sx { display: inline-block; width: 100%; break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 .75rem; }
.gc-list-xx > .bktz-lb-sx { content-visibility: auto; contain-intrinsic-size: 260px 360px; }
.bktz-lb-xx.pbl-5 { column-count: 5 !important; }
@media (max-width: 1280px) {
  .gc-list-xx { column-count: 4; }
}
@media (max-width: 1024px) {
  .gc-list-xx { column-count: 3; column-gap: .55rem; }
}
@media (max-width: 768px) {
  .gc-list-xx { column-count: 2; column-gap: .45rem; }
  .bktz-lb-xx.pbl-m-2 { column-count: 2 !important; }
}

/* 瀑布流卡片图片自适应 */
.gc-list-xx .nrdy-imgs { display: block; min-height: 8rem; overflow: hidden; background: #eef1f6; }
.gc-list-xx .nrdy-imgs li { display: block; height: auto; }
.gc-list-xx .nrdy-imgs li:nth-child(n+2) { display: none !important; }
.gc-list-xx .imgs-tpsc { height: auto; }
.gc-list-xx .entry-summary,
.gc-list-xx .tupiansa { display: block; width: 100%; height: auto; }
.gc-list-xx .threadlist-img { width: 100%; height: auto; object-fit: cover; }

/* 卡片基础与信息遮罩 */
.bktz-lb-xx .mj_forumlist_pics { position: relative; overflow: hidden; display: block; }
.bktz-lb-xx .mj_forumlist_pics img { position: relative; z-index: 1; max-width: 100%; height: auto; display: block; }
.bktz-lb-xx .zw-tx-zl,
.gc-list-xx .zw-tx-zl { position: absolute; height: auto !important; line-height: normal !important; min-height: 1.5rem; display: block !important; opacity: 1 !important; overflow: visible !important; z-index: 2; left: 0% !important; right: 0% !important; bottom: 0 !important; top: auto !important; margin-top: 0 !important; padding: .4rem 0; }
.bktz-lb-xx .zw-tx-zl .tx-zl-bt,
.bktz-lb-xx .zw-tx-zl .tx-zl-sj,
.gc-list-xx .zw-tx-zl .tx-zl-bt,
.gc-list-xx .zw-tx-zl .tx-zl-sj { display: block; line-height: 1.3; padding: 0 4px;}
.bktz-lb-xx .zw-tx-zl .tx-zl-bt em,
.gc-list-xx .zw-tx-zl .tx-zl-bt em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal !important; overflow: hidden; font-size: .55rem; line-height: 1.25; }
.bktz-lb-xx .zw-tx-zl .tx-zl-sj,
.gc-list-xx .zw-tx-zl .tx-zl-sj { display: flex; align-items: center; justify-content: space-between; gap: .3rem; height: auto !important; line-height: 1.2; }
.bktz-lb-xx .zw-tx-zl .zl-hf-ck,
.gc-list-xx .zw-tx-zl .zl-hf-ck { flex: 0 0 auto; }

.gc-list-xx.is-text { display: block; column-count: 1; column-gap: 0; }
.gc-list-xx.is-text > .bktz-lb-sx { margin-bottom: .6rem; }
/* 瀑布流：仅显示第一张 */
.gc-list-xx:not(.is-text) .tupiansa img{display:none !important;}
.gc-list-xx:not(.is-text) .tupiansa img:first-child{display:block !important;}

/* 文字列表：纯文本样式（不显示图片/头像） */
.gc-list-xx.is-text .nrdy-imgs,
.gc-list-xx.is-text .entry-summary,
.gc-list-xx.is-text .tupiansa,
.gc-list-xx.is-text .threadlist-img {
  display: none !important;
}
.gc-list-xx.is-text .forumava {
  display: none !important;
}
.gc-list-xx.is-text .mj_forumlist_pics {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1rem;
  border-radius: .6rem;
  background: #fff;
  border: 1px solid #edf0f5;
}
.gc-list-xx.is-text .zw-tx-zl {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  padding: 0 !important;
  background: none !important;
  width: 100% !important;
}
.gc-list-xx.is-text .zw-tx-zl .tx-zl-bt em {
  font-size: .7rem;
  line-height: 1.4;
  color: #111 !important;
}
.gc-list-xx.is-text .zw-tx-zl .tx-zl-sj {
  margin-top: .3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  font-size: .55rem;
  color: #222 !important;
}
.gc-list-xx.is-text .zw-tx-zl .tx-zl-sj,
.gc-list-xx.is-text .zw-tx-zl .tx-zl-sj * {
  color: #111 !important;
}

@media (max-width: 768px) {
  .gc-list-xx.is-text .mj_forumlist_pics {
    padding: .6rem .7rem;
    border-radius: .5rem;
  }
  .gc-list-xx.is-text .zw-tx-zl .tx-zl-bt em { font-size: .65rem; }
  .gc-list-xx.is-text .zw-tx-zl .tx-zl-sj { font-size: .5rem; gap: .4rem; }
}

@media (min-width: 769px) {

  .gc-list-xx .nrdy-imgs{min-height: 0rem;}
  .gc-list-xx.is-text .tupiansa{height: 100px;width: 30%;}
  .gc-list-xx > .bktz-lb-sx { margin-bottom: .4rem; }
  .gc-list-xx.is-text .tupiansa img{ max-height:120px; object-fit:cover; }

}

.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;
  }
}

/* 统一分页样式 */
.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 作者卡片更贴近 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.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* 滚动加载提示 */
.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;
}

/* 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;
  }
}

/* APK reference pass: compact topbar, fixed sidebar and steady card grid. */
@media (min-width: 1025px) {
  #nv_portal .mj-sq-dh,
  #nv_forum .mj-sq-dh {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 18px !important;
    width: calc(100% - 36px) !important;
    gap: 14px !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
  }
  #nv_portal .mj-sq-dh .ju-logo,
  #nv_forum .mj-sq-dh .ju-logo {
    width: 205px !important;
    height: 46px !important;
    line-height: 46px !important;
    gap: 9px;
  }
  #nv_portal .ju-logo .lg-img,
  #nv_forum .ju-logo .lg-img {
    max-width: 148px;
    margin-left: 0;
    font-size: 18px !important;
    font-weight: 800;
  }
  #nv_portal .dhkj-so,
  #nv_forum .dhkj-so {
    flex: 0 1 340px;
    max-width: 340px;
    height: 30px !important;
    margin-left: 0;
    padding: 0 12px;
    box-sizing: border-box;
  }
  #nv_portal .dhkj-so form,
  #nv_forum .dhkj-so form {
    display: flex;
    align-items: center;
    height: 30px;
  }
  #nv_portal .dhkj-so input,
  #nv_forum .dhkj-so input {
    height: 30px !important;
    line-height: 30px !important;
    font-size: 13px;
  }
  #nv_portal .denglu-zhuce a,
  #nv_forum .denglu-zhuce a {
    min-width: 48px;
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
  }
  #nv_portal .ju-dh,
  #nv_forum .ju-dh {
    top: 46px !important;
    width: 188px !important;
    max-width: 188px !important;
    padding-top: 10px !important;
    box-shadow: 1px 0 0 rgba(15, 23, 42, .06);
  }
  #nv_portal .sidebar .nav-dh-kz,
  #nv_forum .sidebar .nav-dh-kz {
    margin: 0 12px !important;
    height: calc(100vh - 66px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #nv_portal .sidebar .kz-cd-bt,
  #nv_forum .sidebar .kz-cd-bt {
    margin: 8px 6px 10px !important;
    padding: 0 6px !important;
    color: #9aa3b2;
    font-size: 12px;
    font-weight: 700;
  }
  #nv_portal .sidebar .qkdh,
  #nv_forum .sidebar .qkdh {
    height: 38px !important;
    margin: 4px 0;
  }
  #nv_portal .sidebar .dh-cdbt,
  #nv_forum .sidebar .dh-cdbt {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px !important;
    line-height: 36px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
  }
  #nv_portal .sidebar li.a .dh-cdbt,
  #nv_forum .sidebar li.a .dh-cdbt,
  #nv_portal .sidebar .dh-cdbt:hover,
  #nv_forum .sidebar .dh-cdbt:hover {
    background: #eef4ff !important;
  }
  #nv_portal .mj-you,
  #nv_forum .mj-you {
    width: calc(100% - 206px) !important;
    margin-left: 188px !important;
    padding: 58px 18px 26px !important;
  }
}

@media (max-width: 1024px) {
  #nv_portal .mj-sq-dh,
  #nv_forum .mj-sq-dh {
    height: 44px !important;
    min-height: 44px !important;
    width: calc(100% - 24px) !important;
    padding: 0 12px !important;
    gap: 8px !important;
    box-sizing: border-box;
  }
  #nv_portal .mj-sq-dh .ju-logo,
  #nv_forum .mj-sq-dh .ju-logo {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 96px;
    height: 44px !important;
    line-height: 44px !important;
    gap: 7px;
  }
  #nv_portal .ju-logo .lg-img,
  #nv_forum .ju-logo .lg-img {
    max-width: 82px;
    margin-left: 0;
    font-size: 14px !important;
    font-weight: 800;
  }
  #nv_portal .dhkj-so,
  #nv_forum .dhkj-so {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    height: 28px !important;
    margin: 0;
    padding: 0 10px;
    box-sizing: border-box;
  }
  #nv_portal .dhkj-so form,
  #nv_forum .dhkj-so form {
    display: flex;
    align-items: center;
    height: 28px;
  }
  #nv_portal .dhkj-so input,
  #nv_forum .dhkj-so input {
    height: 28px !important;
    line-height: 28px !important;
    font-size: 13px;
  }
  #nv_portal .denglu-zhuce,
  #nv_forum .denglu-zhuce {
    flex: 0 0 auto;
    gap: 4px;
  }
  #nv_portal .denglu-zhuce a,
  #nv_forum .denglu-zhuce a {
    min-width: 38px;
    height: 28px;
    line-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 13px;
  }
  #nv_portal .sidebar,
  #nv_forum .sidebar {
    top: 0 !important;
    left: 0 !important;
    width: 260px !important;
    max-width: 86vw !important;
    height: 100dvh !important;
    padding-top: 54px !important;
    transform: translateX(-105%) !important;
    opacity: 1 !important;
    z-index: 1000 !important;
    box-shadow: 12px 0 28px rgba(15, 23, 42, .16);
    transition: transform .22s ease !important;
    box-sizing: border-box;
  }
  #nv_portal .sidebar.show-sidebar,
  #nv_forum .sidebar.show-sidebar {
    transform: translateX(0) !important;
  }
  #nv_portal .sidebar .nav-dh-kz,
  #nv_forum .sidebar .nav-dh-kz {
    max-height: calc(100dvh - 64px) !important;
    height: calc(100dvh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 12px !important;
  }
  .overlay.show-overlay,
  .overlay:not(.d-no) {
    display: block !important;
    opacity: .48 !important;
    z-index: 990 !important;
  }
  #nv_portal .mj-you,
  #nv_forum .mj-you {
    padding-top: 54px !important;
  }
  .ju-top {
    gap: 10px;
  }
  .top-mh-hdp {
    height: 4.8rem !important;
    background: linear-gradient(135deg, #eef4ff, #f7f9fc);
  }
  img.lazyload {
    transform: none;
  }
}

@media (max-width: 520px) {
  #nv_portal .mj-sq-dh .ju-logo,
  #nv_forum .mj-sq-dh .ju-logo {
    min-width: 86px;
  }
  #nv_portal .ju-logo .lg-img,
  #nv_forum .ju-logo .lg-img {
    max-width: 70px;
  }
  #nv_portal .denglu-zhuce .dlzc-zc,
  #nv_forum .denglu-zhuce .dlzc-zc {
    display: none !important;
  }
  .gc-list-bt {
    align-items: flex-start;
    gap: 8px;
  }
  .gc-xuan,
  .gc-list-bt .gc-xuan {
    width: 100% !important;
  }
  .xuan-xin {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .xuan-xin a {
    flex: 0 0 auto;
  }
}

/* Final APK-style layout pass: keep list pages light, readable, and stable. */
#nv_portal .mj-sq-dh,
#nv_forum .mj-sq-dh {
  position: fixed !important;
  background: rgba(255, 255, 255, .96) !important;
  border-bottom: 1px solid #e8edf5;
  box-shadow: 0 1px 10px rgba(15, 23, 42, .05);
  backdrop-filter: saturate(140%) blur(10px);
}

#nv_portal .sidebar,
#nv_forum .sidebar {
  position: fixed !important;
  background: #fff !important;
}

#nv_portal .sidebar .nav-dh,
#nv_forum .sidebar .nav-dh {
  display: block !important;
}

#nv_portal .sidebar .qkdh a,
#nv_forum .sidebar .qkdh a {
  display: block !important;
  color: #344054 !important;
}

#nv_portal .sidebar .dh-cdbt,
#nv_forum .sidebar .dh-cdbt {
  min-width: 0;
}

#nv_portal .sidebar .dh-cdbt i,
#nv_forum .sidebar .dh-cdbt i {
  flex: 0 0 18px;
  width: 18px !important;
  text-align: center;
  color: #667085 !important;
}

#nv_portal .sidebar .dh-cdbt span,
#nv_forum .sidebar .dh-cdbt span {
  display: block !important;
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  height: 36px !important;
  line-height: 36px !important;
  color: #344054 !important;
  font-size: 14px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#nv_portal .sidebar li.a .dh-cdbt span,
#nv_forum .sidebar li.a .dh-cdbt span,
#nv_portal .sidebar li.a .dh-cdbt i,
#nv_forum .sidebar li.a .dh-cdbt i {
  color: #2f6bff !important;
  font-weight: 700;
}

.gc-list-xx {
  grid-auto-flow: row dense;
}

.gc-list-xx .bktz-lb-sx {
  min-width: 0;
}

.gc-list-xx .mj_forumlist_pics {
  isolation: isolate;
}

.gc-list-xx .nrdy-imgs li:nth-child(n+2),
.gc-list-xx .tupiansa img:nth-child(n+2),
.gc-list-xx .nrdy-imgs img:nth-of-type(n+2) {
  display: none !important;
}

.gc-list-xx .threadlist-img {
  background: #edf1f7;
}

@media (max-width: 1024px) {
  #nv_portal .sidebar,
  #nv_forum .sidebar {
    overflow: hidden !important;
  }

  #nv_portal .sidebar .nav-dh-kz,
  #nv_forum .sidebar .nav-dh-kz {
    padding-bottom: 22px;
  }

  #nv_portal .dk-cebian,
  #nv_forum .dk-cebian {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  #nv_portal .gc-list-xx,
  #nv_forum .gc-list-xx {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

/* APK reference alignment: desktop shell, drawer, and real waterfall mode. */
@media (min-width: 1025px) {
  #nv_portal .mj-sq-dh,
  #nv_forum .mj-sq-dh {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 70px !important;
    min-height: 70px !important;
    padding: 0 22px !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    z-index: 1100 !important;
    box-sizing: border-box;
  }

  #nv_portal .mj-sq-dh .ju-logo,
  #nv_forum .mj-sq-dh .ju-logo {
    width: 240px !important;
    min-width: 240px !important;
    height: 70px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
  }

  #nv_portal #pc-dh,
  #nv_forum #pc-dh {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f2f5fa !important;
    color: #344054 !important;
  }

  #nv_portal .dk-cebian,
  #nv_forum .dk-cebian {
    display: none !important;
  }

  #nv_portal .ju-logo .lg-img,
  #nv_forum .ju-logo .lg-img {
    width: auto !important;
    min-width: 118px !important;
    max-width: 178px !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 14px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    color: #1f2937 !important;
    background: #fff !important;
    border: 1px solid #e6ebf2 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .05) !important;
  }

  #nv_portal .dhkj-so,
  #nv_forum .dhkj-so {
    width: 300px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    margin: 0 0 0 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    background: #f5f7fb !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
  }

  #nv_portal .dhkj-so form,
  #nv_forum .dhkj-so form {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  #nv_portal .dhkj-so input,
  #nv_forum .dhkj-so input {
    flex: 1 1 auto !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 14px !important;
  }

  #nv_portal .dhkj-so button,
  #nv_forum .dhkj-so button {
    width: 34px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #nv_portal .denglu-zhuce,
  #nv_forum .denglu-zhuce {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  #nv_portal .denglu-zhuce a,
  #nv_forum .denglu-zhuce a {
    min-width: 72px !important;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-sizing: border-box;
  }

  #nv_portal .denglu-zhuce .dlzc-zc,
  #nv_forum .denglu-zhuce .dlzc-zc {
    background: #2f6bff !important;
    border-color: #2f6bff !important;
    color: #fff !important;
  }

  #nv_portal .sidebar,
  #nv_forum .sidebar {
    top: 70px !important;
    left: 0 !important;
    width: 240px !important;
    min-width: 240px !important;
    height: calc(100dvh - 70px) !important;
    padding: 12px 0 22px !important;
    border-right: 1px solid #e8edf5 !important;
    box-shadow: none !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    box-sizing: border-box;
  }

  #nv_portal .sidebar .nav-dh-kz,
  #nv_forum .sidebar .nav-dh-kz {
    height: auto !important;
    max-height: none !important;
    margin: 0 18px !important;
    overflow: visible !important;
  }

  #nv_portal .sidebar .kz-cd-bt,
  #nv_forum .sidebar .kz-cd-bt {
    height: 32px !important;
    line-height: 32px !important;
    margin: 4px 0 10px !important;
    padding: 0 10px !important;
    color: #98a2b3 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  #nv_portal .sidebar .qkdh,
  #nv_forum .sidebar .qkdh {
    height: 44px !important;
    margin-bottom: 4px !important;
    border-radius: 10px !important;
  }

  #nv_portal .sidebar .qkdh a,
  #nv_forum .sidebar .qkdh a,
  #nv_portal .sidebar .dh-cdbt,
  #nv_forum .sidebar .dh-cdbt {
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    box-sizing: border-box;
  }

  #nv_portal .sidebar li.a .dh-cdbt,
  #nv_forum .sidebar li.a .dh-cdbt,
  #nv_portal .sidebar .qkdh:hover .dh-cdbt,
  #nv_forum .sidebar .qkdh:hover .dh-cdbt {
    background: #eef4ff !important;
  }

  #nv_portal .mj-you,
  #nv_forum .mj-you {
    width: calc(100% - 240px) !important;
    margin-left: 240px !important;
    padding: 86px 52px 36px !important;
    box-sizing: border-box;
  }

  #nv_portal .mj-you > .wp,
  #nv_forum .mj-you > .wp {
    max-width: 1220px !important;
    margin: 0 auto !important;
  }

  #nv_portal .ju-top,
  #nv_forum .ju-top {
    display: flex !important;
    align-items: stretch !important;
    gap: 28px !important;
    margin-bottom: 18px !important;
  }

  #nv_portal .ju-top-lt,
  #nv_forum .ju-top-lt {
    flex: 0 0 36% !important;
    width: 36% !important;
  }

  #nv_portal .ju-top-yt,
  #nv_forum .ju-top-yt {
    flex: 1 1 auto !important;
    width: auto !important;
  }

  #nv_portal .top-mh-hdp,
  #nv_forum .top-mh-hdp {
    height: 132px !important;
    border-radius: 12px !important;
  }

  #nv_portal .gc-list-xx,
  #nv_forum .gc-list-xx {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
    column-count: auto !important;
    column-gap: normal !important;
    align-items: start !important;
  }

  #nv_portal .gc-list-xx.is-waterfall,
  #nv_forum .gc-list-xx.is-waterfall {
    display: block !important;
    column-count: 5 !important;
    column-gap: 12px !important;
  }

  #nv_portal .gc-list-xx.is-waterfall > .bktz-lb-sx,
  #nv_forum .gc-list-xx.is-waterfall > .bktz-lb-sx {
    display: inline-block !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
  }

  #nv_portal .gc-list-xx.is-text,
  #nv_forum .gc-list-xx.is-text {
    display: block !important;
    column-count: 1 !important;
    column-gap: 0 !important;
  }

  #nv_portal .gc-list-xx .nrdy-imgs,
  #nv_forum .gc-list-xx .nrdy-imgs {
    height: clamp(150px, 12vw, 185px) !important;
  }
}

@media (max-width: 1024px) {
  #nv_portal .mj-sq-dh,
  #nv_forum .mj-sq-dh {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    z-index: 1100 !important;
    box-sizing: border-box;
  }

  #nv_portal .mj-sq-dh .ju-logo,
  #nv_forum .mj-sq-dh .ju-logo {
    height: 52px !important;
    min-width: 118px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  #nv_portal .dk-cebian,
  #nv_forum .dk-cebian {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #f2f5fa !important;
  }

  #nv_portal .ju-logo .lg-img,
  #nv_forum .ju-logo .lg-img {
    max-width: 108px !important;
    height: 32px !important;
    line-height: 32px !important;
    padding: 0 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  #nv_portal .dhkj-so,
  #nv_forum .dhkj-so {
    flex: 1 1 auto !important;
    width: auto !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    margin: 0 !important;
  }

  #nv_portal .denglu-zhuce,
  #nv_forum .denglu-zhuce {
    display: inline-flex !important;
    gap: 6px !important;
  }

  #nv_portal .denglu-zhuce a,
  #nv_forum .denglu-zhuce a {
    height: 32px !important;
    line-height: 32px !important;
    min-width: 48px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
  }

  #nv_portal .sidebar,
  #nv_forum .sidebar {
    top: 0 !important;
    left: 0 !important;
    width: min(78vw, 280px) !important;
    min-width: 0 !important;
    height: 100dvh !important;
    padding: 64px 0 26px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 1200 !important;
  }

  #nv_portal .sidebar .nav-dh-kz,
  #nv_forum .sidebar .nav-dh-kz {
    height: auto !important;
    max-height: none !important;
    margin: 0 14px !important;
    overflow: visible !important;
  }

  #nv_portal .mj-you,
  #nv_forum .mj-you {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 62px 10px 78px !important;
    box-sizing: border-box;
  }

  #nv_portal .gc-list-xx,
  #nv_forum .gc-list-xx,
  #nv_portal .gc-list-xx.is-waterfall,
  #nv_forum .gc-list-xx.is-waterfall {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    column-count: auto !important;
    column-gap: normal !important;
  }

  #nv_portal .gc-list-xx .nrdy-imgs,
  #nv_forum .gc-list-xx .nrdy-imgs {
    height: min(47vw, 178px) !important;
  }

  #nv_portal .gc-list-xx > .bktz-lb-sx,
  #nv_forum .gc-list-xx > .bktz-lb-sx {
    margin: 0 !important;
  }
}
