/* 首页注册引导助手 */
.eqms-registration-agent-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.eqms-registration-agent-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.eqms-registration-agent-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(30, 136, 229, 0.5);
}

.eqms-registration-agent-btn img {
  width: 34px;
  height: 34px;
  display: block;
}

.eqms-registration-agent-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 480px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  flex-direction: column;
  overflow: hidden;
}

.eqms-registration-agent-panel.open {
  display: flex;
}

.eqms-registration-agent-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eqms-registration-agent-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  opacity: 0.9;
  padding: 0;
}

.eqms-registration-agent-close:hover {
  opacity: 1;
}

.eqms-registration-agent-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f5f7fa;
}

.eqms-registration-agent-shortcuts {
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.eqms-registration-agent-shortcut {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f7ff;
  color: #1e88e5;
  border: 1px solid #bbdefb;
  border-radius: 14px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.eqms-registration-agent-shortcut:hover {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #1565c0;
}

.eqms-registration-agent-msg {
  max-width: 88%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.eqms-registration-agent-msg.user {
  margin-left: auto;
  background: #1e88e5;
  color: #fff;
}

.eqms-registration-agent-msg.assistant {
  margin-right: auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.eqms-registration-agent-links {
  margin-top: 10px;
}

.eqms-registration-agent-links a {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 6px 12px;
  background: #e3f2fd;
  color: #1565c0;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}

.eqms-registration-agent-links a:hover {
  background: #bbdefb;
}

.eqms-registration-agent-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 2px;
}

.eqms-registration-agent-typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #1e88e5;
  border-radius: 50%;
  animation: eqms-registration-bounce 1.2s infinite ease-in-out;
}

.eqms-registration-agent-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.eqms-registration-agent-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes eqms-registration-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.eqms-registration-agent-foot {
  padding: 10px 12px;
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
}

.eqms-registration-agent-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.eqms-registration-agent-input:focus {
  border-color: #1e88e5;
}

.eqms-registration-agent-send {
  padding: 10px 18px;
  background: #1e88e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.eqms-registration-agent-send:hover {
  background: #1565c0;
}

.eqms-registration-agent-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .eqms-registration-agent-wrap {
    right: 12px;
    bottom: 12px;
  }

  .eqms-registration-agent-panel {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    height: 70vh;
    bottom: 60px;
  }
}
