/* 清鼻堂右侧悬浮服务栏 —— 沿用站内原有白色胶囊悬浮条的比例与线条感
   宽度对齐旧 .right_slide（约 67px），线性图标 + 深灰两行文字，仅「在线咨询」用主色强调 */
.qbt-side,
.qbt-side * { box-sizing: border-box; }

.qbt-side {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 970;
  width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* 卡通吉祥物已按用户要求移除：不再显示任何小象/机器人图案 */
.qbt-side .sb-robot { display: none !important; }
.qbt-side .sb-robot img { display: none !important; }

/* 移动端展开/收起按钮（桌面端隐藏） */
.qbt-side .sb-toggle { display: none; }

/* 白色胶囊外壳 */
.qbt-side .sb-pill {
  width: 100%;
  padding: 8px 6px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(20, 80, 74, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.qbt-side .sb-item {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 26px;
  padding: 12px 0 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: #333333;
  transition: background 0.25s ease;
}
.qbt-side .sb-item + .sb-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
}
.qbt-side .sb-item:hover { background: #f3faf9; }

.qbt-side .sb-consult {
  padding: 16px 0;
  background: linear-gradient(155deg, #5bd5d0 0%, #00aca8 55%, #008a86 100%);
  color: #ffffff !important;
}
.qbt-side .sb-consult:hover { background: linear-gradient(155deg, #5bd5d0 0%, #00aca8 55%, #008a86 100%); }
.qbt-side .sb-big {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  color: #ffffff;
}

.qbt-side .sb-ico { display: block; line-height: 0; color: #00aca8; }
.qbt-side .sb-ico svg { display: block; width: 20px; height: 20px; }
.qbt-side .sb-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: center;
  color: #333333;
}

/* 返回顶部按钮已按要求移除（保留胶囊本体） */

/* 旧站右侧「国内加盟 / 扶持加盟」浮动条已由本组件替代，避免两套悬浮重叠 */
body:has(.qbt-side) .right_slide { display: none !important; }
.right_slide { display: none !important; }

/* ---------- 信息弹层 ---------- */
.qbt-mask {
  position: fixed;
  inset: 0;
  z-index: 960;
  background: rgba(20, 44, 42, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.qbt-mask.show { opacity: 1; pointer-events: auto; }

.qbt-panel {
  position: fixed;
  z-index: 980;
  right: 108px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  width: 272px;
  padding: 22px 20px 20px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(20, 80, 74, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
.qbt-panel.show { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
.qbt-panel .qbp-close {
  position: absolute;
  top: 9px;
  right: 12px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #9aa9a7;
  font-size: 20px;
  line-height: 24px;
  cursor: pointer;
}
.qbt-panel .qbp-close:hover { color: #00aca8; }
.qbt-panel .qbp-body { display: none; }
.qbt-panel .qbp-body.on { display: block; }
.qbt-panel .qbp-tit {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #00aca8;
}
.qbt-panel .qbp-p {
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 1.75;
  color: #6a7674;
}
.qbt-panel .qbp-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid #eef4f3;
}
.qbt-panel .qbp-row span { font-size: 12px; color: #9aa9a7; }
.qbt-panel .qbp-row a {
  font-size: 16px;
  font-weight: 700;
  color: #00aca8;
  text-decoration: none;
  white-space: nowrap;
}
.qbt-panel .qbp-btn {
  display: block;
  margin-top: 14px;
  padding: 10px 0;
  border-radius: 24px;
  background: #00aca8;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.qbt-panel .qbp-btn:hover { background: #189b93; }

/* ---------- 移动端 ---------- */
@media (max-width: 1024px) {
  /* 默认只显示一个 46px 圆形咨询按钮，点开才展开四个入口，避免遮挡正文 */
  .qbt-side {
    right: 12px;
    top: auto;
    bottom: 16px;
    transform: none;
    width: auto;
    gap: 8px;
    align-items: flex-end;
  }
  .qbt-side .sb-pill {
    display: none;
    order: 1;
    width: 56px;
    border-radius: 28px;
    padding: 6px 4px;
  }
  .qbt-side.open .sb-pill { display: flex; }
  .qbt-side .sb-toggle {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(155deg, #5bd5d0 0%, #00aca8 55%, #008a86 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 4px 16px rgba(20, 80, 74, 0.22);
    cursor: pointer;
  }
  .qbt-side .sb-toggle svg { width: 20px; height: 20px; display: block; }
  .qbt-side .sb-item { padding: 9px 0; border-radius: 14px; }
  .qbt-side .sb-consult { padding: 11px 0; }
  .qbt-side .sb-big { font-size: 12px; line-height: 1.4; }
  .qbt-side .sb-ico svg { width: 18px; height: 18px; }
  .qbt-side .sb-label { margin-top: 5px; font-size: 12px; line-height: 1.35; }
  .qbt-panel {
    right: auto;
    left: 50%;
    top: 50%;
    width: min(280px, 82vw);
    transform: translate(-50%, -50%) scale(0.96);
  }
  .qbt-panel.show { transform: translate(-50%, -50%) scale(1); }
}

/* ---------- 移动端：底部吸附横向工具栏（四项完全统一版）20261118l ----------
   四个入口统一为「格内胶囊底 + 线性图标 + 单行文字」；
   咨询用主色渐变胶囊强调，其余三项用浅灰胶囊，结构、尺寸、对齐完全一致。 */
@media (max-width: 1024px) {
  body:has(.qbt-side) { padding-bottom: 70px; }

  .qbt-side {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    transform: none;
    gap: 0;
    align-items: stretch;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 -2px 16px rgba(20, 80, 74, 0.14);
  }
  /* 圆形展开按钮、吉祥物不再需要：底栏常驻显示 */
  .qbt-side .sb-toggle { display: none !important; }
  .qbt-side .sb-robot { display: none !important; }

  .qbt-side .sb-pill {
    display: flex !important;
    order: 0;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 5px 0 calc(5px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }
  /* 四项统一：等宽、同高、同结构；浅灰胶囊底 */
  .qbt-side .sb-item {
    position: relative;
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 6px 0 7px;
    border-radius: 0;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .qbt-side .sb-item:not(.sb-consult)::before { display: none !important; }
  .qbt-side .sb-item::after {
    content: "";
    position: absolute;
    inset: 4px 6px;
    z-index: -1;
    border-radius: 12px;
    background: #f2f7f6;
  }
  .qbt-side .sb-item:hover { background: transparent; }

  .qbt-side .sb-ico { display: block; line-height: 0; color: #00aca8; margin-bottom: 4px; }
  .qbt-side .sb-ico svg { width: 20px; height: 20px; }
  .qbt-side .sb-label {
    display: block;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    color: #333333;
    text-align: center;
  }
  /* 关键：隐藏 HTML 里的强制换行，四项文字全部单行对齐 */
  .qbt-side .sb-label br,
  .qbt-side .sb-big br { display: none !important; }

  /* 在线咨询：主色渐变胶囊 + 客服气泡图标 + 单行文字（结构与其他三项一致） */
  .qbt-side .sb-consult { padding: 6px 0 7px; background: transparent; border-radius: 0; }
  .qbt-side .sb-consult:hover { background: transparent; }
  .qbt-side .sb-consult::after {
    background: linear-gradient(155deg, #5bd5d0 0%, #00aca8 55%, #008a86 100%);
  }
  .qbt-side .sb-consult::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 9.5 9.5 0 0 1-3.3-.6L3 21l1.7-5.3A8.4 8.4 0 0 1 12 3.1a8.4 8.4 0 0 1 9 8.4z'/%3E%3Cpath d='M8.5 11.5h7M8.5 14.5h4'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .qbt-side .sb-consult .sb-big {
    display: block;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    white-space: nowrap;
    color: #ffffff;
    text-align: center;
  }

  /* 信息弹层改为从底栏上方弹出 */
  .qbt-panel {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 76px;
    width: min(320px, 88vw);
    transform: translateX(-50%) translateY(8px);
  }
  .qbt-panel.show { transform: translateX(-50%) translateY(0); }
}

/* ---------- 预约到店表单 20261118 ---------- */
.qbp-form { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 0; }
.qbf-in {
  width: 100%; box-sizing: border-box;
  padding: 9px 12px; border: 1px solid #cfe3e0; border-radius: 10px;
  font-size: 14px; color: #263332; background: #f7fbfa;
  outline: none; transition: border-color .2s ease, background .2s ease;
}
.qbf-in:focus { border-color: #00aca8; background: #ffffff; }
.qbp-form .qbp-btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.qbp-form .qbp-btn[disabled] { opacity: .6; cursor: default; }
.qbf-msg { display: none; margin: 0; font-size: 12px; line-height: 1.4; color: #d05050; }
.qbp-ok { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #12845f; font-weight: 600; }
.qbp-p.qbf-alt { margin-top: 10px; font-size: 12px; }
.qbp-p.qbf-alt a { color: #008a86; font-weight: 600; }

/* ---------- 在线咨询：客服二维码版 20261118 ---------- */
.qbt-panel .qbp-p--sm { margin: 0 0 12px; font-size: 12px; line-height: 1.65; color: #8a9795; }
.qbp-qr { margin: 0 0 12px; text-align: center; }
.qbp-qr-in {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  padding: 9px;
  box-sizing: border-box;
  border: 1px solid #e6efed;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(20, 80, 74, 0.05);
}
.qbp-qr-img { display: block; width: 100%; height: auto; border-radius: 8px; }
.qbp-qr.no-img .qbp-qr-img { display: none; }
.qbp-qr-ph {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 1 / 1;
  height: auto;
  padding: 0 10px;
  border: 1px dashed #bfdedb;
  border-radius: 8px;
  background: #f8fcfb;
  color: #9aa9a7;
  font-size: 12px;
  line-height: 1.5;
}
.qbp-qr.no-img .qbp-qr-ph { display: flex; }
.qbp-qr-ph svg { width: 26px; height: 26px; color: #bfdedb; }
.qbp-qr-tip { margin: 7px 0 0; font-size: 12px; line-height: 1.4; color: #9aa9a7; }

.qbp-telcard {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f4f8f7;
  text-decoration: none;
  transition: background 0.2s ease;
}
.qbp-telcard:hover { background: #eaf3f1; }
.qbp-telico { flex: 0 0 auto; color: #008a86; line-height: 0; }
.qbp-telico svg { width: 20px; height: 20px; display: block; }
.qbp-teltext { display: flex; flex-direction: column; line-height: 1.25; }
.qbp-teltext em { font-style: normal; font-size: 12px; color: #8a9795; }
.qbp-teltext b { font-size: 18px; font-weight: 700; color: #008a86; letter-spacing: 0.3px; }

.qbt-panel .qbp-btn.qbp-copy {
  width: 100%;
  border: 0;
  padding: 11px 0;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #5bd5d0 0%, #00aca8 55%, #008a86 100%);
  box-shadow: 0 6px 16px rgba(0, 172, 168, 0.22);
}
.qbt-panel .qbp-btn.qbp-copy:hover { background: linear-gradient(135deg, #4fc9c4 0%, #009e9a 55%, #007d79 100%); }

@media (max-width: 1024px) {
  .qbt-panel .qbp-body[data-panel="consult"] { max-height: calc(100vh - 150px); overflow-y: auto; }
}
