.minheight{
  min-height:500px;
}

/* 搜索框容器 */
.seachpage {
  padding: 20rem 0;
  display: flex;
  justify-content: center; /* 水平居中 */
}

.search-form {
  position: relative;
  width: 100%;
  max-width: 600px; /* 最大宽度 */
  border-radius: 2rem; /* 圆角 */
  overflow: hidden; /* 隐藏溢出 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 阴影 */
  transition: all 0.3s ease; /* 过渡动画 */
  border: 2px solid #333; /* 添加边框，颜色为深灰色，可根据需要调整 */
}

/* 输入框样式 */
.search-form input[type="text"] {
  width: 100%;
  padding: 1rem 4rem 1rem 1.5rem; /* 内边距（上下、右、左） */
  font-size: 1rem;
  border: none; /* 移除边框 */
  outline: none; /* 移除聚焦轮廓 */
  background-color: #fff; /* 白色背景 */
  color: #333; /* 文本颜色 */
  placeholder: #666; /* 占位符颜色 */
}

/* 搜索按钮样式 */
.search-form button[type="submit"] {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 4rem; /* 固定宽度 */
  background-color: #3B82F6; /* 主色（蓝色） */
  color: #fff; /* 白色文字 */
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease; /* 悬停动画 */
  font-size: 1.2rem; /* 图标大小 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 按钮悬停效果 */
.search-form button[type="submit"]:hover {
  background-color: #2563EB; /* 深一度蓝色 */
}

/* 响应式设计（小屏幕适配） */
@media (max-width: 768px) {
  .search-form {
    border-radius: 1.5rem; /* 更小的圆角 */
    max-width: 90%; /* 宽度适配 */
    border: 2px solid #333; /* 小屏幕下也保持边框 */
  }

  .search-form input[type="text"] {
    padding-right: 3rem; /* 调整内边距 */
  }

  .search-form button[type="submit"] {
    width: 3rem; /* 更小的按钮 */
  }
}

/* 动画增强（聚焦时微微上浮） */
.search-form:hover,
.search-form:focus-within {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); /* 更深的阴影 */
  transform: translateY(-2px); /* 向上移动2px */
}