/* ===========================
   共用樣式 - 所有頁面使用
   =========================== */

/* 字體設定 */
body {
    font-family: 'Noto Sans TC', sans-serif;
}

/* Fade-in 動畫 */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 動畫延遲類別 */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* 自訂捲軸樣式 (Webkit) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8B1E1E;
    border-radius: 4px;
}

/* ===========================
   Header & Navigation 樣式
   =========================== */

/* Announcement Bar */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

/* Main Header */
#main-header {
    position: sticky;
    top: 32px;
    z-index: 40;
}

body {
    padding-top: 32px;
}

/* Logo Area */
.logo-area {
    transition: all 0.3s ease-in-out;
    max-height: 200px;
    overflow: hidden;
}

/* Header Scroll Effect */
#main-header.scrolled .logo-area {
    max-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0;
    opacity: 0;
}

#main-header.scrolled nav {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    margin-top: 0 !important;
    border-top: none !important;
}

/* ===========================
   Mobile Menu
   =========================== */

#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 60;
    transition: opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    display: none;
}

#mobile-menu-panel {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 16rem;
    background-color: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease-in-out;
    z-index: 70;
}

#mobile-menu-panel.translate-x-full {
    transform: translateX(100%);
}