body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: url('img/bg0.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

/* 添加顶部背景图片样式 */
.top-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
}

.top-background img {
  width: 100%;
  display: block;
}

/* 添加header顶部边距 */
header {
  position: relative;
  top: 2.2em;
  /* 通过定位下移30px */
  margin-bottom: 40%;
  /* 使用百分比单位添加header底部边距 */
  width: 90%;
  /* 设置header宽度为80% */
  margin-left: auto;
  /* 居中显示 */
  margin-right: auto;
  /* 居中显示 */
}

header img,
.promotion img,
.flash-sale img {
  width: 100%;
  display: block;
}

/* 添加section之间的边距 */
.promotion {
  margin-bottom: 5%;
  /* 使用百分比单位添加promotion section底部边距 */
  width: 95%;
  /* 设置header宽度为80% */
  margin-left: auto;
  /* 居中显示 */
  margin-right: auto;
  /* 居中显示 */
}

.flash-sale {
  margin-bottom: 5%;
  /* 使用百分比单位添加flash-sale section底部边距 */
  width: 95%;
  /* 设置header宽度为80% */
  margin-left: auto;
  /* 居中显示 */
  margin-right: auto;
  /* 居中显示 */
}

footer {
  /* background-color: #ff9900; */
  color: black;
  text-align: center;
  padding: 2%;
  /* 使用百分比单位添加footer内边距 */
}

.footer-image img {
  width: 30%;
  /* 使footer内的图片宽度占满footer */
  display: block;
  margin-left: auto;
  /* 居中显示 */
  margin-right: auto;
  /* 居中显示 */
}

.footer-text {
  text-align: center;
  margin-top: 10px;
  /* 添加顶部边距 */
  font-size: 8px;
}

.footer-text-1 {
  transform: skew(-10deg);
  /* 斜着显示第一段文字 */
  margin-bottom: 5px;
  /* 添加底部边距 */
}

.footer-text-2 {
  transform: skew(-10deg);
  /* 斜着显示第二段文字 */

}

.footer-text-2 a {
  color: blue;
  /* 设置链接颜色为蓝色 */
  text-decoration: none;
  /* 去除链接下划线 */
}

/* PC适配 */
@media (min-width: 768px) {

  header img,
  .top-background img {
    max-width: 50%;
    margin: 0 auto;
  }

  .promotion img,
  .flash-sale img {
    max-width: 50%;
    margin: 0 auto;
  }

  footer {
    padding: 4%;
    /* 使用百分比单位调整footer内边距 */
  }

  .footer-text {
    font-size: 1.2em;
    /* 使用相对单位调整字体大小 */
  }
}