/* 性格臭味 / 恋人情感指数 — 对齐蓝湖设计稿 */
body.product-chouwei {
  --cw-bg: #fff1f2;
  --cw-bg-soft: #ffe8ec;
  --cw-stage-bg: #f7f7df;
  --cw-pay-badges: url('https://media.yunjuhuiapp.com/assets/images/chouwei/slices/pay-trust-badges.png?v=20260811-06');
  --cw-title: #1a1a1a;
  --cw-ribbon: #ff71be;
  --cw-cta-odor: #14ba25;
  --cw-cta-odor-shadow: #036711;
  --cw-cta-lover: #ff44a8;
  --cw-cta-lover-shadow: #c00a73;
  --cw-card: #ffffff;
  --cw-progress: #ff44a8;
  --cw-label: #413951;
  --cw-link: #ff44a8;
  --cw-loading-visual: url('https://media.yunjuhuiapp.com/assets/images/chouwei/odor-loading-hero.png?v=20260811-06');
  --cw-pay-visual: url('https://media.yunjuhuiapp.com/assets/images/chouwei/odor-pay-hero.png?v=20260811-06');
  --cw-result-visual: url('https://media.yunjuhuiapp.com/assets/images/chouwei/odor-result-hero.png?v=20260811-06');
}

body.product-chouwei.theme-lover {
  --cw-bg: #ffe8f1;
  --cw-bg-soft: #ffd6e7;
  --cw-stage-bg: #ffe8f1;
  --cw-ribbon: #ff3d8f;
  --cw-pay-badges: url('https://media.yunjuhuiapp.com/assets/images/chouwei/slices/lover-pay-trust-badges.png?v=20260811-06');
  --cw-loading-visual: url('https://media.yunjuhuiapp.com/assets/images/chouwei/lover-loading-hero.png?v=20260811-06');
  --cw-pay-visual: url('https://media.yunjuhuiapp.com/assets/images/chouwei/lover-pay-hero.png?v=20260811-06');
  --cw-result-visual: url('https://media.yunjuhuiapp.com/assets/images/chouwei/lover-result-hero.png?v=20260811-06');
}

/* 本产品无「基础信息/姓名对比/指数解析」Tab；全局 .loading-tabs{display:flex} 会冲掉 [hidden] */
body.product-chouwei .loading-tabs {
  display: none !important;
}

body.product-chouwei .app {
  background: var(--cw-bg);
  min-height: 100vh;
}

body.product-chouwei[data-current-page="loading"] .app,
body.product-chouwei[data-current-page="pay"] .app,
body.product-chouwei[data-current-page="result"] .app {
  background: var(--cw-stage-bg);
}

body.product-chouwei .top-feedback {
  background: #fff;
  color: #333;
}

body.product-chouwei .top-feedback button {
  background: #fff;
  border: 1px solid #333;
  color: #333;
  border-radius: 999px;
}

body.product-chouwei .notice {
  background: rgba(40, 40, 40, .72);
}

body.product-chouwei:not([data-current-page="home"]) .top-feedback,
body.product-chouwei:not([data-current-page="home"]) .notice {
  display: none;
}

/* 设计稿仅顶部投诉条，隐藏右侧悬浮投诉按钮避免重复 */
body.product-chouwei .complaint-float-btn {
  display: none !important;
}

body.product-chouwei .page-home {
  background: var(--cw-bg);
}

body.product-chouwei .page-loading,
body.product-chouwei .page-pay,
body.product-chouwei .page-result {
  background: var(--cw-stage-bg);
}

/* ===== 首页 ===== */
.cw-home {
  position: relative;
  padding: 0 14px;
  overflow: hidden;
  min-height: calc(100vh - 88px);
}

.cw-home-visual {
  width: calc(100% + 28px);
  margin: 0 -14px;
  min-height: 326px;
  aspect-ratio: 828 / 652;
  background:
    url('https://media.yunjuhuiapp.com/assets/images/chouwei/slices/home-visual.png?v=20260811-06') center top / 100% auto no-repeat;
}

.cw-form-card {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  padding: 50px 26px 36px;
  background: var(--cw-card);
  border: 2px solid #2f2c33;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(80, 40, 60, .1);
}

.cw-ribbon {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  z-index: 3;
  min-width: 86%;
  max-width: 94%;
  padding: 11px 18px;
  background: var(--cw-ribbon);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
  border-radius: 4px;
  box-shadow: 0 4px 0 rgba(180, 20, 90, .35);
  white-space: nowrap;
}

.cw-ribbon::before,
.cw-ribbon::after {
  content: '';
  position: absolute;
  bottom: -8px;
  width: 0;
  height: 0;
  border-style: solid;
}

.cw-ribbon::before {
  left: 0;
  border-width: 8px 10px 0 0;
  border-color: #d94a9a transparent transparent transparent;
}

.cw-ribbon::after {
  right: 0;
  border-width: 8px 0 0 10px;
  border-color: #d94a9a transparent transparent transparent;
}

.cw-field-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 16px;
  border: 1.5px solid #3d3a42;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.cw-field-label {
  flex: 0 0 109px;
  display: grid;
  place-items: center;
  background: var(--cw-label);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.cw-field-row input {
  flex: 1;
  min-width: 0;
  height: 64px;
  border: 0;
  padding: 0 12px;
  background: #fff;
  font-size: 19px;
  font-weight: 700;
  color: #333;
  outline: none;
}

.cw-field-row input::placeholder {
  color: #a8a0b0;
}

.cw-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 11px -10px 0;
}

.cw-cta {
  min-height: 59px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  padding: 8px 6px;
}

.cw-cta--odor {
  background: linear-gradient(180deg, #1cc92a, var(--cw-cta-odor));
  box-shadow: 0 4px 0 var(--cw-cta-odor-shadow);
}

.cw-cta--lover {
  background: linear-gradient(180deg, #ff68b8, var(--cw-cta-lover));
  box-shadow: 0 4px 0 var(--cw-cta-lover-shadow);
}

.cw-cta:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 transparent;
}

.cw-consent-row {
  position: absolute;
  top: 10px;
  left: 25px;
  right: 25px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}

body.product-chouwei .cw-consent-row .form-agreement,
body.product-chouwei .cw-consent-row .agreement-text,
body.product-chouwei .cw-consent-row .agreement-link,
body.product-chouwei .cw-consent-row .history-link {
  color: var(--cw-link);
  text-shadow: none;
  font-size: 15px;
  font-weight: 500;
}

body.product-chouwei .cw-consent-row .history-link {
  text-decoration: underline;
  background: transparent;
  border: 0;
  padding: 0;
}

body.product-chouwei .cw-consent-row .agreement-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--cw-link);
  border-radius: 50%;
  background: #fff;
}

body.product-chouwei .cw-consent-row .agreement-check.is-checked {
  background: var(--cw-link);
  border-color: var(--cw-link);
}

body.product-chouwei .cw-consent-row .agreement-check.is-checked::after {
  color: #fff;
}

body.product-chouwei .page-home .footer-service {
  position: absolute;
  top: 104px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  transform: translateX(-50%);
}

body.product-chouwei .page-home .footer-service img.cw-service-icon,
body.product-chouwei .page-home .footer-service .cw-service-icon {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

/* 微信支付按钮内的微信标识 */
.cw-wx-icon {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.cw-home-footer {
  position: relative;
  z-index: 1;
  width: calc(100% + 28px);
  height: 161px;
  margin: 0 -14px;
  background:
    url('https://media.yunjuhuiapp.com/assets/images/chouwei/slices/home-footer-decor.png?v=20260811-06') center top / 100% 161px no-repeat;
}

/* ===== Loading / Pay 顶图 ===== */
.cw-loading,
.cw-pay {
  padding: 0 14px 28px;
}

.cw-page-visual {
  width: calc(100% + 28px);
  margin: 0 -14px;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.cw-loading-visual {
  min-height: 225px;
  aspect-ratio: 828 / 450;
  background-image: var(--cw-loading-visual);
}

.cw-pay-visual {
  min-height: 215px;
  aspect-ratio: 828 / 430;
  background-image: var(--cw-pay-visual);
}

/* ===== Loading 姓名对比 ===== */
.cw-loading-card,
.cw-loading-status {
  background: #fff;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(80, 40, 60, .08);
}

.cw-loading-card {
  min-height: 428px;
  margin-top: 38px;
  padding: 48px 14px;
  display: grid;
  align-items: center;
}

.cw-loading-status {
  margin-top: 24px;
  padding: 20px 28px;
}

.product-chouwei .page-loading.page-loading--report-wait #cwLoadingCompare {
  display: none;
}

.product-chouwei .page-loading.page-loading--report-wait .cw-loading-status {
  margin-top: 16px;
}

.product-chouwei .page-loading.page-loading--report-wait .loading-info-text {
  font-size: 15px;
  line-height: 1.7;
}

.cw-compare {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.cw-name-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cw-name-char {
  width: clamp(62px, 19vw, 80px);
  height: clamp(62px, 19vw, 80px);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 800;
  color: #2a2a2a;
  border: 1px solid rgba(0, 0, 0, .04);
}

.cw-name-char--a { background: #c8e8ff; }
.cw-name-char--b { background: #ffd0e4; }

.cw-compare-mid {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 82px;
  gap: 8px;
  margin: 0;
}

.cw-compare-line {
  width: 88%;
  height: 0;
  border-top: 2px solid #222;
  position: relative;
}

.cw-compare-line::before,
.cw-compare-line::after {
  content: '';
  position: absolute;
  top: -7px;
  width: 2px;
  height: 12px;
  background: #222;
}

.cw-compare-line--l::before { left: 0; }
.cw-compare-line--l::after { right: 0; }
.cw-compare-line--r::before { left: 0; }
.cw-compare-line--r::after { right: 0; }

.cw-compare-metrics {
  display: flex;
  justify-content: center;
  gap: 7px;
  width: 100%;
}

.cw-compare-metrics span {
  min-width: 0;
  text-align: center;
  padding: 7px 7px;
  border: 1.5px solid #222;
  border-radius: 8px;
  background: #fff;
  font-size: clamp(10px, 3.1vw, 13px);
  font-weight: 800;
  color: #222;
}

.cw-compare-pinyin {
  display: none;
}

body.product-chouwei .loading-info-text {
  margin: 0 0 16px;
  color: var(--cw-progress);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

body.product-chouwei .progress-track {
  height: 10px;
  border-radius: 999px;
  background: #ffe3ef;
  overflow: hidden;
}

body.product-chouwei .progress-track i,
body.product-chouwei #loadingProgressFill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cw-progress);
  border-radius: 999px;
  transition: width .25s ease;
}

/* ===== 预付款 ===== */
.cw-pay-card {
  position: relative;
  margin-top: 15px;
  padding: 50px 16px 28px;
  overflow: visible;
  background: #fff;
  border: 1.5px solid #2f2c33;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(80, 40, 60, .08);
}

.cw-pay-ribbon {
  position: absolute;
  top: -9px;
  left: 30px;
  right: 30px;
  margin: 0;
  padding: 13px 12px;
  background: var(--cw-ribbon);
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
}

.cw-pay-preview {
  margin: 6px 0 14px;
}

.cw-pay-preview-img {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  vertical-align: top;
}

body.product-chouwei.theme-odor .cw-pay-preview-img--odor,
body.product-chouwei.theme-lover .cw-pay-preview-img--lover {
  display: block;
}

body.product-chouwei .cw-price-row {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 0 4px 10px;
}

body.product-chouwei .cw-price-row .price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ff8a1f;
  color: #fff;
  font-weight: 800;
}

body.product-chouwei .cw-price-row .price-badge span,
body.product-chouwei .cw-price-row .price-badge strong,
body.product-chouwei #payPriceStrong {
  color: #fff;
  font-size: 16px;
}

body.product-chouwei #payPriceOrigin {
  display: block;
  margin-top: 6px;
  color: #999;
  text-decoration: line-through;
  font-size: 13px;
}

body.product-chouwei .cw-price-row .price-right {
  text-align: right;
  color: #ff3b3b;
  font-size: 13px;
  font-weight: 700;
}

body.product-chouwei .cw-price-row .price-right b,
body.product-chouwei #countdown {
  display: block;
  margin-top: 4px;
  color: #ff1f1f;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

body.product-chouwei .page-pay .cw-wechat-pay {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 12px;
  background: #10af31;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: none;
}

.cw-pay-badges {
  display: block;
  margin-top: 14px;
  min-height: 38px;
  background: var(--cw-pay-badges) center / contain no-repeat;
}

.cw-pay-badges::before,
.cw-pay-badges::after {
  content: none;
}

.cw-pay-secure {
  margin: 10px 0 0;
  text-align: center;
  color: #39a85a;
  font-size: 12px;
  font-weight: 600;
}

/* ===== 结果页 ===== */
.cw-report-book {
  background: transparent;
}

.cw-result-shell {
  position: relative;
  padding: 0 0 20px;
}

.cw-result-visual {
  width: 100%;
  min-height: 215px;
  aspect-ratio: 828 / 430;
  background-image: var(--cw-result-visual);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.cw-result-banner {
  position: absolute;
  z-index: 2;
  top: 221px;
  left: 46px;
  right: 46px;
  margin: 0;
  padding: 12px 14px 16px;
  border-radius: 0;
  background: var(--cw-ribbon);
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
}

.cw-result-body {
  margin: 17px 14px 0;
  padding: 100px 28px 30px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid #2f2c33;
  color: #191919;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
}

.cw-result-body p {
  margin: 0 0 12px;
}

.cw-result-body h4 {
  margin: 22px 0 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  color: #191919;
}

.cw-result-body h4:first-of-type {
  margin-top: 8px;
}

.cw-core-wrap {
  margin: 0 0 14px;
}

.cw-core-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.cw-core-table + .cw-core-table {
  margin-top: 8px;
}

.cw-core-table th,
.cw-core-table td {
  border: 1px solid #e4c8d4;
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
}

.cw-core-table thead th {
  background: #fff0f6;
  font-size: 13px;
  font-weight: 800;
  color: #191919;
}

.cw-core-table thead th:first-child {
  text-align: left;
}

.cw-core-table tbody th,
.cw-core-table.cw-core-rel th {
  width: 26%;
  text-align: left;
  white-space: nowrap;
  background: #faf6f8;
  color: #5c4450;
  font-weight: 800;
}

.cw-core-table.cw-core-rel td {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #5c4450;
}

.cw-core-table b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #191919;
}

.cw-core-table small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #8a6a7a;
}

.cw-core-table small.is-good {
  color: #c2185b;
}

.cw-core-table small.is-bad {
  color: #c62828;
}

.cw-core-hint {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  color: #5c4450;
}

body.product-chouwei.theme-odor .cw-core-table th,
body.product-chouwei.theme-odor .cw-core-table td {
  border-color: #cfe8c4;
}

body.product-chouwei.theme-odor .cw-core-table thead th {
  background: #eefbe8;
}

body.product-chouwei.theme-odor .cw-core-table tbody th,
body.product-chouwei.theme-odor .cw-core-table.cw-core-rel th {
  background: #f4fbef;
}

body.product-chouwei.theme-odor .cw-core-table small.is-good {
  color: #2e7d32;
}

.cw-result-score {
  margin: 0 0 10px;
  color: #c2185b;
  font-size: 16px;
  font-weight: 800;
}

body.product-chouwei.theme-odor .cw-result-score {
  color: #2e7d32;
}

.cw-wuge {
  margin: 0 0 16px;
  padding: 12px 12px 8px;
  border-radius: 12px;
  background: #fff7fb;
  border: 1px solid #f3c6dc;
}

body.product-chouwei.theme-odor .cw-wuge {
  background: #f4fbef;
  border-color: #cfe8c4;
}

.cw-wuge h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
}

.cw-wuge-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cw-wuge-name {
  margin: 0 0 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.cw-wuge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cw-wuge-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: #fff;
}

.cw-wuge-cell span {
  font-size: 11px;
  color: #8a6a7a;
}

.cw-wuge-cell b {
  font-size: 16px;
  line-height: 1.2;
}

.cw-wuge-cell small {
  font-size: 11px;
  color: #c2185b;
}

body.product-chouwei.theme-odor .cw-wuge-cell small {
  color: #2e7d32;
}

.cw-wuge-sancai,
.cw-wuge-rel {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #5c4450;
}

.cw-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.cw-result-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff0f6;
  color: #c2185b;
  font-size: 12px;
  font-weight: 700;
}

body.product-chouwei.theme-odor .cw-result-tags span {
  background: #eefbe8;
  color: #2e7d32;
}

body.product-chouwei .cw-more-tests {
  padding: 0 6px 12px;
}

body.product-chouwei .cw-more-tests h2 {
  width: 78%;
  margin: 0 auto 12px;
  padding: 7px 14px;
  border: 2px solid #ff9a27;
  border-radius: 6px;
  background: #ff3939;
  color: #fff;
  text-align: center;
  font-size: 18px;
  line-height: 1;
}

body.product-chouwei .cw-more-tests a {
  display: block;
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 7px rgba(47, 44, 51, .18);
}

body.product-chouwei .cw-more-tests img {
  display: block;
  width: 100%;
  height: auto;
}

body.product-chouwei .report-contact {
  padding: 10px 15px 6px;
}

body.product-chouwei .cw-result-service {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 600;
}

body.product-chouwei .cw-result-service img {
  width: 20px;
  height: 20px;
}

body.product-chouwei .cw-result-trust {
  width: 78%;
  min-height: 34px;
  margin: 8px auto 0;
  background: var(--cw-pay-badges) center / contain no-repeat;
}

body.product-chouwei .report-book .footer-note {
  padding: 10px 14px 14px;
  background: #ff4b25;
  color: #fff;
  font-size: 11px;
  line-height: 1.55;
}

body.product-chouwei.result-mode-paid .result-actions,
body.product-chouwei.result-mode-history .result-actions {
  display: grid;
  grid-template-columns: 1fr;
  width: 430px;
  max-width: 100%;
  background: rgba(255, 248, 250, .96);
  border-top: 1px solid rgba(47, 44, 51, .12);
}

body.product-chouwei.result-mode-paid .result-actions .btn-home,
body.product-chouwei.result-mode-history .result-actions .btn-home {
  display: none;
}

body.product-chouwei .page-result .result-actions .btn-save {
  color: #fff;
  background: linear-gradient(180deg, #ff5da2 0%, #ff3d8f 100%);
  box-shadow: 0 5px 12px rgba(255, 61, 143, .22);
}

body.product-chouwei.theme-odor .page-result .result-actions .btn-save {
  background: linear-gradient(180deg, #34c759 0%, #14ba25 100%);
  box-shadow: 0 5px 12px rgba(20, 186, 37, .22);
}

body.product-chouwei.result-mode-paid .page-result,
body.product-chouwei.result-mode-history .page-result {
  padding-bottom: 78px;
}

@media (min-width: 420px) {
  .cw-home-visual { min-height: 320px; }
  .cw-cta { font-size: 16px; }
  .cw-ribbon { font-size: 15px; }
}
