:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1f2420;
  --muted: #6b716c;
  --line: #e4e1d8;
  --accent: #2f6b4f;
  --accent-soft: #e6efe9;
  --warn: #9a5b13;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 24px 18px 64px; }
h1 { font-size: 28px; line-height: 1.3; margin: 8px 0 12px; letter-spacing: 0.5px; }
h2 { font-size: 19px; line-height: 1.4; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 12.5px; color: var(--muted); }
.tag { display: inline-block; font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 2px 10px; margin-bottom: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; margin: 14px 0; }
.btn {
  display: block; width: 100%; border: 0; border-radius: 12px; padding: 14px 16px;
  font-size: 17px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff; -webkit-tap-highlight-color: transparent;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn + .btn { margin-top: 10px; }
.row { display: flex; gap: 10px; }
.row .btn { margin-top: 0 !important; }

/* 问卷 */
.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 6px 0 18px; }
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 0.25s; }
.q-title { font-size: 19px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.q-hint { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
textarea {
  width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  font: inherit; color: inherit; background: #fff; resize: vertical;
}
textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.opt {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 13px 14px; margin-bottom: 10px;
  font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt .rank { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.opt.on .rank { background: var(--accent); color: #fff; border-color: var(--accent); }
.scale { display: flex; gap: 8px; }
.scale .opt { justify-content: center; margin: 0; padding: 14px 0; }
.scale-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.nav { display: flex; gap: 10px; margin-top: 22px; }
.nav .btn { margin: 0; }
.nav .back { flex: 0 0 96px; }
.err { color: #b3261e; font-size: 14px; margin-top: 10px; min-height: 20px; }

/* 预览与报告 */
.locked li { color: var(--muted); }
.locked li::marker { content: "🔒 "; }
.price { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.label-ai { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 18px; }
.section-num { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: 1px; }
.pair { border-left: 3px solid var(--accent-soft); padding: 4px 0 4px 12px; margin: 12px 0; }
.pair b { display: block; }
.kv { display: grid; grid-template-columns: 76px 1fr; gap: 4px 10px; font-size: 15px; margin: 8px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--accent); flex: none; }
.notice { background: #fff8ec; border: 1px solid #f0dcb6; color: var(--warn); border-radius: 12px; padding: 14px; font-size: 15px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 8px auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.hidden { display: none !important; }
footer { margin-top: 28px; font-size: 12px; color: var(--muted); text-align: center; }
