/* =====================================================================
   专属 A4 横版高清打印样式（绘本单页直出 + 六大启蒙 A4 4宫格闪卡/古诗挂图）
   ===================================================================== */

@page {
  size: A4 landscape;
  margin: 10mm;
}

body {
  background: #FFFFFF !important;
  color: #3A2E26 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.app-header,
.app-main,
.modal-backdrop,
.toast-container,
.night-warm-overlay {
  display: none !important;
}

.print-root {
  display: block !important;
}

.print-page {
  width: 100%;
  height: 188mm;
  box-sizing: border-box;
  page-break-after: always;
  break-after: page;
  background: #FFFDF8;
  border: 1.5pt solid #E6D8C5;
  border-radius: 12pt;
  padding: 10mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.print-page:last-child {
  page-break-after: auto;
  break-after: auto;
}

/* 绘本封面打印页 */
.print-cover {
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 8mm;
}

.print-cover img {
  width: 72%;
  max-height: 118mm;
  object-fit: cover;
  border-radius: 10pt;
  border: 1pt solid #E6D8C5;
}

.print-cover h1 {
  margin: 0;
  font-size: 30pt;
  color: #4A3B31;
}

.print-cover p {
  margin: 0;
  font-size: 13pt;
  color: #7D6B5D;
}

/* 绘本内页（A4 横版左图右文 / 大图+大字） */
.print-story-page {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 10mm;
  align-items: center;
}

.print-story-page img {
  width: 100%;
  max-height: 158mm;
  object-fit: cover;
  border-radius: 10pt;
}

.print-story-text {
  display: flex;
  flex-direction: column;
  gap: 6mm;
}

.print-story-text p {
  margin: 0;
  font-size: 19pt;
  line-height: 1.75;
  font-weight: 700;
  color: #3A2E26;
}

.print-page-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10pt;
  color: #9A8879;
  border-top: 0.75pt dashed #E2D5C3;
  padding-top: 3mm;
}

/* 封底家长共读小贴士页 */
.print-backcover h2 {
  margin: 0 0 6mm;
  font-size: 20pt;
  color: #4A3B31;
}

.print-backcover ul {
  margin: 0 0 8mm;
  padding-left: 7mm;
  font-size: 13pt;
  line-height: 1.8;
}

/* 六大启蒙模块 A4 4宫格可裁剪闪卡 */
.print-flash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 7mm;
  height: 162mm;
}

.print-flash-card {
  border: 1.5pt dashed #CBBBA6;
  border-radius: 10pt;
  background: #FFFDF8;
  padding: 6mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.print-flash-photo {
  width: 66%;
  height: 44mm;
  object-fit: cover;
  border-radius: 8pt;
  margin-bottom: 2.5mm;
  border: 0.75pt solid #E2D5C3;
}

.print-pictograph {
  width: 13mm;
  height: 13mm;
  padding: 1.5mm;
  border-radius: 4pt;
  background: #FAF5EB;
  border: 0.6pt solid #E2D5C3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.print-pictograph svg {
  width: 100%;
  height: 100%;
}

.print-flash-emoji {
  font-size: 38pt;
  margin-bottom: 2mm;
}

.print-flash-main {
  font-size: 32pt;
  font-weight: 900;
  color: #3A2E26;
}

.print-flash-pinyin {
  font-size: 13pt;
  color: #C97B4B;
  font-weight: 700;
  margin-bottom: 2mm;
}

.print-flash-sub {
  font-size: 12pt;
  color: #6B5A4D;
  margin-top: 2mm;
}

/* 古诗 A4 横版挂图 */
.print-poem-page {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10mm;
  align-items: center;
}

.print-poem-page img {
  width: 100%;
  max-height: 152mm;
  object-fit: cover;
  border-radius: 10pt;
}

.print-poem-body {
  text-align: center;
}

.print-poem-body h2 {
  margin: 0 0 2mm;
  font-size: 26pt;
}

.print-poem-line {
  margin: 3mm 0;
}

.print-poem-line .py {
  font-size: 10.5pt;
  color: #B55B67;
}

.print-poem-line .tx {
  font-size: 19pt;
  font-weight: 800;
  letter-spacing: 2pt;
}
