/* member.html */
/* ========== 会员中心 - 版式复刻（主色品牌绿 #21983E） ========== */
  .mb-wrap {
    /* 本地作用域令牌：与会员中心同名变量对齐，避免污染全站 */
    --primary:#21983E; --primary-dark:#177A2F; --primary-soft:#EAF7EE; --primary-soft-2:#F1FAF3;
    --border-light:#EDEFF3; --border:#E6E9EF; --text-1:#1f2329; --text-2:#4b5159; --text-3:#8a9099;
    --warning:#D97706; --success:#0E9F6E; --info:#2563EB; --danger:#D92D20; --bg-gray:#f6f7f9;
    --transition: all .2s ease;
    padding: 24px 0 60px;
  }

  /* 顶部用户资料卡 */
  .mb-hero {
    position: relative;
    background: linear-gradient(120deg, #12662A 0%, #21983E 55%, #2FB255 100%);
    color: #fff; border-radius: 16px; padding: 32px 36px;
    display: flex; align-items: center; gap: 24px; overflow: hidden;
    box-shadow: 0 16px 40px rgba(33,152,62,0.26);
  }
  .mb-hero::after {
    content: ""; position: absolute; right: -60px; bottom: -80px;
    width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
  }
  .mb-avatar {
    width: 84px; height: 84px; border-radius: 50%;
    background: rgba(255,255,255,0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 700; flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.45);
    position: relative; z-index: 1;
  }
  .mb-profile { position: relative; z-index: 1; flex: 1; min-width: 0; }
  .mb-profile h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
  .mb-level {
    font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 10px;
    background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.4);
  }
  .mb-sub { font-size: 13px; opacity: 0.92; margin-top: 6px; }
  .mb-points {
    display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap;
  }
  .mb-points span { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
  .mb-points b { font-weight: 700; }

  /* 统计盒 */
  .mb-stats { position: relative; z-index: 1; display: flex; gap: 12px; }
  .mb-stat {
    background: rgba(255,255,255,0.16); border-radius: 12px; padding: 14px 18px;
    text-align: center; min-width: 84px; cursor: pointer; transition: background .2s;
  }
  .mb-stat:hover { background: rgba(255,255,255,0.28); }
  .mb-stat .v { font-size: 22px; font-weight: 700; line-height: 1.2; }
  .mb-stat .l { font-size: 12px; opacity: 0.9; margin-top: 2px; }

  /* 主体布局 */
  .mb-body { display: grid; grid-template-columns: 232px 1fr; gap: 20px; margin-top: 20px; }
  .mb-side {
    background: #fff; border-radius: 14px; border: 1px solid var(--border-light);
    padding: 12px 10px; height: fit-content; position: sticky; top: calc(var(--hdr-h) + 14px);
  }
  .mb-menu-hd {
    font-size: 12px; color: var(--text-3); padding: 6px 14px 8px; letter-spacing: .5px;
  }
  .mb-side a {
    display: flex; align-items: center; gap: 10px; padding: 11px 14px;
    font-size: 14px; color: var(--text-2); border-radius: 10px;
    transition: var(--transition); cursor: pointer; margin-bottom: 2px; text-decoration: none;
  }
  .mb-side a i { width: 18px; text-align: center; font-size: 14px; opacity: .8; }
  .mb-side a:hover { background: var(--primary-soft); color: var(--primary); }
  .mb-side a:hover i { opacity: 1; }
  .mb-side a.active { background: var(--primary); color: #fff; font-weight: 600; }
  .mb-side a.active i { opacity: 1; }
  .mb-side a.logout { color: var(--danger); margin-top: 6px; border-top: 1px solid var(--border-light); border-radius: 0; }
  .mb-side a.logout:hover { background: #FDECEC; }

  /* 内容面板 */
  /* min-width:0 必需：grid 子项默认 min-width:auto，会被订单明细表(min-width:760px)撑破，导致窄屏整页横向溢出 */
  .mb-main { background: #fff; border-radius: 14px; border: 1px solid var(--border-light); padding: 26px; min-height: 520px; min-width: 0; }
  .mb-side { min-width: 0; }
  .mb-main h3 { font-size: 18px; font-weight: 600; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }

  @media (max-width: 992px) {
    .mb-hero { flex-direction: column; align-items: flex-start; }
    .mb-stats { width: 100%; justify-content: space-between; }
    .mb-body { grid-template-columns: 1fr; }
    .mb-side { position: static; display: flex; overflow-x: auto; }
    .mb-side a { white-space: nowrap; }
    .mb-menu-hd { display: none; }
  }
  @media (max-width: 640px) {
    .mb-main { padding: 16px 14px; }
  }
