

/* 证书最外层底板，保持原样不动 */
.Book_fenshu_box {
    margin: 2rem auto;
    width: 678px;
    height: 465px;
    position: relative;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 10px 0 0 45px;
    background-image: url(/skin/js_zhengshu/images/fenshu_book_bg.jpg);
    font-size: 18px;
}
#Book_box {
    width: 100%;
    height: 98%;
    position: relative;
}

/* 左右两大区域容器 */
.cert-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 330px;
    height: 100%;
}
.cert-right {
    position: absolute;
    top: 5px;
    left: 340px;
    width: 320px;
    height: 100%;
}

/* ========== 照片+二维码 同行容器 ========== */
.photo-qrcode-wrap {
    position: absolute;
    top: 50px; /* 整体上下位置，按需调 */
    left: 12px;
    width: 240px;
    display: flex;
    justify-content: space-between;
}
.photo-box {
    width: 110px;
    height: 130px;
    border: 0 solid #999;
}
.qrcode-box {
    padding-top: 12px; /* 整体上下位置，按需调 */
    width: 100px;
    height: 100px;
}
.qrcode-box img {
    width: 100px;
    height: 100px;
}

/* ===== 姓名父容器【相对于cert-left定位】===== */
.cert-left
{
   position: absolute;
   top: 3px;   
}
.name-wrap {
    position: absolute;
    top: 198px;
    left: 40px;
    width: 125px; /* 固定宽度，文字不会向左超出容器 */
    height: 44px;
    max-height: 44px;
}
.name-text {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 单行贴底部下划线；多行向上拓展 */
    line-height: 1.3;
    white-space: normal;
    text-align: center; /* 4字以内单行居中 */
}

/* ===== 左侧项目公共样式（相对于cert-left定位）===== */
.left-item {
    position: absolute;
    color: #000;
    white-space: nowrap;
    text-align: center;
}
.sex-text {
    top: 217px;
    left: 195px;
    width: 70px;
}
.birth-text {
    top: 266px;
    left: 57px;
    width: 220px;
    display: flex;
    gap: 28px; /* ✅ 直接修改这个数值，控制年月日三个span之间的间距 */
    justify-content: center;
}
.birth-digit {
    letter-spacing: 0; /* 数字内部字间距，按需微调 */
}
.cert-no-text {
    top: 316px;
    left: 50px;
    width: 240px;
}
.idcard-text {
    top: 363px;
    left: 20px;
    width: 280px;
}

/* ===== 右侧项目公共样式（相对于cert-right）===== */
.right-item {
    position: absolute;
    color: #000;
    white-space: nowrap;
    text-align: center;
}
.pos-text {
    top: 27px;
    left: 50px;
    width: 200px;
}
.skill-text {
    top: 77px;
    left: 65px;
    width: 180px;
}

.theory-score {
    top: 127px;
    left: 150px;
    width: 100px;
}
.safe-score {
    top: 177px;
    left: 150px;
    width: 100px;
}
.zhonghe-text {
    top: 223px;
    left: 100px;
    width: 160px;
}
.date-wrap {
    position: absolute;
    top: 381px;
    left: 65px;
    width: 110px;
    display: flex;
    gap: 29px; /* =========发证日期：修改gap数值，调整年月日之间距离========= */
    justify-content: space-between;
}

/* 提示按钮区域 */
.tishi {
    width: 780px;
    height: 50px;
    margin: 1rem auto; /* 盒子本身水平居中，上下外边距2rem */
    text-align: center; /* 新增：让里面inline-block的p水平居中 */
    line-height: 30px; /* 可选：垂直居中，和height:50px配套 */
}
.tishi > p {
    border: 1px solid #016DD9;
    background-color: #016DD9;
    color: #fff;
    padding: 8px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}
.tishi > p:first-child {
    background-color: #fff;
    color: #016DD9;
    font-weight: 600;
}

/* 打印分页 */
.Print {
    height: 0;
    page-break-after: always;
}