* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: #f5f3ee; color: #23231f; }
html { touch-action: manipulation; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 14px; line-height: 1.55;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
textarea, input { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
.hidden { display: none !important; }
.page {
  max-width: 480px; margin: 0 auto;
  padding: 0 16px 140px;
  padding-top: 12px;
  padding-top: var(--content-top, 12px);
  min-height: 100vh;
}
.head { padding: 8px 2px 6px; }
.head h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: 1px; }
.sub { margin: 2px 0 0; color: #7a776d; font-size: 13px; }
.steps { display: flex; margin: 14px 0 4px; padding: 0; }
.steps span {
  flex: 1; text-align: center; font-size: 12px; color: #9a968b;
  padding: 6px 0 8px; border-bottom: 2px solid #e7e3d9; letter-spacing: .5px;
}
.steps span.on { color: #23231f; font-weight: 600; border-bottom-color: #23231f; }

.lead { margin: 10px 2px 8px; font-size: 15px; color: #3a3833; }
.mini { font-size: 12px; color: #8a8578; }
.mini.block { display: block; margin: 6px 2px 10px; }
.center { text-align: center; }

.note {
  background: #fbfaf6; border: 1px solid #e2ddcf; border-radius: 12px;
  padding: 12px 14px; margin: 12px 0 10px; color: #4a4841; font-size: 13px;
}
.note p { margin: 0; }
.note .note-t { font-weight: 600; color: #23231f; font-size: 14px; margin-bottom: 4px; }
.tips { margin: 6px 0 4px; padding: 0 0 0 18px; color: #3a3833; font-size: 13px; }
.tips li { margin: 0 0 6px; }

.resume {
  background: #23231f; color: #f5f3ee; border-radius: 12px; padding: 12px 14px; margin: 8px 0 12px;
}
.resume p { margin: 0 0 8px; font-size: 13px; }
.resume button {
  border: 1px solid #f5f3ee; background: transparent; color: #f5f3ee;
  border-radius: 9px; padding: 5px 12px; font-size: 13px; margin-right: 8px;
}
.resume button.fill { background: #f5f3ee; color: #23231f; }

.sections { margin: 8px 0 0; }
.sec-row {
  display: flex; align-items: center; width: 100%; text-align: left;
  background: #fff; border: 0; border-radius: 12px; padding: 11px 14px; margin: 0 0 8px;
}
.sec-row .nm { flex: 1; font-size: 15px; font-weight: 600; }
.sec-row .ds { display: block; font-weight: 400; font-size: 12px; color: #8a8578; }
.sec-row .ct { flex: none; font-size: 12px; color: #8a8578; margin-left: 8px; }

.q-top { display: flex; align-items: baseline; margin: 12px 2px 6px; }
.q-sec { flex: 1; font-size: 13px; color: #6b5a3a; font-weight: 600; }
.q-num { flex: none; font-size: 12px; color: #9a968b; }
.progress { height: 3px; background: #e7e3d9; border-radius: 2px; overflow: hidden; margin: 0 2px; }
.progress i { display: block; height: 3px; width: 0; background: #23231f; }
.q-text { font-size: 19px; line-height: 1.5; font-weight: 600; margin: 16px 2px 12px; }
textarea {
  display: block; width: 100%; border: 1px solid #e2ded3; background: #fff;
  border-radius: 12px; padding: 12px; font-size: 16px; line-height: 1.55; resize: none;
  -webkit-appearance: none; outline: none;
}
textarea:focus { border-color: #8a8578; }
.q-meta { display: flex; margin: 6px 2px 0; }
.q-meta .mini { flex: 1; }
.q-meta .saved { text-align: right; }
.q-tools { display: flex; margin: 12px 0 0; }
.ghost {
  flex: 1; border: 1px solid #d4cdb8; background: transparent; border-radius: 10px;
  padding: 9px 0; font-size: 14px; color: #4a4841; margin-right: 8px;
}
.ghost:last-child { margin-right: 0; }
.ghost.on { background: #ece6d6; border-color: #b9ae92; }
.hint {
  margin: 12px 0 0; background: #ece6d6; border-radius: 12px; padding: 12px 14px;
  color: #3a3833; font-size: 14px;
}
.hint b { display: block; font-size: 12px; color: #6b5a3a; margin-bottom: 4px; }

.rv-sec { margin: 14px 2px 6px; font-size: 13px; font-weight: 600; color: #6b5a3a; }
.rv-item { display: flex; background: #fff; border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; }
.rv-item.empty { background: #f9f7f2; }
.rv-check {
  flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid #b9ae92;
  background: #fff; margin: 2px 10px 0 0; padding: 0; font-size: 14px; line-height: 20px; text-align: center;
}
.rv-check.on { background: #23231f; border-color: #23231f; color: #fff; }
.rv-check:disabled { opacity: .3; }
.rv-body { flex: 1; min-width: 0; }
.rv-q { font-size: 13px; color: #6f6b60; margin: 0 0 4px; }
.rv-a { font-size: 15px; color: #23231f; margin: 0; word-break: break-all; white-space: pre-wrap; }
.rv-a.none { color: #b3afa3; font-size: 13px; }
.rv-edit { flex: none; border: 0; background: none; color: #3d6b5c; font-size: 13px; padding: 2px 0 0 10px; }

.card-wrap { border-radius: 14px; overflow: hidden; box-shadow: 0 8px 28px rgba(35,35,31,.12); margin-top: 12px; }
.result-img {
  display: block; width: 100%; height: auto; background: #f3efe4;
  -webkit-user-select: auto; user-select: auto; -webkit-touch-callout: default;
}
.textbox { margin: 14px 0 0; }
.textbox textarea { font-size: 13px; background: #fbfaf7; }
.credit { text-align: center; color: #b3afa3; font-size: 12px; margin: 24px 0 8px; letter-spacing: 1px; }

.bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 10px 16px 14px;
  padding-bottom: 14px;
  padding-bottom: calc(14px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  background: rgba(245,243,238,.95); border-top: 1px solid #e7e3d9; z-index: 10;
}
.bar-row { display: flex; max-width: 448px; margin: 0 auto; }
.primary, .secondary { border-radius: 12px; font-size: 16px; font-weight: 600; padding: 13px 0; }
.primary { flex: 2; border: 0; background: #23231f; color: #fff; }
.secondary { flex: 1; margin-right: 10px; border: 1px solid #23231f; background: transparent; color: #23231f; }
.primary:active, .secondary:active { opacity: .85; }
.primary:disabled { opacity: .4; }
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%);
  max-width: 86%; background: rgba(35,35,31,.92); color: #fff;
  padding: 9px 16px; border-radius: 10px; font-size: 13px; text-align: center; z-index: 30;
}
.link { border: 0; background: none; color: #3d6b5c; padding: 4px 10px; font-size: 13px; }
.card-links { margin-top: 14px; }

/* ---- 解读器 ---- */
.seg { display: flex; margin: 0 0 4px; }
.seg button {
  flex: 1; border: 1px solid #d4cdb8; background: #fff; color: #4a4841;
  padding: 9px 0; font-size: 14px; margin-left: -1px;
}
.seg button:first-child { border-radius: 10px 0 0 10px; margin-left: 0; }
.seg button:last-child { border-radius: 0 10px 10px 0; }
.seg button.on { background: #23231f; border-color: #23231f; color: #fff; font-weight: 600; position: relative; }
.seg.sys button { padding: 11px 0; font-size: 14px; }
.form { margin: 14px 0 0; }
.row { display: flex; margin: 0 0 12px; }
.row input, .field input {
  flex: 1; min-width: 0; border: 1px solid #e2ded3; background: #fff; border-radius: 10px;
  padding: 10px 12px; font-size: 16px; -webkit-appearance: none; outline: none;
}
.small { flex: none; margin-left: 8px; border: 0; background: #23231f; color: #fff; border-radius: 10px; padding: 0 16px; font-size: 14px; }
.field { margin: 0 0 14px; }
.label { margin: 0 2px 6px; font-size: 13px; color: #4a4841; font-weight: 600; }
.axis { background: #fff; border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.axis .label { margin-bottom: 8px; }
.axis .pct { display: flex; align-items: center; margin-top: 8px; }
.axis .pct span { font-size: 12px; color: #7a776d; flex: none; margin-right: 8px; }
.axis .pct input { flex: 1; min-width: 0; border: 1px solid #e2ded3; border-radius: 8px; padding: 6px 8px; font-size: 15px; background: #fbfaf7; }
.nums { display: flex; flex-wrap: wrap; }
.nums button {
  width: 18%; margin: 0 2% 8px 0; border: 1px solid #d4cdb8; background: #fff;
  border-radius: 10px; padding: 10px 0; font-size: 17px; font-weight: 600;
}
.nums button.on { background: #23231f; color: #fff; border-color: #23231f; }
.b5 { background: #fff; border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; display: flex; align-items: center; }
.b5 .nm { flex: 1; font-size: 15px; font-weight: 600; }
.b5 .nm span { display: block; font-size: 12px; font-weight: 400; color: #8a8578; }
.b5 input { flex: none; width: 84px; border: 1px solid #e2ded3; border-radius: 8px; padding: 7px 8px; font-size: 16px; text-align: center; background: #fbfaf7; }

.r-head { background: #23231f; color: #f5f3ee; border-radius: 14px; padding: 14px 16px; margin: 12px 0 12px; }
.r-head .big { font-size: 30px; font-weight: 700; letter-spacing: 2px; margin: 0; }
.r-head p { margin: 4px 0 0; font-size: 13px; color: #d9d4c6; }
.dim { background: #fff; border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; }
.dim h3 { margin: 0 0 6px; font-size: 15px; }
.dim h3 em { font-style: normal; color: #6b5a3a; font-size: 13px; font-weight: 400; margin-left: 6px; }
.dim p { margin: 6px 0 0; font-size: 14px; color: #3a3833; }
.dim p.not { color: #6f6b60; font-size: 13px; }
.dim p.flag { color: #8a5346; font-size: 13px; font-weight: 600; }
.scale { position: relative; height: 22px; margin: 10px 0 2px; }
.scale .ln { position: absolute; left: 0; right: 0; top: 10px; height: 3px; background: #e7e3d9; border-radius: 2px; }
.scale .mid { position: absolute; left: 50%; top: 4px; width: 1px; height: 15px; background: #b9ae92; }
.scale .band { position: absolute; top: 10px; height: 3px; background: #d9c9a6; }
.scale .dot { position: absolute; top: 4px; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; background: #23231f; }
.scale-l { display: flex; font-size: 12px; color: #8a8578; }
.scale-l span { flex: 1; }
.scale-l span:last-child { text-align: right; }
.h2 { font-size: 16px; margin: 22px 2px 6px; }
.why { margin: 0 0 4px; padding: 0 0 0 20px; font-size: 14px; color: #3a3833; }
.why li { margin: 0 0 8px; }
.why b { color: #23231f; }
.ck { display: flex; width: 100%; text-align: left; align-items: flex-start; background: #fff; border: 0; border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; }
.ck i { flex: none; width: 22px; height: 22px; border: 1.5px solid #b9ae92; border-radius: 6px; margin: 1px 10px 0 0; font-style: normal; text-align: center; line-height: 19px; font-size: 13px; }
.ck.on i { background: #23231f; border-color: #23231f; color: #fff; }
.ck span { flex: 1; font-size: 14px; }
.ck span small { display: block; color: #8a8578; font-size: 12px; margin-top: 2px; }
.check-sum { margin: 4px 2px 0; font-size: 14px; font-weight: 600; color: #2f564a; }
.disclaimer { margin: 18px 0 0; padding: 12px 14px; border: 1px dashed #c9c1aa; border-radius: 12px; font-size: 12px; color: #7a776d; }
