/* =========================================================
   页脚署名链接：热区 / 反馈条
   - .foot-sign a 原本只有 20px 高，容易点不中
   - 点击邮箱后必须有可见反馈（已复制 / 复制失败）
   ========================================================= */

.foot-sign a {
  padding: 6px 3px;
  margin: -6px -3px;
  border-radius: 3px;
}
@media (max-width: 620px) {
  .foot-sign a { padding: 9px 5px; margin: -9px -5px; }
}

/* ---------- 反馈条 ---------- */
.foot-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 950;
  transform: translate(-50%, 10px);
  display: flex; align-items: center; gap: 12px;
  max-width: min(92vw, 480px);
  padding: 11px 15px;
  border-radius: 10px;
  background: #1b2440; color: #e8eef8;
  font-family: var(--sans); font-size: 12.8px; line-height: 1.5;
  box-shadow: 0 18px 44px -18px rgba(10, 16, 28, .55);
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.foot-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

.foot-toast-txt { flex: 1; min-width: 0; }
.foot-toast-txt b { font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.foot-toast-txt em {
  display: block; font-style: normal; margin-top: 2px;
  font-size: 11.4px; color: #9fb0c6;
}

.foot-toast-act {
  flex: none;
  font-family: var(--sans); font-size: 12.2px; line-height: 1;
  color: #e6c79b; background: transparent;
  border: 1px solid rgba(230, 199, 155, .45);
  border-radius: 6px; padding: 6px 10px;
  cursor: pointer; text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.foot-toast-act:hover { background: rgba(230, 199, 155, .16); border-color: rgba(230, 199, 155, .7); }
.foot-toast-act:focus-visible { outline: 2px solid #e6c79b; outline-offset: 2px; }

/* 深色页面反色，避免同色融进背景 */
[data-theme="dark"] .foot-toast {
  background: #e6ecf5; color: #1a2434;
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .7);
}
[data-theme="dark"] .foot-toast-txt b { color: #0f151d; }
[data-theme="dark"] .foot-toast-txt em { color: #5a6b82; }
[data-theme="dark"] .foot-toast-act { color: #7a5a2e; border-color: rgba(122, 90, 46, .45); }
[data-theme="dark"] .foot-toast-act:hover { background: rgba(122, 90, 46, .12); }

@media (max-width: 620px) {
  .foot-toast {
    left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    max-width: none; width: auto;
    transform: translateY(10px);
    font-size: 12.4px; padding: 10px 13px;
  }
  .foot-toast.is-on { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  /* 只保留淡入，不做位移；不要覆盖 transform，否则会打乱手机端的贴底布局 */
  .foot-toast { transition: opacity .12s linear; }
}
