:root {
  --pink: #ff858b;
  --pink-deep: #ff5d6b;
  --pink-soft: #fff1f2;
  --green: #50d019;
  --ink: #171717;
  --body: #555;
  --muted: #909090;
  --paper: #fff;
  --line: #242424;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f1f3f6;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.55;
}

.page {
  width: min(100%, 468px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 24px rgba(0,0,0,.08);
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}

.topbar {
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--pink-deep);
  font-size: 16px;
}

.hero {
  position: relative;
  min-height: 218px;
  padding: 28px 42% 22px 20px;
  overflow: hidden;
  background: radial-gradient(circle at 17% 93%, rgba(143,82,235,.18), transparent 20%), linear-gradient(145deg, #ffc4c7 0%, #ffabb3 58%, #fff 58.5%, #ffd1d5 60%, #ffb8be 60.5%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -44px;
  width: 150px;
  height: 150px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.85) 0 8px, transparent 8px 18px);
  transform: rotate(9deg);
}
.hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.18;
  text-shadow: 0 2px 0 rgba(72,72,72,.5);
}
.hero h1 em { color: #4ba7e5; font-style: normal; }
.hero-sub { position: relative; z-index: 2; margin: 12px 0 0; color: #353535; font-size: 16px; font-weight: 800; }
.hero-note { position: relative; z-index: 2; width: 115%; margin: 8px 0 0; color: #6a4548; font-size: 11px; }
.hero img { position: absolute; z-index: 1; right: -2px; bottom: 0; width: 50%; height: 103%; object-fit: contain; object-position: right bottom; }

section { padding: 20px 15px; }
section:nth-of-type(even) { background: #fff9f9; }
h2 { margin: 0 0 16px; text-align: center; font-size: 22px; line-height: 1.3; }
.accent { color: var(--pink-deep); }
.lead { margin: -7px 0 16px; color: var(--body); text-align: center; font-size: 12.5px; }

.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.signal { min-height: 155px; padding: 10px 7px; border: 1.3px solid var(--line); text-align: center; background: #fff; }
.signal b { display: grid; place-items: center; width: 33px; height: 33px; margin: 0 auto 7px; border-radius: 50%; color: #fff; background: var(--pink); }
.signal strong { font-size: 13px; }
.signal p { margin: 6px 0 0; color: var(--body); font-size: 11.5px; line-height: 1.45; }

.expert-box { position: relative; min-height: 162px; margin-top: 14px; padding: 15px 13px 15px 39%; border: 1.3px solid var(--line); background: var(--pink-soft); overflow: hidden; }
.expert-box img { position: absolute; left: -6%; bottom: -25%; width: 48%; height: 145%; object-fit: contain; object-position: center bottom; }
.expert-box strong { font-size: 16px; }
.expert-box p { margin: 6px 0 0; color: var(--body); font-size: 12.5px; }

.primary-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 45px; margin-top: 13px; border: 0; color: #fff; background: var(--pink-deep); text-decoration: none; font-size: 16px; font-weight: 800; }

.pain-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pain-tag { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 7px; min-height: 61px; padding: 7px; border: 1px solid #e0c7c9; background: #fff; }
.pain-tag i { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: #fff; background: var(--pink); font-style: normal; font-weight: 800; }
.pain-tag:nth-child(2n) i { background: #38b9ae; }
.pain-tag:nth-child(3n) i { background: #7e8491; }
.pain-tag strong, .pain-tag span { display: block; }
.pain-tag strong { color: var(--pink-deep); font-size: 12px; }
.pain-tag span { color: var(--body); font-size: 10.5px; }

.stage-title { margin: 18px 0 9px; text-align: center; font-weight: 800; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 4px solid #ff7f8d; }
.stage { padding: 9px 4px; text-align: center; background: #fff; border-right: 1px solid #f0d7da; }
.stage:last-child { border-right: 0; }
.stage b, .stage span { display: block; }
.stage b { color: var(--pink-deep); font-size: 12px; }
.stage span { margin-top: 4px; font-size: 10.5px; }
.boundary, .mistake-note, .team-note { margin: 12px 0 0; padding: 10px; border-left: 4px solid #ff8791; color: var(--body); background: #fff8f8; font-size: 11px; }

.steps { display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 48px 1fr; align-items: center; min-height: 66px; border: 1px solid var(--line); background: #fff; }
.step b { display: grid; place-items: center; width: 38px; height: 38px; margin-left: 8px; color: #fff; background: linear-gradient(135deg, #ff8c96, #ff5768); font-size: 20px; }
.step strong, .step span { display: block; }
.step strong { color: var(--pink-deep); font-size: 13px; }
.step span { margin-top: 2px; color: var(--body); font-size: 11px; }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.trust-item { color: var(--body); font-size: 10.5px; }
.trust-item strong { display: block; margin: 7px 0 2px; color: var(--ink); font-size: 12px; }
.seal { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border: 2px solid #d9a3a7; border-radius: 50%; color: #b76e74; font-size: 19px; font-weight: 800; }
.team-note { border: 1px solid #eacfd2; text-align: center; }

form { display: grid; gap: 10px; }
label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; }
select, input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #8f8f8f; border-radius: 0; color: #333; background: #fff; font: inherit; font-size: 13px; }
.privacy { margin: -2px 0 0; color: var(--muted); font-size: 10.5px; }
.mock-result { display: none; padding: 9px; color: #2d6723; background: #effbea; text-align: center; font-size: 11px; }
.mock-result.show { display: block; }
.safety { margin-top: 10px; color: #747887; font-size: 10px; }
.page-footer,
footer { padding: 14px 12px 22px; color: #aaa; text-align: center; font-size: 10px; }

.sticky { position: fixed; z-index: 10; left: 50%; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 468px); padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -4px 15px rgba(0,0,0,.08); transform: translateX(-50%); }
.sticky a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 6px; color: #fff; text-decoration: none; font-size: 15px; }
.sticky a:first-child { background: var(--green); }
.sticky a:last-child { background: var(--pink); }
.sticky-icon { display: grid; place-items: center; width: 34px; height: 27px; padding-right: 9px; border-right: 1px solid rgba(255,255,255,.85); }
.sticky-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 小程序返回 */
#back_btn_applet {
  display: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 100%;
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 20;
  box-shadow: 0 0 2px 1px #000;
  overflow: hidden;
  background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M15.4 7.4L14 6l-6 6 6 6 1.4-1.4L10.8 12z'/%3E%3C/svg%3E") center/60% no-repeat;
}

/* 意向单弹窗 */
.tc-yxd {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.6);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99;
}
.tc-yxd .contact_in {
  width: 90%;
  max-width: 420px;
  background: #fff;
  position: absolute;
  left: 50%;
  top: 12%;
  margin-left: -45%;
  padding-bottom: 5%;
  border-radius: 5px;
  box-sizing: border-box;
}
@media (min-width: 468px) {
  .tc-yxd .contact_in { margin-left: -210px; left: 50%; }
}
.contact_in h2 {
  background: #ddd;
  color: #000;
  margin: 0;
  padding: 10px 0;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  font-size: 18px;
  font-weight: normal;
  text-align: center;
}
.contact_in .close {
  position: absolute;
  right: 5px;
  top: -45px;
  cursor: pointer;
  background: #ddd;
  border-radius: 50%;
  text-align: center;
  line-height: 25px;
  width: 30px;
  height: 30px;
}
.contact_in .close img { width: 14px; height: 14px; vertical-align: middle; margin-top: 8px; }
.borders {
  position: absolute;
  border-left: 1px solid #ddd;
  height: 100%;
  top: 20px;
  left: 14px;
}
.contact_in .line {
  width: 92%;
  margin: .5rem auto 0;
  line-height: 34px;
}
.contact_in .line span { line-height: 34px; font-size: 15px; }
.contact_in .line span.titles {
  height: 44px;
  line-height: 44px;
  margin-right: 10px;
}
.contact_in label { width: 100%; font-size: 15px; }
.contact_in label .phone {
  display: inline-block;
  width: 70%;
  height: 44px;
  border-radius: 5px;
  border: 1px solid #999;
  padding-left: 10px;
  font-size: 14px;
  background-color: #f8f8f8;
  box-sizing: border-box;
  vertical-align: middle;
}
.contact_in .line.sex-line { height: 44px; }
.contact_in .line div.sex_chose {
  display: inline-block;
  width: 35px;
  height: 35px;
  border-radius: 100%;
  text-align: center;
  line-height: 35px;
  background-color: #e9e9e9;
  color: #999;
  margin-top: 5px;
  margin-right: 15px;
  font-size: 15px;
  cursor: pointer;
}
.contact_in .line div.sex_chose.active {
  background: #f8485e;
  color: #fff;
}
.contact_in .line.time { overflow: hidden; margin-bottom: 0; }
.zhe { font-size: 0; }
.zhe div { margin: .1rem 0; }
.contact_in .line div.time_chose {
  display: inline-block;
  width: 47%;
  margin-right: 6%;
  text-align: center;
  border-radius: 5px;
  background: #e9e9e9;
  color: #999;
  height: 44px;
  line-height: 44px;
  font-size: 15px;
  cursor: pointer;
  box-sizing: border-box;
}
.contact_in .line div.time_chose:nth-child(even) { margin-right: 0; }
.contact_in .line div.time_chose.active {
  color: #fff;
  background: #f8485e;
}
.Bsubmit {
  cursor: pointer;
  color: #fff;
  width: 92%;
  height: 44px;
  background: #ff5562;
  margin: 4% auto 0;
  border-radius: 5px;
  font-size: 15px;
  outline: none;
  border: 0;
  line-height: 44px;
  text-align: center;
}

/* 校验提示（独立命名，避免与 ../footer.css 的 .popup 冲突） */
.hz-msg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .45);
  z-index: 130;
}
.hz-msg__box {
  width: 315px;
  max-width: 86%;
  min-height: 140px;
  background: #fff;
  border-radius: 8px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 24px 16px 16px;
  box-sizing: border-box;
  text-align: center;
}
.hz-msg__text {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  min-height: 48px;
  word-break: break-word;
}
.hz-msg__btn {
  display: block;
  margin: 16px auto 0;
  width: 120px;
  height: 36px;
  line-height: 36px;
  background: #ff5562;
  color: #fff;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
  position: static;
  text-align: center;
}

/* 成功弹窗（整图，点击任意处关闭） */
.success-mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 110;
  background: rgba(0, 0, 0, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.success-mask .success-img {
  display: block;
  width: min(86%, 360px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 350px) {
  .hero h1 { font-size: 27px; }
  h2 { font-size: 20px; }
  .pain-tag { grid-template-columns: 31px 1fr; padding: 7px 5px; }
  .pain-tag i { width: 30px; height: 30px; font-size: 12px; }
}
