/* --- 全域設定 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 動畫 --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-first, 
.fade-in-second,
.fade-in-content {
    opacity: 0; 
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

.fade-in-first {
    animation-delay: 0.2s;
}

.fade-in-second {
    animation-delay: 0.8s;
}

.fade-in-content {
    animation-delay: 1.2s;
}

/* --- 表頭Header --- */
.main-header {
    width: 100%;
    height: 630px;
    background-image: url('../images/bg.jpg'); 
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    
    display: flex;
    flex-direction: column; /* 垂直排列 */
    justify-content: center; /* 垂直置中 */
    align-items: center; /* 水平置中 */
    position: relative;
    padding-top: 20px;
} 


/* --- 半透明黑色遮罩 --- */
.main-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); 
    z-index: 1; 
}


/* 標題 */
.title-wrapper {
    text-align: center;
    z-index: 2;
    margin-bottom: 20px;
}

/* --- 優惠圖 --- */
.offer-wrapper {
    width: 100%;
    max-width: 800px; 
    z-index: 2;
}

/* --- 圖片切換(桌機/手機) --- */
.desktop-ver {
    display: block;
    margin: 0 auto;
}

.mobile-ver {
    display: none;
    margin: 0 auto;
}

/* --- 內容區 --- */
.content-area {
    background-color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

.product-showcase {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* --- 線上訂閱按鈕(橘色玻璃質感) --- */
.subscribe-btn {
    display: inline-block;
    padding: 10px 50px;
    font-size: 2.4rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    
    /* 玻璃質感設定 */
    background-color: rgba(255, 115, 0, 0.85); /* 半透明橘色 */
    backdrop-filter: blur(10px); /* 背景模糊 */
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4); /* 白邊框 */
    box-shadow: 0 5px 15px rgba(255, 100, 0, 0.4); /* 橘色陰影 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);

    transition: all 0.3s ease;
    
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.subscribe-btn:hover {
    transform: scale(1.05); 
    background-color: rgba(255, 115, 0, 1);
    box-shadow: 0 8px 25px rgba(255, 100, 0, 0.6);
}

/* --- Footer --- */
.site-footer {
    background-color: #f0f0f0;
    color: #333;
    padding: 20px 0;
    font-size: 1.1rem;
}


.site-footer .container {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

/* 紅色標題 */
.site-footer h3 {
    margin-bottom: 5px;
    color: #d32f2f; 
}

.notes-list {
    padding-left: 20px;
}

.notes-list li {
    line-height: 28px;
}

/* 第一點注意事項紅色 */
.notes-list li:first-child {
    color: #d32f2f;
    font-weight: bold;
}


/* --- 手機版RWD --- */
@media screen and (max-width: 768px) {

    .container {
        padding: 0 5px;
   }

    /* 表頭 */
    .main-header {
        width: 100%;
        height: auto;
        background-image: url('../images/bg_m.jpg');
        /* 讓圖完全顯示，不會裁切 */
        background-size: 100% auto; 
        background-position: top center;
        padding-top: 40px; 
        padding-bottom: 20px;
    }

    .title-wrapper {
        margin-bottom: 0px;
        margin-top: -20px;
    }

    .offer-wrapper {
        margin-top: 20px; 
        position: relative;
        z-index: 5;
    }

    /* 圖片切換 */
    .desktop-ver {
        display: none; /* 隱藏電腦版 */
    }

    .mobile-ver {
        display: block; /* 顯示手機版 */
    }
    
    /* 手機版圖片寬度 */
    .title-img.mobile-ver {
         width: 85%; 
    }

    .offer-img.mobile-ver {
        width: 95%;
    }

    .pot-img.mobile-ver {
        width: 100%;
    }

    .content-area {
        padding: 20px 0 35px 0;
        text-align: center;
    }

    .product-showcase {
        margin-top: 0px;
    }


    /* 按鈕 */
    .subscribe-btn {
        padding: 10px 20px;
        font-size: 2.2rem;
        width: 80%; 
    }

    .site-footer .container {
        padding: 0px 15px 0px 15px;
        text-align: left;
    }

}