.pz-overlay-bg {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(37, 16, 6, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pz-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #fffdf9, #fdf5e8);
  border-radius: 22px;
  width: 700px;
  max-width: calc(100vw - 24px);
  padding: 22px 24px 22px;
  box-shadow: 0 8px 18px rgba(37, 16, 6, 0.12), 0 30px 80px rgba(37, 16, 6, 0.28);
  z-index: 9999;
  box-sizing: border-box;
  overflow: visible;
  border: 1px solid #ead9c3;
}

.pz-card.is-tall {
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.pz-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: none;
  background: #f8ead6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #6f563e;
  font-size: 18px;
}

.pz-close:hover {
  background: #fff1df;
}

.pz-watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  border-radius: 22px;
}

.pz-watermark span {
  position: absolute;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: rgba(168, 51, 15, 0.085);
  white-space: nowrap;
  user-select: none;
  transform-origin: center;
}

.pz-content {
  position: relative;
  z-index: 5;
}

.pz-header {
  margin-bottom: 12px;
  border-left: 5px solid var(--lh-brand, #d94a1e);
  padding: 2px 0 2px 14px;
  background: linear-gradient(90deg, rgba(217, 74, 30, 0.06), rgba(217, 74, 30, 0));
  border-radius: 0 8px 8px 0;
}

.pz-header h2 {
  font-size: 19px;
  font-weight: 900;
  color: #4b3929;
  margin: 0 0 5px;
  line-height: 1.3;
}

.pz-top-id {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #8b765d;
}

.pz-top-id .sep {
  color: #d2b896;
}

.pz-table {
  width: 100%;
  margin-bottom: 18px;
}

.pz-thead {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  column-gap: 8px;
  align-items: center;
  padding: 7px 12px;
  margin-bottom: 2px;
  font-size: 12px;
  color: #8b765d;
  font-weight: 800;
  white-space: nowrap;
  background: #fbefdd;
  border-radius: 12px;
}

.pz-thead span:nth-child(1) {
  text-align: left;
}

.pz-thead span:nth-child(2) {
  text-align: center;
}

.pz-thead span:nth-child(3) {
  text-align: right;
}

.pz-tr {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  column-gap: 8px;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid #f3e5d0;
}

.pz-tr:hover {
  background: #fff8ed;
}

.pz-col-cat {
  color: #8b765d;
  font-weight: 700;
  text-align: left;
}

.pz-col-name {
  color: #4b3929;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 600;
}

.pz-col-amt {
  text-align: right;
  color: var(--lh-brand-deep, #a8330f);
  font-weight: 900;
  white-space: nowrap;
}

.pz-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding: 8px 4px 6px;
  gap: 16px;
}

.pz-discount {
  font-size: 14px;
  font-weight: 800;
  color: #1f7a45;
  white-space: nowrap;
}

.pz-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  margin-left: auto;
}

.pz-total .label {
  font-size: 13px;
  color: #8b765d;
  font-weight: 700;
}

.pz-total .price {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: var(--lh-brand-deep, #a8330f);
}

.pz-fee {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #fbf3e5;
  border-radius: 12px;
}

.pz-fee .bar {
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--lh-brand, #d94a1e), var(--lh-gold, #d9a441));
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pz-fee .text {
  font-size: 11px;
  color: #6f563e;
  line-height: 1.6;
}

.pz-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.pz-actions a,
.pz-actions button {
  flex: 1;
  height: 42px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  text-decoration: none;
}

.pz-btn-copy {
  background: #fff8ed;
  border: 1.5px solid #dcc8ae !important;
  color: #6f563e;
}

.pz-btn-consult {
  background: linear-gradient(135deg, var(--lh-brand, #d94a1e), var(--lh-ember, #f28b2f));
  color: #fff;
  box-shadow: 0 6px 16px rgba(168, 51, 15, 0.26);
}

.pz-empty {
  text-align: center;
  padding: 80px 20px;
  color: #8f959e;
}

@media (max-width: 720px) {
  .pz-card {
    width: auto;
    max-width: calc(100vw - 24px);
    padding: 18px 14px 20px;
    border-radius: 18px;
    left: 12px;
    right: 12px;
    transform: translateY(-50%);
  }
  .pz-thead,
  .pz-tr {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    column-gap: 8px;
  }
  .pz-total .price {
    font-size: 30px;
  }
}
/* ══ 移动端补丁（配置单成品页） ══ */
@media (max-width: 640px) {
  .pz-table, .pz-tr { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .pz-col-amt { font-size: 13px; }
  .pz-actions { flex-wrap: wrap; gap: 8px; }
  .pz-btn-copy, .pz-btn-consult { min-height: 44px; }
}

/* ══════════════════════════════════════════════
   打印 / 存图视图（🖨 打印按钮触发）
   目标：一张干净的报价单 —— 隐藏一切站点壳，白底黑字，不跨页截断
   ══════════════════════════════════════════════ */
.pz-btn-print { background: linear-gradient(135deg, #2f6d66, #3f8a80); color: #fff; }

@media print {
  .promo-bar, .logo-prices-container, .main-nav, .brand-strip, .site-footer,
  .site-watermark, .toast-container, .pz-close, .pz-actions, .pz-watermark, .pz-overlay-bg {
    display: none !important;
  }
  body { background: #fff !important; }
  .container { padding: 0 !important; max-width: none !important; }
  .pz-card {
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .pz-content { padding: 0 !important; }
  .pz-tr { break-inside: avoid; }
  .pz-tr:hover { background: transparent !important; }
  .pz-total .price { color: #000 !important; }
  .pz-fee .text strong, .pz-fee .text span { color: #333 !important; }
  @page { margin: 12mm; }
}

/* ══════════════════════════════════════════════
   手机端紧凑化：配置单要"一屏能截全"
   ══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .pz-card { max-width: none !important; margin: 8px auto !important; border-radius: 14px !important; }
  .pz-content { padding: 12px 14px !important; }
  .pz-header h2 { font-size: 17px !important; }
  .pz-top-id { font-size: 12px !important; }
  .pz-thead { font-size: 12px !important; }
  .pz-tr { min-height: 28px !important; font-size: 12px !important; }
  .pz-col-name { font-size: 12px !important; }
  .pz-col-amt { font-size: 12px !important; }
  .pz-total .price { font-size: 24px !important; }
  .pz-total .label { font-size: 13px !important; }
  .pz-fee { padding: 6px 0 !important; font-size: 11px !important; }
  .pz-actions a, .pz-actions button { min-height: 38px !important; font-size: 13px !important; }
  .pz-close { width: 30px !important; height: 30px !important; }
}
