/* 帮助中心（wiki）的科技感与动画（2026-11-18 站长：「wiki 需要多点动画」）。配合 help-fx.js。
   页头：深色 HUD 横幅（网格、光斑、扫描线，中心色：航司紫 / 联飞青 / 管制琥珀 / 后台靛蓝）；
   文章：阅读进度条、小标题下划线描出、段落 / 步骤 / 表格 / 配图滚动进场、步骤编号脉冲、提示框发光、回到顶部；
   首页：三个中心卡片发光与数字滚动、文章卡片依次浮现、搜索框占位词轮播。「减少动态效果」时全部关闭。 */
.hp { --fx: var(--hp-acc, #8B5CF6); --fx-rgb: var(--hp-acc-rgb, 139, 92, 246); }
.hp.is-c-network { --fx: #19D3C5; --fx-rgb: 25, 211, 197; }
.hp.is-c-atc { --fx: #F2A43A; --fx-rgb: 242, 164, 58; }
.hp.is-c-admin { --fx: #8C8FFF; --fx-rgb: 140, 143, 255; }
.hp.hp-home { --fx: #A78BFA; --fx-rgb: 167, 139, 250; }

/* ---- 页头横幅（首页和文章页） */
.hp .hp-head.impes-page-head { position: relative; overflow: hidden; isolation: isolate; padding: 1.4rem 1.6rem; border-radius: 20px; color: #F1EEFF;
  background: radial-gradient(120% 150% at 88% 0%, rgba(var(--fx-rgb), .42), #0C0A1E 55%, #05040B 100%) !important; border: 1px solid rgba(var(--fx-rgb), .4) !important;
  box-shadow: 0 18px 42px rgba(10, 6, 30, .25), inset 0 1px 0 rgba(255, 255, 255, .06); }
.hp .hp-head.impes-page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(var(--fx-rgb), .12) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--fx-rgb), .12) 1px, transparent 1px); background-size: 34px 34px;
  mask-image: radial-gradient(75% 130% at 20% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(75% 130% at 20% 50%, #000, transparent 75%); animation: hpx-grid 24s linear infinite; }
.hp .hp-head.impes-page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(var(--fx-rgb), .07) 48%, rgba(var(--fx-rgb), .2) 50%, transparent 52%); background-size: 100% 240%; animation: hpx-scan 7s linear infinite; mix-blend-mode: screen; }
.hpx-orb { position: absolute; z-index: -1; pointer-events: none; width: 380px; height: 380px; right: -100px; top: -190px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--fx-rgb), .55), transparent 65%); animation: hpx-orb 15s ease-in-out infinite alternate; }
@keyframes hpx-grid { to { background-position: 34px 34px, 34px 34px; } }
@keyframes hpx-scan { from { background-position: 0 -120%; } to { background-position: 0 120%; } }
@keyframes hpx-orb { to { transform: translate(-150px, 80px) scale(1.15); } }
.hp .hp-head h1 { color: #fff !important; text-shadow: 0 0 26px rgba(var(--fx-rgb), .5); }
.hp .hp-head p { color: rgba(238, 234, 255, .8) !important; }
.hp .hp-head .hp-crumb, .hp .hp-head .hp-crumb a, .hp .hp-head .hp-crumb span { color: rgba(238, 234, 255, .72) !important; }
.hp .hp-head .hp-crumb a:hover { color: #fff !important; }
.hp .hp-head .hp-crumb-centre { color: var(--fx) !important; font-weight: 700; }
.hp .hp-head > div > *, .hp .hp-head > .hp-search { animation: hpx-up .7s cubic-bezier(.2, .7, .2, 1) both; }
.hp .hp-head > div > *:nth-child(2) { animation-delay: .08s; } .hp .hp-head > div > *:nth-child(3) { animation-delay: .16s; } .hp .hp-head > .hp-search { animation-delay: .22s; }
@keyframes hpx-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hp .hp-search-big input { background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(var(--fx-rgb), .5) !important; color: #fff !important; }
.hp .hp-search-big input::placeholder { color: rgba(238, 234, 255, .55); }
.hp .hp-search-big input:focus { box-shadow: 0 0 0 3px rgba(var(--fx-rgb), .25), 0 0 24px rgba(var(--fx-rgb), .35) !important; }
.hp .hp-search-big > i { color: var(--fx) !important; }

/* ---- 阅读进度条 + 回到顶部 */
.hpx-progress { position: fixed; left: 0; top: 0; z-index: 2000; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
  background: linear-gradient(90deg, var(--fx), #fff); box-shadow: 0 0 10px rgba(var(--fx-rgb), .8); }
.hpx-top { position: fixed; right: 18px; bottom: 86px; z-index: 1500; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(var(--fx-rgb), .5); color: #fff; cursor: pointer;
  background: rgba(14, 10, 30, .85); box-shadow: 0 8px 24px rgba(0, 0, 0, .3), 0 0 16px rgba(var(--fx-rgb), .3); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; }
.hpx-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hpx-top:hover { border-color: var(--fx); }

/* ---- 文章：小标题下划线描出 + 进场 */
.hp-article h2 { position: relative; padding-bottom: .35rem; }
.hp-article h2::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 72px; border-radius: 2px; background: linear-gradient(90deg, var(--fx), transparent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s cubic-bezier(.2, .7, .2, 1) .15s; box-shadow: 0 0 10px rgba(var(--fx-rgb), .6); }
.hp-article h2.is-in::after { transform: scaleX(1); }
.hpx-rv { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1) var(--hpx-d, 0s), transform .6s cubic-bezier(.2, .7, .2, 1) var(--hpx-d, 0s); }
.hpx-rv.is-in { opacity: 1; transform: none; }
/* 步骤：一条一条出现，编号脉冲一次 */
.hp-steps > li.hpx-rv { transform: translateX(-14px); }
.hp-steps > li.hpx-rv.is-in { transform: none; }
.hp-steps > li.is-in::before { animation: hpx-pop .7s cubic-bezier(.2, .9, .3, 1.4) var(--hpx-d, 0s) both; }
@keyframes hpx-pop { 0% { transform: scale(.4); box-shadow: 0 0 0 0 rgba(var(--fx-rgb), .6); } 60% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(var(--fx-rgb), 0); } 100% { transform: none; } }
/* 表格：行依次浮现，悬停高亮 */
.hp-table tr.hpx-rv { transform: translateY(8px); }
.hp-table tbody tr:hover td, .hp-table tr:hover td { background: rgba(var(--fx-rgb), .07); }
/* 配图：放大进场 + 悬停光晕 */
.hp-fig.hpx-rv { transform: scale(.96); }
.hp-fig.hpx-rv.is-in { transform: none; }
.hp-fig .hp-zoom { transition: box-shadow .3s, transform .3s; }
.hp-fig .hp-zoom:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(var(--fx-rgb), .25); }
/* 提示框：进场时发光一次 */
.hp-warn.is-in, .hp-note.is-in, .hp-tip.is-in { animation: hpx-glow 1.6s ease-out .2s 1; }
@keyframes hpx-glow { 0% { box-shadow: 0 0 0 0 rgba(var(--fx-rgb), .0); } 30% { box-shadow: 0 0 0 4px rgba(var(--fx-rgb), .28), 0 0 26px rgba(var(--fx-rgb), .35); } 100% { box-shadow: 0 0 0 0 rgba(var(--fx-rgb), 0); } }
/* 界面名称 chip：悬停发光 */
.hp-ui { transition: box-shadow .2s, border-color .2s; }
.hp-ui:hover { box-shadow: 0 0 12px rgba(var(--fx-rgb), .35); }
/* 自测题折叠：展开时淡入 */
.hp-article details[open] > *:not(summary) { animation: hpx-up .45s ease both; }
/* 目录：当前文章前的光点 */
.hp-toc-group a.is-on { position: relative; }
.hp-toc-group a.is-on::after { content: ""; position: absolute; left: -2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--fx); box-shadow: 0 0 8px var(--fx); animation: hpx-blink 1.8s infinite; }
@keyframes hpx-blink { 50% { opacity: .35; } }
/* 文中小节导航：当前所在的小节 */
.hpx-sec-on { color: var(--fx) !important; font-weight: 800; }

/* ---- 首页：三个中心卡片、文章卡片 */
.hp-cjump a { position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.hp-cjump a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(var(--hp-acc-rgb, 139, 92, 246), .25); }
.hp-cjump a::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .7s; }
.hp-cjump a:hover::after { left: 130%; }
.hpx-glow-host { position: relative; isolation: isolate; }
.hpx-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--hp-acc-rgb, 139, 92, 246), .18), transparent 70%); }
.hpx-glow-host:hover > .hpx-glow { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hp .hp-head.impes-page-head::before, .hp .hp-head.impes-page-head::after, .hpx-orb, .hp .hp-head > div > *, .hp .hp-head > .hp-search,
  .hp-steps > li.is-in::before, .hp-warn.is-in, .hp-note.is-in, .hp-tip.is-in, .hp-toc-group a.is-on::after, .hp-article details[open] > * { animation: none !important; }
  .hpx-rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hp-article h2::after { transform: none; transition: none; }
}

/* ==========================================================================
   图片动画（2026-11-18 站长：「总 wiki 和分 wiki 都要做动画，特别是有图片的」）
   截图 / 照片：加载时扫描微光 → 进入视野时扫描线擦出 + 去模糊 + 一道光扫过；四角 HUD 框；悬停放大 + 随鼠标倾斜；滚动时轻微视差。
   SVG 示意图（help/img/fig-*.svg）：内联后线条按顺序「画出来」，文字和色块随后淡入（help-fx.js）。
   大图浏览：从缩略图放大弹出。
   ========================================================================== */
.hp-fig .hp-zoom { position: relative; overflow: hidden; isolation: isolate; perspective: 900px; }
.hp-fig .hp-zoom img, .hp-fig .hp-zoom svg { display: block; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .6s; transform-origin: 50% 50%; will-change: transform; }
.hp-fig .hp-zoom:hover img, .hp-fig .hp-zoom:hover svg { transform: scale(1.035); }
/* loading shimmer (until the image has loaded) */
.hp-fig.hpx-loading .hp-zoom::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(100deg, rgba(var(--fx-rgb), .05) 30%, rgba(var(--fx-rgb), .22) 50%, rgba(var(--fx-rgb), .05) 70%); background-size: 220% 100%; animation: hpx-shimmer 1.2s linear infinite; }
@keyframes hpx-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
/* reveal: scan-line wipe + de-blur + shine sweep */
/* 2026-11-18: no clip-path here — a fully clipped figure never "intersects", so neither the reveal observer nor the
   browser's loading="lazy" ever fired and the screenshots stayed blank. Fade + rise keeps the element measurable. */
.hp-fig.hpx-img { opacity: 0; transform: translateY(18px); transition: opacity .8s ease var(--hpx-d, 0s), transform 1s cubic-bezier(.2, .8, .2, 1) var(--hpx-d, 0s); }
.hp-fig.hpx-img.is-in { opacity: 1; transform: none; }
.hp-fig.hpx-img .hp-zoom img { filter: blur(6px) saturate(.6); }
.hp-fig.hpx-img.is-in .hp-zoom img { filter: none; }
.hp-fig.hpx-img .hp-zoom::after { content: ""; position: absolute; top: 0; bottom: 0; width: 35%; left: -60%; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); }
.hp-fig.hpx-img.is-in .hp-zoom::after { animation: hpx-shine 1.1s ease-out calc(var(--hpx-d, 0s) + .7s) 1 both; }
@keyframes hpx-shine { from { left: -60%; } to { left: 140%; } }
.hp-fig.hpx-img .hpx-scanline { position: absolute; left: 0; right: 0; height: 2px; top: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--fx), transparent); box-shadow: 0 0 12px var(--fx); }
.hp-fig.hpx-img.is-in .hpx-scanline { animation: hpx-scanline 1s cubic-bezier(.65, 0, .35, 1) var(--hpx-d, 0s) 1 both; }
@keyframes hpx-scanline { 0% { top: 0; opacity: 1; } 95% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
/* HUD corner brackets */
.hpx-corners { position: absolute; inset: 6px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s .9s; }
.hp-fig.is-in .hpx-corners { opacity: 1; }
.hpx-corners::before, .hpx-corners::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--fx); filter: drop-shadow(0 0 4px var(--fx)); }
.hpx-corners::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.hpx-corners::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.hp-fig .hp-zoom:hover .hpx-corners::before { transform: translate(-3px, -3px); } .hp-fig .hp-zoom:hover .hpx-corners::after { transform: translate(3px, 3px); }
.hpx-corners::before, .hpx-corners::after { transition: transform .3s; }
/* caption slides in after the image */
.hp-fig.hpx-img figcaption { opacity: 0; transform: translateY(6px); transition: opacity .5s calc(var(--hpx-d, 0s) + .8s), transform .5s calc(var(--hpx-d, 0s) + .8s); }
.hp-fig.hpx-img.is-in figcaption { opacity: 1; transform: none; }
/* inline SVG diagrams: drawn line by line */
.hp-fig svg.hpx-svg .hpx-draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.hp-fig.is-in svg.hpx-svg .hpx-draw { animation: hpx-draw 1.2s cubic-bezier(.4, 0, .2, 1) var(--d, 0s) forwards; }
@keyframes hpx-draw { to { stroke-dashoffset: 0; } }
.hp-fig svg.hpx-svg .hpx-pop { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.92); }
.hp-fig.is-in svg.hpx-svg .hpx-pop { animation: hpx-svgpop .55s cubic-bezier(.2, .8, .3, 1.2) var(--d, 0s) forwards; }
@keyframes hpx-svgpop { to { opacity: 1; transform: none; } }
/* lightbox: zoom in from the thumbnail */
.hp-lightbox:not([hidden]) { animation: hpx-fade .25s ease both; }
.hp-lightbox:not([hidden]) img { animation: hpx-zoomin .4s cubic-bezier(.2, .8, .3, 1.1) both; box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(var(--fx-rgb), .5), 0 0 40px rgba(var(--fx-rgb), .35) !important; }
@keyframes hpx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hpx-zoomin { from { opacity: 0; transform: scale(.82) translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hp-fig.hpx-img, .hp-fig.hpx-img.is-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hp-fig.hpx-img .hp-zoom img { filter: none !important; }
  .hp-fig.hpx-img figcaption { opacity: 1 !important; transform: none !important; }
  .hp-fig svg.hpx-svg .hpx-draw { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  .hp-fig svg.hpx-svg .hpx-pop { opacity: 1; transform: none; animation: none !important; }
  .hp-fig .hp-zoom::after, .hpx-scanline, .hp-lightbox:not([hidden]), .hp-lightbox:not([hidden]) img { animation: none !important; }
}
/* printing an article: every figure fully visible, no animation state left over */
@media print {
  .hp-fig.hpx-img { opacity: 1 !important; transform: none !important; }
  .hp-fig.hpx-img .hp-zoom img { filter: none !important; }
  .hp-fig.hpx-img figcaption, .hp-fig svg.hpx-svg .hpx-pop { opacity: 1 !important; transform: none !important; }
  .hp-fig svg.hpx-svg .hpx-draw { stroke-dashoffset: 0 !important; }
  .hpx-rv { opacity: 1 !important; transform: none !important; }
  .hpx-scanline, .hpx-corners, .hpx-progress, .hpx-top { display: none !important; }
}
