/* 工作台(/home/*)专属样式 */

.mf-formula-result {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 80px;
  color: #2a2026;
}

.mf-formula-verdict {
  padding: clamp(38px, 7vw, 82px);
  overflow: hidden;
  text-align: center;
  border: 1px solid #eadce1;
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 0%, #fff8f0 0, transparent 38%),
    radial-gradient(circle at 88% 90%, #f5dce5 0, transparent 36%),
    #fff;
  box-shadow: 0 28px 80px rgb(92 35 59 / 10%);
}

.mf-formula-verdict > span {
  color: #a14a6c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

.mf-formula-verdict-person {
  margin: 28px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mf-formula-verdict-person i {
  width: 72px;
  height: 72px;
  display: block;
  border: 4px solid white;
  border-radius: 50%;
  background: #eee center / cover;
  box-shadow: 0 10px 30px rgb(71 35 49 / 18%);
}

.mf-formula-verdict-person small { color: #83747b; }

.mf-formula-verdict h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.mf-formula-verdict > p {
  max-width: 680px;
  margin: 22px auto 0;
  color: #71636a;
  font-size: 18px;
  line-height: 1.8;
}

.mf-formula-facts {
  max-width: 620px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid #e9dce1;
  border-radius: 18px;
  background: rgb(255 255 255 / 72%);
}

.mf-formula-facts div { padding: 20px; }

.mf-formula-facts div + div { border-left: 1px solid #e9dce1; }

.mf-formula-facts strong { display: block; color: #852d54; font: 500 28px/1.2 Georgia, "Songti SC", serif; }

.mf-formula-facts span { display: block; margin-top: 7px; color: #806f77; font-size: 13px; }

.mf-identity-lead { margin-bottom: 8px !important; color: #9a6b7f !important; font-size: 14px !important; font-weight: 750; letter-spacing: .12em; }

.mf-identity-symbolic-note { display: block; max-width: 620px; margin: 20px auto 0; color: #998890; font-size: 11px; line-height: 1.6; }

.mf-identity-ranking { margin-top: 28px; padding: clamp(28px, 5vw, 52px); border: 1px solid #eadfe3; border-radius: 28px; background: #fff; }

.mf-identity-section-heading > span { color: #a34b6c; font-size: 11px; font-weight: 800; letter-spacing: .14em; }

.mf-identity-section-heading h2 { margin: 8px 0 0; font: 500 clamp(30px, 4vw, 46px)/1.2 Georgia, "Songti SC", serif; }

.mf-identity-section-heading p { margin: 10px 0 0; color: #8b7a82; font-size: 13px; }

.mf-identity-ranking-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.mf-identity-ranking-grid article { min-width: 0; padding: 24px; border: 1px solid #eadfe3; border-radius: 20px; background: #fdfafb; }

.mf-identity-ranking-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.mf-identity-ranking-grid article > div span { color: #9b4668; font: 500 20px/1 Georgia, serif; }

.mf-identity-ranking-grid article > div small { padding: 5px 8px; border-radius: 999px; color: #86556a; background: #f1e4e9; font-size: 10px; }

.mf-identity-ranking-grid h3 { margin: 22px 0 10px; color: #442f39; font: 500 25px/1.25 Georgia, "Songti SC", serif; }

.mf-identity-ranking-grid p { min-height: 72px; margin: 0; color: #76676e; font-size: 13px; line-height: 1.75; }

.mf-identity-ranking-grid footer { margin-top: 20px; padding-top: 14px; border-top: 1px solid #eadfe3; color: #9a5871; font-size: 11px; font-weight: 750; }

.mf-identity-choice-roles { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }

.mf-identity-choice-roles span { padding: 6px 9px; border: 1px solid #e4cdd6; border-radius: 999px; color: #84415e; background: rgb(255 255 255 / 72%); font-size: 10px; font-weight: 750; }

.mf-formula-review-section {
  margin-top: 28px;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid #eadfe3;
  border-radius: 28px;
  background: #fff;
}

.mf-formula-review-section > header { margin-bottom: 28px; }

.mf-formula-review-section > header > span { color: #a34b6c; font-size: 12px; font-weight: 800; letter-spacing: .14em; }

.mf-formula-review-section > header h2 { margin: 8px 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(30px, 4vw, 48px); font-weight: 500; }

.mf-formula-review-section > header p { margin: 0; color: #817279; }

.mf-formula-review-list { display: grid; gap: 16px; }

.mf-formula-review-list article {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid #eee4e7;
  border-radius: 20px;
  background: #fdfbfb;
}

.mf-formula-review-index { display: flex; align-items: center; gap: 10px; }

.mf-formula-review-index span { color: #8c3158; font: 500 20px/1 Georgia, serif; }

.mf-formula-review-index b { padding: 5px 9px; color: #8b5c6e; border-radius: 99px; background: #f3e8ec; font-size: 11px; }

.mf-formula-review-list h3 { margin: 16px 0 20px; font-size: 21px; line-height: 1.55; }

.mf-formula-global-basis { margin-top: 28px; padding: clamp(28px, 5vw, 52px); border: 1px solid #eadfe3; border-radius: 28px; background: linear-gradient(145deg, #fff, #fbf1f4); box-shadow: 0 20px 54px rgb(92 35 59 / 6%); }

.mf-formula-basis-summary { max-width: 900px; margin: 0; color: #5f5158; font-size: 17px; line-height: 1.85; }

.mf-formula-basis-grid { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.mf-formula-basis-grid article { padding: 20px; border: 1px solid rgb(122 41 78 / 9%); border-radius: 17px; background: rgb(255 255 255 / 72%); }

.mf-formula-basis-grid span, .mf-formula-basis-concerns > span { color: #9d5672; font-size: 11px; font-weight: 800; }

.mf-formula-basis-grid p { margin: 9px 0 0; color: #66585f; font-size: 14px; line-height: 1.75; }

.mf-formula-basis-concerns { margin-top: 18px; display: flex; align-items: center; gap: 18px; }

.mf-formula-basis-concerns > div { display: flex; flex-wrap: wrap; gap: 8px; }

.mf-formula-basis-concerns b { padding: 8px 12px; border-radius: 999px; color: #7f3555; background: #f3e5ea; font-size: 11px; }

.mf-formula-choice { margin-top: 12px; padding: 18px 20px; border-radius: 15px; }

.mf-formula-choice small { display: block; margin-bottom: 7px; font-weight: 800; }

.mf-formula-choice strong { display: block; font-size: 16px; line-height: 1.55; }

.mf-formula-explanation {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgb(86 70 77 / 12%);
}

.mf-formula-explanation p {
  margin: 0;
  color: #65585e;
  font-size: 15px;
  line-height: 1.8;
}

.mf-key-point {
  padding: 0 .08em;
  color: inherit;
  font-weight: 750;
  background: linear-gradient(transparent 57%, rgb(174 113 139 / 22%) 57%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
@media (max-width: 640px) {

  .mf-formula-result { width: min(100% - 20px, 1180px); margin-top: 18px; }
}
@media (max-width: 640px) {

  .mf-formula-verdict { padding: 34px 20px; border-radius: 24px; }
}
@media (max-width: 640px) {

  .mf-formula-facts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {

  .mf-formula-facts div + div { border-top: 1px solid #e9dce1; border-left: 0; }
}
@media (max-width: 640px) {

  .mf-formula-review-section { padding: 24px 16px; border-radius: 22px; }
}
@media (max-width: 640px) {

  .mf-formula-global-basis { padding: 24px 18px; border-radius: 22px; }
}
@media (max-width: 640px) {

  .mf-formula-basis-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {

  .mf-formula-basis-concerns { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 640px) {

  .mf-identity-ranking { padding: 24px 16px; border-radius: 22px; }
}
@media (max-width: 640px) {

  .mf-identity-ranking-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {

  .mf-identity-ranking-grid p { min-height: 0; }
}

/* ── Vedic composite result (version 4) ─────────────────────────────── */




@media (max-width: 720px) {

}
@media (max-width: 720px) {

}
@media (max-width: 720px) {

}

.mf-upgrade-paypanel { margin-top: 22px; padding: 26px; border: 1px solid #e4cdd6; border-radius: 24px; background: linear-gradient(145deg, #fff8fa, #fdf4f7); }

.mf-upgrade-paypanel-qr { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

.mf-upgrade-paypanel-qrimg { flex-shrink: 0; width: 176px; height: 176px; display: grid; place-items: center; background: #fff; border: 1px solid #eadfe3; border-radius: 16px; color: #9a8f94; font-size: 12px; }

.mf-upgrade-paypanel-qrimg img { border-radius: 10px; }

.mf-upgrade-paypanel-copy h2 { margin: 0 0 10px; color: #442f39; font: 500 20px/1.3 Georgia, "Songti SC", serif; }

.mf-upgrade-paypanel-copy p { margin: 0 0 8px; color: #76676e; font-size: 13px; line-height: 1.7; }

.mf-upgrade-paypanel-copy a { color: #852d54; font-size: 13px; font-weight: 650; }

.mf-upgrade-paypanel-paid { display: flex; gap: 16px; align-items: center; }

.mf-upgrade-paypanel-paid > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e2efe6; color: #3d6b4c; font-size: 24px; }

.mf-upgrade-paypanel-paid h2 { margin: 0 0 6px; color: #3d6b4c; font: 500 20px/1.3 Georgia, "Songti SC", serif; }

.mf-upgrade-paypanel-paid p { margin: 0; color: #76676e; font-size: 13px; }

/* ── route transition skeletons ─────────────────────────────────────── */
.mf-workspace-skeleton { padding: 28px 0; display: grid; gap: 18px; }

.mf-skeleton { position: relative; overflow: hidden; border-radius: 14px; background: var(--bz-card); }

.mf-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 235 242 / 7%), transparent); animation: mf-skeleton-shimmer 1.4s infinite; }

.mf-skeleton-heading { width: 40%; height: 30px; }

.mf-skeleton-title { width: 52%; height: 34px; }

.mf-skeleton-hero { width: 100%; height: 180px; border-radius: 24px; }

.mf-skeleton-button { width: 160px; height: 46px; border-radius: 999px; margin-top: 6px; }

.mf-skeleton-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) {
 .mf-skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
 .mf-skeleton::after { animation: none; }
}

/* ── 个人八字解读 · 新中式结果页 (mf-bz) ──────────────────────────────── */
.mf-bz-result { display: grid; gap: 22px; padding: clamp(18px, 4vw, 40px); border-radius: 18px; background: #faf8f4; }

.mf-bz-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.mf-bz-pagehead span { color: #a92434; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; }

.mf-bz-pagehead h1 { margin: 8px 0 6px; color: #1c1917; font: 700 28px/1.2 "Songti SC", Georgia, serif; letter-spacing: 0.04em; }

.mf-bz-pagehead p { margin: 0; color: #78716c; font-size: 12px; }

.mf-bz-export { padding: 10px 18px; border: 1px solid #d6cdbd; border-radius: 999px; background: #fff; color: #8b1e2d; font-size: 12.5px; font-weight: 700; cursor: pointer; }

.mf-bz-export:hover { background: #8b1e2d; color: #fff; }

.mf-bz-hero { display: grid; grid-template-columns: 1fr 220px; gap: 26px; padding: 28px; border: 1px solid #ebe5da; border-radius: 12px; background: linear-gradient(160deg, #f7f1e6, #f1e9d9); }

.mf-bz-hero-copy h2 { margin: 0 0 12px; color: #8b1e2d; font: 700 24px/1.35 "Songti SC", Georgia, serif; }

.mf-bz-hero-copy p { margin: 0; color: #57534e; font-size: 13.5px; line-height: 1.9; }

.mf-bz-hero-meta { margin: 0; display: grid; gap: 14px; align-content: start; }

.mf-bz-hero-meta div { padding: 12px 14px; border-left: 3px solid #8b1e2d; background: rgb(255 255 255 / 70%); border-radius: 0 10px 10px 0; }

.mf-bz-hero-meta dt { color: #a8a29e; font-size: 10.5px; letter-spacing: 0.1em; }

.mf-bz-hero-meta dd { margin: 5px 0 0; color: #1c1917; font-size: 14px; font-weight: 700; }

.mf-bz-paipan { padding: 24px; border: 1px solid #ebe5da; border-radius: 12px; background: #fff; }

.mf-bz-paipan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }

.mf-bz-paipan-head h2 { margin: 0; color: #8b1e2d; font: 700 19px/1 "Songti SC", Georgia, serif; letter-spacing: 0.14em; }

.mf-bz-paipan-head span { color: #a8a29e; font-size: 11.5px; }

.mf-bz-paipan-table { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.mf-bz-pillar { display: grid; justify-items: center; gap: 8px; padding: 16px 10px 12px; border: 1px solid #ece6da; border-radius: 10px; background: #fdfbf7; }

.mf-bz-pillar header { display: grid; justify-items: center; gap: 2px; }

.mf-bz-pillar header b { color: #1c1917; font-size: 13px; letter-spacing: 0.2em; }

.mf-bz-pillar header small { color: #b8b0a2; font-size: 9.5px; }

.mf-bz-gan, .mf-bz-zhi { display: grid; justify-items: center; gap: 1px; }

.mf-bz-gan strong, .mf-bz-zhi strong { font: 700 52px/1.1 "Songti SC", Georgia, serif; }

.mf-bz-gan em, .mf-bz-zhi em { font-style: normal; color: #b8b0a2; font-size: 10px; }

.mf-bz-gan small { margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #f3ece0; color: #8b1e2d; font-size: 10.5px; font-weight: 700; }

.mf-bz-hidegan { display: grid; justify-items: center; gap: 2px; padding-top: 6px; border-top: 1px dashed #e5ddcd; width: 100%; }

.mf-bz-hidegan small { color: #b8b0a2; font-size: 9px; letter-spacing: 0.15em; }

.mf-bz-hidegan b { color: #44403c; font-size: 14px; letter-spacing: 0.2em; }

.mf-bz-hidegan span { color: #a8a29e; font-size: 9.5px; }

.mf-bz-pillar footer { color: #b8b0a2; font-size: 10px; }

.mf-bz-paipan-foot { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0eadf; color: #78716c; font-size: 12px; }

.mf-bz-paipan-foot b { color: #8b1e2d; }

.mf-bz-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.mf-bz-panel { padding: 22px 24px; border: 1px solid #ebe5da; border-radius: 12px; background: #fff; }

.mf-bz-panel h3 { margin: 0 0 16px; color: #1c1917; font: 700 15px/1 "Songti SC", Georgia, serif; letter-spacing: 0.12em; }

.mf-bz-wuxing { display: grid; gap: 12px; }

.mf-bz-wuxing > div { display: grid; grid-template-columns: 26px 1fr 44px; align-items: center; gap: 12px; }

.mf-bz-wuxing i { display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 800; }

.mf-bz-wuxing-bar { height: 10px; border-radius: 999px; background: #f3eee4; overflow: hidden; }

.mf-bz-wuxing-bar span { display: block; height: 100%; border-radius: 999px; }

.mf-bz-wuxing b { color: #78716c; font-size: 11.5px; text-align: right; }

.mf-bz-dayun-slider { display: grid; grid-template-columns: 30px 1fr 30px; align-items: stretch; gap: 8px; }

.mf-bz-dayun-arrow { border: 1px solid #ece6da; border-radius: 10px; background: #fdfbf7; color: #8b1e2d; font-size: 18px; cursor: pointer; }

.mf-bz-dayun-arrow:hover { background: #8b1e2d; color: #fff; }

.mf-bz-dayun { margin: 0; padding: 14px 4px; list-style: none; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }

.mf-bz-dayun::-webkit-scrollbar { display: none; }

.mf-bz-dayun li { scroll-snap-align: center; flex: 1 0 0; min-width: 96px; max-width: 128px; min-height: 108px; display: grid; align-content: space-evenly; justify-items: center; gap: 4px; padding: 18px 8px; border: 1px solid #ece6da; border-radius: 12px; background: #fdfbf7; }

.mf-bz-dayun b { color: #1c1917; font: 700 20px/1 "Songti SC", Georgia, serif; letter-spacing: 0.08em; }

.mf-bz-dayun span { color: #78716c; font-size: 10.5px; }

.mf-bz-dayun small { color: #b8b0a2; font-size: 9.5px; }

.mf-bz-dayun em { margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #8b1e2d; color: #fff; font-style: normal; font-size: 9.5px; font-weight: 700; }

.mf-bz-sections { padding: 24px; border: 1px solid #ebe5da; border-radius: 12px; background: #fff; }

.mf-bz-sections h3 { margin: 0 0 16px; color: #1c1917; font: 700 15px/1 "Songti SC", Georgia, serif; letter-spacing: 0.12em; }

.mf-bz-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.mf-bz-section-grid article { padding: 18px 20px; border: 1px solid #ece6da; border-radius: 10px; background: #fdfbf7; }

.mf-bz-section-grid header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }

.mf-bz-section-grid header span { color: #c9a15a; font: 700 16px/1 Georgia, serif; }

.mf-bz-section-grid h4 { margin: 0; color: #1c1917; font: 700 15px/1.3 "Songti SC", Georgia, serif; }

.mf-bz-section-grid p { margin: 0; color: #57534e; font-size: 12.5px; line-height: 1.9; }

.mf-bz-disclaimer { margin: 0; padding: 12px 16px; border-radius: 10px; background: #f3eee4; color: #a8a29e; font-size: 11px; line-height: 1.7; }
@media (max-width: 860px) {

  .mf-bz-hero { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {

  .mf-bz-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {

  .mf-bz-paipan-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {

  .mf-bz-section-grid { grid-template-columns: 1fr; }
}
@media print {

  .mf-bz-export, .mf-result-actions { display: none; }
}
@media print {

  .mf-bz-result { background: #fff; }
}

.mf-bz-field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }

.mf-bz-field > span { color: #57534e; font-size: 12.5px; font-weight: 700; }

.mf-bz-field input, .mf-bz-field select { padding: 13px 14px; border: 1px solid #e5ddcd; border-radius: 10px; background: #fdfbf7; color: #1c1917; font-size: 14px; }

.mf-bz-field input:focus, .mf-bz-field select:focus { outline: none; border-color: #8b1e2d; background: #fff; }


.mf-bz-draft-note { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border: 1px dashed #d6cdbd; border-radius: 10px; background: #fdf8ee; }

.mf-bz-draft-note span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: #8b1e2d; }

.mf-bz-draft-note b { display: block; margin-bottom: 4px; color: #1c1917; font-size: 13.5px; }

.mf-bz-draft-note p { margin: 0; color: #78716c; font-size: 12px; }

/* ── 个人中心 · Figma 版单列布局 ─────────────────────────────────────── */
.mf-bz-profile { display: flex; flex-direction: column; gap: 36px; padding: clamp(24px, 4vw, 44px) clamp(18px, 4vw, 54px); }

.mf-bz-profile-loading { color: var(--bz-muted); font-size: 14px; }

.mf-bz-account-card { display: flex; align-items: center; gap: 30px; padding: 0 36px; min-height: 220px; border: 1px solid var(--bz-line); border-radius: 14px; background: var(--bz-card); flex-wrap: wrap; }

.mf-bz-account-details { flex: 1; min-width: 240px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

.mf-bz-account-details > div { display: grid; gap: 5px; }

.mf-bz-account-details span { color: var(--bz-muted); font: 400 14px/17px Inter, system-ui, sans-serif; }

.mf-bz-account-details input { width: min(320px, 100%); padding: 4px 0; border: 0; border-bottom: 1px solid var(--bz-line-strong); background: transparent; color: var(--bz-ink); font: 700 28px/40px "Noto Serif SC", "Songti SC", Georgia, serif; }

.mf-bz-account-details input:focus { outline: none; border-bottom-color: var(--bz-red); }

.mf-bz-account-details b { color: var(--bz-ink); font: 400 18px/22px Inter, system-ui, sans-serif; word-break: break-all; }

.mf-bz-account-button { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 136px; height: 58px; border: 1px solid var(--bz-red); border-radius: 6px; background: transparent; color: var(--bz-red-bright); font: 600 18px/26px "Noto Serif SC", "Songti SC", Georgia, serif; cursor: pointer; }

.mf-bz-account-button:hover { background: var(--bz-red); color: #fff; }
@media (max-width: 720px) {
 .mf-bz-account-card { padding: 24px; }
}

.mf-bz-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border: 1px solid var(--bz-line-strong); border-radius: 10px; background: var(--bz-paper-warm); color: var(--bz-ink); font: 650 13.5px/1.2 var(--font-serif-display); cursor: pointer; text-decoration: none; }

.mf-bz-btn-ghost:hover { border-color: var(--bz-red); color: var(--bz-red); }

/* ── 工作台外壳 · bz 语言覆盖(类名保留)────────────────────────────── */
.mf-workspace-shell .mf-bz-account-button { border-color: var(--bz-red-bright); background: var(--bz-paper-warm); color: var(--bz-red-bright); }

.mf-workspace-shell .mf-primary-button { background: linear-gradient(135deg, #a84265, #702443); }

.mf-workspace-shell .mf-secondary-button { border-color: var(--bz-line-strong); background: var(--bz-card); color: var(--bz-ink); }

.mf-workspace-sidebar { background: rgb(21 16 20 / 92%); backdrop-filter: blur(18px); border-right-color: var(--bz-line); z-index: 30; }

.mf-workspace-brand { color: var(--bz-ink) !important; }

.mf-workspace-brand span:last-child { font: 700 17px/1 var(--font-serif-display); }

.mf-workspace-nav-item { border-radius: 10px; }

.mf-workspace-nav-item:hover { color: #e8dade; background: rgb(255 235 242 / 4.5%); transform: none; }

.mf-workspace-nav-item:focus-visible { outline: 2px solid rgb(198 75 115 / 55%); outline-offset: 2px; }

.mf-workspace-nav-item .mf-workspace-nav-icon { border-radius: 9px; color: var(--bz-muted); background: rgb(255 235 242 / 6%); }

.mf-workspace-nav-item small { color: var(--bz-muted); }

.mf-workspace-account { border-top-color: var(--bz-line); }
.mf-workspace-account a:hover { color: var(--bz-red); background: rgb(198 75 115 / 12%); }

.mf-workspace-account button { color: var(--bz-muted); }

.mf-workspace-account button:hover { color: var(--bz-red); }

.mf-workspace-account button .mf-workspace-nav-icon, .mf-workspace-account a .mf-workspace-nav-icon { border-radius: 9px; }

/* ── 升级页 · bz 语言覆盖(类名保留)────────────────────────────────── */
.mf-upgrade-workspace { background: var(--bz-paper); border-radius: 18px; padding: clamp(18px, 4vw, 40px); }

.mf-upgrade-tabs button { border-radius: 10px; }

.mf-upgrade-plan { border-color: var(--bz-line); border-radius: 12px; background: var(--bz-card); }

.mf-upgrade-plan-name { font: 700 16px/1.3 var(--font-serif-display); color: var(--bz-ink); }

.mf-upgrade-plan-badge { color: var(--bz-red); background: #f7e3e3; }

.mf-upgrade-plan-price { font: 700 46px/1 var(--font-serif-display); letter-spacing: 0; color: var(--bz-ink); }

.mf-upgrade-plan-uses strong { color: var(--bz-red); }

.mf-upgrade-plan-unit, .mf-upgrade-plan-description { color: var(--bz-muted); }

.mf-upgrade-includes { border: 1px solid var(--bz-line); border-radius: 12px; background: var(--bz-card); }

.mf-upgrade-includes > span { color: var(--bz-red); }

.mf-upgrade-includes p { color: #57534e; }

.mf-upgrade-paypanel { border-color: var(--bz-line); border-radius: 12px; background: var(--bz-card); }

.mf-upgrade-feedback { color: var(--bz-muted); }

.mf-upgrade-workspace .mf-primary-button, .mf-upgrade-workspace .mf-secondary-button { border-radius: 10px; }

.mf-upgrade-workspace .mf-secondary-button { border-color: var(--bz-line-strong); background: var(--bz-paper-warm); color: var(--bz-ink); }
.mf-test-header { background: rgb(255 254 252 / 78%); }

.mf-hist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.mf-bz-discover-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--bz-line); }

.mf-bz-discover-pagination button { padding: 9px 16px; border: 1px solid var(--bz-line-strong); border-radius: 10px; background: var(--bz-card); color: var(--bz-ink); font-size: 12.5px; font-weight: 650; cursor: pointer; }

.mf-bz-discover-pagination button:disabled { opacity: 0.45; cursor: default; }

.mf-bz-discover-pagination span { color: var(--bz-muted); font-size: 12px; }
@media (max-width: 1080px) {
 .mf-bz-discover-grid, .mf-hist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {

  .mf-hist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 560px) {

  .mf-bz-discover, .mf-hist { gap: 13px; padding: 14px 12px 16px; overflow: hidden; }
}
@media (max-width: 560px) {

  .mf-bz-discover-grid, .mf-hist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 560px) {

  .mf-bz-discover-pagination { flex-wrap: wrap; gap: 10px; }
}

/* ── 偶像适配榜 (mf-bz-rank) ─────────────────────────────────────────── */
.mf-bz-rank { display: flex; flex-direction: column; gap: 24px; padding: clamp(18px, 4vw, 40px); background: var(--bz-paper); border-radius: 18px; }

.mf-bz-rank-head span { color: var(--bz-red-bright); font-size: 11px; font-weight: 800; letter-spacing: 0.22em; }

.mf-bz-rank-head h1 { margin: 10px 0 8px; color: var(--bz-ink); font: 700 clamp(24px, 3.6vw, 34px)/1.2 var(--font-serif-display); }

.mf-bz-rank-head p { margin: 0; color: var(--bz-muted); font-size: 13px; max-width: 640px; }

.mf-bz-rank-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }

.mf-bz-rank-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.mf-bz-rank-top { display: grid; justify-items: center; gap: 6px; padding: 22px 16px 18px; border: 1px solid var(--bz-line); border-radius: 14px; background: var(--bz-card); color: inherit; text-decoration: none; }

.mf-bz-rank-medal { font-size: 24px; }

.mf-bz-rank-top img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bz-line-strong); }

.mf-bz-rank-top b { color: var(--bz-ink); font: 700 17px/1.3 var(--font-serif-display); }

.mf-bz-rank-top > span { color: var(--bz-muted); font-size: 11px; }

.mf-bz-rank-top strong { margin-top: 4px; color: var(--bz-red); font: 700 30px/1 Georgia, serif; }

.mf-bz-rank-top small { color: var(--bz-muted); font-size: 10.5px; }

.mf-bz-rank-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }

.mf-bz-rank-list a { display: grid; grid-template-columns: 40px 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 16px; border: 1px solid var(--bz-line); border-radius: 12px; background: var(--bz-card); color: inherit; text-decoration: none; }

.mf-bz-rank-list a:hover { border-color: var(--bz-red); }

.mf-bz-rank-list b { color: var(--bz-muted); font: 700 15px/1 Georgia, serif; }

.mf-bz-rank-list img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

.mf-bz-rank-list strong { display: block; color: var(--bz-ink); font-size: 14px; }

.mf-bz-rank-list span { color: var(--bz-muted); font-size: 11px; }

.mf-bz-rank-list i { color: var(--bz-red); font: 700 17px/1 Georgia, serif; font-style: normal; }
@media (max-width: 860px) {
 .mf-bz-rank-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
 .mf-bz-rank-podium { grid-template-columns: 1fr; }
}

/* ── 明星详情页 · 继续探索横排 ───────────────────────────────────────── */
.mf-detail-others { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 10px 0 70px; }

.mf-detail-others h2 { margin: 0 0 18px; color: var(--bz-ink); font: 700 20px/1.3 var(--font-serif-display); }

.mf-detail-others-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }

.mf-detail-others-card { min-width: 0; display: grid; gap: 8px; color: inherit; text-decoration: none; }

.mf-detail-others-portrait { display: block; aspect-ratio: 3 / 3.6; border-radius: 10px; background-position: center; background-size: cover; border: 1px solid var(--bz-line); transition: transform .25s ease, border-color .25s ease; }

.mf-detail-others-card:hover .mf-detail-others-portrait { transform: translateY(-3px); border-color: var(--bz-red); }

.mf-detail-others-card b { overflow: hidden; color: var(--bz-ink); font: 650 12.5px/1.3 var(--font-serif-display); text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
 .mf-detail-others-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── 明星正缘分析报告页(静态框架,内容待填充)───────────────────────── */
.mf-bz-starreport { display: grid; gap: 24px; padding: clamp(18px, 4vw, 40px); background: var(--bz-paper); border-radius: 0; }

.mf-bz-starreport-hero { display: flex; gap: 26px; align-items: center; padding: 28px; border: 1px solid var(--bz-line); border-radius: 14px; background: var(--bz-card); }

.mf-bz-starreport-hero img { flex-shrink: 0; width: 132px; height: 160px; border-radius: 12px; object-fit: cover; border: 1px solid var(--bz-line); }

.mf-bz-starreport-kicker { color: var(--bz-red-bright); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; }

.mf-bz-starreport-hero h1 { margin: 10px 0 10px; color: var(--bz-ink); font: 700 clamp(26px, 3vw, 34px)/1.2 var(--font-serif-display); }

.mf-bz-starreport-hero p { margin: 0; color: var(--bz-muted); font: 500 15px/1.8 var(--font-serif-display); }

.mf-bz-starreport-hero small { display: block; margin-top: 12px; color: var(--bz-red); font: 700 12px/1 Inter, system-ui, sans-serif; letter-spacing: 0.16em; }

.mf-bz-starreport-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.mf-bz-starreport-sections article { padding: 24px; border: 1px solid var(--bz-line); border-radius: 14px; background: var(--bz-card); }

.mf-bz-starreport-sections header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }

.mf-bz-starreport-sections header span { color: #c9a15a; font: 700 18px/1 Georgia, serif; }

.mf-bz-starreport-sections h2 { margin: 0; color: var(--bz-ink); font: 700 17px/1.3 var(--font-serif-display); }

.mf-bz-starreport-placeholder { display: grid; place-items: center; gap: 10px; padding: 34px 0; border: 1px dashed var(--bz-line-strong); border-radius: 10px; background: var(--bz-paper-warm); }

.mf-bz-starreport-placeholder span { color: var(--bz-gold); }

.mf-bz-starreport-placeholder p { margin: 0; color: var(--bz-muted); font-size: 12.5px; }

.mf-bz-starreport-note { margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--bz-paper-warm); color: var(--bz-muted); font-size: 11.5px; }
@media (max-width: 760px) {
 .mf-bz-starreport-hero { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
 .mf-bz-starreport-sections { grid-template-columns: 1fr; }
}


/* ── 个人中心 · 组件尺寸/UI 重设计(覆盖旧版)────────────────────────── */
.mf-bz-profile { gap: 26px; padding: clamp(20px, 4vw, 44px) clamp(20px, 4vw, 54px); }

/* 账号卡:更紧凑,头像带酒红环 */
.mf-bz-account-card { min-height: 0; padding: 22px 28px; gap: 24px; border-radius: 14px; }

.mf-bz-account-details { gap: 14px; }

.mf-bz-account-details input { width: min(300px, 100%); font: 700 24px/34px "Noto Serif SC", "Songti SC", Georgia, serif; }

.mf-bz-account-details b { font-size: 15px; }

.mf-bz-account-button { width: 108px; height: 46px; font-size: 15px; border-radius: 8px; }

.mf-bz-pr-cover { flex-shrink: 0; display: grid; place-items: center; width: 132px; height: 160px; border-radius: 12px; background: linear-gradient(160deg, #3a1c29, #261b22); border: 1px solid var(--bz-line); color: var(--bz-red-bright); font: 700 44px/1 var(--font-serif-display); }

/* ============ 明星正缘报告(八字)·深色报告版式 ============ */
.mf-zr { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 32px); background: var(--bz-paper); border-radius: 0; color: var(--bz-ink); min-width: 0; --mf-rep-pad: clamp(16px, 3vw, 32px); }

.mf-zr-topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: calc(-1 * var(--mf-rep-pad)) calc(-1 * var(--mf-rep-pad)) 0; box-sizing: border-box; padding: 12px max(var(--mf-rep-pad), env(safe-area-inset-right)) 12px max(var(--mf-rep-pad), env(safe-area-inset-left)); background: var(--bz-paper); border-bottom: 1px solid rgb(255 255 255 / 5%); color: var(--bz-muted); font-size: 13px; letter-spacing: 1px; }

.mf-astro .mf-zr-topbar { background: #0d0b13; }

.mf-zr-topbar .mf-back-link { display: inline-flex; align-items: center; gap: 5px; color: #c9bcc2; }

.mf-zr-topbar .mf-back-link:hover { color: #f7f0f2; }

.mf-topbar-label-short { display: none; }

/* 顶栏身份块返回按钮:← + 名字/四柱 双行 */
.mf-zr-topbar .mf-back-arrow { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; font-size: 15px; color: #a89ea8; transition: color .2s ease, transform .2s ease; }

.mf-zr-topbar .mf-back-link:hover .mf-back-arrow { color: #f7f0f2; transform: translateX(-2px); }

.mf-zr-topbar .mf-topbar-id { display: flex; flex-direction: column; gap: 3px; line-height: 1.2; text-align: left; min-width: 0; }

.mf-zr-topbar .mf-topbar-id b { color: #ece7ef; font-size: 14px; font-weight: 600; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mf-zr-topbar .mf-topbar-id small { color: #7b7390; font-size: 11px; letter-spacing: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 报告页共享视觉变量:两类报告同体系(深黑红底 + 玫红强调 + 暖白文字) */
.mf-zr, .mf-astro { --mf-rep-hero-bg: linear-gradient(150deg, #231319, #170f13); --mf-rep-hero-border: rgba(198, 75, 115, 0.16); --mf-rep-topbar-h: 60px; }

.mf-zr-hero { display: flex; gap: 24px; align-items: center; padding: 24px; border: 1px solid var(--mf-rep-hero-border); border-radius: 12px; background: var(--mf-rep-hero-bg); }
.mf-zr-summary { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.mf-zr-summary span { padding: 5px 10px; border: 1px solid rgb(222 107 145 / 30%); border-radius: 999px; background: rgb(198 75 115 / 8%); color: #d8bdc7; font-size: 12px; line-height: 1; white-space: nowrap; }

.mf-zr-hero img { flex-shrink: 0; width: 108px; height: 134px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(198, 75, 115, 0.22); }

.mf-zr-kicker { color: var(--bz-muted); font-size: 11px; letter-spacing: 2px; }

.mf-zr-hero h1 { margin: 6px 0 4px; font-family: var(--font-serif-display); color: #f7f0f2; font-size: clamp(22px, 3vw, 30px); letter-spacing: 1px; }

.mf-zr-hero p { margin: 0 0 6px; color: #b3a6ac; font-size: 14px; }

.mf-zr-hero small { color: var(--bz-muted); font-size: 12px; letter-spacing: 1px; }

.mf-zr-card { background: var(--bz-card); color: var(--bz-ink); border: 1px solid var(--bz-line); border-radius: 18px; padding: 26px clamp(18px, 4vw, 34px) 30px; }

.mf-zr-card-title { display: flex; align-items: center; gap: 8px; color: var(--bz-red-bright); font-family: var(--font-serif-display); font-weight: 700; font-size: 19px; letter-spacing: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--bz-line); }

.mf-zr-sub { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; color: var(--bz-red-bright); font-weight: 700; letter-spacing: 1px; font-size: 15px; }

.mf-zr-sub::after { content: ""; flex: 1; height: 1px; background: var(--bz-line); }

.mf-zr-note { color: #776f8e; font-size: 12.5px; text-align: center; line-height: 1.9; padding: 0 12px; }
@media (max-width: 640px) {

  .mf-zr-hero { flex-direction: column; text-align: center; gap: 16px; padding: 18px 14px; }
}
@media (max-width: 640px) {

  .mf-zr-hero img { width: 88px; height: 110px; }
}
@media (max-width: 640px) {

  .mf-astro-hero { padding: 18px 14px; }
}
@media (max-width: 430px) {

  .mf-topbar-label { display: none; }
}
@media (max-width: 430px) {

  .mf-topbar-label-short { display: inline; }
}

/* ============ 正缘报告·追问命理师 ============ */
.mf-zr-ask { display: grid; gap: 9px; padding: 16px 18px 16px; border: 1px solid var(--bz-line); border-radius: 14px; background: var(--bz-card); scroll-margin-top: 108px; }

.mf-zr-ask .mf-zr-card-title { color: var(--bz-red-bright); padding-bottom: 7px; }

.mf-zr-ask-msg.assistant p { color: var(--bz-ink); }

.mf-zr-ask-typing { color: var(--bz-muted); }

.mf-zr-ask-sub { margin: 0; color: var(--bz-faint); font-size: 13.5px; }

.mf-zr-ask-log { display: grid; gap: 12px; max-height: 340px; overflow-y: auto; padding: 0 2px 4px; scroll-behavior: smooth; }

.mf-zr-ask-msg { display: grid; gap: 4px; max-width: 88%; }

.mf-zr-ask-msg p { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.8; white-space: pre-wrap; }

.mf-zr-ask-msg.assistant { justify-self: start; }

.mf-zr-ask-msg.assistant p { background: var(--bz-paper-warm); border: 1px solid var(--bz-line); border-bottom-left-radius: 4px; }

.mf-zr-ask-typing i { display: inline-block; animation: mf-zr-blink 1.2s infinite ease-in-out; font-style: normal; }

.mf-zr-ask-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.mf-zr-ask-chips button { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--bz-line-strong); background: transparent; color: var(--bz-red-bright); font-size: 13px; cursor: pointer; transition: all 0.15s ease; }

.mf-zr-ask-chips button:hover:not(:disabled) { background: var(--bz-red); color: #fff; border-color: var(--bz-red); }

.mf-zr-ask-chips button:disabled { opacity: 0.5; cursor: default; }

.mf-zr-ask-error { margin: 0; color: var(--bz-error); font-size: 13px; }

.mf-zr-ask-form { display: flex; gap: 10px; }

.mf-zr-ask-form input { flex: 1; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--bz-line-strong); background: var(--bz-paper-warm); color: var(--bz-ink); font-size: 14.5px; outline: none; }

.mf-zr-ask-form input:focus { border-color: var(--bz-red); box-shadow: 0 0 0 3px rgb(198 75 115 / 15%); }

.mf-zr-ask-form input::placeholder { color: var(--bz-faint); }

.mf-zr-ask-form button { height: 44px; padding: 0 22px; border-radius: 12px; border: none; background: var(--bz-red); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }

.mf-zr-ask-form button:disabled { opacity: 0.45; cursor: default; }

/* ============ 浏览记录页 ============ */
.mf-hist { display: grid; gap: 18px; padding: 24px 26px 20px; background: var(--bz-paper); border-radius: 18px; width: 100%; }

.mf-hist-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

.mf-hist-head h1 { margin: 8px 0 6px; font-family: var(--font-serif-display); font-size: clamp(26px, 3.4vw, 36px); color: var(--bz-ink); }

.mf-hist-head p { margin: 0; color: var(--bz-muted); font-size: 14px; }

.mf-hist-empty { display: grid; justify-items: center; gap: 8px; padding: 26px 20px; text-align: center; }

.mf-hist-empty span { font-size: 28px; color: var(--bz-red-bright); }

.mf-hist-empty h2 { margin: 0; font-family: var(--font-serif-display); font-size: 22px; color: var(--bz-ink); }

.mf-hist-empty p { margin: 0 0 10px; color: var(--bz-muted); font-size: 14px; }

/* 个人中心:解读/追问次数统计卡 */
.mf-profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.mf-profile-stats > div { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 12px; padding: 16px 18px; border: 1px solid var(--bz-line); border-radius: 14px; background: var(--bz-card); }

.mf-profile-stats i { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: #fdf2f3; }

.mf-profile-stats i svg { width: 21px; height: 21px; stroke: var(--bz-red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.mf-profile-stats strong { font-family: var(--font-serif-display); font-size: 26px; line-height: 1.1; color: var(--bz-ink); }

.mf-profile-stats span { font-size: 12.5px; color: var(--bz-muted); }

/* 套餐卡内底部购买按钮 */
.mf-upgrade-plan .mf-upgrade-plan-buy { width: 100%; margin-top: 16px; justify-content: center; }

.mf-zr-chart-note { margin: 14px 0 0; color: var(--bz-faint); font-size: 12.5px; line-height: 1.8; }


/* ============ AI 生辰画像·完整报告结构 ============ */
.mf-zr { scroll-behavior: smooth; }

.mf-zr-hero-copy { min-width: 0; }

/* 章节导航:wrapper 承担吸顶与渐隐提示,nav 横向滑动 */
.mf-zr-toc-wrap { position: sticky; top: calc(var(--mf-rep-topbar-h, 60px) + 6px); z-index: 19; }

.mf-zr-toc-wrap::before, .mf-zr-toc-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30px; pointer-events: none; opacity: 0; transition: opacity .25s ease; z-index: 2; }

.mf-zr-toc-wrap::before { left: 0; background: linear-gradient(90deg, rgb(20 15 19 / 96%), transparent); }

.mf-zr-toc-wrap::after { right: 0; background: linear-gradient(270deg, rgb(20 15 19 / 96%), transparent); }

.mf-zr-toc-wrap.has-left::before, .mf-zr-toc-wrap.has-right::after { opacity: 1; }

.mf-zr-toc { display: flex; gap: 4px; overflow-x: auto; padding: 2px 8px; border: 1px solid var(--bz-line); border-radius: 12px; background: rgb(17 13 17 / 92%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); scrollbar-width: none; overscroll-behavior-x: contain; }

.mf-zr-toc::-webkit-scrollbar { display: none; }

.mf-zr-toc a { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; border-radius: 8px; color: #a99dae; font-size: 12.5px; font-weight: 600; text-decoration: none; transition: color .18s ease, background .18s ease; }

.mf-zr-toc a:hover { color: #e8dade; background: rgb(255 235 242 / 5%); }

/* 下滑收起顶栏只留导航,上滑恢复 */
.mf-zr-topbar { transition: transform .3s ease; }

html.mf-topbar-collapsed .mf-zr-topbar { transform: translateY(-101%); }

html.mf-topbar-collapsed .mf-zr-toc-wrap { top: 4px; }

.mf-zr-card { scroll-margin-top: 112px; }

.mf-zr-section-head { display: flex; align-items: center; gap: 14px; padding-bottom: 15px; border-bottom: 1px solid #e3dcf2; }

.mf-zr-section-head > span { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #ece4fa; color: #6b4fd8; font: 700 12px/1 var(--font-serif-display); }

.mf-zr-section-head h2 { margin: 0; color: #3a2f55; font: 700 20px/1.3 var(--font-serif-display); letter-spacing: 2px; }

.mf-zr-section-head p { margin: 4px 0 0; color: #9187a6; font-size: 12.5px; }

.mf-zr-foundation { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 18px; }

.mf-zr-foundation > div { display: grid; gap: 5px; min-width: 0; padding: 13px 14px; border: 1px solid #e6def5; border-radius: 12px; background: #fdfcff; }

.mf-zr-foundation small { color: #9a90b3; font-size: 11px; }

.mf-zr-foundation b { color: #4b3d65; font-size: 13px; line-height: 1.5; }

.mf-zr-relation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.mf-zr-relation-grid article { padding: 14px 15px; border-left: 3px solid #b7a8d4; border-radius: 4px 12px 12px 4px; background: #f7f4fb; }

.mf-zr-relation-grid b { color: #55436f; font-size: 13.5px; }

.mf-zr-relation-grid p { margin: 6px 0 0; color: #6f667c; font-size: 13px; line-height: 1.7; }
@media (max-width: 820px) {

  .mf-zr-foundation, .mf-zr-aux { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {

  .mf-zr { padding: 13px; border-radius: 0; --mf-rep-pad: 13px; }
}
@media (max-width: 640px) {

  .mf-zr-card { padding: 22px 16px 25px; }
}
@media (max-width: 640px) {

  .mf-zr-toc-wrap { top: calc(var(--mf-rep-topbar-h, 60px) + 4px); }
}
@media (max-width: 640px) {

  .mf-zr-reading-grid, .mf-zr-stage-grid, .mf-zr-relation-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {

  .mf-zr-section-head h2 { font-size: 18px; }
}

.mf-astro { display: grid; gap: 18px; min-width: 0; padding: clamp(16px, 3vw, 32px); border-radius: 0; background: radial-gradient(circle at 82% 4%, #27213c 0, #13101c 36%, #0d0b13 72%); color: #eeeaf5; scroll-behavior: smooth; --mf-rep-pad: clamp(16px, 3vw, 32px); }

.mf-astro-hero { display: flex; align-items: center; gap: 22px; padding: 23px; border: 1px solid var(--mf-rep-hero-border); border-radius: 12px; background: var(--mf-rep-hero-bg); }

.mf-astro-hero img { flex: 0 0 auto; width: 92px; height: 112px; border: 1px solid rgba(198, 75, 115, 0.22); border-radius: 12px; object-fit: cover; }

.mf-astro-hero span { color: var(--bz-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; }

.mf-astro-hero h1 { margin: 5px 0; color: #f7f0f2; font: 700 clamp(23px, 3vw, 31px)/1.3 var(--font-serif-display); letter-spacing: 1px; }

.mf-astro-hero p { margin: 0 0 7px; color: #b3a6ac; font-size: 13.5px; line-height: 1.7; }

.mf-astro-hero small { color: var(--bz-muted); font-size: 11.5px; }

.mf-astro-card { scroll-margin-top: 112px; padding: 26px clamp(18px, 4vw, 34px) 30px; border-radius: 18px; background: #f7f4fa; color: #2d2737; }

.mf-astro-chart-layout { display: grid; grid-template-columns: minmax(290px, .95fr) minmax(240px, 1.05fr); gap: 28px; align-items: center; margin-top: 22px; }

.mf-astro-wheel { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: auto; border: 1px solid #b7a6cf; border-radius: 50%; background: radial-gradient(circle, #fbf9fd 0 28%, #f1ebf7 29% 30%, #faf8fc 31% 57%, #e4daee 58% 59%, #f7f3fa 60% 100%); box-shadow: inset 0 0 45px rgb(86 55 123 / 8%), 0 18px 42px rgb(38 20 58 / 10%); overflow: hidden; }

.mf-astro-wheel .ring { position: absolute; inset: 13%; border: 1px solid #d2c5e0; border-radius: 50%; }

.mf-astro-wheel .ring.two { inset: 29%; border-color: #bfaed3; }

.mf-astro-zodiac, .mf-astro-planet { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px; display: grid; place-items: center; transform: rotate(var(--astro-angle)) translateY(-155px) rotate(calc(-1 * var(--astro-angle))); color: #75638d; font-size: 16px; }

.mf-astro-planet { width: 27px; height: 27px; margin: -13.5px; transform: rotate(var(--astro-angle)) translateY(-105px) rotate(calc(-1 * var(--astro-angle))); border: 1px solid #a990c5; border-radius: 50%; background: #fdfbff; color: #5c3e7a; box-shadow: 0 3px 8px rgb(45 24 67 / 15%); font-size: 14px; }

.mf-astro-wheel-core { position: absolute; inset: 36%; display: grid; place-content: center; justify-items: center; border-radius: 50%; background: linear-gradient(145deg, #3a2d4b, #1f1929); color: #f7f1fd; box-shadow: 0 8px 22px rgb(38 20 58 / 25%); }

.mf-astro-wheel-core b { font: 700 13px/1.35 var(--font-serif-display); }

.mf-astro-wheel-core small { color: #a99bb7; font-size: 9px; }

.mf-astro-planet-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.mf-astro-planet-list > div { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid #e4dbea; border-radius: 10px; background: #fdfcff; }

.mf-astro-planet-list b { color: #544064; font-size: 12.5px; }

.mf-astro-planet-list span { color: #91869e; font-size: 10.5px; line-height: 1.5; }

.mf-astro-big-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }

.mf-astro-big-three article { padding: 18px; border: 1px solid #dfd4e8; border-radius: 14px; background: linear-gradient(145deg, #fdfbff, #f2ecf7); }

.mf-astro-big-three span { color: #907aa7; font-size: 11px; }

.mf-astro-big-three b { display: block; margin: 6px 0 8px; color: #4d385f; font: 700 19px/1.35 var(--font-serif-display); }

.mf-astro-big-three p { margin: 0; color: #6e6477; font-size: 13px; line-height: 1.7; }

.mf-astro-balance { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 22px; }

.mf-astro-balance h3 { margin: 0 0 10px; color: #5e4870; font: 700 15px/1.4 var(--font-serif-display); }

.mf-astro-balance > div > div { display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 8px; margin-top: 7px; }

.mf-astro-balance span, .mf-astro-balance small { color: #83778f; font-size: 11px; }

.mf-astro-balance i { height: 7px; border-radius: 999px; background: #e8e0ee; overflow: hidden; }

.mf-astro-balance i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8060a5, #b086c9); }

.mf-astro-sections { display: grid; gap: 12px; margin-top: 18px; }

.mf-astro-sections article { padding: 19px 20px; border: 1px solid #e2d9e8; border-radius: 14px; background: #fdfcff; }

.mf-astro-sections h3 { margin: 0 0 7px; color: #563d6b; font: 700 16px/1.4 var(--font-serif-display); }

.mf-astro-sections p { margin: 0 0 9px; color: #43394d; font-size: 14px; font-weight: 650; line-height: 1.75; }

.mf-astro-sections ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: #746a7d; font-size: 12.8px; line-height: 1.7; }

.mf-astro-aspects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

.mf-astro-aspects article { padding: 13px 14px; border-left: 3px solid #9c89ad; border-radius: 4px 11px 11px 4px; background: #fdfcff; }

.mf-astro-aspects article > div { display: flex; justify-content: space-between; gap: 8px; }

.mf-astro-aspects b { color: #554263; font-size: 12.5px; }

.mf-astro-aspects span { color: #9b91a4; font-size: 10px; white-space: nowrap; }

.mf-astro-aspects p { margin: 6px 0 0; color: #746a7d; font-size: 12px; line-height: 1.6; }

.mf-zr-relation-grid article small { display: block; margin-top: 4px; color: #93879d; font-size: 10.5px; }

.mf-astro-houses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }

.mf-astro-houses article { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 13px; border: 1px solid #e2d9e8; border-radius: 12px; background: #fdfcff; }

.mf-astro-houses article > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ece3f3; color: #684d7e; font: 700 12px/1 var(--font-serif-display); }

.mf-astro-houses b { color: #533e63; font-size: 13px; }

.mf-astro-houses small { display: block; color: #988da1; font-size: 10px; }

.mf-astro-houses p { margin: 5px 0 0; color: #746a7d; font-size: 11.5px; line-height: 1.55; }

.mf-astro-special { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 10px; margin-top: 18px; }

.mf-astro-special article { display: grid; gap: 5px; padding: 15px; border-radius: 12px; background: #eee7f4; }

.mf-astro-special span { color: #8a7899; font-size: 10.5px; }

.mf-astro-special b { color: #513c61; font: 700 15px/1.4 var(--font-serif-display); }

.mf-astro-special p { margin: 0; color: #746a7d; font-size: 12px; line-height: 1.65; }

.mf-astro-source { color: #81778d; font-size: 11.5px; line-height: 1.7; text-align: center; }

.mf-astro-source p { margin: 0; }

.mf-astro-source a { color: #ad92cf; text-decoration: underline; }

.mf-astro-error { display: grid; justify-items: center; gap: 10px; padding: 70px 20px; border: 1px solid #2d2738; border-radius: 16px; background: #18141f; text-align: center; }

.mf-astro-error > span { color: #ad92cf; font-size: 28px; }

.mf-astro-error h1 { margin: 0; color: #f4eff8; font: 700 24px/1.4 var(--font-serif-display); }

.mf-astro-error p { margin: 0 0 8px; color: #a99fb2; font-size: 13px; }
@media (max-width: 820px) {

  .mf-astro-chart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {

  .mf-astro-houses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {

  .mf-astro { padding: 13px; border-radius: 0; --mf-rep-pad: 13px; }
}
@media (max-width: 640px) {

  .mf-astro-hero { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {

  .mf-astro-card { padding: 22px 16px 25px; }
}
@media (max-width: 640px) {

  .mf-astro-wheel { width: min(100%, 310px); }
}
@media (max-width: 640px) {

  .mf-astro-zodiac { transform: rotate(var(--astro-angle)) translateY(-133px) rotate(calc(-1 * var(--astro-angle))); }
}
@media (max-width: 640px) {

  .mf-astro-planet { transform: rotate(var(--astro-angle)) translateY(-90px) rotate(calc(-1 * var(--astro-angle))); }
}
@media (max-width: 640px) {

  .mf-astro-big-three, .mf-astro-balance, .mf-astro-aspects, .mf-astro-houses { grid-template-columns: 1fr; }
}

/* ============ 报告页加载骨架 ============ */
.mf-skel { display: grid; gap: 16px; padding: clamp(16px, 3vw, 32px); border-radius: 18px; }

.skel-portrait { flex-shrink: 0; width: 108px; height: 134px; border-radius: 12px; }

.skel-bar { display: block; height: 16px; border-radius: 6px; }

.skel-bar.w-24 { width: 96px; }
 .skel-bar.w-20 { width: 80px; }
 .skel-bar.w-32 { width: 130px; }
 .skel-bar.w-40 { width: 170px; }
 .skel-bar.w-60 { width: 55%; }
 .skel-bar.w-80 { width: 72%; }

.skelp-line, .skel-line { display: block; height: 13px; border-radius: 6px; }

.skel-line { width: 92%; }

.skel-line.short { width: 64%; }
.mf-skel .skel-portrait {
  background: linear-gradient(100deg, transparent 20%, rgba(0,0,0,0.06) 40%, rgba(0,0,0,0.06) 60%, transparent 80%);
  background-size: 220% 100%;
  animation: mf-skel-shimmer 1.4s infinite linear;
}
.mf-skel .skel-bar {
  background: linear-gradient(100deg, transparent 20%, rgba(0,0,0,0.06) 40%, rgba(0,0,0,0.06) 60%, transparent 80%);
  background-size: 220% 100%;
  animation: mf-skel-shimmer 1.4s infinite linear;
}
.mf-skel .skel-line {
  background: linear-gradient(100deg, transparent 20%, rgba(0,0,0,0.06) 40%, rgba(0,0,0,0.06) 60%, transparent 80%);
  background-size: 220% 100%;
  animation: mf-skel-shimmer 1.4s infinite linear;
}

/* 报告入口按钮加载态 */
.mf-launch-spinner { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 999px; vertical-align: -2px; animation: mf-spin 0.7s linear infinite; }

.mf-primary-button:disabled, .mf-secondary-button:disabled { opacity: 0.75; cursor: default; }

/* 浏览记录:报告入口卡片 */
.mf-hist-tabs { display: flex; flex-wrap: wrap; gap: 8px; }

.mf-hist-tabs a, .mf-hist-tabs button { padding: 8px 16px; border: 1px solid var(--bz-line); border-radius: 999px; background: var(--bz-card); color: var(--bz-muted); font-size: 13px; font-weight: 650; text-decoration: none; cursor: pointer; font-family: inherit; }

.mf-hist-tabs button:hover { color: #e8dade; }

.mf-hist-tabs button:focus-visible, .mf-hist-tabs a:focus-visible { outline: 2px solid rgb(222 107 145 / 70%); outline-offset: 2px; }

.mf-hist-body { display: grid; gap: 16px; min-height: 240px; align-content: start; }

.mf-hist-fade { animation: mf-hist-fade .16s ease; }
@media (prefers-reduced-motion: reduce) {
 .mf-hist-fade { animation: none; }
}

.mf-hist-retry { justify-self: center; padding: 10px 22px; border: 1px solid var(--bz-red); border-radius: 999px; background: transparent; color: var(--bz-red-bright); font: 650 13px/1 inherit; cursor: pointer; }

.mf-hist-retry:hover:not(:disabled) { background: var(--bz-red); color: #fff; }

.mf-hist-retry:disabled { opacity: 0.55; cursor: default; }

.mf-hist-retry:focus-visible { outline: 2px solid rgb(222 107 145 / 70%); outline-offset: 2px; }

.mf-hist-stale { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--bz-line); border-radius: 12px; background: var(--bz-paper-warm); color: var(--bz-muted); font-size: 12.5px; }

.mf-hist-stale button { flex-shrink: 0; padding: 6px 14px; border: 1px solid var(--bz-red); border-radius: 999px; background: transparent; color: var(--bz-red-bright); font: 650 12px/1 inherit; cursor: pointer; }

.mf-hist-card { display: grid; gap: 0; border: 1px solid var(--bz-line); border-radius: 14px; background: var(--bz-card); overflow: hidden; }

.mf-hist-card-head { display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: inherit; }

.mf-hist-card-head img { flex-shrink: 0; width: 52px; height: 62px; border-radius: 10px; object-fit: cover; object-position: center; border: 1px solid var(--bz-line); }

.mf-hist-card-head strong { display: block; font-size: 15.5px; color: var(--bz-ink); }

.mf-hist-card-head small { color: var(--bz-muted); font-size: 12px; }

.mf-hist-entry { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 10px; padding: 11px 14px; border-top: 1px solid var(--bz-line); text-decoration: none; }

.mf-hist-entry b { font-size: 13.5px; color: var(--bz-red); }

.mf-hist-entry small { color: var(--bz-muted); font-size: 11.5px; }

.mf-hist-entry > span { grid-row: 1 / span 2; align-self: center; color: var(--bz-muted); }

.mf-hist-entry:hover { background: #fdf8f4; }

/* ============ AI追问·持久化对话 ============ */
.mf-zr-ask-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.mf-zr-ask-head .mf-zr-card-title { flex: 1; }

.mf-zr-ask-clear { padding: 5px 12px; border: 1px solid var(--bz-line-strong); border-radius: 999px; background: transparent; color: var(--bz-red-bright); font-size: 12px; cursor: pointer; }

.mf-zr-ask-clear:hover { background: var(--bz-red); color: #fff; border-color: var(--bz-red); }

.mf-zr-ask-older { justify-self: center; padding: 6px 16px; border: 1px dashed var(--bz-line-strong); border-radius: 999px; background: transparent; color: var(--bz-red-bright); font-size: 12px; cursor: pointer; }

.mf-zr-ask-older:disabled { opacity: 0.5; cursor: default; }

.mf-zr-ask-time { display: block; margin-top: 2px; font-size: 10.5px; color: var(--bz-faint); }

.mf-zr-ask-retry { display: flex; align-items: center; gap: 10px; margin-top: 4px; }

.mf-zr-ask-retry small { color: var(--bz-error); font-size: 11px; }

.mf-zr-ask-retry button { padding: 3px 12px; border: 1px solid var(--bz-error); border-radius: 999px; background: transparent; color: var(--bz-error); font-size: 12px; cursor: pointer; }

.mf-zr-ask-retry button:hover:not(:disabled) { background: var(--bz-error); color: #fff; }

.mf-zr-ask-retry button:disabled { opacity: 0.5; cursor: default; }

/* 报告顶部分享按钮 */
.mf-zr-share { flex-shrink: 0; display: inline-flex; align-items: center; padding: 7px 16px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 999px; background: rgb(255 255 255 / 6%); color: #e6dff2; font-size: 12.5px; letter-spacing: 1px; cursor: pointer; }

.mf-zr-share:hover { background: rgb(255 255 255 / 12%); }

.mf-zr-share .mf-launch-spinner { width: 12px; height: 12px; margin-right: 6px; border-width: 1.5px; }

/* ===== 深色:报告阅读卡内容层(命盘/十神/流年/建议) ===== */
.mf-zr-foundation > div, .mf-zr-reading, .mf-zr-god-grid article, .mf-zr-dayun-detail article, .mf-zr-year-grid article { border-color: var(--bz-line); background: var(--bz-paper-warm); }

.mf-zr-foundation small, .mf-zr-aux small, .mf-zr-god-grid span, .mf-zr-god-grid small, .mf-zr-dayun-detail span, .mf-zr-dayun-detail small, .mf-zr-year-grid em, .mf-zr-stage-grid span { color: var(--bz-faint); }

.mf-zr-foundation b, .mf-zr-god-grid b, .mf-zr-year-grid b, .mf-zr-dayun-detail b { color: var(--bz-ink); }

.mf-zr-relation-grid article { border-left-color: #6d5a80; background: var(--bz-paper-warm); }

.mf-zr-relation-grid b { color: var(--bz-ink); }

.mf-zr-relation-grid p { color: var(--bz-muted); }

.mf-zr-note { color: var(--bz-faint); }

.mf-astro-card { background: var(--bz-card); color: var(--bz-ink); border: 1px solid var(--bz-line); }

.mf-astro-wheel { border-color: rgb(222 107 145 / 30%); background: radial-gradient(circle, #1a1522 0 28%, #221a2c 29% 30%, #191422 31% 57%, #2c2138 58% 59%, #171221 60% 100%); box-shadow: inset 0 0 45px rgb(198 75 115 / 8%), 0 18px 42px rgb(0 0 0 / 40%); }

.mf-astro-wheel .ring { border-color: rgb(255 235 242 / 12%); }

.mf-astro-wheel .ring.two { border-color: rgb(255 235 242 / 18%); }

.mf-astro-zodiac { color: #a995ca; }

.mf-astro-planet { border-color: rgb(222 107 145 / 45%); background: var(--bz-selected); color: var(--bz-red-bright); box-shadow: 0 3px 8px rgb(0 0 0 / 35%); }

.mf-astro-planet-list > div { border-color: var(--bz-line); background: var(--bz-paper-warm); }

.mf-astro-planet-list b { color: var(--bz-ink); }

.mf-astro-planet-list span { color: var(--bz-faint); }

.mf-astro-big-three article { border-color: var(--bz-line); background: linear-gradient(145deg, var(--bz-card-raised, #261b22), var(--bz-paper-warm)); }

.mf-astro-big-three span { color: var(--bz-faint); }

.mf-astro-big-three b { color: var(--bz-ink); }

.mf-astro-big-three p { color: var(--bz-muted); }

.mf-astro-balance h3 { color: var(--bz-ink); }

.mf-astro-balance span, .mf-astro-balance small { color: var(--bz-faint); }

.mf-astro-balance i { background: rgb(255 255 255 / 8%); }

.mf-astro-balance i b { background: linear-gradient(90deg, var(--bz-red), var(--bz-red-bright)); }

.mf-astro-sections article { border-color: var(--bz-line); background: var(--bz-paper-warm); }

.mf-astro-sections h3 { color: var(--bz-red-bright); }

.mf-astro-sections p { color: var(--bz-ink); }

.mf-astro-sections ul { color: var(--bz-muted); }

.mf-astro-aspects article { border-left-color: #6d5a80; background: var(--bz-paper-warm); }

.mf-astro-aspects b { color: var(--bz-ink); }

.mf-astro-aspects span { color: var(--bz-faint); }

.mf-astro-aspects p { color: var(--bz-muted); }

.mf-astro-houses article { border-color: var(--bz-line); background: var(--bz-paper-warm); }

.mf-astro-houses article > span { background: var(--bz-selected); color: var(--bz-red-bright); }

.mf-astro-houses b { color: var(--bz-ink); }

.mf-astro-houses small { color: var(--bz-faint); }

.mf-astro-houses p { color: var(--bz-muted); }

.mf-astro-special article { background: var(--bz-selected); }

.mf-astro-special span { color: var(--bz-faint); }

.mf-astro-special b { color: var(--bz-ink); }

.mf-astro-special p { color: var(--bz-muted); }

.mf-astro-source { color: var(--bz-faint); }

.mf-zr-relation-grid article small { color: var(--bz-faint); }

/* 深色:报告章节头/目录 */
.mf-zr-section-head { border-bottom-color: var(--bz-line); }

.mf-zr-section-head > span { background: rgb(198 75 115 / 16%); color: var(--bz-red-bright); }

.mf-zr-section-head h2 { color: var(--bz-ink); }

.mf-zr-section-head p { color: var(--bz-faint); }

.mf-zr-toc a:hover { color: #e8dade; background: rgb(255 235 242 / 5%); }

/* ── 双星合盘:选择页 / 面板 / 确认区 / 报告页 / 记录卡 ─────────────────── */
/* 选择页:紧凑关系卡 + 首屏 CTA + 双列网格面板 */
.mf-dual { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); background: var(--bz-paper); width: 100%; min-width: 0; --mf-rep-pad: clamp(16px, 3vw, 32px); }

.mf-dual-head h1 { margin: 0; font: 700 clamp(14px, 1.6vw, 17px)/1.3 var(--font-serif-display); color: var(--bz-ink); letter-spacing: .05em; }

.mf-dual-relation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 18px 16px; border: 1px solid var(--bz-line); border-radius: 16px; background: var(--bz-card); }

.mf-dual-node { display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 4px; border: 0; background: transparent; color: var(--bz-ink); cursor: pointer; font-family: inherit; }

.mf-dual-node:hover b { color: var(--bz-red-bright); }

.mf-dual-node img { width: 88px; height: 108px; border-radius: 14px; object-fit: cover; border: 1px solid var(--bz-line); }

.mf-dual-node > i { display: grid; place-items: center; width: 88px; height: 108px; border-radius: 14px; border: 1px dashed var(--bz-line-strong); background: var(--bz-paper-warm); color: var(--bz-muted); font-style: normal; font-size: 26px; }

.mf-dual-node b { max-width: 130px; overflow: hidden; color: var(--bz-ink); font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; margin-top: 16px; }
.mf-dual-node b:only-of-type, .mf-dual-node.is-skel .skel-bar { margin-top: 16px; }

.mf-dual-node small { color: var(--bz-muted); font-size: 11px; }

.mf-dual-link { display: grid; justify-items: center; }

.mf-dual-cta-zone { display: grid; gap: 10px; }



.mf-dual-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.mf-dual-generate { width: 100%; min-height: 48px; padding: 0 22px; font-size: 15px; }
.mf-dual-generate:disabled { opacity: .38; cursor: default; }
.mf-dual-regen { min-height: 44px; margin-top: 10px; width: 100%; padding: 0 22px; border: 1px solid var(--bz-line-strong); border-radius: 12px; background: transparent; color: var(--bz-muted); font: 500 13.5px/1 inherit; cursor: pointer; }

.mf-dual-generate:disabled { opacity: 0.6; cursor: default; }

.mf-dual-ghost { padding: 13px 18px; border: 1px solid var(--bz-line-strong); border-radius: 12px; background: transparent; color: var(--bz-muted); font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1; cursor: pointer; text-decoration: none; }

/* ── 合盘路由骨架:布局复用真实 mf-dual-* 类,占位块尺寸对齐真实组件(肖像88×108/移动72×90、交换钮34、生成钮48胶囊) ── */
.mf-dual-skel .mf-dual-relation, .mf-dual-skel .mf-dual-cta-zone { pointer-events: none; }
.mf-dual-skel .mf-dual-head { min-height: 48px; }
.mf-dual-skel-title { display: block; width: 72px; height: 18px; border-radius: 6px; }
.mf-dual-skel-sub { display: block; width: 136px; height: 12px; margin-top: 6px; border-radius: 6px; }
.mf-dual-skel .skel-portrait { width: 88px; height: 108px; border-radius: 14px; }
.mf-dual-skel .skel-bar { width: 72px; height: 20px; border-radius: 6px; }
.mf-dual-skel .mf-dual-node .skel-bar:last-child { width: 96px; height: 15px; }
.mf-dual-skel-swap { width: 34px; height: 34px; border-radius: 50%; }
.mf-dual-skel-generate { display: block; width: 100%; min-height: 50px; border-radius: 999px; }
.mf-dual-skel-title, .mf-dual-skel-sub, .mf-dual-skel .skel-portrait, .mf-dual-skel .skel-bar, .mf-dual-skel-swap, .mf-dual-skel-generate {
  background: linear-gradient(100deg, transparent 20%, rgb(255 235 242 / 9%) 40%, rgb(255 235 242 / 9%) 60%, transparent 80%);
  background-size: 220% 100%;
  animation: mf-skel-shimmer 1.4s infinite linear;
}
@media (max-width: 640px) {

  .mf-dual-skel .skel-portrait { width: 72px; height: 90px; }
}

/* ── 路由骨架通用占位块(全站统一 shimmer 语言) ── */
.mf-skel-ph { display: block; background: linear-gradient(100deg, transparent 20%, rgb(255 235 242 / 9%) 40%, rgb(255 235 242 / 9%) 60%, transparent 80%); background-size: 220% 100%; animation: mf-skel-shimmer 1.4s infinite linear; }

/* 发现页骨架:控制行(标签条+搜索块) + 带框人物卡(封面 3/3.8、名字/团体条、双标签胶囊) */
.mf-explore-skel .mf-explore-ctrl, .mf-explore-skel .mf-bz-star-card { pointer-events: none; }
.mf-explore-skel-tab { width: 34px; height: 16px; border-radius: 5px; }
.mf-explore-skel-search { flex: none; width: 17px; height: 17px; border-radius: 50%; }
.mf-explore-skel-cover { aspect-ratio: 3 / 3.8; border-radius: 14px; }
.mf-explore-skel-name { width: 56%; height: 17px; border-radius: 5px; }
.mf-explore-skel-group { width: 78%; height: 12px; border-radius: 4px; }
.mf-explore-skel-tag { width: 44px; height: 19px; border-radius: 999px; }
.mf-explore-skel-tag.is-wider { width: 62px; }

/* 我的页骨架:账户卡(两行文案+胶囊钮) + 两组人物横排卡(88×112+名字条) */
.mf-me-skel-line { height: 15px; border-radius: 5px; }
.mf-me-skel-line.is-title { width: 96px; }
.mf-me-skel-line.is-sub { width: 170px; height: 12px; }
.mf-me-skel-btn { flex-shrink: 0; width: 88px; height: 48px; border-radius: 12px; }
.mf-me-skel-h2 { width: 68px; height: 17px; border-radius: 5px; margin: 0 0 12px; }
.mf-me-skel .mf-me-skel-person { width: 88px; height: auto; display: grid; gap: 8px; }
.mf-me-skel-face { width: 88px; height: 112px; border-radius: 12px; }

/* 报告库骨架:头部(小标/大标/说明) + 分类胶囊行 + 搜索框/筛选胶囊 + 报告卡 */
.mf-hist-skel-kicker { width: 64px; height: 11px; border-radius: 4px; }
.mf-hist-skel-h1 { width: 96px; height: 30px; border-radius: 8px; margin: 8px 0 6px; }
.mf-hist-skel-desc { width: 220px; height: 12px; border-radius: 4px; }
.mf-hist-skel-pill { width: 56px; height: 36px; border-radius: 999px; }
.mf-hist-skel-pill.is-long { width: 88px; }
.mf-hist-skel-input { height: 48px; border-radius: 12px; }
.mf-hist-skel-list { display: grid; gap: 12px; }
.mf-hist-skel-card { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--bz-line); border-radius: 16px; background: var(--bz-card); }
.mf-hist-skel-bar { height: 13px; border-radius: 4px; }
.mf-hist-skel-bar.is-title { width: 40%; height: 15px; }
.mf-hist-skel-bar.is-short { width: 64%; }

/* 合盘报告骨架 hero:与真实 mf-dual-report-hero 同构(88×108 双人像+文案区,移动端随真实类单列居中) */
.mf-dual-report-skel .mf-dual-report-skel-face { width: 88px; height: 108px; border-radius: 12px; }
.mf-dual-report-skel .mf-dual-report-skel-caption { width: 48px; height: 13px; border-radius: 4px; }
.mf-dual-report-skel .mf-dual-report-skel-kicker { width: 110px; height: 11px; border-radius: 4px; }
.mf-dual-report-skel .mf-dual-report-skel-h1 { width: 72%; height: 26px; border-radius: 7px; margin: 6px 0 8px; }
.mf-dual-report-skel .mf-dual-report-skel-line { width: 100%; height: 12px; border-radius: 4px; }
.mf-dual-report-skel .mf-dual-report-skel-line.is-short { width: 78%; }

.mf-dual-ghost:hover { color: #e8dade; border-color: var(--bz-red); }


.mf-dual-error { margin: 0; color: var(--bz-error); font-size: 12.5px; }

.mf-dual-existing { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed rgba(210, 163, 92, 0.45); border-radius: 10px; background: rgba(210, 163, 92, 0.07); color: var(--bz-muted); font-size: 12.5px; }

.mf-dual-existing a, .mf-dual-existing button { padding: 7px 14px; border: 1px solid var(--bz-red); border-radius: 999px; background: transparent; color: var(--bz-red-bright); font: 650 12px/1 inherit; cursor: pointer; text-decoration: none; }

.mf-dual-existing a:hover, .mf-dual-existing button:hover { background: var(--bz-red); color: #fff; }

.mf-dual-panel { position: fixed; inset: 0; z-index: 60; }

.mf-dual-panel-mask { position: absolute; inset: 0; background: rgb(6 4 6 / 60%); }

.mf-dual-panel-sheet { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; max-height: 78vh; box-sizing: border-box; padding: 18px 18px 26px; border-top: 1px solid var(--bz-line-strong); border-radius: 20px 20px 0 0; background: var(--bz-card-raised); animation: mf-sheet-up .28s ease; }

.mf-dual-panel-sheet header { display: flex; justify-content: space-between; align-items: center; }

.mf-dual-panel-sheet header b { color: var(--bz-ink); font-size: 15px; }

.mf-dual-panel-sheet header button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgb(255 235 242 / 8%); color: var(--bz-muted); font-size: 17px; cursor: pointer; }

.mf-dual-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--bz-line); border-radius: 12px; background: var(--bz-card); color: var(--bz-muted); }

.mf-dual-search svg { width: 16px; height: 16px; flex-shrink: 0; }

.mf-dual-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--bz-ink); font-size: 13.5px; outline: none; }

.mf-dual-grid { overflow-y: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.mf-dual-grid button { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: inherit; font-family: inherit; cursor: pointer; text-align: center; }

.mf-dual-grid button:hover:not(:disabled) { border-color: var(--bz-line-strong); background: var(--bz-card); }

.mf-dual-grid button:disabled { opacity: 0.4; cursor: default; }

.mf-dual-grid img { width: 64px; height: 80px; border-radius: 10px; object-fit: cover; }

.mf-dual-grid b { max-width: 100%; overflow: hidden; color: var(--bz-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.mf-dual-grid em { font-style: normal; color: var(--bz-muted); font-size: 10px; }

.mf-dual-list { overflow-y: auto; display: grid; gap: 6px; }

.mf-dual-list button { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: inherit; font-family: inherit; text-align: left; cursor: pointer; }

.mf-dual-list button:hover:not(:disabled) { border-color: var(--bz-line-strong); background: var(--bz-card); }

.mf-dual-list button:disabled { opacity: 0.45; cursor: default; }

.mf-dual-list img { width: 44px; height: 54px; border-radius: 8px; object-fit: cover; }

.mf-dual-list b { display: block; color: var(--bz-ink); font-size: 14px; }

.mf-dual-list small { color: var(--bz-muted); font-size: 11.5px; }

.mf-dual-list em { font-style: normal; color: var(--bz-muted); font-size: 11px; white-space: nowrap; }

.mf-dual-empty { margin: 20px 0; color: var(--bz-muted); font-size: 12.5px; text-align: center; }

/* generating/失败态:参考稿布局——居中标题(A×B)、双人物卡对置、中缝呼吸星、底部状态胶囊 */
.mf-zr:has(.mf-dual-status) { background: transparent; padding: clamp(16px, 4vw, 32px) clamp(16px, 3vw, 32px); }
.mf-dual-status { display: grid; justify-items: center; gap: 0; width: min(560px, 100%); margin: 0 auto; padding: clamp(18px, 5vw, 44px) 0 8px; text-align: center; }

.mf-dual-status-head { display: grid; justify-items: center; gap: 7px; margin-bottom: 24px; }
.mf-dual-status-head h1 { margin: 0; font-family: var(--font-serif-display); font-weight: 600; font-size: clamp(20px, 5.4vw, 24px); line-height: 1.3; letter-spacing: 0.02em; color: var(--bz-ink); }
.mf-dual-status-head p { margin: 0; font-size: 12px; letter-spacing: 0.16em; color: var(--bz-faint); }

.mf-dual-status-people { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; width: 100%; }

.mf-dual-status-people figure { margin: 0; display: grid; overflow: hidden; border: 1px solid var(--bz-line); border-radius: 16px; background: var(--bz-card); }

.mf-dual-status-people img { display: block; width: 100%; height: clamp(148px, 40vw, 180px); object-fit: cover; }

.mf-dual-status-people figcaption { padding: 10px 6px 12px; font-size: 13.5px; color: var(--bz-ink); }

.mf-dual-status-people > span { font-size: 20px; line-height: 1; color: var(--bz-red-bright); text-shadow: 0 0 16px rgb(227 107 152 / 50%); animation: mf-dual-star 1.8s ease-in-out infinite; }

@keyframes mf-dual-star { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.3); opacity: 1; } }

/* 生成中:主按钮形态的状态胶囊(不可点),承接参考稿底部主按钮的位置 */
.mf-dual-gen-pill { margin: 26px 0 0; display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 24px; border-radius: 999px; border: 1px solid rgb(212 85 131 / 38%); background: linear-gradient(140deg, rgb(212 85 131 / 26%), rgb(212 85 131 / 10%)); color: var(--bz-ink); font-size: 14px; }

.mf-dual-status-title { margin: 24px 0 0; display: inline-flex; align-items: center; gap: 8px; color: var(--bz-ink); font-size: 14px; }

.mf-dual-status .mf-dual-status-note { margin: 6px 0 0; color: var(--bz-muted); font-size: 12.5px; }

.mf-dual-status .mf-dual-actions { margin-top: 14px; justify-content: center; }

/* 双人八字资料卡(确认页/报告页共用):浅底文字卡——名字居中强调,四柱四枚竖排小卡(干/支分行),日主收底 */
.mf-dual-profile-zone { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; width: 100%; }
.mf-dual-profile-zone.is-single { grid-template-columns: minmax(0, 360px); justify-content: center; }

.mf-dual-profile-zone figure { display: grid; justify-items: center; gap: 10px; padding: 20px 12px 18px; border: 0; border-radius: 24px; background: #f6f1f4; }

.mf-dual-profile-zone figure > b { font-size: 19px; font-weight: 700; color: var(--bz-red); }

.mf-dual-profile-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; margin-top: 2px; }

.mf-dual-profile-pillars > span { display: grid; gap: 3px; justify-items: center; padding: 9px 2px; border-radius: 10px; background: rgb(212 85 131 / 7%); border: 1px solid rgb(212 85 131 / 24%); }

.mf-dual-profile-pillars small { font-size: 9px; letter-spacing: 0.08em; color: rgb(17 13 18 / 45%); }

.mf-dual-profile-pillars b { font-family: var(--font-serif-display); font-size: 15px; line-height: 1.15; font-weight: 600; color: #110d12; }

.mf-dual-profile-dm { font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: rgb(17 13 18 / 78%); }

/* 生成页排版:呼吸星标 → 四段进度条(跟随阶段文案推进) → 阶段文案,整体落在视觉中心偏上 */
.mf-dual-status:not(.mf-dual-confirm) { padding-top: clamp(108px, 26vw, 184px); }

.mf-dual-status > .mf-dual-star { margin-bottom: 26px; font-size: 26px; line-height: 1; color: var(--bz-red-bright); text-shadow: 0 0 16px rgb(227 107 152 / 50%); animation: mf-dual-star 1.8s ease-in-out infinite; }

.mf-dual-progress { display: flex; gap: 6px; width: min(300px, 82%); margin: 0 auto 14px; }

.mf-dual-progress > span { flex: 1; height: 3px; border-radius: 999px; background: rgb(255 235 242 / 8%); overflow: hidden; }

.mf-dual-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bz-red), var(--bz-red-bright)); transform: scaleX(0); transform-origin: left; }

.mf-dual-progress > span[data-state="done"] i { transform: scaleX(1); }

.mf-dual-progress > span[data-state="active"] i { animation: mf-dual-fill 4s linear forwards; }

@keyframes mf-dual-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.mf-dual-status:not(.mf-dual-confirm) > .mf-dual-status-note { margin: 0; }

/* 确认页外层补一点与提示文案的呼吸间距 */
.mf-dual-confirm .mf-dual-profile-zone { margin-bottom: 2px; }

.mf-dual-confirm-hint { margin: 20px 0 0; }

.mf-dual-confirm-cta { margin-top: 18px; display: grid; justify-items: center; gap: 8px; width: 100%; }

.mf-dual-confirm-cta .mf-dual-generate { width: min(280px, 100%); }

.mf-dual-report-hero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 24px; border: 1px solid var(--mf-rep-hero-border, rgba(198, 75, 115, 0.16)); border-radius: 12px; background: var(--mf-rep-hero-bg, linear-gradient(150deg, #231319, #170f13)); position: relative; }

.mf-dual-report-people { display: flex; align-items: center; gap: 10px; }

.mf-dual-report-people figure { margin: 0; display: grid; justify-items: center; gap: 5px; }

.mf-dual-report-people img { width: 88px; height: 108px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(198, 75, 115, 0.22); }

.mf-dual-report-people figcaption { color: var(--bz-ink); font-size: 12.5px; }

.mf-dual-report-people > span { font: 700 22px/1 var(--font-serif-display); color: var(--bz-red-bright); }

.mf-dual-report-copy h1 { margin: 6px 0 8px; font: 700 clamp(20px, 2.6vw, 28px)/1.25 var(--font-serif-display); color: var(--bz-ink); }

.mf-dual-report-keywords { margin: 0 0 6px; color: var(--bz-red-bright); font-weight: 700; font-size: 13.5px; }

.mf-dual-report-summary { margin: 0 0 8px; color: #b3a6ac; font-size: 13.5px; line-height: 1.7; }

.mf-dual-report-copy small { color: var(--bz-muted); font-size: 11px; }

.mf-dual-report-hero .mf-zr-share { position: absolute; top: 14px; right: 14px; }

.mf-dual-scores { display: grid; gap: 10px; margin-top: 6px; }

.mf-dual-scores > div { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 12px; }

.mf-dual-scores span { color: var(--bz-muted); font-size: 12.5px; }

.mf-dual-scores b { color: var(--bz-ink); font-size: 13px; text-align: right; font-family: Georgia, serif; }

.mf-dual-score-bar { height: 7px; border-radius: 999px; background: var(--bz-paper-warm); overflow: hidden; }

.mf-dual-score-bar i { display: block; height: 100%; border-radius: 999px; background: var(--bz-gold); }

.mf-dual-score-bar i[data-tone="good"] { background: var(--bz-green); }

.mf-dual-score-bar i[data-tone="caution"] { background: var(--bz-red); }

.mf-dual-basis { margin: 0; display: grid; gap: 10px; }

.mf-dual-basis > div { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--bz-line); border-radius: 10px; background: var(--bz-paper-warm); }

.mf-dual-basis dt { color: var(--bz-red-bright); font-size: 12.5px; font-weight: 650; }

.mf-dual-basis dd { margin: 0; color: var(--bz-muted); font-size: 12px; line-height: 1.7; }

.mf-hist-card-dual .mf-hist-dual-avatars { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }

.mf-hist-dual-avatars img { width: 34px; height: 44px; border-radius: 7px; object-fit: cover; border: 1px solid var(--bz-line); }

.mf-hist-dual-avatars i { font-style: normal; color: var(--bz-red-bright); font-size: 11px; }
@media (max-width: 640px) {

  .mf-dual-report-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 640px) {

  .mf-dual-report-hero .mf-zr-share { position: static; margin-top: 4px; }
}
@media (max-width: 640px) {

  .mf-dual-scores > div { grid-template-columns: 84px 1fr 30px; gap: 8px; }
}

/* 双星报告:结构化章节(结论/依据/双向/分层) */
.mf-dual-evidence { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }

.mf-dual-evidence li { padding: 8px 12px; border-left: 2px solid var(--bz-red); border-radius: 0 8px 8px 0; background: var(--bz-paper-warm); color: var(--bz-muted); font-size: 12.5px; line-height: 1.7; }

.mf-dual-directions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }

.mf-dual-directions article { padding: 12px 14px; border: 1px solid var(--bz-line); border-radius: 12px; background: var(--bz-card); }

.mf-dual-directions b { display: block; margin-bottom: 5px; color: var(--bz-red-bright); font-size: 12px; letter-spacing: .06em; }

.mf-dual-directions p { margin: 0; color: var(--bz-ink); font-size: 12.5px; line-height: 1.75; }

.mf-dual-layers { margin: 0; display: grid; gap: 8px; }

.mf-dual-layers > div { display: grid; grid-template-columns: 66px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bz-paper-warm); }

.mf-dual-layers dt { color: var(--bz-muted); font-size: 12px; font-weight: 650; }

.mf-dual-layers dd { margin: 0; color: var(--bz-ink); font-size: 12.5px; line-height: 1.7; }

.mf-dual-basis em { margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: 10px; font-weight: 600; }

/* 双星报告:未来关系节奏阶段卡片(双方流年交集内归纳) */
.mf-dual-rhythm { display: grid; gap: 16px; }

.mf-dual-rhythm-group { display: grid; gap: 8px; }

.mf-dual-rhythm-group > b { color: var(--bz-green); font-size: 12px; font-weight: 700; letter-spacing: .08em; }

.mf-dual-periods { display: grid; gap: 8px; }

.mf-dual-period { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid var(--bz-line); border-left: 3px solid var(--bz-green); border-radius: 10px; background: var(--bz-card); }

.mf-dual-period span { color: var(--bz-ink); font: 700 17px/1.1 var(--font-serif-display); letter-spacing: .04em; }

.mf-dual-period b { color: var(--bz-red-bright); font-size: 13px; font-weight: 650; }

.mf-dual-period p { margin: 0; color: var(--bz-muted); font-size: 12.5px; line-height: 1.75; }

/* 双星报告:精校版六板块(总览/沟通/影响/判断/建议) */
.mf-dual-sec-mark { margin-right: 8px; color: var(--bz-red-bright); font-style: normal; font-size: 15px; }

.mf-dual-group-label { display: block; margin: 0 0 8px; color: var(--bz-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }

.mf-dual-section + .mf-dual-section, .mf-dual-persona + .mf-dual-group-label, .mf-dual-scene + .mf-dual-group-label, .mf-dual-advice + .mf-dual-group-label { margin-top: 16px; }

.mf-dual-ov { margin: 0 0 14px; display: grid; gap: 12px; }

.mf-dual-ov > div { display: grid; gap: 5px; }

.mf-dual-ov dt { color: var(--bz-red-bright); font-size: 13px; font-weight: 700; }

.mf-dual-ov dd { margin: 0; color: var(--bz-ink); font-size: 13.5px; line-height: 1.9; }

.mf-dual-persona { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.mf-dual-persona article { padding: 12px 14px; border: 1px solid var(--bz-line); border-radius: 12px; background: var(--bz-card); }

.mf-dual-persona b { display: block; margin-bottom: 6px; color: var(--bz-red-bright); font-size: 12.5px; line-height: 1.5; }

.mf-dual-persona p { margin: 0; color: var(--bz-ink); font-size: 12.5px; line-height: 1.8; }

.mf-dual-scene { padding: 12px 14px; border-left: 2px solid var(--bz-red); border-radius: 0 10px 10px 0; background: var(--bz-paper-warm); }

.mf-dual-scene p { margin: 0; color: var(--bz-ink); font-size: 12.5px; line-height: 1.8; }

.mf-dual-advice { display: grid; gap: 10px; }

.mf-dual-advice article { padding: 12px 14px; border: 1px solid var(--bz-line); border-radius: 12px; background: var(--bz-paper-warm); }

.mf-dual-advice b { display: block; margin-bottom: 6px; color: var(--bz-red-bright); font-size: 12.5px; }

.mf-dual-advice p { margin: 0; color: var(--bz-ink); font-size: 12.5px; line-height: 1.8; }

.mf-dual-judge { margin: 0; display: grid; gap: 10px; }

.mf-dual-judge > div { padding: 12px 14px; border: 1px solid var(--bz-line); border-radius: 10px; background: var(--bz-card); }

.mf-dual-judge dt { margin-bottom: 6px; color: var(--bz-red-bright); font-size: 13.5px; font-weight: 700; }

.mf-dual-judge dd { margin: 0; color: var(--bz-ink); font-size: 12.5px; line-height: 1.8; }
@media (max-width: 640px) {

  .mf-dual-persona { grid-template-columns: 1fr; }
}

/* 双星报告:精校版头部双人身份卡(各自单人报告头部要素,左右放置) */
.mf-dual-hero-duo { grid-template-columns: 1fr; gap: 20px; }

.mf-dual-duo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px; }

.mf-dual-duo-x { align-self: center; font-style: normal; font: 700 24px/1 var(--font-serif-display); color: var(--bz-red-bright); }

.mf-dual-id-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--bz-line); border-radius: 14px; background: rgb(255 235 242 / 3%); }

.mf-dual-id-card img { width: 68px; height: 86px; border-radius: 10px; object-fit: cover; border: 1px solid rgba(198, 75, 115, 0.22); }

.mf-dual-id-info { min-width: 0; flex: 1; display: grid; gap: 4px; }

.mf-dual-id-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

.mf-dual-id-head b { color: var(--bz-ink); font-size: 16px; }

.mf-dual-id-head span { color: var(--bz-muted); font-size: 11px; }

.mf-dual-id-info > small { color: var(--bz-muted); font-size: 11px; }

.mf-dual-id-pillars { display: flex; gap: 6px; margin-top: 3px; }

.mf-dual-id-pillars > span { display: grid; gap: 2px; justify-items: center; flex: 1; padding: 5px 6px; border-radius: 8px; background: rgb(255 235 242 / 5%); }

.mf-dual-id-pillars small { color: var(--bz-faint); font-size: 9px; letter-spacing: .12em; }

.mf-dual-id-pillars b { color: var(--bz-ink); font: 700 13px/1 var(--font-serif-display); letter-spacing: .04em; }
@media (max-width: 640px) {

  .mf-dual-duo { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {

  .mf-dual-duo-x { display: none; }
}
@media (max-width: 640px) {

  .mf-dual-id-card { padding: 14px 16px; gap: 14px; }
}
@media (max-width: 640px) {

  .mf-dual-id-card img { width: 68px; height: 87px; }
}
@media (max-width: 640px) {

  .mf-dual-id-head b { font-size: 16px; }
}
@media (max-width: 640px) {

  .mf-dual-id-head span { font-size: 12px; }
}
@media (max-width: 640px) {

  .mf-dual-id-info > small { font-size: 12px; }
}
@media (max-width: 640px) {

  .mf-dual-id-pillars { gap: 7px; }
}
@media (max-width: 640px) {

  .mf-dual-id-pillars > span { padding: 7px 6px; }
}
@media (max-width: 640px) {

  .mf-dual-id-pillars small { font-size: 10px; }
}
@media (max-width: 640px) {

  .mf-dual-id-pillars b { font-size: 14.5px; }
}
@media (max-width: 640px) {

  .mf-dual-relation { grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 14px 10px; }
}
@media (max-width: 640px) {

  .mf-dual-node img, .mf-dual-node > i { width: 72px; height: 90px; }
}
@media (max-width: 640px) {

  .mf-dual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {

  .mf-dual-directions { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {

  .mf-dual-generate { width: 100%; }
}

.mf-cs-timeline { display: grid; gap: 8px; }

.mf-cs-timeline > div { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 10px; padding: 11px 14px; border: 1px solid var(--bz-line); border-left: 3px solid var(--bz-line); border-radius: 10px; background: var(--bz-card); }

.mf-cs-timeline b { grid-row: span 1; color: var(--bz-ink); font: 700 16px/1.1 var(--font-serif-display); letter-spacing: .06em; }

.mf-cs-timeline span { color: var(--bz-ink); font: 700 16px/1.1 var(--font-serif-display); letter-spacing: .06em; }

.mf-cs-timeline em { font-style: normal; color: var(--bz-red-bright); font-size: 12.5px; font-weight: 700; white-space: nowrap; justify-self: end; }

.mf-cs-timeline p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--bz-muted); font-size: 12.5px; line-height: 1.7; }

.mf-cs-years { display: grid; gap: 7px; }

.mf-cs-years > div { display: grid; grid-template-columns: 46px 1fr auto; align-items: baseline; gap: 4px 10px; padding: 10px 13px; border: 1px solid var(--bz-line); border-radius: 10px; background: var(--bz-paper-warm); }

.mf-cs-years b { color: var(--bz-ink); font-weight: 700; font-size: 16px; line-height: 1; }

.mf-cs-years span { color: var(--bz-muted); font-size: 12px; }

.mf-cs-years em { font-style: normal; font-weight: 700; font-size: 12.5px; white-space: nowrap; justify-self: end; }

.mf-cs-years p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--bz-muted); font-size: 12.5px; line-height: 1.7; }
@media (max-width: 640px) {

  .mf-cs-years > div { grid-template-columns: 42px 1fr auto; }
}
@media (max-width: 640px) {

  .mf-cs-years span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ── 文档型章节(人生画像样板):暖白连续阅读,无内部卡片 ── */
/* 文档章节:配色与合盘报告统一(深色 --bz-* 体系) */
.mf-doc { --doc-ink: var(--bz-ink); --doc-text: var(--bz-ink); --doc-faint: var(--bz-faint); --doc-red: var(--bz-red-bright); --doc-purple: var(--bz-red-bright); --doc-line: var(--bz-line); --doc-lilac: rgb(255 235 242 / 6%); background: var(--bz-card); border: 1px solid var(--bz-line); border-radius: 18px; color: var(--doc-text); padding: 0 clamp(20px, 3.5vw, 38px) 26px; }

.mf-doc-head { display: flex; align-items: center; gap: 10px; min-height: 60px; margin: 0 -6px 16px; border-bottom: 1px solid var(--doc-line); }

.mf-doc-head i { color: var(--doc-purple); font-style: normal; font-size: 18px; }

.mf-doc-head h2 { margin: 0; color: var(--doc-purple); font: 700 22px/1.3 var(--font-serif-display); letter-spacing: .06em; }

.mf-doc-p { margin: 0 0 14px; color: var(--doc-text); font-size: 15.5px; line-height: 1.85; }

.mf-doc-p:last-child { margin-bottom: 0; }

.mf-doc-label, .mf-doc-hl { color: var(--doc-red); font-weight: 700; }

.mf-doc-indent { margin: 0 0 14px 20px; color: var(--doc-text); font-size: 15px; line-height: 1.85; }

.mf-doc-indent:last-child { margin-bottom: 0; }

.mf-doc-indent b { color: var(--doc-red); font-weight: 700; margin-right: 4px; }

.mf-doc-sub { margin: 18px 0 12px; color: var(--doc-red); font-size: 16px; font-weight: 700; }
@media (max-width: 640px) {

  .mf-doc { padding: 0 18px 20px; border-radius: 14px; }
}
@media (max-width: 640px) {

  .mf-doc-head { min-height: 56px; }
}
@media (max-width: 640px) {

  .mf-doc-head h2 { font-size: 20px; }
}
@media (max-width: 640px) {

  .mf-doc-p { font-size: 15px; line-height: 1.75; }
}
@media (max-width: 640px) {

  .mf-doc-indent { margin-left: 12px; font-size: 15px; line-height: 1.75; }
}

.mf-doc .mf-zr-foundation > div { background: var(--bz-paper-warm); border-color: var(--doc-line); }

.mf-doc .mf-zr-foundation small { color: var(--doc-faint); }

.mf-doc .mf-zr-foundation b { color: var(--doc-ink); }

.mf-doc .mf-zr-chart-note { color: var(--doc-faint); }

.mf-doc .mf-cs-timeline > div { background: var(--bz-card-raised); border-color: var(--doc-line); border-left-color: var(--doc-line); }

.mf-doc .mf-cs-timeline b { color: var(--doc-ink); }

.mf-doc .mf-cs-timeline span { color: var(--doc-faint); }

.mf-doc .mf-cs-timeline em { color: var(--doc-red); }

.mf-doc .mf-cs-timeline p { color: var(--doc-text); }

.mf-doc .mf-cs-years > div { background: var(--bz-paper-warm); border-color: var(--doc-line); }

.mf-doc .mf-cs-years b { color: var(--doc-ink); }

.mf-doc .mf-cs-years span { color: var(--doc-faint); }

.mf-doc .mf-cs-years em { color: var(--doc-red); }

.mf-doc .mf-cs-years p { color: var(--doc-text); }

/* 报告头:横向排列(头像|标题信息|四柱) */
.mf-zr-hero { display: flex; align-items: center; gap: 22px; }

.mf-zr-hero .mf-zr-hero-copy { flex: 1; min-width: 0; }

.mf-zr-hero-pillars { flex-shrink: 0; display: flex; gap: 8px; }

.mf-zr-hero-pillars > span { display: grid; justify-items: center; gap: 4px; min-width: 62px; padding: 9px 10px; border: 1px solid var(--bz-line); border-radius: 10px; background: var(--bz-card-raised); }

.mf-zr-hero-pillars small { color: var(--bz-muted); font-size: 10.5px; letter-spacing: .1em; }

.mf-zr-hero-pillars b { color: var(--bz-ink); font: 700 17px/1.2 var(--font-serif-display); letter-spacing: .12em; }
@media (max-width: 640px) {

  .mf-zr-hero { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 12px 14px; }
}
@media (max-width: 640px) {

  .mf-zr-hero img { width: 72px; height: 90px; }
}
@media (max-width: 640px) {

  .mf-zr-hero .mf-zr-hero-copy { flex: 1 1 0; min-width: 0; text-align: left; }
}
@media (max-width: 640px) {

  .mf-zr-hero .mf-zr-hero-copy h1 { font-size: 21px; text-align: left; }
}
@media (max-width: 640px) {

  .mf-zr-hero .mf-zr-hero-copy .mf-zr-kicker { display: block; white-space: normal; }
}
@media (max-width: 640px) {

  .mf-zr-hero-pillars { flex: 1 1 100%; justify-content: space-between; }
}
@media (max-width: 640px) {

  .mf-zr-hero-pillars > span { flex: 1; min-width: 0; padding: 7px 4px; }
}
@media (max-width: 640px) {

  .mf-zr-hero-pillars b { font-size: 15px; letter-spacing: .06em; }
}

/* ── 人生运势曲线卡 ── */
.mf-fortune { border: 1px solid rgb(198 75 115 / 35%); border-radius: 16px; background: var(--bz-card); }

.mf-fortune-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--bz-red-bright); font: 700 18px/1.3 var(--font-serif-display); }

.mf-fortune-head h2 i { color: #DE6B91; font-style: normal; font-size: 15px; }

.mf-fortune-head p { margin: 7px 0 0; color: var(--bz-muted); font-size: 12px; }

.mf-fortune-stage { position: relative; margin-top: 10px; }

.mf-fortune-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }

.mf-fortune-label { fill: var(--bz-red-bright); font-size: 17px; font-weight: 600; }

.mf-fortune { padding-bottom: 6px; }

.mf-fortune-head p { margin: 6px 0 0; color: var(--bz-muted); font-size: 12px; }

.mf-fortune-label { fill: #F7F0F2; font-size: 14px; font-weight: 600; }

.mf-fortune .mf-fortune-stage { margin-top: 6px; }

/* ── 人物命盘概览:hero+曲线统一深色区(去独立卡片) ── */
.mf-zr-overview { display: grid; gap: 0; padding: 0 0 6px; }

.mf-zr-overview .mf-zr-hero { border: 0; border-radius: 0; background: none; padding: 22px 4px 14px; }

.mf-zr-overview .mf-zr-hero img { border-radius: 10px; border: 0; box-shadow: 0 8px 24px rgb(0 0 0 / 35%); }

.mf-zr-overview .mf-zr-hero-pillars > span { border: 0; border-radius: 0; background: none; padding: 6px 2px; }
.mf-zr-overview .mf-zr-hero-pillars > span { border-color: transparent; }

.mf-zr-overview .mf-zr-hero-pillars small { color: var(--bz-muted); }

.mf-zr-overview .mf-zr-hero-pillars b { color: var(--bz-ink); }

.mf-zr-overview .mf-zr-hero-pillars > span + span { position: relative; }

.mf-zr-overview .mf-zr-hero-pillars > span + span::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: rgb(255 255 255 / 8%); }

.mf-zr-overview .mf-fortune { border: 0; border-radius: 0; background: none; padding: 0 4px 8px; }

.mf-zr-overview .mf-fortune-head { padding: 2px 4px 0; }

.mf-zr-overview .mf-fortune-head h2 { font-size: 15px; color: var(--bz-muted); letter-spacing: .12em; }

.mf-zr-overview .mf-fortune-head h2 i { font-size: 12px; color: #DE6B91; }

.mf-zr-overview .mf-fortune-head p { margin-top: 4px; color: var(--bz-muted); font-size: 11.5px; }

.mf-zr-overview .mf-fortune-stage { margin-top: 2px; }

.mf-zr-overview + .mf-doc { margin-top: 10px; }
@media (max-width: 640px) {

  .mf-zr-overview .mf-zr-hero { padding-top: 10px; }
}

/* 追问打字机光标 */
.mf-ask-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--bz-red-bright); vertical-align: -0.15em; animation: mf-caret .8s steps(1) infinite; }

/* ══════════ 人物探索页容器(控制行/网格样式在文件后段 mf-explore-ctrl 区) ══════════ */
.mf-explore { background: transparent; border-radius: 0; padding: 0 clamp(20px, 5vw, 56px) 60px; display: flex; flex-direction: column; width: 100%; }
@media (max-width: 640px) {

  .mf-explore { padding: 0 18px 44px; }
}

/* PC 端探索页:压缩工作区顶部内边距,让导航紧贴顶栏 */
.mf-workspace-content:has(.mf-explore) { padding-top: 0; }

/* ── 双人合盘:历史合盘横条(选择页下方) ── */
.mf-dual-history-zone { margin-top: 8px; gap: 12px; }

.mf-dual-history-zone h2 { margin: 0; color: var(--bz-ink); font: 700 15px/1.4 var(--font-serif-display); letter-spacing: .08em; }

.mf-dual-history-list { display: grid; gap: 8px; }

.mf-dual-history-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--bz-line); border-radius: 12px; background: var(--bz-card); text-decoration: none; transition: border-color .2s ease; }

.mf-dual-history-row:hover { border-color: var(--bz-red); }

.mf-dual-history-avatars { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }

.mf-dual-history-avatars img { width: 30px; height: 39px; border-radius: 6px; object-fit: cover; border: 1px solid var(--bz-line); }

.mf-dual-history-avatars i { font-style: normal; color: var(--bz-red-bright); font-size: 10px; }

.mf-dual-history-main { min-width: 0; flex: 1; display: grid; gap: 2px; }
.mf-dual-history-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mf-dual-history-title em { flex-shrink: 0; }
.mf-dual-history-time { flex-shrink: 0; color: var(--bz-faint); font-size: 11px; white-space: nowrap; }
.mf-dual-history-main small { color: var(--bz-faint); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.06em; }
.mf-dual-history-row b { min-width: 0; color: var(--bz-ink); font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mf-dual-history-row small { color: var(--bz-faint); font-size: 11px; white-space: nowrap; }
.mf-dual-history-meta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* 生成中:状态在上时间在下,双排整体居中,状态标签呼吸闪烁 */
.mf-dual-history-meta.is-stacked { flex-direction: column-reverse; gap: 3px; align-items: center; text-align: center; }
.mf-dual-history-row em[data-status="generating"] { animation: mf-status-blink 1.1s ease-in-out infinite; }
@keyframes mf-status-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.mf-dual-history-row em { flex-shrink: 0; font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

.mf-dual-history-row em[data-status="ready"] { color: var(--bz-green); background: rgb(114 181 138 / 12%); }

.mf-dual-history-row em[data-status="generating"] { color: var(--bz-gold); background: rgb(210 163 92 / 12%); }

.mf-dual-history-row em[data-status="failed"] { color: var(--bz-error); background: rgb(224 109 124 / 12%); }

.mf-dual-history-row em[data-status="pending"] { color: var(--bz-faint); background: rgb(123 115 144 / 12%); }

/* 报告 hero:人物肖像保持原比例(高度随图,不裁切),文案与人物信息对齐图片顶部 */

.mf-zr .mf-zr-hero img { height: auto; }
.mf-test-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 5%, rgba(225, 173, 188, 0.22), transparent 28rem),
    radial-gradient(circle at 12% 40%, rgba(243, 218, 195, 0.25), transparent 30rem),
    var(--mf-cream);
  color: var(--mf-ink);
  font-family: var(--font-sans);
}
.mf-test-header {
  width: min(1180px, calc(100% - 48px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--mf-line);
}
.mf-back-link { color: var(--mf-muted); text-decoration: none; font-size: 14px; transition: color .2s ease; }
.mf-test-header > a:last-child { color: var(--mf-muted); text-decoration: none; font-size: 14px; transition: color .2s ease; }
.mf-back-link:hover { color: var(--mf-plum); }
.mf-test-header > a:last-child:hover { color: var(--mf-plum); }

.mf-primary-button, .mf-secondary-button { min-height: 50px; padding: 0 25px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; font: 700 15px/1 inherit; cursor: pointer; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }

.mf-primary-button { color: white; background: linear-gradient(135deg, #8f3158, #67213f); box-shadow: 0 14px 34px rgba(122, 41, 78, .24); }

.mf-primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(122, 41, 78, .3); }

.mf-primary-button:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }

.mf-secondary-button { color: var(--mf-ink); background: transparent; border: 1px solid var(--mf-line); }

/* MeVerse workspace */
.mf-workspace-shell { min-height: 100vh; display: grid; grid-template-columns: 272px minmax(0, 1fr); color: var(--mf-ink); background: var(--bz-paper); font-family: var(--font-sans); }

.mf-workspace-mobile-bar, .mf-mobile-menu-dialog { display: none; }

.mf-workspace-sidebar { position: sticky; top: 0; height: 100vh; box-sizing: border-box; padding: 28px 18px 20px; display: flex; flex-direction: column; border-right: 1px solid rgba(255, 235, 242, 0.08); background: rgb(21 16 20 / 92%); backdrop-filter: blur(18px); }

.mf-workspace-brand { width: fit-content; margin: 0 10px 46px; display: inline-flex; align-items: center; gap: 10px; color: var(--mf-ink); text-decoration: none; font: 750 21px/1 Georgia, serif; letter-spacing: -.4px; }

.mf-workspace-label { margin: 0 12px 12px; color: var(--bz-faint); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }

.mf-workspace-nav { display: grid; gap: 8px; }

.mf-workspace-nav-item { min-height: 66px; padding: 10px 12px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 15px; color: var(--mf-muted); text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }

.mf-workspace-nav-item:hover { color: #e8dade; background: rgb(255 235 242 / 4.5%); transform: none; }

.mf-workspace-nav-item:focus-visible { outline: 2px solid rgb(198 75 115 / 55%); outline-offset: 2px; }

.mf-workspace-nav-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--bz-muted); background: rgb(255 235 242 / 6%); }

.mf-workspace-nav-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.mf-workspace-nav-item > span:last-child { min-width: 0; display: grid; gap: 5px; }

.mf-workspace-nav-item strong { font-size: 13px; font-weight: 700; }

.mf-workspace-nav-item small { overflow: hidden; color: #8d7f86; font-size: 10px; font-weight: 450; text-overflow: ellipsis; white-space: nowrap; }

.mf-workspace-account { margin-top: auto; padding-top: 16px; display: grid; gap: 3px; border-top: 1px solid var(--mf-line); }

.mf-workspace-account button, .mf-workspace-account a { min-height: 48px; padding: 6px 10px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; border: 0; border-radius: 12px; color: var(--mf-muted); background: transparent; font: 600 12px inherit; text-align: left; text-decoration: none; }
.mf-workspace-account a:hover { color: #de6b91; background: rgba(198, 75, 115, .12); }

.mf-workspace-account button:disabled { cursor: not-allowed; opacity: .62; }

.mf-workspace-account button .mf-workspace-nav-icon, .mf-workspace-account a .mf-workspace-nav-icon { width: 34px; height: 34px; background: transparent; }

.mf-workspace-account button small { padding: 4px 7px; border-radius: 999px; color: var(--bz-muted); background: #261b22; font-size: 9px; font-weight: 650; }

.mf-workspace-main { min-width: 0; min-height: 100vh; background: radial-gradient(circle at 90% 0, rgb(198 75 115 / 7%), transparent 28rem), var(--bz-paper); }

.mf-workspace-content { width: min(1180px, calc(100% - 72px)); margin: 0 auto; padding: 62px 0 44px; }

.mf-workspace-test .mf-test-header { width: min(1040px, calc(100% - 48px)); }

.mf-workspace-test.mf-test-page, .mf-workspace-test.mf-result-page { background: transparent; }

.mf-report-detail-state { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; }

.mf-report-detail-state > span { color: var(--mf-rose); font-size: 30px; }

.mf-report-detail-state h1 { margin: 0; font: 500 34px Georgia, "Songti SC", serif; }

.mf-report-detail-state p { margin: 0 0 12px; color: var(--mf-muted); font-size: 12px; }

.mf-generation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.mf-report-generation-progress { position: relative; width: min(340px, calc(100vw - 72px)); height: 8px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(122,41,78,.1); box-shadow: inset 0 1px 2px rgba(74,43,58,.07); }

.mf-report-generation-progress i { position: absolute; inset: 0 auto 0 -42%; width: 42%; border-radius: inherit; background: linear-gradient(90deg, rgba(199,85,126,.16), var(--mf-rose), var(--mf-plum)); animation: mf-report-progress 1.65s cubic-bezier(.4,0,.2,1) infinite; }

.mf-report-generation-note { margin-top: 2px; color: #9d9096; font-size: 10px; line-height: 1.6; }

.mf-saved-report-detail { min-height: 100vh; }

.mf-saved-report-topbar { width: min(900px, calc(100% - 48px)); height: 74px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--mf-line); }

.mf-saved-report-topbar > span { color: #a2949b; font-size: 10px; font-weight: 700; letter-spacing: .1em; }

.mf-profile-result-symbol { width: 58px; height: 58px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 18px; color: white; background: linear-gradient(145deg, #b65578, #74284c); box-shadow: 0 9px 24px rgba(122,41,78,.22); font-size: 20px; }

.mf-test-page, .mf-result-page { min-height: 100vh; }

.mf-test-header { height: 72px; }

.mf-test-header > span { color: var(--mf-muted); font-size: 13px; }

.mf-test-progress { height: 3px; background: rgba(122,41,78,.08); }

.mf-test-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--mf-rose), var(--mf-plum)); transition: width .35s ease; }

.mf-question-main { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 80px; }

.mf-question-count { margin-bottom: 16px; color: var(--mf-plum); font: 500 22px Georgia, serif; }

.mf-question-count span { color: #b3a7ac; font-size: 13px; }

.mf-question-card { padding: 42px 48px 34px; border: 1px solid var(--mf-line); border-radius: 28px; background: rgba(255,255,255,.7); box-shadow: 0 20px 65px rgba(74,43,58,.07); }

.mf-question-card h1 { min-height: 78px; margin: 0 0 30px; font: 500 clamp(25px, 4vw, 35px)/1.42 Georgia, "Songti SC", serif; }

.mf-report-login-error { min-height: 22px; padding: 7px 2px 0; box-sizing: border-box; color: #a84557; font-size: 10px; }

.mf-options { display: grid; gap: 10px; }

.mf-options button { min-height: 62px; padding: 10px 16px; display: grid; grid-template-columns: 34px 1fr 26px; align-items: center; gap: 14px; color: var(--mf-ink); border: 1px solid var(--mf-line); border-radius: 15px; background: rgba(255,255,255,.76); text-align: left; cursor: pointer; transition: border .2s ease, background .2s ease, transform .2s ease; }

.mf-options button:hover { transform: translateX(3px); border-color: rgba(122,41,78,.36); }

.mf-options button > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--mf-muted); background: #f3eeee; font: 600 12px Georgia, serif; }

.mf-options button strong { font-size: 14px; font-weight: 560; }

.mf-options button i { color: var(--mf-plum); font-style: normal; text-align: center; }

.mf-question-nav { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; }

.mf-text-button { min-height: 44px; border: 0; color: var(--mf-muted); background: transparent; cursor: pointer; }

.mf-text-button:disabled { opacity: .25; cursor: default; }

.mf-initial-result, .mf-final-result { text-align: center; }

.mf-initial-result h1, .mf-final-result h1 { margin: 12px 0 16px; font: 500 clamp(36px, 6vw, 54px)/1.15 Georgia, "Songti SC", serif; }

.mf-final-result { max-width: 850px; margin: 0 auto; }

.mf-model-only-report { width: min(920px, calc(100% - 48px)); margin: 0 auto; padding: 46px 0 70px; text-align: left; }

.mf-model-report-paper { display: grid; gap: 18px; }

.mf-model-report-person { min-height: 68px; padding: 10px 18px 10px 10px; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(122,41,78,.11); border-radius: 19px; background: rgba(255,255,255,.72); box-shadow: 0 12px 34px rgba(73,39,56,.055); color: var(--mf-muted); font: 600 12px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; backdrop-filter: blur(20px) saturate(145%); -webkit-backdrop-filter: blur(20px) saturate(145%); }

.mf-model-report-person strong { color: var(--mf-plum); font: 650 17px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif; letter-spacing: -.015em; }

.mf-model-report-cover { position: relative; overflow: hidden; padding: clamp(34px, 6vw, 56px); border: 1px solid rgba(122,41,78,.12); border-radius: 24px; background: radial-gradient(circle at 92% 4%, rgba(199,85,126,.18), transparent 34%), linear-gradient(145deg, rgba(255,255,255,.93), rgba(250,238,243,.78)); box-shadow: 0 22px 60px rgba(73,39,56,.075); }

.mf-model-report-cover::after { position: absolute; width: 180px; height: 180px; right: -74px; bottom: -112px; border: 1px solid rgba(199,85,126,.16); border-radius: 50%; content: ""; }

.mf-model-report-cover-topline { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.mf-model-report-cover-topline > span { color: var(--mf-rose); font: 760 10px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; letter-spacing: .14em; }

.mf-model-report-cover-topline > small { max-width: 52%; color: #98858e; font: 570 11px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; text-align: right; }

.mf-model-report-visual { position: relative; z-index: 1; margin-top: 38px; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(280px,.88fr); align-items: center; gap: 38px; }

.mf-model-report-type > span { color: #9d8691; font: 650 12px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; }

.mf-model-report-type h2 { max-width: 560px; margin: 9px 0 0; color: var(--mf-ink); font: 540 clamp(29px, 4vw, 40px)/1.12 Georgia, "Songti SC", serif; letter-spacing: -.035em; text-wrap: balance; }

.mf-model-report-type p { max-width: 520px; margin: 18px 0 0; color: #6f5e66; font: 560 15px/1.7 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; }

.mf-relationship-orbit { position: relative; min-height: 178px; display: flex; align-items: center; justify-content: center; }

.mf-relationship-orbit::before, .mf-relationship-orbit::after { position: absolute; inset: 50% 7% auto; height: 1px; background: linear-gradient(90deg, rgba(122,41,78,.18), rgba(199,85,126,.78), rgba(122,41,78,.18)); content: ""; }

.mf-relationship-orbit::after { inset: 17px 50% 17px auto; width: 1px; height: auto; background: linear-gradient(180deg, transparent, rgba(199,85,126,.3), transparent); }

.mf-relationship-node { position: absolute; z-index: 2; width: 86px; height: 86px; display: grid; place-items: center; border: 5px solid rgba(255,255,255,.88); border-radius: 50%; box-shadow: 0 15px 38px rgba(78,40,59,.16); background-position: center; background-size: cover; }

.mf-relationship-node > span { position: absolute; top: calc(100% + 9px); min-width: 90px; color: #75636c; font: 650 11px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; text-align: center; }

.mf-relationship-node.mf-is-user { left: 5%; background: linear-gradient(145deg, #8d355d, #c75e83); color: white; font: 700 24px/1 Georgia, serif; }

.mf-relationship-node.mf-is-user > span { position: static; min-width: 0; color: white; font: inherit; }

.mf-relationship-node.mf-is-star { right: 5%; }

.mf-relationship-orbit > i { position: relative; z-index: 3; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(199,85,126,.28); border-radius: 16px; background: rgba(255,250,252,.9); box-shadow: 0 12px 30px rgba(122,41,78,.13); color: var(--mf-rose); font-style: normal; transform: rotate(45deg); }

.mf-relationship-orbit > i b { font-size: 17px; transform: rotate(-45deg); }

.mf-model-report-facts { position: relative; z-index: 2; margin-top: 38px; display: grid; grid-template-columns: 116px 116px minmax(0,1fr); gap: 10px; }

.mf-model-report-facts > div { min-height: 84px; padding: 15px 16px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(122,41,78,.1); border-radius: 17px; background: rgba(255,255,255,.58); }

.mf-model-report-facts strong { color: var(--mf-plum); font: 500 31px/1 Georgia, serif; font-variant-numeric: tabular-nums; }

.mf-model-report-facts span, .mf-model-report-facts small { margin-top: 8px; color: #9a8790; font: 650 10px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; }

.mf-model-report-facts .mf-is-tension { padding-inline: 20px; }

.mf-model-report-facts .mf-is-tension small { margin: 0; color: var(--mf-rose); letter-spacing: .08em; }

.mf-model-report-facts .mf-is-tension p { margin: 8px 0 0; color: #5f5057; font: 590 13px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; }

.mf-model-report-keywords { position: relative; z-index: 2; margin-top: 13px; display: flex; flex-wrap: wrap; gap: 8px; }

.mf-model-report-keywords span { padding: 8px 12px; border: 1px solid rgba(122,41,78,.11); border-radius: 999px; background: rgba(255,255,255,.62); color: #7a5265; font: 650 11px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; }

.mf-model-report-lead { position: relative; z-index: 2; max-width: 680px; margin: 20px 0 0; color: var(--mf-muted); font: 400 14px/1.8 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; white-space: pre-wrap; }

.mf-model-report-sections { display: grid; gap: 16px; }

.mf-model-report-section { position: relative; min-width: 0; padding: clamp(26px, 5vw, 42px); overflow: hidden; border: 1px solid rgba(122,41,78,.105); border-radius: 22px; background: rgba(255,255,255,.76); box-shadow: 0 16px 44px rgba(73,39,56,.055); backdrop-filter: blur(22px) saturate(135%); -webkit-backdrop-filter: blur(22px) saturate(135%); transition: transform 220ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, box-shadow 220ms ease; }

.mf-model-report-section::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, rgba(199,85,126,.78), rgba(122,41,78,.34)); content: ""; }

.mf-model-report-section:hover { transform: translateY(-2px); border-color: rgba(122,41,78,.18); box-shadow: 0 22px 58px rgba(73,39,56,.085); }

.mf-model-report-section:active { transform: scale(.995); transition-duration: 90ms; }

.mf-model-report-section-heading { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: start; gap: 15px; }

.mf-model-report-section-heading > span { width: 40px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(199,85,126,.18); border-radius: 9px; background: rgba(248,231,238,.76); color: var(--mf-rose); font: 750 10px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; letter-spacing: .08em; }

.mf-model-report-section h2 { margin: -2px 0 0; color: var(--mf-ink); font: 600 clamp(21px, 3vw, 27px)/1.35 Georgia, "Songti SC", serif; letter-spacing: -.02em; text-wrap: balance; }

.mf-model-report-section-copy { margin: 24px 0 0 55px; display: grid; color: #62555c; font: 400 clamp(15px, 1.8vw, 17px)/1.95 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; overflow-wrap: anywhere; }

.mf-model-report-subsection { position: relative; padding: 20px 0 20px 19px; border-top: 1px solid rgba(122,41,78,.085); }

.mf-model-report-subsection:first-child { padding-top: 0; border-top: 0; }

.mf-model-report-subsection:last-child { padding-bottom: 0; }

.mf-model-report-subsection::before { position: absolute; top: 27px; left: 0; width: 6px; height: 6px; border-radius: 2px; background: linear-gradient(145deg, var(--mf-rose), var(--mf-plum)); box-shadow: 0 0 0 4px rgba(199,85,126,.09); content: ""; }

.mf-model-report-subsection:first-child::before { top: 7px; }

.mf-model-report-subsection h3 { margin: 0 0 8px; color: var(--mf-plum); font: 680 14px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; letter-spacing: -.005em; }

.mf-model-report-subsection p { margin: 0; color: #62555c; white-space: pre-wrap; }

.mf-model-only-report .mf-result-actions { justify-content: center; }

.mf-model-only-report .mf-disclaimer { text-align: center; }

.mf-result-actions { margin-top: 28px; display: flex; justify-content: center; gap: 10px; }

.mf-disclaimer { margin: 18px 0 0; color: #a99ca2; font-size: 11px; }
@media (max-width: 800px) {
.mf-test-header { width: calc(100% - 32px); height: 66px; }
}
@media (max-width: 800px) {

  .mf-workspace-shell { display: block; }
}
@media (max-width: 800px) {

  .mf-workspace-sidebar { display: none; }
}
@media (max-width: 800px) {

  /* sticky 而非 fixed:橡皮筋下拉时与主体同属文档流,同步位移/回弹,不会出现顶栏与内容分离的断层 */
  .mf-workspace-mobile-bar { position: sticky; top: 0; z-index: 20; width: 100%; height: calc(54px + env(safe-area-inset-top)); box-sizing: border-box; padding: env(safe-area-inset-top) 20px 0; display: flex; align-items: center; justify-content: space-between; background: rgb(15 11 14 / 96%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}
@media (max-width: 800px) {

  .mf-workspace-main { scroll-padding-top: calc(54px + env(safe-area-inset-top)); }
}
@media (max-width: 800px) {

  .mf-workspace-mobile-bar .mf-workspace-brand { margin: 0; font-size: 17.5px; }
}
@media (max-width: 800px) {

  .mf-workspace-content { width: calc(100% - 32px); padding: 38px 0 34px; }
}
@media (max-width: 800px) {

  .mf-saved-report-topbar { position: sticky; top: 0; z-index: 10; width: auto; height: 60px; box-sizing: border-box; margin: 0 calc(-1 * clamp(18px, 4vw, 40px)); padding: 0 max(clamp(18px, 4vw, 40px), env(safe-area-inset-right)) 0 max(clamp(18px, 4vw, 40px), env(safe-area-inset-left)); background: rgb(15 11 14 / 96%); backdrop-filter: blur(14px); }
}
@media (max-width: 800px) {

  .mf-question-main { padding-top: 30px; }
}
@media (max-width: 800px) {

  .mf-question-card { padding: 28px 20px 22px; border-radius: 22px; }
}
@media (max-width: 800px) {

  .mf-question-card h1 { min-height: 96px; margin-bottom: 22px; font-size: 25px; }
}
@media (max-width: 800px) {

  .mf-options button { min-height: 58px; padding: 9px 12px; grid-template-columns: 30px 1fr 20px; gap: 10px; }
}
@media (max-width: 800px) {

  .mf-question-nav { gap: 10px; }
}
@media (max-width: 800px) {

  .mf-question-nav .mf-primary-button { min-height: 46px; padding: 0 20px; gap: 15px; }
}
@media (max-width: 800px) {

  .mf-model-only-report { width: calc(100% - 32px); padding: 26px 0 48px; }
}
@media (max-width: 800px) {

  .mf-model-report-paper { gap: 13px; }
}
@media (max-width: 800px) {

  .mf-model-report-person { min-height: 60px; border-radius: 17px; }
}
@media (max-width: 800px) {

  .mf-model-report-cover { padding: 31px 22px 33px; border-radius: 20px; }
}
@media (max-width: 800px) {

  .mf-model-report-cover-topline { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 800px) {

  .mf-model-report-cover-topline > small { max-width: 100%; text-align: left; }
}
@media (max-width: 800px) {

  .mf-model-report-visual { margin-top: 28px; grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 800px) {

  .mf-model-report-type h2 { font-size: 32px; line-height: 1.1; }
}
@media (max-width: 800px) {

  .mf-model-report-type p { margin-top: 14px; font-size: 14px; }
}
@media (max-width: 800px) {

  .mf-relationship-orbit { min-height: 154px; }
}
@media (max-width: 800px) {

  .mf-relationship-node { width: 72px; height: 72px; }
}
@media (max-width: 800px) {

  .mf-relationship-node.mf-is-user { left: 7%; font-size: 21px; }
}
@media (max-width: 800px) {

  .mf-relationship-node.mf-is-star { right: 7%; }
}
@media (max-width: 800px) {

  .mf-relationship-orbit > i { width: 42px; height: 42px; border-radius: 14px; }
}
@media (max-width: 800px) {

  .mf-model-report-facts { margin-top: 25px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {

  .mf-model-report-facts .mf-is-tension { grid-column: 1 / -1; min-height: 74px; }
}
@media (max-width: 800px) {

  .mf-model-report-sections { gap: 12px; }
}
@media (max-width: 800px) {

  .mf-model-report-section { padding: 25px 20px 27px; border-radius: 19px; }
}
@media (max-width: 800px) {

  .mf-model-report-section-heading { grid-template-columns: 34px minmax(0,1fr); gap: 11px; }
}
@media (max-width: 800px) {

  .mf-model-report-section-heading > span { width: 34px; height: 26px; border-radius: 8px; }
}
@media (max-width: 800px) {

  .mf-model-report-section-copy { margin: 19px 0 0; font-size: 15px; line-height: 1.9; }
}
@media (max-width: 800px) {

  .mf-model-report-subsection { padding: 17px 0 17px 17px; }
}
@media (max-width: 800px) {

  .mf-model-report-subsection::before { top: 24px; }
}
@media (max-width: 800px) {

  .mf-model-report-subsection:first-child::before { top: 7px; }
}
@media (max-width: 800px) {

  .mf-result-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {

  .mf-report-generation-progress i { left: 29%; animation: none; }
}
@media (prefers-reduced-motion: reduce) {

  .mf-model-report-section { transition: none; }
}
@media (prefers-reduced-motion: reduce) {

  .mf-model-report-section:hover, .mf-model-report-section:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {

  .mf-model-report-person, .mf-model-report-section { background: #fffafb; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media print {

  .mf-test-header, .mf-result-actions { display: none !important; }
}

.mf-upgrade-workspace {
  width: min(1120px, calc(100% - 72px));
  margin: 0 auto;
  padding: 66px 0 54px;
}

.mf-upgrade-tabs {
  width: fit-content;
  margin-top: 34px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(2, minmax(116px, 1fr));
  gap: 4px;
  border: 1px solid rgba(70, 42, 55, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
}

.mf-upgrade-tabs button {
  min-height: 43px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: var(--mf-muted);
  background: transparent;
  font: 700 14px/1 inherit;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mf-upgrade-tabs button:focus-visible { outline: 3px solid rgba(122, 41, 78, .28); outline-offset: 2px; }

.mf-upgrade-plan-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.mf-upgrade-plan {
  position: relative;
  min-width: 0;
  min-height: 360px;
  box-sizing: border-box;
  padding: 27px 26px 25px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  border: 1px solid rgba(70, 42, 55, .12);
  border-radius: 26px;
  color: var(--mf-ink);
  background: rgba(255, 252, 249, .82);
  box-shadow: 0 18px 46px rgba(82, 35, 58, .06);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.mf-upgrade-plan::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  top: -98px;
  right: -65px;
  border-radius: 50%;
  background: rgba(183, 89, 118, .08);
}

.mf-upgrade-plan:hover { transform: translateY(-4px); border-color: rgba(122, 41, 78, .26); box-shadow: 0 24px 54px rgba(82, 35, 58, .1); }

.mf-upgrade-plan:focus-visible { outline: 3px solid rgba(122, 41, 78, .28); outline-offset: 3px; }

.mf-upgrade-plan-topline { width: 100%; min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.mf-upgrade-plan-name { font-size: 18px; font-weight: 760; }

.mf-upgrade-plan-badge { padding: 7px 10px; border-radius: 999px; color: var(--mf-plum); background: rgba(122, 41, 78, .09); font-size: 11px; font-weight: 760; }

.mf-upgrade-plan-price { margin-top: 35px; font: 500 58px/1 Georgia, serif; letter-spacing: -.05em; }

.mf-upgrade-plan-price small { margin-right: 4px; font: 700 21px/1 inherit; letter-spacing: 0; vertical-align: 18px; }

.mf-upgrade-plan-uses { margin-top: 18px; font-size: 15px; }

.mf-upgrade-plan-uses strong { margin-right: 2px; color: var(--mf-plum); font-size: 18px; }

.mf-upgrade-plan-unit { margin-top: 8px; color: var(--mf-muted); font-size: 13px; }

.mf-upgrade-plan-description { margin-top: auto; padding-top: 30px; color: var(--mf-muted); font-size: 13px; line-height: 1.6; }

.mf-upgrade-feedback { min-height: 21px; margin: 12px 4px 0; color: var(--mf-plum); font-size: 12px; text-align: right; }

.mf-upgrade-includes { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--mf-line); }

.mf-upgrade-includes > span { color: var(--mf-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; }

.mf-upgrade-includes > div { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px 28px; }

.mf-upgrade-includes p { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--mf-muted); font-size: 13px; }

.mf-upgrade-includes i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: var(--mf-plum); background: rgba(122, 41, 78, .08); font-size: 10px; font-style: normal; font-weight: 800; }
@media (max-width: 900px) {

  .mf-upgrade-workspace { width: calc(100% - 32px); padding: 40px 0 36px; }
}
@media (max-width: 900px) {

  .mf-upgrade-tabs { width: 100%; box-sizing: border-box; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {

  .mf-upgrade-plan-grid { margin-top: 30px; grid-template-columns: 1fr; gap: 13px; }
}
@media (max-width: 900px) {

  .mf-upgrade-plan { min-height: 0; padding: 22px 21px 21px; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 900px) {

  .mf-upgrade-plan-topline, .mf-upgrade-plan-description { grid-column: 1 / -1; }
}
@media (max-width: 900px) {

  .mf-upgrade-plan-price { margin-top: 28px; }
}
@media (max-width: 900px) {

  .mf-upgrade-plan-uses { align-self: end; justify-self: end; margin: 0 38px 7px 10px; }
}
@media (max-width: 900px) {

  .mf-upgrade-plan-unit { margin-top: 6px; }
}
@media (max-width: 900px) {

  .mf-upgrade-plan-description { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(70,42,55,.08); }
}
@media (max-width: 900px) {

  .mf-upgrade-feedback { text-align: left; }
}
@media (max-width: 900px) {

  .mf-upgrade-includes > div { display: grid; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {

  .mf-upgrade-plan { transition: none; }
}
@media (prefers-reduced-motion: reduce) {

  .mf-upgrade-plan:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {

  .mf-upgrade-tabs button { transition: none; }
}
.mf-test-page {
  background:
    radial-gradient(circle at 86% 5%, rgb(198 75 115 / 7%), transparent 26rem),
    radial-gradient(circle at 12% 40%, rgb(210 163 92 / 4%), transparent 28rem),
    #0a0709;
}

/* 答题/生成页 */
.mf-test-header { border-bottom-color: var(--mf-line); }

.mf-primary-button { color: #fff; background: var(--bz-red); box-shadow: 0 14px 34px rgb(198 75 115 / 25%); }

.mf-secondary-button { color: var(--mf-ink); border-color: rgba(255, 235, 242, 0.20); }

/* ── 手机端底部导航 Tab(替代汉堡抽屉;桌面隐藏,报告详情页隐藏;个人中心在顶栏右上角) ── */
.mf-mobile-tabbar { display: none; }

.mf-mobile-profile-btn { display: none; }
@media (max-width: 800px) {

  .mf-mobile-tabbar { position: fixed; inset: auto 0 0; z-index: 20; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: calc(54px + env(safe-area-inset-bottom)); box-sizing: border-box; padding: 0 8px env(safe-area-inset-bottom); background: rgb(15 11 14 / 96%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}
@media (max-width: 800px) {

  .mf-mobile-tab { min-width: 0; display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--mf-muted); text-decoration: none; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
}
@media (max-width: 800px) {

  .mf-mobile-tab-icon { display: grid; place-items: center; width: 40px; height: 26px; }
}
@media (max-width: 800px) {

  .mf-mobile-tab-icon svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
}
@media (max-width: 800px) {

  .mf-mobile-profile-btn { display: inline-flex; align-items: center; height: 32.5px; padding: 0 12.5px; margin-left: auto; border-radius: 999px; border: 1px solid rgb(198 75 115 / 45%); background: transparent; color: var(--bz-red-bright, #DE6B91); text-decoration: none; font-size: 12.5px; font-weight: 600; }
}

/* 历史合盘横条删除:右端垃圾桶图标入口(低调,按下才显红);点击后整行切换为红色确认条 */
.mf-dual-history-row-wrap { position: relative; }
.mf-dual-history-row-wrap .mf-dual-history-row { padding-right: 46px; }
.mf-dual-history-del {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 9px;
  background: transparent; color: var(--bz-faint);
  cursor: pointer; transition: color .15s ease, background-color .15s ease;
}
.mf-dual-history-del svg { width: 15px; height: 15px; }
.mf-dual-history-del:hover, .mf-dual-history-del:active { color: var(--bz-red); background: rgb(139 30 45 / 10%); }

/* 明星选择面板分组标题(无搜索时按组合分节) */
.mf-dual-group-title { margin: 6px 0 0; color: var(--bz-muted); font: 650 11.5px/1.4 var(--font-serif-display); letter-spacing: .12em; text-transform: uppercase; }
.mf-dual-group-title:first-child { margin-top: 0; }

/* 明星选择面板:分组容器占据剩余高度并滚动(sheet 第三行 minmax(0,1fr)) */
.mf-dual-groups { overflow-y: auto; display: grid; gap: 12px; align-content: start; min-height: 0; padding-right: 2px; }

/* 合盘 hero 价值副标题:低强调度小字,衬托主标题不抢权重 */
.mf-dual-head p { margin: 6px 0 0; color: var(--bz-muted); font: 400 11px/1.7 inherit; letter-spacing: .01em; }

/* 移动端:固定顶栏占 64px+安全区,筛选栏吸附在其正下方,滚动时与顶栏一体保持不动 */
@media (max-width: 800px) {
  html, body { overflow-x: hidden; overflow-x: clip; } /* clip 不创建滚动容器,sticky 吸顶不受影响;hidden 仅为旧浏览器兜底;保留原生下拉刷新与回弹 */
  .mf-workspace-content { width: calc(100% - 40px); padding: 20px 0 calc(14px + 66px + env(safe-area-inset-bottom)); }
  .mf-mobile-tabbar .mf-mobile-tab { min-height: 54px; }
}

/* ── 统一组件库 mf-ui-*:触控≥44px,过渡 150-250ms,reduced-motion 关闭非必要动画 ── */
.mf-ui-btn { min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font: 600 14px/1 inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .18s ease, border-color .18s ease, opacity .18s ease; }
.mf-ui-btn.is-primary { background: var(--bz-red); color: #fff; }
.mf-ui-btn.is-primary:hover { opacity: .9; }
.mf-ui-btn.is-ghost { border-color: var(--bz-line-strong); background: transparent; color: var(--bz-ink); }
.mf-ui-btn.is-ghost:hover { border-color: var(--bz-red); color: var(--bz-red); }
.mf-ui-btn.is-danger { background: var(--bz-red); color: #fff; }
.mf-ui-btn.is-sm { min-height: 38px; padding: 0 14px; font-size: 12.5px; }
.mf-ui-btn:disabled { opacity: .55; cursor: default; }
.mf-ui-btn-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 35%); border-top-color: #fff; animation: mf-ui-spin .8s linear infinite; }
@keyframes mf-ui-spin { to { transform: rotate(360deg); } }
.mf-ui-iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 11px; background: transparent; color: var(--bz-muted); cursor: pointer; transition: color .18s ease, background-color .18s ease; }
.mf-ui-iconbtn:hover { color: var(--bz-ink); background: rgb(255 235 242 / 6%); }
.mf-ui-iconbtn svg { width: 20px; height: 20px; }
.mf-ui-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #C8C3CB; background: #3A3540; }
.mf-ui-tag.is-good { color: var(--bz-green); background: rgb(114 181 138 / 12%); }
.mf-ui-tag.is-warn { color: var(--bz-gold); background: rgb(210 163 92 / 12%); }
.mf-ui-tag.is-bad { color: var(--bz-error); background: rgb(224 109 124 / 12%); }
.mf-ui-search { display: flex; align-items: center; gap: 9px; padding: 0 14px; height: 48px; border: 1px solid var(--bz-line); border-radius: 12px; background: var(--bz-card); color: var(--bz-muted); }
.mf-ui-search svg { width: 16px; height: 16px; flex-shrink: 0; }
.mf-ui-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--bz-ink); font-size: 13.5px; outline: none; }
.mf-ui-search button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--bz-muted); font-size: 16px; cursor: pointer; }
.mf-ui-filterbar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.mf-ui-filterbar::-webkit-scrollbar { display: none; }
.mf-ui-filterbar button { flex-shrink: 0; min-height: 36px; padding: 0 14px; border: 1px solid var(--bz-line); border-radius: 999px; background: transparent; color: var(--bz-muted); font: 600 12px/1 inherit; cursor: pointer; transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
.mf-ui-filterbar button.is-active { color: var(--bz-red-bright); border-color: var(--bz-red); background: rgb(139 30 45 / 10%); }
.mf-ui-skel { display: block; background: linear-gradient(100deg, transparent 20%, rgb(255 235 242 / 6%) 40%, rgb(255 235 242 / 6%) 60%, transparent 80%); background-size: 220% 100%; animation: mf-skel-shimmer 1.4s infinite linear; border-radius: 8px; }
.mf-ui-skel.is-line { height: 16px; }
.mf-ui-skel.is-block { height: 88px; border-radius: 14px; }
.mf-ui-skel.is-portrait { height: 150px; border-radius: 14px; }
.mf-ui-skel-list { display: grid; gap: 10px; }
.mf-ui-state { display: grid; justify-items: center; gap: 8px; padding: 36px 20px; text-align: center; }
.mf-ui-state i { font-style: normal; font-size: 26px; color: var(--bz-faint); }
.mf-ui-state b { color: var(--bz-ink); font-size: 14px; }
.mf-ui-state p { margin: 0; color: var(--bz-muted); font-size: 12px; }
.mf-ui-toasts { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.mf-ui-toast { padding: 10px 18px; border-radius: 999px; background: rgb(20 14 18 / 94%); color: var(--bz-ink); font-size: 12.5px; animation: mf-ui-rise .2s ease; }
.mf-ui-toast.is-good { color: var(--bz-green); }
.mf-ui-toast.is-bad { color: var(--bz-error); }
@keyframes mf-ui-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mf-ui-sheet { position: fixed; inset: 0; z-index: 80; }
.mf-ui-sheet-mask { position: absolute; inset: 0; background: rgb(6 4 6 / 60%); animation: mf-ui-fade .18s ease; }
.mf-ui-sheet-panel { position: absolute; display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: 82vh; background: var(--bz-card-raised); }
.mf-ui-sheet-panel header { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 6px 20px; border-bottom: 1px solid var(--bz-line); }
.mf-ui-sheet-panel header b { color: var(--bz-ink); font-size: 14.5px; }
.mf-ui-sheet-body { padding: 18px 20px 24px; overflow-y: auto; }
.mf-ui-confirm-msg { margin: 0 0 18px; color: var(--bz-muted); font-size: 13px; line-height: 1.7; }
.mf-ui-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
/* 移动端 BottomSheet / 桌面居中 Dialog / reduced-motion */
@media (max-width: 800px) {
  .mf-ui-sheet-panel { left: 0; right: 0; bottom: 0; max-height: 78vh; border-radius: 20px 20px 0 0; animation: mf-ui-up .22s ease; }
}
@media (min-width: 801px) {
  .mf-ui-sheet-panel { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 48px)); border-radius: 18px; animation: mf-ui-pop .18s ease; }
}
@keyframes mf-ui-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes mf-ui-pop { from { transform: translate(-50%, -46%) scale(.96); opacity: .4; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes mf-ui-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mf-ui-btn, .mf-ui-iconbtn, .mf-ui-filterbar button, .mf-ui-sheet-mask, .mf-ui-sheet-panel, .mf-ui-toast, .mf-explore-tabs button, .mf-explore-searchbox { animation: none !important; transition: none !important; }
  .mf-ui-skel { animation-duration: 2.8s; }
}

/* ── 发现页新工具栏与卡片 ── */
/* ── 发现页控制行:默认=排序标签+搜索icon;点icon→搜索框替换标签行,取消按钮替换icon ── */
.mf-explore-ctrl { display: flex; align-items: center; gap: 14px; min-height: 38px; padding: 4px calc(50vw - 50%); position: sticky; top: calc(53px + env(safe-area-inset-top)); z-index: 15; margin: -1px calc(50% - 50vw) 0; background: rgb(15 11 14 / 70%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-sizing: border-box; }
@media (min-width: 801px) { .mf-explore-ctrl { top: 0; } }
.mf-explore-tabs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 26px; }
.mf-explore-tabs button { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 1px; border: 0; background: none; color: var(--bz-muted); font-size: 14px; font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: color .18s ease; }
.mf-explore-tabs button.is-active { color: var(--bz-ink); }
.mf-explore-tabs button.is-active::after { content: ""; position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); width: 14px; height: 2px; border-radius: 2px; background: var(--bz-ink); }
.mf-explore-searchbtn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--bz-muted); cursor: pointer; }
.mf-explore-searchbtn svg { width: 17px; height: 17px; }
.mf-explore-searchbox { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 4px; animation: mf-searchin .25s ease; }
.mf-explore-searchbox input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--bz-ink); caret-color: var(--bz-red-bright); font-size: 13.5px; }
.mf-explore-searchbox input::placeholder { color: var(--bz-faint); }
.mf-explore-searchbox svg { flex: none; width: 15px; height: 15px; color: var(--bz-faint); }
.mf-explore-cancel { flex: none; border: 0; background: none; padding: 4px 0; color: var(--bz-muted); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.mf-ui-filterbar { position: relative; }
.mf-ui-filterbar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 26px; background: linear-gradient(90deg, transparent, var(--bz-paper)); pointer-events: none; }
.mf-explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0 0; animation: mf-explorefade .22s ease; }
@media (max-width: 800px) { .mf-explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 641px) and (max-width: 800px) { .mf-explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mf-explore-grid { margin-top: 18px; } }
.mf-bz-star-card { display: grid; gap: 6px; min-width: 0; align-content: start; padding: 12px; border: 1px solid var(--bz-line); border-radius: 20px; background: var(--bz-card); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.mf-bz-star-card:hover { border-color: var(--bz-red); }
.mf-bz-star-card.is-visited { border-color: var(--bz-red); box-shadow: 0 10px 28px rgb(198 75 115 / 22%); }
.mf-bz-star-card b { color: var(--bz-ink); font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-bz-star-card small { color: var(--bz-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-explore-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mf-explore-card-tags .mf-ui-tag { padding: 3px 6px; font-size: 11.5px; }
.mf-explore-card-cta { color: var(--bz-red-bright); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.mf-explore-more { display: grid; justify-items: center; padding: 18px 0 6px; }
.mf-explore-more button { min-height: 44px; padding: 0 28px; border: 1px solid var(--bz-line-strong); border-radius: 999px; background: transparent; color: var(--bz-muted); font: 600 13px/1 inherit; cursor: pointer; }
.mf-explore-more button:hover { color: var(--bz-ink); border-color: var(--bz-red); }
.mf-explore-end { margin: 18px 0 0; text-align: center; color: var(--bz-faint); font-size: 11.5px; }

/* ── 人物预览页 ── */
.mf-preview { display: grid; gap: 20px; max-width: 720px; margin: 14px auto 0; }
.mf-preview-hero { display: flex; gap: 20px; align-items: center; }
.mf-preview-hero img { width: 132px; height: 172px; flex-shrink: 0; object-fit: cover; object-position: var(--portrait-position, center); border-radius: 16px; border: 1px solid var(--bz-line); }
.mf-preview-head-copy h1 { margin: 0; color: var(--bz-ink); font: 700 clamp(22px, 3vw, 28px)/1.25 var(--font-serif-display); }
.mf-preview-en { margin: 4px 0 0; color: var(--bz-muted); font-size: 13px; letter-spacing: .04em; }
.mf-preview-group { margin: 10px 0 0; color: var(--bz-red-bright); font-size: 12.5px; font-weight: 650; }
.mf-preview-birth { margin: 4px 0 0; color: var(--bz-faint); font-size: 12px; }
.mf-preview-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.mf-preview-actions { display: grid; gap: 10px; }
.mf-preview-actions-row { display: flex; gap: 8px; }
.mf-preview-actions-row .mf-ui-iconbtn { border: 1px solid var(--bz-line); }
/* 已收藏:星星以主题色填充 */
.mf-preview-actions-row .mf-ui-iconbtn.is-faved { color: var(--bz-red-bright); border-color: var(--bz-red); }
.mf-preview-actions-row .mf-ui-iconbtn.is-faved svg { fill: currentColor; }
.mf-preview-section h2 { margin: 0 0 12px; color: var(--bz-ink); font: 700 15px/1.4 var(--font-serif-display); letter-spacing: .08em; }
.mf-preview-section blockquote { margin: 0 0 10px; padding: 12px 16px; border-left: 2px solid var(--bz-red); border-radius: 0 12px 12px 0; background: var(--bz-card); }
.mf-preview-section blockquote b { display: block; margin-bottom: 4px; color: var(--bz-red-bright); font-size: 12px; }
.mf-preview-section blockquote p { margin: 0; color: var(--bz-muted); font-size: 13px; line-height: 1.7; }
.mf-preview-chapters { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mf-preview-chapters li { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--bz-line); border-radius: 12px; color: var(--bz-ink); font-size: 13px; font-weight: 600; }
.mf-preview-chapters li i { font-style: normal; color: var(--bz-red-bright); }
.mf-preview-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mf-preview-related a { display: grid; gap: 6px; text-decoration: none; }
.mf-preview-related span { aspect-ratio: 3 / 3.8; border-radius: 12px; background-size: cover; background-position: var(--portrait-position, center); border: 1px solid var(--bz-line); }
.mf-preview-related b { color: var(--bz-ink); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-preview-note { margin: 10px 0 0; color: var(--bz-faint); font-size: 12px; }
@media (max-width: 800px) {
  .mf-preview-chapters { grid-template-columns: repeat(2, 1fr); }
  .mf-preview-related { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .mf-preview-hero img { width: 108px; height: 140px; }
}

/* ── 报告阅读工具:进度条/悬浮工具/目录浮层/章节问AI ── */
@media (min-width: 801px) {  }

/* 双人卡:交换按钮与清除角标 */
.mf-dual-swap { width: 34px; height: 34px; margin: 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--bz-line); border-radius: 50%; background: var(--bz-card); color: var(--bz-muted); cursor: pointer; transition: color .18s ease, border-color .18s ease; }
.mf-dual-swap:hover:not(:disabled) { color: var(--bz-red-bright); border-color: var(--bz-red); }
.mf-dual-swap:disabled { opacity: .3; cursor: default; }
.mf-dual-swap svg { width: 15px; height: 15px; transform: rotate(90deg); }
.mf-dual-node { position: relative; }

/* 报告库:搜索/状态工具行与行内操作 */
.mf-lib-toolbar { display: grid; gap: 12px; margin: 20px 0 24px; }
.mf-lib-del { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--bz-faint); font: 600 11.5px/1 inherit; cursor: pointer; transition: color .18s ease; }
.mf-lib-del:hover { color: var(--bz-red); }
.mf-hist-entry-row { display: grid; gap: 6px; }
.mf-lib-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 一级页面共享同一内容宽度；页面组件自身不再重复制造第二层边距。 */
.mf-dual-page { display: grid; gap: 24px; }
.mf-dual-page > .mf-dual { width: auto; padding: 0; background: transparent; }
.mf-workspace-content > .mf-hist { width: auto; padding: 0; background: transparent; border-radius: 0; }

/* 我的页:20px 边距/28px 区块距/20px 卡片内距/88×112 人物图/48 登录钮/64 入口行 */
.mf-me { display: grid; gap: 28px; max-width: 720px; margin: 0 auto; min-width: 0; }
.mf-me > * { min-width: 0; max-width: 100%; }
.mf-me-account { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--bz-line); border-radius: 16px; background: var(--bz-card); box-sizing: border-box; }
.mf-me-account-copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
.mf-me-account-copy b { color: var(--bz-ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-me-account-copy p { margin: 0; color: var(--bz-faint); font-size: 12px; }
.mf-me-login { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--bz-red); color: #fff; font: 500 15px/1 inherit; text-decoration: none; cursor: pointer; }
.mf-me-logout { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--bz-line-strong); border-radius: 10px; background: transparent; color: var(--bz-muted); font-size: 12px; font-weight: 500; line-height: 1; cursor: pointer; }
.mf-me-section h2 { margin: 0 0 12px; color: var(--bz-ink); font: 600 17px/1.4 var(--font-sans); white-space: nowrap; }

/* ── /home 内登录弹窗:屏幕居中 + 唤起页模糊背景;卡片样式为登录页 mf-login-card 的副本(改版需与 login.css 同步) ── */
.mf-login-modal-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mf-login-modal-mask { position: absolute; inset: 0; background: rgb(10 7 9 / 45%); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); }
/* text-align 防御:弹窗可能挂在 text-align:center 的容器里(如合盘确认页的 mf-dual-status),
   卡片内容必须保持登录页同款的左对齐 */
.mf-login-modal-card { position: relative; z-index: 1; max-height: calc(100dvh - 40px); overflow-y: auto; text-align: left; animation: mf-login-modal-in .22s ease; }
.mf-login-back { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(255, 235, 242, 0.22); border-radius: 999px; color: #bdaeb4; background: transparent; font-size: 11px; font-weight: 680; cursor: pointer; }
.mf-login-back:hover { color: #de6b91; background: rgba(255, 255, 255, 0.08); }
@keyframes mf-login-modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }

/* 以下为登录页卡片样式副本(login.css),仅供弹窗在 /home 内使用 */
.mf-login-card { position: relative; width: min(470px, calc(100vw - 40px)); box-sizing: border-box; padding: 34px 44px 34px; border: 1px solid rgba(255, 235, 242, 0.12); border-radius: 30px; background: rgb(28 21 26 / 88%); box-shadow: 0 30px 90px rgb(0 0 0 / 50%), inset 0 1px 0 rgb(255 255 255 / 6%); backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%); }
.mf-login-card-head { min-height: 52px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mf-login-mark { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 17px; color: white; background: linear-gradient(145deg, #b75276, #702443); box-shadow: 0 13px 30px rgba(122, 41, 78, .23); }
.mf-login-mark span { font-size: 17px; }
.mf-login-kicker { color: var(--bz-red-bright); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.mf-login-card h1 { margin: 11px 0 12px; font: 500 35px/1.18 Georgia, "Songti SC", serif; letter-spacing: -.035em; color: var(--bz-ink); }
.mf-login-modal-card h1 { font-size: 25px; }
.mf-login-card > p { margin: 0; color: var(--bz-muted); font-size: 13px; line-height: 1.75; }
.mf-login-form { margin-top: 30px; display: grid; gap: 18px; }
.mf-login-form label { display: grid; gap: 8px; }
.mf-login-form label > span { color: var(--bz-ink); font-size: 11px; font-weight: 720; }
.mf-login-form input { width: 100%; min-height: 52px; box-sizing: border-box; padding: 0 15px; border: 1px solid rgba(255, 235, 242, 0.16); border-radius: 13px; outline: none; color: #f7f0f2; background: #151014; font: 550 14px inherit; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.mf-login-form input:focus { border-color: #c64b73; background: #17121a; box-shadow: 0 0 0 4px rgba(198, 75, 115, 0.16); }
.mf-login-form input::placeholder { color: #897980; }
.mf-login-code-field { position: relative; }
.mf-login-code-field input { padding-right: 108px; }
.mf-login-code-field button { position: absolute; top: 7px; right: 7px; min-width: 92px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; color: #de6b91; background: rgba(122, 41, 78, .08); font: 700 11px inherit; cursor: pointer; }
.mf-login-code-field button:active { transform: scale(.97); }
.mf-login-code-field button:disabled { color: #9f8993; background: rgba(122, 41, 78, .05); cursor: not-allowed; transform: none; }
.mf-login-feedback { min-height: 18px; margin: -4px 2px -6px; color: #6c856f; font-size: 10px; }
.mf-login-feedback .error { color: #d66d7d; }
.mf-login-submit { min-height: 54px; border: 0; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--bz-red), var(--bz-red-bright)); box-shadow: 0 14px 30px rgba(37, 27, 34, .2); font: 750 14.5px/1.2 var(--font-serif-display); letter-spacing: .06em; cursor: pointer; transition: transform 160ms cubic-bezier(.23, 1, .32, 1), box-shadow 160ms ease; }
.mf-login-submit:active { transform: scale(.98); }
.mf-login-submit:disabled { opacity: .68; cursor: wait; transform: none; box-shadow: 0 8px 20px rgba(37, 27, 34, .12); }
.mf-login-card > small { margin-top: 22px; display: block; color: #9f9298; font-size: 9px; line-height: 1.6; text-align: center; }
@media (max-width: 640px) {
  .mf-login-modal-card { padding: 26px 22px 28px; border-radius: 25px; }
}
.mf-me-empty { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 16px; border: 1px dashed var(--bz-line); border-radius: 12px; box-sizing: border-box; }
.mf-me-empty i { font-style: normal; color: var(--bz-faint); font-size: 16px; }
.mf-me-empty p { margin: 0; color: var(--bz-muted); font-size: 12.5px; }
.mf-me-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; min-width: 0; max-width: 100%; }
.mf-me-row::-webkit-scrollbar { display: none; }
.mf-me-row a { flex: 0 0 auto; display: grid; gap: 8px; text-decoration: none; }
.mf-me-row span { width: 88px; height: 112px; border-radius: 12px; background-size: cover; background-position: var(--portrait-position, center); border: 1px solid var(--bz-line); }
.mf-me-row b { width: 88px; height: 18px; color: var(--bz-ink); font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 页面边距由统一容器 .mf-workspace-content 提供(移动端 20px) */


.mf-dual-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mf-dual-pair:hover { border-color: var(--bz-red); }
.mf-dual-chips button { min-height: 40px; padding: 0 14px; border: 1px solid var(--bz-line); border-radius: 999px; background: transparent; color: var(--bz-ink); font: 600 12px/1 inherit; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
.mf-dual-chips button:hover { border-color: var(--bz-red); color: var(--bz-red-bright); }
@media (max-width: 800px) { .mf-dual-relation { margin-bottom: 4px; } .mf-dual { gap: 16px; } }

@media (max-width: 800px) {
  .mf-dual-page { gap: 28px; }

  .mf-hist { gap: 20px; }
  .mf-hist-head { align-items: flex-start; }
  .mf-hist-head h1 { font-size: 26px; }
  .mf-hist-head p { font-size: 13px; line-height: 1.6; }
  .mf-hist-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .mf-hist-tabs::-webkit-scrollbar { display: none; }
  .mf-hist-tabs button, .mf-hist-tabs a { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; }
  .mf-lib-toolbar { margin: 0; gap: 10px; }
  .mf-hist-empty { min-height: 220px; align-content: center; border: 1px dashed var(--bz-line); border-radius: 16px; }

  .mf-me-account-copy p { line-height: 1.55; }
}

@media (max-width: 380px) {
  .mf-me-account { display: grid; grid-template-columns: 44px minmax(0, 1fr); }
  .mf-me-login, .mf-me-logout { grid-column: 1 / -1; width: 100%; justify-content: center; box-sizing: border-box; }
}

/* 预览页:容器切换为 padding 型边距,顶栏负 margin 才能贴合视口顶/左/右 */
@media (max-width: 800px) {
  .mf-workspace-content:has(.mf-preview) { width: 100%; padding: 0 20px 20px; --mf-rep-pad: 20px; }
}

/* 顶栏分享按钮 */
.mf-topbar-share { width: 44px; height: 44px; margin: -6px 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--bz-muted); cursor: pointer; }
.mf-topbar-share:hover { color: var(--bz-red-bright); background: rgb(255 235 242 / 6%); }
.mf-topbar-share svg { width: 19px; height: 19px; }

/* 报告库单列信息卡:内容自适应,头像 56,右上删除图标,三行信息 */
.mf-lib-grid { display: grid; gap: 16px; }
.mf-lib-card { position: relative; padding: 12px; border: 1px solid var(--bz-line); border-radius: 18px; background: var(--bz-card); box-sizing: border-box; }
.mf-lib-card-del { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--bz-faint); cursor: pointer; transition: color .18s ease, background-color .18s ease; z-index: 1; }
.mf-lib-card-del:hover { color: var(--bz-red); background: rgb(139 30 45 / 10%); }
.mf-lib-card-del svg { width: 15px; height: 15px; }
.mf-lib-card-head { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: calc(100% - 40px); text-decoration: none; }
.mf-lib-card-head img { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; object-fit: cover; object-position: var(--portrait-position, center); }
.mf-lib-card-pair { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.mf-lib-card-pair img { position: absolute; width: 40px; height: 52px; border-radius: 9px; object-fit: cover; object-position: var(--portrait-position, center); border: 1px solid var(--bz-line); }
.mf-lib-card-pair img:first-child { left: 0; top: 2px; z-index: 1; }
.mf-lib-card-pair img:last-child { right: 0; bottom: 2px; }
.mf-lib-card-info { display: grid; gap: 3px; min-width: 0; }
.mf-lib-card-info b { color: var(--bz-ink); font-size: 15px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-lib-card-info small { color: var(--bz-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-lib-card-meta { display: grid; gap: 6px; margin-top: 16px; }
.mf-lib-card-type { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--bz-card-raised); text-decoration: none; }
.mf-lib-card-type i { font-style: normal; color: var(--bz-red-bright); font-size: 13px; font-weight: 600; }
.mf-lib-card-type small { color: var(--bz-muted); font-size: 11.5px; }
.mf-lib-retry { margin-left: 8px; min-height: 26px; padding: 0 10px; border: 1px solid var(--bz-red); border-radius: 999px; background: transparent; color: var(--bz-red-bright); font: 600 11px/1 inherit; cursor: pointer; }

/* 审计修复:PC 端报告库两列,避免单列信息卡拉满 1100px 过散 */
@media (min-width: 801px) {
  .mf-lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

/* 审计修复:PC 合盘主体限宽,选择区/生成按钮/热门组合不再整行拉伸 */
@media (min-width: 801px) {
  .mf-dual { max-width: 760px; margin: 0 auto; }
}

/* ── 解读页:入口卡 + 填写弹窗 + 生成记录 ─────────────────────────── */
.mf-reading-head { padding: 6px 2px 2px; }
.mf-reading-head h1 { margin: 0; font-family: var(--font-serif-display); font-weight: 600; font-size: 16px; color: var(--bz-ink); letter-spacing: 0.02em; }
.mf-reading-head p { margin: 7px 0 0; color: var(--bz-faint); font-size: 12px; letter-spacing: 0.04em; }

.mf-reading-cards { display: grid; gap: 12px; margin-top: 22px; }

.mf-reading-card { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 18px 16px; border: 0; border-radius: 20px; cursor: pointer; text-align: left; font-family: inherit; }
.mf-reading-card.is-single { background: linear-gradient(135deg, rgb(212 85 131 / 34%), rgb(112 36 67 / 22%)), var(--bz-card-raised); }
.mf-reading-card.is-dual { background: linear-gradient(135deg, rgb(82 60 120 / 26%), rgb(30 22 40 / 20%)), var(--bz-card); }
.mf-reading-card-mark { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: rgb(255 235 242 / 8%); color: var(--bz-red-bright); font-size: 15px; font-style: normal; letter-spacing: 1px; }
.mf-reading-card.is-dual .mf-reading-card-mark { font-size: 12px; }
.mf-reading-card-copy { flex: 1; display: grid; gap: 5px; min-width: 0; }
.mf-reading-card-copy b { color: var(--bz-ink); font-size: 16.5px; font-weight: 700; }
.mf-reading-card-copy small { color: var(--bz-muted); font-size: 12px; }
.mf-reading-card-arrow { flex-shrink: 0; color: var(--bz-faint); font-size: 22px; line-height: 1; }

.mf-reading-records { margin-top: 26px; }
.mf-reading-records h2 { margin: 0 0 10px; color: var(--bz-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.mf-reading-record-list { display: grid; gap: 8px; }
.mf-reading-empty { margin: 4px 0 0; color: var(--bz-faint); font-size: 12.5px; }

.mf-reading-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--bz-line); border-radius: 14px; background: var(--bz-card); text-decoration: none; }
.mf-reading-row-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.mf-reading-row-main b { color: var(--bz-ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-reading-row-main small { color: var(--bz-faint); font-size: 10.5px; }
.mf-reading-row-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mf-reading-row-meta small { color: var(--bz-faint); font-size: 11px; }
.mf-reading-row-meta em { font-style: normal; font-size: 11px; padding: 3px 9px; border-radius: 999px; color: var(--bz-muted); background: rgb(123 115 144 / 12%); }
.mf-reading-row-meta em[data-status="ready"] { color: var(--bz-green); background: rgb(114 181 138 / 12%); }
.mf-reading-row-meta em[data-status="generating"] { color: var(--bz-gold); background: rgb(210 163 92 / 12%); animation: mf-status-blink 1.1s ease-in-out infinite; }
.mf-reading-row-meta em[data-status="failed"] { color: var(--bz-error); background: rgb(224 109 124 / 12%); }
.mf-reading-row-meta em[data-status="pending"] { color: var(--bz-faint); background: rgb(123 115 144 / 12%); }

/* 填写弹窗(复用登录弹窗卡片) */
.mf-reading-dialog h1 { font-size: 22px !important; }
.mf-reading-dialog-tip { margin: 6px 0 14px !important; color: var(--bz-muted); font-size: 12px !important; }
.mf-reading-form-group { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.mf-reading-form-group legend { color: var(--bz-faint); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; padding: 0; margin-bottom: 2px; }
.mf-reading-field { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; }
.mf-reading-field > span { color: var(--bz-muted); font-size: 12.5px; }
.mf-reading-field input, .mf-reading-field select { min-height: 40px; padding: 0 12px; border: 1px solid var(--bz-line); border-radius: 10px; background: rgb(255 235 242 / 4%); color: var(--bz-ink); font-size: 14px; font-family: inherit; }
.mf-reading-field input:focus, .mf-reading-field select:focus { outline: none; border-color: var(--bz-red); }
.mf-reading-gender { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mf-reading-gender button { min-height: 40px; border: 1px solid var(--bz-line); border-radius: 10px; background: rgb(255 235 242 / 4%); color: var(--bz-muted); font-size: 14px; font-family: inherit; cursor: pointer; }
.mf-reading-gender button.is-on { border-color: var(--bz-red); color: var(--bz-red-bright); background: rgb(212 85 131 / 12%); }
.mf-reading-dialog-error { margin: 0 0 10px; color: var(--bz-error); font-size: 12.5px; }

/* ── 解读报告页渲染(/home/reading/[id]) ─────────────────────────── */
.mf-rr-card { display: grid; gap: 14px; }
.mf-rr-lead { margin: 0; color: var(--bz-ink); font-size: 14.5px; line-height: 1.7; }
.mf-rr-tags { margin: 0; color: var(--bz-red-bright); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; }
.mf-rr-p { margin: 0; color: var(--bz-muted); font-size: 13.5px; line-height: 1.75; }
.mf-rr-blocks { display: grid; gap: 10px; }
.mf-rr-block { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--bz-line); border-radius: 12px; background: rgb(255 235 242 / 3%); }
.mf-rr-block em { font-style: normal; color: var(--bz-red-bright); font-size: 11.5px; font-weight: 650; letter-spacing: 0.08em; }
.mf-rr-block p { margin: 0; color: var(--bz-ink); font-size: 13.5px; line-height: 1.75; }
.mf-rr-basis, .mf-rr-basis-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.mf-rr-basis li { color: var(--bz-faint); font-size: 12px; line-height: 1.6; }
.mf-rr-basis-list li { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--bz-line); border-radius: 10px; background: rgb(255 235 242 / 3%); }
.mf-rr-basis-list b { color: var(--bz-ink); font-size: 13.5px; display: flex; align-items: baseline; gap: 8px; }
.mf-rr-basis-list b small { color: var(--bz-red-bright); font-size: 10.5px; font-weight: 600; }
.mf-rr-basis-list span { color: var(--bz-muted); font-size: 12.5px; line-height: 1.65; }
.mf-rr-steps, .mf-rr-years { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
/* 行动建议:单列整行排布(非流年三列栅格),圆点引导 */
.mf-rr-advice { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.mf-rr-advice li { display: flex; align-items: baseline; gap: 9px; padding: 10px 13px; border-radius: 10px; background: rgb(255 235 242 / 3%); color: var(--bz-muted); font-size: 13px; line-height: 1.65; }
.mf-rr-advice li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--bz-red); flex-shrink: 0; transform: translateY(-2px); }
.mf-rr-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 10px 12px; border-radius: 10px; background: rgb(255 235 242 / 3%); }
.mf-rr-steps li b { grid-row: span 2; font-family: var(--font-serif-display); color: var(--bz-ink); font-size: 16px; align-self: center; text-align: center; }
.mf-rr-steps li small { color: var(--bz-faint); font-size: 10.5px; }
.mf-rr-steps li span { color: var(--bz-muted); font-size: 12.5px; line-height: 1.6; }
.mf-rr-steps li.is-current { outline: 1px solid rgb(212 85 131 / 45%); }
.mf-rr-years li { display: grid; grid-template-columns: 86px 88px 1fr; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgb(255 235 242 / 3%); }
.mf-rr-years b { color: var(--bz-ink); font-size: 12.5px; }
.mf-rr-years small { font-size: 10.5px; color: var(--bz-muted); }
.mf-rr-years small[data-tone="good"] { color: var(--bz-green); }
.mf-rr-years small[data-tone="low"] { color: var(--bz-error); }
.mf-rr-years span { color: var(--bz-muted); font-size: 12px; line-height: 1.55; }
.mf-rr-rhythm { display: grid; gap: 14px; }
.mf-rr-rhythm h3 { margin: 0; color: var(--bz-muted); font-size: 12px; letter-spacing: 0.1em; }
.mf-rr-stage { display: grid; grid-template-columns: 64px 1fr; gap: 3px 12px; padding: 10px 12px; border-radius: 10px; background: rgb(255 235 242 / 3%); border-left: 3px solid var(--bz-line); }
.mf-rr-stage.is-good { border-left-color: var(--bz-green); }
.mf-rr-stage.is-warn { border-left-color: var(--bz-error); }
.mf-rr-stage b { grid-row: span 2; color: var(--bz-ink); font-size: 13.5px; align-self: center; font-family: var(--font-serif-display); }
.mf-rr-stage em { font-style: normal; color: var(--bz-ink); font-size: 12.5px; font-weight: 650; }
.mf-rr-stage span { color: var(--bz-muted); font-size: 12px; line-height: 1.6; }

/* 解读填写弹窗(参考稿):标题与右上圆形×同行水平对齐,整体紧凑排布 */
.mf-reading-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.mf-reading-dialog-head h1 { margin: 0; }
.mf-reading-close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--bz-line); border-radius: 50%; background: transparent; color: var(--bz-muted); font-size: 17px; line-height: 1; cursor: pointer; }
.mf-reading-close:hover { color: var(--bz-ink); border-color: var(--bz-line-strong); }
/* 双人弹窗的填写页头部:左上角返回 + 标题跟随 */
.mf-reading-dialog-head.is-edit { justify-content: flex-start; gap: 12px; }
.mf-reading-back { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--bz-line); border-radius: 50%; background: transparent; color: var(--bz-muted); font-size: 17px; line-height: 1; cursor: pointer; }
.mf-reading-back:hover { color: var(--bz-ink); border-color: var(--bz-line-strong); }
.mf-reading-dialog h1 { font-size: 20px !important; }
.mf-reading-dialog-sub { margin: 8px 0 16px !important; color: var(--bz-muted); font-size: 12.5px !important; }
.mf-reading-field input, .mf-reading-field select { border-radius: 12px; }

/* 双人弹窗「新建合盘」:本人/对方组卡(全宽分段 从记录选/手动填写 + 记录下拉/手动表单) */
.mf-reading-person { display: grid; gap: 12px; box-sizing: border-box; padding: 13px; border-radius: 14px; background: rgb(255 235 242 / 4%); border: 1px solid var(--bz-line); margin-top: 4px; }
.mf-reading-person + .mf-reading-person { margin-top: 12px; }
.mf-reading-person > h3 { margin: 0; color: var(--bz-ink); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.mf-reading-person.has-error { border-color: rgb(224 109 124 / 55%); }
.mf-reading-source { display: grid; grid-template-columns: 1fr 1fr; gap: 0; box-sizing: border-box; padding: 3px; border-radius: 9px; background: rgb(8 4 8 / 30%); }
.mf-reading-source button { height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--bz-muted); font-size: 13px; font-family: inherit; cursor: pointer; }
.mf-reading-source button:disabled { opacity: 0.35; cursor: default; }
.mf-reading-source button.is-on { background: rgb(212 85 131 / 16%); color: var(--bz-red-bright); font-weight: 600; }
select.mf-reading-record { box-sizing: border-box; width: 100%; height: 44px; padding: 0 30px 0 12px; border: 1px solid var(--bz-line); border-radius: 11px; background: rgb(8 4 8 / 28%); color: var(--bz-ink); font-size: 14px; font-family: inherit;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%237b7390' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 11px 7px; }
select.mf-reading-record:focus { outline: none; border-color: var(--bz-red); }
.mf-reading-record-state { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 10px; background: rgb(8 4 8 / 22%); color: var(--bz-faint); font-size: 13px; }
.mf-reading-record-state button { border: 0; background: none; padding: 0; color: var(--bz-red-bright); font-size: 13px; font-family: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* 手动填写默认态:虚线占位入口,点击后展开完整表单 */
.mf-reading-fill-slot { display: flex; align-items: center; justify-content: space-between; gap: 10px; box-sizing: border-box; width: 100%; min-height: 52px; padding: 13px 14px; border: 1px dashed rgb(123 115 144 / 45%); border-radius: 12px; background: rgb(8 4 8 / 14%); color: var(--bz-faint); font-size: 13px; font-family: inherit; cursor: pointer; text-align: left; }
.mf-reading-fill-slot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-reading-fill-slot b { flex-shrink: 0; color: var(--bz-red-bright); font-size: 13px; font-weight: 600; }
.mf-reading-fill-slot:hover, .mf-reading-fill-slot:active { border-color: rgb(212 85 131 / 60%); }
.mf-reading-card-error { color: var(--bz-error); font-size: 12px; line-height: 1.5; }
.mf-reading-fields { display: grid; gap: 10px; }

/* 「开始解读」单人弹窗:姓名(可选)/历法/年月日/时分/性别/真太阳时卡/出生地三级联动(紧凑) */
.mf-start-form { display: grid; gap: 12px; }
.mf-start-field { display: grid; gap: 5px; min-width: 0; }
.mf-start-label { color: var(--bz-muted); font-size: 12.5px; letter-spacing: 0.02em; }
.mf-start-input, .mf-start-select {
  box-sizing: border-box; width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--bz-line); border-radius: 10px;
  background: rgb(8 4 8 / 30%); color: var(--bz-ink);
  font-size: 15px; font-family: inherit;
}
.mf-start-input::placeholder { color: var(--bz-faint); }
.mf-start-input:focus, .mf-start-select:focus { outline: none; border-color: var(--bz-red); }
.mf-start-select {
  appearance: none; -webkit-appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%237b7390' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 10px 7px;
}
.mf-start-select:disabled { opacity: 0.45; }
.mf-start-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mf-start-row.is-two { grid-template-columns: 1fr 1fr; }
.mf-start-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mf-start-seg button {
  box-sizing: border-box; height: 40px; border: 1px solid var(--bz-line); border-radius: 10px;
  background: transparent; color: var(--bz-muted); font-size: 14px; font-family: inherit; cursor: pointer;
}
.mf-start-seg button.is-on { border-color: var(--bz-red); background: rgb(212 85 131 / 12%); color: var(--bz-red-bright); font-weight: 700; }
.mf-start-solar-card {
  box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 13px; border: 1px solid var(--bz-line); border-radius: 13px; background: rgb(255 235 242 / 4%);
}
.mf-start-solar-copy { display: grid; gap: 3px; min-width: 0; }
.mf-start-solar-copy b { color: var(--bz-ink); font-size: 13.5px; font-weight: 700; }
.mf-start-solar-copy small { color: var(--bz-muted); font-size: 11.5px; line-height: 1.45; }
.mf-start-toggle { position: relative; flex-shrink: 0; width: 44px; height: 26px; border: 1px solid var(--bz-line); border-radius: 999px; background: rgb(8 4 8 / 40%); cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease; }
.mf-start-toggle i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bz-faint); transition: transform 0.18s ease, background 0.18s ease; }
.mf-start-toggle.is-on { border-color: var(--bz-red); background: rgb(212 85 131 / 55%); }
.mf-start-toggle.is-on i { transform: translateX(18px); background: #fff; }
.mf-start-hint { color: var(--bz-faint); font-size: 11.5px; line-height: 1.45; }
.mf-start-error { color: var(--bz-error); font-size: 11.5px; line-height: 1.45; }
.mf-start-submit { display: block; width: 100%; min-height: 46px; margin-top: 12px; }
@media (max-width: 720px) {
  .mf-reading-dialog { padding: 16px 16px calc(18px + env(safe-area-inset-bottom)) !important; }
}

/* 品牌 logo（横版 MeVerse）替换文字标 */
.mf-workspace-brand img { display: block; height: 16px; width: auto; }
.mf-workspace-sidebar .mf-workspace-brand img { height: 18px; }
.mf-brand img { display: block; height: 17px; width: auto; }
.mf-login-mark img { display: block; width: 22px; height: 22px; }

/* 工作台导航品牌：使用原始 MeVerse 图并在容器内裁掉大面积黑色留白。 */
.mf-meverse-logo {
  display: block;
  width: 76px;
  aspect-ratio: 4.85 / 1;
  flex: none;
  background: url("/meverse-logo.png") 50.7% 47.7% / 169% 328% no-repeat;
  mix-blend-mode: screen;
}

.mf-workspace-sidebar .mf-meverse-logo { width: 92px; }

/* ── MeVerse 品牌色统一：工作台 / 发现 / 详情 / 测试 / 报告 ───────── */
.mf-workspace-sidebar {
  background: rgb(16 13 20 / 94%);
  border-right-color: rgb(195 160 244 / 12%);
}

.mf-workspace-main {
  background:
    radial-gradient(circle at 92% 0, rgb(157 156 255 / 8%), transparent 30rem),
    radial-gradient(circle at 12% 100%, rgb(239 167 212 / 4%), transparent 28rem),
    var(--bz-paper);
}

.mf-workspace-nav-item:hover,
.mf-workspace-account a:hover {
  color: var(--bz-red-bright);
  background: rgb(169 156 255 / 8%);
}

.mf-workspace-nav-item:focus-visible,
.mf-hist-tabs button:focus-visible,
.mf-hist-tabs a:focus-visible,
.mf-hist-retry:focus-visible {
  outline-color: rgb(169 156 255 / 66%);
}

.mf-workspace-nav-item.active,
.mf-workspace-account a.active {
  border-color: rgb(195 160 244 / 34%);
  color: var(--bz-red-bright);
  background: linear-gradient(115deg, rgb(157 156 255 / 17%), rgb(239 167 212 / 12%));
}

.mf-workspace-nav-item.active .mf-workspace-nav-icon,
.mf-primary-button,
.mf-bz-btn,
.mf-login-submit,
.mf-hist-tabs a.is-active,
.mf-hist-tabs button.is-active {
  color: #16101a;
  background: linear-gradient(110deg, #9d9cff 0%, #c3a0f4 48%, #efa7d4 100%);
  box-shadow: 0 10px 28px rgb(157 156 255 / 20%);
}

.mf-explore-ctrl {
  background: rgb(13 11 17 / 78%);
  border-bottom-color: rgb(195 160 244 / 10%);
}

.mf-explore-tabs button.is-active::after {
  background: linear-gradient(90deg, #9d9cff, #efa7d4);
}

.mf-bz-star-card.is-visited {
  box-shadow: 0 10px 28px rgb(157 156 255 / 20%);
}

.mf-reading-card.is-single {
  border: 1px solid rgb(239 167 212 / 14%);
  background: linear-gradient(125deg, rgb(239 167 212 / 24%), rgb(157 156 255 / 13%)), var(--bz-card-raised);
}

.mf-reading-card.is-dual {
  border: 1px solid rgb(157 156 255 / 14%);
  background: linear-gradient(125deg, rgb(157 156 255 / 20%), rgb(195 160 244 / 9%)), var(--bz-card);
}

.mf-reading-card-mark,
.mf-ui-filterbar button.is-active,
.mf-reading-gender button.is-on,
.mf-reading-source button.is-on,
.mf-start-seg button.is-on {
  background: rgb(169 156 255 / 12%);
}

.mf-login-card {
  border-color: rgb(195 160 244 / 16%);
  background: rgb(28 24 35 / 94%);
}

.mf-login-mark {
  background: linear-gradient(145deg, #9d9cff, #efa7d4);
  box-shadow: 0 13px 30px rgb(157 156 255 / 22%);
}

.mf-login-form input:focus {
  border-color: #a99cff;
  background: #17131d;
  box-shadow: 0 0 0 4px rgb(169 156 255 / 16%);
}

.mf-login-code-field button {
  color: var(--bz-red-bright);
  background: rgb(169 156 255 / 10%);
}

.mf-me-login {
  color: #16101a;
  background: linear-gradient(110deg, #9d9cff, #c3a0f4 48%, #efa7d4);
}

@media (max-width: 800px) {
  .mf-workspace-mobile-bar,
  .mf-mobile-tabbar {
    border-color: rgb(195 160 244 / 12%);
    background: rgb(13 11 17 / 92%);
  }
}

@media (max-width: 800px) {
  .mf-workspace-mobile-bar .mf-meverse-logo { width: 65px; }
}
