/* ============================================================
   珩宇网络科技 · 全站加载画面
   hy-loader.css
   ------------------------------------------------------------
   配色取自 site.css 的 --a1/--a2/--a3 与 --ink，
   换主题色（body.t-xxx）时进度环和光斑会跟着变。
   所有选择器收在 .hyld 下，不污染其它样式。
   ============================================================ */

.hyld {
    position: fixed;
    inset: 0;
    z-index: 99995;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5FC;
    opacity: 0;
    visibility: hidden;
    transition: opacity .38s ease, visibility .38s ease;
    -webkit-tap-highlight-color: transparent;
}
.hyld.on { opacity: 1; visibility: visible; }
.hyld.out { opacity: 0; visibility: hidden; transition-duration: .42s; }

/* 背景柔光：三颗缓慢漂移的光斑 */
.hyld-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hyld-bg i {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(46px);
    opacity: .55;
}
.hyld-bg i:nth-child(1) {
    width: 380px; height: 380px; left: -80px; top: -60px;
    background: radial-gradient(circle at 40% 40%, rgba(51,85,255,.42), rgba(51,85,255,0) 68%);
    animation: hyldFloat1 11s ease-in-out infinite alternate;
}
.hyld-bg i:nth-child(2) {
    width: 420px; height: 420px; right: -110px; bottom: -90px;
    background: radial-gradient(circle at 55% 45%, rgba(34,195,230,.40), rgba(34,195,230,0) 68%);
    animation: hyldFloat2 13s ease-in-out infinite alternate;
}
.hyld-bg i:nth-child(3) {
    width: 300px; height: 300px; left: 52%; top: 8%;
    background: radial-gradient(circle at 50% 50%, rgba(110,91,255,.30), rgba(110,91,255,0) 70%);
    animation: hyldFloat3 9s ease-in-out infinite alternate;
}
@keyframes hyldFloat1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(60px,50px,0) scale(1.12); } }
@keyframes hyldFloat2 { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(-70px,-40px,0) scale(1); } }
@keyframes hyldFloat3 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-40px,60px,0) scale(1.15); } }

/* 中央内容 */
.hyld-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    transform: translateY(-2vh);
}

/* 进度环 */
.hyld-ring {
    position: relative;
    width: 132px;
    height: 132px;
}
.hyld-ring svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.hyld-track { stroke: rgba(51,85,255,.10); }
.hyld-bar {
    transition: stroke-dashoffset .28s ease-out;
    filter: drop-shadow(0 2px 6px rgba(51,85,255,.35));
}
/* 未拿到真实进度时的转圈 */
.hyld-ring.spin .hyld-bar { animation: hyldSpin 1.05s linear infinite; transform-origin: 60px 60px; }
@keyframes hyldSpin { to { transform: rotate(360deg); } }

/* 环中心品牌字 */
.hyld-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -.02em;
    background: var(--grad, linear-gradient(96deg,#3355FF,#6E5BFF,#22C3E6));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    animation: hyldBreath 2.4s ease-in-out infinite;
}
@keyframes hyldBreath { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .82; } }

/* 文案 */
.hyld-name {
    margin-top: 22px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .16em;
    color: var(--ink, #16233F);
}
.hyld-sub {
    margin-top: 8px;
    font-size: 12.5px;
    letter-spacing: .08em;
    color: var(--ink-3, #7C8AA6);
}

/* 细进度条 + 百分比 */
.hyld-line {
    position: relative;
    width: 196px;
    height: 3px;
    margin-top: 18px;
    border-radius: 99px;
    background: rgba(51,85,255,.12);
    overflow: hidden;
}
.hyld-line b {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    border-radius: 99px;
    background: var(--grad, linear-gradient(96deg,#3355FF,#6E5BFF,#22C3E6));
    transition: width .3s ease-out;
}
.hyld-pct {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .08em;
    color: var(--a1, #3355FF);
    opacity: .85;
}

/* 底部品牌小字 */
.hyld-foot {
    position: absolute;
    left: 0; right: 0;
    bottom: 34px;
    text-align: center;
    font-size: 11.5px;
    letter-spacing: .14em;
    color: var(--ink-3, #7C8AA6);
    opacity: .7;
}

/* 手机端收一点 */
@media (max-width: 560px) {
    .hyld-ring { width: 108px; height: 108px; }
    .hyld-mark { font-size: 33px; }
    .hyld-name { margin-top: 18px; font-size: 15px; letter-spacing: .12em; }
    .hyld-line { width: 168px; }
    .hyld-foot { bottom: 26px; }
}

/* 尊重系统的「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
    .hyld-bg i,
    .hyld-mark,
    .hyld-ring.spin .hyld-bar { animation: none !important; }
    .hyld-bar, .hyld-line b, .hyld { transition: none !important; }
}
