.zx-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 0 24px;
  color: #333;
  font-size: 14px;
}

.zx-label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
}

.zx-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 86px;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  font-family: inherit;
}

.zx-input:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.12);
}

.zx-toolbar {
  width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
}

.zx-field {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin: 16px 0;
}

.zx-field-label {
  color: #555;
  white-space: nowrap;
  flex-shrink: 0;
}

.zx-select {
  flex: 0 0 auto;
  min-width: 180px;
  width: auto;
  height: 36px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  color: #333;
  outline: none;
}

.zx-select:focus {
  border-color: #1976d2;
}

.zx-btn {
  flex-shrink: 0;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #1976d2;
  border-radius: 4px;
  background: #fff;
  color: #1976d2;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.zx-btn:hover {
  background: rgba(25, 118, 210, 0.06);
}

.zx-btn-primary {
  background: #1976d2;
  color: #fff;
}

.zx-btn-primary:hover {
  background: #1565c0;
}

/* 预览区：固定格宽；横向滚动限制在预览内，不撑开父级 */
.zx-preview {
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  line-height: 0;
  min-height: 60px;
}

.zx-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  width: max-content;
  page-break-inside: avoid;
  break-inside: avoid;
}

/* 模板 C：在预览宽度内自动换行 */
.zx-flow {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.zx-flow > .zx-cell {
  margin-bottom: 5px;
}

.zx-cell,
.zx-cell svg {
  display: inline-block;
  vertical-align: top;
  flex-shrink: 0;
}

.zx-b-meta {
  width: 60px;
  height: 60px;
  box-sizing: border-box;
  border: 1px solid #11a45e;
  border-left: none;
  flex-shrink: 0;
  font-size: 13px;
  color: #333;
  line-height: 1;
  background: #fff;
}

.zx-b-meta-top {
  height: 50%;
  border-bottom: 1px solid #11a45e;
  display: flex;
}

.zx-b-meta-top span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100%;
  box-sizing: border-box;
}

.zx-b-meta-top span:first-child {
  border-right: 1px solid #11a45e;
}

.zx-b-meta-bottom {
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
}

.zx-b-block {
  height: 90px;
  display: flex;
  width: max-content;
  max-width: none;
  page-break-inside: avoid;
  break-inside: avoid;
}

.zx-b-left {
  flex-shrink: 0;
  display: block;
}

.zx-b-right {
  display: flex;
  flex-direction: column;
}

.zx-b-steps {
  height: 30px;
  font-size: 0;
  line-height: 0;
  white-space: nowrap;
  overflow: hidden;
}

.zx-b-steps svg {
  display: inline-block;
  vertical-align: top;
}

.zx-b-practice {
  display: flex;
  height: 60px;
  font-size: 0;
  line-height: 0;
  flex-wrap: nowrap;
}

.zx-b-practice .zx-cell {
  flex-shrink: 0;
}

.zx-empty {
  padding: 40px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
  line-height: 1.5;
}

.zx-intro {
  width: 100%;
  box-sizing: border-box;
  margin-top: 28px;
  padding: 16px 18px;
  background: #f7f9fc;
  border-left: 4px solid #1976d2;
  border-radius: 0 6px 6px 0;
  color: #555;
  line-height: 1.8;
}

.zx-intro h2 {
  margin: 18px 0 8px;
  font-size: 17px;
  color: #333;
  font-weight: 600;
}

.zx-intro h2:first-child {
  margin-top: 0;
}

.zx-intro h3 {
  margin: 12px 0 6px;
  font-size: 15px;
  color: #444;
  font-weight: 600;
}

.zx-intro p,
.zx-intro ol,
.zx-intro ul {
  margin: 0;
}

.zx-intro ol,
.zx-intro ul {
  padding-left: 1.4em;
  margin-top: 6px;
}

.zx-intro li {
  margin: 4px 0;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  #zxPreview,
  #zxPreview * {
    visibility: visible !important;
  }

  #zxPreview {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .zx-intro,
  .zx-toolbar,
  .zx-label,
  .zx-input,
  .app-title,
  header,
  footer,
  nav,
  .caidan,
  #float-menu,
  .tool-like-bar {
    display: none !important;
  }

  #zxPreview svg,
  .zx-b-meta {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  @page {
    margin: 8mm;
  }
}

@media (max-width: 768px) {
  .zx-field {
    align-items: center;
  }
}
