/* 
 * 背景UI圖片樣式
 * 這個CSS文件為網站添加背景圖案
 */

/* 基本背景圖案 */
body {
    position: relative;
    background-color: #ffffff;
}

/* 頁面背景圖案 - 水印效果 */
body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../images/background-pattern.png');
    background-repeat: repeat;
    background-size: 400px;
    opacity: 0.15;
    pointer-events: none;
}

/* 右上角裝飾圖形 */
body:after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    z-index: -1;
    background-image: url('../images/corner-decoration.png');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
    opacity: 0.18;
    pointer-events: none;
}

/* 左下角裝飾圖形 */
.bottom-decoration {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 250px;
    height: 250px;
    z-index: -1;
    background-image: url('../images/bottom-decoration.png');
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: contain;
    opacity: 0.17;
    pointer-events: none;
}

/* 產品頁面特殊背景 */
.products-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 1200px;
    z-index: -2;
    background-image: url('../images/products-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.14;
    pointer-events: none;
}

/* 首頁特殊背景 */
.home-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 1400px;
    z-index: -2;
    background-image: url('../images/home-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.135;
    pointer-events: none;
}

/* 關於我們頁面特殊背景 */
.about-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 1400px;
    z-index: -2;
    background-image: url('../images/about-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.13;
    pointer-events: none;
}

/* 響應式調整 */
@media (max-width: 768px) {
    body:after {
        width: 200px;
        height: 200px;
    }
    
    .bottom-decoration {
        width: 150px;
        height: 150px;
    }
    
    body:before {
        background-size: 300px;
    }
}

@media (max-width: 576px) {
    body:after {
        width: 150px;
        height: 150px;
    }
    
    .bottom-decoration {
        width: 100px;
        height: 100px;
    }
    
    body:before {
        background-size: 200px;
    }
} 