/* ===== 询盘面板 / 清单条 / 手机底栏 =====
 *
 * 设计语言（欧美外贸站审美，对照原版 float.css）：
 * - 中性墨色文字，绿色只做强调色；白底、超细边框、直角
 * - 14px 基准字号、1.5 行高、宽留白
 * - 克制的阴影与过渡（0.2s ease-out），不用花哨动画
 */

.ldinq,
.ldinq-mb,
.ldinq-fx,
.ldinq-sheet {
  --ldinq-ink: #1a201d;
  --ldinq-muted: #6e7873;
  --ldinq-line: rgba(22, 42, 33, 0.09);
  --ldinq-line-2: rgba(22, 42, 33, 0.16);
  /* 主题色（后台「留言 → 主题色」可改，Palette 会在 head 里覆盖这几个） */
  --ldinq-green: #2f7a4f;
  --ldinq-green-d: #266141;
  --ldinq-green-line: rgba(47, 122, 79, 0.22);
  /* 白底上当文字/图标用的主题色：浅色主题会被 Palette 自动加深 */
  --ldinq-green-text: var(--ldinq-green);
  --ldinq-on-green: #fff;
  --ldinq-soft: #f4f8f5;
  --ldinq-tint: rgba(47, 122, 79, 0.08);
  --ldinq-err: #b3392c;
  /* 浮动入口：默认跟随主题色，可单独指定（如墨黑 #14141a） */
  --ldinq-fx-bg: var(--ldinq-green);
  --ldinq-fx-bg-d: var(--ldinq-green-d);
  --ldinq-fx-fg: #fff;
  --ldinq-fx-chip: rgba(255, 255, 255, 0.18);
  --ldinq-fx-line: rgba(47, 122, 79, 0.35);
  --ldinq-fx-shadow: rgba(31, 92, 60, 0.34);
  --ldinq-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  font-family: inherit;
  color: var(--ldinq-ink);
  -webkit-font-smoothing: antialiased;
}

.ldinq *,
.ldinq-mb,
.ldinq-mb *,
.ldinq-fx,
.ldinq-fx *,
.ldinq-sheet,
.ldinq-sheet * {
  box-sizing: border-box;
}

.ldinq [hidden],
.ldinq-fx [hidden] {
  display: none !important;
}

.ldinq {
  position: fixed;
  inset: 0;
  z-index: 99990;
  visibility: hidden;
  pointer-events: none;
}

.ldinq.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* 桌面不压暗页面：卡片靠阴影浮起，页面内容依旧可读（手机端才用遮罩） */
.ldinq-mask {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.25s var(--ldinq-ease);
}

.ldinq.is-open .ldinq-mask {
  opacity: 1;
}

/* ---------- 面板 ---------- */
/* 桌面：从右下浮起的卡片，不再整屏侧滑 */
.ldinq-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 404px;
  max-width: calc(100% - 40px);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ldinq-line-2);
  border-radius: 16px;
  box-shadow: 0 18px 48px -12px rgba(20, 40, 32, 0.26), 0 2px 8px rgba(20, 40, 32, 0.05);
  transform: translateY(16px) scale(0.985);
  transform-origin: bottom right;
  opacity: 0;
  overflow: hidden;
  transition: transform 0.26s var(--ldinq-ease), opacity 0.2s var(--ldinq-ease);
  will-change: transform, opacity;
}

.ldinq.is-open .ldinq-panel {
  transform: none;
  opacity: 1;
}

.ldinq-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 16px 13px 20px;
}

.ldinq-hd {
  flex: 1 1 auto;
  min-width: 0;
}

.ldinq-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.ldinq-x {
  flex: 0 0 auto;
  margin: -1px -3px 0 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  color: var(--ldinq-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s var(--ldinq-ease), background-color 0.2s var(--ldinq-ease);
}

.ldinq-x:hover {
  color: var(--ldinq-ink);
  background: var(--ldinq-soft);
}

.ldinq-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 20px 16px;
}

/* ---------- 清单 ---------- */
.ldinq-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 7px;
  font-size: 11.5px;
  color: var(--ldinq-muted);
}

.ldinq-cart-head b {
  color: var(--ldinq-ink);
  font-weight: 600;
}

.ldinq-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 11.5px;
  font-family: inherit;
  color: var(--ldinq-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ldinq-link:hover {
  color: var(--ldinq-err);
}

.ldinq-items {
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--ldinq-line);
  border-radius: 10px;
  background: var(--ldinq-soft);
}

.ldinq-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ldinq-line);
}

.ldinq-item:last-child {
  border-bottom: 0;
}

.ldinq-thumb {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.ldinq-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ldinq-thumb.is-empty::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, #eef3ef 0 5px, #f8faf9 5px 10px);
}

.ldinq-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.ldinq-item-title {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ldinq-ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

a.ldinq-item-title:hover {
  color: var(--ldinq-green-text);
}

.ldinq-item-model {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ldinq-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ldinq-item-price {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ldinq-green-text);
  font-variant-numeric: tabular-nums;
}

.ldinq-qty {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-right: 2px;
  border: 0;
  border-radius: 6px;
  color: var(--ldinq-muted);
}

.ldinq-qty button {
  width: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: #9aa8a1;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.18s var(--ldinq-ease);
}

.ldinq-qty button:hover {
  color: var(--ldinq-green-text);
}

.ldinq-qty input {
  width: 20px;
  height: 24px;
  padding: 0;
  border: 0;
  text-align: center;
  font-size: 11.5px;
  font-family: inherit;
  color: var(--ldinq-ink);
  background: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.ldinq-qty input::-webkit-outer-spin-button,
.ldinq-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ldinq-del {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: #b9c2bd;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.18s var(--ldinq-ease), background-color 0.18s var(--ldinq-ease);
}

.ldinq-del:hover {
  color: var(--ldinq-err);
  background: #fff;
}

/* 去询盘页链接 */
.ldinq-quote-link {
  display: block;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--ldinq-green-text);
  text-decoration: none;
}

.ldinq-quote-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ldinq-empty {
  margin: 0;
  padding: 24px 0 20px;
  font-size: 12.5px;
  color: var(--ldinq-muted);
  text-align: center;
}

/* ---------- 产品选择器 ---------- */
.ldinq-find {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ldinq-line);
}

.ldinq-find-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.ldinq-find-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--ldinq-line-2);
  border-right: 0;
  background: #fff;
  font-size: 13px;
  color: var(--ldinq-ink);
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s var(--ldinq-ease);
}

.ldinq-find-input:focus {
  border-color: var(--ldinq-green-text);
}

.ldinq-find-btn {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--ldinq-green);
  background: var(--ldinq-green);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s var(--ldinq-ease), border-color 0.2s var(--ldinq-ease);
}

.ldinq-find-btn:hover {
  background: var(--ldinq-green-d);
  border-color: var(--ldinq-green-d);
}

.ldinq-find-list {
  margin: 0;
}

.ldinq-find-list:empty {
  display: none;
}

.ldinq-hit {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--ldinq-line);
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
}

.ldinq-hit img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 1px solid var(--ldinq-line);
  flex: 0 0 auto;
}

.ldinq-hit-main {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--ldinq-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ldinq-hit-price {
  margin-left: 8px;
  font-style: normal;
  font-size: 12px;
  color: var(--ldinq-muted);
  font-variant-numeric: tabular-nums;
}

.ldinq-hit-add {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 12px;
  color: var(--ldinq-green-text);
}

.ldinq-hit.is-added .ldinq-hit-add {
  color: var(--ldinq-muted);
}

.ldinq-hit:hover .ldinq-hit-main {
  color: var(--ldinq-green-text);
}

.ldinq-hint {
  padding: 12px 0;
  font-size: 12.5px;
  color: var(--ldinq-muted);
}

/* ---------- 表单 ---------- */
.ldinq-form {
  margin-top: 16px;
}

.ldinq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.ldinq-f {
  display: block;
  margin: 0;
  font-weight: 400;
}

.ldinq-f span {
  display: block;
  margin-bottom: 4px;
  font-size: 11.5px;
  color: var(--ldinq-muted);
  letter-spacing: 0.2px;
}

.ldinq-req {
  font-style: normal;
  color: var(--ldinq-err);
  margin-left: 2px;
}

.ldinq-f input,
.ldinq-f textarea,
.ldinq-f select {
  display: block;
  width: 100%;
  padding: 0 10px;
  height: 34px;
  border: 1px solid var(--ldinq-line-2);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ldinq-ink);
  outline: none;
  transition: border-color 0.2s var(--ldinq-ease);
}

.ldinq-f textarea {
  height: auto;
  padding: 8px 10px;
  line-height: 1.55;
  resize: vertical;
}

.ldinq-f select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e7873' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 11px 8px;
}

.ldinq-f input:focus,
.ldinq-f textarea:focus,
.ldinq-f select:focus {
  border-color: var(--ldinq-green-text);
}

/* 国家自动识别提示 */
.ldinq-auto {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  font-style: normal;
  color: var(--ldinq-green-text);
}

/* 分类弹层缩略图 */
.ldinq-cat-thumb {
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: cover;
  border: 1px solid var(--ldinq-line);
  background: #f4f6f4;
}
.ldinq-cat-thumb.is-empty {
  display: block;
}

.ldinq-f-area {
  margin-top: 10px;
}

/* 蜜罐：视觉上完全不可见、不可点 */
.ldinq-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- 附件上传 ---------- */
.ldinq-up {
  margin-top: 10px;
}

.ldinq-up-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--ldinq-line-2);
  border-radius: 8px;
  background: #fff;
  color: var(--ldinq-ink);
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s var(--ldinq-ease), background 0.2s var(--ldinq-ease);
}

.ldinq-up-btn:hover {
  border-color: var(--ldinq-green-text);
  color: var(--ldinq-green-text);
}

.ldinq-up-name {
  margin-left: 8px;
  font-size: 11.5px;
  color: var(--ldinq-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
  vertical-align: middle;
  display: inline-block;
}

.ldinq-up-x {
  border: 0;
  background: none;
  padding: 2px 6px;
  font-size: 14px;
  color: var(--ldinq-muted);
  cursor: pointer;
}

.ldinq-up-x:hover {
  color: var(--ldinq-err);
}

.ldinq-up-bar {
  margin-top: 8px;
  height: 3px;
  background: var(--ldinq-soft);
  overflow: hidden;
}

.ldinq-up-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--ldinq-green);
  transition: width 0.15s linear;
}

.ldinq-up-hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ldinq-muted);
  word-break: break-all;
}

.ldinq-up.is-drag .ldinq-up-btn {
  border-color: var(--ldinq-green-text);
  background: var(--ldinq-soft);
  color: var(--ldinq-green-text);
}

.ldinq-msg {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ldinq-err);
  min-height: 0;
}

.ldinq-msg.is-ok {
  color: var(--ldinq-green-text);
}

/* ---------- 底部提交 ---------- */
.ldinq-foot {
  flex: 0 0 auto;
  padding: 12px 20px 13px;
  border-top: 1px solid var(--ldinq-line);
  background: #fff;
}

.ldinq-submit {
  display: block;
  width: 100%;
  height: 40px;
  border: 1px solid var(--ldinq-green);
  border-radius: 10px;
  background: var(--ldinq-green);
  color: var(--ldinq-on-green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.2s var(--ldinq-ease), border-color 0.2s var(--ldinq-ease);
}

.ldinq-submit:hover {
  background: var(--ldinq-green-d);
  border-color: var(--ldinq-green-d);
}

.ldinq-submit[disabled] {
  opacity: 0.6;
  cursor: default;
}

.ldinq-note {
  margin: 7px 0 0;
  font-size: 11px;
  color: var(--ldinq-muted);
  text-align: center;
}

/* ===== 浮动询盘入口 =====
 *
 * 语义是「我的询盘清单」，不是「留言」：文档图标 + 清单标题 + 「N items」+ 箭头。
 * 默认形态是白卡片（细边框 + 很轻的阴影），刻意不用实心胶囊/气泡，避免读成聊天按钮。
 *   data-btn  card 信息卡（默认） | block 实心计数块 | tab 贴边竖签 | dock 底部条
 *   data-pos  right/left × top/middle/bottom（dock 例外：固定底部居中）
 *   data-pc / data-wap  设备显隐
 * 强调色来自 --ldinq-fx-*（后台「浮动按钮底色 / 文字色」），整卡白底不受影响。
 */
.ldinq-fx {
  position: fixed;
  z-index: 99975;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  --ldinq-edge: 22px;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

/* 六个位置 */
.ldinq-fx[data-pos="right-top"]    { right: var(--ldinq-edge); top: var(--ldinq-edge); }
.ldinq-fx[data-pos="right-bottom"] { right: var(--ldinq-edge); bottom: var(--ldinq-edge); }
.ldinq-fx[data-pos="right-middle"] { right: var(--ldinq-edge); top: 50%; transform: translateY(-50%); }
.ldinq-fx[data-pos="left-top"]     { left: var(--ldinq-edge); top: var(--ldinq-edge); }
.ldinq-fx[data-pos="left-bottom"]  { left: var(--ldinq-edge); bottom: var(--ldinq-edge); }
.ldinq-fx[data-pos="left-middle"]  { left: var(--ldinq-edge); top: 50%; transform: translateY(-50%); }

/* 贴边竖签要真的贴边 */
.ldinq-fx[data-btn="tab"][data-pos^="right"] { right: 0; }
.ldinq-fx[data-btn="tab"][data-pos^="left"]  { left: 0; }

/* 底部条：忽略位置配置，落到底部居中（写在位置规则之后才盖得住） */
.ldinq-fx[data-btn="dock"] {
  left: 50%;
  right: auto;
  top: auto;
  bottom: 18px;
  transform: translateX(-50%);
  justify-content: center;
}

/* ---------- 基座：一张小卡片 ---------- */
.ldinq-fx-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 13px 0 10px;
  border: 1px solid var(--ldinq-line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--ldinq-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 14px 34px -20px rgba(20, 40, 32, 0.42), 0 1px 2px rgba(20, 40, 32, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ldinq-fx-btn:hover {
  transform: translateY(-1px);
  border-color: var(--ldinq-fx-bg);
  box-shadow: 0 20px 40px -22px rgba(20, 40, 32, 0.45), 0 2px 6px rgba(20, 40, 32, 0.09);
}

.ldinq-fx-btn:focus-visible {
  outline: 2px solid var(--ldinq-fx-bg);
  outline-offset: 3px;
}

/* 图标方块：强调色的唯一大面积落点 */
.ldinq-fx-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--ldinq-fx-bg);
  color: var(--ldinq-fx-fg);
}

.ldinq-fx-ic {
  width: 19px;
  height: 19px;
  display: block;
}

.ldinq-fx-txt {
  white-space: nowrap;
}

/* 件数：一条竖线隔开，写成「2 items」 */
.ldinq-fx-cnt {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--ldinq-line-2);
}

.ldinq-fx-cnt[hidden] {
  display: none;
}

.ldinq-fx-num {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  color: var(--ldinq-green-text);
  font-variant-numeric: tabular-nums;
}

.ldinq-fx-unit {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ldinq-muted);
}

.ldinq-fx-ar {
  display: inline-flex;
  align-items: center;
  color: var(--ldinq-muted);
  transition: transform 0.18s ease, color 0.18s ease;
}

.ldinq-fx-btn:hover .ldinq-fx-ar {
  transform: translateX(2px);
  color: var(--ldinq-green-text);
}

/* 面板打开时让位 */
body.ldinq-open .ldinq-fx {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- 形态：实心计数块 ---------- */
.ldinq-fx[data-btn="block"] .ldinq-fx-btn {
  gap: 11px;
  padding: 0 10px 0 12px;
  border-color: var(--ldinq-fx-bg);
  background: var(--ldinq-fx-bg);
  color: var(--ldinq-fx-fg);
}

.ldinq-fx[data-btn="block"] .ldinq-fx-btn:hover {
  border-color: var(--ldinq-fx-bg-d);
  background: var(--ldinq-fx-bg-d);
}

.ldinq-fx[data-btn="block"] .ldinq-fx-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ldinq-fx-chip);
  color: var(--ldinq-fx-fg);
}

.ldinq-fx[data-btn="block"] .ldinq-fx-txt {
  color: inherit;
}

/* 计数区做成卡内的小块，四周留呼吸；0 件时整块消失也不会露出直角 */
.ldinq-fx[data-btn="block"] .ldinq-fx-cnt {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 3px;
  min-width: 56px;
  height: 40px;
  margin-left: 2px;
  padding: 0 11px;
  border-left: 0;
  background: var(--ldinq-fx-chip);
  border-radius: 8px;
  color: inherit;
}

.ldinq-fx[data-btn="block"] .ldinq-fx-num {
  font-size: 17px;
  color: inherit;
}

.ldinq-fx[data-btn="block"] .ldinq-fx-unit {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.75;
  color: inherit;
}

.ldinq-fx[data-btn="block"] .ldinq-fx-ar {
  display: none;
}

/* ---------- 形态：贴边竖签 ---------- */
.ldinq-fx[data-btn="tab"] .ldinq-fx-btn {
  flex-direction: column;
  gap: 10px;
  width: 46px;
  height: auto;
  padding: 15px 0 13px;
  border-color: var(--ldinq-fx-bg);
  border-radius: 12px 0 0 12px;
  border-right: 0;
  background: var(--ldinq-fx-bg);
  color: var(--ldinq-fx-fg);
  font-size: 11.5px;
  box-shadow: -10px 8px 26px -18px rgba(20, 40, 32, 0.5);
}

.ldinq-fx[data-btn="tab"][data-pos^="left"] .ldinq-fx-btn {
  border-radius: 0 12px 12px 0;
  border-right: 1px solid var(--ldinq-fx-bg);
  border-left: 0;
  box-shadow: 10px 8px 26px -18px rgba(20, 40, 32, 0.5);
}

.ldinq-fx[data-btn="tab"] .ldinq-fx-mark {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: none;
  color: inherit;
}

.ldinq-fx[data-btn="tab"] .ldinq-fx-ic {
  width: 19px;
  height: 19px;
}

.ldinq-fx[data-btn="tab"] .ldinq-fx-txt {
  writing-mode: vertical-rl;
  letter-spacing: 0.14em;
  font-size: 11.5px;
  font-weight: 600;
  color: inherit;
}

.ldinq-fx[data-btn="tab"] .ldinq-fx-cnt {
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin: 0;
  padding: 8px 0 0;
  border-left: 0;
  border-top: 1px solid var(--ldinq-fx-chip);
  color: inherit;
}

.ldinq-fx[data-btn="tab"] .ldinq-fx-num {
  font-size: 13px;
  color: inherit;
}

.ldinq-fx[data-btn="tab"] .ldinq-fx-unit {
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: inherit;
  opacity: 0.75;
}

.ldinq-fx[data-btn="tab"] .ldinq-fx-ar,
.ldinq-fx[data-btn="tab"] .ldinq-fx-btn:hover .ldinq-fx-ar {
  display: none;
}

.ldinq-fx[data-btn="tab"] .ldinq-fx-btn:hover {
  transform: none;
}

/* ---------- 形态：底部条 ---------- */
.ldinq-fx[data-btn="dock"] .ldinq-fx-btn {
  height: 58px;
  padding: 0 8px 0 9px;
  gap: 11px;
  border-radius: 14px;
  box-shadow: 0 18px 44px -22px rgba(20, 40, 32, 0.45), 0 2px 6px rgba(20, 40, 32, 0.08);
}

.ldinq-fx[data-btn="dock"] .ldinq-fx-txt {
  padding-right: 4px;
}

.ldinq-fx[data-btn="dock"] .ldinq-fx-cnt {
  padding-left: 11px;
}

.ldinq-fx[data-btn="dock"] .ldinq-fx-ar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 2px;
  border-radius: 10px;
  background: var(--ldinq-fx-bg);
  color: var(--ldinq-fx-fg);
}

.ldinq-fx[data-btn="dock"] .ldinq-fx-btn:hover .ldinq-fx-ar {
  transform: none;
  background: var(--ldinq-fx-bg-d);
}

/* ---------- 留言浮窗（点击打开表单） ----------
 *
 * 与询盘按钮是两套东西：询盘按钮是「带清单去报价」，留言浮窗是「留个需求」。
 * 留言浮窗只有三种形状，整块强调色（气泡形状才读成对话），层级比询盘按钮低一层。
 */
.ldinq-fxm {
  z-index: 99974;
}

/* 圆形气泡：默认形态，只有图标，不写文字 */
.ldinq-fxm[data-btn="circle"] .ldinq-fx-btn {
  width: 56px;
  height: 56px;
  padding: 0;
  gap: 0;
  justify-content: center;
  border-radius: 50%;
  border-color: var(--ldinq-fx-bg);
  background: var(--ldinq-fx-bg);
  color: var(--ldinq-fx-fg);
  box-shadow: 0 16px 36px -18px var(--ldinq-fx-shadow), 0 2px 6px rgba(20, 40, 32, 0.1);
}

.ldinq-fxm[data-btn="circle"] .ldinq-fx-btn:hover {
  border-color: var(--ldinq-fx-bg-d);
  background: var(--ldinq-fx-bg-d);
}

.ldinq-fxm[data-btn="circle"] .ldinq-fx-mark {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: inherit;
}

.ldinq-fxm[data-btn="circle"] .ldinq-fx-ic {
  width: 24px;
  height: 24px;
}

.ldinq-fxm[data-btn="circle"] .ldinq-fx-txt {
  display: none;
}

/* 胶囊：图标 + 文案，整块实心 */
.ldinq-fxm[data-btn="pill"] .ldinq-fx-btn {
  height: 52px;
  padding: 0 20px 0 12px;
  border-radius: 999px;
  border-color: var(--ldinq-fx-bg);
  background: var(--ldinq-fx-bg);
  color: var(--ldinq-fx-fg);
  box-shadow: 0 16px 36px -18px var(--ldinq-fx-shadow), 0 2px 6px rgba(20, 40, 32, 0.1);
}

.ldinq-fxm[data-btn="pill"] .ldinq-fx-btn:hover {
  border-color: var(--ldinq-fx-bg-d);
  background: var(--ldinq-fx-bg-d);
}

.ldinq-fxm[data-btn="pill"] .ldinq-fx-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ldinq-fx-chip);
  color: inherit;
}

/* 贴边竖签沿用询盘按钮那套 tab 样式，只把圆角收成单侧 */
.ldinq-fxm[data-btn="tab"] .ldinq-fx-btn {
  box-shadow: -10px 8px 26px -18px var(--ldinq-fx-shadow);
}

.ldinq-fxm[data-btn="tab"][data-pos^="left"] .ldinq-fx-btn {
  box-shadow: 10px 8px 26px -18px var(--ldinq-fx-shadow);
}

/* 同角避让：位移量由 PHP 写在 --ldinq-stack 上 */
.ldinq-fx[data-stack][data-pos$="bottom"] {
  bottom: calc(var(--ldinq-edge) + var(--ldinq-stack, 68px));
}

.ldinq-fx[data-stack][data-pos$="top"] {
  top: calc(var(--ldinq-edge) + var(--ldinq-stack, 68px));
}

.ldinq-fx[data-stack][data-pos$="middle"] {
  top: calc(50% - var(--ldinq-stack, 68px));
}

/* 设备显隐 */
@media (min-width: 769px) {
  .ldinq-fx[data-pc="0"] {
    display: none;
  }
}

@media (max-width: 768px) {
  .ldinq-fx[data-wap="0"] {
    display: none;
  }

  .ldinq-fx {
    --ldinq-edge: 14px;
  }

  .ldinq-fx-btn {
    height: 52px;
    padding: 0 12px 0 9px;
    gap: 9px;
    font-size: 12.5px;
  }

  .ldinq-fx-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .ldinq-fx-num {
    font-size: 14px;
  }

  /* 手机底栏常驻时抬到底栏之上 */
  body.ldinq-has-mb .ldinq-fx[data-pos$="bottom"] {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  /* 底部条在手机上收成整行 */
  .ldinq-fx[data-btn="dock"] {
    left: 12px;
    right: 12px;
    transform: none;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  body.ldinq-has-mb .ldinq-fx[data-btn="dock"] {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .ldinq-fx[data-btn="dock"] .ldinq-fx-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .ldinq-fx[data-btn="dock"] .ldinq-fx-txt {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ldinq-fx[data-btn="dock"] .ldinq-fx-ar {
    margin-left: auto;
  }

  /* 竖签在手机上收窄一点，别压着内容 */
  .ldinq-fx[data-btn="tab"] .ldinq-fx-btn {
    width: 42px;
    padding: 10px 0 12px;
  }
}

/* 面板标题下的说明文字 */
.ldinq-desc {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ldinq-muted);
}

/* ---------- 手机底栏 ---------- */
.ldinq-mb {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99970;
  display: none;
  border-top: 1px solid var(--ldinq-line-2);
  background: #fff;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -1px 12px rgba(20, 40, 32, 0.06);
}

/* 皮肤：浅灰（默认） */
.ldinq-mb[data-style="light"] {
  background: #fff;
  border-top-color: var(--ldinq-line-2);
  color: var(--ldinq-ink);
}

.ldinq-mb[data-style="light"] .ldinq-mb-ic {
  stroke: var(--ldinq-green-text);
}

/* 皮肤：深色 */
.ldinq-mb[data-style="dark"] {
  background: #171b19;
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #e8ece9;
  box-shadow: none;
}

.ldinq-mb[data-style="dark"] .ldinq-mb-ic {
  stroke: #a7b3ac;
}

.ldinq-mb[data-style="dark"] .ldinq-mb-num {
  background: var(--ldinq-green);
  color: var(--ldinq-on-green);
}

/* 皮肤：主色填充 */
.ldinq-mb[data-style="accent"] {
  background: var(--ldinq-green);
  border-top-color: var(--ldinq-green-d);
  color: var(--ldinq-on-green);
  box-shadow: none;
}

.ldinq-mb[data-style="accent"] .ldinq-mb-ic {
  stroke: var(--ldinq-on-green);
}

.ldinq-mb[data-style="accent"] .ldinq-mb-num {
  background: #fff;
  color: var(--ldinq-green-d);
}

/* 皮肤：毛玻璃 */
.ldinq-mb[data-style="glass"] {
  background: rgba(255, 255, 255, 0.82);
  border-top-color: var(--ldinq-line);
  box-shadow: none;
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .ldinq-mb[data-style="glass"] {
    background: rgba(250, 252, 250, 0.66);
  }
}

.ldinq-mb[data-style="glass"] .ldinq-mb-ic {
  stroke: var(--ldinq-green-text);
}

.ldinq-mb-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 50px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 13px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}

.ldinq-mb-ic {
  flex-shrink: 0;
}

.ldinq-mb-btn:hover {
  opacity: 0.85;
}

.ldinq-mb-num + span,
.ldinq-mb-btn span {
  overflow: hidden;
  white-space: nowrap;
}

.ldinq-mb-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ldinq-green);
  color: var(--ldinq-on-green);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 底部弹层（产品分类 / 联系方式） ---------- */
.ldinq-sheet {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
}

.ldinq-sheet.is-open {
  display: block;
}

.ldinq-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 25, 0.42);
}

.ldinq-sheet-box {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 74vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--ldinq-line-2);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transform: translateY(100%);
  transition: transform 0.26s var(--ldinq-ease);
}

.ldinq-sheet.is-open .ldinq-sheet-box {
  transform: translateY(0);
}

/* 抓手条：暗示可下拉关闭 */
.ldinq-sheet-grab {
  flex: 0 0 auto;
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: rgba(22, 42, 33, 0.18);
}

.ldinq-sheet-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px 12px;
  border-bottom: 1px solid var(--ldinq-line);
}

.ldinq-sheet-tt b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ldinq-ink);
}

.ldinq-sheet-tt em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11.5px;
  color: var(--ldinq-muted);
}

.ldinq-sheet-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ldinq-line);
  background: none;
  color: var(--ldinq-ink);
  cursor: pointer;
}

.ldinq-sheet-body {
  overflow-y: auto;
  padding: 6px 0;
}

.ldinq-sheet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--ldinq-line);
  background: none;
  color: var(--ldinq-ink);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.ldinq-sheet-row:last-child {
  border-bottom: 0;
}

.ldinq-sheet-row i.fa {
  font-size: 16px;
  color: var(--ldinq-green-text);
}

.ldinq-sheet-row b {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
}

.ldinq-sheet-row span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ldinq-muted);
}

.ldinq-ch-arrow {
  flex-shrink: 0;
  color: #c5cdc8 !important;
}

.ldinq-sheet-row.is-copied span::after {
  content: ' ✓';
  color: var(--ldinq-green-text);
}

/* ---------- 产品分类弹层 ---------- */
.ldinq-ms-search {
  position: relative;
  margin: 10px 18px 4px;
}

.ldinq-ms-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ldinq-muted);
  pointer-events: none;
}

.ldinq-ms-search input {
  width: 100%;
  height: 36px;
  padding: 0 34px 0 32px;
  border: 1px solid var(--ldinq-line-2);
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  color: var(--ldinq-ink);
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s var(--ldinq-ease);
}

.ldinq-ms-search input:focus {
  border-color: var(--ldinq-green-text);
}

.ldinq-ms-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  background: none;
  color: var(--ldinq-muted);
  font-size: 15px;
  cursor: pointer;
}

.ldinq-cat-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.ldinq-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ldinq-line);
  text-decoration: none;
  color: var(--ldinq-ink);
  font-size: 14px;
}

.ldinq-cat-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ldinq-cat-count {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--ldinq-soft);
  color: var(--ldinq-muted);
  font-size: 11.5px;
  text-align: center;
}

.ldinq-cat-row .fa-angle-right {
  flex-shrink: 0;
  color: #c5cdc8;
}

.ldinq-cat-none {
  margin: 0;
  padding: 26px 18px;
  font-size: 13px;
  color: var(--ldinq-muted);
  text-align: center;
}

.ldinq-cat-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 18px;
  border-top: 1px solid var(--ldinq-line);
  font-size: 13.5px;
  color: var(--ldinq-green-text);
  text-decoration: none;
}

.ldinq-cat-all:hover {
  background: var(--ldinq-soft);
}

/* ---------- 焦点可见性 ---------- */
.ldinq-mb-btn:focus-visible,
.ldinq-submit:focus-visible,
.ldinq-up-btn:focus-visible,
.ldinq-sheet-x:focus-visible {
  outline: 2px solid var(--ldinq-green);
  outline-offset: 2px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 769px) {
  /* 后台开启「桌面端也显示底栏」时，宽屏也出底栏 */
  .ldinq-mb[data-desktop="1"] {
    display: flex;
  }

  body.ldinq-has-mb .ldinq-mb[data-desktop="1"] ~ * {
    /* 占位由 body padding 完成，这里不需要处理 */
  }
}

@media (max-width: 768px) {
  .ldinq-mask {
    background: rgba(15, 26, 21, 0.38);
  }

  /* 手机：贴底弹层，圆角只在顶部 */
  .ldinq-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border: 0;
    border-top: 1px solid var(--ldinq-line-2);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 40px -22px rgba(20, 40, 32, 0.32);
    transform: translateY(100%);
    transform-origin: bottom center;
    opacity: 1;
  }

  .ldinq.is-open .ldinq-panel {
    transform: none;
  }

  .ldinq-mb {
    display: flex;
  }

  .ldinq-grid {
    grid-template-columns: 1fr;
  }

  .ldinq-foot {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  body.ldinq-has-mb {
    padding-bottom: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ldinq-mask,
  .ldinq-panel,
  .ldinq-sheet-box,
  .ldinq-up-bar i {
    transition: none;
  }
}
