body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top, .bottom {
  position: fixed;
  width: 100%;
  background-color: red;
  color: white;
  text-align: center;
  padding: 40px;
  box-sizing: border-box;
}
.top {
  top: 0;
}
.bottom {
  bottom: 0;
}

.content {
  flex: 1;
  padding: 90px;
  text-align: center; /* 使内容水平居中 */
  /* 计算可用的内容区域高度 */
  //height: calc(100vh - 280px); /* 假设红色区域高度为 40px，content 的 padding 为 100px */
}

.content p {
  /* 设置行高，这里假设有 4 个 p 元素 */
  line-height: 2em;
  //line-height: calc((100% - 40px) / 4);
}

.content p:first-child {
  font-size: 78px;
  color: red;
  font-weight: bold;
  letter-spacing: 1em; /* 使用 em 单位，使字符间距相对于字体大小缩放 */
  margin: 0 auto; /* 使标题水平居中 */
}

.content p:nth-child(2) {
  /* 第二个 p 标签的样式 */
  font-size: 48px;
  color: red;
  /* ...其他样式 */
  font-weight: bold;
  letter-spacing: 0.2em; /* 使用 em 单位，使字符间距相对于字体大小缩放 */
  margin: 0 auto; /* 使标题水平居中 */
}

.content p:nth-child(3) {
  font-size: 78px;
  color: red;
  font-weight: bold;
  letter-spacing: 0.2em;
  margin: 0 auto;
}

.content p:nth-child(4) {
  font-size: 68px;
  color: red;
  font-weight: bold;
  letter-spacing: 0.2em;
  margin: 0 auto;
}