/* 客服按钮和弹框样式 */

/* 客服按钮 */
.customer-service-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.customer-service-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.customer-service-btn svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* 客服弹框 */
.customer-service-modal {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 400px;
  height: 600px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
}

.customer-service-modal.active {
  display: flex;
}

/* 弹框头部 */
.customer-service-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.customer-service-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.customer-service-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.customer-service-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 弹框内容区域 */
.customer-service-content {
  flex: 1;
  overflow: hidden;
}

.customer-service-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .customer-service-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .customer-service-btn svg {
    width: 24px;
    height: 24px;
  }

  .customer-service-modal {
    width: calc(100vw - 40px);
    height: 500px;
    bottom: 80px;
    right: 20px;
    left: 20px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .customer-service-modal {
    width: calc(100vw - 20px);
    height: 450px;
    bottom: 80px;
    right: 10px;
    left: 10px;
  }

  .customer-service-btn {
    bottom: 15px;
    right: 15px;
  }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1024px) {
  .customer-service-modal {
    width: 380px;
    height: 550px;
  }
}
