body, html {
  margin: 0; 
  padding: 0; 
  font-family: 'Montserrat', sans-serif;
  height: 100vh;
  overflow: hidden;
}

.container {
  background: url('https://content.jiangminzhi.com/background/mainBG1.jpg') no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 34px; /* 2rem = 32px */
  box-sizing: border-box;
}
.content-wrapper {
  transform: translateY(-30px); /* 只上移主要内容 */
}
/* Min-Zhi Jiang */
header h1 {
  font-family: 'Montserrat', sans-serif; /* Keep Montserrat */
  font-size: 66px; /* 3rem = 48px */
  font-weight: 750;
  margin: 15px 0 12px 0; /* 上 12px，下 20px，左右 0px */
  /*color: #ffeecc;*/ /* 让文字颜色更亮 */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); /* 增加立体感 */
}
/* Biostatistic scientist . cat lover */
header p {
  font-family: 'Montserrat', sans-serif; /* Keep Montserrat */
  font-size: 28px; /* 1.2rem = 19.2px */
  font-weight: 320;
  margin: 6px auto 40px auto; /* 上 6px，下 10px，左右 0px */
}
/* hand writing introduction sentences */
.intro p {
  font-family: "Bitcount Prop Single", system-ui; /* 使用 Bitcount Prop Single 字体 */
  font-size: 20px; /* 1rem = 16px */
  font-weight: 250;
  /*max-width: 1500px;*/
  margin: 2px auto 0px auto; /* 上 10px，下 20px，左右 auto */
  /*font-style: italic;*/ /* 设置斜体 */
}

/* three button nagivate to about me, projects, publications */
.buttons a {
  font-family: "Bitcount Prop Single", system-ui; /* 使用 Bitcount Prop Single 字体 */
  display: inline-block;
  margin: 40px 30px; /* 1rem = 16px 上下外边距 */
  padding: 10px 20px 10px 20px; /* up left bottom right */
  border-radius: 24px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 550;
  background-color: #BB6830;
  color: #F8D794;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 按钮阴影 */
  transition: background 0.3s;
  -webkit-tap-highlight-color: transparent; /* 去除手机端点击高亮 */
}

.buttons a:hover,
.buttons a:focus {
  background-color: #F8D794;
  color: #BB6830;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* 按钮阴影 */
  transform: scale(1.1);
  outline: none; /* 移除默认点击边框 */
}

.buttons a:active {
  background-color: #F8D794;
  color: #BB6830;
  transform: scale(0.95); /* 点击时轻微缩小反馈 */
}

footer {
  width: 100%;
  padding: 8px 0;
  font-size: 12px; /* 默认字体大小略微缩小 */
  color: #ddd;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  position: fixed;
  bottom: 0;
  left: 0;
  background: transparent;
  opacity: 0.75;
}

/* phone display */
@media (max-width: 768px) {
  .content-wrapper {
    transform: translateY(-30px); /* 只上移主要内容 */
  }
  .container {
    padding: 14px;
  }
  header h1 {
    font-size: 36px;
    margin: 10px auto 14px auto;
    line-height: 1.2;
  }
  header p {
    font-size: 16px;
    margin: 4px auto 30px auto;
    line-height: 1.3;
  }
  .intro p {
    font-size: 14px;
    max-width: 90%;
    margin: 6px auto; /* 手机端上下间距优化 */
    line-height: 1.1;
  }
  .buttons {
    display: flex;
    flex-direction: column;
    align-items: center; /* 居中按钮 */
  }
  .buttons a {
    width: 180px; /* 固定宽度 */
    margin: 10px 0; /* 上下间距 */
    font-size: 16px; /* 稍微增大字体可读性 */
    padding: 12px 0; /* 垂直填充，让按钮更高 */
  }
  footer {
    font-size: 10px;
    padding: 6px 0;
  }
}

@media (max-height: 700px) {
  footer {
    font-size: 10px;
  }
}
