/* 会员、「我的」、页面内提醒、移动端底部导航（颜色沿用页面 :root 变量） */
.mb-slot { display: inline-flex; gap: 8px; align-items: center; }
.mb-badge { font-size: 11px; padding: 4px 10px; border: 1px solid var(--acc); color: var(--acc); border-radius: 12px; background: none; cursor: pointer; white-space: nowrap; }
.mb-badge.on { background: linear-gradient(90deg, #e8c35a, #f3d98a); color: #1a1405; border-color: transparent; font-weight: 600; }
.mb-bell { position: relative; border: 0; background: none; padding: 4px 6px; font-size: 14px; cursor: pointer; line-height: 1; filter: grayscale(.4); }
.mb-bell i { position: absolute; top: -2px; right: -4px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--red, #ff504b); color: #fff; font: 600 10px/15px sans-serif; font-style: normal; text-align: center; }
.mb-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red, #ff504b); vertical-align: middle; margin-left: 4px; }
.mb-dot[data-unread] { width: auto; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; color: #fff; font: normal 10px/16px sans-serif; text-align: center; white-space: nowrap; }
.mb-num { font-style: normal; font-size: 11px; background: var(--red, #ff504b); color: #fff; border-radius: 8px; padding: 0 6px; margin-left: 4px; }

/* 开通抽屉 */
.mb-lead { font-size: 14px; color: var(--acc); margin: 0 0 12px; }
.mb-err { color: var(--red, #ff504b); font-size: 13px; margin: 0 0 10px; }
.mb-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.mb-spec { position: relative; display: grid; gap: 4px; justify-items: center; padding: 16px 8px 12px; border: 1px solid var(--jx-line); border-radius: 6px; background: none; color: inherit; cursor: pointer; }
.mb-spec b { font-size: 14px; font-weight: 600; }
.mb-spec strong { font: 700 22px/1.2 "SFMono-Regular", Consolas, monospace; color: var(--acc); }
.mb-spec small { min-height: 15px; }
.mb-spec.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); box-shadow: inset 0 0 0 1px var(--acc); }
.mb-best { position: absolute; top: -9px; right: 8px; font: 600 10px/16px sans-serif; font-style: normal; padding: 0 6px; border-radius: 8px; background: var(--red, #ff504b); color: #fff; }
.mb-pay { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 6px 0 12px; font-size: 13px; }
.mb-pay > span { color: var(--jx-muted); }
.mb-ch, .mb-agree { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.mb-agree { font-size: 12px; color: var(--jx-muted); margin-bottom: 14px; }
.mb-agree a { color: var(--acc); }
.mb-qr { display: grid; justify-items: center; gap: 8px; padding: 18px 0; text-align: center; }
.mb-qr img { background: #fff; padding: 8px; border-radius: 6px; }
.mb-qr b { color: var(--acc); }
.mb-ok { font-size: 20px; font-weight: 600; color: var(--acc); }
.mb-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 14px; }
.mb-table th, .mb-table td { border-bottom: 1px solid var(--jx-line); padding: 9px 8px; text-align: left; vertical-align: top; }
.mb-table th { color: var(--jx-muted); font-weight: 400; font-size: 12px; }
.mb-table td small { display: block; }
.mb-table.compact td, .mb-table.compact th { padding: 6px; font-size: 12px; }
.mb-gold { color: var(--acc); }

/* 会员权益页 */
.mb-page { max-width: 760px; padding: 0 0 40px; }
.mb-state { font-size: 15px; padding: 14px 16px; border: 1px solid var(--jx-line); background: #ffffff06; margin-bottom: 12px; }
.mb-state.on { border-color: var(--acc); }
.mb-state b { color: var(--acc); }
.mb-actions { margin: 4px 0 16px; }
.mb-faq { margin: 0; padding-left: 18px; color: var(--jx-muted); font-size: 12px; line-height: 2; }

/* 我的 */
.me-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 0 40px; }
.me-card { border: 1px solid var(--jx-line); background: var(--jx-bg); padding: 14px 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.me-card h3 { font-size: 15px; font-weight: 600; margin: 0; display: flex; gap: 8px; align-items: center; }
.me-card h3 .jx-link { margin-left: auto; font-size: 12px; font-weight: 400; }
.me-user { grid-template-columns: auto 1fr auto; align-items: center; grid-column: 1 / -1; }
.me-user .avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #ffffff10; font-size: 18px; }
.me-user .avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-user > div { display: grid; gap: 2px; }
.me-user > div:last-child { display: flex; gap: 8px; }
.me-big b { font: 600 26px/1.2 "SFMono-Regular", Consolas, monospace; color: var(--acc); margin-right: 4px; }
.me-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.me-ok, .me-bad { font-size: 11px; font-weight: 400; padding: 0 6px; border-radius: 2px; border: 1px solid currentColor; }
.me-ok { color: var(--green, #20cd78); } .me-bad { color: var(--red, #ff504b); }
.me-alerts { display: grid; }
.me-alert { display: grid; gap: 3px; text-align: left; border: 0; border-bottom: 1px solid #ffffff0d; border-radius: 0; padding: 9px 0; background: none; color: inherit; cursor: pointer; width: 100%; }
.me-alert span { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--jx-muted); }
.me-alert b { font-weight: 400; font-size: 13px; line-height: 1.6; }
.me-alert.new b { font-weight: 600; }
.me-alert small { color: var(--acc); }
.me-perm { font-size: 11px; }

/* 移动端底部导航：首页 / 自选 / 资讯库 / 观点库 / 我的 */
.mb-tabbar { display: none; }
@media (max-width: 900px) {
  .mb-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #0c0e12f2; backdrop-filter: blur(8px);
    border-top: 1px solid var(--jx-line); padding-bottom: env(safe-area-inset-bottom); }
  .mb-tabbar button { position: relative; display: grid; justify-items: center; gap: 1px; border: 0; border-radius: 0; padding: 7px 0 6px; font-size: 11px; color: var(--jx-muted); background: none; }
  .mb-tabbar button span { font-size: 17px; line-height: 1.1; }
  .mb-tabbar button span svg { display: block; }
  .mb-tabbar button.on { color: var(--acc); }
  .mb-tabbar .mb-dot { position: absolute; top: 6px; left: 58%; }
  body:has(.mb-tabbar) { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  body:has(.mb-tabbar) .masthead nav { display: none !important; }
  .mb-slot .mb-badge { padding: 3px 8px; }
  .me-grid { grid-template-columns: minmax(0, 1fr); padding: 0 0 30px; }
  .mb-page { padding: 0 0 30px; }
  .mb-specs { gap: 8px; }
  .mb-spec strong { font-size: 19px; }
}
.mb-spec del { font-size: 11px; color: var(--jx-muted); }
.me-logout { display: flex; justify-content: center; margin: 18px 0 8px; }
.me-logout .jx-btn { min-width: 160px; justify-content: center; text-align: center; color: #ff6b6b; border-color: #ff6b6b55; }

.mb-agreement{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px;margin:16px 0;color:var(--jx-muted);font-size:13px;line-height:1.8}.mb-agreement input{align-self:center;accent-color:var(--acc);margin:0 3px 0 0;width:16px;height:16px;cursor:pointer;flex-shrink:0}.mb-agreement label{cursor:pointer}.mb-agreement a{color:var(--acc);text-decoration:underline;text-underline-offset:3px}.mb-agreement a:focus-visible{outline:2px solid var(--acc);outline-offset:3px}.mb-page [data-member-buy]:disabled,#mb-go:disabled{opacity:.45;cursor:not-allowed}
