/* =========================================================
   首页 ↔ 更新日志 的页面转场
   幕布是 html 的伪元素，只有脚本加了 pt-* 类才会出现；
   没有脚本时这里什么都不会发生。
   ========================================================= */
html.pt-out::after,
html.pt-in::after {
  content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  background: #EFE8DA; /* 同 --paper-2：比页面深一号的米色 */
  will-change: transform;
}
html.pt-out::after { animation: pt-cover .4s cubic-bezier(.16, 1, .3, 1) both; }        /* 离开：从下往上盖住 */
html.pt-in.pt-go::after { animation: pt-lift .4s cubic-bezier(.16, 1, .3, 1) both; }    /* 到达：再往上揭开 */
/* 带锚点到达时，在幕布后面直接跳到位，不从页首一路滚下去 */
html.pt-in { scroll-behavior: auto; }
@keyframes pt-cover { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pt-lift  { from { transform: none; } to { transform: translateY(-100%); } }

@media (prefers-reduced-motion: reduce) {
  html.pt-out::after, html.pt-in::after { display: none; }
}

/* =========================================================
   两个页面都要用的两小段样式（放在这里，就不用动 site.css）
   ========================================================= */
/* 页尾：版本号链接 */
.foot-ver a { position: relative; color: inherit; text-decoration: underline; text-decoration-color: rgba(246, 241, 231, .35); text-underline-offset: 3px; transition: color .22s cubic-bezier(.16, 1, .3, 1); }
.foot-ver a:hover { color: #fff; }
.foot-ver a::after { content: ""; position: absolute; inset: -15px -6px; } /* 点击区 ≥44px */

/* 首页「开始用」最后的「最近更新」一小条 */
.recent { margin-top: 22px; display: flex; justify-content: center; }
.recent-in {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 16px;
  min-height: 48px; padding: 0 22px; border-radius: 99px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 15px; line-height: 1.5; color: var(--text);
}
.recent-in a { position: relative; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; white-space: nowrap; }
.recent-in a::after { content: ""; position: absolute; inset: -11px -10px; } /* 点击区 ≥44px */
.recent-in a span { transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.recent-in a:hover span { transform: translateX(3px); }
@media (max-width: 760px) {
  .recent-in { display: block; padding: 11px 18px; border-radius: 20px; text-align: center; }
  .recent-in a { margin-left: 8px; }
}

/* 首页「开始使用」macOS 一栏的教程链接（放在这里是为了不动 site.css） */
.mac-guide { display: inline-flex; align-items: center; min-height: 32px; margin-left: 10px; color: var(--indigo-d); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .mac-guide { display: flex; width: fit-content; min-height: 44px; margin-left: 0; } }
