/* ===== 打印 / A4 优化（家长辅导手册） ===== */
/* 屏幕：页面底部的「打印本页」按钮条 */
.print-bar{display:flex;justify-content:center;margin:16px 0 6px;}
.print-btn{font:inherit;font-size:14px;padding:8px 20px;border:1px solid #cfcabb;
  background:#fff;border-radius:10px;color:#0f8a8a;cursor:pointer;
  box-shadow:0 1px 2px rgba(0,0,0,.06);}
.print-btn:hover{background:#f1efe7;}

/* A4 纸张与页边距 */
@page{size:A4;margin:13mm 11mm;}

@media print{
  /* 去底色，统一墨色 */
  html,body{background:#fff !important;color:#1a1a1a !important;}
  /* 隐藏屏幕专属元素：导航、翻页、打印按钮、图例 */
  .topnav,.pager,.print-bar,.legend,.fx-link{display:none !important;}
  .wrap{max-width:none !important;padding:0 !important;margin:0 !important;}
  /* 封面渐变换白底，避免打印大片色块费墨 */
  .note-cover{background:#fff !important;color:#1a1a1a !important;
    border:1px solid #ddd;border-radius:8px;padding:10px 12px !important;margin-bottom:8px !important;}
  .note-cover *{color:#1a1a1a !important;}
  .theme-box{background:#f6f6f6 !important;color:#333 !important;}
  /* 卡片 / 气泡 / 手写区 整体不被分页截断 */
  .card,.bubble,.fx-sec,.note-pad,.my-notes,.word-family,.cols,.split,
  .grade-card,.zibei-wrap,.zibei{break-inside:avoid;page-break-inside:avoid;}
  /* 数学例题「分析解答」默认折叠，打印时展开给孩子看 */
  .ans{display:block !important;}
  .toggle{display:none !important;}
  /* 保留课文批注红/蓝/黄高亮、易错红字、田字格等颜色 */
  *{-webkit-print-color-adjust:exact !important;print-color-adjust:exact !important;}
  /* 手写区：显示边框与书写横线 */
  .my-notes,.note-pad{border:1px solid #bbb;border-radius:8px;padding:8px 10px;margin:8px 0;}
  .note-pad .label{font-weight:700;font-size:13px;margin-bottom:4px;}
  .lines{background-image:repeating-linear-gradient(#fff,#fff 27px,#dcdcdc 28px);min-height:110px;}
  /* 字号微调，单页更紧凑 */
  body{font-size:12.5px;line-height:1.6;}
  h1.lesson-title{font-size:19px !important;}
  .fx-sec h3{font-size:15px;}
  a{color:#1a1a1a !important;text-decoration:none;}
  .note{border-style:dashed !important;}
}
