/* CRM 健康度检查器 — 样式 */
:root {
  --bg: #f4f6fb;
  --ink: #1a2438;
  --ink-soft: #55617a;
  --muted: #8a97ab;
  --line: #e3e8f2;
  --card: #ffffff;
  --primary: #2b59ff;
  --primary-dark: #1f44d6;
  --navy: #0b1f3a;
  --shadow: 0 6px 24px rgba(20, 35, 70, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 14px; }

/* Header */
.site-header {
  background: linear-gradient(120deg, #0b1f3a 0%, #173a6d 100%);
  color: #fff;
  padding: 16px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  background: #2b59ff; color: #fff; font-weight: 800; letter-spacing: .5px;
  padding: 4px 9px; border-radius: 8px; font-size: 14px;
}
.brand-name { font-weight: 700; font-size: 18px; }
.brand-tag { color: #aebfdc; font-size: 13px; }

/* Panels */
.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin: 26px auto;
  border: 1px solid var(--line);
}

/* Hero */
.hero h1 { font-size: 30px; line-height: 1.3; margin: 0 0 14px; letter-spacing: -.01em; }
.hero .lead { font-size: 17px; color: var(--ink-soft); margin: 0 0 20px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.hero-points li {
  background: #f7f9ff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; font-size: 15px; color: var(--ink-soft);
}
.hero-points strong { color: var(--ink); }
.privacy-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* Buttons */
.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; border-radius: 12px;
  padding: 11px 20px; transition: all .18s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary:disabled { background: #b9c4e0; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 30px; font-size: 17px; }

/* Quiz */
.quiz-top { margin-bottom: 22px; }
.progress { display: flex; align-items: center; gap: 14px; }
.progress-bar { flex: 1; height: 8px; background: #e8edf7; border-radius: 99px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2b59ff, #4f7bff); transition: width .3s ease; }
.progress-text { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.dim-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 26px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.dim-head:first-child { margin-top: 0; }
.dim-icon { font-size: 22px; }
.dim-title { font-weight: 700; font-size: 18px; }
.dim-sub { color: var(--muted); font-size: 13px; }

.q-block { border: none; margin: 0 0 18px; padding: 0; }
.q-text { font-weight: 600; font-size: 15.5px; padding: 0; margin-bottom: 10px; color: var(--ink); }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-opt {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 13px;
  background: #fff; transition: all .15s ease; font-size: 14px; color: var(--ink-soft);
}
.q-opt:hover { border-color: #b9c8ee; background: #fafbff; }
.q-opt input { position: absolute; opacity: 0; pointer-events: none; }
.q-dot { width: 16px; height: 16px; border: 2px solid #c2cce0; border-radius: 50%; flex-shrink: 0; transition: all .15s; }
.q-opt.sel { border-color: var(--primary); background: #f0f4ff; color: var(--ink); font-weight: 600; }
.q-opt.sel .q-dot { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.q-opt-label { line-height: 1.35; }

.quiz-actions { display: flex; gap: 12px; margin-top: 26px; justify-content: flex-end; }
.quiz-hint { text-align: right; color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* Result head */
.result-head { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 8px; }
.score-ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); width: 132px; height: 132px; }
.ring-bg { fill: none; stroke: #eef1f8; stroke-width: 10; }
.ring-fg { fill: none; stroke-width: 10; stroke-linecap: round; }
.score-center { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; }
.score-num { font-size: 42px; font-weight: 800; line-height: 1; }
.score-unit { color: var(--muted); font-size: 15px; font-weight: 600; }
.result-head-text { flex: 1; min-width: 240px; }
.level-badge { display: inline-block; color: #fff; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 99px; margin-bottom: 8px; }
.result-head-text h2 { margin: 0 0 8px; font-size: 23px; }
.level-desc { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* Result grid */
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.result-card {
  background: #fbfcff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; margin-top: 18px;
}
.result-card h3 { margin: 0 0 14px; font-size: 17px; }
.radar-wrap { display: flex; justify-content: center; }

/* Dim bars */
.dim-bars { display: grid; gap: 13px; }
.dim-bar-row { font-size: 14px; }
.dim-bar-label { display: flex; justify-content: space-between; margin-bottom: 5px; color: var(--ink-soft); }
.dim-bar-label b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dim-bar-track { height: 9px; background: #eef1f8; border-radius: 99px; overflow: hidden; }
.dim-bar-track span { display: block; height: 100%; border-radius: 99px; transition: width .8s cubic-bezier(.2,.8,.2,1); }

/* Bottlenecks */
.bottlenecks { display: grid; gap: 14px; }
.bn-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid #e5484d; border-radius: 12px; padding: 14px 16px; }
.bn-head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.bn-icon { font-size: 18px; }
.bn-name { font-weight: 700; font-size: 16px; }
.bn-score { margin-left: auto; color: #e5484d; font-weight: 700; font-size: 14px; }
.bn-desc { color: var(--ink-soft); font-size: 14px; margin: 0 0 8px; }
.bn-gaps { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 14px; }
.bn-gaps li { margin-bottom: 4px; }
.good-note { background: #e9f9f0; border: 1px solid #b8ebcd; color: #0c6b3d; padding: 14px 16px; border-radius: 12px; margin: 0; }

/* Actions */
.actions { display: grid; gap: 14px; }
.action-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.action-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.action-name { font-weight: 700; font-size: 16px; }
.action-tag { color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.action-list { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 14.5px; }
.action-list li { margin-bottom: 7px; }

/* Result actions */
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Next step */
.next-step {
  margin-top: 24px; padding: 22px; border-radius: 14px;
  background: linear-gradient(120deg, #0b1f3a, #1d4585); color: #eaf1ff;
}
.next-step h3 { margin: 0 0 10px; color: #fff; font-size: 18px; }
.next-step p { margin: 0; font-size: 15px; color: #c5d6f4; }

/* Footer */
.site-footer { padding: 26px 0; color: var(--muted); font-size: 13px; text-align: center; }

/* Responsive */
@media (max-width: 680px) {
  .panel { padding: 22px; margin: 16px auto; }
  .hero h1 { font-size: 24px; }
  .q-opts { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .quiz-actions { flex-direction: column-reverse; }
  .quiz-actions .btn, .result-actions .btn { width: 100%; }
  .quiz-hint { text-align: center; }
  .result-head { gap: 18px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .result-actions, .next-step, #intro, #quiz { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; border: none; margin: 0; padding: 0; }
  .result-card { break-inside: avoid; }
}
