/* 姓名解析 — 对齐蓝湖「其它 / 新测试02」 */
body.product-xingming {
  --xm-red: #e4401c;
  --xm-red-deep: #c62828;
  --xm-gold: #c8a56a;
  --xm-cream: #fffaf1;
  --xm-paper: #fdf8f0;
  --xm-card: #ffffff;
  --xm-ink: #6b3c1b;
  --xm-brown: #8a5a2c;
  --xm-border: #c1a57b;
  --xm-progress: #e4401c;
  --xm-asset: url('https://media.yunjuhuiapp.com/assets/images/xingming/slices');
}

body.product-xingming .loading-tabs {
  display: none !important;
}

body.product-xingming {
  background: var(--xm-paper);
}

body.product-xingming .app {
  background: var(--xm-paper);
  min-height: 100vh;
}

body.product-xingming[data-current-page="loading"],
body.product-xingming[data-current-page="pay"] {
  background: var(--xm-red);
}

body.product-xingming[data-current-page="loading"] .app,
body.product-xingming[data-current-page="pay"] .app {
  background: var(--xm-red);
}

body.product-xingming .top-feedback {
  background: #fff;
  color: #333;
}

body.product-xingming .top-feedback button {
  background: #fff;
  border: 1px solid #333;
  color: #333;
  border-radius: 999px;
}

body.product-xingming .notice {
  background: rgba(40, 40, 40, .72);
}

body.product-xingming:not([data-current-page="home"]) .notice,
body.product-xingming:not([data-current-page="home"]) .top-feedback {
  display: none;
}

body.product-xingming .page-home {
  background: var(--xm-paper);
  padding-bottom: 0;
}

body.product-xingming .page-loading {
  background: var(--xm-red);
}

body.product-xingming .page-pay {
  background: var(--xm-red);
}

body.product-xingming .page-result {
  background: var(--xm-paper);
}

.xm-home {
  padding: 0;
  overflow: hidden;
}

.xm-home-visual {
  width: 100%;
  min-height: 220px;
  aspect-ratio: 828 / 1028;
  background: url('https://media.yunjuhuiapp.com/assets/images/xingming/slices/home-visual.png?v=20260824') center top / 100% 100% no-repeat;
}

.xm-form-band {
  position: relative;
  z-index: 2;
  margin-top: -120px;
  padding: 8px 16px 18px;
  background: var(--xm-red);
}

.xm-form-card {
  position: relative;
  background: var(--xm-cream);
  border-radius: 16px;
  overflow: visible;
  padding: 38px 16px 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  border: 1px solid #f3c4b0;
}

.xm-ribbon {
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  z-index: 3;
  min-width: 72%;
  padding: 10px 22px;
  background: var(--xm-red-deep);
  color: #fff;
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(120, 16, 8, .35);
  white-space: nowrap;
}

.xm-loading-card .xm-ribbon {
  min-width: 82%;
  letter-spacing: 1px;
}

.xm-field-row {
  display: flex;
  align-items: stretch;
  margin: 8px 4px 14px;
  border: 1px solid #e8b4a8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.xm-field-label {
  flex: 0 0 92px;
  display: grid;
  place-items: center;
  background: var(--xm-red-deep);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.xm-field-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 14px 12px;
  font-size: 15px;
  background: transparent;
  color: #333;
}

.xm-field-row input::placeholder {
  color: #e39a90;
}

.xm-cta {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding: 0 0 19.3%;
  margin: 4px 0 6px;
  border: 0;
  background: url('https://media.yunjuhuiapp.com/assets/images/xingming/slices/btn-start.png?v=20260821') center / 100% 100% no-repeat;
  background-color: transparent;
  box-shadow: none;
  cursor: pointer;
}

.xm-cta-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.xm-consent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 0;
}

body.product-xingming .xm-consent-row .agreement-text,
body.product-xingming .xm-consent-row .agreement-link,
body.product-xingming .xm-consent-row .history-link {
  color: #fff;
  font-size: 13px;
  text-shadow: none;
}

body.product-xingming .xm-consent-row .history-link {
  background: transparent;
  border: 0;
  text-decoration: underline;
  padding: 0;
}

body.product-xingming .xm-consent-row .agreement-check {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  background: url('https://media.yunjuhuiapp.com/assets/images/xingming/slices/icon-check-off.png?v=20260821') center / contain no-repeat;
}

body.product-xingming .xm-consent-row .agreement-check.is-checked {
  background-image: url('https://media.yunjuhuiapp.com/assets/images/xingming/slices/icon-check-on.png?v=20260821');
}

body.product-xingming .xm-consent-row .agreement-check.is-checked::after,
body.product-xingming .xm-consent-row .agreement-check::after {
  content: none;
}

.xm-benefits {
  margin: 0;
  background: var(--xm-paper);
}

.xm-benefits-img {
  display: block;
  width: 100%;
  height: auto;
}

.xm-home-footer {
  background: var(--xm-red);
  padding: 16px 16px 22px;
  text-align: center;
}

.xm-pay-note {
  text-align: center;
  color: #fff;
  font-size: 12px;
  margin: 0 0 10px;
}

body.product-xingming .footer-service,
body.product-xingming .xm-service {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px auto 8px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  font-size: 16px;
  font-weight: 800;
}

body.product-xingming .footer-service img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none;
}

/* ===== Loading ===== */
.xm-loading {
  width: 100%;
  padding: 0 0 24px;
}

.xm-page-visual {
  width: 100%;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.xm-loading-board {
  margin: 0;
  background: transparent;
  overflow: visible;
}

.xm-loading-visual {
  position: relative;
  min-height: 0;
  aspect-ratio: 414 / 174;
  background-image: url('./assets/images/yy/loading/ChatGPT_Image_2026年7月23日_14_31_33.png');
  background-color: transparent;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.xm-loading-title {
  position: absolute;
  z-index: 2;
  top: -25px;
  left: 50%;
  width: 74%;
  margin: 0;
  padding: 9px 12px;
  transform: translateX(-50%);
  background: #ff3536;
  color: #fcfcfe;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2px;
  text-align: center;
  white-space: nowrap;
  border: 2px solid #ffb337;
  border-radius: 5px;
  box-shadow: 0 2px 0 rgba(160, 24, 12, .35);
}

.xm-loading-title::before,
.xm-loading-title::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  background: #ff3536;
  border: 2px solid #ffb337;
  border-radius: 50%;
}

.xm-loading-title::before {
  left: -15px;
}

.xm-loading-title::after {
  right: -15px;
}

.xm-loading-card {
  position: relative;
  margin: -64px 14px 0;
  padding: 38px 16px 18px;
  background: var(--xm-cream);
  border: 2px solid #d2c3a1;
  border-radius: 17px;
  box-shadow: 0 5px 0 rgba(116, 54, 24, .25);
}

.xm-name-display {
  text-align: center;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: #8a5a2c;
  letter-spacing: 8px;
  margin: 4px 0 14px;
}

.xm-meta-grid,
.xm-meta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.xm-meta-wide {
  grid-column: 1 / -1;
}

.xm-meta-grid div,
.xm-meta-box div {
  border: 1px solid var(--xm-border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--xm-brown);
  font-size: 13px;
  background: #fff;
}

.xm-meta-grid b,
.xm-meta-box b {
  color: var(--xm-ink);
}

.xm-loading-card .xm-meta-grid {
  gap: 16px;
  padding: 0;
}

.xm-loading-card .xm-meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 1px solid var(--xm-border);
  min-height: 82px;
  border-radius: 0;
  padding: 10px 16px;
  background: #fff;
}

.xm-loading-card .xm-meta-item span {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #8a5a2c;
}

.xm-loading-card .xm-meta-item b {
  display: block;
  margin-top: 0;
  font-size: 20px;
  line-height: 32px;
  font-weight: 400;
  color: #7c634e;
}

.xm-loading-card .xm-meta-strokes {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.xm-loading-card .xm-meta-strokes i {
  font-style: normal;
  font-weight: 400;
}

.xm-loading-status {
  margin-top: 18px;
  text-align: left;
}

body.product-xingming .loading-info-text {
  margin: 0 0 10px;
  color: #383838;
  font-size: 18px;
  font-weight: 400;
  text-align: left;
}

body.product-xingming .progress-track {
  height: 10px;
  background: #f7cfc8;
  border-radius: 99px;
  overflow: hidden;
}

body.product-xingming .progress-track i,
body.product-xingming #loadingProgressFill {
  display: block;
  height: 100%;
  background: var(--xm-progress);
  width: 8%;
}

.xm-plate {
  display: block;
  width: 90%;
  max-width: 410px;
  height: auto;
  margin: -10px auto 0;
  filter: drop-shadow(0 10px 18px rgba(80, 10, 10, 0.28));
  animation: xm-compass-spin 12s linear infinite;
  pointer-events: none;
}

@keyframes xm-compass-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== Pay：对齐蓝湖 img_pay_01 / 02 / 03，叠价与微信支付（同姻缘） ===== */
.xm-pay {
  padding: 0 0 8px;
}

.xm-pay-top {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.xm-pay-card,
.xm-pay-card--design {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: -8.5% 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.xm-pay-card-bg,
.xm-pay-promo {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.xm-pay-promo {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.xm-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;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.xm-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;
}

.xm-pay-ribbon-text b {
  color: inherit;
  font-weight: 800;
  margin-right: 2px;
}

/*
 * 价格/支付：叠在 img_pay_02 六宫格与可信网站徽章之间的空白区
 * 设计约 53%~80%（徽章约 82% 起）
 */
.xm-pay-interact {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 53.5%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
  z-index: 5;
  pointer-events: none;
}

.xm-pay-interact .xm-price-row,
.xm-pay-interact .wechat-pay {
  pointer-events: auto;
}

body.product-xingming .page-pay .xm-price-row,
body.product-xingming .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-xingming .page-pay .price-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

body.product-xingming .xm-price-row .price-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #ff8a1f;
  color: #fff;
  font-weight: 800;
}

body.product-xingming .xm-price-row .price-badge span,
body.product-xingming .xm-price-row .price-badge strong,
body.product-xingming #payPriceStrong {
  color: #fff;
}

body.product-xingming .xm-price-row .price-badge strong,
body.product-xingming #payPriceStrong {
  font-size: 18px;
}

body.product-xingming #payPriceOrigin {
  display: block;
  color: #8a6a4f;
  text-decoration: line-through;
  font-size: 13px;
  padding-left: 4px;
}

body.product-xingming .xm-price-row .price-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  font-size: 13px;
  color: #6d4a3a;
}

body.product-xingming .xm-price-row .price-right span {
  color: #888;
  font-size: 12px;
}

body.product-xingming .xm-price-row .price-right b,
body.product-xingming #countdown {
  color: var(--xm-red);
  font-size: 22px;
  line-height: 1.1;
}

body.product-xingming .page-pay .wechat-pay {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100%;
  height: 48px;
  margin: 2px 0 0;
  padding: 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;
}

.xm-wx-icon,
body.product-xingming .page-pay .wechat-pay img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

body.product-xingming .page-pay .xm-pay-secure {
  position: absolute !important;
  left: 6% !important;
  right: 6% !important;
  top: auto !important;
  bottom: 5.8% !important;
  margin: 0 !important;
  color: #39a72f;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  pointer-events: none;
}

.xm-pay-footer .xm-pay-note,
.xm-pay-footer .footer-service {
  color: #fff;
}

/* ===== Report ===== */
body.product-xingming .xm-report-book {
  background: var(--xm-paper);
  box-shadow: none;
}

body.product-xingming .report-wrap {
  padding: 0;
}

.xm-result-shell {
  padding: 8px 12px 20px;
  color: var(--xm-ink);
}

.xm-result-head,
.xm-section {
  background: #fffef9;
  border: 1px solid var(--xm-border);
  box-shadow: inset 0 0 0 3px #f3ead8;
  border-radius: 6px;
  padding: 16px 14px;
  margin-bottom: 12px;
}

.xm-result-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--xm-ink);
  margin-bottom: 8px;
}

.xm-result-name {
  text-align: center;
  font-size: 26px;
  letter-spacing: 10px;
  color: var(--xm-ink);
  margin-bottom: 12px;
}

.xm-head-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.xm-stamp {
  width: 86px;
  height: 86px;
  margin: 2px auto 0;
  border: 2px solid #9c1c1c;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fffef9, inset 0 0 0 5px #9c1c1c;
  color: #9c1c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 2px;
  transform: rotate(-8deg);
}

.xm-head-note,
.xm-result-end {
  text-align: center;
  color: #a18d7b;
  font-size: 12px;
  margin: 12px 0 0;
}

.xm-section h3 {
  text-align: center;
  color: var(--xm-ink);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
}

.xm-section p {
  font-size: 20px;
  line-height: 1.8;
  margin: 0 0 10px;
  color: #2d2215;
}

.xm-wuge-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  font-size: 13px;
}

.xm-wuge-table th,
.xm-wuge-table td {
  border: 1px dashed #b89a6a;
  padding: 8px 6px;
  text-align: center;
}

.xm-wuge-table thead th {
  background: #e9d7b7;
  color: var(--xm-ink);
  border-style: solid;
}

.xm-wuge-table tbody th {
  background: #f6efe2;
}

.xm-wuge-table td.is-good {
  color: #1a7f3c;
}

.xm-wuge-table td.is-bad {
  color: #c62828;
}

.xm-more-tests {
  padding: 8px 16px 16px;
}

.xm-more-tests h2 {
  text-align: center;
  color: var(--xm-ink);
  font-size: 18px;
  margin: 8px 0 12px;
}

.xm-more-tests a {
  display: block;
  margin-bottom: 12px;
}

.xm-more-tests img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

body.product-xingming .report-contact {
  text-align: center;
  padding: 22px 15px 6px;
}

body.product-xingming .footer-note {
  background: var(--xm-brown);
  color: #fff;
  padding: 10px 12px;
  font-size: 11px;
  margin-top: 8px;
  text-align: center;
}
