/* theme2026/base.css
 * 2026 新版前台共用基礎：色彩變數、頁首導覽（含手機漢堡選單）、按鈕、頁尾、提示訊息。
 * 設計稿來源：ai-guide/newsite261123
 *
 * 本檔「不設定」全域的 *、html、body、a，只作用在自己的元件上，
 * 因此可以與內頁使用的舊版 fago.css 共存（獨立頁另外載入 reset.css）。
 */
:root {
    --ink: #282c29;
    --muted: #72776f;
    --cream: #f7f5ef;
    --paper: #fffefa;
    --green: #718779;
    --green-dark: #4e6659;
    --gold: #b38a49;
    --line: #e6e2d8;
    --shadow: 0 16px 45px rgba(46, 53, 46, .09);
}

/* 與 fago.css 共存時，明確指定元件的字型 / 行高 / 盒模型 / 連結色 */
.site-header,
.footer,
.toast {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.75;
}

    .site-header,
    .site-header *,
    .footer,
    .footer * {
        box-sizing: border-box;
    }

    .site-header a,
    .footer a {
        color: inherit;
        text-decoration: none;
    }

.topline {
    height: 5px;
    background: linear-gradient(90deg, #718779, #c5a566, #718779);
}

/* ---------- 頁首 / 導覽 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 254, 250, .96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #2c362b12;
}

.nav {
    max-width: 1500px;
    margin: auto;
    padding: 13px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: block;
    flex: none;
    line-height: 0;
}

    .brand img {
        display: block;
        width: auto;
        height: 43px;
    }

.navlinks {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 14px;
    color: #4e554e;
}

.navlink,
.nav-dropdown summary {
    display: inline-flex;
    align-items: center;
    padding: 7px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

    .navlink:hover,
    .nav-dropdown summary:hover {
        background: #f3f0e8;
        color: var(--green-dark);
    }

.navgreet {
    display: inline-flex;
    align-items: center;
    padding: 7px 9px;
    color: #7a8a7f;
    white-space: nowrap;
}

.nav-dropdown {
    position: relative;
}

    .nav-dropdown summary {
        cursor: pointer;
        list-style: none;
        user-select: none;
    }

        .nav-dropdown summary::-webkit-details-marker {
            display: none;
        }

        /* 下拉箭頭（Font Awesome）：展開時翻轉 */
        .nav-dropdown summary .chev {
            margin-left: 6px;
            font-size: 12px;
            color: #8c7952;
            transition: transform .2s;
        }

    .nav-dropdown[open] summary .chev {
        transform: rotate(180deg);
    }

.dropdown-panel {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 30;
    min-width: 218px;
    padding: 9px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--shadow);
}

    .dropdown-panel a {
        display: block;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 14px;
        white-space: nowrap;
    }

        .dropdown-panel a:hover {
            background: #f3f0e8;
            color: var(--green-dark);
        }

/* 手機漢堡按鈕（桌機隱藏） */
.nav-toggle {
    display: none;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--green-dark);
    font-size: 18px;
    cursor: pointer;
}

.navlink:focus-visible,
.nav-dropdown summary:focus-visible,
.dropdown-panel a:focus-visible,
.nav-toggle:focus-visible,
.brand:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* ---------- 按鈕 ---------- */
.eyebrow {
    font-size: 12px;
    color: var(--gold);
    letter-spacing: .24em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 21px;
    border: 1px solid var(--green-dark);
    border-radius: 999px;
    background: transparent;
    color: var(--green-dark);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
}

    .button:hover {
        background: var(--green-dark);
        color: #fff;
    }

    .button.primary {
        background: var(--green-dark);
        color: #fff;
        padding: 11px 34px;
        letter-spacing: .12em;
    }

        .button.primary:hover {
            background: #3f5549;
        }

/* 不可點擊（例如「敬請期待」） */
.button.is-disabled,
.button.is-disabled:hover {
    border-color: #d3d1c8;
    background: #f1efe9;
    color: #a8a69b;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---------- 頁尾 ---------- */
.footer {
    text-align: center;
    padding: 25px 16px;
    border-top: 1px solid var(--line);
    color: #929187;
    font-size: 11px;
}

/* ---------- 提示訊息（site.js 的 siteToast） ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 9999;
    max-width: min(520px, calc(100% - 32px));
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--green-dark);
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}

    .toast.show {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .toast.warn {
        background: #9a6b1d;
    }

/* ---------- 響應式：平板與手機改用漢堡選單 ---------- */
@media (max-width: 980px) {
    .nav {
        flex-wrap: wrap;
        gap: 0;
        padding: 10px 16px;
    }

    .brand img {
        height: 38px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .navlinks {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 2px;
        padding: 10px 0 6px;
        font-size: 14px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav.is-open .navlinks {
        display: flex;
    }

    .navlink,
    .nav-dropdown summary {
        justify-content: space-between;
        padding: 11px 12px;
        border-radius: 10px;
    }

    /* 手機選單：問候語移到最上方（在「關於心齋圓」之前） */
    .navgreet {
        order: -1;
        padding: 4px 12px 11px;
        font-size: 13px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-panel {
        position: static;
        min-width: 0;
        margin: 2px 0 6px 14px;
        padding: 2px 0 2px 8px;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

        .dropdown-panel a {
            padding: 9px 10px;
            font-size: 14px;
        }
}

@media (max-width: 680px) {
    .brand img {
        height: 34px;
    }

    .footer {
        padding: 20px 15px;
    }
}

/* ---------- 前台按鈕統一（對齊首頁 .button 樣式） ----------
   舊 class（btn-active / btnA / btnCart / btn-basic …）統一成首頁的膠囊按鈕。
   用 body 前綴提高權重，才能蓋過 fago.css 與各頁 <style> 內的舊定義。
   不動各頁原有的 padding / font-size / display（btn-block 維持滿版）。 */
body .btn-active,
body .btnA,
body .btnCart {
    border: 1px solid var(--green-dark) !important;
    border-radius: 999px;
    background: var(--green-dark);
    background-image: none;
    color: #fff !important;
    letter-spacing: .12em;
    font-family: inherit;
    transition: .2s;
}

    body .btn-active:hover,
    body .btnA:hover,
    body .btnCart:hover {
        background: #3f5549;
        border-color: #3f5549 !important;
        color: #fff !important;
    }

body .btn-basic,
body .btnB,
body .btnA.btnA-grey {
    border: 1px solid var(--green-dark) !important;
    border-radius: 999px;
    background: transparent;
    color: var(--green-dark) !important;
    letter-spacing: .12em;
    transition: .2s;
}

    body .btn-basic:hover,
    body .btnB:hover,
    body .btnA.btnA-grey:hover {
        background: var(--green-dark);
        border-color: var(--green-dark) !important;
        color: #fff !important;
    }

/* 不可點擊 */
body .btnA.is-disabled,
body .btnA.is-disabled:hover,
body .btnB.is-disabled {
    border-color: #d3d1c8 !important;
    background: #f1efe9;
    color: #a8a69b !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---------- 標題文字底色對齊頁面背景 ----------
   fago.css 的「相關文章／推薦商品／預約／聯絡」標題，文字底下墊一塊白底來蓋住中間的橫線，
   頁面背景改成米色後那塊白底會變成白色色塊，這裡統一換成與背景一致的米色。 */
body .articleDetial-related .related-tit span,
body .productDetial-related .related-tit span,
body .booking-tit span,
body .contact-comment .comment-tit span {
    background-color: var(--cream);
}
