/* ============================================================
 * guest-profile.css — 普通老板「我的」页个人中心卡（浅色 · 干净）
 * 作用域仅 .gx-profile，只在该页渲染；暖白纸感 + 细线分隔 + 克制强调色
 * ============================================================ */

.gx-profile {
  padding: 16px 16px 0;
}

.gx-pf-card {
  position: relative;
  background: var(--g-card, #fff);
  border: 1px solid var(--g-line, #ede8e1);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(48, 32, 22, 0.04),
    0 20px 40px -32px rgba(48, 32, 22, 0.5);
  overflow: hidden;
}

/* ---------- 身份行 ---------- */
.gx-pf-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 16px 15px;
}
.gx-pf-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #fdf1ea;
  border: 1px solid #f6ded1;
  color: var(--g-brand, #ea5a32);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.gx-pf-id {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.gx-pf-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.gx-pf-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--g-ink, #1f1b18);
}
.gx-pf-tier {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f7f3ec;
  border: 1px solid #efe8df;
  color: #857c6f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.gx-pf-account {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: -6px 0;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--g-ink-3, #9b9289);
  font-size: 12px;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 0.18s var(--g-ease, ease);
}
.gx-pf-account svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gx-pf-account:hover,
.gx-pf-account:active {
  color: var(--g-brand, #ea5a32);
}
.gx-pf-settings {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--g-line, #ede8e1);
  background: #fbf8f3;
  color: #6f675d;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}
.gx-pf-settings:active {
  background: #f2ece3;
  transform: scale(0.94);
}

/* ---------- 数据速览 ---------- */
.gx-pf-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--g-line, #ede8e1);
}
.gx-pf-stats > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 11px 6px 13px;
  min-width: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.gx-pf-stats > .gx-pf-cell {
  cursor: default;
}
.gx-pf-stats > * + * {
  border-left: 1px solid var(--g-line, #ede8e1);
}
.gx-pf-stats b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--g-ink, #1f1b18);
  font-variant-numeric: tabular-nums;
}
.gx-pf-stats span {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--g-ink-3, #9b9289);
}
.gx-pf-stats button:active b {
  color: var(--g-brand, #ea5a32);
}

/* ---------- 联系群行 ---------- */
.gx-pf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px 7px;
  border-top: 1px solid var(--g-line, #ede8e1);
}
.gx-pf-groups {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 2px;
  font-size: 11.5px;
  color: var(--g-ink-3, #9b9289);
}
.gx-pf-groups svg {
  flex: none;
  color: #b3a99c;
}
.gx-pf-groups > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gx-pf-manage {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  margin-right: -4px;
  border: 0;
  background: none;
  color: var(--g-brand, #ea5a32);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.gx-pf-manage:active {
  opacity: 0.65;
}

/* 窄屏微调 */
@media (max-width: 360px) {
  .gx-pf-name {
    font-size: 17.5px;
  }
  .gx-pf-stats b {
    font-size: 17px;
  }
}
