/* 配件对比、替代方案 */
.wf-alt-block{margin-top:10px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}
.wf-alt-block__title{font-size:12px;font-weight:700;color:#475569;margin-bottom:8px}
.wf-alt-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-top:1px dashed #e2e8f0;font-size:13px}
.wf-alt-row:first-of-type{border-top:none;padding-top:0}
.wf-alt-tag{font-size:11px;padding:1px 6px;border-radius:999px;background:#dcfce7;color:#166534;white-space:nowrap}
.wf-alt-tag--cross{background:#ede9fe;color:#5b21b6}
.wf-alt-tag--cond{background:#fef3c7;color:#92400e}
.wf-alt-tag--dep{background:#fee2e2;color:#991b1b}
.wf-alt-tag--list{font-size:11px;padding:2px 8px;vertical-align:middle;flex-shrink:0;line-height:1.4}
.wf-alt-tag__more{opacity:.85;margin-left:1px;font-weight:600}
.wf-a-name-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-bottom:8px}
.wf-a-name-row .wf-a-name{margin-bottom:0}
.wf-c-card__top{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.wf-c-card__name{display:inline;flex:1 1 auto;min-width:0}
.wf-compare-tray{
  position:relative;
  background:transparent;border:none;
  box-shadow:none;padding:0;
}
.wf-compare-tray__inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.wf-compare-tray__chips{display:flex;align-items:center;gap:8px;flex:1;min-width:0;flex-wrap:wrap}
.wf-compare-tray__label{font-size:12px;color:#64748b;flex-shrink:0;font-weight:600}
.wf-compare-tray__hint{font-size:11px;flex:1 1 100%;display:none}
.wf-compare-tray__actions{display:flex;gap:8px;flex-shrink:0;margin-left:auto;align-items:center}
.wf-compare-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#f1f5f9;font-size:12px;max-width:min(180px,42vw)}
.wf-compare-chip__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-compare-chip button{border:none;background:transparent;cursor:pointer;color:#64748b;font-size:14px;line-height:1;padding:0 2px}

.wf-btn-billing{
  flex-shrink:0;
  display:inline-flex;align-items:center;gap:5px;
  font-size:12px;line-height:1.3;font-weight:600;
  padding:5px 12px;
  border-radius:999px;
  border:1px solid #99f6e4;
  background:linear-gradient(180deg,#fff,#f0fdfa);
  color:#0f766e;
  cursor:pointer;
  white-space:nowrap;
  box-shadow:0 1px 2px rgba(15,118,110,.08);
  transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.wf-btn-billing__icon{flex-shrink:0;opacity:.9}
.wf-btn-billing:hover{background:#ecfdf5;border-color:#5eead4;box-shadow:0 2px 8px rgba(15,118,110,.12)}
.wf-btn-billing:active{transform:scale(.98)}
.wf-btn-billing.is-in{
  background:linear-gradient(145deg,#0f766e,#115e59);
  color:#fff;border-color:#0f766e;
  box-shadow:0 4px 12px rgba(15,118,110,.28);
}
.wf-btn-billing.is-in .wf-btn-billing__icon{opacity:1}
.wf-btn-billing--detail{padding:8px 14px;font-size:13px}

.wf-btn-inquiry{
  flex-shrink:0;
  display:inline-flex;align-items:center;gap:5px;
  font-size:12px;line-height:1.3;font-weight:600;
  padding:5px 12px;
  border-radius:999px;
  border:1px solid #bfdbfe;
  background:linear-gradient(180deg,#fff,#eff6ff);
  color:#1d4ed8;
  cursor:pointer;
  white-space:nowrap;
  box-shadow:0 1px 2px rgba(29,78,216,.08);
  transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.wf-btn-inquiry__icon{flex-shrink:0;opacity:.9}
.wf-btn-inquiry:hover{background:#dbeafe;border-color:#93c5fd}
.wf-btn-inquiry:active{transform:scale(.98)}
.wf-btn-inquiry.is-in{
  background:linear-gradient(145deg,#2563eb,#1d4ed8);
  color:#fff;border-color:#1d4ed8;
  box-shadow:0 4px 12px rgba(37,99,235,.24);
}

.wf-sale-badge{
  display:inline-flex;align-items:center;
  font-size:10px;font-weight:700;line-height:1;
  padding:2px 6px;border-radius:999px;
  margin-right:4px;vertical-align:middle;
}
.wf-sale-badge--discontinued{background:#fee2e2;color:#b91c1c}

.wf-billing-fab{
  --wf-fab-bottom:16px;
  position:fixed;
  right:14px;
  bottom:calc(var(--wf-fab-bottom) + env(safe-area-inset-bottom, 0px));
  z-index:8500;
  display:flex;flex-direction:column;align-items:center;gap:6px;
  border:none;background:transparent;padding:0;
  cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;
}
.wf-billing-fab.is-dragging{
  cursor:grabbing;z-index:8510;
}
.wf-billing-fab.is-dragging .wf-billing-fab__core{
  transform:scale(1.04);
  box-shadow:0 14px 32px rgba(15,118,110,.42), inset 0 1px 0 rgba(255,255,255,.22);
}
.wf-billing-fab.is-dragging .wf-billing-fab__label{opacity:.92}

@media (max-width:900px){
  .wf-billing-fab{
    --wf-fab-bottom:18px;
  }
}
.wf-billing-fab__ring{
  position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:54px;height:54px;border-radius:999px;
  background:linear-gradient(145deg,rgba(15,118,110,.18),rgba(17,94,89,.08));
}
.wf-billing-fab__core{
  position:relative;
  width:54px;height:54px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,#14b8a6,#0f766e);
  color:#fff;
  box-shadow:0 10px 28px rgba(15,118,110,.38), inset 0 1px 0 rgba(255,255,255,.22);
  transition:transform .15s ease, box-shadow .15s ease;
}
.wf-billing-fab:active:not(.is-dragging) .wf-billing-fab__core{transform:scale(.94)}
.wf-billing-fab__icon{display:block}
.wf-billing-fab__badge{
  position:absolute;top:-3px;right:-3px;
  min-width:20px;height:20px;padding:0 6px;
  border-radius:999px;
  background:linear-gradient(180deg,#f87171,#ef4444);
  color:#fff;border:2px solid #fff;
  font-size:11px;font-weight:800;line-height:16px;text-align:center;
  box-shadow:0 2px 8px rgba(239,68,68,.35);
}
.wf-billing-fab__label{
  font-size:11px;line-height:1.2;font-weight:700;color:#0f766e;
  padding:2px 8px;border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid #ccfbf1;
  box-shadow:0 2px 8px rgba(15,118,110,.12);
}

.wf-billing-panel{
  position:fixed;inset:0;z-index:8600;
  display:flex;align-items:flex-end;justify-content:center;
}
.wf-billing-panel__backdrop{
  position:absolute;inset:0;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(2px);
}
.wf-billing-panel__sheet{
  position:relative;z-index:1;width:100%;max-height:min(82vh,620px);
  display:flex;flex-direction:column;
  background:linear-gradient(180deg,#f8fffe 0%,#fff 120px);
  border-radius:20px 20px 0 0;
  box-shadow:0 -12px 40px rgba(15,23,42,.16);
  padding-bottom:env(safe-area-inset-bottom, 0px);
  overflow:hidden;
}
.wf-billing-panel__handle{
  width:40px;height:4px;border-radius:999px;
  background:#cbd5e1;margin:10px auto 0;flex-shrink:0;
}
.wf-billing-panel__head{
  display:flex;align-items:center;gap:12px;
  padding:14px 16px 12px;flex-shrink:0;
}
.wf-billing-panel__head-icon{
  width:42px;height:42px;border-radius:14px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,#ccfbf1,#99f6e4);
  color:#0f766e;
}
.wf-billing-panel__head-text{flex:1;min-width:0}
.wf-billing-panel__head-text h3{margin:0;font-size:17px;font-weight:800;color:#0f172a;line-height:1.25}
.wf-billing-panel__head-text p{margin:2px 0 0;font-size:12px;color:#64748b}
.wf-billing-panel__close{
  border:none;background:#f1f5f9;color:#64748b;
  width:36px;height:36px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.wf-billing-panel__body{
  flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:4px 14px 12px;
}
.wf-billing-panel__empty{
  padding:28px 16px 32px;text-align:center;color:#64748b;
}
.wf-billing-panel__empty-icon{font-size:32px;line-height:1;margin-bottom:8px}
.wf-billing-panel__empty p{margin:0 0 4px;font-size:15px;font-weight:700;color:#334155}
.wf-billing-panel__empty span{font-size:13px;color:#94a3b8}
.wf-billing-panel__item{
  display:flex;align-items:flex-start;gap:10px;
  padding:12px 12px;margin-bottom:8px;
  background:#fff;border:1px solid #e2e8f0;border-radius:14px;
  box-shadow:0 2px 8px rgba(15,23,42,.04);
}
.wf-billing-panel__item-main{flex:1;min-width:0}
.wf-billing-panel__item-name{
  font-size:14px;font-weight:700;color:#1e293b;line-height:1.45;
  word-break:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.wf-billing-panel__item-tags{
  display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;
}
.wf-billing-tag{
  display:inline-flex;align-items:center;
  padding:2px 8px;border-radius:999px;
  background:#ecfdf5;color:#0f766e;font-size:11px;font-weight:600;line-height:1.5;
}
.wf-billing-tag--muted{background:#f8fafc;color:#64748b;font-weight:500}
.wf-billing-panel__item-side{
  display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0;
}
.wf-billing-panel__qty{
  font-size:13px;font-weight:800;color:#0f766e;
  background:#ecfdf5;border-radius:999px;padding:2px 8px;line-height:1.4;
}
.wf-billing-panel__remove{
  border:none;background:#f8fafc;color:#94a3b8;
  width:30px;height:30px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.wf-billing-panel__foot{
  display:flex;gap:10px;padding:12px 14px 14px;
  border-top:1px solid #e2e8f0;background:#fff;flex-shrink:0;
}
body.wf-billing-panel-open{overflow:hidden}

.wf-billing-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:none;border-radius:12px;font-size:14px;font-weight:700;
  cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.wf-billing-btn--sm{min-height:36px;padding:0 14px;font-size:13px;border-radius:10px}
.wf-billing-btn--ghost{
  flex:0 0 auto;min-width:88px;min-height:46px;
  background:#f8fafc;color:#475569;border:1px solid #e2e8f0;
}
.wf-billing-btn--primary{
  flex:1;min-height:46px;padding:0 18px;
  background:linear-gradient(145deg,#14b8a6,#0f766e);color:#fff;
  box-shadow:0 6px 18px rgba(15,118,110,.28);
}
.wf-billing-btn--primary:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.wf-billing-btn:active:not(:disabled){transform:scale(.98)}

.wf-compare-fab{
  --wf-fab-bottom:16px;
  position:fixed;
  left:14px;
  bottom:calc(var(--wf-fab-bottom) + env(safe-area-inset-bottom, 0px));
  z-index:8500;
  display:flex;flex-direction:column;align-items:center;gap:6px;
  border:none;background:transparent;padding:0;
  cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;
}
.wf-compare-fab.is-dragging{
  cursor:grabbing;z-index:8510;
}
.wf-compare-fab.is-dragging .wf-compare-fab__core{
  transform:scale(1.04);
  box-shadow:0 14px 32px rgba(37,99,235,.4), inset 0 1px 0 rgba(255,255,255,.22);
}
.wf-compare-fab.is-dragging .wf-compare-fab__label{opacity:.92}
@media (max-width:900px){
  .wf-compare-fab{--wf-fab-bottom:18px}
}
.wf-compare-fab__ring{
  position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:54px;height:54px;border-radius:999px;
  background:linear-gradient(145deg,rgba(37,99,235,.16),rgba(29,78,216,.08));
}
.wf-compare-fab__core{
  position:relative;
  width:54px;height:54px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,#3b82f6,#2563eb);
  color:#fff;
  box-shadow:0 10px 28px rgba(37,99,235,.34), inset 0 1px 0 rgba(255,255,255,.22);
  transition:transform .15s ease, box-shadow .15s ease;
}
.wf-compare-fab:active:not(.is-dragging) .wf-compare-fab__core{transform:scale(.94)}
.wf-compare-fab__badge{
  position:absolute;top:-3px;right:-3px;
  min-width:20px;height:20px;padding:0 6px;
  border-radius:999px;
  background:linear-gradient(180deg,#f87171,#ef4444);
  color:#fff;border:2px solid #fff;
  font-size:11px;font-weight:800;line-height:16px;text-align:center;
  box-shadow:0 2px 8px rgba(239,68,68,.35);
}
.wf-compare-fab__label{
  font-size:11px;line-height:1.2;font-weight:700;color:#1d4ed8;
  padding:2px 8px;border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid #dbeafe;
  box-shadow:0 2px 8px rgba(37,99,235,.12);
}

.wf-compare-panel{
  position:fixed;inset:0;z-index:8600;
  display:flex;align-items:flex-end;justify-content:center;
}
.wf-compare-panel__backdrop{
  position:absolute;inset:0;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(2px);
}
.wf-compare-panel__sheet{
  position:relative;z-index:1;width:100%;max-height:min(82vh,620px);
  display:flex;flex-direction:column;
  background:linear-gradient(180deg,#eff6ff 0%,#fff 120px);
  border-radius:20px 20px 0 0;
  box-shadow:0 -12px 40px rgba(15,23,42,.16);
  padding-bottom:env(safe-area-inset-bottom, 0px);
  overflow:hidden;
}
.wf-compare-panel__handle{
  width:40px;height:4px;border-radius:999px;
  background:#cbd5e1;margin:10px auto 0;flex-shrink:0;
}
.wf-compare-panel__head{
  display:flex;align-items:center;gap:12px;
  padding:14px 16px 12px;flex-shrink:0;
}
.wf-compare-panel__head-icon{
  width:42px;height:42px;border-radius:14px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,#dbeafe,#bfdbfe);
  color:#2563eb;
}
.wf-compare-panel__head-text{flex:1;min-width:0}
.wf-compare-panel__head-text h3{margin:0;font-size:17px;font-weight:800;color:#0f172a;line-height:1.25}
.wf-compare-panel__head-text p{margin:2px 0 0;font-size:12px;color:#64748b}
.wf-compare-panel__close{
  border:none;background:#f1f5f9;color:#64748b;
  width:36px;height:36px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.wf-compare-panel__body{
  flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:4px 14px 12px;
}
.wf-compare-panel__empty{
  padding:28px 16px 32px;text-align:center;color:#64748b;
}
.wf-compare-panel__empty p{margin:0 0 4px;font-size:15px;font-weight:700;color:#334155}
.wf-compare-panel__empty span{font-size:13px;color:#94a3b8}
.wf-compare-panel__item{
  display:flex;align-items:flex-start;gap:10px;
  padding:12px 12px;margin-bottom:8px;
  background:#fff;border:1px solid #e2e8f0;border-radius:14px;
  box-shadow:0 2px 8px rgba(15,23,42,.04);
}
.wf-compare-panel__item-main{flex:1;min-width:0}
.wf-compare-panel__item-name{
  font-size:14px;font-weight:700;color:#1e293b;line-height:1.45;
  word-break:break-word;
}
.wf-compare-panel__item-meta{margin-top:4px;font-size:12px;color:#64748b}
.wf-compare-panel__remove{
  border:none;background:#f8fafc;color:#94a3b8;
  width:30px;height:30px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;
}
.wf-compare-panel__foot{
  display:flex;gap:10px;padding:12px 14px 14px;
  border-top:1px solid #e2e8f0;background:#fff;flex-shrink:0;
}
body.wf-compare-panel-open{overflow:hidden}

.wf-compare-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:none;border-radius:12px;font-size:14px;font-weight:700;
  cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.wf-compare-btn--ghost{
  flex:0 0 auto;min-width:88px;min-height:46px;
  background:#f8fafc;color:#475569;border:1px solid #e2e8f0;
}
.wf-compare-btn--primary{
  flex:1;min-height:46px;padding:0 18px;
  background:linear-gradient(145deg,#3b82f6,#2563eb);color:#fff;
  box-shadow:0 6px 18px rgba(37,99,235,.28);
}
.wf-compare-btn--primary:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.wf-compare-btn:active:not(:disabled){transform:scale(.98)}

.wf-bottom-trays{
  position:fixed;left:0;right:0;bottom:0;z-index:90;
  display:flex;flex-direction:column;gap:8px;
  max-width:960px;margin:0 auto;
  padding:0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events:none;
}
.wf-bottom-trays > *{pointer-events:auto}
.wf-bottom-trays .wf-billing-tray,
.wf-bottom-trays .wf-compare-tray{
  position:relative;left:auto;right:auto;bottom:auto;
  padding:12px 14px;
  background:rgba(255,255,255,.96);
  border-radius:16px;
  backdrop-filter:blur(8px);
  box-shadow:0 12px 36px rgba(15,23,42,.12), 0 2px 8px rgba(15,23,42,.06);
}
.wf-bottom-trays .wf-billing-tray{
  border:1px solid #99f6e4;
  box-shadow:0 12px 36px rgba(15,118,110,.18), 0 2px 8px rgba(15,23,42,.06);
}
.wf-bottom-trays .wf-compare-tray{
  border:1px solid #e2e8f0;
  border-top:none;
  padding-bottom:12px;
}
.wf-bottom-trays .wf-billing-tray + .wf-compare-tray{
  margin-top:-4px;
  border-top:1px solid #e2e8f0;
  border-radius:0 0 16px 16px;
  box-shadow:0 8px 24px rgba(15,23,42,.08);
}
.wf-bottom-trays .wf-billing-tray:only-child,
.wf-bottom-trays .wf-compare-tray:only-child{
  border-radius:16px;
  border:1px solid #e2e8f0;
}
.wf-bottom-trays .wf-billing-tray:only-child{
  border-color:#99f6e4;
}
.wf-bottom-trays .wf-billing-tray:not(:only-child){
  border-radius:16px 16px 0 0;
  padding-bottom:10px;
}
.wf-billing-tray--dock{
  position:relative;left:auto;right:auto;bottom:auto;z-index:auto;
  max-width:none;margin:0;
  background:transparent;border:none;border-radius:0;
  box-shadow:none;padding:0;
  backdrop-filter:none;
}
.wf-billing-tray{
  padding:0;
}
.wf-billing-tray__inner{
  max-width:none;margin:0;
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
}
.wf-billing-tray__brand{
  display:flex;align-items:center;gap:10px;flex-shrink:0;
}
.wf-billing-tray__icon{
  width:38px;height:38px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,#ccfbf1,#99f6e4);color:#0f766e;
}
.wf-billing-tray__brand-text{display:flex;flex-direction:column;line-height:1.25}
.wf-billing-tray__brand-text strong{font-size:13px;color:#0f172a}
.wf-billing-tray__brand-text span{font-size:11px;color:#64748b;margin-top:1px}
.wf-billing-tray__chips{
  display:flex;align-items:center;gap:8px;flex:1;min-width:0;flex-wrap:wrap;
}
.wf-billing-tray__actions{display:flex;gap:8px;flex-shrink:0;margin-left:auto}
.wf-billing-chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 8px 5px 10px;border-radius:999px;
  background:#f0fdfa;border:1px solid #ccfbf1;
  font-size:12px;max-width:min(200px,36vw);
}
.wf-billing-chip__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#115e59;font-weight:600}
.wf-billing-chip button{
  border:none;background:transparent;cursor:pointer;color:#94a3b8;
  width:20px;height:20px;padding:0;display:flex;align-items:center;justify-content:center;
}
.wf-billing-chip button:hover{color:#64748b}
.wf-c-card__actions{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0 0;margin-top:12px;border-top:1px solid #f1f5f9;align-items:center}
.wf-c-card__sale,.wf-a-card__sale,.wf-b-part__sale{margin-top:8px}
.wf-sale-badge--sellable{background:#dcfce7;color:#166534}
.wf-sale-badge--reference{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0}
.wf-part-ref-inline{
  margin:0;font-size:12px;line-height:1.45;color:#64748b;
}
.wf-part-ref-inline--actions{
  flex:1 1 auto;min-width:0;
}
.wf-part-ref-inline--actions .wf-part-ref-inline__text,
.wf-part-ref-inline--actions .wf-part-ref-inline__link{
  font-size:12px;
}
.wf-part-ref-inline__link{
  border:0;background:transparent;padding:0;margin:0;
  color:#2563eb;font-size:12px;cursor:pointer;text-decoration:underline;
}
.wf-inquiry-item-tag{
  display:inline-flex;align-items:center;
  font-size:10px;font-weight:700;line-height:1;
  padding:2px 6px;border-radius:999px;vertical-align:middle;
}
.wf-inquiry-item-tag--reference{
  background:#f1f5f9;color:#475569;border:1px solid #cbd5e1;
}
.wf-inquiry-panel__item-name{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px;
}
.wf-inquiry-panel__item-hint{
  margin-top:4px;font-size:11px;color:#64748b;line-height:1.35;
}
.wf-inquiry-panel__item--reference{
  border-color:#e2e8f0;background:#f8fafc;
}
.wf-inquiry-chip--reference{
  background:#f8fafc;border-color:#e2e8f0;
}
.wf-inquiry-submit-ref-hint{
  margin:0 0 10px;padding:8px 10px;border-radius:8px;
  background:#f8fafc;border:1px solid #e2e8f0;
  font-size:12px;line-height:1.5;color:#475569;
}
.wf-inquiry-submit-preview{
  max-height:120px;overflow:auto;margin:0 0 12px;padding:8px 10px;
  border:1px solid #f1f5f9;border-radius:8px;background:#fafafa;
}
.wf-inquiry-submit-preview__row{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  font-size:12px;line-height:1.6;color:#334155;
}
.wf-sale-badge--stock{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.wf-part-stock{width:100%}
.wf-part-stock__inner{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:12px;
  background:linear-gradient(180deg,#fff7ed,#fffbeb);
  border:1px solid #fed7aa;
}
.wf-part-stock__badge{
  flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:999px;
  background:#fee2e2;color:#b91c1c;
  font-size:11px;font-weight:800;line-height:1;
}
.wf-part-stock__body{flex:1;min-width:0}
.wf-part-stock__title{display:block;font-size:13px;font-weight:700;color:#9a3412;line-height:1.3}
.wf-part-stock__text{margin:2px 0 0;font-size:12px;line-height:1.45;color:#b45309}
.wf-part-stock__btn{
  flex-shrink:0;border:1px solid #fdba74;background:#fff;color:#c2410c;
  border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700;cursor:pointer;
  white-space:nowrap;
}
.wf-part-oos,.wf-part-stock{display:block}
.wf-c-card__actions .wf-btn-compare{margin-left:auto}
.wf-a-name-row .wf-btn-compare,
.wf-b-part__title-row .wf-btn-compare{margin-left:auto}
.wf-a-name-row .wf-part-oos{flex:1 1 100%;margin-top:4px}

.wf-compare-modal.fm-modal-backdrop{align-items:center;padding:16px}
.wf-compare-modal__panel{
  max-width:min(96vw,1100px);width:100%;max-height:min(90vh,900px);
  display:flex;flex-direction:column;overflow:hidden;padding:0;
}
.wf-compare-modal__handle{display:none}
.wf-compare-modal__head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  padding:16px 16px 12px;border-bottom:1px solid #e2e8f0;flex-shrink:0;
}
.wf-compare-legend{
  margin:12px 0 0;font-size:12px;color:#64748b;line-height:1.4;
}
.wf-compare-legend--mobile{display:none}
.wf-compare-modal__ctx{font-size:12px;margin-top:4px;line-height:1.4}
.wf-compare-modal__close{flex-shrink:0}
.wf-compare-modal__body{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 16px}
.wf-compare-modal__loading{padding:32px 0;text-align:center;color:#64748b;font-size:14px}
.wf-compare-modal__foot{
  flex-shrink:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top:1px solid #e2e8f0;background:#fff;
}
.wf-compare-modal__copy{width:100%;max-width:320px;margin:0 auto;display:block}

.wf-compare-table-wrap{display:block;padding:12px 0 4px}
.wf-compare-table-scroll{
  overflow:auto;-webkit-overflow-scrolling:touch;
  border:1px solid #e2e8f0;border-radius:12px;background:#fff;
}
.wf-compare-table{
  width:100%;border-collapse:separate;border-spacing:0;font-size:13px;
  min-width:560px;
}
.wf-compare-table th,.wf-compare-table td{
  border-bottom:1px solid #e2e8f0;border-right:1px solid #e2e8f0;
  padding:10px 12px;vertical-align:top;text-align:left;
}
.wf-compare-table tr:last-child th,.wf-compare-table tr:last-child td{border-bottom:none}
.wf-compare-table th:last-child,.wf-compare-table td:last-child{border-right:none}
.wf-compare-table thead th{
  background:#f8fafc;font-weight:700;color:#475569;
  position:sticky;top:0;z-index:3;
}
.wf-compare-table--matrix .wf-compare-table__field-col{
  width:88px;min-width:88px;max-width:108px;
  position:sticky;left:0;z-index:2;
  background:#f8fafc;color:#475569;font-weight:700;
  white-space:nowrap;
}
.wf-compare-table--matrix thead .wf-compare-table__field-col{
  z-index:4;background:#f1f5f9;
}
.wf-compare-table--matrix tbody .wf-compare-table__field-col{
  background:#fff;
}
.wf-compare-table__part-col{
  min-width:168px;max-width:280px;vertical-align:bottom;
}
.wf-compare-table__part-col.is-base-col{background:#f0f7ff;box-shadow:inset 0 -3px 0 #1677ff}
.wf-compare-table__part-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.wf-compare-table__part-name{font-weight:800;line-height:1.35;word-break:break-word;color:#0f172a;font-size:14px}
.wf-compare-table__part-sub{margin-top:4px;font-size:11px;line-height:1.4;word-break:break-word}
.wf-compare-table__base-tag{
  display:inline-flex;align-items:center;
  font-size:10px;font-weight:700;line-height:1;
  padding:2px 7px;border-radius:999px;
  background:#1677ff;color:#fff;flex-shrink:0;
}
.wf-compare-table__adapt-cell{min-width:220px;padding:8px 10px}
.wf-compare-table__adapt-row .wf-compare-table__field-col{vertical-align:top;padding-top:14px}
.wf-compare-table__empty{color:#94a3b8;font-size:12px}
.wf-compare-table td.is-diff,.wf-compare-table th.is-diff{
  background:#fffbeb;box-shadow:inset 3px 0 0 #f59e0b;
}
.wf-compare-table thead .wf-compare-table__part-col:nth-child(even),
.wf-compare-table tbody td:nth-child(even){background:#fcfdff}
.wf-compare-table tbody td:nth-child(even).is-diff{background:#fffbeb}
.wf-compare-table thead .wf-compare-table__part-col.is-base-col{background:#f0f7ff}
.wf-compare-rel{display:inline-block;line-height:1.45;word-break:break-word}
.wf-compare-rel.has-rel{color:#5b21b6;font-weight:600}

.wf-compare-adapt-table{
  width:100%;border-collapse:collapse;font-size:12px;line-height:1.4;
  border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;background:#fff;
}
.wf-compare-adapt-table th,.wf-compare-adapt-table td{
  border:1px solid #eef2f7;padding:6px 8px;vertical-align:top;
}
.wf-compare-adapt-table thead th{
  background:#f8fafc;font-weight:600;color:#64748b;font-size:11px;white-space:nowrap;
}
.wf-compare-adapt-table tbody tr.is-other{background:#fafafa}
.wf-compare-adapt-table__model{color:#64748b;white-space:nowrap}
.wf-compare-adapt-table .wf-td-year .wf-table__year-line{display:block}
.wf-compare-adapt-table .wf-table__cond .wf-badge{
  display:inline-block;margin:0 4px 4px 0;font-size:10px;
}
.wf-compare-adapt-table .wf-table__em{color:#94a3b8}

@media (min-width:901px){
  .wf-compare-tray__inner{flex-wrap:nowrap}
  .wf-compare-tray__chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:2px}
  .wf-compare-tray__hint{display:none}
  .wf-compare-chip{max-width:220px;flex-shrink:0}
}

@media (max-width:900px){
  .wf-compare-tray__inner{flex-direction:column;align-items:stretch}
  .wf-compare-tray__chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:2px}
  .wf-compare-tray__hint{display:block;margin:0 0 4px}
  .wf-compare-tray__actions{width:100%;margin-left:0}
  .wf-compare-tray__actions .fm-btn{flex:1;justify-content:center}
  .wf-compare-tray__actions .wf-compare-tray__hint{display:none}
  .wf-billing-tray__inner{flex-direction:column;align-items:stretch}
  .wf-billing-tray__actions{width:100%;margin-left:0}
  .wf-billing-tray__actions .wf-billing-btn{flex:1}
  .wf-compare-panel__foot{padding-bottom:calc(14px + env(safe-area-inset-bottom, 0px))}
  .wf-billing-panel__foot{padding-bottom:calc(14px + env(safe-area-inset-bottom, 0px))}
  .wf-compare-modal.fm-modal-backdrop{align-items:flex-end;padding:0}
  .wf-compare-modal__panel{
    max-width:100%;width:100%;max-height:92vh;border-radius:16px 16px 0 0;
  }
  .wf-compare-modal__handle{
    display:block;width:40px;height:4px;border-radius:999px;background:#cbd5e1;
    margin:8px auto 0;flex-shrink:0;
  }
  .wf-compare-modal__head{padding-top:10px}
  .wf-compare-modal__body{padding:0 12px}
  .wf-compare-table{min-width:480px;font-size:12px}
  .wf-compare-table__field-col{width:72px;min-width:72px;font-size:12px}
  .wf-compare-table__part-col{min-width:140px}
  .wf-compare-table__adapt-cell{min-width:200px}
  .wf-compare-adapt-table{font-size:11px}
  .wf-compare-modal__copy{width:100%;max-width:none}
}

.wf-btn-compare{font-size:12px;padding:2px 8px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;cursor:pointer;color:#334155}
.wf-btn-compare.is-in{background:#eff6ff;border-color:#1890ff;color:#1890ff}

/* ========== 图解查件页 ========== */
.wf-diagram-shell {
  --dg-blue: #1677ff;
  --dg-blue-soft: #e6f4ff;
  --dg-text: #1e293b;
  --dg-muted: #64748b;
  --dg-line: #e2e8f0;
  --dg-radius: 12px;
  --dg-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.wf-diagram-back {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.95;
}

.wf-diagram-back:hover { opacity: 1; }

.wf-diagram-hero {
  background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
  color: #fff;
  padding: 20px 16px 24px;
}

.wf-diagram-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.wf-diagram-hero__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.wf-diagram-hero__sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.92;
  max-width: 520px;
}

.wf-diagram-wrap {
  max-width: 1200px;
  margin: -12px auto 0;
  padding: 0 16px 32px;
  position: relative;
  z-index: 1;
}

.wf-diagram-toolbar {
  background: #fff;
  border-radius: var(--dg-radius);
  box-shadow: var(--dg-shadow);
  border: 1px solid var(--dg-line);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.wf-diagram-toolbar.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.wf-diagram-toolbar__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wf-diagram-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wf-diagram-field__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dg-muted);
  letter-spacing: 0.04em;
}

.wf-diagram-select-wrap {
  position: relative;
}

.wf-diagram-select-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #94a3b8;
  pointer-events: none;
}

.wf-diagram-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--dg-line);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--dg-text);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wf-diagram-select:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #fff;
}

.wf-diagram-select:focus {
  outline: none;
  border-color: var(--dg-blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.15);
  background: #fff;
}

.wf-diagram-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f1f5f9;
}

.wf-diagram-toolbar__context {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--dg-line);
}

.wf-diagram-context-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--dg-blue-soft);
  color: #0958d9;
  font-size: 13px;
  font-weight: 600;
}

.wf-diagram-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--dg-radius);
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--dg-shadow);
}

.wf-diagram-empty__icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}

.wf-diagram-empty__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dg-text);
}

.wf-diagram-empty__sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--dg-muted);
  line-height: 1.6;
}

.wf-diagram-panel {
  animation: wf-diagram-fade-in 0.25s ease;
}

@keyframes wf-diagram-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wf-diagram-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.wf-diagram-section {
  background: #fff;
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-radius);
  box-shadow: var(--dg-shadow);
  padding: 16px;
  margin-bottom: 16px;
}

.wf-diagram-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.wf-diagram-section__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--dg-text);
}

.wf-diagram-section__hint {
  font-size: 12px;
  color: var(--dg-muted);
}

.wf-diagram-canvas {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}

.wf-diagram-canvas img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wf-diagram-hotspot {
  position: absolute;
  border: 2px solid rgba(22, 119, 255, 0.75);
  background: rgba(22, 119, 255, 0.12);
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  border-radius: 4px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.wf-diagram-hotspot:hover {
  background: rgba(22, 119, 255, 0.22);
  transform: scale(1.01);
}

.wf-diagram-hotspot.is-active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.28);
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.wf-diagram-hotspot__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--dg-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(22, 119, 255, 0.35);
}

.wf-diagram-hotspot.is-active .wf-diagram-hotspot__badge {
  background: #d97706;
}

.wf-diagram-loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.wf-diagram-loc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 14px 12px;
  border: 1px solid var(--dg-line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.wf-diagram-loc-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.1);
  transform: translateY(-1px);
}

.wf-diagram-loc-card.is-active {
  border-color: var(--dg-blue);
  background: var(--dg-blue-soft);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.wf-diagram-loc-card.is-empty {
  opacity: 0.72;
}

.wf-diagram-loc-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dg-text);
  line-height: 1.35;
}

.wf-diagram-loc-card__count {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--dg-muted);
  font-size: 12px;
  font-weight: 600;
}

.wf-diagram-loc-card.is-active .wf-diagram-loc-card__count {
  background: rgba(22, 119, 255, 0.15);
  color: #0958d9;
}

.wf-diagram-parts-card {
  background: #fff;
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-radius);
  box-shadow: var(--dg-shadow);
  padding: 16px;
  position: sticky;
  top: 16px;
}

.wf-diagram-list__head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dg-line);
  margin-bottom: 4px;
}

.wf-diagram-list__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dg-text);
  line-height: 1.35;
}

.wf-diagram-list__sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--dg-muted);
}

.wf-diagram-list__loading,
.wf-diagram-list__placeholder {
  padding: 28px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--dg-muted);
  line-height: 1.6;
}

.wf-diagram-part-list {
  max-height: min(60vh, 520px);
  overflow: auto;
  margin-top: 8px;
}

.wf-diagram-part-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.wf-diagram-part-row:last-child {
  border-bottom: none;
}

.wf-diagram-part-row__main {
  min-width: 0;
  flex: 1;
}

.wf-diagram-part-row__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dg-text);
  line-height: 1.4;
  word-break: break-word;
}

.wf-diagram-part-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.wf-diagram-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  color: var(--dg-muted);
}

.wf-diagram-meta-chip strong {
  color: #334155;
  font-weight: 600;
}

.wf-diagram-meta-chip--bin strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.wf-diagram-part-row__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--dg-blue);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.wf-diagram-part-row__link:hover {
  background: #0958d9;
}

@media (max-width: 900px) {
  .wf-diagram-layout {
    grid-template-columns: 1fr;
  }

  .wf-diagram-parts-card {
    position: static;
  }

  .wf-diagram-toolbar__fields {
    grid-template-columns: 1fr 1fr;
  }

  .wf-diagram-toolbar__fields .wf-diagram-field:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .wf-diagram-hero__title {
    font-size: 20px;
  }

  .wf-diagram-wrap {
    padding: 0 12px 24px;
  }

  .wf-diagram-toolbar {
    padding: 14px;
  }

  .wf-diagram-toolbar__fields {
    grid-template-columns: 1fr;
  }

  .wf-diagram-loc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wf-diagram-part-row {
    flex-direction: column;
    align-items: stretch;
  }

  .wf-diagram-part-row__link {
    width: 100%;
  }
}
