/* 導入 Bootstrap - 已通過 CDN 載入，移除 @import */
/* @import 'bootstrap/dist/css/bootstrap.css'; */

/* 重置 Bootstrap 輪播圖的預設樣式 */
.carousel {
    position: relative !important;
}

/* 強制重置所有 Bootstrap 輪播圖相關樣式 */
.carousel-inner {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 10 !important;
}

.carousel-indicators {
    z-index: 10 !important;
}

/* 自定義主題變數 */
:root {
    /* 墨色：取自主視覺最深的近黑海軍藍，取代純黑 */
    --ink-900: #0C1331;
    --ink-700: #2A366E;

    /* 品牌重點色：取自主視覺寶藍 #324CAF，飽和度降至 66% */
    --brand-700: #26357A;
    --brand-600: #35499E;
    --brand-500: #4A5FB8;
    --brand-100: #E8EBF7;

    /* RGB 分量：供 rgba() 使用，CSS 變數無法直接放進 rgba() 的色彩位置 */
    --ink-900-rgb: 12, 19, 49;
    --brand-700-rgb: 38, 53, 122;
    --brand-600-rgb: 53, 73, 158;
    --brand-500-rgb: 74, 95, 184;

    /* 中性色：統一偏冷灰，與藍色家族同色調 */
    --surface-0: #FFFFFF;
    --surface-1: #F7F8FB;
    --surface-2: #EDEFF5;
    --border-subtle: #DDE1EC;
    --text-strong: #171C2C;
    --text-body: #333A4D;
    --text-muted: #5B6478;

    /* 陰影：帶藍調，光源方向一致由上方打下 */
    --shadow-sm: 0 1px 2px rgba(12, 19, 49, 0.06);
    --shadow-md: 0 4px 12px rgba(12, 19, 49, 0.10);
    --shadow-lg: 0 12px 32px rgba(12, 19, 49, 0.14);

    /* z-index 尺度 */
    --z-base: 1;
    --z-raised: 10;
    --z-overlay: 100;
    --z-nav: 1000;
    --z-modal: 1100;

    /* 字型堆疊：Outfit 供拉丁字母與數字，中文落到 Noto Sans TC */
    --font-sans: 'Outfit', 'Noto Sans TC', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* 相容別名：舊選擇器仍在使用這些變數名 */
    --primary-color: var(--brand-600);
    --secondary-color: var(--brand-500);
    --accent-color: var(--brand-700);
    --text-dark: var(--text-body);
    --bg-light: var(--surface-1);

    /* Bootstrap 變數覆寫（保留字面色值，Bootstrap 會據此推算 rgb 分量）*/
    --bs-primary: #35499E;
    --bs-secondary: #4A5FB8;
    --bs-success: #27ae60;
}

html {
    scroll-behavior: smooth;
    /* 錨點目標不被固定導覽列遮住 */
    scroll-padding-top: 140px;
}

/* 尊重使用者的減少動態偏好設定 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 鍵盤焦點指示。滑鼠點擊不觸發，只有鍵盤導覽時顯示 */
:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 3px;
    border-radius: 4px;
}

/* 深色導覽列與頁尾上，藍色描邊對比不足，改用白色 */
.navbar :focus-visible,
.footer :focus-visible {
    outline-color: #ffffff;
}

/* 跳至主要內容：平時移出畫面，取得焦點才出現 */
.skip-link {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -120%);
    z-index: var(--z-modal);
    padding: 0.75rem 1.5rem;
    background: var(--ink-900);
    color: #ffffff;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translate(-50%, 0);
}

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 大標題收緊字距，避免尾行落單字 */
h1, h2, h3, h4 {
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: var(--text-strong);
}

/* 內文避免尾行落單字 */
p {
    text-wrap: pretty;
}

/* 統一頁面頂部間距 - 配合新導覽列高度 */
.page-section {
    padding-top: 150px !important;
}

/* 導航列樣式 */
.navbar {
    background: rgba(var(--ink-900-rgb), 0.85) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(var(--ink-900-rgb), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 1.2rem 0;
    transition: all 0.3s ease;
    z-index: var(--z-nav) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-height: 120px !important;
}

.navbar.fixed-top {
    background: rgba(var(--ink-900-rgb), 0.85) !important;
    backdrop-filter: blur(15px);
    z-index: var(--z-nav) !important;
}

/* 透明變體：僅用於導覽列正下方就是深色主視覺的頁面。
   不透明度 0.60 是可讀性下限：即使底圖為純白，白色連結文字仍有 4.81:1，
   通過 WCAG AA。低於此值，主視覺右上的亮區會讓連結難以辨識。 */
.navbar.navbar-over-hero {
    background: rgba(var(--ink-900-rgb), 0.60) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(var(--ink-900-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 手機版主視覺被推到導覽列下方，導覽列後面是白底，
   透明會讓白色連結文字消失，因此還原為實心玻璃。 */
@media (max-width: 768px) {
    .navbar.navbar-over-hero {
        background: rgba(var(--ink-900-rgb), 0.85) !important;
        backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    margin-right: 3rem;
}

/* Logo 圖片樣式 - 等比例清晰顯示 */
.navbar-logo {
    height: 76px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

/* Logo 響應式設計 - 等比例版本 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
        min-height: 100px !important;
    }
    .navbar-brand {
        margin-right: 2rem;
    }
    .navbar-logo {
        height: 58px;
        max-width: 110px;
    }
    .nav-link {
        font-size: 1rem;
        margin: 0 8px;
        padding: 0.6rem 1rem !important;
    }
    .page-section {
        padding-top: 130px !important;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.8rem 0;
        min-height: 80px !important;
    }
    .navbar-brand {
        margin-right: 1rem;
    }
    .navbar-logo {
        height: 44px;
        max-width: 90px;
    }
    .nav-link {
        font-size: 0.9rem;
        margin: 0 6px;
        padding: 0.5rem 0.8rem !important;
    }
    .page-section {
        padding-top: 110px !important;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0 12px;
    padding: 0.75rem 1.25rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* 當前頁：底色更明顯，且不上浮（它代表位置，不是可互動提示）*/
.nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 40%;
}

.nav-link.active::after {
    width: 80%;
    height: 3px;
}

/* 按下回饋（目前沒有）*/
.nav-link:active,
.footer-links a:active,
.social-link:active {
    transform: translateY(1px);
}

/* 輪播圖區塊 */
.hero-carousel {
    height: 70vh !important;
    position: relative !important;
    margin-top: 120px !important; /* 配合120px導覽列高度 */
    overflow: hidden !important;
    z-index: 1 !important; /* 確保在導航列下方 */
}

/* 只對首頁主要輪播應用深藍色背景 */
.hero-illustration .carousel-item,
#heroCarousel .carousel-item,
.hero-carousel .carousel-item {
    height: 70vh !important;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    top: 0 !important; /* 強制重置位置 */
    left: 0 !important; /* 強制重置位置 */
}

/* 企劃主辦區塊的輪播項目保持透明背景 */
#organizerCarousel .carousel-item {
    background: transparent !important;
    height: auto !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

/* 輪播圖內容樣式 - 已移除，改為圖片輪播 */

/* 輪播圖圖片樣式 */
.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.carousel-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.carousel-overlay h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* 滑鼠懸停效果 */
.carousel-link:hover .carousel-img {
    transform: scale(1.05);
}

.carousel-link:hover .carousel-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.carousel-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.carousel-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.4;
}

.btn-hero {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(12, 19, 49, 0.2);
    color: var(--text-dark);
}

/* 區塊共用樣式 */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* 最新消息區塊 */
.news-section {
    background: var(--bg-light);
}

.news-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(12, 19, 49, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
    height: 100%;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(12, 19, 49, 0.15);
}

.news-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.news-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.news-content {
    color: #666;
    line-height: 1.7;
}

/* 活動資訊區塊 */
.event-section {
    background: linear-gradient(135deg, rgba(var(--brand-600-rgb),0.1), rgba(var(--brand-700-rgb),0.1));
}

.event-info {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(12, 19, 49, 0.1);
    text-align: center;
}

.event-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.event-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.detail-item {
    text-align: center;
    padding: 1rem;
}

.detail-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.detail-value {
    color: #666;
}

/* 認識小埃區塊 */
.about-section {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(12, 19, 49, 0.15);
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

.about-text {
    padding: 2rem;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.youtube-embed {
    margin-top: 2rem;
    text-align: center;
}

.youtube-embed iframe {
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(12, 19, 49, 0.15);
}

/* 原有卡片樣式保留 */
.birthday-card {
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(12, 19, 49, 0.1);
    transition: transform 0.2s ease;
}

.birthday-card:hover {
    transform: translateY(-5px);
}

/* 頁尾樣式 - 簡約設計 */
.footer {
    background: var(--ink-900);
    color: white;
    padding: 3rem 0 2rem 0; /* 增加高度讓 footer 更明顯 */
}

/* Logo 區塊 - 簡約設計 */
.footer-logo-section {
    text-align: center;
    margin-bottom: 2rem; /* 給 logo 更多空間 */
}

.footer-logo {
    height: 96px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: all 0.3s ease;
    /* 移除調亮效果，保持原始 logo 外觀 */
    margin: 0 auto;
    display: block;
}

.footer-logo:hover {
    transform: scale(1.05);
    /* 移除調亮效果，只保留縮放 */
}

/* 區塊標題統一樣式 - 簡約設計 */
.footer-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    letter-spacing: 0.5px;
}

/* 導覽區域 - 簡約緊湊 */
.footer-nav-section {
    margin-bottom: 0; /* 移除底部間距 */
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem; /* 減少間隙 */
    margin: 0;
    max-width: 240px; /* 更緊湊的寬度 */
    margin: 0 auto;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.4rem 0.6rem;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover::after {
    width: 100%;
}

/* 社群媒體區塊 - 簡約緊湊設計 */
.footer-social-section,
.footer-join-section {
    margin-bottom: 0; /* 移除底部間距 */
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.social-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.1);
}

/* 社群平台專屬顏色 */
.social-link.youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.social-link.twitter:hover,
.social-link.twitter-join:hover {
    background: rgba(0, 0, 0, 0.3);
    color: #000000;
    box-shadow: 0 5px 15px rgba(12, 19, 49, 0.2);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: white;
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.social-link.twitch:hover {
    background: rgba(145, 70, 255, 0.2);
    color: #9146ff;
    box-shadow: 0 5px 15px rgba(145, 70, 255, 0.3);
}

.social-link.discord:hover {
    background: rgba(88, 101, 242, 0.2);
    color: #5865f2;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

.social-link i {
    font-size: 1.4rem;
}

/* 尚未設定的社群連結：視覺上明確標示為停用，避免看起來像壞掉的按鈕 */
.social-link.is-placeholder {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* 瀏覽人數是數字，使用等寬數字避免跳動 */
.visitor-counter {
    font-variant-numeric: tabular-nums;
}

/* 分隔線和版權 */
.footer-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1rem 0 0.5rem 0; /* 減少間距 */
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem; /* 縮小字體 */
}

/* 新佈局的額外樣式 */
.footer-main-content {
    align-items: start;
}

.footer-logo-section {
    text-align: left; /* logo 左對齊 */
    margin-bottom: 0;
}

/* 右側功能區域間隙控制 */
.footer-main-content .col-auto {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Footer 響應式設計 - 簡約版本 */
@media (max-width: 992px) {
    .footer {
        padding: 2.5rem 0 1.5rem 0;
    }
    
    .footer-logo-section {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo {
        height: 100px;
        max-width: 260px;
    }
    
    .footer-logo-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-section-title {
        margin-bottom: 0.8rem;
        font-size: 1rem;
    }
    
    .footer-links {
        max-width: 260px;
        gap: 0.4rem;
    }
    
    .footer-links a {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .social-links {
        max-width: 140px;
        gap: 0.5rem;
    }
    
    .social-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.2rem 0;
    }
    
    .footer-main-content .col-auto {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .footer-logo {
        height: 90px;
        max-width: 220px;
    }
    
    .footer-logo-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-section-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-nav-section,
    .footer-social-section,
    .footer-join-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-links {
        max-width: 100%;
        gap: 0.4rem;
    }
    
    .footer-links a {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .social-links {
        max-width: 200px;
        gap: 0.5rem;
    }
    
    .social-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 2rem 0 1.2rem 0;
    }
    
    /* 小螢幕時改為垂直排列 */
    .footer-main-content .justify-content-end {
        justify-content: center !important;
    }
    
    .footer-main-content .col-auto {
        margin-bottom: 1rem;
    }
    
    .footer-logo {
        height: 80px;
        max-width: 200px;
    }
    
    .footer-logo-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-section-title {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-nav-section,
    .footer-social-section,
    .footer-join-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        max-width: 100%;
    }
    
    .footer-links a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .social-links {
        max-width: 100%;
        gap: 0.5rem;
    }
    
    .social-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .carousel-content {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .carousel-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .carousel-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.3;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .event-details {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }
    
    .hero-carousel {
        height: 60vh !important;
        margin-top: 80px !important; /* 手機版配合80px導覽列高度 */
    }
    
    .hero-illustration .carousel-item,
    #heroCarousel .carousel-item,
    .hero-carousel .carousel-item {
        height: 60vh;
    }
}

/* 強制解決重疊問題的終極方案 */
body {
    padding-top: 0 !important;
}

#home {
    margin-top: 0 !important; /* 移除強制上邊距，讓首頁大圖緊貼導覽列 */
    position: relative !important;
    z-index: 1 !important;
}

/* 確保導航列完全覆蓋 */
.navbar {
    min-height: 80px !important;
}

/* 強制輪播圖內容不重疊 */
.carousel-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 如果還有問題，使用這個強制方案 */
@media (max-width: 768px) {
    #home {
        margin-top: 0 !important; /* 手機版也移除上邊距 */
    }
}