/* ?????? - ??????? */
.report-book.marriage-report-book {
  background: #f6edd9;
  padding: 0 0 24px;
}

.report-book.marriage-report-book .report-wrap,
.report-book.marriage-report-book #reportPages {
  background: transparent;
  padding: 0;
}

.yy-cover {
  padding: 22px 16px 8px;
}

.yy-cover-title {
  text-align: center;
  color: #8b1e16;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}

.marriage-profile-card {
  background: #fffdf8;
  border: 1px solid #e6c9a8;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(120, 60, 20, 0.08);
}

.marriage-profile-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed #ead7bf;
  font-size: 14px;
  line-height: 1.5;
}

.marriage-profile-row:last-child {
  border-bottom: 0;
}

.marriage-profile-row span {
  color: #8a6a4f;
  flex: 0 0 auto;
}

.marriage-profile-row b {
  color: #3f2a1d;
  text-align: right;
  font-weight: 700;
}

.marriage-taboo {
  color: #b42318;
}

.yy-cover-hero {
  margin: 16px 0 8px;
  height: 120px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 220, 170, 0.55), transparent 45%),
    radial-gradient(circle at 70% 50%, rgba(255, 180, 160, 0.45), transparent 40%),
    linear-gradient(135deg, #c0392b 0%, #8b1e16 55%, #5c120c 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px rgba(255, 220, 160, 0.35);
}

.yy-cover-hero-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff2c9, #f0c36a);
  color: #8b1e16;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.yy-block {
  margin: 0 0 4px;
}

.yy-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #d6453d 0%, #b42318 48%, #8f1a12 100%);
  box-shadow: 0 3px 0 rgba(120, 30, 20, 0.25);
}

.yy-banner::before,
.yy-banner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  background: linear-gradient(180deg, #efc56a, #c7922e);
  opacity: 0.9;
}

.yy-banner::before { left: 0; }
.yy-banner::after { right: 0; }

.yy-banner-title {
  margin: 0;
  color: #fff8e8;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  font-family: "Songti SC", "STSong", "SimSun", serif;
}

.yy-banner-ornament {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 220, 150, 0.85);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(180, 35, 24, 0.35);
  background: radial-gradient(circle at 40% 35%, #ffe9a8, #d4a017);
  flex: 0 0 auto;
}

.yy-block-body {
  padding: 14px 16px 18px;
  background: linear-gradient(180deg, #fbf4e5 0%, #f4e8d0 100%);
  color: #3f2a1d;
}

.yy-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 14px;
  margin: 0 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7c9c0, #efb0a3);
  color: #8b1e16;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.yy-subtitle,
.yy-subhead {
  margin: 0 0 10px;
  color: #8b1e16;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.yy-p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.85;
  color: #3f2a1d;
  text-align: justify;
}

.yy-list .yy-p + .yy-p {
  margin-top: 0;
}

.marriage-intro-box {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #e8d2b4;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.marriage-greeting {
  margin: 0 0 8px;
  font-weight: 800;
  color: #8b1e16;
}

.yy-bazi-wrap {
  margin: 8px 0 14px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid #e6c9a8;
  border-radius: 8px;
}

.marriage-bazi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fffdf8;
}

.marriage-bazi-table th,
.marriage-bazi-table td {
  border: 1px solid #d8b98f;
  padding: 6px 4px;
  text-align: center;
}

.marriage-bazi-table th {
  background: #f3e1c4;
  color: #8b1e16;
}

.marriage-bazi-table .ganzhi {
  color: #8b1e16;
  font-weight: 800;
}

.marriage-ext-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: #8a6a4f;
  font-size: 12px;
}

.marriage-shensha {
  margin-top: 8px;
}

.marriage-shensha p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.7;
}

.marriage-kv-grid {
  display: grid;
  gap: 10px;
}

.marriage-kv-grid div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #e8d2b4;
  border-radius: 8px;
}

.marriage-kv-grid span {
  color: #8a6a4f;
}

.marriage-kv-grid b {
  color: #3f2a1d;
  font-weight: 700;
}

.marriage-name-chars {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 4px 0 16px;
}

.marriage-name-chars span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid #d4a017;
  border-radius: 8px;
  font-size: 28px;
  color: #8b1e16;
  background: #fffdf8;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}

.marriage-wuxing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 160px;
  margin: 8px 0 14px;
  padding: 12px 8px 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.marriage-wuxing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.marriage-wuxing-bar {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(180deg, #ef8574, #b42318);
  border-radius: 8px 8px 3px 3px;
  min-height: 12px;
}

.marriage-wuxing-item strong {
  color: #b42318;
  font-size: 12px;
}

.marriage-wuxing-item span {
  color: #6d3b31;
  font-size: 13px;
  font-weight: 700;
}

.marriage-favorable-element {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #fff8e5, #f0c36a);
  border: 2px solid #d4a017;
  color: #8b1e16;
  font-size: 28px;
  font-weight: 800;
}

.marriage-name-match {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #e8d2b4;
  border-radius: 10px;
  padding: 14px;
}

.marriage-name-match-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.yy-match-name {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #8b1e16;
}

.marriage-name-match-score {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ef8574, #b42318);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 6px 14px rgba(180, 35, 24, 0.28);
}

.marriage-name-match-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.marriage-name-match-metrics div {
  background: #fffdf8;
  border: 1px solid #e8d2b4;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.marriage-name-match-metrics span {
  display: block;
  color: #8a6a4f;
  font-size: 12px;
  margin-bottom: 4px;
}

.marriage-name-match-metrics strong {
  color: #b42318;
  font-size: 18px;
}

.marriage-footnote {
  margin-top: 10px;
  color: #8a6a4f;
  font-size: 12px;
  line-height: 1.7;
}

.marriage-tip-card,
.marriage-fengshui-card,
.marriage-peach-grid article {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #e8d2b4;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.marriage-fengshui-sub {
  color: #b42318;
  font-size: 13px;
  margin: 0 0 10px;
  font-weight: 700;
}

.marriage-peach-grid {
  display: grid;
  gap: 12px;
}

.marriage-fengshui-wrap {
  display: grid;
  gap: 12px;
}

/* 姻缘报告 schema v4：摘要 → 画像 → 关系 → 趋势 → 行动 → 附录 */
.yy-report-cover {
  padding: 30px 20px 22px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 230, 190, .55), transparent 32%),
    linear-gradient(155deg, #fffaf1 0%, #f8e6cc 100%);
}

.yy-report-kicker {
  margin: 0 0 8px;
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
}

.yy-report-cover h1 {
  margin: 0;
  color: #7f2018;
  font: 800 25px/1.35 "Songti SC", "STSong", "SimSun", serif;
}

.yy-report-headline {
  margin: 18px auto 14px;
  max-width: 560px;
  color: #3f2a1d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
}

.yy-report-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.yy-report-tags span {
  padding: 6px 12px;
  border: 1px solid #e7b6a2;
  border-radius: 999px;
  color: #9a281d;
  background: rgba(255, 255, 255, .7);
  font-size: 13px;
  font-weight: 700;
}

.yy-report-date {
  margin: 14px 0 0;
  color: #8a6a4f;
  font-size: 12px;
}

.yy-report-notice,
.yy-report-degraded,
.yy-inline-notice {
  margin: 10px auto 0;
  padding: 9px 12px;
  border-radius: 8px;
  color: #795c45;
  background: rgba(255, 255, 255, .58);
  font-size: 12px;
  line-height: 1.6;
}

.yy-report-degraded {
  color: #9a281d;
  border: 1px solid rgba(180, 35, 24, .22);
}

.yy-report-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  overflow-x: auto;
  background: rgba(255, 250, 241, .96);
  border-top: 1px solid #ead7bf;
  border-bottom: 1px solid #dfc3a2;
  box-shadow: 0 5px 16px rgba(75, 30, 15, .08);
  backdrop-filter: blur(8px);
}

.yy-report-nav a {
  min-width: 52px;
  padding: 11px 4px;
  color: #7f3d2e;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.yy-report-section {
  scroll-margin-top: 48px;
}

.yy-report-section-body {
  padding: 18px 16px 22px;
  background: linear-gradient(180deg, #fffaf1 0%, #f7ead7 100%);
}

.yy-group-title {
  margin: 2px 0 12px;
  color: #8b1e16;
  font-size: 16px;
  text-align: left;
}

.yy-insight-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.yy-insight-card {
  display: grid;
  grid-template-columns: minmax(72px, max-content) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 13px;
  border: 1px solid #e8d2b4;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.yy-insight-card > * {
  min-width: 0;
}

.yy-insight-index {
  color: #a42b20;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.yy-insight-card p,
.yy-two-column p,
.yy-future-grid p,
.yy-future-block p {
  margin: 0;
  color: #493126;
  font-size: 14px;
  line-height: 1.75;
}

.yy-insight-grid--risk .yy-insight-card {
  border-left: 4px solid #e3a261;
}

.yy-two-column,
.yy-future-grid,
.yy-future-guide,
.yy-status-advice {
  display: grid;
  gap: 12px;
}

.yy-two-column > article,
.yy-future-grid > article,
.yy-future-block,
.yy-status-advice > article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e8d2b4;
  border-radius: 10px;
  background: rgba(255, 255, 255, .65);
}

.yy-two-column h3,
.yy-future-grid h3,
.yy-future-block h3,
.yy-status-advice h3 {
  margin: 0 0 10px;
  color: #8b1e16;
  font-size: 15px;
}

/* 指南块内嵌套洞察卡：改为上下排，避免双列+86px侧栏把正文挤成竖排 */
.yy-future-block .yy-insight-grid {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.yy-future-block .yy-insight-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.yy-future-block .yy-insight-card p {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.yy-scripts-block {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e8d2b4;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.yy-action-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #493126;
  font-size: 14px;
  line-height: 1.65;
}

.yy-section-intro {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  padding: 13px 14px;
  border-radius: 10px;
  background: #f5d8cf;
  color: #6d3028;
}

.yy-section-intro strong {
  font-size: 17px;
}

.yy-section-intro span {
  font-size: 12px;
  line-height: 1.55;
}

.yy-dimension-grid {
  display: grid;
  gap: 12px;
}

.yy-dimension-card {
  overflow: hidden;
  border: 1px solid #e4c7a6;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}

.yy-dimension-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  background: #f4dcc7;
}

.yy-dimension-head h3 {
  margin: 0;
  color: #7f2018;
  font-size: 15px;
}

.yy-dimension-head span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: #c74737;
  font-size: 12px;
}

.yy-dimension-card dl {
  margin: 0;
  padding: 4px 13px 10px;
}

.yy-dimension-card dl div {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed #ead7bf;
}

.yy-dimension-card dl div:last-child {
  border-bottom: 0;
}

.yy-dimension-card dt {
  color: #9a5c44;
  font-size: 13px;
  font-weight: 700;
}

.yy-dimension-card dd {
  margin: 0;
  color: #493126;
  font-size: 13px;
  line-height: 1.65;
}

.yy-conclusion-card {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  color: #fff8e8;
  background: linear-gradient(145deg, #a72d23, #7c1d17);
}

.yy-conclusion-card div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px;
}

.yy-conclusion-card span {
  color: #ffdca1;
  font-size: 13px;
  font-weight: 800;
}

.yy-conclusion-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.yy-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.yy-timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 17px;
  width: 2px;
  background: #dcaa79;
}

.yy-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 8px 0 14px;
}

.yy-timeline-dot {
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 3px solid #f8ead7;
  border-radius: 50%;
  color: #fff;
  background: #c64635;
  font-weight: 800;
}

.yy-timeline article > div {
  padding: 12px 13px;
  border: 1px solid #e8d2b4;
  border-radius: 10px;
  background: rgba(255, 255, 255, .7);
}

.yy-timeline article p {
  margin: 0 0 7px;
  color: #493126;
  font-size: 14px;
  line-height: 1.7;
}

.yy-timeline-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #8b1e16 !important;
  font-weight: 800;
}

.yy-timeline-label b {
  color: #c64635;
  font-size: 12px;
}

.yy-timeline-action {
  margin-bottom: 0 !important;
  color: #8a5c35 !important;
}

.yy-action-plan {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.yy-action-plan > article {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e5c8a7;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.yy-action-plan > article > span {
  color: #a42b20;
  font-weight: 800;
}

.yy-action-plan p {
  margin: 0;
  color: #493126;
  font-size: 14px;
  line-height: 1.7;
}

.yy-cultural-note {
  margin-top: 14px;
  padding: 13px 14px;
  border-left: 4px solid #d4a259;
  border-radius: 8px;
  background: #fff7e8;
}

.yy-cultural-note b {
  color: #8b1e16;
  font-size: 14px;
}

.yy-cultural-note p {
  margin: 6px 0 0;
  color: #6d5540;
  font-size: 13px;
  line-height: 1.7;
}

.yy-appendix-details {
  overflow: hidden;
  border: 1px solid #e4c7a6;
  border-radius: 10px;
  background: rgba(255, 255, 255, .65);
}

.yy-appendix-details summary {
  padding: 15px;
  color: #8b1e16;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.yy-appendix-content {
  padding: 0 12px 14px;
}

.yy-profile-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.yy-profile-columns span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: #fffaf1;
}

.yy-profile-columns small {
  color: #9a7658;
}

.yy-profile-columns b {
  color: #493126;
  font-size: 13px;
}

.yy-appendix-note {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffaf1;
}

.yy-appendix-note p {
  margin: 6px 0;
  color: #6d5540;
  font-size: 13px;
  line-height: 1.65;
}

@media (min-width: 620px) {
  .yy-two-column,
  .yy-future-grid,
  .yy-dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 指南内容较厚，宽屏也保持单列，保证正文可读宽度 */
  .yy-future-guide {
    grid-template-columns: minmax(0, 1fr);
  }

  .yy-status-advice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.product-marriage .page-loading .pay-header h1,
body.product-marriage .marriage-loading-title {
  font-size: 18px;
}

body.product-marriage .page-result .report-book.marriage-report-book {
  background: #f6edd9;
}

/* ===== ??????? / ?? / Loading / ??? ===== */
body.product-marriage .app { background: #e4401c; }
body.product-marriage .page-home,
body.product-marriage .page-form,
body.product-marriage .page-loading,
body.product-marriage .page-pay { background: #e4401c; }

body.product-marriage .marriage-hero-wrap {
  position: relative;
  z-index: 5;
  background: #e4401c;
}
body.product-marriage .marriage-hero-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  pointer-events: none;
}

/* ??????????? banner ??? */
body.product-marriage .marriage-cta-btn {
  display: block;
  width: 100%;
  margin: -11% 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 40;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
body.product-marriage .marriage-cta-btn img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
body.product-marriage .marriage-cta-btn:active {
  transform: translateY(1px);
  opacity: 0.96;
}

body.product-marriage .marriage-cta-hotspot {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 1.8%;
  height: 13.5%;
  min-height: 52px;
  z-index: 40;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

body.product-marriage .marriage-home-content,
body.product-marriage .marriage-form-content {
  padding: 0 14px 28px;
  position: relative;
  z-index: 1;
}
body.product-marriage .page-home .marriage-home-content { margin-top: 0; }
body.product-marriage .page-form .marriage-form-content {
  margin-top: -72px;
  z-index: 6;
  overflow: visible;
}

body.product-marriage .marriage-submit-btn {
  display: block;
  width: calc(100% + 28px);
  margin: 6px -14px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  position: relative;
  z-index: 8;
  pointer-events: auto;
}
body.product-marriage .marriage-submit-btn img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
body.product-marriage .marriage-submit-btn:active {
  transform: translateY(1px);
  opacity: 0.96;
  box-shadow: none;
}

/* 覆盖运程页 .page-form .info-card { overflow:hidden }，避免标题被裁切 */
body.product-marriage .page-form .info-card.marriage-home-form,
body.product-marriage .marriage-home-form.info-card {
  position: relative;
  margin: 22px auto 0;
  padding: 22px 16px 10px;
  min-height: 0;
  background: #fffaf1;
  border: 2px solid #d2c3a1;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(120, 30, 20, 0.14);
  overflow: visible;
  z-index: 8;
}
body.product-marriage .marriage-form-badge { display: none; }
body.product-marriage .marriage-form-badge-img {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(74%, 280px);
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 12;
}

/* 覆盖运程页 .input-fields { position:absolute; padding:17% } */
body.product-marriage .page-form .marriage-home-form .input-fields,
body.product-marriage .marriage-home-form .input-fields {
  position: relative;
  inset: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  display: grid;
  gap: 0;
  margin-top: 0;
  padding: 6px 0 0;
  justify-content: flex-start;
  z-index: 1;
}
body.product-marriage .page-form .marriage-home-form .form-row,
body.product-marriage .marriage-home-form .form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 10px 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #8f7a4a;
  border-radius: 0;
  font-size: 15px;
}
/* 出生日期下方无分隔线；姓名/对方/性别行保留实线 */
body.product-marriage .marriage-home-form .form-row.birth-row {
  border-bottom: 0;
}
body.product-marriage .marriage-home-form .form-row.birth-row.marriage-birth-place:not([hidden]) {
  border-bottom: 1px solid #8f7a4a;
}
body.product-marriage .marriage-home-form .submit-img {
  border-bottom: 0;
}
body.product-marriage .marriage-home-form .form-row > span {
  flex: 0 0 5.6em;
  width: 5.6em;
  color: #4a2f24;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0;
}
body.product-marriage .marriage-home-form .form-row input,
body.product-marriage .marriage-home-form .birth-row b {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #3f2a1d;
  font-size: 15px;
  text-align: left;
  outline: none;
}
body.product-marriage .marriage-home-form .form-row input::placeholder,
body.product-marriage .marriage-home-form .birth-row b {
  color: #b29a84;
  font-weight: 400;
}
body.product-marriage .marriage-home-form .birth-row.has-value b {
  color: #3f2a1d;
  font-weight: 600;
}

/* 性别：紧跟标签，与输入列对齐（设计稿男圆在 left:131，非靠右） */
body.product-marriage .marriage-home-form .gender-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
  flex: 0 0 auto;
}
body.product-marriage .marriage-home-form .gender {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: 2px solid #ff3536;
  background: transparent;
  color: #ff3536;
  font-size: 15px;
  font-weight: 700;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
}
body.product-marriage .marriage-home-form .gender.active {
  background: #ff3536;
  border-color: #ff3536;
  color: #fff;
  font-weight: 700;
}

body.product-marriage .marriage-home-consent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 2px 18px;
  color: #fff4e8;
}
body.product-marriage .marriage-home-consent .agreement-text,
body.product-marriage .marriage-home-consent .agreement-link { color: #fff4e8; }
body.product-marriage .marriage-home-consent .history-link {
  color: #ffe08a;
  text-decoration: underline;
  white-space: nowrap;
  background: transparent;
  border: 0;
  font-size: 13px;
}

body.product-marriage .marriage-learn-block {
  margin: 0 -14px 16px;
  padding: 0;
  background: transparent;
  border: 0;
}
body.product-marriage .marriage-learn-block-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

body.product-marriage .marriage-pay-note {
  text-align: center;
  color: rgba(255, 244, 232, 0.92);
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 8px 10px;
}
body.product-marriage .page-home .footer-service,
body.product-marriage .page-form .footer-service,
body.product-marriage .page-pay .footer-service { color: #fff4e8; }
body.product-marriage .page-home .sticky-cta,
body.product-marriage .page-home .zodiac-zone { display: none !important; }
body.product-marriage .marriage-partner-line b { color: #c62828; }

/* Loading */
body.product-marriage .page-loading {
  min-height: 100vh;
  background: linear-gradient(180deg, #fce4ec 0%, #f24a3a 45%, #d62828 100%);
}
body.product-marriage .marriage-loading-shell { padding: 0 16px 28px; }
body.product-marriage .marriage-loading-top {
  display: block;
  width: calc(100% + 32px);
  max-width: none;
  height: auto;
  margin: 0 -16px 8px;
  pointer-events: none;
}
body.product-marriage .marriage-loading-card {
  position: relative;
  margin: -20px auto 18px;
  padding: 28px 16px 18px;
  background: #fffdf8;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(120, 30, 20, 0.16);
}
body.product-marriage .marriage-loading-badge { display: none; }
body.product-marriage .marriage-loading-badge-img {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(86%, 300px);
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 2;
}
body.product-marriage .marriage-loading-profile { display: grid; gap: 0; }
body.product-marriage .marriage-loading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px dashed #ead7bf;
  font-size: 14px;
  color: #4a2f24;
}
body.product-marriage .marriage-loading-row > span:last-child {
  flex: 0 0 auto;
  min-width: 4.5em;
  text-align: left;
}
body.product-marriage .marriage-loading-row--birth { display: block; }
body.product-marriage .marriage-loading-row b { color: #d62828; font-weight: 700; }
body.product-marriage .page-loading .loading-info-text {
  margin: 14px 0 10px;
  text-align: center;
  color: #6d4a3a;
  font-size: 14px;
}
body.product-marriage .page-loading .progress-track {
  height: 10px;
  border-radius: 999px;
  background: #f8d7d2;
  overflow: hidden;
}
body.product-marriage .page-loading .progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6b5a, #d62828);
}
body.product-marriage .marriage-loading-compass {
  display: block;
  width: min(72vw, 280px);
  margin: 8px auto 0;
  filter: drop-shadow(0 10px 18px rgba(80, 10, 10, 0.28));
  animation: marriage-compass-spin 12s linear infinite;
  pointer-events: none;
}
@keyframes marriage-compass-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
body.product-marriage .page-loading .loading-panel,
body.product-marriage .page-loading .pay-header,
body.product-marriage .page-loading .loading-card--module { display: none !important; }

/* Pay: marriage prepay layout (override fortune negative margins) */
body.product-marriage .page-pay .pay-top-img,
body.product-marriage .marriage-pay-top {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 !important;
  padding: 0;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
/* 设计稿预付款页无基本信息 / 四柱命盘 */
body.product-marriage .page-pay .pay-header,
body.product-marriage .page-pay .marriage-pay-header,
body.product-marriage .page-pay .pay-profile,
body.product-marriage .page-pay .pay-bazi-card {
  display: none !important;
}

/* pay_02 相对 pay_01 上移约 35/414，衔接头图底部 */
body.product-marriage .page-pay .pay-card.marriage-pay-card,
body.product-marriage .marriage-pay-card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  z-index: 2;
}
body.product-marriage .marriage-pay-card--design {
  width: 100%;
  margin: -8.5% 0 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
body.product-marriage .marriage-pay-card-bg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* 标题叠在 pay_02 顶部红条（设计 top≈1.3%） */
body.product-marriage .marriage-pay-ribbon {
  position: absolute;
  top: 1.2%;
  left: 50%;
  transform: translateX(-50%);
  width: min(87%, 360px);
  height: 7.6%;
  min-height: 34px;
  z-index: 6;
  margin: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
body.product-marriage .marriage-pay-ribbon-text {
  display: block;
  max-width: 100%;
  padding: 0 14px;
  color: #fff8e8;
  font-size: clamp(13px, 3.8vw, 15px);
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.product-marriage .marriage-pay-ribbon-text b {
  color: inherit;
  font-weight: 800;
  margin-right: 2px;
}

/*
 * 价格/支付区：设计稿约在 pay_02 的 55%~78%
 * （限时优惠 top=450；图标区约 20%~48%，避免与「异性缘分析」重叠）
 */
body.product-marriage .marriage-pay-interact {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 54.5%;
  bottom: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
  z-index: 5;
  pointer-events: none;
}
body.product-marriage .marriage-pay-interact .marriage-price-row,
body.product-marriage .marriage-pay-interact .marriage-wechat-pay {
  pointer-events: auto;
}
body.product-marriage .marriage-pay-promo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
body.product-marriage .marriage-pay-benefits {
  display: none;
}

body.product-marriage .page-pay .marriage-price-row,
body.product-marriage .page-pay .price-row {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 10px;
  margin: 0;
  color: #481d16;
}
body.product-marriage .page-pay .price-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
body.product-marriage .page-pay .price-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff6b5a, #e23a2e);
  color: #fff;
}
body.product-marriage .page-pay .price-badge strong { color: #fff; font-size: 18px; }
body.product-marriage .page-pay .price-left small,
body.product-marriage .page-pay #payPriceOrigin {
  color: #8a6a4f;
  font-size: 13px;
  text-decoration: line-through;
  padding-left: 4px;
}
body.product-marriage .page-pay .price-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  font-size: 13px;
  color: #6d4a3a;
}
body.product-marriage .page-pay .price-right b {
  color: #d62828;
  font-size: 22px;
  line-height: 1.1;
}
body.product-marriage .page-pay .marriage-wechat-pay,
body.product-marriage .page-pay .wechat-pay {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100%;
  height: 48px;
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #09bb07 !important;
  box-shadow: 0 4px 10px rgba(27, 112, 44, 0.22);
  font-size: 20px;
  font-weight: 900;
  pointer-events: auto;
  z-index: 5;
}
body.product-marriage .page-pay .marriage-wechat-pay img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
/* 认证文案在徽章下方（设计 ≈91%） */
body.product-marriage .page-pay .marriage-pay-secure,
body.product-marriage .page-pay .pay-card p.marriage-pay-secure {
  position: absolute !important;
  left: 6% !important;
  right: 6% !important;
  top: auto !important;
  bottom: 6.5% !important;
  margin: 0 !important;
  color: #39a72f;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  pointer-events: none;
}
body.product-marriage .page-pay .pay-extra { display: none !important; }

body.product-marriage .marriage-birth-place,[hidden].marriage-birth-place{display:none!important}

body.product-marriage .page-result .info-card[data-info="address"],
body.product-marriage .page-result .user-info-panel {
  display: none !important;
}

/* 姻缘报告用户信息：保留本人资料，按设计稿卡片排版，不显示出生地址 */
body.product-marriage .page-result .marriage-user-info {
  display: block !important;
  width: min(100%, 340px);
  margin: 2px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

body.product-marriage .page-result .marriage-user-info__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

body.product-marriage .page-result .marriage-user-info__item {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #d8c4a8;
  border-radius: 8px;
  background: #fdf9f0;
}

body.product-marriage .page-result .marriage-user-info__item--full {
  grid-column: 1 / -1;
}

body.product-marriage .page-result .marriage-user-info__label {
  color: #9a7a5d;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

body.product-marriage .page-result .marriage-user-info__value {
  color: #2f2016;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

/* ===== 蓝湖「新测试01 / 报告页」：姻缘结果页 ===== */
body.product-marriage .page-result {
  background: #ebe8e2;
  color: #3b2a20;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

body.product-marriage .page-result .report-book.marriage-report-book {
  padding: 0 0 18px;
  background: #ebe8e2;
}

body.product-marriage .page-result .report-wrap {
  padding: 10px 8px 16px;
  background: transparent;
}

body.product-marriage .page-result .report-page {
  margin: 0 auto 10px;
  padding: 18px 14px 20px;
  border: 1px solid #d8cbb8;
  border-radius: 2px;
  background: #f8f0e2;
  box-shadow: 0 2px 6px rgba(70, 48, 31, 0.15);
  overflow: hidden;
}

body.product-marriage .page-result .report-page.cover {
  min-height: 0;
  justify-content: flex-start;
  gap: 10px;
  padding: 22px 14px 18px;
  border: 1px solid #d8cbb8;
  background: #f8f0e2;
}

body.product-marriage .page-result .main-title {
  color: #713f27;
  font-family: "STSong", "Songti SC", SimSun, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 1.5px;
}

body.product-marriage .page-result .sub-title {
  color: #8b634c;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

body.product-marriage .page-result .marriage-user-info {
  width: 100%;
  margin: 2px auto 0;
}

body.product-marriage .page-result .marriage-user-info__grid {
  gap: 8px;
}

body.product-marriage .page-result .marriage-user-info__item {
  min-height: 64px;
  gap: 5px;
  padding: 9px 11px;
  border: 1px solid #d7c6ad;
  border-radius: 2px;
  background: #fffdf8;
}

body.product-marriage .page-result .marriage-user-info__label {
  color: #8a5d43;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

body.product-marriage .page-result .marriage-user-info__value {
  color: #3b2a20;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

body.product-marriage .page-result .seal {
  width: 62px;
  height: 62px;
  margin-top: 4px;
  border: 2px solid #a9463d;
  background: transparent;
  box-shadow: inset 0 0 0 3px #f8f0e2, inset 0 0 0 4px #a9463d;
  color: #a9463d;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 15px;
  font-weight: 400;
}

body.product-marriage .page-result .cover-desc {
  margin: 2px 0 0;
  color: #59483d;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.75;
  text-align: left;
}

body.product-marriage .page-result .report-page > h1 {
  position: relative;
  margin: 0 0 14px;
  padding: 0 28px 9px;
  border: 0;
  color: #74442d;
  font-family: "STSong", "Songti SC", SimSun, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 2px;
  text-align: center;
}

body.product-marriage .page-result .report-page > h1::before,
body.product-marriage .page-result .report-page > h1::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 22%;
  height: 1px;
  background: #c7aa86;
}

body.product-marriage .page-result .report-page > h1::before {
  left: 0;
}

body.product-marriage .page-result .report-page > h1::after {
  right: 0;
}

body.product-marriage .page-result .bazi-table {
  margin-top: 0;
  border-radius: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
}

body.product-marriage .page-result .bazi-table th,
body.product-marriage .page-result .bazi-table td {
  padding: 6px 3px;
  border-color: #cfae7c;
  background: #fffdf8;
  color: #4c3427;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

body.product-marriage .page-result .bazi-table th,
body.product-marriage .page-result .bazi-table .row-head {
  background: #ead5af;
  color: #6b422b;
  font-weight: 600;
}

body.product-marriage .page-result .bazi-table .ganzhi {
  color: #7c4127;
  font-size: 14px;
  font-weight: 600;
}

body.product-marriage .page-result .analysis-body {
  display: grid;
  gap: 12px;
}

body.product-marriage .page-result .analysis-body p,
body.product-marriage .page-result .report-page p {
  color: #33271f;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0;
  text-align: justify;
}

body.product-marriage .page-result .report-contact {
  margin: 0 8px;
  padding: 16px 12px 8px;
  border: 1px solid #d8cbb8;
  border-radius: 2px;
  background: #f8f0e2;
  box-shadow: 0 2px 6px rgba(70, 48, 31, 0.12);
}

body.product-marriage .page-result .contact-tagline,
body.product-marriage .page-result .contact-line {
  color: #70442f;
}

body.product-marriage .page-result .footer-note {
  margin-top: 10px;
  background: #d45d32;
  color: #fff8ed;
  font-size: 12px;
  line-height: 1.6;
}
