/*
 * 神机妙算 · 第二次布局校正
 * 仅给 922802.com / 922898.com 共用目录使用。
 * 修复：旧红金样式残留把快捷导航强制拉到右侧中间；首页资料行标题未真正居中。
 */

/* 1) 快捷导航：彻底取消旧站“右侧中间竖条”规则，统一为页面底部三项横向导航。 */
html,body{padding-bottom:86px!important;}
.shell{padding-bottom:92px!important;}
.bottom.bottom-right-rail-v20260621,
.bottom-v1057.bottom-right-rail-v20260621{
  position:fixed!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-flow:column!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  left:50%!important;
  right:auto!important;
  top:auto!important;
  bottom:calc(8px + env(safe-area-inset-bottom))!important;
  transform:translateX(-50%)!important;
  width:min(610px,calc(100% - 20px))!important;
  max-width:610px!important;
  min-width:0!important;
  height:58px!important;
  min-height:58px!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
  overflow:hidden!important;
  border:1px solid rgba(222,193,122,.74)!important;
  border-radius:15px 15px 7px 7px!important;
  background:linear-gradient(135deg,#0d3438 0%,#175d58 54%,#104a49 100%)!important;
  box-shadow:0 8px 20px rgba(11,47,48,.28)!important;
  z-index:100000!important;
}
.bottom.bottom-right-rail-v20260621:before,
.bottom-v1057.bottom-right-rail-v20260621:before{display:none!important;content:none!important;}
.bottom-v1057.bottom-right-rail-v20260621 a{
  display:flex!important;
  flex:0 0 auto!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:5px 4px 4px!important;
  overflow:hidden!important;
  color:#eaf2e8!important;
  border:0!important;
  border-right:1px solid rgba(233,220,178,.20)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
}
.bottom-v1057.bottom-right-rail-v20260621 a:last-child{border-right:0!important;}
.bottom-v1057.bottom-right-rail-v20260621 a:before{display:none!important;content:none!important;}
.bottom-v1057.bottom-right-rail-v20260621 b{
  display:block!important;
  margin:0 0 1px!important;
  color:#e8c978!important;
  font-size:18px!important;
  line-height:19px!important;
  text-shadow:none!important;
}
.bottom-v1057.bottom-right-rail-v20260621 span{
  display:block!important;
  width:auto!important;
  max-width:none!important;
  color:inherit!important;
  font-size:11px!important;
  line-height:14px!important;
  letter-spacing:1px!important;
  white-space:nowrap!important;
}
.bottom-v1057.bottom-right-rail-v20260621 a.active{
  color:#fff9e9!important;
  background:linear-gradient(180deg,rgba(232,201,120,.23),rgba(3,31,33,.13))!important;
  box-shadow:inset 0 2px 0 rgba(241,218,156,.42)!important;
  transform:none!important;
}
.bottom-v1057.bottom-right-rail-v20260621 a.active b{color:#fff0b4!important;}
.bottom-v1057.bottom-right-rail-v20260621 a:active{transform:translateY(1px)!important;}

/* 2) 首页资料条：缩短卦签列，标题在可阅读区域内水平、垂直居中，允许最多自然换行。 */
.posts.sjm-home-posts a.post-list-row{
  min-height:64px!important;
  align-items:stretch!important;
}
.posts.sjm-home-posts .post-list-badge-cell{
  flex:0 0 60px!important;
  width:60px!important;
  padding:0 4px!important;
}
.posts.sjm-home-posts .post-list-badge,
.post-list-badge{
  min-width:44px!important;
  max-width:44px!important;
  height:44px!important;
  font-size:11px!important;
}
.posts.sjm-home-posts .post-list-title,
.posts.sjm-home-posts .post-list-title-link{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:64px!important;
  padding:9px 10px!important;
  color:#143c39!important;
  font-size:clamp(13px,3.25vw,16px)!important;
  line-height:1.32!important;
  font-weight:800!important;
  letter-spacing:0!important;
  text-align:center!important;
  white-space:normal!important;
  word-break:break-word!important;
  overflow-wrap:anywhere!important;
}
.posts.sjm-home-posts .post-list-title .tema-title-qishu,
.posts.sjm-home-posts .post-list-title .tema-title-author,
.posts.sjm-home-posts .post-list-title .tema-title-type,
.posts.sjm-home-posts .post-list-title .tema-title-sep,
.posts.sjm-home-posts .post-list-title .tema-title-suffix{font-weight:800!important;}

/* 3) 资料详情标题：进一步收紧字号并锁定居中，避免标题显得横向过长。 */
.view.sjm-view .view-title:not(.front-title-style),
.view.sjm-view .view-title.front-title-style{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:70px!important;
  padding:13px 14px!important;
  font-size:clamp(15px,4vw,19px)!important;
  line-height:1.36!important;
  letter-spacing:.5px!important;
  text-align:center!important;
  white-space:normal!important;
  word-break:break-word!important;
  overflow-wrap:anywhere!important;
  box-sizing:border-box!important;
}
.view.sjm-view .view-title:not(.front-title-style):before{
  margin-bottom:4px!important;
  font-size:8px!important;
  letter-spacing:3px!important;
}

@media(max-width:420px){
  html,body{padding-bottom:78px!important;}
  .shell{padding-bottom:84px!important;}
  .bottom.bottom-right-rail-v20260621,
  .bottom-v1057.bottom-right-rail-v20260621{
    bottom:calc(6px + env(safe-area-inset-bottom))!important;
    width:calc(100% - 14px)!important;
    height:54px!important;
    min-height:54px!important;
    border-radius:13px 13px 6px 6px!important;
  }
  .bottom-v1057.bottom-right-rail-v20260621 b{font-size:17px!important;line-height:17px!important;}
  .bottom-v1057.bottom-right-rail-v20260621 span{font-size:10px!important;line-height:13px!important;}
  .posts.sjm-home-posts a.post-list-row{min-height:60px!important;}
  .posts.sjm-home-posts .post-list-badge-cell{flex-basis:56px!important;width:56px!important;}
  .posts.sjm-home-posts .post-list-badge,.post-list-badge{min-width:40px!important;max-width:40px!important;height:40px!important;font-size:10px!important;}
  .posts.sjm-home-posts .post-list-title,.posts.sjm-home-posts .post-list-title-link{min-height:60px!important;padding:8px 8px!important;font-size:clamp(12px,3.35vw,15px)!important;line-height:1.3!important;}
  .view.sjm-view .view-title:not(.front-title-style),.view.sjm-view .view-title.front-title-style{min-height:66px!important;padding:12px 11px!important;font-size:clamp(14px,3.9vw,18px)!important;}
}
