/* 人生设计 · 地图/指南针视觉（forest teal，区别于天赋暖陶土） */
.life-home-page,
.life-chat-page,
.life-report-page,
.life-share-page {
  --life-ink: #0F3D36;
  --life-trail: #1F6F5B;
  --life-sage: #3D8B74;
  --life-mist: #E8F2EE;
  --life-path: #C4A35A;
  --life-paper: #F4F8F6;
  --color-brand: #1F6F5B;
  --color-accent-clay: #1F6F5B;
}

.life-home-page.page-atmosphere,
.life-chat-page.page-atmosphere,
.life-report-page.page-atmosphere {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(31, 111, 91, 0.10), transparent 55%),
    radial-gradient(90% 60% at 100% 20%, rgba(196, 163, 90, 0.08), transparent 50%),
    var(--life-paper, #F4F8F6);
}

.life-home-page .talent-brand,
.life-chat-page .talent-brand,
.life-report-page .talent-brand {
  color: var(--life-ink);
  letter-spacing: 0.04em;
}

.life-home-page .talent-pill,
.life-chat-page .talent-pill,
.life-chat-page .talent-chat-gen {
  background: rgba(31, 111, 91, 0.1);
  color: var(--life-trail);
  border-color: rgba(31, 111, 91, 0.18);
}

.life-home-page .talent-primary,
.life-chat-page .talent-primary,
.life-report-page .talent-primary {
  background: linear-gradient(135deg, #1F6F5B 0%, #0F3D36 100%);
  box-shadow: 0 8px 20px rgba(15, 61, 54, 0.22);
}

.life-home-page .talent-hero {
  border-color: rgba(31, 111, 91, 0.14);
  box-shadow: 0 10px 28px rgba(15, 61, 54, 0.08);
}

.life-home-page .talent-quote {
  border-left: 3px solid var(--life-path);
  color: var(--life-ink);
  background: rgba(31, 111, 91, 0.04);
}

.life-home-page .talent-track.is-hot {
  border-color: rgba(31, 111, 91, 0.35);
  background: linear-gradient(180deg, #fff 0%, var(--life-mist) 100%);
}

.life-home-page .talent-badge {
  background: var(--life-trail);
}

.life-home-page .talent-progress span.on,
.life-chat-page .talent-progress span.on {
  background: var(--life-trail);
}

.life-chat-page .talent-bubble.ai {
  border-color: rgba(31, 111, 91, 0.12);
}

.life-chat-page .talent-bubble.me {
  background: linear-gradient(135deg, #1F6F5B, #0F3D36);
}

/* 首页四段流程条 */
.life-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 18px;
}
.life-stage {
  text-align: center;
  padding: 10px 4px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 111, 91, 0.1);
}
.life-stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--life-trail);
  margin-bottom: 6px;
}
.life-stage-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--life-ink);
  line-height: 1.3;
}
.life-stage:nth-child(2) .life-stage-num { background: #2A7A66; }
.life-stage:nth-child(3) .life-stage-num { background: #3D8B74; }
.life-stage:nth-child(4) .life-stage-num { background: #C4A35A; color: #1a1a1a; }

/* 首页入口卡（index.html） */
.life-invite {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  min-height: 118px;
  border: 1px solid rgba(31, 111, 91, 0.16);
  box-shadow: 0 6px 20px rgba(15, 61, 54, 0.08);
  transition: transform 0.2s var(--ease-premium, ease);
}
.life-invite:active { transform: scale(0.985); }
.life-invite-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(244, 248, 246, 0.97) 0%, rgba(232, 242, 238, 0.9) 42%, rgba(232, 242, 238, 0.35) 72%, rgba(232, 242, 238, 0.12) 100%),
    url('/assets/generated/life/bg-life-invite.jpg?v=1') center right / cover no-repeat;
}
.life-invite-body {
  position: relative;
  z-index: 1;
  padding: 18px 18px 16px;
}
.life-invite-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1F6F5B;
  margin-bottom: 6px;
}
.life-invite-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #0F3D36;
}
.life-invite-desc {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-text-secondary, #5a6b64);
}
.life-invite-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1F6F5B;
}

[hidden] { display: none !important; }

.talent-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 16px 110px;
  position: relative;
  z-index: 1;
}

/* 底栏横排兜底：不依赖 Tailwind CDN */
body > .bottom-nav-v2 {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
}
body > .bottom-nav-v2 > div {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-around !important;
  align-items: center !important;
  width: 100% !important;
}

.talent-topbar {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(230,235,230,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47,111,94,0.06);
}
.talent-topbar .talent-brand { text-align: center; min-width: 0; }
.talent-topbar .talent-pill {
  justify-self: end;
  width: auto;
}
.talent-topbar:has(.talent-pill) {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

/* 入口页：壳子取消左右 padding，顶栏通栏，正文单独留边 */
.talent-home-page .talent-shell {
  padding-left: 0;
  padding-right: 0;
}
.talent-home-page .talent-home-body {
  padding: 0 16px;
}

.talent-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-primary);
}

.talent-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
  background: rgba(255,255,255,0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
}

.talent-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(47,111,94,0.18);
  background: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand);
}

.talent-hero {
  margin: 8px 0 20px;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #f7f1e8;
  border: 1px solid rgba(181,107,74,0.14);
}
.talent-hero-visual {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.talent-hero-copy {
  padding: 18px 20px 20px;
  background: linear-gradient(180deg, rgba(255,252,247,0.98), rgba(245,236,224,0.92));
}

.talent-hero-copy h1 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 10px;
}

.talent-hero-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.talent-quote {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0,0,0,0.08);
  font-size: 13px;
  color: var(--color-accent-clay);
  font-weight: 600;
}

.talent-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 18px 0 10px;
}

.talent-track {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(47,111,94,0.12);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 10px;
  transition: transform .15s ease;
}

.talent-track:active { transform: scale(0.985); }
.talent-track.is-off { opacity: 0.45; }
.talent-track.is-hot {
  border-color: rgba(181,107,74,0.35);
  box-shadow: 0 6px 18px rgba(181,107,74,0.08);
}

.talent-track-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.talent-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent-clay);
  padding: 2px 8px;
  border-radius: 999px;
}

.talent-track-sub {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.talent-track-meta {
  margin-top: 10px;
  font-size: 11px;
  color: var(--color-text-light);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.talent-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 16px;
}

.talent-mode {
  border: 1px solid var(--color-border-light);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  font-size: 12px;
  text-align: left;
}
.talent-mode.is-on {
  border-color: var(--color-brand);
  background: rgba(47,111,94,0.06);
}
.talent-mode strong { display: block; font-size: 13px; margin-bottom: 4px; }

.talent-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: var(--color-brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.talent-primary:disabled { opacity: 0.5; }

.talent-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--color-border-light);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-primary);
}

/* ========== 聊天页 ========== */
html.talent-chat-html,
html:has(.talent-chat-page) {
  height: 100%;
  overflow: hidden;
}
body.talent-chat-page {
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
}

.talent-chat-app {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.talent-chat-header {
  flex: 0 0 auto;
  z-index: 2;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--color-border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.talent-chat-header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 40px;
  min-height: 36px;
}
.talent-chat-header-spacer {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.talent-chat-header .talent-pill,
.talent-chat-gen {
  width: auto !important;
  min-width: 0;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  flex-direction: row !important;
  flex-shrink: 0;
  gap: 4px;
  background: var(--color-brand);
  color: #fff;
  border-color: transparent;
}
.talent-chat-header-main {
  min-width: 0;
  text-align: left;
  padding-left: 2px;
}
.talent-chat-header-main .talent-brand {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.talent-chat-status {
  margin-top: 2px;
  font-size: 11px;
  color: var(--color-brand);
  display: flex;
  align-items: center;
  gap: 5px;
}
.talent-chat-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(47,111,94,0.15);
}
.talent-chat-header .talent-progress {
  margin: 6px 0 0;
  max-width: 160px;
}

.talent-chat-hs {
  flex: 0 0 auto;
  padding: 0 14px 8px;
}
.talent-chat-hs img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(181,107,74,.12);
}

.talent-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 12px 12px 20px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(240,243,239,0.65), rgba(230,235,230,0.35));
}

.talent-chat-empty {
  text-align: center;
  padding: 48px 16px 20px;
  color: var(--color-text-secondary);
  font-size: 13px;
}
.talent-chat-empty img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 24px;
  margin: 0 auto 14px;
  opacity: 0.95;
  display: block;
  box-shadow: 0 8px 24px rgba(47,111,94,0.12);
}

/* IM 消息行 */
.talent-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 14px;
  animation: talent-bubble-in 0.2s ease-out;
}
.talent-msg.is-me { flex-direction: row-reverse; }
.talent-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border-light);
  color: var(--color-brand);
}
.talent-msg.is-me .talent-msg-avatar {
  background: var(--color-brand);
  border-color: transparent;
  color: #fff;
}
.talent-msg-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(78%, 340px);
  min-width: 0;
}
.talent-msg.is-me .talent-msg-main { align-items: flex-end; }
.talent-msg-name {
  font-size: 11px;
  color: var(--color-text-tertiary);
  padding: 0 4px;
  line-height: 1;
}
.talent-bubble {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-sizing: border-box;
}
.talent-bubble.ai {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 4px rgba(26,36,33,0.05);
}
.talent-bubble.me {
  background: var(--color-brand);
  color: #fff;
  border: none;
  border-bottom-right-radius: 5px;
  box-shadow: 0 2px 8px rgba(47,111,94,0.18);
}
.talent-bubble.ai strong { font-weight: 700; color: var(--color-text-primary); }
.talent-bubble.me strong { font-weight: 700; color: #fff; }
.talent-bubble.is-thinking {
  color: var(--color-text-light);
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.talent-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.talent-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
  opacity: 0.35;
  animation: talent-typing 1.2s infinite;
}
.talent-typing i:nth-child(2) { animation-delay: 0.15s; }
.talent-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes talent-typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@keyframes talent-bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .talent-msg, .talent-bubble { animation: none; }
  .talent-typing i { animation: none; }
}

.talent-progress {
  display: flex;
  gap: 4px;
  margin: 4px 0 8px;
}
.talent-progress span {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(26,36,33,0.1);
}
.talent-progress span.on { background: var(--color-brand); }

.talent-composer {
  flex: 0 0 auto;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--color-border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.talent-pay-open .talent-composer {
  visibility: hidden;
  pointer-events: none;
}
.talent-composer textarea {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  border-radius: 20px;
  border: 1px solid var(--color-border-light);
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.45;
  resize: none;
  background: #F4F7F5;
  color: var(--color-text-primary);
  outline: none;
  overflow-y: auto;
  box-shadow: none;
  font-family: inherit;
}
.talent-composer textarea::placeholder {
  color: var(--color-text-placeholder);
}
.talent-composer textarea:focus {
  border-color: rgba(47,111,94,0.35);
  background: #fff;
}
.talent-composer .send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.talent-composer .send:disabled { opacity: 0.4; }
.talent-composer .send:active { transform: scale(0.94); }

/* 解锁底栏：必须 !important，否则会被 design-v2 的 body>* { position:relative } 打回文档流 */
.talent-pay-sheet {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 3000 !important;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: transparent !important;
  /* 不要给 sheet 本身上深色底，否则圆角外侧会露出黑块 */
}
.talent-pay-sheet.is-on { display: flex !important; }
.talent-pay-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(26, 36, 33, 0.45);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.talent-pay-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: min(86vh, 720px);
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(16px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -8px 32px rgba(26, 36, 33, 0.12);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: talent-sheet-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}
@keyframes talent-sheet-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .talent-pay-panel { animation: none; }
}
body.talent-pay-open {
  overflow: hidden;
  touch-action: none;
}
.talent-pay-handle {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: rgba(26,36,33,0.14);
  margin: 2px auto 14px;
}
.talent-pay-panel h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--color-text-primary);
  text-wrap: balance;
}
.talent-pay-panel > p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}
.talent-pay-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.talent-pay-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--color-brand-soft);
  color: var(--color-text-secondary);
  font-size: 12px;
}
.talent-pay-stats b {
  color: var(--color-brand);
  font-weight: 700;
}
.talent-pay-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.talent-pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.talent-pay-actions .talent-primary { height: 46px; border-radius: 14px; }
.talent-pay-actions .talent-ghost { height: 42px; border-radius: 12px; font-size: 13px; }
.talent-pay-later {
  border: 0;
  background: transparent;
  color: var(--color-text-light);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0 2px;
  cursor: pointer;
}
.talent-pay-pkgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-light);
}
.talent-pay-empty {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
}

/* 分享海报：居中弹窗（微信长页 + overflow:hidden 会导致 fixed 弹层「看不见且页面锁死」） */
.talent-share-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.talent-share-modal.is-on {
  display: flex !important;
}
.talent-share-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(26, 36, 33, 0.55);
  -webkit-appearance: none;
  appearance: none;
}
.talent-share-modal-panel {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 420px;
  max-height: 85vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 20px;
  padding: 16px 16px 14px;
  box-shadow: 0 16px 48px rgba(20, 28, 24, 0.22);
  box-sizing: border-box;
}
.talent-share-modal-panel h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--color-text-primary);
  text-align: center;
}
.talent-share-modal-panel > p {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: center;
}
.talent-share-modal-panel img#share-preview {
  display: block;
  width: 100%;
  height: auto;
  min-height: 120px;
  border-radius: 14px;
  border: 1px solid rgba(47, 111, 94, 0.1);
  background: #E6EBE6;
}
.talent-share-loading {
  text-align: center;
  padding: 28px 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
body.talent-share-open {
  overflow: hidden !important;
  width: 100%;
}

/* ========== 报告阅读页 ========== */
.talent-report-page .talent-shell {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 120px;
}
.talent-report-topbar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(230,235,230,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47,111,94,0.06);
}
.talent-report-topbar .talent-brand {
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  min-width: 0;
}
.talent-report-topbar .talent-icon-btn,
.talent-report-topbar .talent-pill {
  flex-shrink: 0;
  justify-self: stretch;
}
.talent-report-topbar .talent-pill {
  justify-self: end;
}
.talent-report-hero {
  margin: 4px 16px 14px;
  padding: 18px 16px 16px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(228,240,235,0.9));
  border: 1px solid rgba(47,111,94,0.12);
  box-shadow: 0 8px 24px rgba(47,111,94,0.06);
}
.talent-report-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 8px;
}
.talent-report-hero h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--color-text-primary);
  text-wrap: balance;
}
.talent-report-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.talent-report-chips span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--color-border-light);
  font-size: 11px;
  color: var(--color-text-secondary);
}
.talent-report {
  margin: 0 16px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--color-border-light);
  padding: 18px 16px 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 2px 12px rgba(26,36,33,0.04);
  box-sizing: border-box;
}
.talent-report h1 {
  display: none; /* 标题已在 hero，避免重复 */
}
.talent-report h2, .talent-report h3 {
  font-family: var(--font-display);
  margin: 1.35em 0 0.55em;
  white-space: normal;
  line-height: 1.35;
  color: var(--color-text-primary);
  padding-top: 0.35em;
  border-top: 1px solid rgba(47,111,94,0.08);
}
.talent-report h2:first-child,
.talent-report h3:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0.4em;
}
.talent-report h2 { font-size: 18px; }
.talent-report h3 { font-size: 16px; }
.talent-report p {
  margin: 0.55em 0;
  white-space: pre-wrap;
}
.talent-report strong {
  font-weight: 700;
  color: #16352d;
}
/* 必须 !important：design-v2 的 body>* 会把 fixed 打成 relative */
body > .talent-report-actions,
.talent-report-actions {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1100 !important;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--color-border-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.talent-report-actions .talent-primary,
.talent-report-actions .talent-ghost {
  height: 44px;
  border-radius: 12px;
  text-decoration: none;
}
.talent-report-links {
  margin: 12px 16px 0;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.talent-report-note {
  font-size: 11px;
  color: var(--color-text-light);
  line-height: 1.55;
  margin: 4px 0 0;
}

/* ========== 可视化蓝图 ========== */
#report.talent-report {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  white-space: normal;
}
.lrv-root { display: flex; flex-direction: column; gap: 12px; }
.lrv-summary {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(47,111,94,0.1), rgba(255,255,255,0.9));
  border: 1px solid rgba(47,111,94,0.14);
}
.lrv-summary > i {
  font-size: 22px;
  color: var(--color-brand);
  flex-shrink: 0;
  margin-top: 2px;
}
.lrv-summary p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.lrv-toc {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}
.lrv-toc::-webkit-scrollbar { display: none; }
.lrv-toc-item {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.lrv-toc-item:active { background: var(--color-brand-soft); color: var(--color-brand); }

.lrv-section {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--color-border-light);
  padding: 16px 14px 16px;
  box-shadow: 0 2px 12px rgba(26,36,33,0.04);
  scroll-margin-top: 64px;
}
.lrv-fulltext {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lrv-fulltext-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  margin: 4px 4px 0;
}
.lrv-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.lrv-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 20px;
  flex-shrink: 0;
}
.lrv-section.is-energy .lrv-section-icon { background: #FFF3E8; color: #B56B4A; }
.lrv-section.is-experiments .lrv-section-icon { background: #EEF4FF; color: #3D6F9A; }
.lrv-section.is-disclaimer .lrv-section-icon { background: #F3F4F3; color: #6B7C74; }
.lrv-section-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-brand);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.lrv-section-head h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--font-display);
  font-size: 17px !important;
  line-height: 1.35;
  color: var(--color-text-primary);
}
.lrv-section-body { font-size: 14px; line-height: 1.7; color: var(--color-text-primary); }
.lrv-p { margin: 0 0 0.75em; white-space: pre-wrap; }
.lrv-p:last-child { margin-bottom: 0; }
.lrv-list {
  margin: 0;
  padding-left: 1.15em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lrv-list li { padding-left: 2px; }

.lrv-talent-grid { display: flex; flex-direction: column; gap: 10px; }
.lrv-talent-card {
  position: relative;
  padding: 14px 14px 12px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FAFCFA, #F3F8F5);
  border: 1px solid rgba(47,111,94,0.12);
}
.lrv-talent-idx {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: rgba(47,111,94,0.22);
  line-height: 1;
  margin-bottom: 6px;
}
.lrv-talent-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.lrv-talent-body { font-size: 13px; color: var(--color-text-secondary); }

.lrv-energy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 420px) {
  .lrv-energy { grid-template-columns: 1fr 1fr; }
}
.lrv-energy-col {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--color-border-light);
}
.lrv-energy-col.is-fill {
  background: rgba(47,111,94,0.06);
  border-color: rgba(47,111,94,0.16);
}
.lrv-energy-col.is-drain {
  background: rgba(181,107,74,0.07);
  border-color: rgba(181,107,74,0.18);
}
.lrv-energy-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.lrv-energy-col.is-fill .lrv-energy-label { color: var(--color-brand); }
.lrv-energy-col.is-drain .lrv-energy-label { color: #B56B4A; }

.lrv-exp-list { display: flex; flex-direction: column; gap: 10px; }
.lrv-exp-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #F7FAF8;
  border: 1px solid var(--color-border-light);
}
.lrv-exp-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lrv-exp-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.lrv-exp-desc { font-size: 13px; color: var(--color-text-secondary); }

.lrv-section.is-disclaimer {
  background: #F7F8F7;
}
.lrv-section.is-disclaimer .lrv-section-body {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.lrv-scorebar {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: rgba(47,111,94,0.1);
  margin: 18px 0 12px;
  overflow: visible;
}
.lrv-scorebar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #3D8A74, #2F6F5E);
  overflow: hidden;
}
.lrv-scorebar > em {
  position: absolute;
  right: 0;
  top: -16px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-brand);
}

.lrv-meter { margin-bottom: 10px; }
.lrv-meter:last-child { margin-bottom: 0; }
.lrv-meter-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}
.lrv-meter-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
}
.lrv-meter-track > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--color-brand);
  font-style: normal;
}
.lrv-meter.is-drain .lrv-meter-track > i { background: #B56B4A; }

.lrv-radar-wrap {
  width: min(100%, 320px);
  margin: 4px auto 8px;
}
.lrv-radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.lrv-radar-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--color-brand-soft);
  font-size: 11px;
  color: var(--color-text-secondary);
}
.lrv-radar-chip b { color: var(--color-brand); font-weight: 700; }
.lrv-radar-chip span {
  font-weight: 700;
  color: var(--color-text-primary);
}

/* 首页入口见文件顶部 .life-invite（勿在此覆盖 .talent-invite，以免污染天赋入口） */
