/* =========================================================
   ⚓ 琉急式 - 午夜藍「極致啟程」揭幕 (Minimal Navy Reveal)
   ========================================================= */

#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    background: #030a16; /* 設定這為網站唯一的「讀取底色」 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 🏆 統一顏色的門簾，確保閉合時是一張白紙（全藍屏） */
.ls-curtain {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50.5vh; /* 確保重疊 0.5%，完美消縫 */
    background: #030a16; /* 與背景完全一致 */
    z-index: 50;
    transition: transform 0.8s cubic-bezier(0.8, 0, 0.1, 1);
}

.ls-curtain-t { top: 0; }
.ls-curtain-b { bottom: 0; }

/* 🔵 中心脈動波光（在標誌下方慢慢暈開） */
.ls-brand-pulse {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(12, 166, 120, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 60;
    animation: pulsate 2.5s ease-in-out infinite;
}

.ls-center-content {
    position: relative;
    z-index: 100;
    text-align: center;
    transition: opacity 0.5s ease;
}

.ls-logo-wrap img {
    width: 240px;
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.5));
}

.ls-status-box { margin-top: 50px; }

/* 金色極簡進度條 */
.ls-mini-loader {
    width: 100px;
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 0 auto 20px;
    overflow: hidden;
}

.ls-mini-fill {
    width: 0%;
    height: 100%;
    background: #ffd700;
    box-shadow: 0 0 10px #ffd700;
}

.ls-subtitle {
    color: white;
    font-family: 'Inter', monospace;
    font-size: 10px;
    letter-spacing: 0.6em; /* 加寬字距增加精品感 */
    text-indent: 0.6em;
    opacity: 0.35;
}

/* 🟢 開場啟動動畫序列 */
#loading-screen.go .ls-curtain-t { transform: translateY(-100%); }
#loading-screen.go .ls-curtain-b { transform: translateY(100%); }
#loading-screen.go .ls-center-content { 
    opacity: 0; 
    transform: scale(1.02); /* 微微變大消失展現衝力 */
}

/* 退場：1秒後讓遮擋器完全消失，露出網站 */
#loading-screen.go {
    opacity: 0;
    transition: opacity 0.8s ease 0.6s;
    pointer-events: none;
}

/* 讓原本組件在門後悄悄準備好，不要有位移（不亂跳導覽） */
nav, #nav-fixed, .header-layout-container, .main-content, .weather-bar {
    opacity: 0;
}

body.ready-for-open nav, 
body.ready-for-open #nav-fixed,
body.ready-for-open .header-layout-container,
body.ready-for-open .main-content,
body.ready-for-open .weather-bar {
    opacity: 1;
    transition: opacity 1.5s ease;
}

#nav-fixed { transform: none !important; }

@keyframes pulsate {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}