/* 报告页 */
.report-head { padding: 8px 0 18px; }
.report-head h1 { text-wrap: balance; }
.report-head .sub { color: var(--muted); margin: 0; }
.report-details-link { display: inline-block; margin-top: 10px; color: var(--accent-ink); font-weight: 600; }
.report-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3.2vw, 28px); margin-bottom: 14px; box-shadow: var(--shadow); }
.report-block h2 { margin-bottom: 6px; }

/* 分享卡 */
.share-block { padding: 14px; display: grid; gap: 12px; justify-items: center; background: var(--paper); }
.share-card-img { width: min(100%, 440px); border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.share-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* 一眼结论 */
.persona-head { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; }
.persona-badge { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; }
.persona-head h2 { margin: 0; font-size: 1.5rem; }
.persona-tag { margin: 2px 0 0; color: var(--accent-ink); font-weight: 600; }
.verdict { padding-left: 1.3em; display: grid; gap: 8px; font-size: 1.04rem; color: var(--ink-2); }
.verdict li::marker { color: var(--accent); font-weight: 700; }
.child-line { margin-top: 12px; padding: 12px 14px; background: var(--accent-soft); border-radius: 12px; color: var(--accent-ink); }
.quality-chip { display: inline-block; margin: 12px 0 0; padding: 6px 12px; border-radius: 999px; background: var(--paper); font-size: 0.86rem; color: var(--muted); }
.quality-chip[data-tone="notice"], .quality-chip[data-tone="partial"] { background: var(--warm-soft); color: #7a4a12; }

/* 六维 */
.radar-wrap { display: grid; justify-items: center; margin: 8px 0 4px; }
.radar { width: min(100%, 400px); height: auto; }
.radar-legend { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 0 0 12px; font-size: 0.82rem; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; display: inline-block; width: 18px; height: 10px; border-radius: 3px; }
.lg-line::before { height: 3px; background: var(--accent); }
.lg-band::before { background: var(--accent-soft); border: 1px solid #bfe0d7; }
.lg-dash::before { height: 0; border-top: 2px dashed var(--warm); }
.dim-chips { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.dim-chip { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--paper); border-left: 4px solid var(--line-strong); font-size: 0.9rem; }
.dim-chip span { color: var(--muted); }
.dim-chip.lv-strong { border-left-color: var(--accent); background: var(--accent-soft); }
.dim-chip.lv-growth { border-left-color: var(--warm); background: var(--warm-soft); }

/* 逐维证据 */
.dim-detail { border-top: 1px solid var(--line); padding: 12px 0 6px; }
.dim-detail:last-of-type { border-bottom: 1px solid var(--line); }
.dim-detail summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 6px 0; }
.dim-detail summary::-webkit-details-marker { display: none; }
.dim-detail summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform 160ms; margin-right: 2px; }
.dim-detail[open] summary::before { transform: rotate(45deg); }
.dim-name { font-weight: 700; flex: 1; }
.dim-level { font-size: 0.82rem; padding: 2px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.lv-strong .dim-level { background: var(--accent-soft); color: var(--accent-ink); }
.lv-growth .dim-level { background: var(--warm-soft); color: #7a4a12; }
.dim-count { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.ev { margin: 8px 0 10px; padding: 10px 14px; border-radius: 10px; background: var(--paper); }
.ev strong { display: block; margin-bottom: 4px; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--muted); }
.ev ul { display: grid; gap: 4px; color: var(--ink-2); }
.ev-win { border-left: 3px solid var(--accent); }
.ev-rethink { border-left: 3px solid var(--warm); }
.ev-rethink p { margin: 0; color: var(--ink-2); }
.ev-guide p { margin: 0 0 4px; color: var(--ink-2); font-size: 0.95rem; }

/* 思维习惯 */
.habit { padding: 12px 14px; border-radius: 10px; background: var(--warm-soft); margin-top: 10px; }
.habit strong { display: block; margin-bottom: 4px; color: #7a4a12; }
.habit p { margin: 0; color: var(--ink-2); }
.habit .tip { margin-top: 6px; }

/* 家长建议 */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.card { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.card-label { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--accent-ink); font-weight: 700; }
.card strong { font-size: 1rem; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* 课程与预约 */
.cta-block { border-color: #cfe6df; }
.course-list { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px; }
.course-list li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); }
.course-list span { color: var(--ink-2); font-size: 0.95rem; }
.course-list em { color: var(--muted); font-style: normal; font-size: 0.82rem; }
.contact { display: grid; gap: 6px; }
.contact .qr { width: 160px; height: 160px; border-radius: 12px; border: 1px solid var(--line); }

/* 顾问 */
.advisor summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.advisor-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 10px 0; font-variant-numeric: tabular-nums; }
.advisor-table th, .advisor-table td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.advisor-table th { color: var(--muted); font-weight: 600; }
.code-field { display: grid; gap: 6px; margin: 10px 0; font-size: 0.85rem; color: var(--muted); }
.code-field textarea { width: 100%; font-family: var(--mono); font-size: 0.75rem; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px; resize: vertical; background: var(--paper); color: var(--ink-2); }

.disclaimer { color: var(--muted); font-size: 0.85rem; padding: 4px 6px; }
.report-actions { display: flex; justify-content: center; margin-top: 12px; }

/* 本次结果与逐题明细 */
.report-save-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border: 1px solid #cfe6df; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.report-save-status .btn { min-height: 36px; padding: 5px 12px; }
.report-overview { font-size: 1.08rem; line-height: 1.8; color: var(--ink-2); }
.report-dimensions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 12px; margin-top: 18px; }
.report-dimension { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--paper); }
.report-dimension h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.04rem; }
.report-dimension p { margin: 6px 0; }
.report-dimension .dim-evidence { padding-left: 10px; border-left: 3px solid var(--accent-soft); color: var(--ink-2); font-size: .92rem; }
.report-dimension .dim-next { color: var(--accent-ink); }
.report-advice { margin: 0; padding-left: 1.5rem; display: grid; gap: 8px; }
.report-item { border-top: 1px solid var(--line); }
.report-item:last-child { border-bottom: 1px solid var(--line); }
.report-item summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 14px 4px; cursor: pointer; }
.report-item summary:hover { color: var(--accent-ink); }
.report-item .item-number { white-space: nowrap; font-weight: 700; color: var(--accent-ink); }
.item-outcome { white-space: nowrap; font-size: .82rem; color: var(--muted); }
.item-outcome.outcome-partial { color: #835414; }
.report-item-body { padding: 2px 10px 18px 42px; color: var(--ink-2); }
.item-scene { background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.item-fig, .report-option-fig { max-width: 100%; overflow-x: auto; margin: 12px 0; }
.item-fig > *, .report-option-fig > * { max-width: 100%; }
.report-option-list { padding-left: 1.7rem; display: grid; gap: 8px; }
.report-option-list li { padding-left: 4px; }
.report-option-fig { margin: 4px 0 8px; }
.answer-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; margin: 14px 0; }
.answer-pair div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--paper); }
.answer-pair dt { font-size: .82rem; color: var(--muted); }
.answer-pair dd { margin: 5px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.item-explanation { margin: 0; line-height: 1.7; }
.report-actions { align-items: center; gap: 10px; flex-wrap: wrap; }
.report-actions .code-field { flex: 0 0 100%; }
.code-field summary { cursor: pointer; }

@media (max-width: 620px) {
  .report-item summary { grid-template-columns: auto minmax(0, 1fr); }
  .item-outcome { grid-column: 2; white-space: normal; }
  .report-item-body { padding-left: 8px; }
}

@media print {
  .app { max-width: none; padding: 0; }
  .btn, .share-actions, .report-actions, .quiz-top, .code-field, .advisor .row { display: none !important; }
  .report-block { box-shadow: none; break-inside: auto; border-color: #ccc; }
  .share-block { display: none !important; }
  .report-dimension { break-inside: avoid; }
  .admin-header, .detail-toolbar, .report-save-status { display: none !important; }
  .report-item { break-inside: avoid; }
  .report-item > *:not(summary) { display: block !important; }
  .report-item summary { display: grid; }
  body { background: #fff; }
}
