/*
Theme Name: Lightning Child
Template: lightning
*/

/* ==================================================
   RWD Logo 與 Header 最終穩定版
   ================================================== */

/* ===== Header 基本 ===== */
.site-header {
    background: #ffffff;
    z-index: 999;
}

/* ===== Logo / Branding ===== */
.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    transition: all 0.3s ease;
}

/* Tagline */
.site-description {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

/* 平板 */
@media (max-width: 1024px) {
    .site-description {
        font-size: 0.85rem;
    }
}

/* 手機版：Logo + Tagline 置中堆疊 */
@media (max-width: 768px) {
    .site-branding {
        flex-direction: column;
        align-items: center;
        padding: 8px 0;
    }
    .site-description {
        font-size: 0.7rem;
        margin-top: 4px;
        text-align: center;
    }
}

/* ===== 主選單列（Sticky） ===== */
.primary-navigation {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}
.primary-navigation ul {
    margin: 0;
    padding: 0;
}

/* 手機版選單調整 */
@media (max-width: 768px) {
    .primary-navigation {
        position: fixed;
        width: 100%;
        top: auto;
        z-index: 1001;
    }
    .primary-navigation ul {
        display: flex;
        flex-direction: column;
    }
}

/* ===== 捲動控制 ===== */
body.header-scrolled .site-branding {
    display: none;
}
@media (max-width: 768px) {
    body.header-scrolled .site-branding {
        display: flex;
    }
}

/* ===== admin bar top 修正 ===== */
html.admin-bar .primary-navigation {
    top: 32px;
}



/* ===== 手機板首頁輪播圖片完整顯示 ===== */
@media screen and (max-width:768px){
  .home-slider img, .swiper-slide img {
    width: 100%;
    height: auto;        /* 保持比例 */
    object-fit: contain;  /* 確保完整顯示，不裁切 */
  }

  /* 讓 slide 高度自適應手機螢幕 */
  .home-slider, .swiper-container {
    max-height: 100vh;
  }
}