/* Left floating contact bar */
.ts-float {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10040;
  font-family: "Microsoft YaHei", sans-serif;
}

.ts-float-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-left: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.08);
}

.ts-float-item {
  position: relative;
  margin: 0;
  border-bottom: 1px solid #eee;
}

.ts-float-item:last-child {
  border-bottom: none;
}

.ts-float-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-height: 68px;
  padding: 10px 6px 12px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
  text-decoration: none;
  transition: background 0.2s;
}

.ts-float-btn:hover,
.ts-float-item.is-open > .ts-float-btn {
  background: #f7f7f7;
  color: #333;
}

.ts-float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  line-height: 0;
}

.ts-float-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.ts-float-icon-qq {
  color: #12B7F5;
  font-size: 26px;
  line-height: 1;
}

.ts-float-icon-qq .fa {
  display: block;
  line-height: 1;
}

.ts-float-label {
  display: block;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  color: #888;
  letter-spacing: 0.02em;
}

.ts-float-item-inquiry .ts-float-label {
  line-height: 1.2;
}

.ts-float-panel {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  margin-left: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  z-index: 2;
}

.ts-float-panel::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background: #fff;
  border-left: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  transform: rotate(45deg);
}

.ts-float-item:hover .ts-float-panel,
.ts-float-item.is-open .ts-float-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(10px);
}

.ts-float-panel-qr {
  text-align: center;
  padding: 12px;
}

.ts-float-panel-qr img {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.ts-float-panel-tip {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.ts-float-panel-phone,
.ts-float-panel-qq {
  min-width: 160px;
  padding: 14px 18px;
}

.ts-float-qq-num {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #12b7f5;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.ts-float-phone-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.ts-float-phone-num {
  display: block;
  margin: 4px 0;
  font-size: 14px;
  color: #2f80ed;
  text-decoration: none;
  line-height: 1.5;
}

.ts-float-phone-num:hover {
  text-decoration: underline;
  color: #1a66d1;
}

@media screen and (max-width: 767px) {
  .ts-float {
    top: auto;
    bottom: 80px;
    transform: none;
  }

  .ts-float-btn {
    width: 48px;
    min-height: 58px;
    padding: 8px 4px 10px;
  }

  .ts-float-icon,
  .ts-float-icon img {
    width: 24px;
    height: 24px;
  }

  .ts-float-label {
    font-size: 11px;
  }

  .ts-float-panel-qr img {
    width: 120px;
    height: 120px;
  }
}
