/* 白底全螢幕讀取畫面；大小可修改下方 width。 */
body.loading { overflow: hidden; }
#loading { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; background: #fff; opacity: 1; transition: opacity .35s ease; }
#loading img { display: block; width: min(300px, 65vw, 65vh); height: auto; max-width: 100%; }
#loading.is-leaving { opacity: 0; pointer-events: none; }
body.loading .hero * { animation-play-state: paused !important; }
@media (max-width: 767px) { #loading img { width: min(240px, 65vw, 65vh); } }
@media (prefers-reduced-motion: reduce) { #loading { transition: none; } }
