/* custom-layout.css - 橫幅和背景設定的通用樣式 */

/* 頁面橫幅通用樣式 - 4:1比例 */
.page-banner {
    position: relative;
    margin-bottom: 40px;
    height: 0;
    padding-bottom: 25%;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.page-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.page-banner .banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.page-banner .banner-title {
    font-size: 42px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 15px;
}

.page-banner .banner-divider {
    width: 70px;
    height: 4px;
    background-color: #007bff;
    margin: 0 auto;
}

/* 內容區域背景樣式 */
.content-bg-wrapper {
    background-image: url('../images/x-xq.png');
    background-repeat: repeat;
    padding: 0 0 40px 0;
    margin-top: -40px; /* 抵消橫幅下方的margin */
}

.content-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 40px; /* 恢復橫幅下方的margin */
}

/* 橫幅大小變體 */
.page-banner.banner-large {
    padding-bottom: 30%; /* 3.33:1比例 */
}

.page-banner.banner-small {
    padding-bottom: 20%; /* 5:1比例 */
}

/* 頁面特定背景 */
.content-bg-products {
    background-image: url('../images/bg-pattern.png');
}

.content-bg-about {
    background-image: url('../images/bg-about.png');
}

.content-bg-news {
    background-image: url('../images/bg-news.png');
}

/* 背景透明度變體 */
.content-container.more-transparent {
    background-color: rgba(255, 255, 255, 0.9);
}

.content-container.less-transparent {
    background-color: rgba(255, 255, 255, 0.98);
}

/* 響應式樣式 */
@media (max-width: 992px) {
    .page-banner .banner-title {
        font-size: 36px;
    }
    
    .page-banner .banner-divider {
        width: 60px;
        height: 3px;
    }
}

@media (max-width: 768px) {
    .page-banner .banner-title {
        font-size: 30px;
    }
    
    .page-banner .banner-divider {
        width: 50px;
    }
}

@media (max-width: 576px) {
    .page-banner {
        padding-bottom: 35%; /* 在小螢幕上使用較大比例 */
    }
    
    .page-banner .banner-title {
        font-size: 24px;
    }
    
    .content-container {
        padding: 15px;
    }
} 