:root{
  --line: 2px;
  --black: #000;
  --yellow: #f2d54a;
  --panel-bg: #fff;
  --page-bg: #f3f4f6;
  --muted: #666;
  --border: #ddd;
}

*{
  box-sizing: border-box;
}

html,
body{
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei","PingFang SC","SimHei",sans-serif;
  background: var(--page-bg);
  color: #111;
}

.app{
  display: flex;
  min-height: 100vh;
}

/* 左侧表单 */
.form-panel{
  width: 430px;
  min-width: 430px;
  background: var(--panel-bg);
  border-right: 1px solid var(--border);
  padding: 20px;
  overflow-y: auto;
}

.form-panel h2{
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.3;
}

.form-desc{
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.section-title{
  margin: 22px 0 12px;
  padding-left: 10px;
  border-left: 4px solid #111;
  font-size: 16px;
  font-weight: 700;
}

.form-group{
  margin-bottom: 14px;
}

.form-group label{
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.form-group input,
.form-group textarea{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus{
  border-color: #111;
}

.form-group textarea{
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}

.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fafafa;
}

.check-item{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  user-select: none;
  cursor: pointer;
}

.check-item input[type="checkbox"]{
  width: 16px;
  height: 16px;
  margin: 0;
}

.check-tip{
  margin-top: 6px;
  font-size: 12px;
  color: #777;
  line-height: 1.6;
}

.btn-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn{
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary{
  background: #111;
  color: #fff;
}

.btn-primary:hover{
  background: #000;
}

.btn-secondary{
  background: #666;
  color: #fff;
}

.btn-secondary:hover{
  background: #555;
}

/* 右侧预览 */
.preview-panel{
  flex: 1;
  padding: 24px;
  overflow: auto;
}

.preview-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-toolbar h2{
  margin: 0;
  font-size: 24px;
}

.preview-tip{
  font-size: 13px;
  color: var(--muted);
}

.preview-wrap{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: max-content;
}

.tag{
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ececec;
  color: #666;
  font-size: 12px;
  vertical-align: middle;
  margin-left: 8px;
}

/* 公示牌 */
.signboard{
  width: 1120px;
  background: var(--yellow);
  color: var(--black);
  border: var(--line) solid var(--black);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.sign-inner{
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: stretch;
  min-height: 420px;
}

/* 左列 */
.left-side{
  display: flex;
  flex-direction: column;
  border-right: var(--line) solid var(--black);
  min-height: 100%;
}

.left-main{
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: var(--line) solid var(--black);
  min-height: 200px;
  overflow: hidden;
  flex: none;
}

.big-p{
  font-size: 220px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 2px;
}

.left-bottom{
  padding: 16px 14px;
  font-size: 18px;
  line-height: 1.9;
  word-break: break-word;
  overflow: hidden;
  flex: none;
}

/* 右列 */
.right-side{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.right-top{
  border-bottom: var(--line) solid var(--black);
}

.title-box{
  text-align: center;
  padding: 16px 12px 14px;
  border-bottom: var(--line) solid var(--black);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.4;
  word-break: break-word;
}

.pricing-box{
  padding: 12px 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
}

.right-mid{
  overflow: hidden;
}

.right-bottom{
  padding: 14px 18px;
  font-size: 18px;
  line-height: 1.8;
  word-break: break-word;
}

.notice-line{
  margin-bottom: 4px;
}

/* 表格：单向绘线，避免线条重叠 */
.charge-table{
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

.charge-table th,
.charge-table td{
  border: none;
  border-left: var(--line) solid var(--black);
  border-bottom: var(--line) solid var(--black);
  padding: 12px 8px;
  text-align: center;
  vertical-align: middle;
  font-size: 20px;
  line-height: 1.5;
  word-break: break-word;
  background: transparent;
  font-weight: 700;
}

.charge-table thead th{
  border-top: none;
  font-weight: 800;
}

.no-left-border{
  border-left: none !important;
}

.charge-table td.vehicle-cell{
  font-size: 22px;
  font-weight: 700;
}

.empty-row{
  padding: 24px 12px !important;
  font-size: 18px !important;
  text-align: center;
}

@media (max-width: 1200px){
  .app{
    flex-direction: column;
  }

  .form-panel{
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .preview-wrap{
    justify-content: flex-start;
  }

  .signboard{
    transform: scale(0.78);
    transform-origin: top left;
    margin-bottom: -140px;
  }
}

@media (max-width: 900px){
  .signboard{
    transform: scale(0.62);
    margin-bottom: -260px;
  }
}

@media print{
  body{
    background: #fff;
  }

  .form-panel,
  .preview-toolbar{
    display: none !important;
  }

  .preview-panel{
    padding: 0;
  }

  .preview-wrap{
    display: block;
  }

  .signboard{
    transform: none !important;
    box-shadow: none;
    margin: 0 auto;
  }
}
