/* FreeTool — 打印 / 导出简报样式
   仅在 @media print 下生效：隐藏导航、页脚、广告、新闻、无关区块与按钮，
   仅保留当前测算参数、核心结果与逐年明细表。 */

@media print {
  /* 全局：隐藏无关元素 */
  header,
  .ad-frame,
  .no-print,
  .print-hide,
  input[type="range"] {
    display: none !important;
  }

  /* 仅保留核心工具区块 */
  .print-keep {
    display: block !important;
  }

  /* 首页只打印退休测算，投资页只打印投资比较 */
  body[data-page="home"] #invest { display: none !important; }
  body[data-page="investment"] #calc { display: none !important; }
  body[data-page="pension"] .print-hide { display: none !important; }

  /* 强制展开逐年明细表 */
  .detail-wrap {
    display: block !important;
  }

  /* 背景与排版：纯白、清晰 */
  html, body {
    background: #fff !important;
    color: #0F172A !important;
  }
  main { padding: 0 !important; }
  section { padding-top: 0 !important; padding-bottom: 0 !important; }
  #calc, #invest {
    padding: 0 !important;
    border: none !important;
    background: #fff !important;
  }
  .bg-white, .bg-\[\#F8FAFC\], .bg-\#F8FAFC {
    background: #fff !important;
  }
  table { font-size: 11px !important; }
  th, td { padding: 3px 6px !important; }
  .border, .border-y, .border-t, .border-b,
  .border-\[\#E2E8F0\] {
    border-color: #E2E8F0 !important;
  }

  /* 链接不显示下划线路径 */
  a { color: #0F172A !important; text-decoration: none !important; }

  @page {
    margin: 1.4cm;
  }
}
