/* ============================================================
   信用修复文档生成器独立样式表 (Repair Document Generator)
   ============================================================ */

/* A4 纸张排版与预览规格 (210mm x 297mm) */
.a4-page {
  width: 210mm;
  min-height: 297mm;
  padding: 20mm 18mm;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  box-sizing: border-box;
  color: #1e293b;
  font-family: "SimSun", "Microsoft YaHei", serif;
}

/* 打印与导出 PDF 适配 */
@media print {
  @page {
    size: A4 portrait;
    margin: 15mm 20mm;
  }
  body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .no-print, header, nav, aside, footer, div[th\\:replace] {
    display: none !important;
  }
  .a4-page {
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }
}

/* 淡入动画 */
@keyframes repairDocFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeIn {
  animation: repairDocFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
