/* ==========================================
    導覽列 Active 狀態 (配合 Body Class 自動觸發)
========================================== */
/* 1. 當前頁面的按鈕：橘色微透底色 + 邊框發光 */
header a.isActive {
    background: #ff9500 !important;
    border-color: #ff9500 !important;
    pointer-events: none; /* 防止玩家重複點擊已經在的頁面，節省資源 */
}

header a.isActive span {
    color: #ffffff !important;
}

body.openModal {
    overflow: hidden;
    position: fixed;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}
.scroll_down header {
    transform: translateY(-110%);
}
.scroll_up header {
    position: fixed;
}
header > * {
    height: 45px;
    width: auto !important;
    display: flex;
    align-items: center;
    border-radius: 100rem;
    padding: 0.25rem 1rem !important;
    gap: 0.25rem;
    font-size: 1rem !important;
    pointer-events: visible;
}

header img {
    height: 20px;
}

aside,
header {
    transition: all 0.3s ease;
    z-index: 100;
}

.scroll_down aside {
    transform: translateX(calc(110% + 2vw));
}
aside a,
aside button {
    width: calc(34px + 1vmin);
    height: calc(34px + 1vmin);
    pointer-events: auto;
}
aside i {
    font-size: calc(14px + 1vmin);
}
/* ==========================================
    手機端配裝快速導覽樣式
========================================== */
.quick-nav-btn {
    padding: 3px;
    position: relative;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}
.quick-nav-btn:hover,
.quick-nav-btn:active {
    border-color: var(--color_ci);
}
.quick-nav-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* ====================
    Bootstrap
==================== */
.container {
    max-width: 1200px;
}
.form-switch .form-check-input {
    min-width: 30px;
}
.bi {
    display: flex;
}
.rounded {
    border-radius: 0.5rem !important;
}
.rounded_1 {
    border-radius: 1em !important;
}

/* ==========================================
    開發者廣告卡片
========================================== */
.ad-avatar-wrap {
    margin-top: -60px;
}
@media (min-width: 768px) {
    .ad-avatar-wrap {
        margin-top: 0 !important;
    }
}
/* 按鈕呼吸燈與懸浮放大 */
.pulse-btn {
    animation: pulse-yellow 2s infinite;
}
@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 214, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 214, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 214, 0, 0);
    }
}
