/* 字体定义见 fonts.css（原站 Google Fonts 的本地副本） */

/* 平滑锚点滚动，与原站行为一致 */
html {
  scroll-behavior: smooth;
}

/* 固定导航下的锚点定位偏移 */
section[id] {
  scroll-margin-top: 76px;
}

/* 底部中央浮动下载条：滚动超过 380px 后出现 */
.float-cta {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  animation: fadeIn 0.3s ease-out;
}

/* 右下角返回顶部 */
.back-to-top {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* FAQ 答案展开 */
.faq-answer-enter-active,
.faq-answer-leave-active {
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.faq-answer-enter-from,
.faq-answer-leave-to {
  opacity: 0;
  transform: translateY(-4px);
}

/* 图片加载失败时不出现破图占位 */
img {
  background-color: transparent;
}

/* 隐藏跑马灯原生滚动条 */
.no-scrollbar {
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
