/* 询价车样式（/static/css/quote.css）
   与站点品牌色保持一致，独立命名空间 hq-，不污染模板 class */
:root {
  --hq-brand: var(--brand, #0047ba);
  --hq-radius: 10px;
}

.hq-fab {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 9990;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--hq-brand);
  color: #fff;
  font: 500 14px/1.2 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  cursor: pointer;
}

.hq-fab.is-on { display: inline-flex; }
.hq-fab:hover { filter: brightness(1.06); }

.hq-fab__n {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #fff;
  color: var(--hq-brand);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.hq-mask {
  position: fixed;
  inset: 0;
  z-index: 9991;
  background: rgba(15, 23, 42, .5);
  display: none;
}

.hq-mask.is-on { display: block; }

.hq-panel {
  position: fixed;
  z-index: 9992;
  left: 50%;
  top: 50%;
  width: min(92vw, 560px);
  max-height: 86vh;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  overflow: hidden;
  font: 14px/1.6 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
}

.hq-panel.is-on { display: flex; }

.hq-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eef1f5;
  font-size: 16px;
  font-weight: 600;
}

.hq-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}

.hq-bd {
  padding: 8px 18px 4px;
  overflow: auto;
}

.hq-empty {
  padding: 28px 0;
  color: #94a3b8;
  text-align: center;
}

.hq-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #eef1f5;
}

.hq-item__t {
  font-size: 13px;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hq-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.hq-qty button {
  width: 26px;
  height: 26px;
  border: 0;
  background: #f8fafc;
  color: #475569;
  font-size: 15px;
  cursor: pointer;
}

.hq-qty span {
  min-width: 30px;
  text-align: center;
  font-size: 13px;
}

.hq-del {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 16px;
  cursor: pointer;
}

.hq-del:hover { color: #ef4444; }

.hq-form {
  padding: 12px 18px 18px;
  border-top: 1px solid #eef1f5;
  background: #fbfdff;
}

.hq-form label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  color: #64748b;
}

.hq-form input,
.hq-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 9px 11px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: #1f2937;
  outline: none;
}

.hq-form input:focus,
.hq-form textarea:focus { border-color: var(--hq-brand); }

.hq-form textarea { min-height: 62px; resize: vertical; }

.hq-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hq-submit {
  width: 100%;
  margin-top: 6px;
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--hq-brand);
  color: #fff;
  font: 600 15px/1.2 inherit;
  cursor: pointer;
}

.hq-submit[disabled] { opacity: .6; cursor: default; }

.hq-tip {
  min-height: 20px;
  margin-top: 8px;
  font-size: 13px;
  color: #ef4444;
}

.hq-tip.is-ok { color: #10b981; }

.hq-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .hq-panel { width: 94vw; max-height: 90vh; top: auto; bottom: 0; transform: translate(-50%, 0); border-radius: 14px 14px 0 0; }
  .hq-fab { right: 12px; bottom: 78px; }
}
