/* Pet Soul · AI 人設卡（result / me 共用） */

.persona-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 0 0 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.persona-card__top {
  height: 72px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.persona-avatar {
  width: 108px;
  height: 108px;
  margin: -54px auto 0;
  border-radius: 50%;
  padding: 4px;
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.persona-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-2);
}

.persona-card__body {
  padding: 16px 20px 4px;
  text-align: center;
}

.persona-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.persona-name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.persona-code-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.persona-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
}

.persona-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.persona-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
}

.persona-tag.is-accent {
  background: var(--ink);
  color: var(--bg);
}

.persona-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.persona-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.persona-bio {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  white-space: pre-line;
  min-height: 2.8em;
}

.persona-prefs {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}

.pref-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.pref-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pref-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.35;
}

.pref-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.persona-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-3);
}

.persona-foot strong {
  color: var(--ink);
  font-weight: 500;
}

.persona-regen {
  margin-top: 12px;
  width: 100%;
  height: 36px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.persona-regen:active {
  background: var(--bg-2);
}

.persona-card.is-enter {
  animation: personaIn 0.55s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes personaIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 名片页 · 分享卡 + QR */

.me-page,
.card-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.me-top {
  padding: calc(12px + var(--safe-top)) 16px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.me-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  border-radius: 50%;
}

.me-back:active {
  background: var(--bg-2);
}

.me-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px calc(24px + var(--safe-bottom));
}

.me-page-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-right: 36px;
}

.intent-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.share-card {
  width: 100%;
  max-width: 340px;
  margin: 24px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.share-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

.share-card__head strong {
  color: var(--ink);
  font-weight: 600;
}

.share-card__banner {
  padding: 20px 16px 16px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.share-banner-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.share-banner-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-3);
}

.share-duo {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.share-duo-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.share-duo-heart {
  font-size: 14px;
  color: var(--ink-3);
}

.share-card__details {
  padding: 0 16px 12px;
}

.share-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}

.share-detail:last-child {
  border-bottom: none;
}

.share-detail-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.share-detail-label {
  font-size: 10px;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.share-card__qr {
  padding: 16px 16px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg-3);
}

.qr-frame {
  width: 148px;
  height: 148px;
  margin: 0 auto;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.qr-frame svg {
  width: 100%;
  height: 100%;
}

.qr-slug {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-3);
  word-break: break-all;
}

.share-tips {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: 10px;
  text-align: left;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.5;
}

.me-actions {
  margin-top: 20px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--line);
}

.me-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.me-action span:last-child {
  color: var(--ink-3);
  font-size: 13px;
}

.me-footer {
  padding: 0 20px calc(16px + var(--safe-bottom));
  flex-shrink: 0;
}

.me-footer .btn-primary,
.me-footer .btn-ghost {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
}

.me-footer .btn-ghost {
  margin-top: 10px;
}

.card-page .me-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(16px + var(--safe-top));
}

.card-public-badge {
  margin-bottom: 12px;
  text-align: center;
}

.persona-card--public .persona-regen {
  display: none;
}
