/* ============================================================
   个人资料卡（所有页面通用）
   ============================================================ */
.pf-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 8, 3, .78);
  backdrop-filter: blur(4px);
}
.pf-mask.on { display: flex; }

.pf-card {
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid #2f4222;
  background: linear-gradient(160deg, #101a0c, #0b1206 65%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .7), 0 0 0 1px rgba(140, 226, 42, .07) inset;
  color: #eaf1e2;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  position: relative;
  animation: pfIn .3s cubic-bezier(.22, 1, .36, 1);
}
@keyframes pfIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.pf-close {
  position: absolute;
  right: 14px; top: 12px;
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid #2c3a20;
  background: #111a0c;
  color: #8b9a7c;
  cursor: pointer;
  font-size: 14px;
  z-index: 2;
}
.pf-close:hover { border-color: #8ce22a; color: #8ce22a; }

.pf-hero {
  display: flex;
  gap: 14px;
  padding: 22px 22px 16px;
  background: radial-gradient(120% 100% at 0% 0%, rgba(140, 226, 42, .14), transparent 60%);
  border-bottom: 1px solid #233016;
}
.pf-ava {
  width: 66px; height: 66px;
  border-radius: 50%;
  flex: none;
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px;
  color: #08120a;
  border: 2px solid rgba(140, 226, 42, .35);
  box-shadow: 0 0 24px rgba(140, 226, 42, .25);
  object-fit: cover;
  overflow: hidden;
}
.pf-ava img { width: 100%; height: 100%; object-fit: cover; }
.pf-id { flex: 1; min-width: 0; }
.pf-name {
  font-size: 18px; font-weight: 800; color: #f2f8ec;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-tag {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 5px;
  font-size: 11.5px; color: #c9f08c;
  background: rgba(140, 226, 42, .12);
  border: 1px solid rgba(140, 226, 42, .28);
  border-radius: 999px;
  padding: 2px 9px;
}
.pf-bio {
  margin-top: 8px;
  font-size: 12.5px;
  color: #b9c9ab;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.pf-bio.empty { color: #6b7a6b; font-style: italic; }

.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 22px;
  border-bottom: 1px solid #233016;
}
.pf-stat { text-align: center; }
.pf-stat b {
  display: block;
  font-size: 17px;
  color: #c9f08c;
  font-family: ui-monospace, Consolas, monospace;
}
.pf-stat span { font-size: 10.5px; color: #7d8b70; }

.pf-sec { padding: 16px 22px; border-bottom: 1px solid #233016; }
.pf-sec:last-child { border-bottom: none; }
.pf-sec h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: #8ce22a;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.pf-sec h4::before {
  content: "";
  width: 3px; height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8ce22a, #5fc21a);
}

.pf-txt {
  width: 100%;
  min-height: 62px;
  resize: vertical;
  background: #0e1409;
  border: 1px solid #2c3a20;
  border-radius: 9px;
  padding: 9px 11px;
  color: #eaf1e2;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.pf-txt:focus { border-color: #8ce22a; }

.pf-rowbtns { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.pf-btn {
  border-radius: 8px;
  border: 1px solid #2c3a20;
  background: #111a0c;
  color: #b9c9ab;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: .18s;
}
.pf-btn:hover { border-color: #8ce22a; color: #8ce22a; }
.pf-btn.primary {
  background: linear-gradient(135deg, #8ce22a, #5fc21a);
  color: #08120a;
  border-color: transparent;
}
.pf-btn.sm { padding: 4px 10px; font-size: 11.5px; }

.pf-coupons { display: flex; flex-direction: column; gap: 7px; }
.pf-coupon {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px dashed #2c3a20;
  background: #0e1409;
  font-size: 12.5px;
}
.pf-coupon code {
  font-family: ui-monospace, Consolas, monospace;
  color: #8ce22a;
  letter-spacing: .4px;
}
.pf-coupon span { color: #7d8b70; font-size: 11.5px; }
.pf-coupon.used { opacity: .45; }
.pf-coupon.used code { text-decoration: line-through; }
.pf-coupon .pf-btn { margin-left: auto; }

.pf-empty {
  font-size: 12px;
  color: #6b7a6b;
  padding: 6px 0;
}
.pf-empty a { color: #8ce22a; }

.pf-input {
  width: 100%;
  background: #0e1409;
  border: 1px solid #2c3a20;
  border-radius: 9px;
  padding: 8px 11px;
  color: #eaf1e2;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.pf-input:focus { border-color: #8ce22a; }

.pf-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  background: #14200f;
  border: 1px solid #3d5c22;
  color: #c9f08c;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: .22s;
}
.pf-toast.on { opacity: 1; }

/* 导航用户卡（商店 / 圈子共用） */
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid #2c3a20;
  background: #111a0c;
  cursor: pointer;
  transition: .18s;
  font-size: 13px;
  color: #d8e6cb;
  max-width: 180px;
}
.nav-user:hover { border-color: #8ce22a; color: #8ce22a; }
.nav-user i {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #08120a;
  flex: none;
  overflow: hidden;
}
.nav-user i img { width: 100%; height: 100%; object-fit: cover; }
.nav-user b {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
