/* ===== 三数人格 模块（独立样式，区别于“测几号人”） ===== */
.chem-wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #F4F7F2 0%, #EAF1E9 100%);
  padding: 0 18px 40px;
  box-sizing: border-box;
}

/* 顶部 */
.chem-header {
  position: relative;
  text-align: center;
  padding: 32px 0 14px;
}
.chem-kicker {
  font-size: 11px;
  letter-spacing: .3em;
  color: #9AAE9C;
  text-transform: uppercase;
  font-weight: 700;
}
.chem-h1 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 30px;
  font-weight: 800;
  color: #2C4A3B;
  margin: 8px 0 8px;
  letter-spacing: .06em;
}
.chem-sub {
  font-size: 13px;
  color: #7C8E7C;
  line-height: 1.7;
  margin: 0;
}
.chem-reset {
  position: absolute;
  top: 30px;
  right: 0;
  border: 1px solid #CBD9C9;
  background: #fff;
  color: #5E7C68;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
}
.chem-home {
  position: absolute;
  top: 30px;
  left: 0;
  text-decoration: none;
  border: 1px solid #CBD9C9;
  background: #fff;
  color: #5E7C68;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
}
.chem-home:active { background: #F1F6F1; }

/* 步骤切换 */
.chem-step { animation: chemFade .4s ease; }
@keyframes chemFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* 输入 */
.chem-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}
.chem-orb {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 16px 0 26px;
}
.orb {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 22px rgba(45, 55, 45, .18);
}
.orb-a { top: 0; left: 33px; background: linear-gradient(135deg, #BC8A82, #A9776E); } /* 莫兰迪红 · 主要潜能 */
.orb-b { bottom: 0; left: 0; background: linear-gradient(135deg, #E6C86E, #C9A033); }  /* 莫兰迪黄 · 潜意识 */
.orb-c { bottom: 0; right: 0; background: linear-gradient(135deg, #A6CCD8, #6BA6B8); } /* 莫兰迪蓝 · 制约 */

.chem-lead {
  font-size: 15px;
  color: #4A5A4A;
  line-height: 1.8;
  text-align: center;
  margin: 0 0 28px;
}
.chem-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chem-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 15px 16px;
  box-shadow: 0 4px 14px rgba(45, 55, 45, .06);
  border: 1px solid #E4ECE2;
}
.chem-cal { font-size: 18px; }
.chem-input-el {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  color: #2C4A3B;
  letter-spacing: .12em;
  outline: none;
}
.chem-input-el::placeholder {
  color: #C2CFC2;
  font-weight: 600;
  letter-spacing: .04em;
}
.chem-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .18em;
  background: linear-gradient(135deg, #3E8E6E, #2C6B4F);
  box-shadow: 0 8px 20px rgba(46, 107, 79, .28);
  cursor: pointer;
}
.chem-btn:active { transform: scale(.98); }
.chem-foot {
  margin-top: 22px;
  font-size: 11px;
  color: #A9B6A9;
  text-align: center;
}

/* 计算 */
.chem-calc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
}
.chem-spinner {
  width: 56px;
  height: 56px;
  border: 6px solid rgba(62, 142, 110, .15);
  border-top-color: #3E8E6E;
  border-radius: 50%;
  animation: chemSpin 1s linear infinite;
}
@keyframes chemSpin { to { transform: rotate(360deg); } }
.chem-calc-title {
  margin-top: 18px;
  font-size: 14px;
  color: #3E5A4A;
  font-weight: 700;
  letter-spacing: .1em;
}
.chem-calc-steps {
  width: 100%;
  max-width: 300px;
  margin-top: 18px;
  background: #2C4A3B;
  border-radius: 16px;
  padding: 14px 16px;
}
.chem-calc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #CFE0D6;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .12);
}
.chem-calc-row:last-child { border-bottom: none; }
.chem-calc-row b {
  color: #fff;
  font-family: "Courier New", monospace;
  text-align: right;
}

/* 报告 */
.chem-report { padding-top: 4px; }
.chem-archive {
  background: linear-gradient(135deg, #2C4A3B, #3E8E6E);
  border-radius: 22px;
  padding: 22px 16px;
  margin-bottom: 22px;
  box-shadow: 0 14px 30px rgba(44, 74, 59, .25);
}
.chem-archive-label {
  text-align: center;
  color: #BFE0D0;
  font-size: 12px;
  letter-spacing: .2em;
  font-weight: 700;
  margin-bottom: 16px;
}
.chem-chips { display: flex; gap: 10px; }
.chem-chip {
  flex: 1;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  padding: 14px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.chem-chip b { font-size: 11px; color: #D7ECE2; font-weight: 700; }
.chem-chip .chip-num {
  font-family: "Noto Serif SC", serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chem-chip.chip-pot .chip-num { background: linear-gradient(135deg, #BC8A82, #A9776E); }
.chem-chip.chip-sub .chip-num { background: linear-gradient(135deg, #E6C86E, #C9A033); }
.chem-chip.chip-con .chip-num { background: linear-gradient(135deg, #A6CCD8, #6BA6B8); }
.chem-chip i { font-size: 10.5px; color: #BFE0D0; font-style: normal; line-height: 1.4; }

.chem-sec {
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(45, 55, 45, .05);
}
.chem-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #2C4A3B;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid #3E8E6E;
}
.chem-sec-title .num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.chem-sec-title .num-badge.pot { background: #A9776E; }
.chem-sec-title.pot { border-left-color: #A9776E; }
.chem-sec-title.sub { border-left-color: #C9A033; }
.chem-sec-title.con { border-left-color: #6BA6B8; }
.chem-sec-title .num-badge.sub { background: #C9A033; }
.chem-sec-title .num-badge.con { background: #6BA6B8; }
.chem-sec-text {
  font-size: 13.5px;
  line-height: 1.9;
  color: #566559;
  margin: 0;
  text-align: justify;
  white-space: pre-wrap;
}

/* 化学反应 */
.chem-sec.reaction { background: linear-gradient(180deg, #F2F8F4, #EAF3ED); }
.chem-reaction-line {
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px rgba(62, 142, 110, .16);
}
.chem-reaction-line:last-child { margin-bottom: 0; }
.chem-reaction-pair {
  font-size: 13.5px;
  font-weight: 800;
  color: #2C4A3B;
  margin-bottom: 8px;
}
.chem-reaction-pair .r-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  margin: 0 3px;
  vertical-align: middle;
}
.chem-reaction-pair .r-num.pot { background: #A9776E; }
.chem-reaction-pair .r-num.sub { background: #C9A033; }
.chem-reaction-pair .r-num.con { background: #6BA6B8; }
.chem-reaction-pair .ra { color: #9AAE9C; margin: 0 3px; }
.chem-reaction-sub {
  font-size: 12.5px;
  line-height: 1.8;
  color: #566559;
}
.chem-reaction-sub b { font-weight: 800; }
.chem-tension b { color: #C07B3C; }
.chem-integrate b { color: #2C6B4F; }
.chem-reaction-same b { color: #C07B3C; }

/* 金句 */
.chem-golden {
  position: relative;
  margin: 4px 0 2px;
  padding: 24px 18px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(62, 142, 110, .14), rgba(46, 107, 79, .08));
  text-align: center;
}
.chem-golden .qm {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 50px;
  color: rgba(62, 142, 110, .3);
  line-height: 1;
}
.chem-golden p {
  position: relative;
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
  color: #2C4A3B;
  margin: 6px 0 0;
  white-space: pre-wrap;
}

/* 建议 */
.chem-advice-list { display: flex; flex-direction: column; gap: 10px; }
.chem-advice-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: rgba(62, 142, 110, .06);
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: inset 0 0 0 1px rgba(62, 142, 110, .12);
}
.chem-advice-idx {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3E8E6E;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.chem-advice-txt { font-size: 13px; line-height: 1.8; color: #566559; }

/* 合规 + 行动 */
.chem-compliance {
  margin-top: 18px;
  font-size: 11px;
  color: #A9B6A9;
  line-height: 1.7;
  text-align: center;
}
.chem-actions { margin-top: 18px; }
.chem-act-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  color: #D7ECE2;
  background: #2C4A3B;
  letter-spacing: .08em;
  cursor: pointer;
}
.chem-act-btn:active { transform: scale(.98); }
