/* ===== CMS 会员中心 · 商务专业版 ===== */
:root {
  /* 与 Element Plus 对齐 */
  --mm-primary: #337ecc;
  --mm-primary-2: #409eff;
  --mm-primary-3: #79bbff;
  --mm-primary-bg: #ecf5ff;
  --mm-success: #67c23a;
  --mm-success-bg: #f0f9eb;
  --mm-warning: #e6a23c;
  --mm-warning-bg: #fdf6ec;
  --mm-danger: #f56c6c;
  --mm-danger-bg: #fef0f0;
  --mm-gold: #e6a23c;
  --mm-gold-2: #cf9236;
  --mm-ink: #303133;
  --mm-body: #606266;
  --mm-muted: #909399;
  --mm-line: #dcdfe6;
  --mm-line-light: #e4e7ed;
  --mm-bg: #f2f6fc;
  --mm-card: #ffffff;
  --mm-radius: 10px;
  --mm-radius-base: 4px;
  --mm-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --mm-shadow-hover: 0 4px 12px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.10);
}

.cms-member-page {
  padding: 32px 0 56px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  min-height: 60vh;
}

.member-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) { .member-layout { grid-template-columns: 1fr; } }

/* ---- 卡片基础 ---- */
.member-card {
  background: var(--mm-card);
  border-radius: var(--mm-radius);
  border: 1px solid var(--mm-line);
  box-shadow: var(--mm-shadow);
  overflow: hidden;
}

/* ---- 顶部会员横幅 ---- */
.member-topbar {
  position: relative;
  isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 30px;
  margin-bottom: 24px;
  color: #fff;
  overflow: hidden;
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow);
  background-color: #10235c;
  background-image:
    radial-gradient(circle at 14% 6%, rgba(56, 189, 248, .22), transparent 46%),
    radial-gradient(circle at 88% 110%, rgba(129, 140, 248, .20), transparent 48%),
    radial-gradient(rgba(148, 233, 255, .09) 1px, transparent 1.6px),
    linear-gradient(135deg, #0e1f55 0%, #1b3aa0 48%, #1263c0 115%);
  background-size: auto, auto, 22px 22px, auto;
}

/* ---- 顶部横幅 · 科技动态背景 ---- */
.tb-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

/* 旋转虚线圆环 */
.tb-ring {
  position: absolute;
  width: 240px; height: 240px;
  right: -70px; top: -120px;
  border: 1.5px dashed rgba(125, 211, 252, .40);
  border-radius: 50%;
  animation: tbSpin 26s linear infinite;
}
.tb-ring::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  top: -6px; left: 34%;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 10px 2px rgba(125, 211, 252, .8);
}
.tb-r2 {
  width: 150px; height: 150px;
  right: -26px; bottom: -58px; top: auto;
  border-color: rgba(165, 180, 252, .34);
  border-style: solid;
  border-width: 1px;
  animation: tbSpin 18s linear infinite reverse;
}
.tb-r2::before {
  width: 6px; height: 6px;
  top: auto; left: auto;
  right: 18px; bottom: -3px;
  background: #a5b4fc;
  box-shadow: 0 0 8px 2px rgba(165, 180, 252, .7);
}
.tb-r3 {
  width: 88px; height: 88px;
  left: 31%; top: -40px;
  border: 1px solid rgba(125, 211, 252, .22);
  animation: tbSpin 12s linear infinite;
}
.tb-r3::before {
  width: 5px; height: 5px;
  top: auto; left: auto; bottom: -2px; right: 26px;
  background: rgba(186, 230, 253, .7);
  box-shadow: 0 0 6px 1px rgba(186, 230, 253, .5);
}

/* 上升发光粒子 */
.tb-dots { position: absolute; inset: 0; }
.tb-dots i {
  position: absolute;
  bottom: -12px;
  width: var(--s, 5px); height: var(--s, 5px);
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 8px 2px rgba(125, 211, 252, .55);
  opacity: 0;
  animation: tbFloat var(--d, 7s) var(--delay, 0s) linear infinite;
}
.tb-dots i:nth-child(1)  { left: 6%;  --s: 4px; --d: 6.5s; --delay: 0s;    --dx: 14px; }
.tb-dots i:nth-child(2)  { left: 15%; --s: 3px; --d: 8.0s; --delay: 1.1s;  --dx: -10px; }
.tb-dots i:nth-child(3)  { left: 24%; --s: 5px; --d: 7.2s; --delay: 2.4s;  --dx: 22px; }
.tb-dots i:nth-child(4)  { left: 33%; --s: 3px; --d: 9.0s; --delay: .6s;   --dx: -16px; }
.tb-dots i:nth-child(5)  { left: 42%; --s: 4px; --d: 6.0s; --delay: 3.2s;  --dx: 10px; }
.tb-dots i:nth-child(6)  { left: 52%; --s: 3px; --d: 7.8s; --delay: 1.8s;  --dx: -12px; }
.tb-dots i:nth-child(7)  { left: 62%; --s: 5px; --d: 8.6s; --delay: .2s;   --dx: 18px; }
.tb-dots i:nth-child(8)  { left: 71%; --s: 3px; --d: 6.8s; --delay: 2.9s;  --dx: -8px; }
.tb-dots i:nth-child(9)  { left: 80%; --s: 4px; --d: 7.5s; --delay: 4.1s;  --dx: 12px; }
.tb-dots i:nth-child(10) { left: 88%; --s: 3px; --d: 9.2s; --delay: 1.4s;  --dx: -20px; }
.tb-dots i:nth-child(11) { left: 94%; --s: 5px; --d: 6.2s; --delay: 3.6s;  --dx: 8px; }
.tb-dots i:nth-child(12) { left: 50%; --s: 4px; --d: 8.4s; --delay: 5.2s;  --dx: 24px; }

/* 横向扫描光带 */
.tb-scan {
  position: absolute;
  top: -10px; bottom: -10px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(125, 211, 252, .5), transparent);
  box-shadow: 0 0 14px 2px rgba(56, 189, 248, .35);
  opacity: 0;
  animation: tbScan 9s ease-in-out infinite;
}

@keyframes tbSpin {
  to { transform: rotate(360deg); }
}
@keyframes tbFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: .9; }
  70%  { opacity: .45; }
  100% { transform: translate3d(var(--dx, 20px), -320px, 0) scale(.35); opacity: 0; }
}
@keyframes tbScan {
  0%   { left: -4%; opacity: 0; }
  8%   { opacity: .75; }
  92%  { opacity: .6; }
  100% { left: 102%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-ring, .tb-dots i, .tb-scan { animation: none !important; }
  .tb-dots i { display: none; }
}

.member-topbar-info {
  display: flex; align-items: center; gap: 18px;
  position: relative; z-index: 1;
}
.member-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 3px solid rgba(255,255,255,.7);
  color: #fff; font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  flex-shrink: 0;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-topbar-meta {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.member-topbar-name {
  font-size: 18px; font-weight: 700;
  letter-spacing: .2px;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.member-topbar-sub {
  font-size: 13px; opacity: .85;
  color: rgba(255,255,255,.92);
}
.member-vip-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  color: #fff; background: linear-gradient(90deg, #f59e0b, #d97706);
  border-radius: 999px; padding: 4px 12px;
  box-shadow: 0 2px 8px rgba(217,119,6,.35);
  letter-spacing: .3px;
  margin-top: 2px;
}
.member-topbar-actions {
  display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.cms-btn-ghost {
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
  backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; justify-content: center;
}
.cms-btn-ghost:hover {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.9);
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .member-topbar { flex-direction: column; align-items: flex-start; padding: 20px;margin-top: 20px; }
  .member-topbar-actions { width: 100%; justify-content: flex-end; }
}

/* ---- 导航 ---- */
.member-nav { padding: 14px 12px 18px; }
.member-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: 10px;
  color: var(--mm-body); text-decoration: none;
  font-size: 14px; font-weight: 500;
  position: relative;
  transition: background .18s, color .18s, box-shadow .18s;
}
.member-nav a + a { margin-top: 2px; }
.member-nav a:hover {
  background: #f1f5f9;
  color: var(--mm-primary);
}
.member-nav a.on {
  background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--mm-primary);
  font-weight: 600;
}
.member-nav-icon {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: currentColor;
  opacity: .85;
}
.member-nav a.on .member-nav-icon { opacity: 1; }

/* ---- 主面板 ---- */
.member-panel { padding: 26px 28px 30px; }
.member-panel h3 {
  margin: 0 0 20px;
  font-size: 18px; font-weight: 700;
  color: var(--mm-ink);
  display: flex; align-items: center; gap: 10px;
  position: relative;
  padding-left: 12px;
}
.member-panel h3::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--mm-primary-2), var(--mm-primary-3));
}

/* ---- 资产概览 ---- */
.member-assets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
@media (max-width: 720px) { .member-assets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .member-assets { grid-template-columns: 1fr; } }

.asset-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: 12px;
  min-height: 152px;
  padding: 18px 14px 16px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  overflow: hidden;
}
.asset-box::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  opacity: .8;
}
.asset-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,.08);
  border-color: #cbd5e1;
}
.asset-box .asset-ico {
  flex: none;
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 13px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--mm-primary-2);
}
.asset-box .asset-ico svg { width: 19px; height: 19px; }
.asset-box > span {
  max-width: 100%;
  font-size: 12px; color: var(--mm-muted);
  font-weight: 500; letter-spacing: .4px;
  line-height: 1.3;
  margin-bottom: 7px;
}
.asset-box b {
  max-width: 100%;
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap;
  font-size: 24px; font-weight: 800;
  color: var(--mm-ink);
  letter-spacing: -.5px;
  line-height: 1.15;
}
.asset-box .asset-vip-sub {
  display: block; font-style: normal;
  max-width: 100%;
  font-size: 11px; font-weight: 600;
  color: #b45309;
  letter-spacing: .2px;
  line-height: 1.4;
  margin-top: 5px;
  word-break: break-all;
}
/* 有效期倒计时徽章 */
.asset-cd {
  display: inline-flex; align-items: center;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px; font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.asset-cd.cd-urgent { background: #fee2e2; color: #dc2626; }
.asset-cd.cd-warn   { background: #fef3c7; color: #b45309; }
.asset-cd.cd-safe   { background: #dcfce7; color: #16a34a; }
.asset-cd.cd-long   { background: #eef2ff; color: #4f46e5; }
.asset-box.asset-gold .asset-ico { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #d97706; }
.asset-box.asset-comm .asset-ico { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #059669; }
.asset-box.asset-cards { cursor: pointer; }
.asset-box.asset-cards .asset-ico { background: linear-gradient(135deg, #eff6ff, #e0e7ff); color: #4f46e5; }
.asset-box.asset-cards .asset-vip-sub { color: #4f46e5; }
.asset-box.asset-cards:hover::before { background: linear-gradient(180deg, #6366f1, #8b5cf6); }
.asset-box.asset-vip .asset-ico { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #ea580c; }
/* 内容 VIP 生效中的资产卡高亮 */
.asset-box.asset-vip.on { background: linear-gradient(180deg, #fffbeb, #fff7ed); border-color: #fcd34d; }
.asset-box.asset-vip.on .asset-ico { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.asset-box.asset-vip .asset-vip-on { color: #d97706; font-size: 27px; }

/* ---- 资产概览 v2 · 金币主资产卡（充值信息一站式） ---- */
.asset-main {
  position: relative;
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: 14px;
  padding: 20px 22px 18px;
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.asset-main::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  opacity: .9;
}
.asset-main:hover { box-shadow: var(--mm-shadow-hover); }
.am-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.am-head { display: flex; align-items: center; gap: 15px; min-width: 0; }
.am-ico {
  flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fffbeb, #fde68a);
  color: var(--mm-gold-2);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, .14);
}
.am-ico svg { width: 26px; height: 26px; }
.am-meta { min-width: 0; }
.am-label {
  display: block;
  font-size: 12px; color: var(--mm-muted);
  font-weight: 600; letter-spacing: .5px;
  margin-bottom: 4px;
}
.am-numline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.am-num { font-size: 32px; line-height: 1.1; font-weight: 800; color: var(--mm-ink); letter-spacing: -1px; }
.am-worth {
  font-style: normal;
  font-size: 12px; font-weight: 600;
  color: var(--mm-gold-2);
  background: #fef3c7;
  padding: 2px 9px; border-radius: 999px;
  white-space: nowrap;
}
.am-sub { display: block; font-size: 12px; color: var(--mm-muted); margin-top: 4px; }
.am-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.am-ident {
  display: inline-flex; align-items: center;
  padding: 4px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.am-ident.ident-vip {
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(217, 119, 6, .28);
  transition: transform .15s, box-shadow .15s;
}
.am-ident.ident-vip:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(217, 119, 6, .38); }
.am-ident.ident-vip.urgent { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 4px 12px rgba(220, 38, 38, .28); }
.am-ident.ident-vip.urgent:hover { box-shadow: 0 6px 16px rgba(220, 38, 38, .38); }
.am-ident.ident-lv { background: #f1f5f9; color: var(--mm-body); border: 1px solid var(--mm-line); }
.am-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.am-actions .cms-submit { width: auto; padding: 9px 26px; }
.am-btn-sub {
  border: 1px solid var(--mm-line);
  background: #fff; color: var(--mm-primary-2);
  border-radius: 10px;
  padding: 9px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.am-btn-sub:hover { border-color: var(--mm-primary-2); background: #eff6ff; }
.am-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 16px; padding-top: 15px;
  border-top: 1px dashed var(--mm-line);
}
.am-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 15px; border-radius: 999px;
  cursor: pointer;
  background: #f8fafc; border: 1px solid var(--mm-line);
  font-size: 12px; color: var(--mm-muted);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.am-chip:hover { background: #fff; border-color: #93c5fd; box-shadow: 0 2px 8px rgba(37, 99, 235, .12); }
.am-chip .ac-l { font-weight: 500; }
.am-chip .ac-v { color: var(--mm-primary-2); font-weight: 800; letter-spacing: .2px; }
/* 可点击跳转的次资产卡 */
.asset-box.asset-go { cursor: pointer; }
.asset-box.asset-go:hover { border-color: #c7d2fe; }
.asset-box.asset-go .asset-go-sub {
  display: block; margin-top: 6px;
  font-style: normal;
  font-size: 11px; font-weight: 600;
  color: #6366f1;
  max-width: 100%;
}
.asset-box.asset-star .asset-ico { background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: #6366f1; }
@media (max-width: 720px) {
  .asset-main { padding: 16px 16px 14px; }
  .am-ico { width: 44px; height: 44px; border-radius: 12px; }
  .am-ico svg { width: 22px; height: 22px; }
  .am-num { font-size: 26px; }
  .am-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .am-actions { width: 100%; }
  .am-actions .cms-submit, .am-actions .am-btn-sub { flex: 1; }
}

/* 概览底部说明 */
.member-overview-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--mm-line);
  border-left: 3px solid var(--mm-primary-2);
  border-radius: 10px;
  font-size: 13px; line-height: 1.8;
  color: var(--mm-muted);
}
.member-overview-note b { color: var(--mm-body); }
.member-overview-note a { color: var(--mm-primary-2); font-weight: 600; text-decoration: none; }
.member-overview-note a:hover { text-decoration: underline; }
.mm-note-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }

/* ---- VIP 卡列表 ---- */
.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.vip-plan {
  position: relative;
  border: 1px solid var(--mm-line);
  border-radius: 14px;
  padding: 24px 20px 22px;
  text-align: center;
  background: #fff;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.vip-plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--mm-shadow-hover);
  border-color: #cbd5e1;
}
.vip-plan .plan-crown {
  width: 44px; height: 44px; border-radius: 12px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #d97706;
}
.vip-plan .plan-crown svg { width: 24px; height: 24px; }
.vip-plan .plan-name {
  font-size: 15px; font-weight: 700; color: var(--mm-ink);
}
.vip-plan .plan-price {
  font-size: 30px; font-weight: 800; color: #e11d48;
  margin: 12px 0 4px;
  letter-spacing: -.5px;
}
.vip-plan .plan-price em.plan-coin {
  font-style: normal; font-size: 13px; font-weight: 600;
  color: #b45309; margin-left: 4px;
}
.vip-plan .plan-price small {
  font-size: 13px; font-weight: 400; color: #94a3b8;
}
.vip-plan .plan-desc {
  color: var(--mm-muted); font-size: 13px;
  margin-bottom: 16px; line-height: 1.6;
}
.vip-plan .plan-btn {
  width: 100%; border: 1px solid var(--mm-warning); cursor: pointer;
  padding: 11px; border-radius: var(--mm-radius);
  color: #fff; font-size: 14px; font-weight: 500;
  background: var(--mm-warning);
  transition: background .1s, border-color .1s;
}
.vip-plan .plan-btn:hover { background: #ebb563; border-color: #ebb563; }
.vip-plan .plan-btn:active { background: var(--mm-gold-2); border-color: var(--mm-gold-2); }
.vip-plan.owned {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #f0fdf4, #fff);
}
.vip-plan.owned .plan-crown {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
}
.vip-plan .plan-owned {
  color: #15803d; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 0;
}

/* ---- 表格 ---- */
.cms-table-wrap {
  border: 1px solid var(--mm-line);
  border-radius: 12px;
  overflow: hidden;
}
.cms-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cms-table th, .cms-table td {
  text-align: left; padding: 13px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.cms-table thead th {
  color: var(--mm-muted); font-weight: 600;
  background: #f8fafc;
  font-size: 13px;
  letter-spacing: .2px;
  border-bottom: 1px solid var(--mm-line);
}
.cms-table tbody tr { transition: background .15s; }
.cms-table tbody tr:hover { background: #f8fafc; }
.cms-table tbody tr:last-child td { border-bottom: none; }
.cms-table a { color: var(--mm-primary-2); text-decoration: none; font-weight: 500; }
.cms-table a:hover { text-decoration: underline; }

.empty-tip-m {
  color: var(--mm-muted); text-align: center;
  padding: 40px 0; font-size: 14px;
}

/* ---- 充值预设 ---- */
.cms-recharge-preset {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.cms-recharge-preset button {
  min-width: 88px;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  background: #fff;
  padding: 12px 18px;
  cursor: pointer; font-size: 14px; font-weight: 500;
  color: var(--mm-body);
  transition: background .1s, border-color .1s, color .1s;
  position: relative;
}
.cms-recharge-preset button:hover {
  border-color: #c0c4cc;
  color: var(--mm-primary-2);
  background: #f5f7fa;
}
.cms-recharge-preset button.on {
  border-color: var(--mm-primary-2);
  color: #fff;
  background: var(--mm-primary-2);
}
.cms-recharge-preset button.on::after {
  content: '';
  position: absolute; top: 8px; right: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
}
.cms-recharge-note {
  margin-top: 12px; font-size: 12px;
  color: var(--mm-muted); line-height: 1.8;
}

/* ---- 积分兑换 ---- */
.cms-exchange-box { max-width: 420px; }
.cms-exchange-rule {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fffbeb, #fefce8);
  border: 1px solid #fde68a;
  color: #92400e; font-size: 13px; line-height: 2;
}
.cms-exchange-rule b { color: #b45309; font-weight: 700; }
.cms-exchange-hint {
  margin-top: 12px; font-size: 12px;
  color: var(--mm-muted); line-height: 1.8;
}

/* ---- 订单待支付 · 资产卡（与资产概览卡统一视觉） ---- */
.asset-box.cms-pay-order {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.asset-box.cms-pay-order::before {
  background: linear-gradient(180deg, #1d4ed8, #60a5fa);
}
.asset-box.cms-pay-order:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--mm-line);
}
.asset-box.cms-pay-order .asset-ico {
  margin-bottom: 0;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
}
.cms-pay-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cms-pay-label {
  display: block;
  font-size: 12px; color: var(--mm-muted);
  font-weight: 500; letter-spacing: .4px;
  margin-bottom: 6px;
}
.cms-pay-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.cms-pay-money {
  font-size: 30px; line-height: 1.1;
  font-weight: 800; color: var(--mm-ink);
  letter-spacing: -.5px;
}
.cms-pay-channel {
  display: inline-flex; align-items: center;
  font-style: normal;
  font-size: 11px; font-weight: 700;
  color: #1d4ed8; background: #dbeafe;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
}
.cms-pay-order-no {
  display: block;
  margin-top: 7px;
  font-size: 12px; color: var(--mm-muted);
  word-break: break-all;
}
@media (max-width: 480px) {
  .asset-box.cms-pay-order { padding: 15px 14px; gap: 12px; }
  .cms-pay-money { font-size: 26px; }
}

/* ---- 支付面板 ---- */
.cms-pay-switch {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; padding-top: 16px;
  border-top: 1px dashed var(--mm-line);
}
.cms-pay-alt {
  border: 1px solid var(--mm-line); background: #fff; color: var(--mm-body);
  border-radius: var(--mm-radius); padding: 7px 16px;
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: background .1s, border-color .1s, color .1s;
}
.cms-pay-alt:hover {
  border-color: var(--mm-primary-2); color: var(--mm-primary-2);
  background: var(--mm-primary-bg);
}
.cms-pay-alt:disabled { opacity: .5; cursor: not-allowed; }

/* ---- 支付二维码视觉（品牌色 + 中心图标 + 右侧扫码指引） ---- */
.cms-pay-qr-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 2px 0;
}
.cms-pay-qr-box {
  position: relative;
  flex: none;
  display: inline-flex;
  padding: 12px;
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}
.cms-pay-qr-box #cmsPayQr img,
.cms-pay-qr-box #cmsPayQr canvas { display: block; }
/* 斗拱（汇付）聚合扫码：二维码卡商务蓝描边，呼应通道品牌色 */
.cms-pay-qr-row.cms-pay-brand-dual .cms-pay-qr-box {
  border-color: #bfdbfe;
  box-shadow: 0 2px 16px rgba(29, 78, 216, .10);
}
.cms-pay-qr-logo {
  position: absolute;
  left: 50%; top: 50%;
  width: 48px; height: 48px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(15, 23, 42, .15);
  pointer-events: none;
}
.cms-pay-qr-logo svg { width: 31px; height: 31px; display: block; }
.cms-pay-qr-guide {
  flex: none;
  min-width: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0 6px 24px;
  border-left: 1px dashed #d6dce3;
  text-align: center;
}
.cms-pay-guide-phone { width: 88px; height: auto; display: block; }
.cms-pay-guide-txt { font-size: 13px; color: var(--mm-muted); line-height: 1.8; }
.cms-pay-guide-txt b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-right: -2px;
}
@media (max-width: 620px) {
  .cms-pay-qr-row { gap: 16px; }
  .cms-pay-qr-guide {
    flex-direction: row;
    width: 100%;
    min-width: 0;
    gap: 12px;
    padding: 10px 0 0;
    border-left: none;
    border-top: 1px dashed #d6dce3;
  }
  .cms-pay-guide-phone { width: 66px; }
}

/* ---- 支付倒计时 / 超时提示 ---- */
.cms-pay-timer {
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  text-align: center;
  line-height: 1.7;
}
.cms-pay-timer-warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
  font-weight: 600;
}
.cms-pay-timeout-note {
  margin-top: 16px;
  padding: 10px 14px;
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  line-height: 1.9;
  color: var(--mm-muted);
}
.cms-pay-timeout-note b { color: #b45309; }
.cms-pay-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--mm-line);
}

/* ---- 资金服务 ---- */
.cms-svc-box {
  border: 1px solid var(--mm-line);
  border-radius: 14px;
  padding: 22px 22px 20px;
  margin-bottom: 18px;
  background: #fff;
  transition: box-shadow .2s;
}
.cms-svc-box:hover { box-shadow: 0 4px 16px rgba(15,23,42,.05); }
.cms-svc-box h4 {
  margin: 0 0 14px;
  font-size: 15px; font-weight: 700;
  color: var(--mm-ink);
  display: flex; align-items: center; gap: 8px;
}
.cms-svc-box h4::before {
  content: '';
  width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--mm-primary-2), var(--mm-primary-3));
}
.cms-svc-rule {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--mm-body);
  font-size: 13px; line-height: 2.1;
}
.cms-svc-rule b { color: var(--mm-ink); font-weight: 700; }
.cms-svc-rule a { color: var(--mm-primary-2); }
.cms-agree {
  display: flex; align-items: flex-start; gap: 7px;
  margin: 14px 0 10px;
  font-size: 13px; color: var(--mm-body); line-height: 1.7;
  max-width: 420px;
}
.cms-agree a { color: var(--mm-primary-2); }
.cms-agree input { margin-top: 3px; }
.cms-radio-row {
  display: flex; gap: 16px; margin: 12px 0;
  flex-wrap: wrap;
}
.cms-radio-row label {
  font-size: 14px; color: var(--mm-body);
  display: flex; align-items: center; gap: 5px;
  cursor: pointer;
}
.cms-area {
  width: 100%; max-width: 420px;
  min-height: 80px; box-sizing: border-box;
  margin-bottom: 12px;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  padding: 11px 14px;
  font-size: 14px; color: var(--mm-ink);
  font-family: inherit;
  resize: vertical;
  transition: border-color .1s, box-shadow .1s;
}
.cms-area:hover { border-color: #c0c4cc; }
.cms-area:focus {
  outline: none;
  border-color: var(--mm-primary-2);
  box-shadow: 0 0 0 2px rgba(64,158,255,.12);
}

/* ---- 状态标签 ---- */
.cms-status {
  font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  display: inline-block;
}
.cms-status.s0 { background: #fff7e6; color: #d46b08; }
.cms-status.s1 { background: #f6ffed; color: #389e0d; }
.cms-status.s2 { background: #fff1f0; color: #cf1322; }
.cms-status.w1 { background: #fff7e6; color: #d46b08; }
.cms-status.w2 { background: #e6f4ff; color: #1677ff; }
.cms-status.w3 { background: #fff1f0; color: #cf1322; }

/* ---- 会员中心按钮增强(Element Plus 扁平,局部) ---- */
.cms-member-page .cms-submit {
  border: 1px solid var(--mm-primary-2); cursor: pointer;
  border-radius: var(--mm-radius);
  color: #fff; font-size: 14px; font-weight: 500;
  background: var(--mm-primary-2);
  transition: background .1s, border-color .1s;
  box-shadow: none;
}
.cms-member-page .cms-submit:hover {
  background: var(--mm-primary-3);
  border-color: var(--mm-primary-3);
}
.cms-member-page .cms-submit:active {
  background: var(--mm-primary);
  border-color: var(--mm-primary);
}
.cms-member-page .cms-submit:disabled {
  opacity: .5; cursor: not-allowed;
}
.cms-member-page .cms-field input {
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  padding: 9px 13px;
  font-size: 14px; color: var(--mm-ink);
  transition: border-color .1s, box-shadow .1s;
}
.cms-member-page .cms-field input:hover { border-color: #c0c4cc; }
.cms-member-page .cms-field input:focus {
  outline: none;
  border-color: var(--mm-primary-2);
  box-shadow: 0 0 0 2px rgba(64,158,255,.12);
}

/* ---- 分页 ---- */
.cms-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 18px;
}
.cms-pager .cms-page-info { color: var(--mm-muted); font-size: 13px; }

/* ---- 入场动画 ---- */
.cms-member-view > * { animation: mmFadeIn .35s ease both; }
@keyframes mmFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
 * 会员中心扩展：分组导航 / 每日签到 / 充值记录 / 资产流水
 * 消费记录 / 购卡中心 / 我的卡 / 分佣明细 / 资料设置
 * ========================================================= */
/* ---- 侧栏分组标题 ---- */
.member-nav .member-nav-group {
  margin: 18px 10px 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px;
  color: #94a3b8;
}
.member-nav .member-nav-group:first-child { margin-top: 2px; }

/* ---- 分段筛选 ---- */
.cms-seg {
  display: inline-flex;
  background: #eef2f7;
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
  margin: 2px 0 16px;
  flex-wrap: wrap;
}
.cms-seg button {
  border: none; background: transparent;
  padding: 7px 18px; border-radius: 8px;
  cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--mm-muted);
  transition: all .15s;
}
.cms-seg button:hover { color: var(--mm-primary); }
.cms-seg button.on {
  background: #fff; color: var(--mm-primary);
  box-shadow: 0 1px 4px rgba(15,23,42,.12);
}

/* ---- 通用状态徽章 ---- */
.cms-tag {
  display: inline-block;
  padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  background: #f1f5f9; color: #475569;
  white-space: nowrap;
}
.cms-tag.tg-green { background: #dcfce7; color: #15803d; }
.cms-tag.tg-amber { background: #fef3c7; color: #b45309; }
.cms-tag.tg-red   { background: #fee2e2; color: #b91c1c; }
.cms-tag.tg-blue  { background: #dbeafe; color: #1d4ed8; }
.cms-tag.tg-gray  { background: #e2e8f0; color: #64748b; }

/* ---- 金额/积分变动 ---- */
.money-plus  { color: #16a34a; font-weight: 700; }
.money-minus { color: #dc2626; font-weight: 700; }
.money-zero  { color: #94a3b8; }
.flow-cur {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px; font-weight: 600;
  color: #64748b; background: #f1f5f9;
  border-radius: 5px; padding: 1px 6px;
  vertical-align: 1px;
}

/* ---- 表格内辅助文字 ---- */
.flow-time { color: #94a3b8; font-size: 12px; white-space: nowrap; }
.flow-order {
  color: #94a3b8; font-size: 12px;
  font-family: Consolas, Menlo, monospace;
  margin-top: 3px; word-break: break-all;
}
.flow-remark { color: var(--mm-ink); font-weight: 500; }
.cms-table-wrap { overflow-x: auto; }
.cms-table { min-width: 560px; }
.cms-table th, .cms-table td { vertical-align: middle; }

/* ---- 分页按钮 ---- */
.cms-pager .cms-pager-btn {
  border: 1px solid var(--mm-line);
  background: #fff; color: var(--mm-primary-2);
  border-radius: 8px; padding: 8px 20px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.cms-pager .cms-pager-btn:hover {
  border-color: var(--mm-primary-2);
  box-shadow: 0 2px 8px rgba(37,99,235,.16);
}

/* ---- 每日签到 ---- */
.sign-hero {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
}
.sign-metrics { display: flex; gap: 12px; flex-wrap: wrap; }
.sign-metric {
  min-width: 128px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: 12px;
  padding: 14px 18px;
}
.sign-metric b {
  display: block;
  font-size: 24px; font-weight: 800;
  color: var(--mm-primary);
  letter-spacing: -.5px;
}
.sign-metric span { font-size: 12px; color: var(--mm-muted); }
.sign-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sign-btn { width: auto; padding: 12px 42px; font-size: 15px; }
.sign-done {
  color: #15803d; font-weight: 700;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 30px;
}
.sign-note {
  max-width: 320px;
  text-align: center;
  font-size: 12px; color: var(--mm-muted);
  line-height: 1.8;
}

/* ---- 分佣汇总 ---- */
.comm-summary {
  display: flex; gap: 30px; flex-wrap: wrap;
  margin: 2px 0 14px;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1px solid var(--mm-line);
  border-radius: 10px;
}
.comm-summary-item {
  font-size: 13px; color: var(--mm-muted);
  display: inline-flex; align-items: baseline; gap: 8px;
}
.comm-summary-item b { font-size: 20px; font-weight: 800; color: var(--mm-ink); }

/* ---- 购卡中心卡片类型 ---- */
.plan-type-tag {
  display: inline-block;
  margin: 8px auto 0;
  padding: 2px 11px; border-radius: 999px;
  background: #eff6ff; color: var(--mm-primary-2);
  font-size: 12px; font-weight: 600;
}
.vip-plan .plan-ico {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--mm-primary-2);
}
.vip-plan .plan-ico svg { width: 24px; height: 24px; }

/* ---- 资料设置表单 ---- */
.cms-member-page .cms-field {
  display: flex; flex-direction: column;
  gap: 6px; margin-bottom: 14px;
  max-width: 480px;
}
.cms-member-page .cms-lbl {
  font-size: 13px; font-weight: 600;
  color: var(--mm-body);
}
.cms-member-page .cms-inp {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--mm-line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px; font-family: inherit;
  color: var(--mm-ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.cms-member-page .cms-inp:focus {
  outline: none;
  border-color: var(--mm-primary-2);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.cms-member-page .cms-inp:disabled { background: #f8fafc; color: #94a3b8; }
.cms-inline-row {
  display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.cms-mini-btn {
  margin-left: 8px;
  border: 1px solid #cbd5e1;
  background: #fff; color: var(--mm-primary-2);
  border-radius: 7px; padding: 2px 12px;
  font-size: 12px; cursor: pointer;
  vertical-align: middle;
  transition: all .15s;
}
.cms-mini-btn:hover {
  border-color: var(--mm-primary-2);
  background: #eff6ff;
}
.profile-note {
  margin-top: 8px;
  font-size: 12px; color: var(--mm-muted);
  line-height: 1.8;
}
.cms-empty-act { text-align: center; padding: 2px 0 16px; }

/* ---- 资料表单双栏 ---- */
.pf-box { max-width: none !important; }
.pf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  margin-bottom: 8px;
}
.pf-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.pf-row .cms-lbl {
  text-align: right;
  margin: 0;
  font-size: 13px;
  color: var(--mm-body);
  font-weight: 600;
  white-space: nowrap;
}
.pf-row .cms-inp { margin: 0; }

/* ---- 资料表单 · 头像上传 ---- */
.pf-avatar-row { grid-column: 1 / -1; }
.pf-avatar-cell { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.pf-avatar-preview {
  width: 74px; height: 74px; border-radius: 50%;
  flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1b3aa0, #337ecc);
  color: #fff; font-size: 28px; font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(15,23,42,.16);
}
.pf-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.pf-avatar-letter { font-style: normal; }
.pf-avatar-meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pf-avatar-actions { display: flex; align-items: center; gap: 10px; }
.pf-avatar-actions .cms-mini-btn { margin-left: 0; padding: 6px 16px; font-size: 13px; }
.pf-avatar-actions .pf-avatar-remove { color: var(--mm-danger); border-color: #f3b6b6; }
.pf-avatar-actions .pf-avatar-remove:hover { background: var(--mm-danger-bg); border-color: var(--mm-danger); color: var(--mm-danger); }
.pf-avatar-hint { font-size: 12px; color: var(--mm-muted); line-height: 1.6; }
@media (max-width: 720px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-row { grid-template-columns: 1fr; gap: 6px; align-items: stretch; }
  .pf-row .cms-lbl { text-align: left; }
}

