/* ===================================================================
   PsychTest 报告页样式 — 共享 report-child.html / report-adult.html
   沿用 ADHD Test 品牌 token（与 index.html 一致）
   =================================================================== */

:root {
  --brand-50:  #effdf7;
  --brand-100: #d7f5ea;
  --brand-200: #b0ebd6;
  --brand-500: #2ec4a0;
  --brand-600: #1ea887;
  --brand-700: #178c70;
  --brand-900: #0d5c49;
  --bg:        #fdfcfa;
  --surface:   #ffffff;
  --border:    #ece9e2;
  --text:      #22303a;
  --text-dim:  #6b7a85;
  --ink-strong:#0d2e2a;
  --warn-bg:   #fff8e1;
  --warn-ink:  #8a6a00;
  --warn-border:#e8c863;
  --err-ink:   #c1394a;
  --ok-ink:    #178c70;
  --radius:    24px;
  --radius-sm: 12px;
  --shadow:    0 2px 8px rgba(34,48,58,.05), 0 12px 32px rgba(34,48,58,.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo { display:inline-flex; align-items:center; font:800 20px/1 Inter,sans-serif; color:var(--brand-900); letter-spacing:-.02em; text-decoration:none; }
.logo span { color:var(--brand-600); }
.logo:hover { color:var(--brand-600); }
.logo:hover span { color:var(--brand-900); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font: 600 13px/1 Inter, sans-serif;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s, background-color .15s;
}
.nav-btn:hover { border-color: var(--brand-500); color: var(--brand-700); }
.nav-btn.brand { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.nav-btn.brand:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

/* ---------- hero header ---------- */
.head {
  text-align: center;
  padding: 24px 0 16px;
}
.head .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 12.5px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.head h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-strong);
  margin-bottom: 10px;
}
.head .scale-name {
  color: var(--brand-700);
  font-size: 14px; font-weight: 700;
  margin-bottom: 8px;
}
.head .meta {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 4px;
}
.head .meta strong { color: var(--ink-strong); }

/* ---------- placeholder banner ---------- */
.placeholder-banner {
  background: var(--brand-50);
  border: 1px dashed var(--brand-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--brand-900);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 24px;
}
.placeholder-banner code {
  background: var(--surface);
  border: 1px solid var(--brand-100);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

/* ---------- section card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-strong);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.card h2 .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 13px; font-weight: 800;
}
.card .lead {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 18px;
}

/* ---------- bar chart (儿童版 3 分量) ---------- */
.bar-chart {
  display: flex; flex-direction: column; gap: 18px;
  margin-top: 4px;
}
.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 96px;
  align-items: center;
  gap: 14px;
}
.bar-row__label {
  font-weight: 700; color: var(--ink-strong);
  font-size: 14.5px;
}
.bar-row__label small {
  display: block; font-weight: 600; color: var(--text-dim); font-size: 11.5px;
}
.bar-row__track {
  position: relative;
  height: 28px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  overflow: hidden;
}
.bar-row__fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-600));
  border-radius: 999px;
  transition: width .5s ease;
}
.bar-row__cut {
  position: absolute; top: -4px; bottom: -4px;
  width: 2px;
  background: #f59e0b;
  z-index: 2;
}
.bar-row__cut::after {
  content: attr(data-cut);
  position: absolute;
  top: -18px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; font-weight: 700; color: #b07209;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid #f59e0b;
  border-radius: 4px;
  padding: 1px 5px;
}
.bar-row__val {
  text-align: right;
  font-weight: 800; color: var(--ink-strong);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.bar-row__val small {
  display: block; color: var(--text-dim); font-weight: 600; font-size: 11.5px;
  margin-top: 1px;
}
.bar-row.hit .bar-row__fill { background: linear-gradient(90deg, #f59e0b, #ea7a1c); }
.bar-row.hit .bar-row__val small { color: #b07209; }

/* ---------- score table ---------- */
.score-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}
.score-table th, .score-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.score-table th {
  font-weight: 700;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--brand-50);
}
.score-table td { color: var(--text); }
.score-table tr:last-child td { border-bottom: 0; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.tag.ok   { background: var(--brand-50); color: var(--ok-ink); border: 1px solid var(--brand-100); }
.tag.warn { background: #fff4d6; color: #b07209; border: 1px solid #f59e0b; }
.tag.hit  { background: #fde2e5; color: var(--err-ink); border: 1px solid #f4b3bb; }

/* ---------- subtype / severity block ---------- */
.tag-block {
  display: grid; gap: 10px;
  margin-top: 8px;
}
.tag-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--brand-50);
}
.tag-row .label { font-weight: 700; color: var(--ink-strong); font-size: 14px; }
.tag-row .label small { display: block; color: var(--text-dim); font-weight: 500; font-size: 12.5px; margin-top: 2px; }

.severity-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 6px;
}
.sev-cell {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: center;
  background: var(--surface);
}
.sev-cell .num { font-size: 18px; font-weight: 800; color: var(--ink-strong); }
.sev-cell .lbl { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.sev-cell.active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}
.sev-cell.active .num, .sev-cell.active .lbl { color: #fff; }
.sev-cell.active .lbl { opacity: .85; }

.severity-final {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  font-size: 15px;
}
.severity-final strong { color: var(--ink-strong); }

/* ---------- radar chart (成人版 7 维) ---------- */
.radar-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: center;
}
.radar-svg { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }
.radar-svg .grid-circle { fill: none; stroke: var(--brand-100); stroke-width: 1; }
.radar-svg .grid-axis  { stroke: var(--brand-100); stroke-width: 1; }
.radar-svg .grid-axis-label { font-size: 10px; fill: var(--text-dim); font-weight: 600; }
.radar-svg .data-poly   { fill: rgba(46,196,160,0.18); stroke: var(--brand-600); stroke-width: 2; }
.radar-svg .data-point  { fill: var(--brand-600); stroke: #fff; stroke-width: 1.5; }
.radar-svg .data-axis-label {
  font-size: 11px; font-weight: 700; fill: var(--ink-strong);
}
.radar-svg .data-axis-label.hit { fill: var(--err-ink); }

.radar-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.radar-legend .row { display: flex; align-items: center; gap: 10px; }
.radar-legend .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-500); flex-shrink: 0; }
.radar-legend .row.hit .dot { background: var(--err-ink); }
.radar-legend .code { font-weight: 800; color: var(--ink-strong); width: 28px; }
.radar-legend .name { flex: 1; color: var(--text); }
.radar-legend .val { font-weight: 800; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.radar-legend .row.hit .name { color: var(--err-ink); font-weight: 700; }

/* ---------- panel grids ---------- */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 6px;
}
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--surface);
}
.panel h3 {
  font-size: 15px; font-weight: 800;
  color: var(--ink-strong);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.panel h3 .pill {
  display: inline-block;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: .04em;
}
.panel.warn { background: #fff8f4; border-color: #f4b3bb; }
.panel.warn h3 { color: var(--err-ink); }
.panel.warn h3 .pill { background: #fde2e5; color: var(--err-ink); border-color: #f4b3bb; }
.panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--text); }
.panel ul li { padding-left: 16px; position: relative; line-height: 1.55; }
.panel ul li::before {
  content: "•";
  position: absolute; left: 0; top: -1px;
  color: var(--brand-600);
  font-weight: 800;
}
.panel .core-result {
  font-size: 15px; font-weight: 700; color: var(--ink-strong);
  margin: 4px 0 10px;
  padding: 10px 14px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 8px;
}

/* ---------- suggestion list ---------- */
.suggestions {
  display: grid; gap: 12px;
  margin-top: 6px;
}
.suggestion {
  padding: 14px 16px;
  border-left: 4px solid var(--brand-500);
  background: var(--brand-50);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--text);
}
.suggestion strong { color: var(--ink-strong); display: block; margin-bottom: 4px; }
.suggestion .placeholder {
  display: inline-block;
  background: var(--surface);
  color: var(--brand-700);
  border: 1px dashed var(--brand-200);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
}

.general-suggestions {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 14px;
}
.general-suggestions h4 { font-size: 14px; font-weight: 800; color: var(--ink-strong); margin-bottom: 6px; }
.general-suggestions ol { padding-left: 20px; font-size: 14px; color: var(--text); }
.general-suggestions li { margin-bottom: 4px; }

/* ---------- disclaimer (MUST be prominent) ---------- */
.disclaimer {
  background: var(--warn-bg);
  border: 2px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0 32px;
  color: var(--warn-ink);
  font-size: 14px;
  line-height: 1.7;
}
.disclaimer h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800;
  color: var(--warn-ink);
  margin-bottom: 10px;
}
.disclaimer p { margin-bottom: 8px; }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer strong { color: #5c4500; }
.disclaimer .age-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: #5c4500;
  font-weight: 600;
}

/* ---------- bottom CTAs ---------- */
.bottom-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin: 8px 0 48px;
  justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font: 700 15px/1 Inter, sans-serif;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background-color .15s;
  text-decoration: none;
}
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30,168,135,.25); }
.btn-ghost   { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-700); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 40px;
  text-align: center;
}
footer .f-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
footer a { color: var(--text-dim); text-decoration: none; font-size: 13px; }
footer a:hover { color: var(--brand-600); }
footer .copyright { color: var(--text-dim); font-size: 12px; }

/* ---------- F5 完整报告解析 - 7 维度卡片展开 ---------- */
.f5-section .f5-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.f5-section .f5-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #ea7a1c);
  color: #fff;
  font: 700 11.5px/1 Inter, sans-serif;
  letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase;
}
.f5-section .f5-badge svg { width: 12px; height: 12px; fill: currentColor; }
.f5-section .f5-sub {
  color: var(--text-dim); font-size: 13px; margin-bottom: 16px;
}

.f5-cards {
  display: grid; gap: 10px;
  margin-top: 4px;
}
.f5-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.f5-card:hover { border-color: var(--brand-200); }
.f5-card.is-open {
  border-color: var(--brand-500);
  box-shadow: 0 4px 16px rgba(46,196,160,.10);
}
.f5-card.is-warn { border-color: #f4b3bb; }
.f5-card.is-warn.is-open { border-color: #c1394a; box-shadow: 0 4px 16px rgba(193,57,74,.12); }

.f5-head-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  user-select: none;
}
.f5-head-row:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: -2px;
}
.f5-code {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 32px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 8px;
  color: var(--brand-700);
  font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
}
.f5-card.is-warn .f5-code {
  background: #fde2e5; border-color: #f4b3bb; color: var(--err-ink);
}
.f5-name {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.f5-name strong {
  font-size: 15px; font-weight: 800; color: var(--ink-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.f5-name small {
  font-size: 12px; color: var(--text-dim); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.f5-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 11.5px/1 Inter, sans-serif;
  white-space: nowrap;
}
.f5-pill.lvl-low { background: var(--brand-50); color: var(--ok-ink); border: 1px solid var(--brand-100); }
.f5-pill.lvl-edge { background: #f0f6fb; color: #466b87; border: 1px solid #cddbe6; }
.f5-pill.lvl-high { background: #fff4d6; color: #b07209; border: 1px solid #f59e0b; }
.f5-pill.lvl-very { background: #fde2e5; color: var(--err-ink); border: 1px solid #f4b3bb; }
.f5-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  transition: transform .25s ease, background-color .2s;
  flex-shrink: 0;
}
.f5-arrow svg { width: 14px; height: 14px; fill: currentColor; }
.f5-card.is-open .f5-arrow {
  transform: rotate(90deg);
  background: var(--brand-600);
  color: #fff;
}

.f5-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 18px;
}
.f5-card.is-open .f5-body {
  max-height: 1200px;
  padding: 4px 18px 18px;
  border-top: 1px dashed var(--brand-100);
}
@media (prefers-reduced-motion: reduce) {
  .f5-body { transition: none; }
  .f5-arrow { transition: none; }
}

.f5-block {
  padding-top: 12px;
  display: grid; gap: 10px;
}
.f5-block .f5-row {
  display: grid; gap: 4px;
}
.f5-block .f5-label {
  font: 700 11.5px/1 Inter, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 6px;
}
.f5-block .f5-label .f5-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font: 800 11px/1 Inter, sans-serif;
}
.f5-block .f5-text {
  font-size: 14px; line-height: 1.65; color: var(--text);
}
.f5-block .f5-score {
  display: inline-block;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  border-radius: 6px;
  padding: 2px 8px;
  font: 800 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
  vertical-align: 1px;
}
.f5-block ul.f5-bullets {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px;
}
.f5-block ul.f5-bullets li {
  font-size: 13.5px; line-height: 1.6; color: var(--text);
  padding-left: 18px; position: relative;
}
.f5-block ul.f5-bullets li::before {
  content: "▸";
  position: absolute; left: 0; top: 0;
  color: var(--brand-600);
  font-weight: 800;
}
.f5-block .f5-action {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-left: 4px solid var(--brand-500);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 13.5px; line-height: 1.6;
  color: var(--ink-strong);
}
.f5-block .f5-action.is-warn {
  background: #fff8f4;
  border-color: #f4b3bb;
  border-left-color: #c1394a;
  color: #6b1a26;
}

.f5-empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--text-dim);
  font-size: 13.5px;
  background: var(--brand-50);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--brand-200);
}

@media (max-width: 720px) {
  .f5-head-row {
    grid-template-columns: 44px 1fr auto auto;
    gap: 8px;
    padding: 12px 14px;
  }
  .f5-name strong { font-size: 14px; }
  .f5-pill { font-size: 11px; padding: 3px 8px; }
  .f5-card.is-open .f5-body { padding: 4px 14px 14px; }
  .f5-block .f5-text { font-size: 13.5px; }
}

/* ---------- F6 个性化改善计划（按薄弱维度行动建议） ---------- */
.f6-section .f6-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.f6-section .f6-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #ea7a1c);
  color: #fff;
  font: 700 11.5px/1 Inter, sans-serif;
  letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase;
}
.f6-section .f6-badge svg { width: 12px; height: 12px; fill: currentColor; }
.f6-section .f6-sub {
  color: var(--text-dim); font-size: 13px; margin-bottom: 16px;
}
.f6-section .f6-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.f6-section .f6-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: #fde2e5; color: var(--err-ink);
  border: 1px solid #f4b3bb;
  font: 700 12px/1.2 Inter, sans-serif;
}
.f6-section .f6-chip .code {
  font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff; color: var(--err-ink);
  padding: 1px 6px; border-radius: 4px;
  border: 1px solid #f4b3bb;
}
.f6-empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--text-dim);
  font-size: 13.5px;
  background: var(--brand-50);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--brand-200);
}
.f6-empty strong { color: var(--ok-ink); display: block; font-size: 14px; margin-bottom: 4px; }

.f6-groups {
  display: grid; gap: 16px;
}
.f6-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  border-left: 4px solid #c1394a;
}
.f6-group .f6-group-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #fff8f4;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.f6-group .f6-group-code {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 32px;
  background: #fde2e5;
  border: 1px solid #f4b3bb;
  border-radius: 8px;
  color: var(--err-ink);
  font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
  padding: 0 8px;
}
.f6-group .f6-group-title {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.f6-group .f6-group-title strong {
  font-size: 15px; font-weight: 800; color: var(--ink-strong);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.f6-group .f6-group-title small {
  font-size: 12px; color: var(--text-dim); font-weight: 600;
}
.f6-group .f6-group-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fde2e5;
  color: var(--err-ink);
  border: 1px solid #f4b3bb;
  font: 700 11.5px/1 Inter, sans-serif;
  white-space: nowrap;
}
.f6-group .f6-group-pill .score {
  display: inline-block;
  margin-left: 4px;
  font: 800 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.f6-actions {
  display: grid; gap: 10px;
  padding: 14px 16px 16px;
}
.f6-action {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-500);
  border-radius: 0 8px 8px 0;
}
.f6-action .f6-action-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  border-radius: 50%;
  font: 800 12px/1 Inter, sans-serif;
  flex-shrink: 0;
}
.f6-action .f6-action-body { min-width: 0; }
.f6-action .f6-action-text {
  font-size: 14px; line-height: 1.6; color: var(--ink-strong);
  font-weight: 600;
}
.f6-action .f6-action-why {
  margin-top: 4px;
  font-size: 12.5px; line-height: 1.55; color: var(--text-dim);
  display: flex; gap: 4px; align-items: flex-start;
}
.f6-action .f6-action-why::before {
  content: "↳";
  color: var(--brand-600);
  font-weight: 800;
  flex-shrink: 0;
}

.f6-section .f6-foot {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 8px;
  font-size: 13px; color: var(--text);
  line-height: 1.6;
}
.f6-section .f6-foot strong { color: var(--ink-strong); }

@media (max-width: 720px) {
  .f6-group .f6-group-head { gap: 8px; padding: 10px 12px; }
  .f6-group .f6-group-title strong { font-size: 14px; }
  .f6-group .f6-group-pill { font-size: 11px; padding: 3px 8px; }
  .f6-actions { padding: 10px 12px 12px; gap: 8px; }
  .f6-action { padding: 10px 12px; gap: 8px; }
  .f6-action .f6-action-text { font-size: 13.5px; }
  .f6-action .f6-action-why { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .f6-group, .f6-action { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .bar-row { grid-template-columns: 80px 1fr 70px; gap: 10px; }
  .bar-row__label { font-size: 13px; }
  .radar-wrap { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .severity-grid { grid-template-columns: repeat(2, 1fr); }
  .score-table { font-size: 13px; }
  .score-table th, .score-table td { padding: 8px 8px; word-break: break-word; overflow-wrap: anywhere; }
  .bar-row__label, .tag-row .label, .f6-action-text, .f9-rel-pair { overflow-wrap: anywhere; }
  .logo { font-size: 18px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .card { padding: 20px 14px; border-radius: 16px; }
  .disclaimer { padding: 18px 16px; }
  .head h1 { font-size: 24px; }
  .head .meta { font-size: 12px; }
  .head .meta code { word-break: break-all; }
}

/* ---------- F9 专家解读（基于维度模式的整体性总结） ---------- */
.f9-section .f9-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.f9-section .f9-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #ea7a1c);
  color: #fff;
  font: 700 11.5px/1 Inter, sans-serif;
  letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase;
}
.f9-section .f9-badge svg { width: 12px; height: 12px; fill: currentColor; }
.f9-section .f9-sub {
  color: var(--text-dim); font-size: 13px; margin-bottom: 16px;
}
.f9-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.f9-block-head {
  display: flex; align-items: center; gap: 8px;
  font: 800 13px/1 Inter, sans-serif;
  color: var(--brand-700);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.f9-block-head::before {
  content: "";
  display: inline-block;
  width: 4px; height: 14px;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  border-radius: 2px;
}
.f9-summary-text {
  font-size: 14.5px; line-height: 1.7; color: var(--ink-strong);
  margin: 0;
}

.f9-rel-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
}
.f9-rel-item {
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-500);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  background: #fff;
}
.f9-rel-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-strong);
  margin-bottom: 6px;
}
.f9-rel-pair {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700;
}
.f9-rel-pair .code {
  font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--brand-50); color: var(--brand-700);
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--brand-100);
}
.f9-rel-pair .score {
  font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.f9-rel-arrow {
  color: var(--brand-600); font-size: 16px; font-weight: 800;
}
.f9-rel-text {
  font-size: 13.5px; line-height: 1.65; color: var(--text);
  margin: 0;
}
.f9-empty {
  text-align: center;
  padding: 20px 12px;
  color: var(--text-dim);
  font-size: 13px;
  background: var(--brand-50);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--brand-200);
  margin: 0;
}

.f9-risk-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.f9-risk-row:first-child { border-top: none; padding-top: 0; }
.f9-risk-label {
  font: 700 12px/1.4 Inter, sans-serif;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: center;
  letter-spacing: .02em;
}
.f9-risk-label.risk-consult { background: #c1394a; }
.f9-risk-label.risk-track   { background: #ea7a1c; }
.f9-risk-label.risk-adjust  { background: var(--brand-600); }
.f9-risk-items {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.f9-risk-items li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-strong);
  padding: 8px 10px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 6px;
}
.f9-risk-items .code {
  font: 800 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff; color: var(--brand-700);
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--brand-100);
  letter-spacing: .04em;
}
.f9-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font: 700 11px/1 Inter, sans-serif;
  white-space: nowrap;
}
.f9-pill.ok         { background: var(--brand-50);  color: var(--ok-ink);  border: 1px solid var(--brand-100); }
.f9-pill.warn-edge  { background: #fff7e6;          color: #8a5a00;       border: 1px solid #f4d28a; }
.f9-pill.warn       { background: #fff1d6;          color: #8a4a00;       border: 1px solid #f0b860; }
.f9-pill.hit        { background: #fde2e5;          color: var(--err-ink); border: 1px solid #f4b3bb; }
.f9-risk-items small {
  display: block; flex-basis: 100%;
  font-size: 12px; line-height: 1.5; color: var(--text-dim);
  margin-top: 2px;
  font-weight: 500;
}
.f9-risk-empty {
  font-size: 13px; color: var(--text-dim);
  margin: 0; padding: 8px 10px;
  background: var(--brand-50);
  border: 1px dashed var(--brand-200);
  border-radius: 6px;
}

.f9-section .f9-foot {
  margin-top: 4px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--brand-50), #fff8f4);
  border: 1px solid var(--brand-100);
  border-left: 4px solid var(--brand-500);
  border-radius: 0 8px 8px 0;
  font-size: 13.5px; color: var(--text);
  line-height: 1.7;
}
.f9-section .f9-foot strong { color: var(--ink-strong); }
.f9-section .f9-foot p { margin: 0 0 8px 0; }
.f9-section .f9-foot p:last-child { margin-bottom: 0; }
.f9-disclaim {
  font-size: 12.5px !important;
  color: var(--text-dim) !important;
  padding-top: 8px;
  border-top: 1px solid var(--brand-100);
  margin-top: 8px !important;
}
.f9-disclaim strong { color: var(--ink-strong); }

@media (max-width: 720px) {
  .f9-block { padding: 14px 14px; }
  .f9-block-head { font-size: 12px; }
  .f9-summary-text { font-size: 14px; }
  .f9-rel-text { font-size: 13px; }
  .f9-risk-row { grid-template-columns: 1fr; gap: 8px; }
  .f9-risk-label { text-align: left; display: inline-block; padding: 6px 10px; }
  .f9-risk-items li { font-size: 13px; }
  .f9-section .f9-foot { font-size: 13px; }
}

.report-locked { border: 1.5px solid var(--brand-300, #a7e8d8); }
.report-locked .num {
  background: linear-gradient(135deg, var(--brand-500, #1ea887), var(--brand-700, #0d7a61));
  color: #fff;
}
.report-locked-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}
.report-locked-cta .btn-primary { font-size: 15px; padding: 12px 26px; }
.locked-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.locked-feature-list li {
  position: relative;
  padding-left: 34px;
  font-size: 14.5px;
  color: var(--text);
}
.locked-feature-list li::before {
  content: "🔒";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 15px;
}
.report-locked-features h2 { margin-bottom: 14px; }

@media (max-width: 720px) {
  .report-locked-cta { flex-direction: column; align-items: stretch; }
  .report-locked-cta .btn { width: 100%; text-align: center; }
}
