.typewriter-container {
  display: block;
  text-align: center;
  width: 100%;
  /* 稍微增加高度以防止多行文本跳动 */
  min-height: 90px; 
}

#typewriter-text {
  /* 品牌标题字体 */
  font-family: 'Space Grotesk', sans-serif;
  
  font-size: 3.5em; /* 加大主标题字号，更有冲击力 */
  font-weight: 700;
  
  /* Color 4: Pure White (#F8FAFC) */
  color: var(--theme-palette-color-4);
  
  line-height: 1.2; 
  white-space: pre-wrap;
  word-wrap: break-word;
  
  /* 添加微弱的文字阴影，增加层次感 */
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.typewriter-cursor {
  display: inline-block;
  width: 5px; /* 稍微加粗 */
  height: 0.9em; /* 调整高度以视觉对齐 */
  
  /* Color 1: Primary brand color (#8B5CF6) */
  background-color: var(--theme-palette-color-1);
  
  margin-left: 5px;
  vertical-align: baseline; /* 修正对齐方式 */
  animation: blink 1s step-end infinite;
  
  /* 光标发光效果 */
  box-shadow: 0 0 10px var(--theme-palette-color-1);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 移动端适配 */
@media (max-width: 768px) {
  #typewriter-text {
    font-size: 2.2em; /* 手机上适当缩小 */
  }

  .typewriter-container {
    min-height: 70px; 
  }
}
