/* ============================================================
   print.css — 打印 / 导出 PDF 优化
   作品集场景:用浏览器"打印为 PDF"可得到一份干净文档。
   ============================================================ */
@media print {
  :root {
    --bg-0: #fff; --bg-1: #fff; --bg-2: #fff; --panel: #fff; --panel-2: #f4f6fa;
    --txt-1: #111; --txt-2: #333; --txt-3: #555; --line: #ccc; --line-soft: #e0e0e0;
    --c-teal: #0b7d72; --c-blue: #2f5fe0; --c-amber: #b3760d; --c-violet: #6a43c8;
  }
  body { background: #fff; color: #222; }
  body::before, body::after { display: none !important; }

  .topbar, .sidebar, .toc, .scrim, .topbar__theme, .topbar__menu,
  .prevnext, .hero__cta, .modcard__go { display: none !important; }

  .layout { display: block; max-width: none; }
  .main { padding: 0; }
  .main__inner, .home { max-width: none; }

  a { color: #1a4d8f; text-decoration: none; }
  .card, .metric, .callout, .modcard, .block, .tablewrap { box-shadow: none !important; break-inside: avoid; }
  .section, .divider, .summary, table { break-inside: avoid; }
  .divider { page-break-before: auto; }
  h1, h2, h3 { break-after: avoid; }
  .ctable thead th, .risk thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .metric__val, .modcard__no, .divider__no { -webkit-text-fill-color: var(--c-teal); color: var(--c-teal); }

  /* 展开所有内容,关闭视口裁剪 */
  [style*="content-visibility"], .section { content-visibility: visible !important; }
}
