/* procurement.css — 全宽询盘单页(对齐 demo v4) */
.bi-wrap{ max-width:1180px; margin:0 auto; padding:28px 20px 80px; }
.bi-head{ display:flex; align-items:baseline; gap:16px; flex-wrap:wrap; border-bottom:1px solid var(--boyue-line); padding-bottom:14px; }
.bi-head h1{ font-size:24px; margin:0; color:var(--boyue-ink); }
.bi-link{ background:none; border:none; color:var(--boyue-accent); cursor:pointer; font-size:14px; }
.bi-hint{ width:100%; color:var(--boyue-sub); font-size:13px; margin:0; }

.bi-body{ display:grid; grid-template-columns:1fr 360px; gap:28px; margin-top:22px; }
@media(max-width:860px){ .bi-body{ grid-template-columns:1fr; } }

.bi-item{ display:flex; align-items:center; gap:14px; background:var(--boyue-card);
  border:1px solid var(--boyue-line); border-radius:10px; padding:12px 14px; margin-bottom:12px; }
.bi-item input.bi-check{ width:18px; height:18px; }
.bi-thumb{ width:54px; height:54px; object-fit:cover; border-radius:8px; background:var(--boyue-line); }
.bi-info{ flex:1; min-width:0; }
.bi-name{ font-weight:600; color:var(--boyue-ink); }
.bi-sku{ font-size:12px; color:var(--boyue-sub); }
.bi-meta{ font-size:12px; color:var(--boyue-sub); margin:2px 0 4px; }
.bi-color{ width:100%; max-width:200px; padding:6px 8px; border:1px solid var(--boyue-line); border-radius:6px; font-size:13px; }
.bi-qty{ text-align:center; }
.bi-qty label{ display:block; font-size:11px; color:var(--boyue-sub); }
.bi-qty-input{ width:64px; padding:6px; border:1px solid var(--boyue-line); border-radius:6px; text-align:center; }
.bi-remove{ background:none; border:none; font-size:20px; color:var(--boyue-sub); cursor:pointer; }

.bi-note-block{ margin-top:16px; }
.bi-note-block label{ font-size:13px; color:var(--boyue-sub); }
.bi-note-block textarea{ width:100%; border:1px solid var(--boyue-line); border-radius:8px; padding:10px; margin-top:6px; resize:vertical; }

.bi-right{ position:sticky; top:24px; align-self:start; }
.bi-summary{ display:flex; gap:18px; background:var(--boyue-card); border:1px solid var(--boyue-line);
  border-radius:10px; padding:12px 16px; margin-bottom:14px; font-size:14px; color:var(--boyue-ink); }

.bi-right details{ background:var(--boyue-card); border:1px solid var(--boyue-line); border-radius:10px;
  padding:10px 14px; margin-bottom:12px; }
.bi-right summary{ cursor:pointer; font-weight:600; color:var(--boyue-ink); }
.bi-right input, .bi-right textarea, .bi-right select{ width:100%; padding:8px; margin-top:8px; border:1px solid var(--boyue-line); border-radius:6px; font-size:13px; box-sizing:border-box; }
.bi-pi-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.bi-pi-grid > label{ display:flex; flex-direction:column; font-size:12px; color:var(--boyue-sub); font-weight:500; }
.bi-pi-grid > label small.bi-pi-hint{ font-size:11px; color:#9c8d84; font-weight:400; margin-top:2px; }
@media(max-width:520px){ .bi-pi-grid{ grid-template-columns:1fr; } }

.bi-btn{ display:block; width:100%; padding:12px; border:none; border-radius:8px; font-size:14px;
  cursor:pointer; margin-top:10px; background:var(--boyue-rose); color:#fff; }
.bi-btn:hover{ background:var(--boyue-champagne); }
.bi-btn.wa{ background:#25D366; }
.bi-btn.wa:hover{ background:#1ebe5b; }
.bi-btn.ghost{ background:none; border:1px solid var(--boyue-line); color:var(--boyue-accent); }
.bi-btn.ghost:hover{ background:var(--boyue-bg); }

.bi-modal-x{ position:absolute; right:12px; top:8px; background:none; border:none; font-size:24px; cursor:pointer; color:var(--boyue-sub); }

#bi-modal{ display:none; position:fixed; inset:0; background:rgba(40,30,25,.5); z-index:9998; }
#bi-modal.show{ display:flex; align-items:center; justify-content:center; }
.bi-modal-box{ background:#fff; border-radius:12px; padding:24px 28px; max-width:560px; width:90%;
  max-height:80vh; overflow:auto; position:relative; }
#bi-preview-body{ white-space:pre-wrap; font-size:13px; color:var(--boyue-ink); margin-top:10px; }
