/*
 * 企讯通 UI-only 视觉覆盖
 * 仅修改样式，不改接口、控制器、模型、数据库、路由或业务交互逻辑。
 */
:root{
  --qxt-blue:#3975C6;
  --qxt-blue-pressed:#2F67B4;
  --qxt-bg:#F2F3F5;
  --qxt-card:#FFFFFF;
  --qxt-text:#1F2329;
  --qxt-sub:#8F959E;
  --qxt-line:#E7E9EC;
}
html,body{background:var(--qxt-bg);font-family:"PingFang SC","Helvetica Neue",Arial,sans-serif;}

/* 顶部标题栏：企业微信蓝色系 */
.wc__headerBar .inner,
.wc__headerBar.fixed .inner{
  background:var(--qxt-blue)!important;
  background-image:none!important;
  box-shadow:0 1px 0 rgba(0,0,0,.08);
}
.wc__headerBar .inner .barTit,
.wc__headerBar .inner .barTitLg,
.wc__headerBar .inner .barTxt,
.wc__headerBar .inner .batBtn{color:#fff!important;}
.wc__headerBar .inner .barTitLg{font-weight:600!important;}
.wc__headerBar .inner .back,
.wc__headerBar .inner .close,
.wc__headerBar .inner .sear,
.wc__headerBar .inner .add,
.wc__headerBar .inner .u-one,
.wc__headerBar .inner .u-qun{filter:brightness(0) invert(1);}
/* 语言按钮保持原旗帜图，不套白色滤镜 */
.wc__headerBar .inner .barIco.lang{filter:none!important;}
.wc__headerBar .inner a:active{background-color:rgba(255,255,255,.12)!important;}

/* 页面背景、列表卡片 */
.wc__scrolling-panel{background:var(--qxt-bg);}
.wc__recordChat-list,
.wc__addrFriend-list{background:var(--qxt-card);}
.wc__material-cell:active{background:#F0F2F5!important;}
.wc__recordChat-list ul li,
.wc__addrFriend-list .row{border-color:var(--qxt-line)!important;}
.wc__recordChat-list .title,
.wc__recordChat-list .title font{color:var(--qxt-text)!important;font-weight:500;}
.wc__recordChat-list .desc{color:var(--qxt-sub)!important;}
.wc__recordChat-list .time{color:#B7BBC2!important;}

/* 底部导航：保留原5页结构和索引，仅把“动态”入口视觉隐藏 */
.wechat__tabBar .bottomfixed{
  background:#fff!important;
  box-shadow:0 -1px 8px rgba(31,35,41,.06);
}
.wechat__tabBar ul li span{color:#8A94A3!important;}
.wechat__tabBar ul li.on span,
.wechat__tabBar ul li.swiper-pagination-bullet-active span{color:var(--qxt-blue)!important;}
.wechat-pagination>li:nth-child(3){display:none!important;}
.wechat__tabBar ul li .ico.i3{
  background:url(../img/tabbar/icon_mail.svg) no-repeat center!important;
  background-size:.48rem!important;
}
.wechat__tabBar ul li.on .ico.i3,
.wechat__tabBar ul li.swiper-pagination-bullet-active .ico.i3{
  background:url(../img/tabbar/icon_mail_HL.svg) no-repeat center!important;
  background-size:.50rem!important;
}

/* 个人中心：仅视觉改造，原点击、路由和数据保持不变 */
.wc__ucenter-list{background:var(--qxt-bg);min-height:100%;padding:0 0 .35rem;}
.wc__ucenter-list ul li{margin-top:.22rem;}
.wc__ucenter-list ul li:first-child{margin-top:.16rem;}
.wc__ucenter-list ul li .item{background:#fff;padding:.26rem .30rem;min-height:1rem;}
.wc__ucenter-list ul li:first-child .item{padding:.38rem .32rem;min-height:1.55rem;}
.wc__ucenter-list ul li:first-child .item .uimg{
  width:1.18rem;height:1.18rem;border-radius:10px;object-fit:cover;margin-right:.28rem;
}
.wc__ucenter-list ul li:first-child .item .txt em{font-size:.35rem;font-weight:600;color:var(--qxt-text);}
.wc__ucenter-list ul li .item .txt{color:var(--qxt-text);}
.wc__ucenter-list ul li .item .txt i,
.wc__ucenter-list ul li .item .lbl{color:var(--qxt-sub);}
.wc__ucenter-list ul li .item:after{background-color:var(--qxt-line)!important;}

/* 个人信息页 */
.wc__ucinfoPanel{background:var(--qxt-bg);min-height:100%;padding-top:.18rem;}
.wc__ucinfo-personal ul{background:#fff;}
.wc__ucinfo-personal .item{min-height:1rem;padding:.20rem .30rem!important;}
.wc__ucinfo-personal .item .lbl{color:var(--qxt-text)!important;}
.wc__ucinfo-personal .item .val{color:var(--qxt-sub)!important;}
.wc__ucinfo-personal .item .uimg{border-radius:9px;object-fit:cover;}

/* 登录/注册：只改外观，不改变原表单字段、提交地址和校验 */
.wc__lgregPanel{padding-top:.45rem;background:var(--qxt-bg);}
.wc__lgregPanel .hdtips{color:var(--qxt-text)!important;font-weight:600;padding-bottom:.32rem!important;}
.wc__lgregPanel .forms{
  background:#fff;margin:0 .28rem!important;border-radius:12px;padding:.08rem .26rem .20rem;
  box-shadow:0 8px 24px rgba(31,35,41,.06);
}
.wc__lgregPanel .forms ul li{border-bottom:1px solid var(--qxt-line);}
.wc__lgregPanel .forms ul li:last-of-type{border-bottom:0;}
.wc__lgregPanel .forms ul li .lbl .iptxt{border-bottom:0!important;color:var(--qxt-text);}
.wc__lgregPanel .forms ul li .lbl em{color:var(--qxt-text)!important;}
.wc__lgregPanel .forms .btns{padding:.65rem .10rem .25rem!important;}
.wc__btn-primary,
.wc__lgregPanel .btn__login{
  background:var(--qxt-blue)!important;border-color:var(--qxt-blue)!important;border-radius:7px!important;
}
.wc__lgregPanel .btn__reg,
#J__btnreg{
  background:#fff!important;color:var(--qxt-blue)!important;border:1px solid #BFD2ED!important;border-radius:7px!important;
}
.wc__btn-primary:active{background:var(--qxt-blue-pressed)!important;}

/* 弹窗与菜单 */
.wrap__topbar-menu ul{border-radius:10px;overflow:hidden;box-shadow:0 10px 30px rgba(31,35,41,.18);}

/* iPhone 刘海与底部安全区适配 */
@supports (padding-top: env(safe-area-inset-top)){
  .wc__headerBar.fixed .inner{padding-top:env(safe-area-inset-top);height:calc(.9rem + env(safe-area-inset-top));}
  .wc__headerBar.fixed{padding-bottom:calc(.9rem + env(safe-area-inset-top));}
}
@supports (padding-bottom: env(safe-area-inset-bottom)){
  .wechat__tabBar .bottomfixed{
    height:calc(1.1rem + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom);
  }
  .wc__swiper-tabBar .swiper-slide{height:calc(100vh - 2rem - env(safe-area-inset-bottom));}
}
