/* ============================================================
   账号体系样式（登录/注册 · 实名 · 记账 · 等级）
   2026-11-13 新增。独立文件，🚫 不改 style.css，避免影响既有布局。
   承接 --brand / --line / --text 等既有令牌。
   ============================================================ */

/* ---------- 遮罩 + 弹层 ---------- */
.gp-mask {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(17, 24, 39, .46);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px; overflow-y: auto;
  animation: gpFade .16s ease-out;
}
@keyframes gpFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes gpUp { from { transform: translateY(14px); opacity: .6 } to { transform: none; opacity: 1 } }

.gp-sheet {
  width: 100%; max-width: 400px; background: #fff;
  border-radius: 18px; box-shadow: 0 24px 64px rgba(17, 24, 39, .26);
  padding: 20px 18px 18px; position: relative;
  animation: gpUp .2s ease-out; max-height: calc(100vh - 36px); overflow-y: auto;
}
.gp-sheet.sm { max-width: 360px; }
.gp-x {
  position: absolute; right: 10px; top: 8px; width: 32px; height: 32px;
  border: 0; background: transparent; color: #9ca3af; font-size: 22px; line-height: 1;
  cursor: pointer; border-radius: 10px;
}
.gp-x:hover { background: #f3f4f6; color: #374151; }
.gp-h1 { font-size: 19px; font-weight: 900; color: var(--text); letter-spacing: .2px; }
.gp-h1 .em { color: var(--brand); }
.gp-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* ---------- 分段 tab ---------- */
.gp-tabs { display: flex; gap: 6px; background: #f3f4f6; padding: 3px; border-radius: 11px; margin: 14px 0 4px; }
.gp-tab {
  flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 9px;
  font-size: 13.5px; font-weight: 800; color: #6b7280; cursor: pointer;
}
.gp-tab.on { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* ---------- 表单 ---------- */
.gp-field { margin-top: 12px; }
.gp-label { font-size: 12px; font-weight: 800; color: #6b7280; margin-bottom: 6px; display: block; }
.gp-input, .gp-select {
  width: 100%; box-sizing: border-box; border: 1px solid var(--line-strong);
  border-radius: 11px; padding: 12px 13px; font-size: 15px; color: var(--text);
  background: #fff; outline: none; font-family: inherit;
}
.gp-input:focus, .gp-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.gp-input::placeholder { color: #b6bcc6; }
.gp-phone { display: flex; gap: 8px; }
.gp-cc {
  flex: 0 0 76px; display: flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--line-strong); border-radius: 11px; font-size: 14.5px; font-weight: 800; color: #374151;
  background: #f9fafb;
}
.gp-code-row { display: flex; gap: 8px; }
.gp-code-row .gp-input { flex: 1; }
.gp-btn-code {
  flex: 0 0 116px; border: 1px solid var(--brand); background: #eff6ff; color: var(--brand);
  border-radius: 11px; font-size: 13px; font-weight: 800; cursor: pointer; padding: 0 8px;
}
.gp-btn-code:disabled { border-color: #e5e7eb; background: #f9fafb; color: #9ca3af; cursor: not-allowed; }

.gp-btn {
  width: 100%; border: 0; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 900;
  color: #fff; background: var(--brand-grad); cursor: pointer; margin-top: 14px;
  box-shadow: 0 6px 18px rgba(37,99,235,.24); letter-spacing: .3px;
}
.gp-btn:disabled { opacity: .55; box-shadow: none; cursor: not-allowed; }
.gp-btn.ghost {
  background: #fff; color: #374151; border: 1px solid var(--line-strong);
  box-shadow: none; font-weight: 800;
}
.gp-btn.wechat { background: linear-gradient(135deg, #09bb07, #06a005); box-shadow: 0 6px 18px rgba(9,187,7,.22); }
.gp-btn.danger { background: #fff; color: #dc2626; border: 1px solid #fecaca; box-shadow: none; }

.gp-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; color: #b6bcc6; font-size: 11.5px; }
.gp-or::before, .gp-or::after { content: ""; flex: 1; height: 1px; background: #eceff4; }

.gp-msg { font-size: 12.5px; line-height: 1.55; margin-top: 10px; padding: 9px 11px; border-radius: 10px; display: none; }
.gp-msg.err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.gp-msg.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.gp-msg.info { display: block; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.gp-dev { font-size: 11.5px; color: #92400e; background: #fffbeb; border: 1px dashed #fcd34d; border-radius: 9px; padding: 8px 10px; margin-top: 8px; display: none; }
.gp-dev b { font-size: 14px; letter-spacing: 2px; }

.gp-agree { font-size: 11px; color: #9ca3af; line-height: 1.6; margin-top: 12px; text-align: center; }

/* ---------- 我的页：账号卡 ---------- */
.gp-acc {
  border-radius: 16px; padding: 16px; margin-bottom: 12px;
  background: linear-gradient(135deg, #1e293b, #334155 62%, #475569);
  color: #fff; position: relative; overflow: hidden;
}
.gp-acc::after {
  content: ""; position: absolute; right: -50px; top: -60px; width: 170px; height: 170px;
  border-radius: 50%; background: rgba(255,255,255,.07);
  /* 🔴 2026-11-13：这个装饰圆原本盖住右上角「退出登录」按钮，把 click 全吃掉了
     （elementFromPoint 返回 .gp-acc 而不是 button）→ 必须不接收指针事件 */
  pointer-events: none;
}
.gp-acc-row { display: flex; align-items: center; gap: 12px; position: relative; }
.gp-av {
  width: 54px; height: 54px; border-radius: 50%; flex: 0 0 54px; overflow: hidden;
  background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center;
  font-size: 24px; border: 2px solid rgba(255,255,255,.28); cursor: pointer;
}
.gp-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-av > svg { border-radius: 50%; }
.gp-acc-name { font-size: 16.5px; font-weight: 900; letter-spacing: .2px; }
.gp-acc-sub { font-size: 11.5px; color: rgba(255,255,255,.72); margin-top: 3px; }
.gp-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 900; margin-left: 6px; vertical-align: 1px;
  background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.3);
}
.gp-acc-cta { margin-top: 12px; display: flex; gap: 8px; }
.gp-acc-cta button {
  flex: 1; border: 0; border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 800;
  background: rgba(255,255,255,.16); color: #fff; cursor: pointer;
}
.gp-acc-cta button.primary { background: #fff; color: #1e293b; }

/* ---------- 等级卡 ---------- */
.gp-lvcard {
  border: 1px solid var(--line); border-radius: 15px; padding: 15px; margin-bottom: 12px;
  background: #fff; position: relative;
}
.gp-lvtop { display: flex; align-items: center; gap: 11px; }
.gp-lvicon {
  width: 46px; height: 46px; border-radius: 13px; flex: 0 0 46px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: #f8fafc; border: 1.5px solid currentColor;
}
.gp-lvname { font-size: 15.5px; font-weight: 900; color: var(--text); }
.gp-lvtier { font-size: 11px; font-weight: 800; margin-left: 6px; }
.gp-lvgrow { font-size: 12px; color: var(--muted); margin-top: 3px; }
.gp-lvgrow b { font-size: 15px; color: var(--text); font-weight: 900; }
.gp-bar { height: 8px; background: #eef2f7; border-radius: 5px; margin-top: 11px; overflow: hidden; }
.gp-bar i { display: block; height: 100%; border-radius: 5px; transition: width .4s ease; }
.gp-lvfoot { display: flex; justify-content: space-between; font-size: 11px; color: #9ca3af; margin-top: 6px; }

/* ---------- 等级阶梯 ---------- */
.gp-ladder { display: grid; gap: 7px; margin-top: 4px; }
.gp-step {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff;
}
.gp-step.on { border-color: currentColor; background: #fffdf7; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.gp-step.past { opacity: .62; }
.gp-step-i { width: 26px; height: 26px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; background: #f3f4f6; flex: 0 0 26px; }
.gp-step-n { flex: 1; font-size: 13.5px; font-weight: 800; color: var(--text); }
.gp-step-n small { display: block; font-size: 10.5px; color: #9ca3af; font-weight: 600; margin-top: 1px; }
.gp-step-t { font-size: 11.5px; font-weight: 800; color: #9ca3af; }

/* ---------- 记账 ---------- */
.gp-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.gp-sum-c { border: 1px solid var(--line); border-radius: 12px; padding: 11px 10px; background: #fff; text-align: center; }
.gp-sum-k { font-size: 11px; color: #6b7280; font-weight: 700; }
.gp-sum-v { font-size: 18px; font-weight: 900; margin-top: 4px; letter-spacing: -.3px; }
.gp-sum-v.cost { color: #b45309; }
.gp-sum-v.win { color: #047857; }
.gp-sum-v.net { color: #1d4ed8; }
.gp-sum-v.net.neg { color: #dc2626; }
.gp-sum-d { font-size: 10.5px; color: #9ca3af; margin-top: 3px; }

.gp-up {
  display: flex; align-items: center; gap: 11px; border: 1.5px dashed #c7d2fe; border-radius: 13px;
  padding: 14px; background: #f8faff; cursor: pointer; width: 100%; box-sizing: border-box;
  text-align: left; font-family: inherit;
}
.gp-up:active { background: #eff4ff; }
.gp-up-i { font-size: 22px; }
.gp-up-t { flex: 1; }
.gp-up-t b { font-size: 13.5px; color: #1e3a8a; font-weight: 900; display: block; }
.gp-up-t span { font-size: 11px; color: #64748b; }

.gp-rc { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #eef1f6; align-items: center; }
.gp-rc:last-child { border-bottom: 0; }
.gp-rc-img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: #f3f4f6; flex: 0 0 46px; }
.gp-rc-m { flex: 1; min-width: 0; }
.gp-rc-t { font-size: 12.5px; font-weight: 800; color: var(--text); }
.gp-rc-s { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.gp-rc-v { text-align: right; font-size: 13px; font-weight: 900; white-space: nowrap; }
.gp-rc-v small { display: block; font-size: 10.5px; font-weight: 700; color: #9ca3af; margin-top: 2px; }
.gp-tag { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 5px; margin-left: 4px; }
.gp-tag.ok { background: #ecfdf5; color: #047857; }
.gp-tag.warn { background: #fffbeb; color: #b45309; }
.gp-tag.rej { background: #fef2f2; color: #b91c1c; }

/* ---------- 任务列表 ---------- */
.gp-task-h { font-size: 12px; font-weight: 900; color: #374151; margin: 12px 0 7px; display: flex; align-items: center; gap: 6px; }
.gp-task-h span { font-size: 10.5px; font-weight: 700; color: #9ca3af; }
.gp-task { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #f1f3f7; }
.gp-task:last-child { border-bottom: 0; }
.gp-task-n { flex: 1; font-size: 12.5px; color: #111827; font-weight: 700; }
.gp-task-n small { display: block; font-size: 10.5px; color: #9ca3af; font-weight: 600; margin-top: 1px; }
.gp-task-p { font-size: 11.5px; font-weight: 900; color: #047857; }
.gp-task-s { font-size: 10.5px; color: #9ca3af; min-width: 42px; text-align: right; }
.gp-task-s.done { color: #047857; font-weight: 800; }

/* ---------- 实名状态行 ---------- */
.gp-real { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.gp-real-i { font-size: 19px; }
.gp-real-t { flex: 1; font-size: 13px; font-weight: 800; color: var(--text); }
.gp-real-t small { display: block; font-size: 10.5px; color: #9ca3af; font-weight: 600; margin-top: 2px; }
.gp-real-b { border: 1px solid var(--brand); background: #eff6ff; color: var(--brand); border-radius: 9px; padding: 7px 12px; font-size: 12px; font-weight: 800; cursor: pointer; }

/* ---------- 隐藏的手机文件选择 ---------- */
.gp-file { display: none; }

/* ---------- toast ---------- */
.gp-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  background: rgba(17,24,39,.92); color: #fff; padding: 11px 18px; border-radius: 11px;
  font-size: 13px; font-weight: 700; z-index: 9500; max-width: 82vw; text-align: center;
  animation: gpUp .18s ease-out; line-height: 1.5;
}

/* ---------- 移动端收紧 ---------- */
@media (max-width: 640px) {
  .gp-sheet { padding: 17px 15px 16px; border-radius: 16px; }
  .gp-h1 { font-size: 17.5px; }
  .gp-sum { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .gp-sum-v { font-size: 15.5px; }
  .gp-sum-c { padding: 9px 6px; }
  .gp-cc { flex: 0 0 68px; font-size: 13px; }
  .gp-btn-code { flex: 0 0 104px; font-size: 12px; }
  .gp-av { width: 48px; height: 48px; flex: 0 0 48px; }
  .gp-acc-name { font-size: 15px; }
  .gp-step-n { font-size: 12.5px; }
  .gp-lvname { font-size: 14.5px; }
}

/* ============================================================
   2026-11-13 二次改造：账号卡紧凑化 / 头像选择 / 记账户两级
   ============================================================ */

/* ---------- 账号卡（三行紧凑版，退出登录并入昵称行）---------- */
.gp-acc { padding: 14px 15px; }
.gp-acc-row { gap: 11px; align-items: flex-start; }
.gp-acc-main { flex: 1; min-width: 0; }
.gp-acc-line1 { display: flex; align-items: center; gap: 8px; }
.gp-acc-line1 .gp-acc-name {
  font-size: 16px; font-weight: 900; letter-spacing: .2px;
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gp-pen { font-style: normal; font-size: 11px; opacity: .55; font-weight: 600; }
.gp-acc-login {
  margin-left: auto; border: 0; border-radius: 9px; padding: 8px 14px;
  background: #fff; color: #1e293b; font-size: 13px; font-weight: 900; cursor: pointer;
  flex: 0 0 auto;
}
/* 退出登录：放大到 32px 高、可点区域 ≥ 76×32，放在第二行右端（不再贴右上角） */
.gp-acc-out {
  margin-left: auto; flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.42); border-radius: 9px;
  min-height: 32px; padding: 0 14px; box-sizing: border-box;
  background: rgba(255,255,255,.14); color: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: .3px;
  cursor: pointer; position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.gp-acc-out:hover { background: rgba(255,255,255,.26); }
.gp-acc-out:active { transform: scale(.96); background: rgba(255,255,255,.32); }
.gp-acc-sub { font-size: 11.5px; color: rgba(255,255,255,.75); margin-top: 6px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-height: 32px; }
.gp-acc-sub .gp-badge { margin-left: 0; }
.gp-acc-g { color: rgba(255,255,255,.62); }
.gp-acc-sub2 { font-size: 10.5px; color: rgba(255,255,255,.5); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* 头像上的相机角标（提示可点击） */
.gp-av { position: relative; align-self: center; }
.gp-av-cam {
  position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; color: #334155; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 1px 4px rgba(0,0,0,.22);
  line-height: 1; pointer-events: none;
}

/* ---------- 头像选择网格（自绘 SVG 图标）---------- */
.gp-avgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin: 14px 0 4px; }
.gp-avpick {
  aspect-ratio: 1; border: 2px solid transparent; background: transparent; border-radius: 50%;
  cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
  transition: transform .14s, box-shadow .14s, border-color .14s;
  -webkit-tap-highlight-color: transparent;
}
.gp-avpick svg { border-radius: 50%; box-shadow: 0 1px 4px rgba(15,23,42,.16); }
.gp-avpick:hover { transform: translateY(-2px); }
.gp-avpick:hover svg { box-shadow: 0 4px 12px rgba(15,23,42,.24); }
.gp-avpick.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.18); transform: translateY(-2px); }

/* ---------- 微信登录 ---------- */
.gp-wxbox {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin: 16px 0 4px; padding: 16px; border-radius: 13px;
  background: #f7fdf7; border: 1px dashed #b7e4b7;
}
.gp-wxqr { font-size: 40px; line-height: 1; }
.gp-wxqr-t { font-size: 12.5px; color: #15803d; font-weight: 800; }

/* ---------- 记账：两个大数字（支出 / 收入）---------- */
.gp-sum2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 10px; }
.gp-sum2-c {
  border: 1px solid var(--line); border-radius: 13px; padding: 13px 12px;
  background: #fff; cursor: pointer; text-align: left; font-family: inherit;
  display: flex; flex-direction: column; gap: 3px; transition: all .15s;
}
.gp-sum2-c:hover { box-shadow: 0 4px 14px rgba(0,0,0,.07); transform: translateY(-1px); }
.gp-sum2-c.spend { border-left: 3px solid #f59e0b; }
.gp-sum2-c.win { border-left: 3px solid #10b981; }
.gp-sum2-k { font-size: 11.5px; color: #6b7280; font-weight: 700; }
.gp-sum2-v { font-size: 21px; font-weight: 900; letter-spacing: -.5px; }
.gp-sum2-c.spend .gp-sum2-v { color: #b45309; }
.gp-sum2-c.win .gp-sum2-v { color: #047857; }
.gp-sum2-d { font-size: 10.5px; color: #9ca3af; }

.gp-up-2 { margin-top: 8px; border-color: #ddd6fe; background: #faf8ff; }
.gp-up-2 .gp-up-t b { color: #5b21b6; }
.gp-rc-last { font-size: 11px; color: #9ca3af; margin-top: 8px; }
.gp-rc-last b { color: #374151; }

/* ---------- 明细里的删除按钮 ---------- */
.gp-rc-del {
  flex: 0 0 auto; border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c;
  border-radius: 8px; padding: 5px 9px; font-size: 11.5px; font-weight: 800; cursor: pointer;
}
.gp-rc-del:hover { background: #fee2e2; }

/* ---------- 上传记录：按日/按月 ---------- */
.gp-tabs-sm { margin: 12px 0 10px; }
.gp-tabs-sm .gp-tab { padding: 8px 6px; font-size: 13px; }
.gp-rectot { font-size: 11.5px; color: #6b7280; margin-bottom: 9px; }
.gp-rectot b { color: #111827; }
.gp-reclist { display: flex; flex-direction: column; gap: 6px; }
.gp-recrow {
  display: flex; align-items: center; gap: 9px; width: 100%;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  padding: 10px 12px; cursor: pointer; font-family: inherit; text-align: left;
}
.gp-recrow:hover { background: #f8fafc; border-color: #cbd5e1; }
.gp-reck { flex: 1; font-size: 13px; font-weight: 800; color: #111827; font-variant-numeric: tabular-nums; }
.gp-recv { display: flex; flex-direction: column; gap: 1px; text-align: right; }
.gp-recv i { font-style: normal; font-size: 11.5px; font-weight: 800; }
.gp-recn { font-size: 10.5px; color: #9ca3af; flex: 0 0 auto; min-width: 44px; text-align: right; }

@media (max-width: 640px) {
  .gp-acc { padding: 12px 13px; }
  .gp-avgrid { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .gp-avpick { font-size: 19px; border-radius: 10px; }
  .gp-sum2-v { font-size: 18px; }
  .gp-sum2-c { padding: 11px 10px; }
  .gp-acc-line1 .gp-acc-name { max-width: 58%; font-size: 15px; }
}
