@charset "UTF-8";

/* ===========================================================
   0. A4 画布（全部用 pt）
   =========================================================== */
.certificate-box{
    width:595pt;              /* 210 mm ≈ 595 pt */
    height:842pt;             /* 297 mm ≈ 842 pt */
    margin:0 auto;
    padding:40pt 28pt 17pt;   /* 14 mm ≈ 40 pt, 10 mm ≈ 28 pt, 6 mm ≈ 17 pt */
    box-sizing:border-box;
    position:relative;
    overflow:hidden;
    background:url("../images/certificate_bg.jpg") no-repeat center center;
    background-size:595pt 842pt;
    font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}

/* ===========================================================
   1. 标题区
   =========================================================== */
.certificate-title{position:relative;text-align:center;}
.certificate-ewm{
    position:absolute;
    top:14pt;                 /* 5 mm ≈ 14 pt */
    right:51pt;               /* 18 mm ≈ 51 pt */
    width:62pt;               /* 22 mm ≈ 62 pt */
    height:62pt;
}
.certificate-ewm img{width:57pt;height:57pt;}  /* 20 mm ≈ 57 pt */
.certificate-name img{width:380px;height:77px;} /* 图片本身像素不变 */
.certificate-number{margin-top:3pt;font-size:11pt;color:#666;}

/* ===========================================================
   2. 正文前导语
   =========================================================== */
.certificate-txt{
    font-size:11pt;           /* 15 px ≈ 11 pt */
    line-height:1.5;
    text-indent:2em;
    margin:6pt 14pt;          /* 2 mm ≈ 6 pt, 5 mm ≈ 14 pt */
}

/* ===========================================================
   3. 信息表格（全部 pt）
   =========================================================== */
.table-wrap{margin-top:8pt;}  /* 3 mm ≈ 8 pt */
.common-table{
    width:98%;
    margin:0 auto;
    table-layout:fixed;
    border-collapse:collapse;
}
.common-table td{
    border:1pt solid #AFCAFF; /* 1 px → 1 pt */
    background:#fff;
    padding:3pt 3.5pt;        /* 1 mm ≈ 3 pt, 1.2 mm ≈ 3.5 pt */
    font-size:11pt;
    line-height:1.3;
    color:#000;
    vertical-align:middle;
    word-wrap:break-word;
    word-break:break-word;
}
.common-table td.table-head{
    background:#EDF4FF;
    font-weight:600;
    text-align:center;
}
/* 四列统一 pt */

.common-table tr > td.table-head:nth-child(1){
    width:85pt !important;   /* 30 mm ≈ 85 pt */
}
.common-table tr > td.table-head:nth-child(3){
 /* width:65pt !important;    30 mm ≈ 85 pt */
	width:85pt !important;   /* 30 mm ≈ 85 pt */
}
.common-table tr > td:nth-child(2){
  /*width:200pt !important;   75 mm ≈ 212 pt，留余量用 155 pt */
	width:165pt !important; 
	background:transparent;
}
.common-table tr > td:nth-child(4){
  /*width:130pt !important;   75 mm ≈ 212 pt，留余量用 155 pt */
	width:155pt !important;
	background:transparent;
}

/* ===========================================================
   4. 落款
   =========================================================== */
   
/* 1. 去掉原绝对定位，改为相对定位 + margin */
.unit-wrap {
  overflow: hidden;
}

.unit-wrap{
    position: relative;   /* 占位，不脱离文档流 */
    margin-top: 6pt;     /* 与表格保持 14 pt 间距 */
    margin-left: auto;    /* 右对齐父容器 */
    margin-right: 45pt;   /* 相当于之前的 right:45pt */
    width: max-content;   /* 宽度由内容决定 */
    text-align: left;
}

.unit-info {
  float: right;
}

.unit-txt{
    font-size:11pt;
    line-height:17pt;         /* 24 px ≈ 17 pt */
    color:#222;
}

/* ===========================================================
   5. 三段说明
   =========================================================== */
.footer-wrap {
	font-size: 9pt;
	color: #222;
	margin-bottom: 2pt;
	text-align: center;
    position: absolute;
	bottom: 50px;
	width: 90%;
}

/* .footer-wrap{ */
/*     position:absolute; */
/*     left:50%; */
/*     bottom:28pt;              10 mm ≈ 28 pt */
/*     transform:translateX(-50%); */
/*     width:80%; */
/*     text-align:center; */
/* } */
/* .footer-line1, */
/* .footer-line2, */
/* .footer-line3{ */
/*     font-size:9pt;            12 px ≈ 9 pt */
/*     line-height:1.4; */
/*     color:#222; */
/*     margin:0 0 2pt 0;         2 px → 2 pt */
/* } */


/* ===========================================================
   6. 打印样式（全部 pt）
   =========================================================== */
@page{size:595pt 842pt;margin:0;}
@media print{
    body{margin:0;padding:0;}
    .certificate-box{transform:none !important;margin:0;}
}