/* ---------- 报告页 ---------- */
.report-wrap { padding: 48px 0 80px; }
.report {
  background: var(--card); border: 1px solid var(--rule-dark);
  box-shadow: 8px 8px 0 var(--paper-deep);
}
.report-head {
  padding: 32px 46px 24px; border-bottom: 2px solid var(--rule-dark);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.report-head h3 { font-family: var(--serif); font-size: 25px; }
.report-head .sub { font-family: var(--sans); font-size: 12px; color: var(--faint); margin-top: 6px; }
.grade { text-align: right; flex: none; }
.grade .score { font-family: var(--serif); font-size: 52px; font-weight: 700; line-height: 1; }
.grade .score small { font-size: 18px; color: var(--faint); font-weight: 400; }
.grade .title-line { font-weight: 600; color: var(--ink); font-size: 15px; margin-top: 4px; }
.report-body { display: grid; grid-template-columns: 1fr 1.15fr; }
.report-left { padding: 34px 38px; border-right: 1px solid var(--rule); overflow: visible; }
.report-right { padding: 34px 40px; }
svg.radar {
  width: 100%; max-width: 340px; display: block; margin: 0 auto;
  overflow: visible;
}
.radar-axis { font-family: var(--sans); font-size: 14px; fill: var(--ink-soft); }
.ability { margin-top: 28px; }
.ability-row { margin-bottom: 15px; }
.ability-row .meta {
  display: flex; justify-content: space-between; font-family: var(--sans);
  font-size: 12.5px; margin-bottom: 6px;
}
.ability-row .meta b { font-size: 13px; }
.bar { height: 6px; background: var(--paper-deep); position: relative; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); transition: width .5s ease; }
.bar i.low { background: var(--accent); }
.ability-note { font-family: var(--sans); font-size: 12.5px; color: var(--faint); margin-top: 12px; }
.ability-note b { color: var(--accent); }

.dim-rows { margin-bottom: 26px; }
.dim-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px dotted var(--rule); font-size: 14.5px;
}
.dim-row .val { font-family: var(--sans); font-weight: 700; font-size: 13px; white-space: nowrap; }
.val.s-good { color: var(--green); }
.val.s-mid { color: var(--ink); }
.val.s-weak { color: var(--gold); }
.val.s-bad { color: var(--accent); }
.val.s-none { color: var(--faint); }

.rx-head { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 16px; }
.rx-head .rx { font-family: var(--serif); font-size: 28px; font-style: italic; color: var(--gold); font-weight: 700; }
.rx-head h4 { font-size: 17px; }
.rx-card {
  border: 1px solid var(--rule-dark); padding: 20px 22px 18px; margin-bottom: 14px;
  background: var(--paper);
}
.rx-card .fw { font-size: 17px; font-weight: 700; }
.rx-card .fw .label { color: var(--accent); margin-left: 8px; }
.rx-card .motto { font-weight: 700; color: var(--ink); font-size: 14.5px; margin: 5px 0 9px; }
.rx-card .trigger { font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft); }
.rx-card .trigger b { color: var(--ink); }
.rx-card .case {
  margin-top: 11px; padding: 11px 15px; background: var(--card);
  border-left: 2px solid var(--gold); font-size: 13px; color: var(--ink-soft);
}
.rx-actions { margin-top: 12px; display: flex; gap: 10px; }

/* 处方卡落地追踪：上次执行对比 + 动作清单 */
.rx-progress {
  margin-top: 11px; font-family: var(--sans); font-size: 12.5px; font-weight: 600;
}
.rx-progress.up { color: var(--green); }
.rx-progress.down { color: var(--accent); }
.rx-checklist { margin-top: 12px; display: grid; gap: 7px; }
.rx-check {
  display: flex; align-items: flex-start; gap: 8px;
  font-family: var(--sans); font-size: 13px; line-height: 1.55; color: var(--ink); cursor: pointer;
}
.rx-check input { margin-top: 2px; accent-color: var(--accent); flex: none; }
.rx-check.done { color: var(--ink-soft); text-decoration: line-through; }

.lesion-box { margin-top: 26px; }
.lesion-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  padding: 5px 13px; border: 1px solid var(--accent); color: var(--accent);
  background: var(--accent-soft);
}
.chip small { font-weight: 400; opacity: 0.75; margin-left: 5px; }
.lesion-empty { font-family: var(--sans); font-size: 13px; color: var(--green); margin-top: 10px; }

.history-box {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule);
}
.history-line { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.history-line b.up { color: var(--green); }
.history-line b.down { color: var(--accent); }
.history-list { margin-top: 10px; font-family: var(--sans); font-size: 12px; color: var(--faint); }
.history-list li { list-style: none; padding: 4px 0; border-bottom: 1px dotted var(--rule); display: flex; justify-content: space-between; }
.history-list li.openable { cursor: pointer; }
.history-list li.openable:hover { color: var(--ink); }
.history-box #btn-history-all { margin-top: 12px; }

/* 报告页「本轮变化」引导区块 */
.report-change {
  margin: 20px 0 8px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--rule-dark);
  border-radius: 8px; display: flex; gap: 14px; align-items: flex-start;
}
.report-change .change-icon {
  font-size: 20px; width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 700;
}
.report-change .change-icon-first { background: #e8f0fe; color: #1a73e8; }
.report-change .change-icon-stable { background: #f1f3f4; color: #5f6368; }
.report-change .change-icon-up { background: #e6f4ea; color: #1e8e3e; }
.report-change .change-icon-shift { background: #fef7e0; color: #e37400; }
.report-change .change-body { flex: 1; min-width: 0; }
.report-change .change-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.report-change .change-desc { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; line-height: 1.5; }
.report-change .change-desc b { color: var(--ink); }
.report-change .mini-btn { font-size: 12.5px; }

/* Aha 钩子：报告免费层"最强 vs 最弱"反差洞察（ADR 0003，始终免费） */
.report-aha {
  margin: 14px 0 8px; padding: 14px 16px;
  background: var(--premium-soft, var(--green-soft)); border: 1px solid var(--premium, var(--signal-fill));
  border-radius: 8px; display: flex; gap: 12px; align-items: flex-start;
}
.report-aha .aha-mark {
  font-size: 18px; line-height: 1; color: var(--premium-deep, var(--signal)); flex-shrink: 0; margin-top: 1px;
}
.report-aha .aha-body { flex: 1; min-width: 0; }
.report-aha .aha-title { font-size: 14px; font-weight: 700; color: var(--premium-ink, var(--on-signal)); margin-bottom: 3px; }
.report-aha .aha-text { font-size: 13px; color: var(--ink-soft, var(--mute)); line-height: 1.55; }
.report-aha .aha-text b { color: var(--premium-deep, var(--signal)); }

/* 历史记录页 */
.hist-list { border-top: 2px solid var(--rule-dark); margin-top: 8px; }
.hist-row {
  display: flex; align-items: baseline; gap: 18px; padding: 16px 8px;
  border-bottom: 1px solid var(--rule); font-family: var(--sans);
}
.hist-row.openable { cursor: pointer; transition: background .15s; }
.hist-row.openable:hover { background: var(--card); }
.hist-date { font-size: 13px; color: var(--ink-soft); width: 150px; flex: none; }
.hist-meta { font-size: 12.5px; color: var(--faint); flex: 1; }
.hist-score { font-size: 12px; color: var(--faint); white-space: nowrap; }
.hist-score b { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-right: 2px; }
.hist-open { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hist-row:not(.openable) .hist-open { color: var(--faint); font-weight: 400; }

/* 成绩趋势（融合进历史综合评估卡片内：整体大图全宽 + 八维等宽铺满，≥3 次展示） */
.aggregate-trend { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule-dark); }
.aggregate-trend-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hist-trend-sub { font-size: 12px; color: var(--faint); margin-left: auto; }
.trend-overall-title { font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 16px 0 8px; }
.trend-overall-chart { width: 100%; }
.trend-overall-svg { display: block; width: 100%; height: auto; }
.trend-overall-svg .trend-gline { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 3; }
.trend-overall-svg .trend-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend-overall-svg .trend-area { fill: var(--accent); opacity: .10; }
.trend-overall-svg .trend-dot { fill: var(--accent); stroke: var(--paper); stroke-width: 1.5; }
.trend-overall-svg .trend-axis { font-size: 12px; fill: var(--faint); font-family: var(--sans); }
.trend-overall-svg .trend-dot-val { font-size: 12px; font-weight: 700; fill: var(--ink); font-family: var(--sans); }
.trend-dims-title { font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
.hist-trend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 900px) { .hist-trend-grid { grid-template-columns: repeat(2, 1fr); } }
.trend-cell { border: 1px solid var(--rule); background: var(--card); padding: 10px 12px 9px; min-width: 0; color: var(--ink); }
.trend-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-spark { width: 100%; height: 30px; display: block; margin-top: 7px; }
.trend-val { font-size: 12px; color: var(--faint); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-val b.up { color: var(--green); }
.trend-val b.down { color: var(--accent); }
@media (max-width: 640px) {
  .hist-trend-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .trend-name { font-size: 12px; }
  .trend-cell { padding: 8px 9px 7px; }
  .trend-spark { height: 24px; margin-top: 6px; }
  .hist-trend-sub { display: none; }
}


.skill-strip {
  margin-top: 26px; padding: 15px 20px; border: 1px dashed var(--rule-dark);
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.strip-btns { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }

