/* cert.css — 证书打印（只读生成 + 自动盖章） */

/* 打印容器：屏幕隐藏，打印时由 body.cert-printing 控制显示 */
.cert-print-area { display: none; }

.cert-doc { font-family: "Songti SC", "SimSun", "STSong", serif; color: #1f2a44; }
.cert-frame {
  position: relative;
  border: 6px double #b8860b;
  border-radius: 8px;
  padding: 30px 36px 26px;
  background: #fffdf6;
  background-image:
    radial-gradient(circle at 12% 14%, rgba(200,160,60,0.06), transparent 40%),
    radial-gradient(circle at 88% 86%, rgba(200,160,60,0.06), transparent 40%);
}
.cert-header { text-align: center; border-bottom: 2px solid #b8860b; padding-bottom: 12px; margin-bottom: 16px; }
.cert-org { font-size: 16px; letter-spacing: 2px; color: #9a6a00; }
.cert-title { font-size: 30px; font-weight: 800; letter-spacing: 8px; margin: 8px 0 4px; color: #8a5a00; }
.cert-subtitle { font-size: 11px; letter-spacing: 3px; color: #b08a3a; }

.cert-body { padding: 6px 4px; line-height: 2.1; font-size: 15px; }
.cert-no { font-size: 14px; color: #555; margin-bottom: 8px; }
.cert-no b { letter-spacing: 1px; }
.cert-statement { margin: 4px 0; text-indent: 2em; }
.cert-statement .hl { color: #b3421f; border-bottom: 1px solid #b3421f; padding: 0 2px; }

.cert-footer { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 22px; padding-top: 10px; }
.cert-meta { font-size: 13px; line-height: 1.9; color: #444; }
.cert-meta b { font-weight: 700; }

.cert-seal { width: 130px; height: 130px; margin-left: 10px; transform: rotate(-12deg); opacity: 0.92; }
.cert-seal .seal-svg, .cert-seal .seal-img { width: 100%; height: 100%; }

.cert-watermark {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-22deg);
  font-size: 64px; font-weight: 900; color: rgba(192,57,43,0.28); letter-spacing: 12px;
  border: 6px solid rgba(192,57,43,0.28); padding: 6px 18px; border-radius: 10px; pointer-events: none;
}

/* 公开查验页的屏幕预览（复用同一份证书 HTML） */
.cert-preview .cert-frame { box-shadow: 0 10px 30px rgba(0,0,0,0.12); }

/* 打印：只显示证书区域，隐藏页面其它内容 */
@media print {
  @page { size: A4; margin: 14mm; }
  body.cert-printing > *:not(.cert-print-area) { display: none !important; }
  body.cert-printing .cert-print-area { display: block !important; }
  .cert-frame { box-shadow: none; border-color: #b8860b; }
  .cert-doc, .cert-frame { width: 100%; }
}
