/* 账户页样式（对应 page-account.js）
 */

/* ── 账户页（对齐 mockup：纵向卡片堆叠，与其他页面同宽）── */
.acc-card {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04); margin-bottom: 16px;
}
.acc-card-body { padding: 22px; }

/* 档案卡 */
.acc-profile { display: flex; align-items: center; gap: 18px; }
.acc-avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  background: #DBEAFE; color: #1D4ED8;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 600; flex-shrink: 0;
}
.acc-pf-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; word-break: break-all; }
.acc-pf-mail { font-size: 13px; color: #64748B; margin-top: 3px; }
.acc-pf-meta { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: #94A3B8; flex-wrap: wrap; }
.acc-pf-meta b { color: #475569; font-weight: 600; font-variant-numeric: tabular-nums; }
.acc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; padding: 3px 10px;
  border-radius: 999px; white-space: nowrap;
  background: #F1F5F9; color: #64748B;
}
.acc-chip.blue { background: #EFF4FF; color: #2563EB; }

/* 本月用量：三环 */
.acc-sec-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.acc-quota-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.acc-quota { border: 1px solid #F1F5F9; border-radius: 10px; padding: 16px; }
.acc-quota-label { font-size: 12px; color: #94A3B8; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 6px; }
.acc-quota-label b { color: #0F172A; font-variant-numeric: tabular-nums; font-weight: 700; }
.acc-ring { width: 74px; height: 74px; margin: 0 auto 10px; position: relative; }
.acc-ring svg { transform: rotate(-90deg); display: block; }
.acc-ring-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.acc-ring-val b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.3px; color: #0F172A; line-height: 1.2; }
.acc-ring-val span { font-size: 10px; color: #94A3B8; }
.acc-quota-foot { text-align: center; font-size: 11px; color: #94A3B8; }
.acc-quota-foot b { color: #475569; font-variant-numeric: tabular-nums; }
/* 价值外化（¥0.005/次折算） */
.acc-quota-value {
  text-align: center; font-size: 11px; color: #64748B; margin-top: 5px;
}
.acc-quota-value b { color: #16A34A; font-variant-numeric: tabular-nums; }

/* 新人礼包卡（待领取） */
.acc-gift-card { border-color: #FDE68A; background: linear-gradient(180deg, #FFFBEB, #fff); }
.acc-sub-icon.gift { background: linear-gradient(135deg, #F59E0B, #D97706); }

/* 订阅卡 */
.acc-sub { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.acc-sub-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.acc-sub-name { font-size: 16px; font-weight: 700; }
.acc-sub-desc { font-size: 12px; color: #94A3B8; margin-top: 3px; }
.acc-sub-feats { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.acc-sub-feat { font-size: 12px; color: #64748B; display: flex; align-items: center; gap: 5px; }
.acc-sub-feat::before { content: '✓'; color: #16A34A; font-weight: 700; }

/* 通用按钮 */
.acc-btn {
  font-family: inherit; font-size: 13px; font-weight: 500; border-radius: 8px; cursor: pointer;
  padding: 8px 16px; border: 1px solid #E2E8F0; background: #fff; color: #475569;
  transition: all .15s; flex-shrink: 0;
}
.acc-btn:hover { border-color: #CBD5E1; color: #0F172A; }
.acc-btn.primary { background: #2563EB; border-color: #2563EB; color: #fff; }
.acc-btn.primary:hover { background: #1D4ED8; border-color: #1D4ED8; }
.acc-btn.danger { color: #DC2626; border-color: #FECACA; }
.acc-btn.danger:hover { background: #FEF2F2; border-color: #FCA5A5; color: #B91C1C; }

/* 安全与设置列表 */
.acc-set-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid #F1F5F9; }
.acc-set-row:last-child { border-bottom: none; padding-bottom: 0; }
.acc-set-row:first-child { padding-top: 0; }
.acc-set-icon {
  width: 34px; height: 34px; border-radius: 9px; background: #F1F5F9; color: #64748B;
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}
.acc-set-txt { flex: 1; min-width: 0; }
.acc-set-name { font-size: 13px; font-weight: 600; }
.acc-set-desc { font-size: 12px; color: #94A3B8; margin-top: 1px; word-break: break-all; }

/* 邀请裂变卡 */
.acc-invite { display: flex; flex-direction: column; gap: 12px; }
.acc-invite-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-invite-label { font-size: 12px; color: #94A3B8; }
.acc-invite-code b {
  font-size: 18px; letter-spacing: 3px; color: #2563EB;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.acc-invite-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: #94A3B8; }
.acc-invite-stats b { color: #475569; font-variant-numeric: tabular-nums; }

/* 额度流水 */
.acc-log-rows { display: flex; flex-direction: column; }
.acc-log-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid #F1F5F9; font-size: 12px;
}
.acc-log-row:last-child { border-bottom: none; }
.acc-log-time { color: #94A3B8; font-variant-numeric: tabular-nums; flex-shrink: 0; width: 84px; }
.acc-log-why { color: #475569; flex: 1; }
.acc-log-amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.acc-log-amt.in { color: #16A34A; }
.acc-log-amt.out { color: #475569; }
.acc-log-bal { color: #94A3B8; font-variant-numeric: tabular-nums; flex-shrink: 0; width: 70px; text-align: right; }

@media (max-width: 720px) {
  .acc-quota-grid { grid-template-columns: 1fr; }
  .acc-sub-feats { margin-left: 0; }
}
