/* ============================================================
 * member_grid.css · 会员中心「九宫格」改版（风设计稿套皮 20261021）
 * 仅视觉/布局；会员状态/下单/订单/退款/兑换码全部沿用既有真实 JS。
 *
 * 作用域：全部规则挂在 .mc-page 下；导航栏用 body.mc-page 限定；
 *         不写任何业务 JS 选择器外溢规则。
 * 单树布局：竖/横屏共用同一套 DOM，CSS Grid 区域切换（不重复 id）。
 *  - 竖屏 @media(orientation:portrait)：单列三段，全部约束在 100dvh 内，
 *    一屏放下，无页面级长滚动（订单/权益等弹层除外，弹层内部可滚）。
 *  - 横屏 @media(orientation:landscape)：左会员卡片区 / 右九宫格+支付说明。
 *  - 100vh 回退 + 100dvh 增强 + env(safe-area-inset-*)。
 *  - 无外部图片；皇冠/盾牌/微信图标为内联 SVG（HTML 侧）。
 * ============================================================ */

/* ---------- 0. 设计令牌（风契约 #FF8A00 橙金；限本页 .mc-page 内） ---------- */
.mc-page {
  --mc-orange: #FF8A00;
  --mc-orange-deep: #E8740A;
  --mc-orange-soft: #FFE9CC;
  --mc-ink: #3D2B00;
  --mc-text: #4A3A1A;
  --mc-muted: #9C8458;
  --mc-line: #F0E2C8;
  --mc-card: #FFFFFF;
  --mc-bg: #FFF8EE;
  /* 会员卡片区金色 */
  --mc-gold-1: #FFE9A8;
  --mc-gold-2: #F4C23C;
  --mc-gold-3: #D99A14;
  --mc-gold-deep: #8A5A00;
  /* 深金（铂金卡） */
  --mc-dg-1: #B9770E;
  --mc-dg-2: #E0A92E;
  --mc-dg-3: #8A5A00;

  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  min-width: 0;
  margin: 0 auto;
  background: var(--mc-bg);
  color: var(--mc-text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
.mc-page *,
.mc-page *::before,
.mc-page *::after { box-sizing: border-box; }

/* 背景柔光（装饰，不占布局） */
.mc-page .mc-bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}
.mc-page .mc-bg-glow.g1 {
  width: 260px; height: 260px;
  top: -90px; right: -80px;
  background: radial-gradient(circle, rgba(255, 168, 40, 0.22) 0%, rgba(255, 168, 40, 0) 70%);
}
.mc-page .mc-bg-glow.g2 {
  width: 220px; height: 220px;
  bottom: -100px; left: -70px;
  background: radial-gradient(circle, rgba(255, 200, 90, 0.18) 0%, rgba(255, 200, 90, 0) 70%);
}

/* ---------- 顶部导航（会员页专属限定） ---------- */
body.mc-page .nav-bar {
  background: linear-gradient(135deg, #FF9A2E 0%, var(--mc-orange) 55%, #F07D00 100%);
  border-bottom: none;
  box-shadow: 0 4px 14px rgba(255, 138, 0, 0.28);
  max-width: 480px;
}
/* [20261021UI-2] 标题金色:金卡片区 --mc-gold-1/#FFE9A8 浅金系(橙底上可读);返回箭头/关闭X不动 */
body.mc-page .nav-title {
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(135deg, #FFF7DC 0%, var(--mc-gold-1) 45%, #FFD366 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FFE9A8; /* 不支持 background-clip 时的兜底色 */
}
body.mc-page .nav-back {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}
body.mc-page .nav-back:active { background: rgba(255, 255, 255, 0.38); }

/* [20261021UI-1] 删顶部空白·金卡框置顶
 * 根因(三重叠加,均作用于会员页):
 *  ① server.js _injectLayoutFix 给 body 写 inline paddingTop≈88px(本页无.topbar,按默认80+8兜底);
 *  ② wechat.css .wc-page{padding-top:64px};
 *  ③ .mc-stage 自身已预留 calc(56px+安全区+6px) 承接固定导航栏。
 * 导航栏由 .mc-stage 预留位承接即可,前两处在本页清零(!important 压注入器 inline),
 * 金卡片区紧贴导航栏下沿,竖屏横屏同规则。 */
body.mc-page { padding-top: 0 !important; }
body.mc-page .wc-page { padding-top: 0; }

/* ============================================================
 * 舞台：竖屏单列（默认）
 *  grid 区域：gold(自适应) / grid(1fr 吃掉剩余) / note(自适应)
 * ============================================================ */
/* [20261022老板令] 矮屏不再强压"全部塞一屏":按钮完整不被切为第一优先。
 * 竖屏：min-height 保底 100dvh，内容超高时页面自然增高，由 body 纵向滚动；
 *       解除 overflow:hidden 与被压缩的 1fr 行。 */
.mc-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto; /* 三段都按内容自然高，不再用 minmax(0,1fr) 压缩套餐区 */
  grid-template-areas:
    "gold"
    "grid"
    "note";
  gap: 10px;
  padding: calc(56px + env(safe-area-inset-top, 0px) + 6px) 14px
    calc(12px + env(safe-area-inset-bottom, 0px));
  overflow: visible; /* 原 hidden 会在小屏裁掉套餐卡底部按钮 */
}
.mc-gold-zone { grid-area: gold; flex: 0 0 auto; min-width: 0; }
.mc-grid-zone { grid-area: grid; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.mc-pay-note { grid-area: note; min-width: 0; }

/* ---------- 1. 金色会员卡片区 ---------- */
.mc-gold-card {
  position: relative;
  border-radius: 20px;
  padding: 14px 16px 12px;
  background: linear-gradient(160deg, var(--mc-gold-1) 0%, var(--mc-gold-2) 58%, var(--mc-gold-3) 100%);
  box-shadow: 0 10px 26px rgba(217, 154, 20, 0.30);
  overflow: hidden;
  color: var(--mc-gold-deep);
}
.mc-gold-card::before {
  content: "";
  position: absolute;
  top: -46px; right: -30px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
/* 免费态：浅金米，卡片仍完整，视觉提示未开通 */
.mc-gold-card.is-free {
  background: linear-gradient(160deg, #FFF4DA 0%, #FFE3AC 70%, #F6CE7E 100%);
  box-shadow: 0 8px 20px rgba(217, 154, 20, 0.16);
}

.mc-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.mc-crown {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #FFF7E0 0%, #F3C94E 100%);
  border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.9), 0 3px 8px rgba(138,90,0,.25);
}
.mc-crown svg { width: 30px; height: 30px; display: block; }

.mc-card-info { flex: 1 1 auto; min-width: 0; }
.mc-card-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--mc-gold-deep);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.6;
}
.mc-card-level {
  margin-top: 2px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--mc-gold-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-card-expire {
  margin-top: 1px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(138, 90, 0, 0.78);
  line-height: 1.45;
}

.mc-card-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.mc-mini-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--mc-gold-deep);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  box-shadow: 0 2px 6px rgba(138, 90, 0, .14);
  -webkit-appearance: none;
  appearance: none;
}
.mc-mini-btn:active { transform: scale(.97); }
.mc-mini-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* 兑换码（紧凑行，真实 /api/member/redeem 不变） */
.mc-redeem-row { margin-top: 8px; display: flex; gap: 8px; }
.mc-redeem-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  border: 1.5px solid var(--mc-line);
  border-radius: 999px;
  background: #fff;
  padding: 0 16px;
  font-size: 14px;
  color: var(--mc-text);
  outline: none;
}
.mc-redeem-row input:focus {
  border-color: var(--mc-orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 0, .14);
}
.mc-redeem-row button {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFA033 0%, var(--mc-orange) 60%, #F07D00 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(255, 138, 0, .28);
}
.mc-redeem-row button:active { transform: scale(.97); }
.mc-redeem-row button:disabled { opacity: .6; }
#redeemMsg { display: block; font-size: 12px; color: var(--mc-muted); margin: 4px 4px 0; line-height: 1.4; }

/* 金卡内微信一键登录紧凑条（微信内未登录才显示） */
.mc-oa-login{
  display:flex;align-items:center;gap:6px;justify-content:center;
  margin:9px 0 0;
  padding:8px 10px;border-radius:10px;
  background:linear-gradient(135deg,rgba(7,193,96,.12),rgba(7,193,96,.05));
  border:1px solid rgba(7,193,96,.35);
  color:#0a8f4b;font-size:11.5px;line-height:1.4;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.mc-oa-login .ico{font-size:13px;flex:0 0 auto;}
.mc-oa-login:active{opacity:.8;}


/* 横屏左栏底部条款（竖屏藏，内容收纳在权益弹层内，不丢信息） */
.mc-land-foot { display: none; }

/* ---------- 2. 九宫格套餐区 ---------- */
.mc-grid-head {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2px 2px 6px;
}
.mc-grid-title { font-size: 16px; font-weight: 800; color: var(--mc-ink); }
.mc-grid-sub { font-size: 12px; color: var(--mc-muted); font-weight: 600; }

/* [20261022老板令] 每行保持 3 个；删除写死的 3 行模板，套餐个数增减时按 grid-auto-rows 自然顺延。
 * 每格最小 148px 足以完整容纳 名称/价格/天数/描述/底部按钮；横屏固定高度内本区域可纵向滚动。 */
.mc-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  /* [20261112老板令] 套餐精简到 3 档后竖屏改 2 列：卡片变宽更大气，
     也更适合「188 / 288 / 388」这种大额长周期决策。横屏在 landscape 媒体查询里改回 3 列（省高度）。 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(148px, auto);
  gap: 9px;
  /* [20261022] 横屏父级限高后网格自身纵向滚动；竖屏内容不超高时不出现滚动条。
     只写 overflow-y:auto，绝不写 overflow-x:hidden（一轴 hidden 会连带裁剪另一轴内容/阴影）。 */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 1px 1px 3px; /* 顶部 1px 防 :active 缩放被父容器裁 */
}

.mc-cell {
  position: relative;
  border-radius: 16px;
  background: var(--mc-card);
  border: 1.5px solid var(--mc-line);
  box-shadow: 0 3px 10px rgba(171, 122, 24, 0.07);
  /* [20261022] 内边距放宽，底部留足按钮空间；is-best 2px 边框另在其规则内等比补偿 */
  padding: 9px 9px 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;  /* 按钮宽度由内部 margin:auto 居中，避免拉伸变形 */
  text-align: center;
  overflow: visible;     /* [核心] 原 hidden 直接切掉底部橙按钮；角标改用顶部 padding 避让 */
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.mc-cell:active { transform: scale(.97); }
.mc-cell.is-trial { border-color: #F6C977; background: linear-gradient(180deg, #FFF9EE 0%, #FFFFFF 55%); }
.mc-cell.is-best {
  border: 2px solid var(--mc-gold-3);
  padding: 8px 8px 9px;
  background: linear-gradient(165deg, var(--mc-dg-1) 0%, var(--mc-dg-2) 52%, var(--mc-dg-3) 100%);
  box-shadow: 0 8px 20px rgba(185, 119, 14, .34);
  color: #FFF6DD;
}
.mc-cell.is-best .mc-cell-name,
.mc-cell.is-best .mc-cell-price,
.mc-cell.is-best .mc-cell-btn { color: #FFF6DD; }

/* [20261021需求B] 首位免费新手银卡:卡体/圆角/字体/按钮与付费卡同款,仅以下小字与置灰态 */
.mc-cell-price .mc-free-num { font-size: 18px; letter-spacing: 0; color: var(--mc-orange-deep); }
/* 免费卡没有 .mc-cell-desc：note 用 margin-top:auto 沉到按钮下方，形成「按钮+限领说明」底栏 */
.mc-cell-note {
  margin: auto auto 0;
  margin-top: auto;
  padding-top: 5px;
  font-size: 9.5px;
  line-height: 1.25;
  color: var(--mc-muted);
  white-space: normal;
  max-width: 100%;
}
.mc-cell-btn.is-disabled {
  background: #E7E2D8;
  color: #8C8678;
  box-shadow: none;
  font-size: 10.5px;
  letter-spacing: 0;
}
.mc-cell.mc-free-cell.is-claimed { cursor: default; }
@media (orientation: landscape) {
  .mc-cell-note { display: none; } /* 横屏省高度,与 .mc-cell-desc 同等隐藏 */
  .mc-free-cell .mc-cell-btn.is-disabled { font-size: 10px; }
}
.mc-cell.is-best .mc-cell-days { color: rgba(255, 246, 221, .82); background: rgba(255,255,255,.16); }
.mc-cell.is-best .mc-cell-desc { color: rgba(255, 246, 221, .85); }

.mc-corner {
  position: absolute;
  top: 0; left: 0;
  background: linear-gradient(135deg, #FFB04D, #F07D00);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 7px 5px;
  border-radius: 16px 0 10px 0;
  z-index: 2;
  white-space: nowrap;
}
.mc-corner.limit { background: linear-gradient(135deg, #FF8A5C, #E8531A); }

/* [20261022] 有角标卡顶部预留 12px 避让，不再用大 margin-top 硬顶 */
.mc-cell-name {
  margin: 2px 0 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--mc-ink);
  line-height: 1.3;
  padding: 0 2px;
}
.mc-cell.has-corner .mc-cell-name { margin-top: 12px; }
.mc-cell.is-best .mc-cell-name { margin-top: 2px; }
.mc-cell.is-best.has-corner .mc-cell-name { margin-top: 12px; }
.mc-cell-price {
  margin: 3px 0 0;
  color: var(--mc-orange-deep);
  font-weight: 800;
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.mc-cell-price .cur { font-size: 12px; font-weight: 800; }
.mc-cell-price .num { font-size: 27px; letter-spacing: -1px; }
.mc-cell-days {
  margin: 5px auto 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--mc-muted);
  background: var(--mc-orange-soft);
  border-radius: 999px;
  padding: 2px 9px;
  line-height: 1.5;
  white-space: nowrap;
}
.mc-cell-desc {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--mc-muted);
  line-height: 1.35;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}
/* [20261022核心] 按钮点按区 40px；纵向定位由 .mc-cell-desc 的 flex:1 负责（免费卡由 .mc-cell-note 沉底），
   不再用 margin-top:auto，避免与卡内静态文字重叠。卡片 overflow:visible 保证按钮永不被裁 */
.mc-cell-btn {
  margin: 8px auto 0;
  width: 100%;
  min-height: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFA033 0%, var(--mc-orange) 60%, #F07D00 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(255, 138, 0, .30);
  pointer-events: none; /* 整张卡可点，按钮仅视觉 */
}
.mc-cell.is-best .mc-cell-btn {
  background: #FFF3D2;
  color: var(--mc-gold-deep);
  box-shadow: 0 3px 8px rgba(90, 58, 0, .28);
}

/* ?plan=trial 真实定位高亮（沿用线上橙色脉冲，仅本格） */
.mc-trial-flash {
  animation: mcTrialFlash 1.1s ease-in-out 3;
}
@keyframes mcTrialFlash {
  0%, 100% { box-shadow: 0 3px 10px rgba(171,122,24,.07); }
  50% { box-shadow: 0 0 0 4px rgba(255, 138, 0, .55); }
}
@-webkit-keyframes mcTrialFlash {
  0%, 100% { box-shadow: 0 3px 10px rgba(171,122,24,.07); }
  50% { -webkit-box-shadow: 0 0 0 4px rgba(255, 138, 0, .55); box-shadow: 0 0 0 4px rgba(255, 138, 0, .55); }
}

/* 第 6 格：会员权益说明卡（静态弹层入口） */
.mc-cell.perks {
  border: 1.5px dashed #E8C98F;
  background: linear-gradient(180deg, #FFFDF7 0%, #FFF7E8 100%);
  cursor: pointer;
}
.mc-cell.perks:active { transform: scale(.97); }
.mc-perks-ic {
  margin: 14px auto 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--mc-orange-soft);
  display: flex; align-items: center; justify-content: center;
}
.mc-perks-ic svg { width: 24px; height: 24px; }
.mc-perks-title { margin: 6px auto 0; font-size: 14.5px; font-weight: 800; color: var(--mc-ink); max-width:100%; }
.mc-perks-more { margin: auto 0 0; padding-top: 6px; font-size: 12px; font-weight: 700; color: var(--mc-orange-deep); }
.mc-cell.perks { align-items: center; text-align: center; padding-bottom: 10px; }

/* ---------- 3. 底部微信支付安全说明（常驻，一屏内） ---------- */
.mc-pay-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mc-muted);
  padding: 2px 4px 0;
  white-space: nowrap;
}
.mc-pay-note svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* ============================================================
 * 横屏：左右分栏  左 gold（跨两行）/ 右上 grid / 右下 note
 * ============================================================ */
@media (orientation: landscape) {
  .mc-page { max-width: 960px; }
  body.mc-page .nav-bar { max-width: 960px; }

  /* [20261022] 横屏维持左右分栏、固定 100dvh：网格在右侧区域内纵向滚动，按钮完整不被切 */
  .mc-stage {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: 33.5% minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "gold grid"
      "gold note";
    gap: 10px 12px;
    overflow: hidden; /* 横屏不整页滚，滚动交给右侧 .mc-grid */
  }

  .mc-gold-zone { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
  .mc-grid-zone { min-height: 0; display: flex; flex-direction: column; overflow: visible; background: var(--mc-bg); border-radius: 12px; }

  /* 横屏金卡特紧凑 */
  .mc-gold-card { padding: 12px 14px 10px; flex: 0 0 auto; }
  .mc-crown { width: 40px; height: 40px; border-radius: 12px; }
  .mc-crown svg { width: 26px; height: 26px; }
  .mc-card-level { font-size: 19px; }
  .mc-card-actions { margin-top: 8px; }
  .mc-mini-btn { height: 32px; font-size: 12.5px; }
  .mc-redeem-row input { height: 38px; font-size: 13px; }
  .mc-redeem-row button { height: 38px; font-size: 13px; }
  #redeemMsg { margin-top: 2px; }

  .mc-land-foot {
    display: block;
    margin: auto 2px 0;
    font-size: 11px;
    line-height: 1.7;
    color: var(--mc-muted);
    text-align: center;
  }

  /* note 独立第二行：实底 + flex 不缩，杜绝被滚动区盖住/裁切 */
  .mc-pay-note { flex: 0 0 auto; background: var(--mc-bg); padding-top: 2px; z-index: 2; }
  /* 横屏九宫格：行高 118px（隐藏描述后完整容纳名称/价/天数/34px按钮），超高在网格区内滚 */
  .mc-grid-head { margin: 0 2px 6px; flex: 0 0 auto; }
  /* [20261112] 横屏横向空间充裕，改回 3 列省高度（竖屏基础定义已是 2 列） */
  .mc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(118px, auto); gap: 7px; flex: 1 1 auto; min-height: 0; }
  .mc-cell { padding: 6px 7px 8px; border-radius: 14px; }
  .mc-cell-name { margin-top: 2px; font-size: 13.5px; }
  /* [20261112] 角标高约 18.5px，11px 会让「超长续航/长期省心」压名称 3px，加到 14px */
  .mc-cell.has-corner .mc-cell-name { margin-top: 14px; }
  .mc-cell.is-best .mc-cell-name { margin-top: 2px; }
  .mc-cell.is-best.has-corner .mc-cell-name { margin-top: 14px; }
  .mc-cell-price .num { font-size: 24px; }
  .mc-cell-days { margin-top: 3px; margin-bottom: auto; padding: 1px 8px; }
  .mc-cell-desc { display: none; } /* 横屏省高度：天数徽章已含天数 */
  .mc-cell-btn { margin-top: 6px; min-height: 34px; height: 34px; font-size: 12.5px; }
  .mc-perks-ic { margin: 8px auto 0; width: 34px; height: 34px; border-radius: 10px; }
  .mc-perks-ic svg { width: 20px; height: 20px; }
  .mc-perks-title { margin: 4px auto 0; font-size: 13.5px; }
  .mc-corner { font-size: 9px; padding: 3px 6px 4px; }

  /* ===== 横屏超矮高度（≤420px，如 844×390）：再收紧一档，保证一屏 ===== */
  @media (max-height: 420px) {
    .mc-stage { gap: 7px 12px; padding-top: calc(56px + 3px); padding-bottom: 4px; }
    .mc-grid-head { margin: 0 2px 3px; }
    .mc-grid-title { font-size: 14.5px; }
    .mc-grid-sub { display: none; }            /* 副标题省高度，主标题保留 */
    .mc-grid { gap: 6px; grid-auto-rows: minmax(108px, auto); }
    .mc-cell { padding: 4px 6px 6px; border-radius: 12px; }
    .mc-cell-name { margin-top: 1px; font-size: 12.5px; line-height: 1.2; }
    /* [20261112] 同 3px 重叠问题，9px → 12px */
    .mc-cell.has-corner .mc-cell-name { margin-top: 12px; }
    .mc-cell.is-best .mc-cell-name { margin-top: 1px; }
    .mc-cell.is-best.has-corner .mc-cell-name { margin-top: 12px; }
    .mc-cell-price { margin-top: 1px; }
    .mc-cell-price .cur { font-size: 10.5px; }
    .mc-cell-price .num { font-size: 20px; line-height: 1; }
    .mc-cell-days { margin-top: 2px; margin-bottom: auto; font-size: 10px; padding: 0 7px; line-height: 1.5; }
    /* [20261022] 超矮横屏按钮也保 30px 点按区，行高不够靠网格区滚动解决，绝不切按钮 */
    .mc-cell-btn { margin-top: 5px; min-height: 30px; height: 30px; font-size: 11.5px; }
    .mc-pay-note { font-size: 11px; padding-top: 0; }
    .mc-pay-note svg { width: 13px; height: 13px; }

    /* 金卡更扁 */
    .mc-gold-card { padding: 9px 12px 8px; border-radius: 16px; }
    .mc-crown { width: 34px; height: 34px; border-radius: 10px; }
    .mc-crown svg { width: 22px; height: 22px; }
    .mc-card-label { font-size: 10px; }
    .mc-card-level { font-size: 16.5px; margin: 1px 0 2px; }
    .mc-card-expire { font-size: 11px; line-height: 1.3; }
    .mc-card-actions { margin-top: 6px; }
    .mc-mini-btn { height: 28px; font-size: 11.5px; }
    .mc-redeem-row { margin-top: 7px; }
    .mc-redeem-row input, .mc-redeem-row button { height: 34px; font-size: 12px; }
    .mc-land-foot { display: none; }   /* 超矮横屏条款收纳进权益弹层 */
    .mc-oa-login { display: none !important; }  /* 未登录一键登录仍有原 #oaLoginBar 链路，超矮屏金卡内隐藏 */

    .mc-perks-ic { margin-top: 5px; width: 28px; height: 28px; }
    .mc-perks-ic svg { width: 17px; height: 17px; }
    .mc-perks-title { margin-top: 3px; font-size: 12.5px; }
    .mc-perks-more { font-size: 11px; padding-top: 2px; }
  }
}

/* ============================================================
 * 权益说明弹层（纯静态，无接口）
 * 竖屏：底部 Sheet；横屏：居中 Modal
 * ============================================================ */
.mc-sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(61, 43, 0, .45);
  z-index: 99990;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.mc-sheet-mask.show { display: flex; }
.mc-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 78vh;
  background: #FFFDF8;
  border-radius: 22px 22px 0 0;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: mcSheetUp .22s ease;
}
@keyframes mcSheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
.mc-sheet-handle {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: #EAD9BC;
  margin: 0 auto 12px;
}
.mc-sheet-title { text-align: center; font-size: 18px; font-weight: 800; color: var(--mc-ink); margin-bottom: 4px; }
.mc-sheet-sub { text-align: center; font-size: 12.5px; color: var(--mc-muted); margin-bottom: 14px; }
.mc-rights-list { display: flex; flex-direction: column; gap: 10px; }
.mc-right-item {
  display: flex;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--mc-line);
  border-radius: 14px;
  padding: 11px 13px;
  align-items: flex-start;
}
.mc-right-ic {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--mc-orange-soft);
  display: flex; align-items: center; justify-content: center;
}
.mc-right-ic svg { width: 20px; height: 20px; }
.mc-right-tx h4 { margin: 0 0 2px; font-size: 14.5px; font-weight: 800; color: var(--mc-ink); }
.mc-right-tx p { margin: 0; font-size: 12.5px; color: var(--mc-muted); line-height: 1.55; }
.mc-sheet-divider { margin: 14px 0 10px; font-size: 13px; font-weight: 800; color: var(--mc-ink); }
.mc-sheet-notes { font-size: 12px; color: var(--mc-muted); line-height: 1.8; margin: 0; padding: 0 2px; }
.mc-sheet-close {
  margin-top: 14px;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFA033 0%, var(--mc-orange) 60%, #F07D00 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(255,138,0,.28);
}
.mc-sheet-close:active { transform: scale(.98); }

/* [微信小店核销only20261027] 输码绑定二次确认——取消按钮（中性描边） */
.mc-sheet-cancel {
  margin-top: 10px;
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--mc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--mc-muted);
  font-size: 15px;
  font-weight: 600;
}
.mc-sheet-cancel:active { transform: scale(.98); }

@media (orientation: landscape) {
  .mc-sheet-mask { align-items: center; }
  .mc-sheet { max-width: 520px; max-height: 86vh; border-radius: 22px; }
}

/* ---------- 旧实现挂载点隐藏（避免与金卡片区入口重复） ----------
 * member_orders.js 自动插入「我的订单」到 #ldOrderEntryMount；
 * member_refund.js 自动插入「申请退款」到 #ldRefundBtnRow。
 * 弹窗本体与全部能力仍由这两个模块提供，金卡按钮直接调
 * window.LdOrders.openOrders / window.LdRefund.openRefundApply。 */
#ldOrderEntryMount,
#ldRefundBtnRow,
#ldOrdersEntryWrap { display: none !important; }
/* member_orders.js 的临时入口行若挂到隐藏状态卡外，也一并隐藏（金卡片区已有我的订单入口） */
#memberStatusCard ~ #ldOrdersEntryWrap { display: none !important; }

/* 旧套餐容器仍由 wxpay.js 正常填充（不破坏其链路），新版用九宫格，隐藏旧容器 */
#planContainer { display: none !important; }

/* 旧 pay-tip 文案隐藏，新版常驻底部 .mc-pay-note */
.mc-page .pay-tip { display: none !important; }

/* ============================================================
 * [华为上架整改20261026] App 内兑换码引导卡（替代5个付费套餐格）
 * ============================================================ */
.mc-cell.mc-redeem-guide {
  border: 1.5px solid #F2B45A;
  background: linear-gradient(180deg, #FFF8E9 0%, #FFFDF7 100%);
  cursor: pointer;
  align-items: center;
  text-align: center;
  padding: 12px 10px 10px;
}
.mc-rg-ic {
  margin: 4px auto 2px;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--mc-orange-soft);
  display: flex; align-items: center; justify-content: center;
}
.mc-rg-ic svg { width: 23px; height: 23px; }
.mc-rg-title { font-size: 14px; font-weight: 800; color: var(--mc-ink); margin-top: 4px; }
.mc-rg-desc {
  font-size: 11px; line-height: 1.45; color: var(--mc-muted);
  margin: 4px 0 6px; font-weight: 600;
}
.mc-cell.mc-redeem-guide .mc-cell-btn { color: #fff; background: linear-gradient(135deg,#F6A623,#E8740A); margin-top: auto; }
@media (orientation: landscape) and (max-height: 500px) {
  .mc-rg-desc { display: none; }
}

/* ============================================================
 * [华为上架整改20261026] App 内(UA 含 LedouNative)支付痕迹隐藏
 * <html> 上的 .ld-native-app 由 ld_app.js 在首屏前打上
 * ============================================================ */
/* 会员页：兑换码行视觉突出 */
html.ld-native-app .mc-redeem-row {
  margin-top: 12px;
  padding: 10px;
  border: 2px solid #F2B45A;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFF8E9 0%, #FFFDF7 100%);
  box-shadow: 0 2px 10px rgba(232,116,10,.14);
}
html.ld-native-app .mc-redeem-row input {
  border: 1.5px solid #F2B45A;
  font-weight: 700;
}
/* 九宫格区标题改为兑换码口径 */
html.ld-native-app .mc-grid-title { display: none; }
html.ld-native-app .mc-grid-sub { display: none; }
html.ld-native-app .mc-grid-zone::before {
  content: "使用兑换码开通会员";
  font-size: 16px;
  font-weight: 800;
  color: var(--mc-ink);
  margin-bottom: 2px;
}
/* 底部"会员服务由微信支付提供"绿条 */
html.ld-native-app .mc-pay-note { display: none !important; }
/* 旧 fallback 套餐容器（含 handleBuy 内联按钮） */
html.ld-native-app #planContainer { display: none !important; }
/* 我的订单 / 申请退款 / 微信一键登录紧凑条 */
html.ld-native-app #mcMyOrders,
html.ld-native-app #mcRefund,
html.ld-native-app #mcOaLogin,
html.ld-native-app #oaLoginBar { display: none !important; }
/* 协议弹层：支付通道第3条 App 内换中性表述；权益弹层退款入口隐藏 */
html.ld-native-app .mc-perk-clause-web { display: none !important; }
html.ld-native-app .mc-perk-clause-app { display: inline !important; }
html.ld-native-app .mc-right-item.mc-right-refund { display: none !important; }
/* 服务说明第1条支付口径 */
html.ld-native-app .mc-note-1-web { display: none !important; }
html.ld-native-app .mc-note-1-app { display: inline !important; }
html.ld-native-app .mc-note-2-web { display: none !important; }
html.ld-native-app .mc-note-2-app { display: inline !important; }
html.ld-native-app .mc-card-expire-web { display: none !important; }
html.ld-native-app .mc-card-expire-app { display: inline !important; }


/* ============================================================
 * [微信小店核销only 20261026] 微信小店来源(?from=wxshop)支付痕迹隐藏
 * <html> 上的 .ld-wxshop 由 ld_app.js 在首屏后补打（与 .ld-native-app 并列作用域独立）
 * ============================================================ */
/* 会员页：兑换码行视觉突出 */
html.ld-wxshop .mc-redeem-row {
  margin-top: 12px;
  padding: 10px;
  border: 2px solid #F2B45A;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFF8E9 0%, #FFFDF7 100%);
  box-shadow: 0 2px 10px rgba(232,116,10,.14);
}
html.ld-wxshop .mc-redeem-row input {
  border: 1.5px solid #F2B45A;
  font-weight: 700;
}
/* 九宫格区标题改为兑换码口径 */
html.ld-wxshop .mc-grid-title { display: none; }
html.ld-wxshop .mc-grid-sub { display: none; }
html.ld-wxshop .mc-grid-zone::before {
  content: "使用兑换码开通会员";
  font-size: 16px;
  font-weight: 800;
  color: var(--mc-ink);
  margin-bottom: 2px;
}
/* 底部"会员服务由微信支付提供"绿条 */
html.ld-wxshop .mc-pay-note { display: none !important; }
/* 旧 fallback 套餐容器（含 handleBuy 内联按钮） */
html.ld-wxshop #planContainer { display: none !important; }
/* 纵深防御：JS 不渲染付费格为主，此条兜底——只藏带 data-level 的 5 个付费套餐格
   (trial/week/month/quarter/year)；不藏免费新手卡(data-mc-free)、兑换引导卡
   (data-mc-redeem-guide)、权益格(.perks 无 data-level)。防将来改渲染逻辑漏判 */
html.ld-wxshop #mcGrid .mc-cell[data-level] { display: none !important; }
/* 我的订单 / 申请退款 / 微信一键登录紧凑条 */
html.ld-wxshop #mcMyOrders,
html.ld-wxshop #mcRefund,
html.ld-wxshop #mcOaLogin,
html.ld-wxshop #oaLoginBar { display: none !important; }
/* 协议弹层：支付通道第3条 App 内换中性表述；权益弹层退款入口隐藏 */
html.ld-wxshop .mc-perk-clause-web { display: none !important; }
html.ld-wxshop .mc-perk-clause-app { display: inline !important; }
html.ld-wxshop .mc-right-item.mc-right-refund { display: none !important; }
/* 服务说明第1条支付口径 */
html.ld-wxshop .mc-note-1-web { display: none !important; }
html.ld-wxshop .mc-note-1-app { display: inline !important; }
html.ld-wxshop .mc-note-2-web { display: none !important; }
html.ld-wxshop .mc-note-2-app { display: inline !important; }
html.ld-wxshop .mc-card-expire-web { display: none !important; }
html.ld-wxshop .mc-card-expire-app { display: inline !important; }


/* [20261112老板令] 竖屏 2 列后共 5 格（新手卡 + 铂金 + 钻石 + 金钻 + 权益），
   前 4 格排成 2×2 后右下角会空半格。让权益格通栏收尾：既补满版面，
   也把「会员权益 · 查看全部」做成一条醒目的横向入口。横屏仍是 3 列，权益格保持单格不跨列。 */
@media (orientation: portrait) {
  .mc-cell.perks {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 16px;
  }
  .mc-cell.perks .mc-perks-ic { margin: 0; }
  .mc-cell.perks .mc-perks-title { margin: 0; }
  .mc-cell.perks .mc-perks-more { margin: 0; padding-top: 0; }
}
