/* ============================================================================
   MHOT — Quote list (询价车) 2026-11-15

   独立文件，排在 style.css / dtc-support.css 之后（style.css 会被改版流程整份重写，
   不往里加东西）。设计令牌全部复用 :root，不新增颜色。

   内容：
     .qadd      型号卡片 / 型号页上的次要按钮 “Add to quote”
     .qpill     右下角浮动胶囊 “Quote list (N)”
     .ql-*      /quote-list/ 页面的行、汇总、表单容器
     .howsteps  “How to order” 四步卡（复用 .step-card 的版式，但不需要图片）
   ========================================================================== */

/* ---------- 1. Add to quote 按钮（次要样式，不与现有主按钮抢） ---------- */
.qadd{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:40px;padding:9px 15px;font-size:13.5px;font-weight:600;line-height:1.2;
  color:var(--brand);background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-btn);cursor:pointer;text-align:center;
  transition:border-color .18s ease,background .18s ease,color .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.qadd:hover{border-color:var(--brand);background:var(--brand-soft)}
.qadd:active{transform:translateY(1px)}
.qadd.is-ok{border-color:#15803D;background:var(--ok-bg);color:var(--ok)}
.qadd.is-full{border-color:#B45309;color:#92400E;background:#FFFBEB}
/* 卡片里的按钮：与卡片同宽，紧贴在卡片下方（不属于 <a>，避免按钮套进链接里） */
.qcell{display:flex;flex-direction:column;gap:8px;min-width:0}
.qcell>.azw{flex:1 1 auto;grid-template-rows:1fr auto}
.qadd--card{width:100%}
/* 首页 Featured 卡（.mcard 是 <article>，按钮可以直接放在卡内） */
.qadd--mc{width:100%;margin-top:2px;min-height:36px;padding:7px 12px;font-size:12.5px}

/* ---------- 2. 右下角浮动胶囊 ---------- */
.qpill{
  position:fixed;right:20px;bottom:24px;z-index:70;
  display:inline-flex;align-items:center;gap:9px;
  min-height:46px;padding:0 18px;
  background:var(--brand);color:#fff;border:1px solid var(--brand);border-radius:999px;
  font-size:14px;font-weight:700;letter-spacing:-.01em;
  box-shadow:0 8px 24px rgba(16,24,40,.22);
  transition:background .18s ease,transform .18s ease;
}
.qpill[hidden]{display:none}
.qpill:hover{background:var(--brand-deep);border-color:var(--brand-deep);color:#fff;transform:translateY(-1px)}
.qpill-n{
  display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;
  background:var(--accent);color:var(--ink);border-radius:999px;
  font-size:12px;font-weight:800;line-height:1;
}
/* 手机端：给底部安全区 + 型号页 sticky 购买条（约 66px）留出空间，绝不压住主 CTA */
@media(max-width:900px){
  .qpill{right:14px;bottom:calc(84px + env(safe-area-inset-bottom,0px));min-height:44px;padding:0 16px;font-size:13.5px}
}

/* ---------- 3. /quote-list/ 页面 ---------- */
.ql-app{max-width:980px;margin:0 auto}
.ql-empty{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);
  box-shadow:var(--shadow-card);padding:40px 32px;text-align:center;
}
.ql-empty h2{font-size:24px}
.ql-empty p{margin-top:12px;color:var(--muted);font-size:16px;line-height:1.7}
.ql-empty .btns{justify-content:center;margin-top:26px}
.ql-retail{margin-top:22px !important;font-size:14px !important;color:var(--muted)}
.ql-retail a{font-weight:600;text-decoration:underline;text-underline-offset:3px}

.ql-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.ql-head h2{font-size:22px}
.ql-head p{font-size:13.5px;color:var(--muted)}

.ql-rows{border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--shadow-card);overflow:hidden}
.ql-row{
  display:grid;grid-template-columns:64px minmax(0,1fr) 190px auto;gap:18px;align-items:center;
  padding:16px 18px;border-bottom:1px solid var(--line);
}
.ql-row:last-child{border-bottom:0}
.ql-thumb{
  display:grid;place-items:center;width:64px;height:64px;background:var(--bg);
  border:1px solid var(--line);border-radius:var(--r-input);overflow:hidden;
}
.ql-thumb img{width:100%;height:100%;object-fit:contain;padding:4px}
.ql-thumb.is-ph{font-size:12px;font-weight:800;color:var(--brand);letter-spacing:.02em}
.ql-info{min-width:0}
.ql-code{display:block;font-size:16px;font-weight:800;color:var(--brand);letter-spacing:-.01em}
.ql-name{display:block;margin-top:2px;font-size:13px;color:var(--muted);line-height:1.5}
.ql-qty{min-width:0}
.ql-lbl{display:block;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin-bottom:5px}
.ql-qty input{
  width:100%;padding:9px 11px;font-size:15px;font-weight:600;color:var(--ink);
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-input);
}
.ql-qty input:focus{outline:2px solid rgba(19,52,158,.35);outline-offset:0;border-color:var(--brand)}
.ql-moq{display:block;margin-top:5px;font-size:11.5px;color:var(--muted)}
.ql-del{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:40px;padding:8px 13px;background:transparent;border:1px solid var(--line);
  border-radius:var(--r-btn);color:var(--muted);font-size:12.5px;font-weight:600;cursor:pointer;
}
.ql-del:hover{border-color:#B91C1C;color:#B91C1C;background:#FEF2F2}

.ql-sum{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin-top:14px;padding:16px 18px;background:var(--brand-soft);border:1px solid #D7E0F7;border-radius:var(--r-card);
}
.ql-sum-b{font-size:15px;font-weight:700;color:var(--ink)}
.ql-sum-b b{font-weight:800;color:var(--brand)}
.ql-sum-n{font-size:12.5px;color:var(--muted)}

.ql-formwrap{margin-top:34px}
.ql-form-h{font-size:22px;margin-bottom:6px}
.ql-form-sub{font-size:14px;color:var(--muted);margin-bottom:18px;max-width:60ch;line-height:1.65}
.ql-app .quote-form{box-shadow:none}
.ql-note{font-size:12.5px;color:var(--muted);margin-top:10px}
.ql-jsmsg{
  margin-top:18px;padding:14px 16px;border:1px dashed var(--line);border-radius:var(--r-btn);
  font-size:13.5px;color:var(--muted);background:var(--bg);
}

/* ---------- 4. How to order 四步卡（复用 .step-card 外观，无图） ---------- */
.howsteps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.howsteps .step-card{display:flex;flex-direction:column}
.howsteps .step-body{padding:22px 20px 24px}
.howsteps .step-body h3{margin-top:12px;font-size:16px}
.howsteps .step-body p{margin-top:8px;font-size:14px;line-height:1.6;color:var(--muted)}
.howsteps-foot{margin-top:22px;font-size:13.5px;color:var(--muted);text-align:center}
.howsteps-foot a{font-weight:600;text-decoration:underline;text-underline-offset:3px}

@media(max-width:1024px){
  .howsteps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .howsteps{grid-template-columns:1fr;gap:14px}
  .ql-row{grid-template-columns:52px minmax(0,1fr);grid-template-areas:"thumb info" "qty qty" "del del";gap:12px 14px;padding:14px}
  .ql-row .ql-thumb{grid-area:thumb;width:52px;height:52px}
  .ql-row .ql-info{grid-area:info}
  .ql-row .ql-qty{grid-area:qty}
  .ql-row .ql-del{grid-area:del;justify-self:start}
  .ql-empty{padding:30px 20px}
}
/* 屏幕阅读器专用（按钮点击后的状态播报） */
.sr-only{
  position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
@media(prefers-reduced-motion:reduce){
  .qadd,.qpill{transition:none}
}
