* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.footer {
  max-width: 1296px;
  width: 100%;
  margin-bottom: 15px;
}

.footer-top {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 30px;
}

.footer .footer-top ul {
  /* 最小宽度 244px，可伸缩 */
  /* flex: 1 1 244px; */
  font-size: 14px;
  flex: 0 1 auto; /* 宽度自适应，不强制占满 */
  min-width: 266px; /* 可选：避免太小 */
  margin-bottom: 28px;
}

.footer .footer-top ul span {
  height: 32px;
  line-height: 32px;
  color: rgb(28, 31, 34);
}

.footer .footer-top ul li {
  list-style: none;
  cursor: pointer;
}

.footer .footer-top ul li a {
  height: 32px;
  line-height: 32px;
  text-decoration: none;
  color: #5f6368;
}

.footer .footer-top ul li a:hover {
  color: rgb(5, 135, 95);
}

/* 底部 */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
}

.footer-bottom .link,
.footer-bottom .link-right {
  margin-right: 32px;
  height: 48px;
  line-height: 48px;
  /* background-color: skyblue; */
}

.footer-bottom .link-right {
  /* 把当前元素推到右边 */
  margin-left: auto;
  /* 不允许内容换行 */
  white-space: nowrap;
}

/* 图片默认是基线对齐的所以设立行高不行 */
.footer-bottom img {
  vertical-align: middle;
}

.footer-bottom a,
.footer-bottom span {
  text-decoration: none;
  font-size: 12px;
  color: #5f6368;
  white-space: nowrap;
}

.footer-bottom a span:hover {
  color: rgb(5, 135, 95);
}

.footer-bottom img {
  width: 24px;
  height: 18px;
}

@media (max-width: 1280px) {
  .footer-bottom .link-right {
    margin-left: 0;
  }
  .footer .footer-top ul {
    min-width: 244px;
  }
}

@media (max-width: 840px) {
  .footer-top {
    display: block;
  }
  .footer .footer-top ul {
    width: 100%;
  }

  .footer-bottom {
  }
}
