/* ============ 打印层：高清 PDF 导出 ============
   导出路径是 window.print() → 「另存为 PDF」。
   浏览器在此路径下会把文字写成带嵌入字体的文本对象，
   因此 PDF 天然可选中/可复制，可被 ATS 完整解析。
   本文件只负责把「屏幕上的缩放外壳」剥掉，让浏览器按真实 A4 尺寸分页。
============================================== */

@page {
  size: A4;
  margin: 0;
}

@media print {
  html, body {
    background: #fff !important;
    width: 210mm;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* 隐藏一切非简历内容 */
  .appbar, .bottombar, .tpl-bar, .side-panel, .autosave, .toasts,
  .modal-mask, .preview-head, .no-print, .auth-page > footer {
    display: none !important;
  }

  .page, .preview-shell, .wrap, .editor-shell { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .preview-canvas {
    border: 0 !important; padding: 0 !important; max-height: none !important;
    overflow: visible !important; display: block !important; background: #fff !important;
    border-radius: 0 !important;
  }
  .preview-stage { display: block !important; }

  /* 剥掉屏幕上为了自适应而做的容器缩放，按真实 A4 尺寸输出。
     box-shadow 必须清掉：屏幕上的纸张投影挂 .paper-frame，打印会变成一圈灰边 */
  .paper-frame {
    position: static !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    box-shadow: none !important;
  }
  .cv-page {
    position: static !important;
    width: 210mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    transform: none !important;
  }
  .cv-page.is-singlepage { height: 297mm !important; }
  .cv-page.is-multipage { min-height: 0 !important; }

  a { text-decoration: none !important; }
  .folio-link { border-color: #ddd7f3 !important; }
}
