/* 报告:浅色 A4 版式,供 html2pdf 与打印使用。不依赖 Tailwind,避免截图时样式丢失。 */
#report { width: 100%; max-width: 720px; margin: 0 auto; background: #fffdf7; color: #2a2118; padding: 36px 40px;
  font: 13.5px/1.75 -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
#report * { box-sizing: border-box; }
#report h1, #report h2, #report h3, #report .cover .type { font-family: "Songti SC","STSong","Noto Serif CJK SC","SimSun",Georgia,serif; }
#report h1 { font-size: 26px; line-height: 1.3; margin: 0; color: #2b1a0c; }
#report h2 { font-size: 17px; margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 2px solid #b8892f; color: #2b1a0c; }
#report h3 { font-size: 14.5px; margin: 18px 0 6px; color: #5a3a12; }
#report p { margin: 6px 0; }
#report .muted { color: #6b7280; font-size: 12px; }
#report .cover { border-bottom: 1px solid #e5e7eb; padding-bottom: 18px; margin-bottom: 8px; }
#report .cover .kicker { color: #9a6b1f; font-weight: 600; letter-spacing: .08em; font-size: 12px; }
#report .cover .type { margin-top: 12px; font-size: 20px; font-weight: 700; color: #6b4512; }
#report .motto { margin: 12px 0; padding: 10px 14px; background: #faf3e3; border-left: 3px solid #b8892f; font-style: italic; }
#report .warn { margin: 10px 0; padding: 10px 14px; background: #fffbeb; border-left: 3px solid #f59e0b; }
#report .two { display: flex; gap: 20px; align-items: flex-start; }
#report .two > div { flex: 1; min-width: 0; }
#report table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12.5px; }
#report th { background: #f8f0dc; color: #5a3a12; text-align: left; font-weight: 600; }
#report th, #report td { border: 1px solid #d1d5db; padding: 6px 8px; vertical-align: top; }
#report td.num, #report th.num { text-align: right; white-space: nowrap; }
#report .bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; min-width: 60px; }
#report .bar > i { display: block; height: 100%; background: #b8892f; }
#report .kpis { display: flex; gap: 10px; margin: 10px 0; }
#report .kpi { flex: 1; border: 1px solid #ead9b0; background: #f8f0dc; border-radius: 8px; padding: 10px 12px; }
#report .kpi b { display: block; font-size: 19px; color: #6b4512; line-height: 1.3; }
#report .kpi span { font-size: 11.5px; color: #6b7280; }
#report .prod { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
#report .prod .name { font-weight: 600; color: #111827; }
#report .prod .meta { font-size: 11.5px; color: #6b7280; margin: 2px 0 4px; }
#report .prod .amt { float: right; font-weight: 700; color: #6b4512; }
#report .chip { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 999px; background: #faf3e3; color: #7a5214; border: 1px solid #e0c98f; margin-right: 4px; }
#report .step { display:flex; gap:10px; margin:6px 0; }
#report .step b { flex:none; width:22px; height:22px; border-radius:50%; background:#b8892f; color:#fff; font-size:12px; text-align:center; line-height:22px; }
#report ol, #report ul { margin: 6px 0; padding-left: 20px; }
#report .disclaimer { margin-top: 28px; padding: 12px 14px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 11.5px; color: #4b5563; }
#report .avoid, #report .prod, #report table, #report .kpis, #report .motto, #report .warn { page-break-inside: avoid; break-inside: avoid; }
#report .pagebreak { page-break-before: always; break-before: page; }

/* 导出PDF时固定为A4版心宽度,保证手机和电脑导出的PDF一致 */
#report.pdf { width: 720px; max-width: none; }

/* 手机阅读版式(导出PDF时不生效) */
@media (max-width: 640px) {
  #report:not(.pdf) { padding: 22px 16px; font-size: 14.5px; border-radius: 12px; }
  #report:not(.pdf) h1 { font-size: 21px; }
  #report:not(.pdf) h2 { font-size: 16.5px; margin-top: 26px; }
  #report:not(.pdf) .cover .type { font-size: 17px; }
  #report:not(.pdf) .two { flex-direction: column; gap: 6px; }
  #report:not(.pdf) .two > div { width: 100%; }
  #report:not(.pdf) .kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #report:not(.pdf) .kpi b { font-size: 17px; }
  #report:not(.pdf) table { font-size: 12px; }
  #report:not(.pdf) th, #report:not(.pdf) td { padding: 5px 6px; }
  #report:not(.pdf) .hide-m { display: none; }
  #report:not(.pdf) .prod .amt { float: none; display: block; margin-bottom: 2px; }
  #report:not(.pdf) .prod .name { word-break: break-all; }
  #report:not(.pdf) .chip { margin-bottom: 3px; }
}

@media print {
  body { background: #fff !important; }
  nav, footer, #settings, .screen:not(#s-report), #s-report > div:first-child { display: none !important; }
  main { max-width: none !important; padding: 0 !important; }
  #s-report { padding: 0 !important; }
  #report { width: auto; padding: 0; }
  @page { size: A4; margin: 14mm; }
}
