.page-user { min-height: 100vh; padding-bottom: 60px; background: #f5f5f5; }

/* 顶部个人中心标题条（原 H5 H5 顶部 40px 条） */
.user-header { height: 40px; line-height: 40px; text-align: center; background: #1787e7; color: #fff; font-size: 15px; }

.user-header { position: relative; }
.user-lang-wrap { position: absolute; right: 8px; top: 0; height: 40px; display: flex; align-items: center; }

/* 语言选择样式：对齐首页 index.php 的国旗下拉 */
.page-user .lang-switch-wrap {
  position: relative;
  width: 44px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-user .lang-switch {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  font-size: 11px;
  cursor: pointer;
  outline: none;
}
.page-user .lang-icon { width: 24px; height: 18px; }
.page-user .lang-text { display: none; }
.page-user .lang-menu {
  position: absolute;
  left: auto;
  right: 0;
  top: 100%;
  margin-top: 6px;
  width: 68px;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 0 20px 5px rgba(0,0,0,0.3);
  padding: 3px 0;
  display: none;
  z-index: 120;
  max-height: 181px;
  overflow-y: auto;
}
.page-user .lang-menu.lang-menu-open { display: block; }
.page-user .lang-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px 5px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid #DFDDDD;
  text-align: center;
  white-space: nowrap;
}
.page-user .lang-item:last-child { border-bottom: none; }
.page-user .lang-item img { width: 24px; height: 18px; margin-right: 4px; }
.page-user .lang-item:hover { background:#f5f7fa; }
.page-user .lang-label { color:#999; font-size:12px; }
.page-user .lang-item-active { background:#ff7f2a; }
.page-user .lang-item-active .lang-label { color:#fff; }
.page-user .triangle {
  width: 0;
  height: 0;
  border-top: 6px solid rgba(0, 0, 0, 0);
  border-right: 6px solid rgba(0, 0, 0, 0);
  border-bottom: 6px solid #fff;
  border-left: 6px solid rgba(0, 0, 0, 0);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: content-box;
}

/* 顶部蓝色个人信息卡片，对应 H5 的 .boxOne（340rpx / 260rpx / 140rpx） */
.user-card { position: relative; width: 100%; background-color: #1787e7; height: 45.33vw; max-height: 210px; }

.user-card-main { display: flex; align-items: center; justify-content: space-around; width: 100%; height: 34.67vw; max-height: 160px; position: relative; }

.user-avatar-wrap { width: 18.67vw; height: 18.67vw; max-width: 95px; max-height: 95px; border-radius: 50%; overflow: hidden; background: #ffffff; display:flex; align-items:center; justify-content:center; }

.user-avatar { width: 100%; height: 100%; border-radius: 50%; background: #ffffff url('../img/news202312231140344119.jpeg') no-repeat center / cover; }

.user-info { width: 58vw; max-width: 260px; display:flex; flex-wrap:wrap; color:#fff; }
.user-email { width:100%; font-size: 14px; font-weight: 700; }
.user-code { width:100%; margin-top: 4px; font-size: 12px; opacity: 0.9; display:flex; align-items:center; }
.user-code span { margin-right: 8px; }
.user-code-copy { width: 4vw; max-width: 18px; height: auto; display:block; }

.user-card-arrow { width: 12px; height: 22px; }
.user-card-arrow img { width:100%; height:100%; display:block; }

.user-setting-btn { position:absolute; top: 8px; right: 10px; width: 22px; height: 22px; padding:0; margin:0; border:none; background:transparent; }
.user-setting-btn img { width:100%; height:100%; display:block; }

/* 中间白色模块：待入库 / 已入库 / 我的订单，对应 .boxTwo（padding 30rpx、radius 20rpx、translateY(-40%)） */
.user-summary { border-bottom: 1px solid #a79b9b; display:flex; justify-content:space-around; width: 90%; background:#fff; border-radius: 10px; box-sizing:border-box; padding: 1vw 0; font-weight:700; margin: 0 auto; transform: translateY(-40%); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }

.user-summary-item { position:relative; text-align:center; font-size:13px; color:#333; }
.user-summary-icon { width: 44px; height: 44px; margin: 0 auto 4px auto; }
.user-summary-text { font-size: 13px; }

.user-summary-badge { position:absolute; top: -4px; right: -6px; left: auto; transform: none; min-width: 18px; height: 18px; padding:0 4px; border-radius: 999px; background:#ff4d4f; color:#fff; font-size:11px; line-height:18px; text-align:center; box-sizing:border-box; display:none; z-index:2; }

/* 下方功能列表，对应 .boxThree（外层整体 translateY(-60rpx)） */
.user-list { margin-top: 0; padding-bottom: 10px; transform: translateY(-2vw); }

.user-list-item { border-bottom: 1px solid #a79b9b; display:flex; align-items:center; width: 84%; margin: 0 auto 8px auto; background:#fff; border-radius: 7px; box-sizing:border-box; padding: 1.66vw 2vw; position:relative; }

wx-open-launch-weapp {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: none;
}

.weapp-launch-btn {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  outline: none;
  background: transparent;
}

body[data-debug-openweapp="1"] .weapp-launch-btn {
  background: rgba(255, 0, 0, 0.08);
}

.user-list-icon { width: 12vw; height: 12vw; max-width: 46px; max-height: 46px; margin-right: 12px; }

.user-list-main { flex:1; display:flex; flex-wrap:wrap; align-items:center; }
.user-list-title { width:100%; font-size:13px; color:#333; }
.user-list-desc { width:100%; margin-top:2px; font-size:12px; color:#999; line-height:1.4; }

.user-list-arrow { width: 10px; height: 10px; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; transform: rotate(-45deg); }

.user-item-badge { position:absolute; top: 50%; right: 24px; transform: translateY(-50%); min-width: 18px; height: 18px; padding:0 4px; border-radius:999px; background:#ff4d4f; color:#fff; font-size:11px; line-height:18px; text-align:center; box-sizing:border-box; display:none; }

.h5-debug-fab {
  position: fixed;
  right: 12px;
  bottom: 86px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.85);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.h5-debug-panel {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 86px;
  z-index: 10000;
  max-height: 46vh;
  background: rgba(0, 0, 0, 0.85);
  color: #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
  display: none;
}

.h5-debug-panel .h5-debug-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  display:flex;
  justify-content: space-between;
  align-items:center;
}

.h5-debug-panel .h5-debug-body {
  font-size: 12px;
  line-height: 1.45;
  overflow: auto;
  max-height: 38vh;
  white-space: pre-wrap;
  word-break: break-all;
}

.h5-debug-panel .h5-debug-close {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color:#fff;
  font-size: 12px;
}

.h5-debug-panel .h5-debug-copy {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color:#fff;
  font-size: 12px;
  margin-right: 8px;
}

.user-brand { margin-top: 10px; display:flex; justify-content:center; align-items:center; color:#777; font-size:13px; opacity:0.7; }
.user-brand-icon { width:26px; height:26px; margin-right:6px; opacity:0.4; }

/* 底部 tabbar（与首页保持一致） */
.tabbar { position: fixed; left:0; right:0; bottom:0; height: 50px; background:#fff; border-top:1px solid #e5e5e5; display:flex; }
.tab-item { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size: 11px; color:#666; }
.tab-item-active { color:#24afd6; }
.tab-icon { width: 28px; height: 28px; margin-bottom: 2px; }
.tab-disabled { color:#bbb; }

@media (min-width:768px) {
  html, body { background: #f0f2f5; }
  .page-user { max-width: 480px; margin: 18px auto; border:1px solid #eee; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
  .tabbar { left: 50%; right: auto; transform: translateX(-50%); width: 480px; border-left: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5; box-sizing: border-box; }
}
