* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6fa; color: #222;
}
.app-shell { max-width: 720px; margin: 0 auto; padding: 16px; }
#app { min-height: 100vh; }

/* hero */
.hero { text-align: center; padding: 18px 0 8px; }
.hero h1 { font-size: 24px; margin: 0; color: #E24B4A; }
.tagline { color: #777; font-size: 13px; margin: 6px 0 0; }

/* panel */
.panel { background: #fff; border-radius: 14px; padding: 18px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.hint { color: #888; font-size: 13px; line-height: 1.6; }
.hint b { color: #E24B4A; }

/* banks */
.banks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.bank-card { border: 1px solid #eef0f5; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.bank-card h3 { margin: 0 0 6px; font-size: 16px; }
.bank-card p { font-size: 12px; color: #777; line-height: 1.6; flex: 1; margin: 0 0 12px; }
@media(max-width: 560px){ .banks { grid-template-columns: 1fr; } }

/* buttons */
.btn { border: none; border-radius: 10px; padding: 10px 18px; font-size: 14px; cursor: pointer; font-weight: 600; }
.btn.primary { background: #E24B4A; color: #fff; }
.btn.primary:hover { background: #cf3f3e; }
.btn.ghost { background: #eef0f5; color: #555; }
.btn.ghost:disabled { opacity: .4; cursor: not-allowed; }
.actions { display: flex; gap: 10px; margin-top: 16px; }
.actions.center { justify-content: center; }

/* fields */
.field { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.field > span { width: 70px; font-size: 14px; color: #444; flex-shrink: 0; }
.field > span i { color: #E24B4A; font-style: normal; margin-left: 2px; }
.field input, .field select { flex: 1; padding: 9px 12px; border: 1px solid #dfe3ea; border-radius: 8px; font-size: 14px; background: #fff; }
.field input:focus, .field select:focus { outline: none; border-color: #E24B4A; }
.consent { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 4px; font-size: 12.5px; color: #666; line-height: 1.5; }
.consent input { margin-top: 2px; flex-shrink: 0; }

/* quiz */
.q-progress { font-size: 13px; color: #888; margin-bottom: 8px; }
.q-bar { height: 6px; background: #eef0f5; border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.q-bar-fill { height: 100%; background: #E24B4A; transition: width .25s; }
.q-text { font-size: 17px; line-height: 1.7; margin: 0 0 20px; font-weight: 500; }
.q-options { display: flex; flex-direction: column; gap: 10px; }
.opt { border: 1px solid #dfe3ea; background: #fff; border-radius: 10px; padding: 14px; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all .15s; }
.opt small { color: #999; font-size: 12px; }
.opt:hover { border-color: #E24B4A; }
.opt.selected { background: #E24B4A; color: #fff; border-color: #E24B4A; }
.opt.selected small { color: #ffe; }
.q-counter { margin-left: auto; font-size: 13px; color: #999; }

/* report */
.report .panel { margin-bottom: 14px; }
.profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #E24B4A, #534AB7); color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pinfo { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 22px; }
.pi { font-size: 13px; color: #444; }
.pi b { color: #888; font-weight: 400; margin-right: 4px; }
.overview { display: flex; gap: 12px; flex-wrap: wrap; }
.ob { flex: 1; min-width: 150px; background: #fafbff; border-radius: 10px; padding: 14px; }
.ob .k { font-size: 12px; color: #888; }
.ob .v { font-size: 17px; font-weight: 700; margin-top: 4px; color: #222; }
.ob .t { font-size: 12px; color: #555; margin-top: 4px; line-height: 1.5; }
.radar { text-align: center; }
.legend { font-size: 12px; color: #888; }
.note { font-size: 14px; line-height: 1.9; color: #333; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { background: #fff; border: 1px solid #eef0f5; border-radius: 10px; padding: 12px 14px; }
.card-h { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.score { margin-left: auto; font-weight: 700; }
.lv { font-size: 12px; padding: 1px 8px; border-radius: 20px; color: #fff; }
.lv-high { background: #E24B4A; } .lv-mid { background: #E0A23B; } .lv-low { background: #9aa0ab; }
.card-b { font-size: 13px; color: #444; margin: 8px 0; }
.card-f { font-size: 12px; color: #777; line-height: 1.5; }
.bar-track { height: 10px; border-radius: 6px; background: #eef0f5; overflow: hidden; margin: 8px 0 4px; }
.bar-fill { height: 100%; border-radius: 6px; }
.bar-num { font-size: 11px; color: #999; text-align: right; }
@media(max-width: 600px){ .cards { grid-template-columns: 1fr; } .pinfo { grid-template-columns: repeat(2, auto); } }
