/* 移动端下拉刷新：页面整体跟随手势，缓存强制刷新 */
:root { --pull-refresh: 0px; }
html { overscroll-behavior-y: contain; }
body { overscroll-behavior-y: contain; }

body.pull-refresh-active > *:not(.pull-refresh) {
  translate: 0 var(--pull-refresh);
}
body.pull-refresh-settling > *:not(.pull-refresh) {
  transition: translate .2s cubic-bezier(.2,.7,.3,1);
}

.pull-refresh {
  position: fixed; top: -58px; left: 0; right: 0; height: 58px; z-index: 9999;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(20,60,40,.12);
  box-shadow: 0 10px 22px -22px rgba(7,25,44,.6);
  color: var(--ink-600, #52685a); font-size: 12px; letter-spacing: .02em;
  transform: translateY(var(--pull-refresh));
  pointer-events: none;
}
.pull-refresh__arrow, .pull-refresh__spinner { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; }
.pull-refresh__arrow svg { width: 18px; height: 18px; transition: transform .16s ease; }
.pull-refresh.is-ready .pull-refresh__arrow svg { transform: rotate(180deg); }
.pull-refresh__spinner {
  display: none; width: 17px; height: 17px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: pullRefreshSpin .7s linear infinite;
}
.pull-refresh.is-loading .pull-refresh__arrow { display: none; }
.pull-refresh.is-loading .pull-refresh__spinner { display: block; }
@keyframes pullRefreshSpin { to { transform: rotate(360deg); } }
