.typing {
    width: 7em; /* 修改为7个字符的宽度 */
    white-space: nowrap;
    border-right: 2px solid transparent;
    animation: typing 1.5s steps(7, end) forwards, blink-caret .75s step-end infinite;
    overflow: hidden;
    color: transparent;
    background: linear-gradient(to right, #155799, #159957);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 4em;
}
/* 打印效果 */
@keyframes typing {
  from { width: 0; }
  to { width: 7em; } /* 修改为7个字符的宽度 */
}
/* 光标闪啊闪 */
@keyframes blink-caret {
  from, to { box-shadow: 1px 0 0 0 transparent; }
  50% { box-shadow: 1px 0 0 0; }
}