/* Banner 圖片完整顯示修復 */
.page-header-contact {
    position: relative;
    overflow: visible;
    min-height: 700px;
    height: auto;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    min-height: 700px;
    height: auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-header-bg img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 700px !important;
    object-fit: scale-down !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 auto !important;
}

/* 確保文字內容在圖片上方 */
.page-header-contact .container {
    position: relative;
    z-index: 1;
}

/* Service 頁面 banner 修復 - 1920x700 圖片自動縮放 */
.page-header-service {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
    background-color: #f5f5f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .page-header-bg img {
        max-width: 100%;
        max-height: 400px;
    }
    
    .page-header-contact {
        min-height: 400px;
    }
    
    .page-header-service {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }
}

@media (max-width: 480px) {
    .page-header-bg img {
        max-height: 300px;
    }
    
    .page-header-contact {
        min-height: 300px;
    }
    
    .page-header-service {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }
} 