/* 收款码合并 — 页面样式。变量沿用 site.css。 */

.pq-page main { max-width: 1000px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }

.btn-alt {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-alt:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); filter: none; }

.pq-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

.pq-inputs { display: grid; gap: 0.9rem; }

.pq-slot {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pq-slot:hover, .pq-slot:focus-within { border-color: var(--accent); }
.pq-slot.has-img { border-style: solid; }

.pq-slot-tag {
  justify-self: start;
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.pq-tag-wechat { background: #07c160; }
.pq-tag-alipay { background: #1677ff; }

.pq-slot-body {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 0.4rem;
  background: var(--bg);
  border-radius: 8px;
}

.pq-slot-body img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 6px;
}

.pq-slot-hint { font-size: 0.85rem; color: var(--text-dim); }
.pq-slot-file { font-size: 0.75rem; color: var(--text-dim); overflow-wrap: anywhere; }

.pq-controls {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pq-row { display: flex; flex-wrap: wrap; gap: 0.6rem 0.8rem; }
.pq-checks { gap: 0.45rem 1rem; }

.pq-field { display: grid; gap: 0.3rem; font-size: 0.82rem; color: var(--text-dim); }
.pq-field-wide { flex: 1 1 100%; }

.pq-field select,
.pq-field input[type="text"] {
  min-height: 38px;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}

.pq-field input[type="text"] { width: 100%; }

.pq-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.pq-check input { accent-color: var(--accent); }

.pq-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pq-status { margin: 0; font-size: 0.82rem; color: var(--text-dim); min-height: 1.1em; }

.pq-preview {
  position: sticky;
  top: 1rem;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#pq-canvas { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--bg); }

.pq-how {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pq-how h2 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.pq-how ul { margin: 0; padding-inline-start: 1.15rem; }
.pq-how li { margin: 0.35rem 0; font-size: 0.86rem; color: var(--text-dim); }

@media (max-width: 860px) {
  .pq-app { grid-template-columns: minmax(0, 1fr); }
  .pq-preview { position: static; order: -1; }
}

/* ---------- 打印 ---------- */

.pq-print-area { display: none; }

@media print {
  body.pq-printing > *:not(.pq-print-area) { display: none !important; }
  body.pq-printing .pq-print-area { display: block; }
  body.pq-printing .pq-print-area img { display: block; width: 100%; max-width: 18cm; margin: 0 auto; }
}
