/* 输入框模式图标样式 */

.input-mode-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin: 0 4px;
  position: absolute;
  right: 205px;
  top: 21px;
}

.input-mode-icon.hidden {
  display: none;
}

/* 图片模式图标 - 彩色渐变 */
.input-mode-icon.image-mode {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.input-mode-icon.image-mode:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
  transform: scale(1.1);
}

/* 购物模式图标 - 彩色渐变 */
.input-mode-icon.shopping-mode {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
}

.input-mode-icon.shopping-mode:hover {
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.6);
  transform: scale(1.1);
}

.input-mode-icon.video-mode {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  box-shadow: 0 2px 8px rgba(0, 114, 255, 0.35);
}

.input-mode-icon.video-mode:hover {
  box-shadow: 0 4px 12px rgba(0, 114, 255, 0.55);
  transform: scale(1.1);
}

.input-mode-icon.shopping-mode.searching {
  animation: shoppingShake 0.55s ease-in-out infinite;
}

@keyframes shoppingShake {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-2px) rotate(-6deg);
  }
  50% {
    transform: translateX(2px) rotate(6deg);
  }
  75% {
    transform: translateX(-1px) rotate(-4deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

/* 图标内容样式 */
.input-mode-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* 响应式调整 */
@media (max-width: 900px) {
  .input-mode-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
  }

  .input-mode-icon svg {
    width: 18px;
    height: 18px;
  }
}
