/* ============================================
   top-loading-bar.css  v1.0  ·  2026-11-07
   全站顶部缓冲流光线（品牌金，呼应深蓝+金主题）
   实现：body::before 固定顶层 —— 零页面结构改动，全站自动生效
   ============================================ */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px; /* 流光线粗细 */
  z-index: 99999;
  pointer-events: none; /* 不挡任何点击 */
  /* 品牌金渐变：头尾透明虚化，中段亮金 */
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 162, 39, 0.15) 20%,
    #d9b64a 50%,
    rgba(201, 162, 39, 0.15) 80%,
    transparent 100%
  );
  /* 金色霓虹辉光 */
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.75), 0 0 4px rgba(201, 162, 39, 0.55);
  /* 从左往右无限流光 */
  animation: top-loading-stream 2s infinite linear;
}

/* 关键帧：流光滚动 */
@keyframes top-loading-stream {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 文章页阅读进度条让位：其原 top:0 与流光线重叠，整体下移一线高度 */
.reading-progress {
  top: 3px !important;
}

/* 无障碍：用户系统开启"减少动态效果"时，流光静帧弱化显示 */
@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
    opacity: 0.6;
  }
}
