* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
  }

  body {
    font-size: 10px; /*所有字体大小*/
      text-align: center; 
  }
  img {
    max-width: inherit;
    width: inherit;
  }
/* 表格样式 */
  table {
    border-collapse: collapse;
    width: 100%; /* 固定宽度 */
  }

  th, td {
    border: none;
    /* padding: 1px; */
    text-align: center;
    /* height: auto; */
    width: 100%;
  }
  input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;

  }

.width50 {
  width: 50%;
}
.width30 {
  width: 30%;
}

/* 打印区域通用样式 */
#Z1, #Z2, #Z3, #Z4, #Z5 {
  display: block; /* 默认显示 */
  line-height: 1.2; /* 提高行高，增强可读性 */
  word-wrap:break-word;  /*防止文字溢出 */
  /* padding: 1px; */
}

/* 中文字体大小 */
.cn{
  font-size: 28px; /* 合适的字体大小 */
}
/* 英文+数字文字体大小 */
.en2{
  font-size: 40px; /* 合适的字体大小 */
}
/* 文字靠左 */
.left{
  text-align: left; /* 全部文字右对齐 */
}
/* 文字居中 */
.center{
  text-align: center; /* 全部文字右对齐 */
}
/* 文字靠右 */
.right{
  text-align: right; /* 全部文字右对齐 */
}


  /* 按钮样式 */
  button {
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 50px;
    font-size: calc(0.15 * 200px); /* 动态调整字体大小 */
    text-align: center;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    line-height: 1.5; /* 设置按钮文字的行高 */
  }
  button img {
    width: 100%;
    height: 100%;
    margin-right: 8px;
  }
  /* 使用 media query 适配移动设备 */
  @media (max-width: 600px) {
    button {
      width: 160px;
      height: 40px;
      font-size: calc(0.15 * 150px);  /* 字体大小根据按钮尺寸调整 */
    }
  }


  body {
    font-family: Arial, sans-serif;
  }

  .content {
    width: 180mm; /* 内容宽度 */
    margin-left: auto; /* 靠右对齐 */
    margin-right: 0;
    padding: 10px;
    font-size: 12px;
    box-sizing: border-box;
    border: 1px solid #ccc; /* 边框方便观察分页效果 */
  }

  .page-break {
    page-break-before: always;
    margin-top: 10px;
  }

  .page {
    height: 120mm; /* 每页内容高度  原本70*/
    border: none; /* 虚线边框，标明分页范围 */
    margin-bottom: 50mm;
  }