body{
  margin:0;
  padding:0;
  background-color:#EEE;
}

.hbox{
  width: calc(210mm - 280px);
  padding:8px 0;
  margin:auto;
  font-size:14px;
  color:#666;
}

.nav-menu {
  position: fixed;
  top: 0;
  width: 100%;
  height: 50px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 130px;
  background-image: url("../img/logo.ico");
  background-repeat: no-repeat;
  background-position: 80px center;
  background-size: 40px auto;
}

.nav-menu a {
  color: #333;
  text-decoration: none;
  padding: 0 15px;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #13b061;
}

.nav-menu span {
  float: right;
  white-space: pre;
  line-height: 1.2;
  text-align: right;
  font-size: 10px;
  color: #a8a8a8;
  margin-left: 200px;
}

.paper{
  width:210mm;
  height:296.6mm;
  padding: 0;
  margin:5mm auto;
  background:#fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin-left: calc(250px + 50px);
  margin-top: calc(50px + 5mm);
}

.page{
  width:180mm;
  height:264.6mm;
  padding: 15mm 15mm 17mm 15mm;
  display:inline-block;
  vertical-align: top;
}

.cont{
  margin:0 auto;
  width:180mm;
  font-size:0;
  line-height:0;
  text-align: center;
}

svg{
  margin:0 -1px -1px 0;
  background: rgb(255,255,255,90%);
}

svg text{
  text-anchor: middle;
  dominant-baseline: central;
}

.header{
  line-height:1;
  margin: 0 auto;
}

.headtitle{
  font-size: 35px;
  padding-bottom: 5px;
  text-align: center;
}

.headcont{
  display: flex;
  justify-content: space-between;
  padding: 5px;
  font-size: 18px;
}

.footer{
  margin: 0 auto;
  font-size:14px;
  display: flex;
  justify-content: space-between;
  position: relative;
  align-items: flex-end;
}

.pageon{
  text-shadow: 0 0 4px #fff;
  color:#b7b7b7;
  float:left;
  font-size: 12px;
}

/* 配置面板样式 */
.config-panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100vh;
  margin: 0;
  padding: 12px;
  background: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  z-index: 90;
}

.config-section {
  margin-bottom: 10px;
}

.config-section h3 {
  margin: 50px 0 6px;
  font-size: 14px;
  color: #333;
  padding-bottom: 4px;
  border-bottom: 1px solid #eee;
}

.config-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
  gap: 2px;
}

.config-label {
  width: 100%;
  font-size: 12px;
  color: #666;
}

.config-input {
  width: 100%;
  padding: 3px 6px;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-sizing: border-box;
  font-size: 12px;
}

select.config-input {
  height: 24px;
  background-color: #fff;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
}

select.config-input:focus {
  outline: none;
  border-color: #13b061;
}

.config-button {
  background: #13b061;
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  width: 100%;
  margin-top: 5px;
  font-size: 13px;
}

.config-button:hover {
  background: #0f9050;
}

textarea.config-input {
  min-height: 60px;
  resize: vertical;
}

/* 打印样式 */
@page {
  size: 210mm 297mm;
  margin: 0;
}

@media print {
  body {
    background: none;
    margin: 0;
    padding: 0;
  }
  
  .config-panel {
    display: none;
  }
  
  .paper {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    overflow: hidden;
    width: 210mm;
    height: 297mm;
    margin-left: 0;
    margin-top: 0;
}
  
  .nav-menu {
    display: none !important;
  }
  
  #allpage {
    margin: 0;
    padding: 0;
  }
  
  #printhidebox{
    position: fixed;
    right: 60px;
    bottom: 30px;
    display: block;
    z-index: 999;
    color: #4f4f4f;
    text-align: right;
    font-size: 10px;
  }
}

.config-row.inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.config-row.inline .config-label {
  width: auto;
  white-space: nowrap;
  min-width: 70px;
}

.config-row.inline .config-input {
  flex: 1;
  max-width: 150px;
}

@font-face {
  font-family: "hy-py";
  src: url("../font/py.ttf") format("truetype");
}

.pyfont {
  font-family: "hy-py", "宋体", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -1px;
}

.gc {
  stroke: #13b061;
  fill: #13b061;
}

.fc {
  display: flex;
  align-items: center;
}