/* ============================================================
 * 「我的」页（结构 / 类名 / 文案对齐目标站 pages/profile）
 * ============================================================ */
/* 目标站「我的」页的容器内边距是 .3rem（首页是 .35rem），实测 6.24px vs 7.28px */
.pd-prof-shell { padding-left: .3rem; padding-right: .3rem; }

.pd-prof { padding: .4rem 0 .5rem; display: flex; flex-direction: column; gap: .4rem; }
.pd-prof__main-column { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }

/* ---- 账号卡 ---- */
.pd-prof__header-card {
  min-height: 0; border-radius: 24px; background: #fff; padding: 8px 10px;
  border: 1px solid rgba(255, 228, 230, .9); box-shadow: 0 10px 26px #3513260f;
  display: flex; flex-direction: row; align-items: center; gap: 10px;
}
.pd-prof__avatar {
  position: relative; width: 46px; height: 46px; border-radius: 15px; background: #fff;
  border: 1.5px solid rgba(53, 19, 38, .78); color: var(--pd-stage-ink); box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
  box-shadow: 0 5px 14px #35132614;
}
.pd-prof__avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--pd-stage-ink); }
.pd-prof__header-meta { flex: 1; min-width: 0; }
.pd-prof__name-row { min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 6px; }
.pd-prof__name { display: block; font-size: 16px; line-height: 1.22; font-weight: 900; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-prof__account-line {
  display: flex; flex-direction: row; align-items: center; gap: 4px; min-width: 0; max-width: 100%;
  margin-top: 4px; font-size: var(--pd-font-caption); line-height: 1.25; font-weight: 700; color: #64748b;
}
.pd-prof__account-text { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-prof__account-copy-icon { flex-shrink: 0; opacity: .78; display: flex; }
.pd-prof__header-actions { display: flex; flex-direction: row; align-items: center; gap: 8px; flex-shrink: 0; }
.pd-prof__header-action {
  width: 34px; height: 34px; border-radius: 11px; color: #8b6276; background: #fff6dc;
  border: 1px solid rgba(53, 19, 38, .14); box-shadow: inset 0 0 0 1px #ffffffb8;
  display: flex; align-items: center; justify-content: center;
}
.pd-prof__header-action--edit { width: 24px; height: 24px; border-radius: 8px; background: transparent; border-color: transparent; box-shadow: none; }
.pd-prof__header-action--favorite { color: #8b3f63; background: #fff1f7; }
.pd-prof__header-action:active { transform: translateY(1px); }
.pd-prof__header-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- 原图直转 ---- */
.pd-prof__direct-entry {
  min-height: 72px; border-radius: 18px; border: 1px solid rgba(53, 19, 38, .12);
  background: rgba(255, 255, 255, .68); padding: 12px 12px 12px 14px; box-sizing: border-box;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  color: var(--pd-stage-ink); width: 100%; text-align: left;
}
.pd-prof__direct-entry:active { transform: translateY(1px); }
.pd-prof__direct-entry-copy { min-width: 0; }
.pd-prof__direct-entry-title { display: block; font-size: var(--pd-font-small); line-height: 1.25; font-weight: 900; color: var(--pd-stage-ink); }
.pd-prof__direct-entry-desc { display: block; margin-top: 4px; font-size: var(--pd-font-caption); line-height: 1.35; font-weight: 800; color: #8b6276; overflow-wrap: anywhere; }
.pd-prof__direct-entry-action {
  min-width: 72px; height: 38px; border-radius: 999px; border: 1px solid rgba(53, 19, 38, .1);
  background: #fff6dc; display: flex; align-items: center; justify-content: center;
}
.pd-prof__direct-entry-action-text { display: block; font-size: var(--pd-font-caption); line-height: 1.2; font-weight: 900; color: #8a6476; white-space: nowrap; }

/* ---- 豆豆卡（深色） ---- */
.pd-prof__wallet-card {
  border-radius: 22px; background: rgba(53, 19, 38, .94); box-shadow: 0 12px 24px #35132624;
  padding: 16px; display: flex; flex-direction: column; gap: 14px; color: #fff;
}
.pd-prof__wallet-head { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.pd-prof__wallet-copy { min-width: 0; flex: 1 1 auto; }
.pd-prof__wallet-label { display: block; font-size: var(--pd-font-caption); line-height: 1.3; font-weight: 900; color: #ffffffb8; }
.pd-prof__wallet-balance-row { margin-top: 2px; display: flex; flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; }
.pd-prof__wallet-value.bean-amount { display: inline-flex; align-items: center; line-height: 1; font-size: 26px; gap: 5px; font-weight: 900; color: #fff; flex-shrink: 0; }
.pd-prof__wallet-usage-line { display: block; min-width: 0; font-size: var(--pd-font-caption); line-height: 1.3; font-weight: 800; color: #ffffff94; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-prof__wallet-mini-group { display: flex; flex-direction: row; align-items: center; gap: 8px; flex-shrink: 0; }
.pd-prof__wallet-mini-btn {
  min-width: 64px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1.5px solid rgba(255, 211, 92, .86);
  background: #fff; box-sizing: border-box; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pd-prof__wallet-mini-btn:active { transform: translateY(1px); }
.pd-prof__wallet-mini-btn-text { display: block; font-size: var(--pd-font-caption); line-height: 1.2; font-weight: 900; color: var(--pd-stage-ink); white-space: nowrap; }
.pd-prof__wallet-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pd-prof__wallet-btn {
  min-height: 46px; border-radius: 8px; padding: 0 10px; box-sizing: border-box;
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; font-weight: 900; width: 100%;
}
.pd-prof__wallet-btn--primary { background: var(--pd-stage-accent); color: var(--pd-stage-ink); }
.pd-prof__wallet-btn--secondary { border: 1.5px solid rgba(255, 211, 92, .86); background: #fff; color: var(--pd-stage-ink); box-shadow: inset 0 0 0 1px #ffffff9e; }
.pd-prof__wallet-btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.pd-prof__wallet-btn:active { transform: translateY(1px); }
.pd-prof__wallet-btn-text, .pd-prof__wallet-btn-primary-text { font-size: var(--pd-font-small); line-height: 1.2; font-weight: 900; color: inherit; white-space: nowrap; }

/* ---- 常用入口（桌面右栏） ---- */
.pd-prof__desktop-panel { display: none; }
.pd-prof__desktop-panel-title { display: block; font-size: 16px; line-height: 1.25; font-weight: 900; color: var(--pd-stage-ink); }
.pd-prof__desktop-entry-list { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pd-prof__desktop-entry {
  min-height: 76px; padding: 10px; border-radius: 16px; border: 1px solid rgba(53, 19, 38, .12);
  background: rgba(255, 252, 245, .9); display: grid; grid-template-columns: 38px minmax(0, 1fr) 16px;
  gap: 9px; align-items: center; box-sizing: border-box; cursor: pointer; width: 100%; text-align: left;
}
.pd-prof__desktop-entry:active { transform: translateY(1px); }
.pd-prof__desktop-entry-icon {
  width: 38px; height: 38px; border-radius: 13px; border: 1px solid rgba(53, 19, 38, .16);
  background: rgba(255, 211, 92, .72); color: var(--pd-stage-ink); display: flex; align-items: center; justify-content: center;
}
.pd-prof__desktop-entry-copy { min-width: 0; }
.pd-prof__desktop-entry-title, .pd-prof__desktop-entry-desc { display: block; }
.pd-prof__desktop-entry-title { font-size: 13px; line-height: 1.25; font-weight: 900; color: var(--pd-stage-ink); }
.pd-prof__desktop-entry-desc { margin-top: 3px; font-size: 11px; line-height: 1.35; font-weight: 800; color: #8b6276; }
.pd-prof__desktop-entry-arrow { transform: rotate(180deg); color: #8b6276; display: flex; }

/* ---- 未登录 ---- */
.pd-prof--guest { padding-top: 18px; }
.pd-prof__guest-card {
  border-radius: 24px; background: #fff; padding: 20px 16px 16px; border: 1.5px solid rgba(53, 19, 38, .46);
  box-shadow: 0 10px 28px #35132612; display: flex; flex-direction: column; align-items: center; text-align: center;
  /* 目标站是 content-box：桌面 width:520 指的是内容宽度，整卡 554 */
  box-sizing: content-box;
}
.pd-prof__guest-avatar {
  box-sizing: content-box;
  width: 60px; height: 60px; border-radius: 20px; background: rgba(255, 211, 92, .78);
  border: 1.5px solid rgba(53, 19, 38, .58); color: var(--pd-stage-ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.pd-prof__guest-title { font-size: var(--pd-font-small); font-weight: 700; color: var(--pd-stage-ink); }
.pd-prof__guest-desc { margin-top: 6px; font-size: var(--pd-font-small); line-height: 1.45; color: #64748b; }
.pd-prof__guest-cta {
  width: 100%; height: var(--pd-control-height-lg); margin-top: 16px; border-radius: var(--pd-radius-control);
  border: 1.5px solid rgba(53, 19, 38, .62); background: rgba(255, 211, 92, .82);
  box-shadow: 0 6px 16px #35132614; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
}
.pd-prof__guest-cta-label { display: block; font-size: var(--pd-font-body); font-weight: 900; color: var(--pd-stage-ink); line-height: 1.2; }
.pd-prof__guest-recharge {
  width: 100%; min-height: var(--pd-control-height-md); margin-top: 10px; border-radius: var(--pd-radius-control);
  border: 1.5px solid rgba(53, 19, 38, .52); background: #fff; color: var(--pd-stage-ink);
  box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.pd-prof__guest-recharge-label { display: block; font-size: var(--pd-font-small); font-weight: 800; color: var(--pd-stage-ink); line-height: 1.2; }

/* ---- 咨询服务 ---- */
.contact-consult__panel {
  width: 100%; border: 1px solid rgba(53, 19, 38, .12); border-radius: 18px;
  background: rgba(255, 255, 255, .68); padding: 12px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 12px;
}
.contact-consult__panel-copy { min-width: 0; }
.contact-consult__panel-title { display: block; color: var(--pd-stage-ink); font-size: var(--pd-font-small); font-weight: 900; line-height: 1.25; }
.contact-consult__panel-desc { display: block; margin-top: 4px; color: #8b6276; font-size: var(--pd-font-caption); font-weight: 800; line-height: 1.35; }
.contact-consult__panel-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* ---- App / 小程序推广卡 ---- */
.h5-platform-launch-card { width: 100%; display: flex; flex-direction: column; box-sizing: border-box; }
.h5-platform-launch-card__surface {
  border-radius: 22px; border: 1.5px solid rgba(53, 19, 38, .42);
  background: radial-gradient(circle at 88% 18%, rgba(16, 207, 45, .16), transparent 92px),
              linear-gradient(135deg, rgba(255, 211, 92, .36), rgba(255, 255, 255, .98) 46%, rgba(16, 207, 45, .12));
  box-shadow: 0 10px 22px #35132612; padding: 17px 15px 15px; box-sizing: border-box; overflow: hidden;
}
.h5-platform-launch-card__head { display: grid; grid-template-columns: minmax(0, 1fr) 98px; gap: 12px; align-items: center; }
.h5-platform-launch-card__copy { min-width: 0; }
.h5-platform-launch-card__title { display: block; font-size: 22px; line-height: 1.2; font-weight: 900; color: var(--pd-stage-ink); }
.h5-platform-launch-card__subtitle { display: block; margin-top: 5px; font-size: 14px; line-height: 1.25; font-weight: 800; color: #35132694; }
.h5-platform-launch-card__visual { position: relative; width: 98px; height: 78px; }
.h5-platform-launch-card__visual-app, .h5-platform-launch-card__visual-mp {
  position: absolute; width: 52px; height: 52px; border-radius: 18px; display: flex; align-items: center;
  justify-content: center; overflow: hidden; box-shadow: 0 8px 18px #3513261f; color: #fff;
}
.h5-platform-launch-card__visual-app { left: 2px; top: 8px; background: var(--pd-stage-ink); transform: rotate(-8deg); }
.h5-platform-launch-card__visual-mp { right: 2px; top: 20px; background: #10cf2d; transform: rotate(8deg); }
.h5-platform-launch-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.h5-platform-launch-card__action {
  min-width: 0; min-height: 52px; border-radius: 999px; border: 1.5px solid rgba(53, 19, 38, .18);
  background: #fff; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--pd-stage-ink); box-sizing: border-box; width: 100%;
}
.h5-platform-launch-card__action:active { transform: translateY(1px); }
.h5-platform-launch-card__action--app { background: var(--pd-stage-accent); border-color: #3513265c; box-shadow: inset 0 -2px #3513261f; }
.h5-platform-launch-card__apple {
  width: 22px; height: 22px; border-radius: 999px; background: var(--pd-stage-ink);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.h5-platform-launch-card__action-text { display: block; font-size: 15px; line-height: 1; font-weight: 900; color: var(--pd-stage-ink); white-space: nowrap; }
.h5-platform-launch-card__mp-icon { width: 28px; height: 28px; border-radius: 999px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #10cf2d; flex-shrink: 0; }

/* ---- 桌面两栏 ---- */
@media (min-width: 1000px) {
  .pd-prof {
    width: min(1100px, 100%); margin: 0 auto; padding: 0 0 36px;
    display: grid; grid-template-columns: minmax(420px, 500px) minmax(420px, 560px);
    justify-content: center; align-items: start; gap: 18px;
  }
  .pd-prof__main-column { grid-column: 1; grid-row: 1 / span 2; gap: 18px; }
  .pd-prof > .h5-platform-launch-card { grid-column: 2; grid-row: 2; align-self: start; }
  .pd-prof__desktop-panel {
    grid-column: 2; grid-row: 1; display: block; padding: 16px; border-radius: 22px;
    border: 1px solid rgba(53, 19, 38, .12); background: rgba(255, 255, 255, .76);
    box-shadow: 0 10px 24px #3513260e; box-sizing: border-box;
  }
  .pd-prof__header-card { padding: 9px 12px; gap: 12px; }
  .pd-prof--guest { width: min(620px, 100%); display: flex; flex-direction: column; padding-top: 0; }
  .pd-prof__guest-card { width: min(520px, 100%); margin: 0 auto; border-radius: 18px; }
}
@media (min-width: 1000px) and (max-width: 1120px) {
  .pd-prof { width: min(720px, 100%); grid-template-columns: minmax(0, 1fr); }
  .pd-prof__main-column { grid-row: auto; }
  .pd-prof > .h5-platform-launch-card, .pd-prof__desktop-panel { grid-column: 1; }
}
