
/* V7.0.8 targeted UI fixes */

/* 后台被前端主题污染：强制后台文字恢复可读 */
body:has(.layout),
body:has(.admin-mobile-bar){
  background:#f3f6fb!important;
  color:#07172b!important;
}
body:has(.layout) .main,
body:has(.layout) .panel,
body:has(.layout) .ops-card,
body:has(.layout) .table-wrap,
body:has(.layout) table,
body:has(.layout) tr,
body:has(.layout) td,
body:has(.layout) th{
  color:#07172b!important;
}
body:has(.layout) td,
body:has(.layout) th{
  opacity:1!important;
}
body:has(.layout) input,
body:has(.layout) select,
body:has(.layout) textarea{
  color:#07172b!important;
  background:#fff!important;
}
body:has(.layout) a{
  color:#1d4ed8!important;
}
body:has(.layout) h1,
body:has(.layout) h2,
body:has(.layout) h3{
  color:#07172b!important;
}

/* 首页 Banner 去掉中间黑色遮挡，只保留底部柔和渐变 */
.app-hero:after{
  height:45%!important;
  top:auto!important;
  bottom:0!important;
  background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,.18),transparent)!important;
}
.app-hero img{
  filter:saturate(1.05) contrast(1.02) brightness(.96)!important;
}

/* 个人中心用户名 + LV 对齐 */
.profile-main{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
}
.profile-main > div:nth-child(2){
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
.profile-name{
  display:inline-flex!important;
  align-items:center!important;
  line-height:1!important;
  margin:0!important;
}
.gold{
  display:inline-flex!important;
  align-items:center!important;
  height:24px!important;
  padding:0 9px!important;
  margin:0!important;
  line-height:1!important;
  transform:translateY(1px)!important;
}

/* 余额文字和金额对齐、提高可读性 */
.wallet-line{
  display:flex!important;
  align-items:baseline!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
}
.wallet-label{
  color:#8fa1aa!important;
  font-size:17px!important;
  font-weight:900!important;
  line-height:1!important;
  flex:0 0 auto!important;
}
.wallet-money{
  color:#ffffff!important;
  font-size:25px!important;
  line-height:1!important;
  font-weight:1000!important;
  letter-spacing:.2px!important;
  flex:1 1 auto!important;
  text-align:left!important;
}
.wallet-actions{
  align-items:center!important;
  flex:0 0 auto!important;
}

/* 功能区删除退出后，4个功能做成2x2更稳 */
.icon-grid{
  grid-template-columns:repeat(2,1fr)!important;
  padding:16px!important;
}
.icon-grid a[href="/logout.php"]{
  display:none!important;
}

/* 安全退出放到语言下面，做成红色/绿色边框列表项 */
.white-list .logout-row{
  color:#20e36b!important;
  font-weight:900!important;
}
.white-list .logout-row b{
  color:#20e36b!important;
}

/* 去除可能残留的白色割裂 */
.channel-row,
.app-section,
.rank-section,
.wallet,
.income-card,
.vip-card,
.invite-card,
.white-list{
  box-shadow:0 10px 24px rgba(0,0,0,.22)!important;
}

/* 兼容不支持 :has 的浏览器：后台页面额外兜底 */
.admin-mobile-bar ~ .layout,
.admin-mobile-bar ~ .layout *{
  color:inherit;
}
