:root {
  --accent: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --soft: #f9fafb;
  --green: #16a34a;
  --yellow: #d97706;
  --red: #dc2626;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.topbar { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); z-index: 20; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.logo-en { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.topnav { display: flex; align-items: center; gap: 14px; }
.who { color: var(--muted); font-size: 13px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button { font: inherit; cursor: pointer; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 8px 18px; font-size: 14px; }
.btn:hover { border-color: #c7ccd4; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { background: transparent; }
.btn-lg { padding: 13px 34px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.linklike { background: none; border: none; color: var(--ink); font-size: 14px; padding: 4px 2px; }
.linklike:hover { color: var(--accent); }
.hero { text-align: center; padding: 84px 0 56px; }
.hero h1 { font-size: 44px; line-height: 1.25; margin: 0 0 20px; font-weight: 800; letter-spacing: .01em; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto 30px; }
.hero-note { color: var(--muted); font-size: 13px; margin-top: 18px; }
.criteria-preview { border-top: 1px solid var(--line); padding: 40px 0 8px; }
.criteria-preview h2 { font-size: 22px; margin: 0 0 6px; }
.criteria-list { columns: 2; column-gap: 44px; padding-left: 22px; color: #374151; font-size: 15px; }
.criteria-list li { margin: 7px 0; break-inside: avoid; }
.criteria-list .src { color: var(--muted); font-size: 12.5px; display: block; }
.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 26px 0 44px; font-size: 13px; color: #4b5563; }
.muted { color: var(--muted); }
.page-title { font-size: 24px; margin: 36px 0 18px; }
/* 向导 */
.progress { height: 6px; background: var(--soft); border-radius: 3px; margin-top: 34px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); width: 0; transition: width .25s; }
.progress-text { color: var(--muted); font-size: 13px; margin: 10px 0 22px; }
.q-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.q-card h3 { margin: 0 0 4px; font-size: 20px; }
.q-source { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.q-question { font-size: 16px; margin: 0 0 16px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin: 10px 0; cursor: pointer; font-size: 15px; }
.opt:hover { border-color: #c7ccd4; }
.opt.sel { border-color: var(--accent); background: #eff6ff; }
.opt input { margin-top: 4px; accent-color: var(--accent); }
.opt .tag-red { color: var(--red); font-size: 12px; border: 1px solid #fecaca; background: #fef2f2; border-radius: 6px; padding: 0 6px; margin-left: 6px; white-space: nowrap; }
.field { margin: 14px 0; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; color: #374151; }
input[type=text], input[type=email], input[type=password] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 15px; background: #fff; }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 15px; resize: vertical; }
.wizard-nav { display: flex; justify-content: space-between; margin: 22px 0 40px; }
.msg { font-size: 13.5px; min-height: 20px; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }
/* 结果 */
.result-head { text-align: center; padding: 44px 0 8px; }
.light-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; padding: 10px 26px; border-radius: 999px; border: 1px solid var(--line); }
.light-dot { width: 18px; height: 18px; border-radius: 50%; }
.light-green .light-dot { background: var(--green); } .light-yellow .light-dot { background: #f59e0b; } .light-red .light-dot { background: var(--red); }
.light-green { color: var(--green); } .light-yellow { color: var(--yellow); } .light-red { color: var(--red); }
.score-big { font-size: 64px; font-weight: 800; margin: 14px 0 2px; }
.score-big small { font-size: 20px; color: var(--muted); font-weight: 400; }
.result-proj { color: var(--muted); margin: 4px 0; }
.redline-alert { max-width: 640px; margin: 16px auto 0; border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; border-radius: 12px; padding: 12px 16px; font-size: 14.5px; text-align: left; }
.items { margin-top: 30px; }
.item { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 12px 0; }
.item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.item-name { font-weight: 600; font-size: 15.5px; }
.item-score { font-weight: 700; white-space: nowrap; }
.bar { height: 7px; background: var(--soft); border-radius: 4px; margin: 10px 0 4px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 4px; }
.bar > div.low { background: var(--red); }
.bar > div.mid { background: #f59e0b; }
.item-reason { font-size: 14px; color: #374151; margin: 8px 0 0; }
.item-advice { font-size: 14px; color: #1e40af; background: #eff6ff; border-radius: 8px; padding: 8px 12px; margin: 10px 0 0; }
.deep-lock { border: 1px dashed #c7ccd4; border-radius: 14px; padding: 26px; text-align: center; margin-top: 26px; color: #374151; }
.ai-box { border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-top: 26px; }
.ai-box h3 { margin: 0 0 8px; font-size: 17px; }
.ai-content { white-space: pre-wrap; font-size: 14.5px; background: var(--soft); border-radius: 10px; padding: 14px 16px; margin-top: 12px; }
.result-actions { display: flex; gap: 12px; margin: 30px 0 10px; }
/* 历史 */
.hist-item { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; cursor: pointer; }
.hist-item:hover { border-color: #c7ccd4; }
.hist-name { font-weight: 600; }
.hist-meta { color: var(--muted); font-size: 13px; }
.pill { font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; z-index: 50; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 16px; padding: 28px; width: 100%; max-width: 430px; position: relative; max-height: 84vh; overflow: auto; }
.modal-card h3 { margin: 0 0 12px; font-size: 19px; }
.modal-card input { margin: 7px 0; }
.modal-x { position: absolute; right: 14px; top: 10px; background: none; border: none; font-size: 24px; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.row input { flex: 1; }
.qr { display: block; width: 210px; max-width: 100%; margin: 14px auto; border: 1px solid var(--line); border-radius: 12px; }
hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
@media (max-width: 640px) {
  .hero { padding: 52px 0 40px; }
  .hero h1 { font-size: 32px; }
  .criteria-list { columns: 1; }
  .q-card { padding: 20px; }
  .score-big { font-size: 48px; }
  .who { display: none; }
  .logo { font-size: 17px; white-space: nowrap; }
  .logo-en { display: none; }
  .topnav { gap: 8px; }
  .linklike { font-size: 13px; white-space: nowrap; }
  .topnav .btn { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
}
