/* ============================================================
 * 南宫导航 · 「我的」页样式（数据终端·克制专业）
 * 基于 me.js 真实 DOM 结构重设计
 * 设计方向：仪表板式两栏/单栏、信息密度、等宽数字、单色 emerald
 * 双主题：html[data-theme="light|dark"] 跟随系统
 * JS 类名完全不动
 * ============================================================ */

/* ---------- 1. Token 体系 ---------- */
body.ng-skin .me-app {
  --me-bg: #f3f4f6;
  --me-surface: #ffffff;
  --me-surface-2: #f6f7f9;
  --me-border: #e5e7eb;
  --me-border-strong: #d1d5db;
  --me-text: #111827;
  --me-text-sub: #4b5563;
  --me-text-faint: #9ca3af;
  --me-input: #f3f4f6;
  --me-input-border: #e5e7eb;
  --me-accent: #10b981;
  --me-accent-2: #059669;
  --me-accent-soft: rgba(16, 185, 129, .10);
  --me-danger: #dc2626;
  --me-ok: #16a34a;
  --me-warn: #d97706;
  --me-radius: 10px;
  --me-radius-sm: 8px;
  --me-radius-xs: 6px;
  --me-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --me-font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", "Fira Code", "Menlo", "Consolas", monospace;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 8px 0;
  color: var(--me-text);
  font-family: var(--me-font);
  background: var(--me-bg);
}

html[data-theme="dark"] body.ng-skin .me-app {
  --me-bg: #0b0d10;
  --me-surface: #13161a;
  --me-surface-2: #1a1d23;
  --me-border: #262a33;
  --me-border-strong: #323842;
  --me-text: #e5e7eb;
  --me-text-sub: #a1a7b3;
  --me-text-faint: #6b7280;
  --me-input: #1a1d23;
  --me-input-border: #323842;
  --me-accent-soft: rgba(16, 185, 129, .14);
}

/* ---------- 2. 顶部标题 ---------- */
.me-head {
  margin: 6px 6px 16px;
}
.me-head h1 {
  margin: 0; font-size: 18px; font-weight: 800; color: var(--me-text);
  letter-spacing: .04em; line-height: 1.2;
}
.me-head p {
  margin: 3px 0 0; font-size: 12px; color: var(--me-text-sub); font-weight: 500;
}

/* ---------- 3. 认证页 ---------- */
.me-auth {
  max-width: 420px; margin: 12px auto; padding: 22px; border: 1px solid var(--me-border);
  border-radius: var(--me-radius); background: var(--me-surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.me-auth__brand {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-bottom: 16px; text-align: center;
}
.me-auth__logo {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 18px; font-weight: 900; color: #fff; background: var(--me-accent);
  box-shadow: 0 6px 16px rgba(16, 185, 129, .24);
}
.me-auth__brand strong { font-size: 16px; color: var(--me-text); font-weight: 800; }
.me-auth__brand span { font-size: 12px; color: var(--me-text-sub); }

.me-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px;
  margin-bottom: 14px; border-radius: var(--me-radius-sm);
  background: var(--me-input); border: 1px solid var(--me-border);
}
.me-tabs button {
  padding: 8px 0; border: 0; border-radius: var(--me-radius-xs); cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--me-text-sub);
  background: transparent; transition: color .18s ease, background .18s ease;
}
.me-tabs button.is-active {
  color: #fff; background: var(--me-accent);
  box-shadow: 0 4px 10px rgba(16, 185, 129, .24);
}

.me-form { display: grid; gap: 10px; }
.me-field { display: grid; gap: 5px; }
.me-field > label {
  font-size: 11.5px; font-weight: 700; color: var(--me-text-sub);
  padding-left: 2px; letter-spacing: .04em; text-transform: uppercase;
}
.me-input {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; border-radius: var(--me-radius-sm);
  border: 1px solid var(--me-input-border); background: var(--me-input); color: var(--me-text);
  font-size: 14px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.me-input::placeholder { color: var(--me-text-faint); }
.me-input:focus {
  border-color: var(--me-accent);
  box-shadow: 0 0 0 3px var(--me-accent-soft);
}
select.me-input { appearance: none; -webkit-appearance: none; }
.me-input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.me-captcha {
  min-width: 96px; padding: 10px 12px; border-radius: var(--me-radius-sm); text-align: center;
  border: 1px solid var(--me-border-strong); background: var(--me-surface-2);
  font-size: 14px; font-weight: 800; color: var(--me-text);
  cursor: pointer; user-select: none; white-space: nowrap;
}
.me-hint { font-size: 11px; line-height: 1.5; color: var(--me-text-faint); padding-left: 2px; }
.me-linkbtn {
  border: 0; background: none; cursor: pointer; padding: 0;
  color: var(--me-accent-2); font-size: 12.5px; font-weight: 700; justify-self: end;
}
.me-linkbtn:hover { text-decoration: underline; }

.me-btn {
  width: 100%; padding: 11px 0; border: 0; border-radius: var(--me-radius-sm); cursor: pointer;
  font-size: 14px; font-weight: 800; color: #fff; background: var(--me-accent);
  box-shadow: 0 4px 12px rgba(16, 185, 129, .22);
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.me-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16, 185, 129, .28); }
.me-btn:active { transform: translateY(0); }
.me-btn.is-loading { opacity: .55; pointer-events: none; }
.me-btn--ghost {
  background: var(--me-input); color: var(--me-text);
  border: 1px solid var(--me-border); box-shadow: none;
}
.me-btn--ghost:hover { background: var(--me-surface-2); }
.me-btn--danger { background: var(--me-danger); box-shadow: 0 4px 12px rgba(220, 38, 38, .2); }
.me-btn--sm { width: auto; padding: 6px 12px; font-size: 12px; border-radius: var(--me-radius-xs); }

.me-auth__alt { margin-top: 12px; text-align: center; font-size: 12px; color: var(--me-text-sub); }
.me-forgot-steps { display: flex; gap: 5px; margin-bottom: 12px; }
.me-forgot-steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--me-input); }
.me-forgot-steps i.is-on { background: var(--me-accent); }

.me-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.me-form-actions .me-btn { width: 100%; }
.me-form-actions .full { grid-column: 1 / -1; }

/* ---------- 4. 头像 ---------- */
.me-avatar {
  position: relative; flex: 0 0 56px; width: 56px; height: 56px;
  border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  font-size: 20px; font-weight: 900; color: #fff; background: var(--me-accent);
  border: 1.5px solid rgba(16, 185, 129, .3);
  box-shadow: 0 4px 12px rgba(16, 185, 129, .18);
}
.me-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 5. 顶部标题栏 ---------- */
.me-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 6px 6px 14px;
}
.me-head h1 {
  margin: 0; font-size: 17px; font-weight: 800; color: var(--me-text);
  letter-spacing: .04em;
}
.me-head p { margin: 2px 0 0; font-size: 12px; color: var(--me-text-sub); }

/* ---------- 6. 子页面顶栏 ---------- */
.me-subbar {
  display: flex; align-items: center; gap: 10px; margin: 2px 0 12px;
}
.me-back {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--me-border); background: var(--me-surface); color: var(--me-text);
  cursor: pointer; display: grid; place-items: center; font-size: 16px;
}
.me-subbar h2 { margin: 0; font-size: 15px; font-weight: 800; color: var(--me-text); }

/* ---------- 7. 游客引导卡 ---------- */
.me-gatecard {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 24px 20px; border-bottom: 1px solid var(--me-border);
}
.me-gatecard strong { font-size: 15px; font-weight: 800; color: var(--me-text); }
.me-gatecard__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: 100%; margin-top: 14px; }

/* ---------- 8. 功能操作区 ---------- */
.me-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; padding: 12px 0;
}
.me-action {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 12px; font-size: 13px; font-weight: 800; line-height: 1.25;
  border-radius: var(--me-radius-sm); cursor: pointer; color: #fff; border: 1px solid transparent;
  background: var(--me-accent);
  box-shadow: 0 4px 10px rgba(16, 185, 129, .18);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.me-action:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(16, 185, 129, .26); }
.me-action:active { transform: scale(.98); }
.me-action--primary { background: var(--me-accent); color: #fff; }
.me-action--plain {
  background: var(--me-surface-2); color: var(--me-accent-2);
  border: 1px solid var(--me-border-strong); box-shadow: none;
}
.me-action--plain:hover { background: var(--me-accent-soft); }
.me-action--danger {
  background: var(--me-surface-2); color: var(--me-danger);
  border: 1px solid rgba(220, 38, 38, .25); box-shadow: none;
}
.me-action--danger:hover { background: rgba(220, 38, 38, .08); }
.me-action--mini { min-height: 30px; padding: 0 10px; font-size: 12px; border-radius: var(--me-radius-xs); }
.me-action--lg { flex: 1 1 0; min-width: 120px; min-height: 40px; }
.me-action__txt { line-height: 1; }
.me-action__unread {
  position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px;
  font-style: normal; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; color: #fff;
  border-radius: 999px; background: var(--me-danger);
  box-shadow: 0 2px 6px rgba(220, 38, 38, .3);
}
html[data-theme="dark"] .me-action--plain { color: #6ee7b7; border-color: var(--me-border-strong); background: rgba(255,255,255,.05); }
html[data-theme="dark"] .me-action--danger { color: #fca5a5; border-color: rgba(220, 38, 38, .3); background: rgba(255,255,255,.04); }

/* ---------- 9. 登录态资料卡 ---------- */
.me-prof { padding: 14px; border-bottom: 1px solid var(--me-border); }
.me-prof__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.me-prof__row .me-avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; }
.me-prof__meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.me-prof__meta strong {
  font-size: 15px; font-weight: 800; color: var(--me-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.me-prof__meta span {
  font-size: 11.5px; color: var(--me-text-sub);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.me-prof__tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.me-prof__tools .me-action { white-space: nowrap; }

/* ---------- 10. 数据格 ---------- */
.me-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.me-stat {
  padding: 10px 12px; border: 1px solid var(--me-border); border-radius: var(--me-radius-sm);
  background: var(--me-surface);
}
.me-stat b {
  display: block; font-size: 10px; font-weight: 800; color: var(--me-text-sub);
  letter-spacing: .08em; text-transform: uppercase;
}
.me-stat span {
  display: block; margin-top: 4px; font-size: 22px; font-weight: 900; line-height: 1.15;
  color: var(--me-text); font-family: var(--me-font-mono); font-variant-numeric: tabular-nums;
}
.me-stat span.is-point { color: var(--me-accent-2); }
.me-stat span.is-money { color: var(--me-warn); }

/* ---------- 11. 签到横条 ---------- */
.me-checkin {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  width: 100%; margin-top: 10px; padding: 11px 14px; cursor: pointer; text-align: left;
  border: 1px solid var(--me-border); border-radius: var(--me-radius-sm);
  background: var(--me-surface); color: var(--me-text);
  transition: transform .14s ease, box-shadow .14s ease;
}
.me-checkin:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.05); }
.me-checkin:disabled { cursor: default; opacity: .7; }
.me-checkin:disabled:hover { transform: none; box-shadow: none; }
.me-checkin__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.me-checkin__txt strong { font-size: 13px; font-weight: 800; }
.me-checkin__txt small { font-size: 11px; color: var(--me-text-sub); }
.me-checkin__btn {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 800;
  background: var(--me-accent); border: 0; cursor: pointer;
  box-shadow: 0 3px 10px rgba(16, 185, 129, .2);
}
.me-checkin.is-done .me-checkin__btn { background: var(--me-input); color: var(--me-text-faint); box-shadow: none; }

/* ---------- 12. 抽奖入口 ---------- */
.me-lucky {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px;
  border: 1px solid var(--me-accent-2); border-radius: var(--me-radius); cursor: pointer; text-align: left;
  color: #fff; background: var(--me-accent);
  box-shadow: 0 6px 16px rgba(16, 185, 129, .2);
  transition: transform .14s ease, box-shadow .14s ease;
}
.me-lucky:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(16, 185, 129, .28); }
.me-lucky__deco {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .2);
}
.me-lucky__deco img { width: 30px; height: 30px; object-fit: contain; display: block; }
.me-lucky__txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.me-lucky__txt strong { font-size: 14px; font-weight: 800; }
.me-lucky__txt small { font-size: 11px; opacity: .9; }
.me-lucky__go { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); }

/* ---------- 13. 消息列表 ---------- */
.me-msg { border-bottom: 1px solid var(--me-border); }
.me-msg:last-child { border-bottom: 0; }
.me-msg button {
  display: flex; gap: 10px; width: 100%; padding: 12px 14px; box-sizing: border-box;
  border: 0; background: transparent; color: var(--me-text); text-align: left; cursor: pointer;
}
.me-msg__dot {
  flex: 0 0 7px; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%;
  background: transparent;
}
.me-msg.is-unread .me-msg__dot { background: var(--me-accent); box-shadow: 0 0 6px rgba(16, 185, 129, .5); }
.me-msg__body { flex: 1 1 auto; min-width: 0; }
.me-msg__top { display: flex; align-items: center; gap: 6px; }
.me-msg__title {
  font-size: 13px; font-weight: 700; color: var(--me-text); flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.me-msg.is-unread .me-msg__title { color: var(--me-text); font-weight: 800; }
.me-msg__time { font-size: 10.5px; color: var(--me-text-faint); flex: 0 0 auto; }
.me-msg__content {
  margin-top: 2px; font-size: 12px; color: var(--me-text-sub); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.me-msg-detail { padding: 14px; }
.me-msg-detail h3 { margin: 0 0 5px; font-size: 14px; color: var(--me-text); }
.me-msg-detail .t { font-size: 11px; color: var(--me-text-faint); margin-bottom: 8px; }
.me-msg-detail p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--me-text-sub); white-space: pre-wrap; }
.me-msg-detail .link { margin-top: 12px; }

/* ---------- 14. 反馈 ---------- */
.me-textarea {
  width: 100%; box-sizing: border-box; min-height: 120px; resize: vertical;
  padding: 10px 12px; border-radius: var(--me-radius-sm);
  border: 1px solid var(--me-input-border); background: var(--me-input); color: var(--me-text);
  font-size: 13px; font-family: inherit; outline: none; line-height: 1.6;
}
.me-textarea:focus { border-color: var(--me-accent); box-shadow: 0 0 0 3px var(--me-accent-soft); }
.me-counter { text-align: right; font-size: 11px; color: var(--me-text-faint); margin-top: 3px; }

.me-avatar-edit { display: flex; align-items: center; gap: 12px; }
.me-avatar-edit .me-avatar { flex: 0 0 52px; width: 52px; height: 52px; }
.me-avatar-actions { display: grid; gap: 6px; }

.me-empty { text-align: center; padding: 36px 16px; color: var(--me-text-sub); font-size: 13px; }
.me-empty .ico { font-size: 32px; opacity: .5; display: block; margin-bottom: 8px; }

/* ---------- 15. Toast ---------- */
body.ng-skin .me-toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(12px);
  z-index: 400; max-width: min(88vw, 400px);
  padding: 9px 14px; border-radius: var(--me-radius-sm);
  background: var(--me-surface); color: var(--me-text); font-size: 13px;
  border: 1px solid var(--me-border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  text-align: center;
}
.me-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.me-toast.is-error { border-color: rgba(220, 38, 38, .4); color: var(--me-danger); }
.me-toast.is-ok { border-color: rgba(22, 163, 74, .4); color: var(--me-ok); }

/* ---------- 16. Modal ---------- */
body.ng-skin .me-modal {
  position: fixed; inset: 0; z-index: 380;
  display: none; align-items: center; justify-content: center; padding: 16px 12px;
}
body.ng-skin .me-modal.is-open { display: flex; }
.me-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.me-modal__panel {
  position: relative; z-index: 1; width: min(400px, 100%);
  max-height: min(600px, calc(100dvh - 40px)); overflow: auto;
  border: 1px solid var(--me-border-strong); border-radius: var(--me-radius);
  background: var(--me-surface); color: var(--me-text);
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  animation: meModalIn .2s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes meModalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.me-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--me-border);
  background: var(--me-surface-2);
}
.me-modal__head h3 { margin: 0; font-size: 15px; color: var(--me-text); }
.me-modal__close {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--me-border);
  background: var(--me-surface); color: var(--me-text-sub); font-size: 16px; cursor: pointer;
}
.me-modal__body { padding: 14px; }
.me-modal .me-field > label { color: var(--me-text-sub); }
.me-modal .me-input { background: var(--me-input); border-color: var(--me-input-border); color: var(--me-text); }
.me-modal .me-input::placeholder { color: var(--me-text-faint); }
.me-modal .me-hint { color: var(--me-text-faint); }

/* ---------- 17. 加载 ---------- */
.me-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 36px 16px; color: var(--me-text-sub); font-size: 13px; }
.me-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--me-border); border-top-color: var(--me-accent); animation: meSpin .7s linear infinite; }
@keyframes meSpin { to { transform: rotate(360deg); } }

/* ---------- 18. 抽奖弹窗 ---------- */
.lk-wrap { text-align: center; }
.lk-points { font-size: 12px; color: var(--me-text-sub); margin-bottom: 10px; }
.lk-points b { color: var(--me-accent-2); font-size: 14px; font-family: var(--me-font-mono); font-variant-numeric: tabular-nums; }
.lk-board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  max-width: 300px; margin: 0 auto; padding: 8px; border-radius: var(--me-radius);
  background: var(--me-surface-2);
  border: 1px solid var(--me-border);
}
.lk-cell {
  position: relative; aspect-ratio: 1; border-radius: var(--me-radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--me-surface); border: 1px solid var(--me-border); color: var(--me-text);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.lk-cell__ico { color: var(--me-accent-2); display: grid; }
.lk-cell__label { font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; padding: 0 2px; }
.lk-cell__sub { font-size: 10px; font-weight: 800; color: var(--me-warn); opacity: .92; }
.lk-cell__img { width: 30px; height: 30px; object-fit: contain; }
.lk-cell--prize .lk-cell__ico { color: var(--me-warn); }
.lk-cell--prize .lk-cell__label { color: var(--me-warn); }
.lk-cell.is-active {
  background: var(--me-accent); border-color: transparent;
  transform: scale(1.05); box-shadow: 0 6px 14px rgba(16, 185, 129, .25);
}
.lk-cell.is-active .lk-cell__ico { color: #fff; }
.lk-cell.is-active .lk-cell__label { color: #e6fffa; }
.lk-start {
  border: 0; border-radius: var(--me-radius-sm); cursor: pointer; color: #fff; font-weight: 800;
  font-size: 14px; line-height: 1.35; background: var(--me-accent-2);
  box-shadow: 0 4px 12px rgba(5, 150, 105, .2);
  display: flex; align-items: center; justify-content: center; text-align: center;
  transition: transform .12s ease;
}
.lk-start:active { transform: scale(.95); }
.lk-start:disabled { opacity: .7; cursor: not-allowed; }
.lk-board.is-closed .lk-cell { opacity: .5; }
.lk-result-box { margin-top: 12px; }
.lk-result {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px;
  border-radius: var(--me-radius-sm); background: var(--me-input);
}
.lk-result__t { font-size: 13px; font-weight: 800; color: var(--me-text-sub); }
.lk-result__s { font-size: 11px; color: var(--me-text-faint); }
.lk-result__p { font-size: 17px; font-weight: 800; color: var(--me-warn); font-family: var(--me-font-mono); font-variant-numeric: tabular-nums; }
.lk-result--win { background: var(--me-accent-soft); gap: 6px; }
.lk-result .me-btn { margin-top: 4px; }
.lk-note { font-size: 11px; color: var(--me-text-faint); margin: 10px 0 0; }

/* ---------- 19. 钱包 ---------- */
.wl-head { display: flex; gap: 10px; margin-bottom: 10px; }
.wl-card {
  flex: 1 1 0; border-radius: var(--me-radius-sm); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px; color: #fff;
  border: 1px solid transparent;
}
.wl-card--points { background: var(--me-accent); box-shadow: 0 4px 12px rgba(16, 185, 129, .2); }
.wl-card--balance { background: var(--me-surface-2); color: var(--me-text); border-color: var(--me-border); box-shadow: none; }
.wl-card--balance .wl-card__label { color: var(--me-text-sub); }
.wl-card--balance .wl-card__num { color: var(--me-text); }
.wl-card__label { font-size: 11px; opacity: .9; }
.wl-card__num {
  font-size: 20px; font-weight: 800; font-family: var(--me-font-mono); font-variant-numeric: tabular-nums;
}
.wl-tip { font-size: 11px; color: var(--me-text-sub); margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.wl-tabs { display: flex; gap: 5px; margin-bottom: 8px; }
.wl-tab {
  flex: 1 1 0; padding: 8px; border-radius: var(--me-radius-xs);
  border: 1px solid var(--me-border); background: var(--me-surface); color: var(--me-text-sub);
  font-size: 12px; cursor: pointer; font-weight: 700;
}
.wl-tab.is-active { background: var(--me-accent); color: #fff; border-color: transparent; }
.wl-list { display: flex; flex-direction: column; }
.wl-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 2px; border-bottom: 1px solid var(--me-border); }
.wl-row__info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wl-row__info strong { font-size: 12px; font-weight: 600; color: var(--me-text); }
.wl-row__info small { font-size: 10.5px; color: var(--me-text-faint); }
.wl-row__val { font-size: 13px; font-weight: 700; white-space: nowrap; font-family: var(--me-font-mono); font-variant-numeric: tabular-nums; }
.wl-row__val.is-plus { color: var(--me-ok); }
.wl-row__val.is-minus { color: var(--me-text-faint); }
.wl-more { text-align: center; padding: 10px 0 3px; }

/* ---------- 20. 邀请 ---------- */
.iv-wrap { text-align: center; }
.iv-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0 12px; }
.iv-stat__num { font-size: 30px; font-weight: 800; color: var(--me-accent-2); line-height: 1; font-family: var(--me-font-mono); font-variant-numeric: tabular-nums; }
.iv-stat__label { font-size: 11px; color: var(--me-text-sub); }
.iv-rule {
  font-size: 12px; color: var(--me-text); padding: 10px; border-radius: var(--me-radius-sm);
  background: var(--me-accent-soft); margin-bottom: 12px;
}
.iv-rule b { color: var(--me-accent-2); }
.iv-field { text-align: left; margin-bottom: 10px; }
.iv-field label { font-size: 11px; color: var(--me-text-sub); display: block; margin-bottom: 5px; }
.iv-field__row { display: flex; gap: 6px; }
.iv-field__row input {
  flex: 1 1 auto; min-width: 0; padding: 9px 10px; border-radius: var(--me-radius-xs);
  border: 1px solid var(--me-input-border); background: var(--me-input); color: var(--me-text); font-size: 12px;
}
.iv-note { font-size: 11px; color: var(--me-text-faint); margin: 5px 0 0; }

/* ---------- 21. 抽奖记录 ---------- */
.rc-list { display: flex; flex-direction: column; }
.rc-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--me-border); }
.rc-row__ico {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  color: var(--me-accent-2); background: var(--me-accent-soft);
}
.rc-row.is-win .rc-row__ico { color: var(--me-warn); background: rgba(217, 119, 6, .1); }
.rc-row__info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rc-row__info strong { font-size: 12px; font-weight: 600; color: var(--me-text); }
.rc-row__info small { font-size: 10.5px; color: var(--me-text-faint); }
.rc-row__tag { font-size: 12px; font-weight: 700; white-space: nowrap; }
.rc-row__tag.is-win { color: var(--me-warn); }
.rc-row__tag.is-lose { color: var(--me-text-faint); }

/* ---------- 22. 卡片（通用） ---------- */
.me-card {
  border: 1px solid var(--me-border); border-radius: var(--me-radius);
  background: var(--me-surface); overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  margin-bottom: 10px;
}
.me-card__title {
  padding: 10px 14px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  color: var(--me-text-faint); text-transform: uppercase;
}

/* ---------- 23. 响应式 ---------- */
.me-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.me-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.me-identity { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--me-text-sub); font-size: 12px; }
.me-list-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 0; border-bottom: 1px solid var(--me-border); padding: 13px 14px; background: transparent; color: var(--me-text); text-align: left; cursor: pointer; }
.me-list-link:last-child { border-bottom: 0; }
.me-list-link small, .me-list-link span:last-child { color: var(--me-text-sub); }
.me-logout { display: block; margin: 18px auto; color: var(--me-text-sub); }
.me-agreement { color: var(--me-text); line-height: 1.8; font-size: 13px; }
@media (max-width: 720px) {
  body.ng-skin .me-app { max-width: 100%; padding: 8px 4px 0; }
  .me-prof__row { grid-template-columns: 48px minmax(0, 1fr); }
  .me-prof__row .me-avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; }
  .me-prof__tools { grid-column: 1 / -1; }
  .me-prof__tools .me-action { flex: 1 1 0; }
  .me-gatecard__actions { flex-direction: column; }
  .me-gatecard__actions .me-action { width: 100%; min-width: 0; }
  .me-stat span { font-size: 18px; }
  .me-modal { align-items: center; padding: 14px 10px; }
  .me-modal__panel { width: min(400px, calc(100vw - 24px)); }
}
@media (max-width: 480px) {
  .me-actions { gap: 6px; }
  .me-action { min-height: 34px; font-size: 12px; }
  .me-stat span { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .me-modal__panel, .me-auth { animation: none; }
}
