/* 移动端修正：
   1. 手机端隐藏首页横幅的 4 个社交图标（邮箱/B站/X/微信），让名言正常展示。
   2. 保证首页标题（名言）与出处在小屏可见、正确换行与居中。 */
@media screen and (max-width: 768px) {
  #page-header #site_social_icons {
    display: none !important;
  }

  /* 首页横幅大图：iOS Safari 不支持 fixed 背景（会把图放大只露中间一块）。
     关闭 fixed，用 scroll + cover 居中铺满；高度改用 svh（带 vh 回退），
     避免地址栏伸缩导致图片被裁切/留白。 */
  #page-header.full_page {
    background-attachment: scroll !important;
    background-size: cover;
    background-position: center center;
    height: 100vh;
    height: 100svh;
  }

  #page-header.full_page #site-info {
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #page-header #site-title {
    display: block;
    width: 100%;
    max-width: 20em;
    margin: 0 auto;
    font-size: 1.35em;
    line-height: 1.5;
    word-break: break-word;
  }

  #page-header #site-subtitle {
    display: block;
    width: 100%;
    max-width: 20em;
    margin: 6px auto 0;
  }
}

/* 首页名言逐字输出光标 + 出处淡入（桌面/移动通用） */
#page-header #site-title.is-typing::after {
  content: '▍';
  display: inline-block;
  margin-left: 2px;
  font-weight: 400;
  animation: home-quote-blink 0.9s steps(1) infinite;
}

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

#page-header #home-quote-from {
  opacity: 0;
  transition: opacity 0.6s ease;
}

#page-header #home-quote-from.is-from-show {
  opacity: 0.9;
}
