/* =========================
   右侧悬浮工具栏
   ========================= */

/* Overriding Bootstrap Button Style */
.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
}

.sidebar-tools {
  position: fixed;
  top: 30%;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tool-btn {
  width: 60px;
  height: 60px;
  background: #4EC1C4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 0;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  position: relative;
}
.tool-btn:hover {
  background: #6ee2e6;
  transform: translateX(-6px) scale(1.08);
}

/* =========================
   通用模态框蒙层
   ========================= */
.qr-modal, .inquiry-modal, .phone-modal, .social-modal, .service-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.service-modal { display: none; }

/* =========================
   通用模态框内容区
   ========================= */
.qr-modal-content, .inquiry-modal-content, .phone-modal-content, .social-modal-content, .service-modal-content {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
}

/* =========================
   询价表单模态框内容区
   ========================= */
.inquiry-modal-content {
  width: 400px;
  min-width: 320px;
  max-width: 96vw;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0;
  background: #fff;
}
.inquiry-modal-header {
  width: 100%;
  background: #4EC1C4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 48px;
  border-radius: 0;
}
.inquiry-title {
  flex: 1;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: 1px;
}
.inquiry-modal-header .inquiry-close {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
}
.inquiry-modal-content form {
  padding: 24px 24px 0 24px;
}
.inquiry-modal-content input,
.inquiry-modal-content textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #dbe6e6;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 14px;
}
.inquiry-modal-content textarea {
  height: 140px; /* 默认高度80px，增加60px */
}
.inquiry-modal-content button[type="submit"] {
  width: auto;
  display: block;
  margin: 24px auto 16px auto;
  background: #4EC1C4;
  color: #fff;
  border: none;
  padding: 10px 36px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: none;
}
.inquiry-modal-content button[type="submit"]:hover {
  background: #6ee2e6;
}
.inquiry-modal-content .btn-refresh {
  background-color: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
}
.inquiry-modal-content .btn-refresh:hover {
  background-color: var(--color-secondary-light) !important;
  border-color: var(--color-secondary-light) !important;
}
.captcha-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 10px 0 18px 0;
  justify-content: flex-end;
}
.captcha-row .captcha-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  font-size: 1rem;
  padding: 8px;
  margin-right: 8px;
  height: 44px;
  margin-bottom: 0 !important;
}
.captcha-row .captcha-img {
  height: 44px;
  min-width: 130px;
  width: 130px;
  font-size: 1.2rem;
  margin-right: 8px;
}
.captcha-row .captcha-refresh {
  background: #4EC1C4;
  color: #fff;
  border: none;
  border-radius: 4px;
  height: 44px;
  font-size: 1.7rem;
  width: 30px;
  padding: 0;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.captcha-row .captcha-refresh:hover {
  background: #6ee2e6;
}
.captcha-input {
  margin-bottom: 0 !important;
}

/* =========================
   微信二维码弹窗内容区
   ========================= */
.wechat-modal {
  padding: 0 0 24px 0;
  background: #fff;
  border-radius: 0;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wechat-modal-header {
  width: 100%;
  background: #4EC1C4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 48px;
}
.wechat-title {
  flex: 1;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: 1px;
}
.wechat-modal .qr-close {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
}
.wechat-modal img {
  width: 180px;
  height: 180px;
  margin: 24px auto 12px auto;
  object-fit: contain;
  display: block;
}
.wechat-tip {
  color: #4EC1C4;
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

/* =========================
   社交媒体弹窗内容区
   ========================= */
.social-modal-content {
  position: relative;
  padding-top: 48px !important;
  background: #fff;
  min-width: 480px;
  max-width: 96vw;
  width: 480px;
  box-sizing: border-box;
}
.social-modal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #4EC1C4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 0;
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  z-index: 10;
}
.social-title {
  flex: 1;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.social-modal-header .social-close {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
}
.social-modal-body {
  height: 140px; /* 原80px+60px */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  padding: 0 32px; /* 左右留白 */
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #4EC1C4;
  color: #fff;
  border-radius: 8px;
  font-size: 2rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.social-links a:hover {
  background: #6ee2e6;
  color: #fff;
}

/* =========================
   人工服务弹窗内容区
   ========================= */
.service-modal-content {
  padding: 0 0 24px 0;
  background: #fff;
  border-radius: 0;
  min-width: 400px;
  max-width: 96vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  text-align: center;
  font-size: 1.18rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-modal-header {
  width: 100%;
  background: #4EC1C4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 48px;
  border-radius: 0;
  margin: 0;
  box-sizing: border-box;
}
.service-title {
  flex: 1;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: 1px;
  color: #fff;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.service-modal-header .service-close {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
}
.service-info {
  margin-top: 18px;
  font-size: 1.1rem;
  color: #3897B3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  width: 100%;
}
.service-info div {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}
.service-info strong {
  min-width: 80px;
  display: inline-block;
}
.service-info a {
  flex: 1;
  text-align: left;
  word-break: break-all;
}
.service-info a:hover {
  color: #3897B3;
}

/* =========================
   右侧工具栏按钮tooltip样式
   ========================= */
.tool-tooltip {
  position: absolute;
  left: -140px;
  top: 50%;
  transform: translateY(-50%);
  background: #222;
  color: #fff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tool-btn:hover .tool-tooltip {
  opacity: 1;
}

/* 响应式 */
@media (max-width: 600px) {
  .sidebar-tools {
    top: unset;
    bottom: 10%;
    right: 10px;
    flex-direction: row;
    gap: 10px;
  }
  .tool-btn {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    border-radius: 0;
  }
}

.service-modal-header .service-title {
  color: #fff;
}
