/* 联系我们侧边栏样式 - Z-Blog专用 */
.quick-service-sidebar {
  position: fixed !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 99999 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.qs-toggle-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 150px;
  background: linear-gradient(180deg, #ff6b35 0%, #f7931e 50%, #ffcc00 100%);
  background-size: 200% 200%;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: -4px 0 20px rgba(255, 107, 53, 0.5);
  transition: all 0.3s ease;
}

.qs-toggle-btn:hover {
  width: 58px;
  box-shadow: -6px 0 25px rgba(255, 107, 53, 0.7);
}

.qs-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qs-line {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.qs-toggle-btn:hover .qs-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.qs-toggle-btn:hover .qs-line:nth-child(2) {
  opacity: 0;
}

.qs-toggle-btn:hover .qs-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.qs-toggle-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.qs-panel {
  position: absolute;
  right: -320px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  background: #fff;
  border-radius: 12px 0 0 12px;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.4s ease;
  overflow: hidden;
}

.qs-panel.active {
  right: 50px;
}

.qs-panel-header {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  padding: 22px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qs-panel-header h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.qs-close-btn {
  color: #fff !important;
  font-size: 28px !important;
  cursor: pointer !important;
  line-height: 1 !important;
  opacity: 1 !important;
  transition: opacity 0.2s;
  position: relative !important;
  z-index: 99999 !important;
  padding: 5px 10px !important;
}

.qs-close-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.qs-panel-content {
  padding: 20px;
}

.qs-section {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.qs-section:last-child {
  border-bottom: none;
}

.qs-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qs-icon-wrap.wechat {
  background: linear-gradient(135deg, #00c853 0%, #00a344 100%);
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.5);
}

.qs-icon-wrap.phone {
  background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
  box-shadow: 0 6px 20px rgba(255, 23, 68, 0.5);
}

.qs-icon-wrap:hover {
  transform: scale(1.1) rotate(5deg);
}

.qs-icon {
  width: 28px;
  height: 28px;
  color: #fff;
}

.qs-label {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.qs-qrcode {
  margin-top: 12px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.qs-qrcode img {
  width: 120px;
  height: 120px;
  border-radius: 4px;
}

.qs-qrcode-tip {
  margin: 8px 0 0;
  color: #666;
  font-size: 12px;
}

.qs-phone-link {
  text-decoration: none;
  display: block;
}

.qs-phone-number {
  margin: 10px 0 0;
  color: #ff1744;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

@media screen and (max-width: 768px) {
  .quick-service-sidebar {
    right: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }
  
  .qs-toggle-btn {
    width: 45px;
    height: 120px;
  }
  
  .qs-toggle-text {
    font-size: 12px;
    letter-spacing: 1px;
  }
  
  .qs-panel {
    right: -320px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 280px;
    max-width: 280px;
    border-radius: 12px 0 0 12px;
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .qs-panel.active {
    right: 45px !important;
  }
  
  .qs-close-btn {
    position: relative !important;
    z-index: 99999 !important;
    color: #fff !important;
    font-size: 32px !important;
    padding: 0 10px !important;
    opacity: 1 !important;
  }
  
  .qs-panel-content {
    padding: 15px;
  }
  
  .qs-section {
    padding: 15px 0;
  }
  
  .qs-icon-wrap {
    width: 50px;
    height: 50px;
  }
  
  .qs-icon {
    width: 24px;
    height: 24px;
  }
  
  .qs-qrcode img {
    width: 100px;
    height: 100px;
  }
}

@media screen and (max-width: 375px) {
  .qs-toggle-btn {
    width: 40px;
    height: 100px;
  }
  
  .qs-toggle-text {
    font-size: 11px;
  }
  
  .qs-panel {
    max-width: 280px;
  }
}
