/* ===== 全局 ===== */
body {
  margin: 0;
  font-family: "Microsoft YaHei", sans-serif;
  background-image: url("bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ===== 主体区域 ===== */
main {
  color: #fff;
  min-height: 80vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 30px;
}

.typewriter {
  display: inline-block;
  min-height: 1.2em;
  margin: 10px 0;
}

/* ===== 闪烁光标 ===== */
.cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #fff;
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/*.===== 页眉 ===== */
header {
  text-align: center;
  padding: 30px 0;
  font-size: 20px;
  color: #ccc;
  font:Kai;
}

header a {
  color: #ccc;
  text-decoration: none;
}

header a:hover {
  color: #fff;
}
/* ===== 页脚 ===== */
footer {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #ccc;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}
