/* ===========================================================
   我的 · 浅蓝紫风格（参照物：个人中心页）
   结构：渐变头（头像/昵称/设置）+ 会员卡 + 4 项统计 + 省钱卡
         + 最近在玩 / 已预约 + 常用功能 + 联系我们 + 浮动新人福利
   作用域：.pme
   =========================================================== */
.pme {
  --pm-ink: #1a1d24;
  --pm-ink-2: #8a92a6;
  --pm-ink-3: #aab2c2;
  --pm-green: #2fd08e;
  --pm-green-2: #a4e45c;
  --pm-blue: #5a6b8c;
  --pm-line: rgba(26, 29, 36, 0.06);

  margin: -10px 0 0;
  padding: 0 0 calc(var(--nav-h) + var(--safe-b) + 18px);
  /* 内容不足一屏时也要铺满，否则下半截会露出页面底色 */
  min-height: 100vh;
  color: var(--pm-ink);
  /* 顶部浅灰渐变：上深下浅，到 72% 左右收成纯白 */
  background:
    linear-gradient(180deg,
      #dfe2e6 0%,
      #e5e8ec 12%,
      #eaedf0 24%,
      #eff1f3 36%,
      #f4f5f7 48%,
      #f8f9fa 58%,
      #fcfcfd 66%,
      #ffffff 74%),
    #ffffff;
  background-repeat: no-repeat;
  background-size: 100% 600px, 100% 100%;
}

/* ---------------- 头部 ---------------- */
.pme .pm-top { padding: 18px 12px 0; }
.pme .pm-user { display: flex; align-items: flex-start; gap: 13px; }
.pme .pm-ava {
  width: 76px; height: 76px; flex: 0 0 76px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  box-shadow: 0 6px 18px rgba(34, 192, 126, 0.28);
}
.pme .pm-ava svg { width: 100%; height: 100%; display: block; }
.pme .pm-who { flex: 1; min-width: 0; padding-top: 4px; }
.pme .pm-namerow { display: flex; align-items: center; gap: 7px; }
.pme .pm-namerow b {
  font-size: 24px; font-weight: 900; letter-spacing: 0.3px;
  max-width: 195px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pme .pm-real {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px;
  font-size: 11.5px; color: var(--pm-ink-2);
  border: 1px solid rgba(26, 29, 36, 0.14);
  border-radius: 999px;
}
.pme .pm-namerow .pm-arr { font-size: 20px; color: var(--pm-ink-3); font-weight: 300; }
.pme .pm-acct {
  display: flex; align-items: center; gap: 5px;
  margin-top: 9px;
  font-size: 13px; color: var(--pm-ink-2);
}
.pme .pm-copy { font-style: normal; font-size: 13px; opacity: 0.7; }
.pme .pm-set {
  flex: 0 0 auto; margin-top: 6px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: none; border: none; cursor: pointer;
  color: var(--pm-ink); font-size: 22px; line-height: 1;
}

/* 会员卡 —— 浅色黑金：奶油金底 + 近黑字 + 金属金点缀 */
.pme .pm-vip {
  position: relative; overflow: hidden;
  margin-top: 16px;
  padding: 14px 15px 13px;
  border-radius: 18px;
  background:
    linear-gradient(118deg, #fdfaf3 0%, #f8f1e2 44%, #fbf6ea 100%);
  border: 1px solid rgba(178, 142, 72, 0.3);
  box-shadow:
    0 6px 18px -10px rgba(140, 104, 36, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
/* 斜向金色流光 */
.pme .pm-vip::before {
  content: "";
  position: absolute; left: -12%; right: -12%; top: -60%; bottom: -60%;
  background: linear-gradient(104deg,
    transparent 40%,
    rgba(214, 178, 102, 0.16) 47%,
    rgba(255, 252, 240, 0.7) 51%,
    rgba(214, 178, 102, 0.14) 55%,
    transparent 62%);
  transform: rotate(3deg);
  pointer-events: none;
}
/* 右上角金色圆环装饰 */
.pme .pm-vip::after {
  content: "";
  position: absolute; right: -30px; top: -36px;
  width: 134px; height: 134px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff6de 0%, #efd8a8 52%, #d9bd83 100%);
  box-shadow: inset 0 0 0 1px rgba(168, 132, 62, 0.35);
  opacity: 0.7;
}
.pme .pm-viprow { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; }
.pme .pm-viprow b {
  font-size: 18px; font-weight: 900; color: #1b1712;
  letter-spacing: 0.2px;
}
.pme .pm-vipbadge {
  padding: 2px 9px;
  font-size: 11.5px; font-weight: 700; color: #6d5220;
  background: linear-gradient(180deg, #f7ebcb, #eddcb2);
  border: 1px solid rgba(178, 142, 72, 0.38);
  border-radius: 999px;
}
.pme .pm-vipcenter {
  margin-left: auto;
  position: relative; z-index: 1;
  font-size: 14.5px; font-weight: 800;
  color: #1b1712;
  display: inline-flex; align-items: center; gap: 3px;
}
/* 金色小箭头 */
.pme .pm-vipcenter::after {
  content: "";
  width: 5px; height: 5px;
  border-top: 1.6px solid #b28e48;
  border-right: 1.6px solid #b28e48;
  transform: rotate(45deg) translateY(-1px);
}
.pme .pm-grow {
  position: relative; z-index: 1;
  margin-top: 16px;
  font-size: 13px; color: #8a7550;
}

/* ---------------- 4 项统计 ---------------- */
.pme .pm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 22px 8px 6px;
}
.pme .pm-stat { position: relative; text-align: center; }
.pme .pm-stat b { display: block; font-size: 27px; font-weight: 900; line-height: 1.1; }
.pme .pm-stat span { display: block; margin-top: 6px; font-size: 13.5px; color: #4b5160; }
/* 小气泡提示 */
.pme .pm-tip {
  position: absolute; left: 50%; top: -20px; transform: translateX(-50%);
  padding: 3px 9px;
  font-size: 11px; font-weight: 700; font-style: normal; color: #fff;
  background: #ff7b7b; border-radius: 999px;
  white-space: nowrap;
}
.pme .pm-tip::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid #ff7b7b;
}

/* ---------------- 省钱卡 ---------------- */
.pme .pm-green {
  display: flex; align-items: center; gap: 12px;
  margin: 6px 12px 0;
  padding: 20px 18px;
  border-radius: 20px;
  background: linear-gradient(102deg, #2ecf8b 0%, #56d97e 46%, #a4e45c 100%);
  box-shadow: 0 8px 22px rgba(46, 207, 139, 0.26);
}
.pme .pm-green .l { flex: 1; min-width: 0; }
.pme .pm-green .l b {
  display: block; font-size: 27px; font-weight: 900; color: #fff; letter-spacing: 1px;
}
.pme .pm-green .l span { display: block; margin-top: 7px; font-size: 13.5px; color: rgba(255, 255, 255, 0.92); }
.pme .pm-gbtn {
  flex: 0 0 auto;
  padding: 10px 20px;
  font-size: 14.5px; font-weight: 800; color: #17a86c;
  background: #fff; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(15, 120, 75, 0.18);
}

/* ---------------- 通用白卡块 ---------------- */
.pme .pm-block {
  margin: 12px 12px 0;
  padding: 16px 14px 6px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--pm-line);
  box-shadow: 0 3px 12px rgba(26, 29, 36, 0.035);
}
.pme .pm-block h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 900; }
.pme .pm-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pme .pm-grid.two { grid-template-columns: repeat(2, 1fr); }
.pme .pm-fn {
  position: relative;
  padding: 14px 2px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  background: none; border: none; font: inherit; cursor: pointer; color: var(--pm-ink);
  text-decoration: none;
}
.pme .pm-fn svg { width: 38px; height: 38px; display: block; }
/* 文字底层的荧光笔效果（下半段）：z-index:0 建层叠上下文，
   否则 ::before 的 -1 会掉到卡片白底后面看不见 */
.pme .pm-fn .lb { font-size: 13px; font-weight: 600; }
/* 荧光笔只给「常用功能」用（.pm-hl），「联系我们」不加 */
.pme .pm-hl .pm-fn .lb { position: relative; z-index: 0; }
.pme .pm-hl .pm-fn .lb::before {
  content: "";
  position: absolute; z-index: -1;
  left: -5px; right: -5px; bottom: 0; height: 0.60em;
  background: linear-gradient(180deg,
    rgba(255, 208, 46, 0) 0%,
    rgba(255, 208, 46, 0.45) 26%,
    rgba(255, 208, 46, 0.78) 62%,
    rgba(255, 208, 46, 0.62) 100%);
  border-radius: 999px 5px 999px 5px;
  transform: skewX(-7deg);
}
.pme .pm-fn .tag {
  position: absolute; left: 50%; top: 2px; transform: translateX(-46%);
  padding: 2px 7px;
  font-size: 10.5px; font-weight: 800; color: #fff;
  background: #ff7b7b; border-radius: 7px;
  white-space: nowrap;
}

/* 浮动新人福利 */
.pme .pm-float {
  position: fixed; right: 6px; bottom: calc(var(--nav-h) + var(--safe-b) + 74px);
  z-index: 30;
  width: 62px;
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none;
}
.pme .pm-float .gift {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 25px;
  background: linear-gradient(150deg, #ffd98a, #ff9a3d);
  box-shadow: 0 6px 16px rgba(255, 154, 61, 0.4);
}
.pme .pm-float .txt {
  margin-top: -3px;
  padding: 2px 7px;
  font-size: 10.5px; font-weight: 800; color: #fff;
  background: linear-gradient(150deg, #ff9a3d, #ff6a2f);
  border-radius: 999px;
  white-space: nowrap;
}
