:root {
  --bg: #f7f4ee;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #6b6f76;
  --line: #e7e2d9;
  --accent: #0f766e;
  --accent-dark: #0b5d57;
  --accent-soft: #e5f3f0;
  --green: #15803d;
  --green-soft: #e8f6ec;
  --yellow: #a16207;
  --yellow-soft: #fdf5e1;
  --red: #b91c1c;
  --red-soft: #fdecec;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

a { color: var(--accent); }

/* 顶部 */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 15px;
}
.top .brand { font-weight: 700; color: var(--text); text-decoration: none; }
.top a.link { color: var(--muted); text-decoration: none; }

/* 首页 */
.hero { padding: 28px 0 8px; }
.hero h1 {
  font-size: 27px;
  line-height: 1.45;
  margin: 0 0 14px;
  letter-spacing: 0.5px;
}
.hero p { color: var(--muted); margin: 0 0 24px; }


.btn {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:active { background: var(--accent-dark); }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn.small { min-height: 46px; font-size: 16px; padding: 10px 14px; }
.note { font-size: 14px; color: var(--muted); text-align: center; margin: 10px 0 0; }

.section { margin-top: 36px; }
.section h2 { font-size: 20px; margin: 0 0 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
}
.card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { margin: 0; }
.card p + p { margin-top: 10px; }
.card .num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* 测评 */
.progress {
  height: 6px;
  background: var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin: 4px 0 10px;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .25s;
}
.qmeta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  min-height: 24px;
}
.qmeta button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.qtitle {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 700;
  margin: 18px 0 6px;
}
.qhint { font-size: 15px; color: var(--muted); margin: 0 0 16px; }
.qhint:empty { display: none; }

.scenario {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0 16px;
  font-size: 16px;
}
.scenario p { margin: 0; }
.scenario p + p { margin-top: 10px; }
.scenario .en { color: var(--muted); font-size: 15px; }

.opts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.opt {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 54px;
  padding: 13px 16px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}
.opt.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.opt.multi { padding-left: 46px; position: relative; }
.opt.multi::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -10px;
  border: 1.5px solid #b9b3a8;
  border-radius: 5px;
  background: #fff;
}
.opt.multi.on::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}


.next { margin-top: 18px; }

/* 结果页 */
.rlabel {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px 12px;
  margin-top: 16px;
}
.verdict {
  border-radius: 16px;
  padding: 18px;
  margin: 12px 0 20px;
}
.verdict h2 { margin: 0 0 8px; font-size: 22px; }
.verdict p { margin: 0; }
.verdict p + p { margin-top: 10px; }
.verdict.green { background: var(--green-soft); }
.verdict.green h2 { color: var(--green); }
.verdict.yellow { background: var(--yellow-soft); }
.verdict.yellow h2 { color: var(--yellow); }
.verdict.red { background: var(--red-soft); }
.verdict.red h2 { color: var(--red); }
.verdict.plain { background: var(--card); border: 1px solid var(--line); }

.rsub { font-size: 18px; margin: 26px 0 12px; }

.tip { border-left: 4px solid var(--accent); }
.tip.warn { border-left-color: var(--red); }
.tip .you { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.tip.warn .you { color: var(--red); }
.tip .fix { margin-top: 10px; }
.tip .quote {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
}
.tip .quote span { display: block; color: var(--muted); margin-top: 4px; }
.tip .fix + .quote { margin: 10px 0 0; }
.okrow {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.okrow summary { cursor: pointer; font-size: 16px; }
.okrow summary b { color: var(--green); margin-right: 8px; }
.okrow p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* 微信出口 */
.wx {
  margin-top: 28px;
  background: var(--card);
  border: 1.5px solid var(--accent);
  border-radius: 18px;
  padding: 20px 18px;
}
.wx p { margin: 0; }
.wx p + p, .wx .asks + p { margin-top: 10px; }
.wx .wxtitle { font-size: 19px; margin: 0 0 10px; }
.wx .asks { margin: 8px 0 0; padding-left: 1.4em; }
.wx .asks li { margin-bottom: 2px; }
.wx .small { font-size: 14px; color: var(--muted); margin: 12px 0 16px; line-height: 1.6; }
.idrow {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 12px;
  padding: 8px 8px 8px 14px;
}
.idrow b { flex: 1; font-size: 18px; word-break: break-all; }
.idrow .btn { width: auto; min-height: 42px; padding: 8px 18px; font-size: 16px; }
.qr { text-align: center; margin-top: 14px; }
.qr img, .qr .ph {
  width: 160px;
  height: 160px;
  border-radius: 12px;
}
.qr .ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #c8c1b5;
  color: var(--muted);
  font-size: 13px;
  padding: 12px;
  line-height: 1.5;
}
.qr p { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

.after { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }

/* 我是谁 */
.prose h1 { font-size: 26px; margin: 24px 0 16px; }
.prose h2 { font-size: 20px; margin: 36px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 1.2em; margin: 0 0 14px; }
.prose li { margin-bottom: 8px; }
.pic { display: block; width: 100%; border-radius: 12px; margin: 4px 0 6px; }
.caption { font-size: 13px; color: var(--muted); margin: 0 0 18px; }

@media (min-width: 600px) {
  .hero h1 { font-size: 32px; }
  .wrap { padding-bottom: 64px; }
}
