/* 询价单：浮动按钮 + 右侧滑出面板 */

#pd-inq-btn {
  position: fixed; right: 22px; bottom: 92px; z-index: 99998;
  display: flex; align-items: center; gap: 8px;
  background: #111827; color: #fff; border: 0; cursor: pointer;
  padding: 13px 20px; border-radius: 30px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: .2s;
}
#pd-inq-btn:hover { background: #ee6f2d; transform: translateY(-2px); }
#pd-inq-btn .n {
  background: #ee6f2d; color: #fff; border-radius: 11px; min-width: 22px; height: 22px;
  line-height: 22px; text-align: center; font-size: 12px; padding: 0 6px;
}
#pd-inq-btn.has .n { background: #25d366; }

#pd-inq-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 99998;
  opacity: 0; visibility: hidden; transition: .25s;
}
#pd-inq-mask.on { opacity: 1; visibility: visible; }

#pd-inq-panel {
  position: fixed; right: 0; top: 0; bottom: 0; width: 420px; max-width: 92vw;
  background: #fff; z-index: 99999; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .3s cubic-bezier(.2,.8,.3,1);
  box-shadow: -8px 0 30px rgba(0,0,0,.18);
}
#pd-inq-panel.on { transform: translateX(0); }
#pd-inq-panel .hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid #eef0f3; font-size: 16px;
}
#pd-inq-panel .hd .x { cursor: pointer; font-size: 24px; color: #999; line-height: 1; }
#pd-inq-panel .hd .x:hover { color: #333; }
#pd-inq-panel .bd { flex: 1; overflow-y: auto; padding: 14px 20px; }
#pd-inq-panel .empty { text-align: center; color: #6b7280; padding: 60px 10px; font-size: 14px; line-height: 2; }
#pd-inq-panel .empty span { font-size: 12.5px; color: #8b919b; }
#pd-inq-panel .row {
  display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f5f6f7;
}
#pd-inq-panel .row img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #f4f5f7; }
#pd-inq-panel .row .info { flex: 1; min-width: 0; }
#pd-inq-panel .row .info a {
  display: block; font-size: 13.5px; color: #111827; text-decoration: none; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
#pd-inq-panel .row .info em { font-style: normal; font-size: 11.5px; color: #6b7280; }
#pd-inq-panel .row .rm { cursor: pointer; color: #8b919b; font-size: 20px; padding: 0 4px; }
#pd-inq-panel .row .rm:hover { color: #e11d48; }

#pd-inq-panel .ft { padding: 16px 20px 20px; border-top: 1px solid #eef0f3; background: #fafbfc; }
#pd-inq-panel .ft textarea {
  width: 100%; min-height: 76px; border: 1px solid #dcdfe3; border-radius: 6px;
  padding: 10px 12px; font-size: 13px; resize: vertical; box-sizing: border-box;
}
#pd-inq-panel .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#pd-inq-panel .acts .pd-btn { padding: 11px 18px; font-size: 13.5px; }
#pd-inq-panel .pd-inq-clear {
  background: none; border: 0; color: #6b7280; font-size: 12.5px; cursor: pointer;
  text-decoration: underline; padding: 11px 4px;
}
#pd-inq-panel .pd-inq-clear:hover { color: #e11d48; }

/* 列表/详情页的 Add to Inquiry 按钮 */
.pd-inq-add {
  display: inline-block; padding: 8px 18px; border-radius: 4px; cursor: pointer;
  background: #fff; border: 1px solid #dcdfe3; color: #333 !important;
  font-size: 13px; line-height: 1.2; text-decoration: none !important; transition: .18s;
}
.pd-inq-add:hover { background: #111827; border-color: #111827; color: #fff !important; }
.pd-inq-add.on { background: #fff1e8; border-color: #ffd9c2; color: #ee6f2d !important; }

@media (max-width: 900px) {
  #pd-inq-btn { right: 14px; bottom: 82px; padding: 11px 16px; font-size: 13px; }
  #pd-inq-btn .tx { display: none; }
  #pd-inq-panel { width: 100%; max-width: 100%; }
}
