/* ============================================================
   陪聊系统 H5 视觉升级覆盖层 override.css  v2（多陪化）
   目标：选人页 + 我的页面视觉对齐"大橘树洞"（juw4.hbddlfd.cn）风格
   设计语言：白底 + 蓝紫渐变点缀 + 紫色主按钮 + 多彩等级徽章/服务标签
   原理：不改 JS/组件结构，仅追加覆盖样式。
   部署：放在 /wechat/css/ 下，并在 index.html 追加一行 link 引用。
   ============================================================ */

/* 1. 全局背景：不再给 html/body/#app 设置任何背景。
      背景图由 App.vue 注入的 body::before（z-index:-1）承载；
      html/body 一旦设背景（绘制层在负 z-index 之上）会盖住后台背景图。 */

/* ==================== 选人页（/user/select） ==================== */

/* 2. 搜索栏：胶囊白底 + 紫色搜索按钮（多陪式） */
.van-search {
  background: transparent !important;
  padding: .5rem 1rem;
}
.van-search__content {
  background: #fff !important;
  border-radius: 1.6rem !important;
  box-shadow: 0 4px 14px rgba(124, 77, 255, .10) !important;
  border: 1px solid rgba(124, 77, 255, .08);
}
.van-search__action {
  color: #7c4dff !important;
  font-weight: 700;
  font-size: .92rem;
  padding-right: .2rem;
}

/* 3. 打赏流水滚动条：多陪式浅紫圆角白条 */
.information.van-notice-bar {
  background: rgba(255, 255, 255, .85) !important;
  border-radius: 1.4rem !important;
  box-shadow: 0 3px 12px rgba(124, 77, 255, .08) !important;
  color: #8b6bd6 !important;
  margin: .3rem .9rem;
  width: auto;
}
.van-notice-bar__content { color: #8b6bd6 !important; }

/* 4. 人气店员/新人推荐 tab：白底圆角卡片 + 紫色选中态 */
.tabs_warpper {
  background: #fff !important;
  border-radius: 1.1rem !important;
  box-shadow: 0 6px 18px rgba(124, 77, 255, .08) !important;
  margin: .3rem .9rem;
  width: auto;
}
.tabs_warpper .van-tab { color: #8b8ba6; font-weight: 600; }
.tabs_warpper .van-tab--active { color: #7c4dff !important; font-weight: 700; }
.tabs_warpper .van-tabs__line {
  background: linear-gradient(135deg, #9b6cff, #7c4dff) !important;
  border-radius: .3rem;
  height: .28rem;
}

/* 5. 筛选条（全部/性别/等级）：多陪式浅灰细条 + 紫色选中 */
.clerk_tite {
  color: #8b8ba6 !important;
  font-weight: 600;
  margin: .4rem .9rem .15rem;
  width: auto;
  background: #fff;
  border-radius: .9rem;
  padding: .4rem .8rem;
  box-shadow: 0 3px 10px rgba(124, 77, 255, .06);
}
.clerk_tite .van-icon { color: #7c4dff !important; }

/* 6. 店员卡片：背景跟随后台透明度（内联 rgba 生效），不再强制纯白；间距紧凑 */
.clerk_list { margin: 0 .5rem; }
.info_box {
  border-radius: 1.1rem !important;
  box-shadow: 0 6px 18px rgba(124, 77, 255, .09) !important;
  margin: .3rem .3rem !important;
  padding: .42rem .55rem !important;
  transition: transform .15s ease;
}
.info_box:active { transform: scale(.985); }

/* 头像：加精致描边 */
.info_left .van-image {
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(124, 77, 255, .25), 0 4px 12px rgba(124, 77, 255, .18);
  border-radius: 50% !important;
}

/* 在线状态：高亮醒目（在线=紫色渐变白字，一眼可见） */
.work.workState,
.work:not(.workState) {
  background: linear-gradient(135deg, #8a5cf6, #6b3de8) !important;
  color: #ffffff !important;
  font-size: .78rem !important;
  border-radius: .32rem !important;
  padding: .08rem .5rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(138, 92, 246, .5) !important;
}
.work.workState {
  background: linear-gradient(135deg, #8a5cf6, #6b3de8) !important;
}

/* 昵称行：名片复刻版小字 */
.info_right .name {
  font-size: .7rem !important;
  font-weight: 700;
  color: #2b2b40;
}

/* 等级徽章（金牌/普通）：多陪式多彩渐变 */
.grade {
  border-radius: .55rem !important;
  padding: .08rem .5rem !important;
  font-size: .72rem !important;
  font-weight: 700;
}
.grade.sexbg_color1 {
  background: linear-gradient(135deg, #ffb84d, #ff8a3d) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(255, 138, 61, .35);
}

/* 星座：浅紫小圆角 */
.constellation {
  background: rgba(124, 77, 255, .10) !important;
  color: #7c4dff !important;
  border-radius: .55rem !important;
  padding: .08rem .5rem !important;
  font-size: .72rem !important;
  font-weight: 600;
}

/* 服务标签：多陪式彩色小圆角（青/紫/粉轮换） */
.info_right_box.flex5 { gap: .2rem; }
.tag {
  border-radius: .55rem !important;
  padding: .08rem .45rem !important;
  font-size: .7rem !important;
  font-weight: 600;
}
.tag.sex_color1:nth-child(3n+1) {
  background: rgba(0, 191, 166, .12) !important;
  color: #00bfa6 !important;
}
.tag.sex_color1:nth-child(3n+2) {
  background: rgba(124, 77, 255, .12) !important;
  color: #7c4dff !important;
}
.tag.sex_color1:nth-child(3n+3) {
  background: rgba(255, 77, 148, .12) !important;
  color: #ff4d94 !important;
}

/* 试音时长（record）：统一粉紫渐变窄条（头像下方） */
.record {
  border-radius: 1rem !important;
  background: linear-gradient(135deg, #ff7ab8, #a96bff) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: .6rem !important;
  padding: .12rem .3rem;
}

/* 地区：浅灰弱化（多陪式 @城市） */
.location {
  color: #a0a0b5 !important;
  font-size: .76rem !important;
}

/* 收藏按钮：多陪式"喜欢"粉心 */
.collection {
  color: #ff4d94 !important;
  font-weight: 600;
  font-size: .78rem;
}
.collection .my-icon { color: #ff4d94 !important; }

/* ==================== 底部导航（全局） ==================== */

/* 7. 底部导航：白底 + 紫色选中（多陪式） */
.van-tabbar {
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 -4px 18px rgba(124, 77, 255, .08) !important;
}
.van-tabbar-item { color: #a3a3b8; font-weight: 500; }
.van-tabbar-item--active {
  color: #7c4dff !important;
  font-weight: 700;
}
.van-tabbar-item--active .my-icon,
.van-tabbar-item--active .van-icon { color: #7c4dff !important; }

/* 6 项导航适配：缩小字号图标，保证一行放得下 */
.van-tabbar-item { font-size: .68rem; }
.van-tabbar-item .van-icon { font-size: 1.05rem !important; }
.van-tabbar-item--active { font-size: .7rem; }

/* ==================== 我的页（/user/center） ==================== */

/* 8. 头部信息卡：多陪式蓝紫渐变 + 白字 */
.container .info {
  background: linear-gradient(135deg, #7c4dff 0%, #9b6cff 55%, #b56cff 100%) !important;
  border-radius: 1.2rem !important;
  margin: .6rem .9rem;
  width: auto;
  box-shadow: 0 8px 22px rgba(124, 77, 255, .28);
  padding: 1rem 1.1rem !important;
}
.container .info .avater {
  border: 2.5px solid rgba(255, 255, 255, .55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.container .info .nickname {
  color: #fff !important;
  font-size: 1.12rem !important;
  font-weight: 700;
}
.container .info .userId {
  color: rgba(255, 255, 255, .78) !important;
  font-size: .78rem !important;
}

/* 9. 我的订单 / 我的钱包：白底圆角卡片（多陪式分区块） */
.instruct_box {
  background: #fff !important;
  border-radius: 1.1rem !important;
  box-shadow: 0 6px 18px rgba(124, 77, 255, .08) !important;
  margin: .4rem .9rem;
  width: auto;
}
.instruct_box .title {
  color: #7c4dff !important;
  font-weight: 700;
  font-size: .95rem;
}
.instruct_item {
  color: #4a4a60 !important;
  font-weight: 600;
  font-size: .88rem;
}
.instruct_item .my-icon { color: #9b6cff !important; }

/* 10. 轮播/横幅：白卡统一圆角 */
.my-swipe, .my-swipe .van-swipe-item {
  border-radius: 1rem !important;
}


/* ============================================================
   陪聊系统 H5 桌面端（PC）布局补丁  v2
   要点：整站用 rem + 视口宽度动态算根字号（1440 宽时 html 字根 61px），
        所以电脑上直接全屏会整体放大 4 倍。这里把根字号锁回 16px，
        再把内容区收成手机宽度居中，等于"电脑中间放一块手机屏"。
   生效条件：视口宽度 >= 768px；手机 / 微信内完全不受影响。
   ============================================================ */
@media (min-width: 768px) {
  /* 1. 锁死 rem 基准，阻止整页随视口放大 */
  html {
    font-size: 16px !important;
  }

  /* 2. 主容器：手机宽度居中，半透明白底 + 投影，两侧露出店铺背景图 */
  #app {
    width: 100% !important;
    max-width: 440px;
    margin: 0 auto;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 0 70px rgba(50, 30, 110, 0.18);
  }

  /* 3. 底部 tabbar：居中收窄，不再横贯全屏 */
  .van-tabbar {
    left: 50% !important;
    right: auto !important;
    width: 440px !important;
    max-width: 100% !important;
    transform: translateX(-50%);
    display: flex !important;
    background: rgba(255, 255, 255, 0.97) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .van-tabbar-item {
    flex: 1 1 0 !important;
  }

  /* 4. 顶部安全提示条 */
  .gcb_wrap,
  .gmb_wrap {
    left: 50% !important;
    right: auto !important;
    width: 440px;
    max-width: 100%;
    transform: translateX(-50%);
  }

  /* 5. 右侧客服浮标：贴住内容区右边缘，不掉到屏幕最外侧 */
  .safety_tab {
    right: calc(50% - 220px) !important;
  }

  /* 6. 上下滑出的弹层跟随内容宽度 */
  .van-popup--bottom,
  .van-popup--top {
    left: 50% !important;
    width: 440px !important;
    max-width: 100% !important;
    transform: translateX(-50%);
  }

  /* 7. 提交栏 / 操作栏 */
  .van-submit-bar,
  .van-action-bar,
  .van-goods-action {
    left: 50% !important;
    right: auto !important;
    width: 440px;
    max-width: 100%;
    transform: translateX(-50%);
  }

  /* 8. 内容区内部横滚，避免个别元素撑破页面 */
  #app {
    overflow-x: hidden;
  }
}

/* ============================================================
   v3 修复（2026-12-06）：底部导航透明压不住内容
   原因：组件样式 .user_tabbar 用 !important 给了半透明白渐变，
        且加载顺序在 override.css 之后，把 .van-tabbar 的底色盖掉了，
        列表卡片直接透出到导航上，文字叠在一起。
   做法：用 .van-tabbar.user_tabbar 提权成不透明白底 + 贴底满宽；
        标签行裁切加渐隐；列表底部留出导航高度。
   ============================================================ */
.van-tabbar.user_tabbar {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: auto !important;
  max-width: none !important;
  transform: none !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  border-top: 1px solid rgba(124, 77, 255, .10) !important;
  box-shadow: 0 -6px 18px rgba(70, 40, 140, .10) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 768px) {
  .van-tabbar.user_tabbar {
    left: 50% !important;
    right: auto !important;
    width: 440px !important;
    max-width: 100% !important;
    transform: translateX(-50%) !important;
  }
}

/* 服务标签行不再硬切在卡片边上，右侧渐隐 */
.tag_line1, .tag_line2 {
  overflow: hidden !important;
  -webkit-mask-image: linear-gradient(to right, #000 84%, transparent 100%);
  mask-image: linear-gradient(to right, #000 84%, transparent 100%);
}

/* 列表底部留白，最后一张卡能滑上来完整露出 */
.clerk_box, .page_select, .container.page_select {
  padding-bottom: 96px !important;
}

/* PC：#app 上的 backdrop-filter 会生成包含块，把 position:fixed 的导航/弹层
   从"视口"拽到"#app 盒子"上，滚动后导航直接消失。这里改用不透明白底+投影，
   去掉 backdrop-filter，固定定位恢复成贴视口。 */
@media (min-width: 768px) {
  #app {
    background: rgba(255, 255, 255, .96) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
  }
}

/* ============================================================
   v4 修复（2026-12-06）：居中弹层（首单盲盒 / 随机单「点击体验」）在 PC 上没居中、贴着内容区右边
   原因：入口壳的 PC 补丁脚本给这个 fixed 弹层写了内联 width:440px + transform:translateX(-50%)，
        覆盖掉 vant 自带的 translate3d(-50%,-50%,0)：垂直居中被干掉，宽度又正好等于内容区，
        左右不留白，看起来就压在边上。
   做法：居中弹层改成 auto margin 水平居中（不依赖 -50% 计算），translateY 负责垂直居中，
        宽度回到 86%（上限 380px，与手机端观感一致），左右各留出空隙。
   ============================================================ */
.van-popup--center {
  left: 0 !important;
  right: 0 !important;
  top: 50% !important;
  bottom: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 86% !important;
  max-width: none;
  max-height: 86vh;
  overflow-y: auto;
  transform: translateY(-50%) !important;
}

/* PC 内容区里收到 380px，左右各留 30px，观感与手机 86% 一致 */
@media (min-width: 768px) {
  .van-popup--center {
    max-width: 380px !important;
  }
}
