/* ===== 报告阅读版 ===== */
body.preview-body {
  background: #e9e1d3;
  margin: 0;
}
.preview-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid #e2d6c1;
  backdrop-filter: blur(12px);
}
.preview-top .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.preview-top .brand img { width: 34px; height: 34px; border-radius: 50%; }
.preview-top .brand .name { font-size: 13px; font-weight: 800; color: #2a1c14; }
.preview-top .brand .name small { display: block; font-size: 9px; color: #8a7a63; letter-spacing: 1.4px; }
.preview-top .spacer { flex: 1; }
.preview-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.preview-wrap { max-width: 900px; margin: 26px auto 60px; padding: 0 16px; }
.sample-banner {
  background: #fbf3e4;
  border: 1px solid #e6dac6;
  border-left: 3px solid #d9b25f;
  border-radius: 0 9px 9px 0;
  padding: 9px 12px;
  margin: 0 0 12px;
  color: #8a7a63;
  font-size: 11px;
  line-height: 1.7;
}
.sample-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid #e6dac6;
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.75);
}
.sample-toc a {
  font-size: 10px;
  color: #7d6c55;
  border: 1px solid #eadfcc;
  background: #fffdf8;
  border-radius: 999px;
  padding: 2px 7px;
  text-decoration: none;
  white-space: nowrap;
}
.sample-toc a:hover { color: #a5122a; border-color: #d9b25f; }
@media print { .sample-toc { display: none; } }
.paper {
  background: #fffdf8;
  border: 1px solid #e6dac6;
  border-radius: 14px;
  padding: 40px 46px 46px;
  box-shadow: 0 30px 80px -40px rgba(42, 28, 20, 0.35);
}
.paper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #b3122f;
}
.paper-brand { display: flex; align-items: center; gap: 10px; }
.paper-brand img { width: 42px; height: 42px; border-radius: 50%; }
.paper-brand b { display: block; font-size: 13px; letter-spacing: 0.4px; color: #b3122f; }
.paper-brand span { display: block; font-size: 9px; letter-spacing: 2px; color: #a99a84; font-weight: 700; }
.paper-head .date { font-size: 10px; color: #8a7a63; text-align: right; line-height: 1.7; }
.paper-title { margin: 26px 0 4px; font-size: 28px; line-height: 1.3; letter-spacing: -0.02em; color: #2a1c14; }
.paper-subtitle { font-size: 12px; color: #8a7a63; margin-bottom: 20px; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 26px; }
.stat-strip .s { border: 1px solid #eadfcc; background: #fbf4e8; border-radius: 10px; padding: 10px 11px; }
.stat-strip .s b { display: block; font-size: 20px; line-height: 1.2; color: #a5122a; }
.stat-strip .s span { font-size: 9.5px; color: #8a7a63; }

.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 24px; }
.chart-box { border: 1px solid #eadfcc; border-radius: 10px; background: #fffdf8; padding: 9px 10px 4px; page-break-inside: avoid; }
.chart-box .t { font-size: 10px; font-weight: 800; color: #8a7a63; margin: 0 2px 2px; }
.chart { height: 218px; width: 100%; }
.chart-box.is-empty .chart { height: 96px; }
.chart-box.gauge { grid-column: 1 / -1; }
.chart-box.gauge .chart { height: 200px; }
.chart-box.gauge.is-empty .chart { height: 96px; }
@media (max-width: 700px) { .chart-grid { grid-template-columns: 1fr; } .chart-box.gauge { grid-column: auto; } }

.module { margin: 26px 0 0; page-break-inside: avoid; }
.module h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.4;
  color: #2a1c14;
}
.module h2 .idx {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #b3122f;
  color: #fff8ec;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  flex: none;
}
.module .m-sub { font-size: 10.5px; color: #a99a84; margin: 0 0 10px 33px; }
.module .m-tag { font-size: 8.5px; letter-spacing: 1.2px; color: #b9a98f; font-weight: 700; }

.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 10px 0; }
.kv-row { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #eadfcc; font-size: 11.5px; line-height: 1.6; }
.kv-row .l { width: 38%; color: #8a7a63; flex: none; }
.kv-row .v { flex: 1; color: #2a1c14; overflow-wrap: anywhere; }
.kv-row .v.auto { color: #a5122a; font-weight: 700; }

.eval-total {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #fbf1f2, #fdf8ee);
  border: 1px solid #eadfcc;
  border-radius: 10px;
  padding: 10px 13px;
  margin: 10px 0 8px;
}
.eval-total .score { font-size: 24px; font-weight: 900; color: #b3122f; line-height: 1; }
.eval-total .score small { font-size: 9px; color: #8a7a63; font-weight: 700; }
.eval-total .lv { font-size: 10.5px; font-weight: 800; color: #b3122f; background: #fbe9ec; border-radius: 999px; padding: 2px 8px; }
.eval-total .meta { font-size: 10px; color: #8a7a63; line-height: 1.6; }
.eval-list { margin: 4px 0 6px; }
.eval-item { display: grid; grid-template-columns: 0.9fr 1.6fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed #eadfcc; font-size: 10.5px; }
.eval-item:last-child { border-bottom: none; }
.eval-item .n { font-weight: 800; color: #2a1c14; }
.eval-item .d { color: #8a7a63; line-height: 1.55; }
.eval-item .lv { font-weight: 800; color: #8a7a63; font-size: 9.5px; }
.eval-item .lv.on { color: #b3122f; }

.analysis {
  background: #fbf4e8;
  border-left: 3px solid #b3122f;
  border-radius: 0 8px 8px 0;
  padding: 9px 12px;
  margin: 8px 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: #4a372a;
}
.analysis .p { font-weight: 800; color: #7e0e22; }
.analysis.empty { opacity: 0.55; }

.d-table { width: 100%; border-collapse: collapse; font-size: 10.5px; margin: 8px 0 4px; }
.d-table th, .d-table td { border: 1px solid #e6dac6; padding: 5px 7px; text-align: left; vertical-align: top; }
.d-table th { background: #faf3e6; color: #8a7a63; font-size: 9.5px; font-weight: 800; }
.d-table td:first-child { color: #5b4634; font-weight: 700; background: #fcf8f0; }

.summary { background: #fcf8f0; border: 1px solid #eadfcc; border-radius: 10px; padding: 12px 14px; margin: 8px 0; }
.summary .h { font-size: 11px; font-weight: 800; color: #7e0e22; margin-bottom: 3px; }
.summary .t { font-size: 11.5px; line-height: 1.8; color: #4a372a; }

.verdict-box { border: 1px solid #eadfcc; border-radius: 10px; padding: 12px; background: #fcf8f0; }
.verdict-box .big { font-size: 17px; font-weight: 900; color: #b3122f; text-align: center; margin: 4px 0 8px; white-space: pre-line; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.chips span { font-size: 9.5px; border: 1px solid #e6dac6; background: #fffdf8; color: #5b4634; border-radius: 999px; padding: 2px 8px; }
.verdict-reasons { margin: 10px 0 0; padding-left: 18px; font-size: 10.5px; color: #5b4634; line-height: 1.8; }
.muted-empty { font-size: 10.5px; color: #b9a98f; }

.paper-foot { margin-top: 32px; border-top: 1px solid #eadfcc; padding-top: 10px; font-size: 9px; color: #a99a84; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .preview-top .inner {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 8px;
  }
  .preview-top .brand .name small { display: none; }
  .preview-top .spacer { display: none; }
  .preview-actions { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
  .preview-actions .btn { padding: 6px 9px; font-size: 11px; }
  .preview-wrap { margin: 14px auto 30px; padding: 0 10px; }
  .sample-banner { font-size: 10.5px; }
  .sample-toc { padding: 8px; }
}

@media (max-width: 700px) {
  .paper { padding: 24px 18px 30px; border-radius: 10px; }
  .paper-title { font-size: 22px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .kv-grid { grid-template-columns: 1fr; }
  .eval-item { grid-template-columns: 1fr; gap: 3px; }
  .preview-top .inner { height: auto; padding: 10px; flex-wrap: wrap; }
  .preview-wrap { margin-top: 12px; }
}

@media print {
  body.preview-body { background: #fff; }
  .preview-top, .preview-actions, .no-print { display: none !important; }
  .preview-wrap { max-width: none; margin: 0; padding: 0; }
  .paper { border: none; box-shadow: none; border-radius: 0; padding: 0; }
  .module { page-break-inside: avoid; }
  .paper-head { border-bottom-color: #b3122f; }
}
