/* 进行中文字扫光（配 static/js/arc/text-shimmer.js）
 *
 * 移植自 arc-library registry/components/text-shimmer/text-shimmer.module.css（MIT，© 2026 Elia Kuratli，
 * 许可见 LICENSES/arc-library-MIT.txt），原生重写。「css:行」指原件 module.css。颜色只用站里的变量，arc 的色值一个不搬。 */

/* css:1-2：亮带是这一行的字色，静止的底色偏向淡字色；使用方用 --text-shimmer-highlight、--text-shimmer-base 换 */
.arc-text-shimmer{--ts-highlight:var(--text-shimmer-highlight,currentColor);--ts-base:var(--text-shimmer-base,color-mix(in oklab,currentColor 12%,var(--text-muted)))}
/* css:3-4：字本身透明，底图从字形里透出来 */
.arc-text-shimmer-stage{position:relative;display:inline-block;max-width:100%}
.arc-text-shimmer-label{display:inline-block;max-width:100%;background-repeat:no-repeat;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
/* css:6：宽度弹的时候字保持一行，不在半途折行 */
.arc-text-shimmer-stage[data-sizing] .arc-text-shimmer-label{max-width:none;white-space:nowrap}
.arc-text-shimmer-label::selection{-webkit-text-fill-color:currentColor}
/* css:8-9：不认 color-mix、强制颜色模式时退成实字 */
@supports not (color:color-mix(in oklab,red,blue)){.arc-text-shimmer-label{background:none!important;-webkit-text-fill-color:currentColor}}
@media (forced-colors:active){.arc-text-shimmer-label{background:none!important;-webkit-text-fill-color:currentColor}}
