
:root {
    --main-warm1: #DCC9A9; /*more colorful: choose*/
    --main-warm2: #C1AB85; 
    --main-warm-dark: #C94E44;
    --main-cold1: #4E6851; /*more colorful: choose*/
    --main-cold2: #3E6868;
}

body, html {
  margin: 0; /* 0px, 清除默认外边距 */
  padding: 0; /* 0px, 清除默认内边距 */
  font-family: 'Montserrat', sans-serif;
  height: 100vh;
  overflow: hidden;
}

.container {
  background: url('https://gallery.yitingli.xyz/smallmainBG-2.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;
}
/* move up some content, but keep updates and copyright, background at the same place */
.content-wrapper {
  transform: translateY(-30px); /* 只上移主要内容 */
}
/* Yiting Li */
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: var(--main-warm1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* 增加立体感 */
}
/* Atmopsheric scientist. modeler. photographer. cat lover */
header p {
    font-family: 'Montserrat', sans-serif; /* Keep Montserrat */
    color: var(--main-warm1);
    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: "Waiting for the Sunrise", cursive; /* 使用 Shadows Into Light 字体 */
  font-size: 20px; /* 1rem = 16px */
  font-weight: 250;
  /*max-width: 1500px;*/
  margin: 2px auto 0px auto; /* 上 10px，下 20px，左右 auto */
  /*font-style: italic;*/ /* 设置斜体 */
}

/* two button nagivate to modeler and photographer pages */
.buttons {
    padding: 2px,
}
.buttons a {
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  /*font-family: "Bitcount Prop Single", system-ui; /* 使用 Bitcount Prop Single 字体 */
  display: inline-block;
  margin: 60px 55px; /* 1rem = 16px 上下外边距 */
  padding: 5px 20px 5px 20px; /* up left bottom right */
  border-radius: 24px;
  text-decoration: none;
  font-size: 30px;
  font-weight: 600;
  background-color: var(--main-cold1); 
  color: var(--main-warm1);
  border: 1.5px solid var(--main-cold1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 按钮阴影 */
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent; /* 去除手机端点击高亮 */
}

.buttons a:hover,
.buttons a:focus {
  background-color: var(--main-warm1);
  color: var(--main-cold1);
  border: 1.5px solid var(--main-warm1);
  transform: scale(1.05);
}

.buttons a:active {
  background-color: var(--main-warm1);
  color: var(--main-cold1);
  border: 1.5px solid var(--main-warm1);
  transform: scale(0.95); /* 点击时轻微缩小反馈 */
  -webkit-tap-highlight-color: transparent；
}
/* setup button lock */
button i {
    color: inherit; /* 继承父元素的颜色 */
}

/* button lock style */
.main-button.locked {
    opacity: 0.6;        /* 上锁时按钮变灰 */
    cursor: not-allowed; /* 上锁时不能点击 */
}

.main-button.locked i.fa-lock {
    margin-left: 5px;    /* 图标与文字间距 */
    /*color: var(--main-warm1);      /* 锁的颜色 */
}

/* updates sections : related to updates.json */
.updates {
  font-family: 'Montserrat', sans-serif; /* Keep Montserrat */
  font-size: 14px; /* 1rem = 16px */
  line-height: 1.2;
  margin-top: 50px 0 25px 0; /* 上 40px，下 24px，左右 0 */
  background-color: rgba(0, 0, 0, 0.2);
  padding: 8px 25px; /* 上下8px, 左右20px, 减少h2与边框距离 */
  padding: 16px; /* 1rem = 16px */
  border-radius: 12px;
  max-width: 100%;
  font-weight: 200; /* 让更新区块文字不加粗 */
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
}
.updates h2 {
  font-family: 'Montserrat', sans-serif; /* Keep Montserrat */
  font-size: 16px; /* 1.2rem = 19.2px */
  margin-top: 0; /* 去掉顶部额外间距 */
  font-weight: 300; /* 正常字体粗细 */
}

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) {
  .container {
    padding: 14px;
  }
  header h1 {
    font-size: 40px;
    margin: 10px auto 15px auto;
    line-height: 1.2;
  }
  header p {
    font-size: 14px;
    margin: 5px auto 30px auto;
    line-height: 1.3;
  }
  .intro p {
    font-size: 14px;
    max-width: 90%;
    margin: 6px auto; /* 手机端上下间距优化 */
    line-height: 1.1;
  }
  .button {
    padding: 1px;
    border-radius: 22px;
    margin-top: 50px;
    margin-bottom: 20px;
  }
  .buttons a {
    padding: 5px 15px;
    margin: 10px 20px;
    font-size: 20px;
  }
  .updates {
    max-width: 90%;
    font-size: 12px;
    margin-top: 40px;
    background-color: rgba(0, 0, 0, 0.2);
  }
  footer {
    font-size: 10px;
    padding: 6px 0;
    opacity: 50%;
  }
}

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

