/**
 * 通用下拉刷新指示（liuyaoPullToRefresh.js）
 */
.liuyao-ptr-host {
    position: relative;
}

.liuyao-ptr-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    line-height: 1.2;
    pointer-events: none;
    transition: height 0.22s ease;
}

.liuyao-ptr-host.liuyao-ptr-pulling .liuyao-ptr-indicator {
    transition: none;
}

.liuyao-ptr-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-top-color: #2f6b52;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.15s ease;
}

.liuyao-ptr-indicator.is-refreshing .liuyao-ptr-spinner {
    opacity: 1;
    animation: liuyao-ptr-spin 0.75s linear infinite;
}

@keyframes liuyao-ptr-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 内层滚动区下拉：指示条叠在顶部，正文由 JS translateY 跟随 */
.liuyao-ptr-content--pulling {
    will-change: transform;
}

.liuyao-ptr-host--inline .liuyao-ptr-indicator {
    position: relative;
    flex-shrink: 0;
}
