/* ==========================================
   旧糖廍 — style.css
   ========================================== */

/* ── Google Fonts ── */
/* (已在 HTML <head> 引入，這裡不重複) */

/* iOS Safari 抽屜開啟時鎖定背景捲動
   不用 overflow:hidden（iOS 上會讓 scrollY 歸零）
   改用 position:fixed 固定整個 body */
body.drawer-open {
    position: fixed;
    width: 100%;
    /* 不設 overflow，讓 iOS 自己處理 */
}

/* ── 全域設定 ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
}

body {
    background-color: #faf9f6; /* 保留原本的底色，在圖片載入完成前先墊底 */
    background-image: url('image/paper-bg.jpg'); /* 載入您的材質圖 */
    background-repeat: repeat; /* 讓圖片上下左右不斷重複蔓延 */
    background-attachment: fixed; 
    
    color: #4a4a4a;
    font-family: "Noto Serif TC", serif;
    line-height: 1.5;
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #faf9f6;
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* 手機版小 Logo（預設隱藏，手機才顯示） */
.top_logo {
    display: none;
}

/* 漢堡按鈕（預設隱藏） */
.hamburger {
    display: none;
}

/* 關閉按鈕（預設隱藏） */
.drawer-close {
    display: none;
}

/* 遮罩（預設隱藏） */
.overlay {
    display: none;
}

/* ── 導覽選單（電腦版） ── */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.site-nav a {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 17px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.site-nav a:hover {
    color: #8b7355;
}

.nav-en {
    font-size: 11px;       /* 字體略小 */
    color: #8b7355;        /* 套用品牌的褐色，更有層次感 */
    letter-spacing: 2px;
    font-family: "Noto Sans TC", sans-serif; /* 英文用無襯線體會比較俐落 */
}

/* ==========================================
   LOGO 區塊（電腦版大 Logo）
   ========================================== */
.logo-section {
    position: relative;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-height: 200px;
    width: auto;
    display: block;
}

.logo a {
    text-decoration: none;
}

.logo-text p {
    font-size: 0.8em;
    color: #4a4a4a;
    letter-spacing: 2px;
    margin-top: 8px;
    text-align: center;
}

/* ==========================================
   輪播大圖
   ========================================== */
.hero-slider-section {
    position: relative;
    height: 75vh;
    width: 94%;
    max-width: 1200px;
    margin: 10px auto 0;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slider-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(250, 249, 246, 0.75);
    padding: 10px 30px;
    text-align: center;
}

.hero-slider-text h2 {
    font-family: "Noto Serif TC", serif;
    font-size: 2.5em;
    color: #2c2c2c;
    letter-spacing: 4px;
}

/* ==========================================
   品牌理念 / 各 Section 共用樣式
   ========================================== */
.concept-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #faf9f6;
}

.section-title {
    font-family: "Noto Serif TC", serif;
    font-size: 28px;
    font-weight: normal;
    color: #2c2c2c;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 14px;
    color: #8b7355;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.concept-text p {
    color: #4a4a4a;
    font-size: 16px;
    line-height: 2.2;
    margin-bottom: 10px;
}

/* 按鈕 */
.btn-more {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 40px;
    border: 1px solid #2c2c2c;
    color: #2c2c2c;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: #2c2c2c;
    color: #ffffff;
}
/* ==========================================
   品牌介紹獨立頁面樣式
   ========================================== */
.about-story-section, 
.about-craft-section {
    padding: 0 20px 10px;
    background-color: #faf9f6;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* 頂部引言 */
.about-quote {
    text-align: center;
    margin-bottom: 30px;
}

.about-quote p {
    font-family: "Noto Serif TC", serif;
    font-size: 28px;
    color: #8b7355;
    letter-spacing: 4px;
}

/* 核心文案 */
.about-text-main {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

.about-text-main p {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 2;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* 工藝圖文區塊 */
.craft-feature {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.craft-feature.reverse {
    flex-direction: row-reverse;
}

.craft-image {
    flex: 1;
    min-height: 400px;
    background-size: cover;
    background-position: absolute;
}

.craft-content {
    flex: 1;
    padding: 20px 0;
}

.craft-content h3 {
    font-family: "Noto Serif TC", serif;
    font-size: 22px;
    color: #2c2c2c;
    margin-bottom: 25px;
    letter-spacing: 2px;
}
.craft-content h4 {
    font-family: "Noto Serif TC", serif;
    font-size: 16px;
    color: #2c2c2c;
    margin-top: 15px;
    letter-spacing: 2px;
}

.craft-content p {
    font-size: 15px;
    color: #666;
    line-height: 2;
    letter-spacing: 1px;
}

/* 手機版 RWD */
@media (max-width: 767px) {
    .about-quote p {
        font-size: 22px;
    }

    .craft-feature, 
    .craft-feature.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .craft-image {
        min-height: 280px;
        width: 100%;
    }

    .craft-content {
        padding: 0;
        text-align: center;
    }
}
/* ==========================================
   最新消息獨立頁面樣式
   ========================================== */
.news-list-section {
    padding: 0 20px 120px;
    background-color: #faf9f6;
}

.news-container {
    max-width: 800px; /* 為了讓文字閱讀舒適，限制最大寬度 */
    margin: 0 auto;
    border-top: 1px solid #2c2c2c; /* 列表最上方加上實線 */
}

/* 單筆消息的外框與互動 */
.news-item {
    display: flex;
    padding: 40px 10px;
    border-bottom: 1px solid #d4d0c8;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 滑鼠懸停時，整排稍微往右平移，並改變背景色 */
.news-item:hover {
    background-color: #f0ebe1;
    transform: translateX(10px);
}

/* 日期與標籤區塊 (左側) */
.news-meta {
    width: 180px;
    flex-shrink: 0;
}

.news-date {
    display: block;
    font-family: "Noto Serif TC", serif;
    font-size: 16px;
    color: #8b7355;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.news-tag {
    display: inline-block;
    font-size: 12px;
    color: #2c2c2c;
    border: 1px solid #2c2c2c;
    padding: 3px 10px;
    letter-spacing: 2px;
}

/* 標題與內文區塊 (右側) */
.news-content {
    flex-grow: 1;
    padding-left: 20px;
}

.news-title {
    font-family: "Noto Serif TC", serif;
    font-size: 20px;
    color: #2c2c2c;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* 最新消息區塊 RWD — 手機版 */
@media (max-width: 767px) {
    .news-item {
        flex-direction: column;
        padding: 30px 10px;
    }

    /* 手機版讓日期與標籤橫向並排 */
    .news-meta {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
    }

    .news-date {
        margin-bottom: 0;
    }

    .news-content {
        padding-left: 0;
    }

    .news-title {
        font-size: 18px;
    }
}
/* ==========================================
   RWD — 手機版（767px 以下）
   ========================================== */
@media (max-width: 767px) {

    2
    .site-header {
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        z-index: 80;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    .mobile-header {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    /* 手機版顯示小 Logo */
.top_logo {
    display: block;
    margin-right: auto;
}

.top_logo img {
    display: block;
    max-height: 30px;
    width: auto;
}

    /* 手機版顯示漢堡按鈕 */
.hamburger {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 81;
}

    .hamburger span {
        width: 100%;
        height: 2px;
        background-color: #2c2c2c;
        border-radius: 1px;
    }

    /* 導覽選單 → 右側抽屜
       改用 transform 取代 right 定位，iOS Safari 相容性最好 */
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;                          /* 固定在右邊 */
        transform: translateX(100%);       /* 預設往右移出畫面 */
        width: 75%;
        max-width: 300px;
        height: 100dvh;
        background-color: #faf9f6;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 70px 30px 30px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.35s ease;  /* 動畫改為 transform */
        z-index: 100;
        overflow-y: auto;
    }

    /* 滑入：transform 歸零 = 回到原位 */
    .site-nav.active {
        transform: translateX(0);
    }

    .site-nav a {
        width: 100%;
        font-size: 15px;
        padding: 14px 0;
        border-bottom: 1px solid #eee;
        /* 手機版改為靠左側對齊 */
        align-items: flex-start;
        gap: 2px;
    }

    /* 關閉按鈕 */
    .drawer-close {
        display: block;
        position: absolute;
        top: 18px; right: 18px;
        font-size: 22px;
        background: none;
        border: none;
        color: #2c2c2c;
        cursor: pointer;
        line-height: 1;
    }

    /* 遮罩 */
    .overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease;
        z-index: 90;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Logo 區塊補足固定 Header 的高度 */
    .logo-section {
        margin-top: 5px; /* 等於手機版 header 高度 */
        height: 22vh;
    }

    .logo img {
        max-height: 130px;
    }

    /* 輪播圖手機版高度 */
    .hero-slider-section {
        height: 55vw; /* 比例更適合手機 */
        width: 100%;
        margin: 8px auto 0;
    }

    .hero-slider-text h2 {
        font-size: 1.6em;
    }

    /* Section 手機版上下空白縮小 */
    .concept-section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 22px;
    }

    /* 手機版 scroll-padding 動態補正
       （用 JS 設定更精準，CSS 這裡給備用值） */
    html {
        scroll-padding-top: 0;
    }
}
/* ==========================================
   產品獨立頁面樣式
   ========================================== */
.page-title-section {
    padding: 30px 20px; /* 頂部留白避開 Header，營造呼吸感 */
    text-align: center;
    background-color: #faf9f6;
}

.products-grid-section {
    padding: 0 20px 120px;
    background-color: #faf9f6;
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 電腦版並排 3 個 */
    gap: 40px;
}

.product-card {
    background-color: #fff;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px); /* 滑鼠懸停時微幅上浮 */
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* 保持圖片 1:1 正方形 */
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 30px 20px;
    text-align: center;
}

.product-name {
    font-family: "Noto Serif TC", serif;
    font-size: 20px;
    color: #2c2c2c;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    min-height: 50px;
}


/* ==========================================
   產品區塊 RWD — 手機版（767px 以下）
   ========================================== */
@media (max-width: 767px) {
    .page-title-section {
        padding: 10px 20px 10px; 
    }

    .product-grid {
        grid-template-columns: 1fr; /* 手機版改為單欄垂直排列 */
        gap: 30px;
    }
}
/* ==========================================
   常見問題獨立頁面樣式
   ========================================== */
.faq-list-section {
    padding: 0 20px 120px;
    background-color: #faf9f6;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #2c2c2c;
}

/* 隱藏原生三角形符號 (Safari & Chrome) */
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary {
    list-style: none; /* 隱藏原生三角形符號 (Firefox) */
}

/* 單筆 QA 區塊 */
.faq-item {
    border-bottom: 1px solid #d4d0c8;
}

/* 問題標題 (點擊區) */
.faq-question {
    display: flex;
    align-items: center;
    padding: 30px 10px;
    font-family: "Noto Serif TC", serif;
    font-size: 18px;
    color: #2c2c2c;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0ebe1;
}

/* 專屬的 Q 標記 */
.faq-q-mark {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #8b7355;
    margin-right: 15px;
    letter-spacing: 0;
}

/* 答案內容區 */
.faq-answer {
    padding: 0 10px 30px 40px; /* 左側留白對齊文字，避開 Q 標記 */
}

.faq-answer p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* 手機版微調 */
@media (max-width: 767px) {
    .faq-question {
        padding: 25px 10px;
        font-size: 16px;
        line-height: 1.5;
        align-items: flex-start; /* 手機版如果折行，讓 Q 對齊頂部 */
    }
    
    .faq-q-mark {
        margin-top: 2px;
    }

    .faq-answer {
        padding: 0 10px 25px 35px;
    }
}
/* ==========================================
   聯絡我們獨立頁面樣式
   ========================================== */
.contact-page-section {
    padding: 0 20px 120px;
    background-color: #faf9f6;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    border-top: 1px solid #2c2c2c;
    padding-top: 60px;
}

/* 左側資訊區 */
.contact-info {
    flex: 1;
    font-size: 16px;
    color: #4a4a4a;
    line-height: 2;
}

.info-title {
    font-family: "Noto Serif TC", serif;
    font-size: 22px;
    color: #2c2c2c;
    margin-bottom: 20px;
    font-weight: normal;
}

.info-divider {
    width: 30px;
    height: 1px;
    background-color: #8b7355;
    margin: 30px 0;
}

/* 右側表單區 */
.contact-form-wrapper {
    flex: 1.5;
}

.minimal-form .form-group {
    margin-bottom: 30px;
}

/* 極簡輸入框設計：只保留底線 */
.minimal-form input,
.minimal-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #d4d0c8;
    padding: 10px 0;
    font-size: 16px;
    font-family: inherit;
    color: #2c2c2c;
    transition: border-color 0.3s ease;
}

.minimal-form input:focus,
.minimal-form textarea:focus {
    outline: none;
    border-bottom: 1px solid #2c2c2c;
}

.minimal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.minimal-form .btn-more {
    margin-top: 20px;
    background: transparent;
    cursor: pointer;
}

/* 手機版 RWD：改為上下堆疊 */
@media (max-width: 767px) {
    .contact-container {
        flex-direction: column;
        gap: 50px;
        padding-top: 40px;
    }

    .contact-form-wrapper {
        width: 100%;
    }
}
/* ==========================================
   應用食譜獨立頁面樣式
   ========================================== */
.recipes-list-section {
    padding: 0 20px 120px;
    background-color: #faf9f6;
}

.recipes-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px; /* 每個食譜之間的距離 */
}

/* 單篇食譜卡片 */
.recipe-card {
    display: flex;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

/* 交錯排版：偶數區塊圖右文左 */
.recipe-card.reverse {
    flex-direction: row-reverse;
}

/* 食譜圖片 */
.recipe-image {
    flex: 1;
    min-height: 350px;
    background-size: cover;
    background-position: center;
}

/* 食譜內容 */
.recipe-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recipe-title {
    font-family: "Noto Serif TC", serif;
    font-size: 24px;
    color: #2c2c2c;
    margin-bottom: 20px;
}

.recipe-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.recipe-ingredients {
    font-size: 14px;
    color: #8b7355;
    background-color: #faf9f6;
    padding: 15px 20px;
    line-height: 1.6;
    border-left: 3px solid #8b7355;
}

/* 手機版 RWD */
@media (max-width: 767px) {
    .recipes-container {
        gap: 40px;
    }

    /* 手機版統一改為「圖上文下」直式排版 */
    .recipe-card, .recipe-card.reverse {
        flex-direction: column;
    }

    .recipe-image {
        min-height: 250px;
    }

    .recipe-content {
        padding: 30px 20px;
    }

    .recipe-title {
        font-size: 20px;
    }
}
/* ==========================================
   FOOTER 頁尾樣式
   ========================================== */
.site-footer {
    background-color: #2c2c2c;
    color: #faf9f6;
    padding: 30px 20px 20px;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid rgba(250, 249, 246, 0.15);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* 品牌資訊區 */
.footer-logo {
    max-height: 80px;
    margin-bottom: 15px;
    /* 利用 CSS 濾鏡將原本的深色 Logo 轉為白色，適應深色背景 */
    filter: brightness(0) invert(1); 
}

.footer-info p {
    color: #d4d0c8;
    margin-bottom: 10px;
    line-height: 1.8;
    letter-spacing: 1px;
}

/* 快速連結區 */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 150px;
}

.footer-links a {
    color: #d4d0c8;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 2px;
}

.footer-links a:hover {
    color: #8b7355;
}

/* 版權宣告 */
.footer-bottom {
    text-align: center;
    color: #888;
    font-size: 12px;
    letter-spacing: 1px;
}

/* ==========================================
   FOOTER RWD — 手機版（767px 以下）
   ========================================== */
@media (max-width: 767px) {
    .site-footer {
        padding: 20px 20px 20px;
    }

    .footer-container {
        flex-direction: column; /* 手機版改為上下排列 */
        gap: 30px;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .footer-links a {
        width: calc(50% - 10px); /* 讓連結在手機版變成整齊的兩欄式 */
    }
}
/* 製作團隊署名樣式 */
.design-credit {
    margin-top: 3px; /* 與版權宣告保持一點呼吸空間 */
}

.design-credit a {
    color: #f0efef; /* 預設顏色比版權文字深一點點，但保持低調 */
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.design-credit a:hover {
    color: #e3d507; /* 滑鼠滑過時，浮現品牌的專屬褐色 */
}