/* 首页CSS样式 */

html {
  scroll-behavior: smooth;
}

.wrapper {
  margin: 0 auto;
  width: 95%;
  max-width: 1000px;
}

body {
  background-color: #edf2fa;
}

header {
  margin-bottom: 10px;
  padding-left: 20px;
  height: 52px;
  background-color: #fff;
}

.logo {
  height: 100%;
}

.logo a {
  display: block;
  font-size: 20px;
  line-height: 52px;
  color: #165dff;

  /* 图片设置 */
  /* width: 195px;
  height: 41px;
  background-image: url();
  font-size: 0; */
}

.search {
  display: flex;
  margin-bottom: 10px;
  padding: 12px;
  height: 66px;
  background-color: #fff;
  border-radius: 12px;
}

.search input {
  flex: 1;
  margin-right: 10px;
  padding: 10px;
  font-size: 16px;
  border: 0.5px solid rgb(229 230 235);
  border-radius: 4px;
  outline: none;

  /* 过渡动画：让所有属性变化更平滑 */
  transition: all 0.3s ease;
}

.search input:focus {
  /* 边框颜色渐变 */
  border-color: #2196F3;
  /* 外层发光呼吸效果 */
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
  animation: pulse 1.5s infinite;
}

/* 呼吸动画 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(33, 150, 243, 0.1);
  }

  100% {
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
  }
}

.search button {
  width: 70px;

  font-size: 16px;
  color: #fff;
  background-color: #165dff;

  border: 0.5px solid rgb(229 230 235);
  border-radius: 10px;

  cursor: pointer;
}

.search button:hover {
  background-color: #4A75F0;
}

.navigation {
  margin-bottom: 10px;
  padding: 12px;
  background-color: #fff;
  border-radius: 12px;
}

.navigation h4 {
  margin-bottom: 10px;
}

.navigation ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.navigation ul li {
  text-align: center;
  line-height: 38px;
  height: 38px;
  border-radius: 5px;
  border: 1px solid #ff7d00;
}

.goods .result {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.goods .result h3 {
  flex: 1;
}

.goods ul li {
  display: flex;
  margin-bottom: 12px;
  padding: 10px;
  height: 100px;
  background-color: #fff;
  border-radius: 12px;
}

.goods ul li .img {
  margin-right: 5px;
  width: 80px;
  height: 80px;
  text-align: center;
  background-color: #f2f3f5;
  border-radius: 12px;
}

.goods ul li .img img {
  height: 100%;
}

.goods ul li .sitename {
  margin-right: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  background-color: #e7eeff;
  color: #165dff;
  border-radius: 5px;
}

.goods ul li .product {
  flex: 1;
  /* background-color: skyblue; */
  border-radius: 5px;
}

.goods ul li .product .name {
  margin-bottom: 8px;
  padding: 3px;
  width: 100%;
  height: 50px;
  font-size: 15px;
  /* 隐藏超出div的内容 */
  overflow: hidden;
}

.goods ul li .product .goods {
  height: 20px;
}

.goods ul li .product .goods span {
  padding: 2px 5px;
  background-color: pink;
  border-radius: 5px;
}

.goods ul li .product .goods .price {
  background-color: #fee2e2;
  color: #dc2626;
}

.goods ul li .product .goods .count {
  background-color: #dcfce7;
  color: #16a34a;
}

.goods ul li .product .goods .vip {
  background-color: #ffedd5;
  color: #ea580c;
}


.prompt {
  height: 120px;
  text-align: center;
}

.prompt span {
  font-size: 15px;
  line-height: 120px;
}

footer {
  position: fixed;
  /* 固定定位，相对于浏览器窗口 */
  bottom: 0;
  /* 距离底部 0 像素 */
  left: 0;
  /* 距离左侧 0 像素 */
  padding: 20px;
  width: 100%;
  height: 70px;
  background-color: #FFF;
  text-align: center;
}