/* ============================================================
 * 会员系统 · 样式（全部作用域限定在 .mem-*）
 * 颜色一律 var(--mem-*)，由 member/themes.js 注入
 * 改样式只动这个文件，不影响主界面
 * ============================================================ */

/* ---------- 遮罩与面板 ---------- */
.mem-mask {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
  background: var(--mem-ov);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.mem-mask.on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .6s ease, visibility 0s;
}
.mem-mask.mem-buy { z-index: 960; }

.mem-panel {
  width: min(440px, 94vw);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  background: var(--mem-card);
  color: var(--mem-tx);
  border-radius: 18px;
  box-shadow: 0 18px 48px var(--mem-shadow);
  font-size: 12px;
  line-height: 1.5;
}
.mem-panel::-webkit-scrollbar { width: 6px; }
.mem-panel::-webkit-scrollbar-thumb { background: var(--mem-l); border-radius: 3px; }

/* ---------- 表头 ---------- */
.mem-band {
  position: relative;
  padding: 15px 18px 14px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, var(--mem-m), var(--mem-d));
  color: var(--mem-card);
}
.mem-band h3 { margin: 0; font-size: 15px; font-weight: 700; color: inherit; }
.mem-band .mem-band-sub { margin-top: 3px; font-size: 10.5px; opacity: .85; }

.mem-bell {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--mem-card);
  background: transparent;
  color: var(--mem-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  opacity: .9;
}
.mem-bell:hover { opacity: 1; }
.mem-bell .mem-bell-dot {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--mem-m);
  color: var(--mem-card);
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--mem-m);
}
.mem-bell .mem-bell-dot.mem-hide { display: none; }

/* ---------- 主体 ---------- */
.mem-body { padding: 16px 18px 18px; }

/* 数据卡 */
.mem-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mem-stat {
  background: var(--mem-s);
  border-radius: 11px;
  padding: 11px 6px;
  text-align: center;
}
.mem-stat b { display: block; font-size: 19px; font-weight: 800; color: var(--mem-tx); }
.mem-stat span { display: block; margin-top: 3px; font-size: 9px; color: var(--mem-dm); }

/* 额度 */
.mem-quota { margin-top: 15px; }
.mem-quota .mem-qtop { display: flex; align-items: baseline; justify-content: space-between; }
.mem-quota .mem-qtop .mem-qk { font-size: 10.5px; color: var(--mem-dm); }
.mem-quota .mem-qtop .mem-qv { font-size: 16px; font-weight: 800; color: var(--mem-tx); }
.mem-quota .mem-qtop .mem-qv small { font-size: 10px; font-weight: 400; color: var(--mem-dm2); margin-left: 3px; }
.mem-quota.mem-low .mem-qv { color: var(--mem-lowbar); }

.mem-track {
  height: 9px;
  margin-top: 7px;
  border-radius: 6px;
  background: var(--mem-track);
  box-shadow: inset 0 0 0 1px var(--mem-l);
  overflow: hidden;
  display: flex;
}
.mem-track i { height: 100%; display: block; }



.mem-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 9px;
  color: var(--mem-dm2);
}
.mem-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 9.5px;
  color: var(--mem-dm);
}
.mem-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 4px; }


.mem-legend .mem-legend-right { margin-left: auto; color: var(--mem-dm2); }

/* 加量入口（低额度时） */
.mem-topup {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--mem-l);
}
.mem-topup .mem-topup-t { font-size: 10.5px; color: var(--mem-dm); }
.mem-topup .mem-topup-t b { color: var(--mem-tx); }
.mem-topup .mem-topup-row { display: flex; gap: 8px; margin-top: 9px; }
.mem-topup .mem-topup-row button {
  flex: 1;
  padding: 9px 4px;
  border-radius: 9px;
  border: 1px solid var(--mem-m);
  background: transparent;
  color: var(--mem-m);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.mem-topup .mem-topup-row button:first-child { background: var(--mem-m); color: var(--mem-card); }
.mem-topup .mem-topup-note { margin-top: 8px; font-size: 9px; color: var(--mem-dm2); line-height: 1.6; }
.mem-topup .mem-topup-note b { color: var(--mem-dm); }

/* 章节标题：竖杠 + 图标 + 标题 */
.mem-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 8px;
}
.mem-sec .mem-sec-h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mem-tx);
}
.mem-sec .mem-sec-h::before {
  content: '';
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: var(--mem-m);
}
.mem-sec .mem-sec-h .mem-sec-ic { font-size: 12px; }
.mem-sec .mem-sec-more {
  border: 1px solid var(--mem-l);
  background: transparent;
  color: var(--mem-m);
  border-radius: 7px;
  padding: 3px 9px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.mem-sec .mem-sec-more.plain { border: 0; color: var(--mem-m); padding: 0; }
.mem-sec .mem-sec-val { font-size: 9.5px; color: var(--mem-dm2); }

/* 史官 */
.mem-tl { position: relative; padding-left: 14px; }
.mem-tl::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: var(--mem-l);
}
.mem-tl .mem-tl-pt { position: relative; padding: 4px 0; font-size: 10.5px; color: var(--mem-tx); }
.mem-tl .mem-tl-pt::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mem-l);
  box-shadow: 0 0 0 2px var(--mem-card);
}
.mem-tl .mem-tl-pt.mem-got::before { background: var(--mem-m); }
.mem-tl .mem-tl-pt .mem-tl-dt { margin-right: 7px; color: var(--mem-dm2); font-size: 9.5px; }

/* 成就 */
.mem-ach {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  cursor: grab;
  scrollbar-width: none;
}
.mem-ach::-webkit-scrollbar { display: none; }
.mem-ach.dragging { cursor: grabbing; }
.mem-chip {
  flex: none;
  width: 34px;
  height: 36px;
  border-radius: 10px;
  background: var(--mem-s);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  transition: transform .12s;
}
.mem-chip:hover { transform: translateY(-2px); }
.mem-chip .mem-chip-ic { font-size: 15px; line-height: 16px; }
.mem-chip .mem-chip-st { font-size: 5.5px; line-height: 6px; color: var(--mem-d); letter-spacing: -.2px; }
.mem-chip.mem-off { background: transparent; box-shadow: inset 0 0 0 1px var(--mem-l); }
.mem-chip.mem-off .mem-chip-ic { filter: grayscale(1); opacity: .35; }
.mem-chip.mem-off .mem-chip-st { opacity: .45; }
.mem-chip.locked { cursor: default; }
.mem-ach-hint { margin-top: 5px; text-align: center; font-size: 9px; color: var(--mem-dm2); }

/* 主题选择 */
.mem-theme {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--mem-l);
}
.mem-theme .mem-theme-lb {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 9.5px;
  color: var(--mem-dm2);
}
.mem-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.mem-sw button {
  position: relative;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--mem-l);
}
.mem-sw button.mem-on { box-shadow: 0 0 0 2px var(--mem-card), 0 0 0 3.5px var(--mem-m); }
.mem-sw button.mem-locked { filter: grayscale(1); opacity: .4; cursor: not-allowed; }
.mem-sw button.mem-locked::after {
  content: '🔒';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

/* 底部按钮 */
.mem-acts { display: flex; gap: 9px; margin-top: 16px; }
.mem-acts button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--mem-l);
  background: var(--mem-s);          /* 默认：比白多带一点主题色的浅底 */
  color: var(--mem-tx);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease,
              transform .08s ease, box-shadow .16s ease, filter .16s ease;
}
/* 悬停：变成深色（原来的深色样式） */
.mem-acts button:hover,
.mem-acts button:focus-visible {
  background: var(--mem-m);
  color: var(--mem-card);
  border-color: transparent;
}
/* 按下：额外点击反馈 */
.mem-acts button:active {
  transform: translateY(1px) scale(.985);
  box-shadow: inset 0 2px 6px var(--mem-shadow);
  filter: brightness(.94);
}
/* 主按钮默认与左侧一致，仅字重略强 */
.mem-acts button.mem-main { font-weight: 600; }

/* 空状态 / 错误 */
.mem-empty { padding: 14px 0; text-align: center; font-size: 10.5px; color: var(--mem-dm2); }
.mem-loading { padding: 30px 0; text-align: center; font-size: 11px; color: var(--mem-dm2); }

/* ---------- 浮层提示 ---------- */
.mem-tip {
  position: fixed;
  z-index: 1100;
  max-width: 200px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--mem-card);
  color: var(--mem-tx);
  border: 1px solid var(--mem-l);
  box-shadow: 0 10px 24px var(--mem-shadow);
  font-size: 9.5px;
  line-height: 1.55;
  display: none;
  pointer-events: none;
}
.mem-tip.on { display: block; }
.mem-tip .mem-tip-tt { font-weight: 700; font-size: 10.5px; }
.mem-tip .mem-tip-prog {
  margin-top: 6px;
  height: 4px;
  border-radius: 2px;
  background: var(--mem-l);
  overflow: hidden;
}
.mem-tip .mem-tip-prog i { display: block; height: 100%; background: var(--mem-m); }
.mem-tip .mem-tip-meta { margin-top: 4px; display: flex; justify-content: space-between; color: var(--mem-dm2); }

/* ---------- 二级弹窗 ---------- */
.mem-sub {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--mem-ov);
  border-radius: 18px;
}
.mem-sub .mem-dlg-box {
  width: 100%;
  max-width: 320px;
  background: var(--mem-card);
  border-radius: 14px;
  box-shadow: 0 14px 34px var(--mem-shadow);
  padding: 16px;
}
.mem-sub h4 { margin: 0 0 10px; font-size: 13px; color: var(--mem-tx); }
.mem-sub .mem-dlg-list { max-height: 260px; overflow-y: auto; }
.mem-sub .mem-dlg-li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--mem-l);
  font-size: 10.5px;
}
.mem-sub .mem-dlg-li:last-child { border-bottom: 0; }
.mem-sub .mem-dlg-li .mem-dlg-d { width: 54px; flex: none; color: var(--mem-dm2); }
.mem-sub .mem-dlg-li .mem-dlg-n { flex: 1; }
.mem-sub .mem-dlg-li .mem-dlg-a { color: var(--mem-m); font-weight: 600; }
.mem-sub .mem-dlg-total {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--mem-l);
  font-size: 10px;
  color: var(--mem-dm2);
}
.mem-sub .mem-dlg-ta {
  width: 100%;
  height: 84px;
  resize: none;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--mem-l);
  background: var(--mem-card2);
  color: var(--mem-tx);
  font-family: inherit;
  font-size: 11px;
  outline: none;
}
.mem-sub .mem-dlg-cnt { margin-top: 5px; text-align: right; font-size: 9px; color: var(--mem-dm2); }
.mem-sub .mem-dlg-send {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: var(--mem-m);
  color: var(--mem-card);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.mem-sub .mem-dlg-send:disabled { opacity: .5; cursor: default; }
.mem-sub .mem-dlg-msg { margin-top: 8px; font-size: 9.5px; color: var(--mem-dm); min-height: 12px; }

/* 补：前缀统一后遗漏的规则 */
.mem-sec .mem-sec-ic { font-size: 12px; }
.mem-quota .mem-qk { font-size: 10.5px; color: var(--mem-dm); }
.mem-tl .mem-tl-dt { margin-right: 7px; color: var(--mem-dm2); font-size: 9.5px; }
.mem-sub .mem-dlg-li .mem-dlg-a { color: var(--mem-m); font-weight: 600; }
.mem-qk { font-size: 10.5px; color: var(--mem-dm); }
.mem-dlg-a { color: var(--mem-m); font-weight: 600; }

/* 分段色块（前缀统一） */
.mem-track i.mem-seg-a { background: var(--mem-d); }
.mem-track i.mem-seg-b { background: var(--mem-barB); border-radius: 0 6px 6px 0; }
.mem-legend i.mem-leg-a { background: var(--mem-d); }
.mem-legend i.mem-leg-b { background: var(--mem-barB); }

/* ---------- 开通会员页 ---------- */
.mem-perks div { font-size: 11px; color: var(--mem-tx); padding: 3px 0; line-height: 1.55; }
.mem-perks b { font-weight: 700; }
.mem-hr { height: 1px; background: var(--mem-l); margin: 11px 0; }
.mem-plans-lb { margin-bottom: 5px; font-size: 9.5px; letter-spacing: .06em; color: var(--mem-dm2); }
.mem-plan {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  margin-bottom: 6px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: var(--mem-rowbg);
  white-space: nowrap;
}
.mem-plan-hot { }
.mem-plan-n { flex: none; width: 42px; font-size: 11.5px; font-weight: 600; color: var(--mem-tx); }
.mem-plan-d {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  color: var(--mem-dm);
}
.mem-plan-save { font-style: normal; margin-left: 4px; font-weight: 600; color: var(--mem-m); }
.mem-badge {
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 20px;
  background: var(--mem-m);
  color: var(--mem-card);
  font-size: 8px;
  font-weight: 700;
}
.mem-badge-gold {
  background: linear-gradient(135deg, var(--mem-gold1), var(--mem-gold2));
  color: var(--mem-goldTx);
  border: 1px solid var(--mem-goldBd);
}
.mem-plan-p { flex: none; font-size: 15px; font-weight: 800; color: var(--mem-tx); }
.mem-plan-go {
  flex: none;
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid var(--mem-l);
  background: transparent;
  color: var(--mem-m);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.mem-plan-hot .mem-plan-go { background: var(--mem-m); color: var(--mem-card); border-color: transparent; }
.mem-buy-note { margin-top: 12px; text-align: center; font-size: 9.5px; color: var(--mem-dm2); }
.mem-buy-tip {
  margin-top: 8px;
  min-height: 14px;
  text-align: center;
  font-size: 9.5px;
  color: var(--mem-m);
  opacity: 0;
  transition: opacity .18s;
}
.mem-buy-tip.on { opacity: 1; }

/* 章节行右侧（消费记录 / 心愿池） */
.mem-rr { display: flex; align-items: center; gap: 8px; }
.mem-rr-n { font-size: 9.5px; color: var(--mem-dm2); }

/* 非会员升级卡 */
.mem-upsell {
  margin-top: 14px;
  padding: 12px 13px 13px;
  border: 1px dashed var(--mem-m);
  border-radius: 12px;
  background: var(--mem-rowbg);
}
.mem-upsell-h { font-size: 11px; font-weight: 700; color: var(--mem-tx); }
.mem-upsell-list { margin-top: 8px; }
.mem-upsell-list > div {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 3px 0;
  font-size: 10.5px;
  color: var(--mem-tx);
  line-height: 1.5;
}
.mem-upsell-list > div i {
  flex: none;
  width: 12px;
  font-style: normal;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}
.mem-upsell-list b { font-weight: 700; }
.mem-upsell-btn {
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  border: 0;
  border-radius: 9px;
  background: var(--mem-m);
  color: var(--mem-card);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.mem-upsell-sub { margin-top: 7px; text-align: center; font-size: 9px; color: var(--mem-dm2); }

/* ---------- 账号设置 / 兑换码 / 注销 ---------- */
.mem-acc-panel { position: relative; }
.mem-acc-back {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mem-card);
  font-size: 18px;
  line-height: 20px;
  cursor: pointer;
  opacity: .85;
}
.mem-acc-back:hover { opacity: 1; }
.mem-mask.mem-acc { z-index: 950; }

.mem-acc-list { margin-top: 2px; }
.mem-acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mem-l);
  font-size: 11.5px;
  color: var(--mem-tx);
  cursor: pointer;
}
.mem-acc-row:last-child { border-bottom: 0; }
.mem-acc-k { font-weight: 600; }
.mem-acc-v { font-size: 10px; color: var(--mem-dm2); }

.mem-acc-pw { display: none; padding: 4px 0 10px; }
.mem-acc-pw.mem-on { display: block; }
.mem-acc-pw input,
.mem-acc-input {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid var(--mem-l);
  background: var(--mem-card2);
  color: var(--mem-tx);
  font-family: inherit;
  font-size: 11px;
  outline: none;
}
.mem-acc-input { margin-top: 4px; }

.mem-acc-btn {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: var(--mem-m);
  color: var(--mem-card);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.mem-acc-btn.mem-ghost { background: transparent; border: 1px solid var(--mem-l); color: var(--mem-dm); font-weight: 400; }
.mem-acc-btn.mem-danger { background: var(--mem-lowbar); color: var(--mem-card); }
.mem-acc-btn:disabled { opacity: .45; cursor: default; }
.mem-acc-acts { display: flex; gap: 9px; margin-top: 12px; }
.mem-acc-acts .mem-acc-btn { flex: 1; }

.mem-acc-danger {
  margin-top: 16px;
  padding: 11px 0;
  text-align: center;
  border-top: 1px solid var(--mem-l);
  color: var(--mem-lowbar);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.mem-acc-note { margin-top: 8px; text-align: center; font-size: 9px; color: var(--mem-dm2); min-height: 12px; }
.mem-acc-msg { margin-top: 8px; font-size: 10px; color: var(--mem-m); min-height: 14px; }
.mem-acc-p { font-size: 11px; line-height: 1.7; color: var(--mem-tx); }
.mem-acc-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--mem-tx);
  cursor: pointer;
}
.mem-acc-check input { width: 14px; height: 14px; margin: 0; }

/* 开通会员页：比会员中心更大，盖住它 */
.mem-mask.mem-buy { z-index: 960; }
.mem-buy-panel {
  width: min(520px, 96vw);
  max-height: min(92vh, 960px);
}
.mem-buy-panel .mem-band { padding: 18px 22px 16px; }
.mem-buy-panel .mem-band h3 { font-size: 17px; }
.mem-buy-panel .mem-body { padding: 20px 22px 22px; }
.mem-buy-panel .mem-perks div { font-size: 12px; padding: 4px 0; }
.mem-buy-panel .mem-plan { padding: 13px 12px; margin-bottom: 8px; }
.mem-buy-panel .mem-plan-n { width: 52px; font-size: 13px; }
.mem-buy-panel .mem-plan-d { font-size: 11px; }
.mem-buy-panel .mem-plan-p { font-size: 18px; }
.mem-buy-panel .mem-plan-go { padding: 7px 14px; font-size: 11px; }
.mem-buy-panel .mem-buy-note { font-size: 10.5px; margin-top: 14px; }

/* ---------- 成就全部页 ---------- */
.mem-mask.mem-achall { z-index: 950; }
.mem-achall-panel { width: min(500px, 96vw); max-height: min(92vh, 940px); }
.mem-achall-group { margin-bottom: 16px; }
.mem-achall-h {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--mem-dm2);
}
.mem-achall-n { color: var(--mem-dm2); }
.mem-achall-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid var(--mem-l);
}
.mem-achall-item:last-child { border-bottom: 0; }
.mem-achall-ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mem-s);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.mem-achall-rainbow {
  background: var(--mem-rainbow);
}
.mem-achall-item:not(.mem-achall-got) .mem-achall-ic {
  filter: grayscale(1);
  opacity: .42;
}
.mem-achall-txt { flex: 1; min-width: 0; }
.mem-achall-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mem-tx);
}
.mem-achall-star { font-size: 8px; color: var(--mem-m); font-weight: 400; }
.mem-achall-ok { margin-left: auto; font-size: 10px; color: var(--mem-m); }
.mem-achall-sub { margin-top: 2px; font-size: 9px; color: var(--mem-dm2); }
.mem-achall-prog {
  margin-top: 5px;
  height: 3px;
  border-radius: 2px;
  background: var(--mem-l);
  overflow: hidden;
}
.mem-achall-prog i { display: block; height: 100%; background: var(--mem-m); }
.mem-achall-item:not(.mem-achall-got) .mem-achall-name { color: var(--mem-dm); }

/* ---------- 消息通知页 ---------- */
.mem-mask.mem-notice { z-index: 950; }
.mem-notice-panel { width: min(500px, 96vw); max-height: min(92vh, 940px); }
.mem-notice-tabs {
  display: flex;
  gap: 16px;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--mem-l);
}
.mem-notice-tab {
  position: relative;
  padding: 6px 0 8px;
  border: 0;
  background: transparent;
  color: var(--mem-dm2);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}
.mem-notice-tab.mem-on { color: var(--mem-tx); font-weight: 700; }
.mem-notice-tab.mem-on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--mem-m);
}
.mem-notice-tab i {
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--mem-m);
  color: var(--mem-card);
  font-style: normal;
  font-size: 8px;
}
.mem-notice-gh { margin: 10px 0 2px; font-size: 9.5px; color: var(--mem-dm2); }
.mem-notice-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mem-l);
}
.mem-notice-item:last-child { border-bottom: 0; }
.mem-notice-ic { flex: none; font-size: 14px; line-height: 1.4; }
.mem-notice-body { flex: 1; min-width: 0; }
.mem-notice-title { display: block; font-size: 11.5px; color: var(--mem-tx); }
.mem-notice-unread .mem-notice-title { font-weight: 700; }
.mem-notice-unread .mem-notice-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--mem-lowbar);
  vertical-align: 2px;
}
.mem-notice-desc {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--mem-dm2);
  line-height: 1.5;
}
.mem-notice-time { flex: none; font-size: 9px; color: var(--mem-dm2); }

.mem-notice-group { margin-bottom: 4px; }

/* 子弹窗打开时，会员中心淡出 */
.mem-mask.mem-hide { opacity: 0 !important; pointer-events: none; }

/* 面板内二级弹窗：轻量淡入淡出 */
.mem-sub { opacity: 0; transition: opacity .22s ease; }
.mem-sub.on { opacity: 1; }

/* ---------- 额度不足弹窗 ---------- */
.mem-mask.mem-quota-box { z-index: 940; }
.mem-quota-panel { width: min(420px, 94vw); }
.mem-quota-p { font-size: 11.5px; line-height: 1.7; color: var(--mem-tx); }
.mem-quota-p b { font-weight: 700; }
.mem-upsell-list-flat { margin-top: 10px; }
.mem-quota-note { margin-top: 9px; font-size: 9.5px; color: var(--mem-dm2); line-height: 1.6; text-align: center; }
.mem-topup-row-flat { display: flex; gap: 8px; margin-top: 10px; }
.mem-topup-row-flat button {
  flex: 1;
  padding: 10px 4px;
  border-radius: 9px;
  border: 1px solid var(--mem-m);
  background: transparent;
  color: var(--mem-m);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.mem-topup-row-flat button:first-child { background: var(--mem-m); color: var(--mem-card); }
.mem-upsell-btn-ghost {
  margin-top: 10px;
  background: transparent;
  border: 1px solid var(--mem-l);
  color: var(--mem-dm);
  font-weight: 400;
}

/* 套餐：默认都一样，悬停（或键盘聚焦）= 选中态 */
.mem-plan {
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.mem-plan:hover,
.mem-plan:focus-within {
  background: var(--mem-s);
  border-color: var(--mem-m);
  box-shadow: inset 0 0 0 1px var(--mem-m);
}
.mem-plan-check { display: none; }
.mem-plan:hover .mem-plan-check,
.mem-plan:focus-within .mem-plan-check { display: inline; }
.mem-plan:hover .mem-plan-go,
.mem-plan:focus-within .mem-plan-go {
  background: var(--mem-m);
  color: var(--mem-card);
  border-color: transparent;
}
.mem-plan-go-txt2 { display: none; }
.mem-plan:hover .mem-plan-go-txt2,
.mem-plan:focus-within .mem-plan-go-txt2 { display: inline; }
.mem-plan:hover .mem-plan-go-txt,
.mem-plan:focus-within .mem-plan-go-txt { display: none; }

/* ============================================================
 * 移动端适配（手机竖屏）
 * ============================================================ */
@media (max-width: 480px) {
  .mem-mask { padding: 12px 8px; }
  .mem-panel { width: 100%; max-height: 94vh; border-radius: 16px; }
  .mem-band { padding: 13px 15px 12px; border-radius: 16px 16px 0 0; }
  .mem-band h3 { font-size: 14px; }
  .mem-body { padding: 13px 15px 15px; }

  .mem-stats { gap: 6px; }
  .mem-stat { padding: 9px 4px; }
  .mem-stat b { font-size: 17px; }

  .mem-sec { margin: 13px 0 7px; }
  .mem-chip { width: 31px; height: 33px; }

  .mem-plan { padding: 9px 8px; gap: 6px; }
  .mem-plan-n { width: 38px; font-size: 11px; }
  .mem-plan-d { font-size: 9.5px; }
  .mem-plan-p { font-size: 14px; }
  .mem-plan-go { padding: 5px 9px; font-size: 9.5px; }

  .mem-buy-panel { width: 100%; }
  .mem-buy-panel .mem-band { padding: 15px 16px 13px; }
  .mem-buy-panel .mem-body { padding: 16px 16px 18px; }
  .mem-buy-panel .mem-plan { padding: 11px 10px; }
  .mem-buy-panel .mem-plan-p { font-size: 16px; }

  .mem-acc-row { padding: 11px 0; }
  .mem-achall-panel, .mem-notice-panel { width: 100%; }
  .mem-theme .mem-sw { gap: 7px; }
}

/* 超窄屏（iPhone SE 等）：优先保名称 + 价格 */
@media (max-width: 360px) {
  .mem-plan-d { max-width: 96px; }
  .mem-buy-panel .mem-plan-d { display: none; }
  .mem-stats { gap: 5px; }
  .mem-stat b { font-size: 16px; }
}

/* 体验卡提示条 */
.mem-trial {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--mem-s);
  border: 1px solid var(--mem-l);
}
.mem-trial-ic { font-size: 14px; }
.mem-trial-t { font-size: 10.5px; color: var(--mem-tx); }
.mem-trial-t b { font-weight: 800; color: var(--mem-m); }

/* 生日横幅 & 生日表单 */
.mem-birthday {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--mem-s);
  border: 1px dashed var(--mem-m);
}
.mem-birthday-ic { font-size: 20px; flex: none; }
.mem-birthday-t { flex: 1; font-size: 11px; color: var(--mem-tx); line-height: 1.5; }
.mem-birthday-t em { font-style: normal; font-size: 9.5px; color: var(--mem-dm2); }
.mem-birthday-go {
  flex: none;
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--mem-m);
  color: var(--mem-card);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.mem-acc-input[type="date"] { color: var(--mem-tx); }

/* 性别选择小弹窗 */
.mem-gender-box { max-width: 260px; }
.mem-gender-list { display: flex; gap: 8px; margin-top: 4px; }
.mem-gender-opt {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--mem-l);
  background: var(--mem-card2);
  color: var(--mem-tx);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, transform .08s;
}
.mem-gender-opt:hover { background: var(--mem-s); }
.mem-gender-opt.mem-on {
  background: var(--mem-m);
  color: var(--mem-card);
  border-color: transparent;
  font-weight: 700;
}
.mem-gender-opt:active { transform: scale(.97); }

/* 账号设置里的独立小弹窗（性别等） */
.mem-sub-fixed {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--mem-ov);
  border-radius: 0;
  animation: memFadeIn .18s ease;
}
.mem-sub-fixed .mem-dlg-box {
  width: 100%;
  max-width: 260px;
  background: var(--mem-card);
  border-radius: 14px;
  box-shadow: 0 18px 44px var(--mem-shadow);
  padding: 16px;
}
@keyframes memFadeIn { from { opacity: 0 } to { opacity: 1 } }

/* 性别小浮层（贴着「性别」这一行） */
.mem-gender-pop {
  position: fixed;
  z-index: 1250;
  display: flex;
  gap: 6px;
  padding: 7px;
  background: var(--mem-card);
  border: 1px solid var(--mem-l);
  border-radius: 11px;
  box-shadow: 0 12px 28px var(--mem-shadow);
  animation: memFadeIn .16s ease;
}
.mem-gender-pop .mem-gender-opt {
  min-width: 58px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--mem-l);
  background: var(--mem-card2);
  color: var(--mem-tx);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: background .14s, color .14s, transform .08s;
}
.mem-gender-pop .mem-gender-opt:hover { background: var(--mem-s); }
.mem-gender-pop .mem-gender-opt.mem-on {
  background: var(--mem-m);
  color: var(--mem-card);
  border-color: transparent;
  font-weight: 700;
}
.mem-gender-pop .mem-gender-opt:active { transform: scale(.96); }

/* 会员中心右上角关闭 */
.mem-close-x{
  position:relative;flex:none;margin-left:6px;
  width:22px;height:22px;border-radius:50%;
  border:1px solid var(--mem-l);background:var(--mem-card);
  color:var(--mem-dm);cursor:pointer;font-family:inherit;font-size:12px;line-height:1;
}
.mem-close-x:hover{background:var(--mem-s);color:var(--mem-tx)}

/* 关闭按钮：固定在面板右上角（铃铛左侧） */
.mem-panel .mem-close-x{
  position:absolute;right:44px;top:11px;z-index:6;
  width:22px;height:22px;margin:0;
}

/* 会员中心底部关闭条 */
.mem-close-bar{
  display:block;width:100%;margin-top:10px;padding:9px 0;
  border:1px solid var(--mem-l);border-radius:10px;
  background:var(--mem-card2);color:var(--mem-dm);
  font-family:inherit;font-size:12px;cursor:pointer;
  transition:background .14s,color .14s;
}
.mem-close-bar:hover{background:var(--mem-s);color:var(--mem-tx)}

/* ---------- 开通会员：人工开通 / 客服 ---------- */
.mem-buy-notice{
  display:flex;flex-direction:column;gap:3px;padding:10px 12px;margin-bottom:12px;
  background:var(--mem-l);border-radius:10px;
}
.mem-buy-notice b{font-size:11.5px;color:var(--mem-tx);}
.mem-buy-notice span{font-size:10px;color:var(--mem-dm);line-height:1.5;}
.mem-cs-entry{
  width:100%;margin-top:10px;padding:10px;border-radius:10px;cursor:pointer;
  background:transparent;border:1px solid var(--mem-l);color:var(--mem-tx);
  font-size:12px;font-weight:600;
}
.mem-cs-entry:hover{background:var(--mem-l);}
.mem-cs-faq{margin-top:14px;padding-top:11px;border-top:1px solid var(--mem-l);}
.mem-cs-faq-t{font-size:10px;color:var(--mem-dm2);letter-spacing:.06em;margin-bottom:6px;}
.mem-cs-faq div{font-size:10px;line-height:1.7;color:var(--mem-dm);}

.mem-mask.mem-cs{z-index:970;}
.mem-cs-panel{width:min(360px,92vw);}
.mem-cs-panel .mem-body{padding:16px 18px 18px;}
.mem-cs-steps{display:flex;flex-direction:column;gap:7px;margin-bottom:13px;}
.mem-cs-steps div{display:flex;gap:8px;align-items:flex-start;font-size:11px;line-height:1.55;color:var(--mem-tx);}
.mem-cs-steps b{
  flex:none;width:17px;height:17px;border-radius:50%;background:var(--mem-m);
  color:var(--mem-card);font-size:10px;display:flex;align-items:center;justify-content:center;
}
.mem-cs-qr-wrap{
  display:flex;align-items:center;justify-content:center;padding:10px;margin-bottom:11px;
  background:var(--mem-l);border-radius:12px;min-height:150px;
}
.mem-cs-qr{width:min(170px,42vw);height:min(170px,42vw);border-radius:8px;display:block;object-fit:contain;}
.mem-cs-qr-fallback{
  display:none;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  width:min(170px,42vw);height:min(170px,42vw);border-radius:8px;border:1px dashed var(--mem-dm2);
  font-size:10px;color:var(--mem-dm);text-align:center;line-height:1.5;
}
.mem-cs-qr-fallback small{font-size:8.5px;color:var(--mem-dm2);}
.mem-cs-wx{
  display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:10px;
  background:var(--mem-l);margin-bottom:8px;
}
.mem-cs-wx-lb{font-size:10px;color:var(--mem-dm2);flex:none;}
.mem-cs-wx-id{flex:1;font-size:12px;font-weight:700;color:var(--mem-tx);word-break:break-all;}
.mem-cs-copy{
  flex:none;border:1px solid var(--mem-l);background:var(--mem-card);color:var(--mem-tx);
  font-size:10px;padding:4px 9px;border-radius:7px;cursor:pointer;
}
.mem-cs-copy:hover{background:var(--mem-l);}
.mem-cs-note{font-size:9.5px;color:var(--mem-dm2);text-align:center;line-height:1.6;}

.mem-cs-pending{padding:18px 4px 10px;text-align:center;}
.mem-cs-pending-ic{font-size:26px;line-height:1;margin-bottom:10px;}
.mem-cs-pending-t{font-size:13px;font-weight:700;color:var(--mem-tx);margin-bottom:7px;}
.mem-cs-pending-d{font-size:10.5px;color:var(--mem-dm);line-height:1.65;}
