:root {
  --robot-head: var(--robotColor);
  --robot-eye: var(--robotColor);
  --robot-mouth: #fff;
  --robot-body: #fff;
  --borderColor: var(--robotColor);
  --background: #fff;
  --button-color: var(--robotColor);
}
@keyframes headBreathe {
  0% {
    transform: scale(0.1) rotate(0deg);
    right: 30%;
  }
  50% {
    transform: scale(0.2) rotate(-2deg);
    right: 140px;
  }
  100% {
    transform: scale(0.5) rotate(2deg);
    right: 50px;
  }
}
/* 机器人容器 */
.robot-container {
  width: 300px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  transform: scale(0.5);
  position: absolute;
  right: 50px;
  top: 200px;
  z-index: 99999;
  animation: headBreathe 4s ease-in-out;
}
.robot-container .wx {
  margin-top: 150px;
}
.robot-container:before {
  content: '点维瞰企业网欢迎您!';
  margin-bottom: 10px;
  background: var(--robotColor);
  color: #fff;
  padding: 10px;
  border-radius: 30px;
}
/* 机器人头部 */
.robot-head {
  position: relative;
  width: 180px;
  height: 140px;
  background: var(--robot-head);
  border-radius: 50%;
  border: 15px solid #fff;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  /* border-bottom-left-radius: 155px;
			border-bottom-right-radius: 155px;
            border-top-left-radius: 130px;
			border-top-right-radius: 130px; */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* 天线容器 */
.antennas {
  position: absolute;
  top: -20px;
  width: 80px;
  height: 35px;
  display: flex;
  justify-content: space-between;
}
/* 天线 */
.antenna {
  position: relative;
  width: 20px;
  height: 35px;
  background: var(--borderColor);
  transform-origin: bottom;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.antenna.left {
  transform: rotate(-15deg);
}
.antenna.right {
  transform: rotate(15deg);
}
/* 眼睛容器 */
.eyes {
  position: relative;
  width: 110px;
  height: 40px;
  margin-top: 35px;
  display: flex;
  justify-content: space-between;
}
/* 眼睛 */
.eye {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  border: 3px solid var(--robot-eye);
  position: relative;
  overflow: hidden;
}
/* 眼球 */
.pupil {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--robot-eye);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* 眼睛高光 */
.pupil::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  top: 20%;
  left: 20%;
}
/* 眼睑 */
.eyelid {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--robot-head);
  top: -100%;
  left: 0;
  border-radius: 50%;
  animation: blink 4s infinite;
}
/* 嘴巴容器 */
.mouth-container {
  position: relative;
  width: 100px;
  height: 50px;
  margin-top: 15px;
}
/* 默认微笑嘴巴 */
.mouth-smile {
  position: absolute;
  width: 70px;
  height: 35px;
  border: 5px solid var(--robot-mouth);
  border-radius: 0 0 50px 50px;
  border-top: 0;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}
/* 说话嘴巴 */
.mouth-talk {
  position: absolute;
  width: 50px;
  height: 18px;
  background: var(--robot-mouth);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  display: none;
}
/* O型嘴巴 */
.mouth-o {
  position: absolute;
  width: 25px;
  height: 25px;
  background: var(--robot-mouth);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
/* 思考嘴巴 */
.mouth-think {
  position: absolute;
  width: 35px;
  height: 15px;
  background: var(--robot-mouth);
  border-radius: 10px;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%) rotate(-10deg);
  display: none;
}
/* 机器人身体 */
.robot-body {
  position: relative;
  width: 250px;
  height: 70px;
  margin-top: -120px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  /* border: 5px solid var(--borderColor); */
  /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); */
}
.indicator:nth-child(2) {
  animation-delay: 0.3s;
}
.indicator:nth-child(3) {
  animation-delay: 0.6s;
}
/* 控制按钮 */
.controls {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.control-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  background: var(--button-color);
  color: #5d4037;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s;
}
.control-btn:hover {
  transform: translateY(-3px);
}
/* 动画关键帧 */
@keyframes blink {
  0%,
  48%,
  52%,
  100% {
    top: -100%;
  }
  50% {
    top: 0;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* 表情状态类 */
.robot-head.happy .mouth-smile {
  display: block;
}
.robot-head.talking .mouth-talk {
  display: block;
}
.robot-head.surprised .mouth-o {
  display: block;
}
.robot-head.thinking .mouth-think {
  display: block;
}
