/* ================= 根變數（若 main.css 已定義可略過） ================= */
:root {
    /* 讓本頁遵循全站縮放：桌面 90%（與 main.css 一致），行動會在 media query 覆寫為 100% */
    --site-scale: 0.9;
    /* 與 jk-nav.css 的 --jk-nav-h 對齊，確保各頁頂部間距一致 */
    --nav-height: var(--jk-nav-h, 100px);
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --border-radius: 12px;
    --primary-light: #f7f5f2;
    --accent-green: #6f8f72;
    --accent-warm: #cd853f;
    --text-primary: #2b2b2b;
    --text-secondary: #6b6b6b;
    --text-light: #c9c9c9;
    --border-light: #eee;
    --transition-fast: 0.25s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* 統一按鈕背景顏色變數 */
    --button-bg: var(--accent-green);
    /* 膠囊按鈕 chip 用色 */
    --chip-bg: #fff;
    --chip-text: var(--accent-green);
    --chip-border: rgba(111,143,114,.28);
    --chip-bg-hover: rgba(111,143,114,.12);
    /* 指示器 / 膠囊邊框粗細（可快速全站統一） */
    --indicator-border-w: 1px;
}

/* ================= Hero ================= */
.page-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: clamp(300px, 35vh, 500px);
    margin-top: var(--nav-height);
    padding: clamp(1rem, 3vw, 2rem) 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f0f0 100%);
}

.hero-content {
    padding: clamp(1.5rem, 4vw, 3rem);
    max-width: clamp(400px, 50vw, 500px);
    margin-left: auto;
}

.page-title {
    font-family: var(--font-display, Noto Serif TC, serif);
    font-size: clamp(1.5rem, 2.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    line-height: 1.2;
}

.page-subtitle {
    font-size: clamp(0.85rem, 1.3vw, 1.05rem);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.hero-image {
    position: relative;
    height: 100%;
    min-height: clamp(250px, 30vh, 400px);
    max-height: 500px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--border-radius);
    }

/* ================= 滑動式翻書外框 ================= */
.page-subtitle {
    font-size: clamp(0.85rem, 1.3vw, 1.05rem);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.hero-image {
    position: relative;
    height: 100%;
    min-height: clamp(250px, 30vh, 400px);
    max-height: 500px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--border-radius);
    }

/* ================= 滑動式翻書外框 ================= */
.menu-book-section {
    padding: var(--spacing-lg) 0;
    background: var(--primary-light);
    background-image: radial-gradient( circle at 25% 25%, rgba(139, 69, 19, 0.05) 0%, transparent 50% ), radial-gradient( circle at 75% 75%, rgba(210, 105, 30, 0.05) 0%, transparent 50% );
}

.menu-book-container {
    position: relative;
    overflow: visible;
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
}

.menu-book {
    position: relative;
    max-width: 650px;
    width: 75%;
    aspect-ratio: 3/4;
    margin: 0 auto;
    background: linear-gradient( 145deg, #8b4513 0%, #a0522d 25%, #d2691e 75%, #cd853f 100% );
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.3), 0 8px 16px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    cursor: grab;
    user-select: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .menu-book:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 25px 50px rgba(139, 69, 19, 0.4), 0 12px 24px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }

    .menu-book.dragging {
        cursor: grabbing;
        transform: scale(0.98);
    }

    .menu-book.transitioning {
        pointer-events: none;
    }

    /* 裝飾性書脊 */
    .menu-book::before {
        content: "";
        position: absolute;
        left: 2px;
        top: 15px;
        bottom: 15px;
        width: 10px;
        background: linear-gradient(to bottom, #6b3410 0%, #4a2308 50%, #3d1c05 100%), linear-gradient(to right, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
        border-radius: 5px 0 0 5px;
        box-shadow: inset 1px 0 2px rgba(255, 255, 255, 0.4), 2px 0 6px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

/* ================= 滑動式頁面樣式 ================= */
.menu-page {
    position: absolute;
    inset: 8px;
    background: linear-gradient(135deg, #fefefe 0%, #f8f8f8 100%), radial-gradient( circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, transparent 70% ), linear-gradient( 45deg, transparent 48%, rgba(139, 69, 19, 0.01) 49%, rgba(139, 69, 19, 0.01) 51%, transparent 52% );
    background-size: 100% 100%, 100% 100%, 15px 15px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.6s ease, box-shadow 0.3s ease, filter 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
}

    /* 頁面狀態 */
    .menu-page.active {
        z-index: 10;
        opacity: 1;
        filter: brightness(1) contrast(1);
    }

    .menu-page.prev {
        z-index: 5;
        opacity: 0.7;
        filter: brightness(0.8) contrast(0.9);
    }

    .menu-page.next {
        z-index: 5;
        opacity: 0.7;
        filter: brightness(0.9) contrast(0.95);
    }

/* 拖拽時的即時回饋 */
.menu-book.dragging .menu-page {
    transition: none;
}

/* 裝飾性邊緣效果 */
.menu-page::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient( to bottom, rgba(139, 69, 19, 0.08) 0%, rgba(139, 69, 19, 0.04) 30%, rgba(139, 69, 19, 0.02) 50%, rgba(139, 69, 19, 0.04) 70%, rgba(139, 69, 19, 0.08) 100% ), linear-gradient(to right, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    border-radius: 8px 0 0 8px;
}

/* 頁面切換動畫效果 */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0.5;
        filter: brightness(0.9);
    }

    to {
        transform: translateX(0%);
        opacity: 1;
        filter: brightness(1);
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0.5;
        filter: brightness(0.9);
    }

    to {
        transform: translateX(0%);
        opacity: 1;
        filter: brightness(1);
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0%);
        opacity: 1;
        filter: brightness(1);
    }

    to {
        transform: translateX(100%);
        opacity: 0.3;
        filter: brightness(0.7);
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0%);
        opacity: 1;
        filter: brightness(1);
    }

    to {
        transform: translateX(-100%);
        opacity: 0.3;
        filter: brightness(0.7);
    }
}

/* 微妙的視覺回饋動畫 */
@keyframes pagePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 6px 30px rgba(139, 69, 19, 0.15), 0 2px 6px rgba(0, 0, 0, 0.15);
    }
}

.menu-page.active {
    animation: pagePulse 3s ease-in-out infinite;
}

/* 內容與網格（沿用您原設計） */
.page-content {
    padding: clamp(0.8rem, 2vw, 1.5rem);
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.page-header {
    text-align: center;
    margin-bottom: clamp(0.8rem, 2vw, 1.5rem);
}

.category-title {
    font-family: var(--font-display, Noto Serif TC, serif);
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.category-decoration {
    width: clamp(60px, 12vw, 80px);
    height: 3px;
    background: var(--accent-green);
    margin: 0 auto;
    border-radius: 2px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2.5vw, 2rem);
}

.menu-item {
    position: relative;
    padding: clamp(0.8rem, 1.5vw, 1rem);
    background: var(--primary-light);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

    .menu-item:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(205, 133, 63, 0.2);
        border-color: var(--accent-green);
    }

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(0.3rem, 0.8vw, 0.5rem);
    gap: clamp(0.5rem, 1vw, 0.75rem);
}

.item-name {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.item-price {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 700;
    color: var(--accent-warm);
    white-space: nowrap;
}

.item-description {
    font-size: clamp(0.7rem, 1.3vw, 0.85rem);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: clamp(0.3rem, 0.8vw, 0.5rem);
}

.item-badge {
    display: inline-block;
    padding: clamp(2px, 0.3vw, 3px) clamp(6px, 1.2vw, 8px);
    border-radius: 12px;
    font-size: clamp(0.6rem, 1.1vw, 0.7rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .item-badge.招牌 {
        background: var(--accent-warm);
        color: #fff;
    }

    .item-badge.手工 {
        background: var(--accent-green);
        color: #fff;
    }

    .item-badge.夏季 {
        background: #87ceeb;
        color: #fff;
    }

    .item-badge.冰品,
    .item-badge.冰沙 {
        background: #b0e0e6;
        color: #2f4f4f;
    }

    .item-badge.調酒,
    .item-badge.特調 {
        background: #8b4513;
        color: #fff;
    }

    .item-badge.台茶 {
        background: #228b22;
        color: #fff;
    }

    .item-badge.花果 {
        background: #ff69b4;
        color: #fff;
    }

    .item-badge.限定 {
        background: #ff6347;
        color: #fff;
    }

    .item-badge.熱飲 {
        background: #d2691e;
        color: #fff;
    }

/* 版面強化（略） —— 使用您原本 two-column-layer 與 specials 等段落 */
.section-title {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 700;
    margin-bottom: clamp(8px, 1.5vw, 10px);
}

    .section-title.transparent-title {
        color: transparent;
        border-color: transparent;
        background: transparent !important;
    }

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 4vw, 30px);
    align-items: start;
}

.left-column .section-title {
    color: #8b4513;
    border-left: 4px solid #d2691e;
    padding-left: clamp(12px, 2.2vw, 15px);
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), transparent);
    padding: clamp(8px, 1.5vw, 10px) clamp(12px, 2.2vw, 15px);
    border-radius: 8px 0 0 8px;
}

.right-column .section-title {
    color: #d2691e;
    border-right: 4px solid #8b4513;
    padding-right: clamp(12px, 2.2vw, 15px);
    background: linear-gradient(135deg, transparent, rgba(210, 105, 30, 0.1));
    padding: clamp(8px, 1.5vw, 10px) clamp(12px, 2.2vw, 15px);
    border-radius: 0 8px 8px 0;
    text-align: right;
}

    .right-column .section-title.transparent-title {
        color: transparent;
        border-right: 4px solid transparent;
        background: transparent !important;
        /* 保持相同的 padding 和 margin 以維持對稱 */
    }

.layered-items .layered-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInLayer 0.6s ease-out forwards;
    margin-bottom: clamp(12px, 2.2vw, 15px);
}

/* 增強的控制條 */
.menu-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-light);
    border-radius: 16px 16px 16px 16px;
    position: relative;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.page-btn {
    background: var(--button-bg);
    color: #fff;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

    .page-btn:not(.disabled):hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
    }

    .page-btn:not(.disabled):active {
        transform: translateY(0) scale(0.98);
        transition: all 0.1s ease;
    }

    .page-btn.disabled,
    .page-btn:disabled {
        background: var(--text-light);
        cursor: not-allowed;
        transform: translateY(0) scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        opacity: 0.6;
    }

.page-indicators {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(139, 69, 19, 0.05);
    border-radius: 25px;
}

.page-indicator {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* 邊框與背景一致，使用可調變數控制粗細 */
    border: var(--indicator-border-w) solid rgba(255, 255, 255, 0.8);
    position: relative;
    transform: translateY(0) scale(1);
    /* 微內凹高光與輕陰影（依邊框寬度縮放） */
    box-shadow: inset 0 var(--indicator-border-w) calc(var(--indicator-border-w) * 2) rgba(255,255,255,0.55), inset 0 calc(-1 * var(--indicator-border-w)) calc(var(--indicator-border-w) * 3) rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.06);
}

    .page-indicator:hover {
        transform: translateY(-1px) scale(1.1);
        background: rgba(139, 69, 19, 0.1);
        border-color: rgba(139, 69, 19, 0.1); /* 滑過時邊框同步背景色 */
        color: var(--accent-green);
        box-shadow: inset 0 var(--indicator-border-w) calc(var(--indicator-border-w) * 2) rgba(255,255,255,0.5), inset 0 calc(-1 * var(--indicator-border-w)) calc(var(--indicator-border-w) * 3) rgba(0,0,0,0.08), 0 4px 12px rgba(139, 69, 19, 0.15);
    }

    .page-indicator.active {
        color: #fff;
        background: var(--button-bg);
        border-color: var(--button-bg); /* 活動狀態邊框與底色一致 */
        /* 當前瀏覽（active）移除內凹高光與外陰影，保持扁平實色 */
        box-shadow: none;
        transform: translateY(-2px) scale(1.15);
    }

    .page-indicator.completed {
        /* 已瀏覽（completed）使用更淺的實心底色，邊框同色以達成「填滿」視覺 */
        background: rgba(111,143,114,0.12);
        color: var(--accent-green);
        border-color: rgba(111,143,114,0.12); /* 與背景一致，視覺上無分離邊框 */
        /* 移除高光與陰影，保持扁平清爽 */
        box-shadow: none;
    }

/* 可選：為分類膠囊提供外框版本（若日後需要不填滿樣式） */
.category-btn.outlined {
    background: #fff;
    color: var(--accent-green);
    border: var(--indicator-border-w) solid var(--chip-border);
    box-shadow: inset 0 var(--indicator-border-w) calc(var(--indicator-border-w) * 2) rgba(255,255,255,0.6), inset 0 calc(-1 * var(--indicator-border-w)) calc(var(--indicator-border-w) * 3) rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.05);
}

    .category-btn.outlined:hover {
        background: var(--chip-bg-hover);
    }

/* 分類捷徑 */
.category-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}
/* 膠囊按鈕（未選擇） */
.category-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    border: none;
    background: var(--button-bg);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all var(--transition-fast);
    min-width: 80px;
    box-shadow: inset 0 var(--indicator-border-w) calc(var(--indicator-border-w) * 2) rgba(255,255,255,0.5), inset 0 calc(-1 * var(--indicator-border-w)) calc(var(--indicator-border-w) * 3) rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,.10);
    position: relative;
}
    /* 滑過 */
    .category-btn:hover {
        background: var(--button-bg);
        transform: translateY(-1px);
    }
    /* 點擊微縮 */
    .category-btn:active {
        transform: translateY(0) scale(0.98);
    }
    /* 鍵盤焦點可見 */
    .category-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px rgba(111,143,114,.35);
    }
    /* 已選擇狀態 */
    .category-btn.active,
    .category-btn[aria-selected="true"],
    .category-btn[aria-current="true"] {
        background: var(--button-bg);
        color: #fff;
        border-color: transparent;
        box-shadow: inset 0 var(--indicator-border-w) calc(var(--indicator-border-w) * 2) rgba(255,255,255,0.55), inset 0 calc(-1 * var(--indicator-border-w)) calc(var(--indicator-border-w) * 3) rgba(0,0,0,0.14), 0 6px 16px rgba(111,143,114,.25);
        transform: translateY(-1px);
    }

/* Footer info */
.menu-info {
    background: #fff;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.info-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: var(--spacing-sm);
}

.info-item p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.5;
    font-size: 1.1rem;
}

/* 小動畫 */
@keyframes slideInLayer {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= 封面木質調設計 ================= */
.wood-background-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, #d2b48c 0%, #deb887 15%, #cd853f 30%, #d2691e 45%, #a0522d 60%, #8b4513 75%, #654321 90%, #5d4037 100% ), repeating-linear-gradient( 90deg, transparent 0px, rgba(139, 69, 19, 0.1) 1px, rgba(139, 69, 19, 0.1) 2px, transparent 3px, transparent 20px ), repeating-linear-gradient( 0deg, transparent 0px, rgba(101, 67, 33, 0.05) 1px, rgba(101, 67, 33, 0.05) 2px, transparent 3px, transparent 40px );
    background-size: 100% 100%, 20px 20px, 40px 40px;
    border-radius: 8px;
    opacity: 0.9;
}

.wood-texture-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient( ellipse at top left, rgba(210, 180, 140, 0.3) 0%, transparent 50% ), radial-gradient( ellipse at top right, rgba(160, 82, 45, 0.2) 0%, transparent 50% ), radial-gradient( ellipse at bottom left, rgba(139, 69, 19, 0.2) 0%, transparent 50% ), radial-gradient( ellipse at bottom right, rgba(101, 67, 33, 0.3) 0%, transparent 50% );
    border-radius: 8px;
    mix-blend-mode: multiply;
}

.cover-content {
    position: relative;
    z-index: 2;
}

.cover-design {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wood-border {
    position: absolute;
    inset: 20px;
    border: 3px solid rgba(139, 69, 19, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cover-text-container {
    position: relative;
    z-index: 3;
}

.cover-title {
    font-family: var(--font-display, "Noto Serif TC", serif);
    font-size: clamp(2.3rem, 3vw, 4rem);
    color: #2f1b14;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.3), 0 0 10px rgba(255, 255, 255, 0.8), 1px 1px 0 rgba(255, 255, 255, 0.5);
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
}

.cover-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.7rem);
    color: #5d4037;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 1px;
}

.wood-decoration-line {
    width: clamp(80px, 15vw, 120px);
    height: 6px;
    background: linear-gradient(90deg, #8b4513, #d2691e, #cd853f, #8b4513);
    margin: 30px auto;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cover-description {
    color: #6d4c41;
    margin: 30px 0;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cover-features {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-badge {
    background: linear-gradient( 135deg, rgba(139, 69, 19, 0.2), rgba(160, 82, 45, 0.15) );
    padding: 12px 18px;
    border-radius: 25px;
    border: 2px solid rgba(139, 69, 19, 0.3);
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

    .feature-badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .feature-badge span {
        color: #3e2723;
        font-weight: 700;
        font-size: clamp(0.45rem, 1vw, 0.55rem);
        text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3);
    }

/* ================= 頁面 Logo 樣式 ================= */
.page-logo {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    max-width: clamp(60px, 10vw, 100px);
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(139, 69, 19, 0.4)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    /* 移除 border-radius，因為是去背 PNG */
}

/* 保留文字 logo 樣式作為備用 */
.logo-text {
    display: block;
    font-family: var(--font-display, "Noto Serif TC", serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #2f1b14;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.3), 0 0 8px rgba(255, 255, 255, 0.6), 1px 1px 0 rgba(255, 255, 255, 0.4);
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 5px;
}

.logo-subtitle {
    display: block;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
    color: #5d4037;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    font-style: italic;
    opacity: 0.9;
}

/* Logo 裝飾背景 */
.page-logo::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(140px, 25vw, 220px);
    height: clamp(140px, 25vw, 220px);
    background: radial-gradient( circle, rgba(139, 69, 19, 0.08) 0%, rgba(210, 105, 30, 0.06) 30%, rgba(205, 133, 63, 0.04) 60%, transparent 80% );
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}

/* Logo 動畫效果 */
.page-logo {
    position: relative;
    padding: 15px 0;
    transition: all 0.3s ease;
}

    .page-logo:hover {
        transform: translateY(-3px);
    }

        .page-logo:hover .logo-image {
            transform: scale(1.1);
            filter: drop-shadow(4px 4px 8px rgba(139, 69, 19, 0.5)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.7)) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2)) brightness(1.1) contrast(1.05) saturate(1.1);
        }

        .page-logo:hover .logo-text {
            transform: scale(1.05);
            transition: transform 0.3s ease;
            color: #8b4513;
        }

        .page-logo:hover .logo-subtitle {
            opacity: 1;
            transition: opacity 0.3s ease;
            color: #d2691e;
        }

        .page-logo:hover::before {
            transform: translate(-50%, -50%) scale(1.1);
            opacity: 0.8;
            transition: all 0.3s ease;
        }

/* 行動裝置最佳化 */
@media (max-width: 768px) {
    :root {
        --site-scale: 1; /* 手機版維持 100% */
    }

    .page-hero {
        grid-template-columns: 1fr;
        min-height: clamp(400px, 50vh, 600px);
        text-align: center;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        box-sizing: border-box;
    }

    .hero-content {
        padding: clamp(1rem, 3vw, 2rem);
        margin: 0;
        order: 2;
        max-width: 100vw;
        width: 100vw;
        box-sizing: border-box;
    }

    .hero-image {
        order: 1;
        min-height: clamp(200px, 25vh, 300px);
        max-height: 350px;
        aspect-ratio: 16/9;
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .menu-book-section {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        box-sizing: border-box;
    }

    .container {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        box-sizing: border-box;
    }

    .menu-book {
        max-width: 95vw;
        width: 95vw;
        aspect-ratio: 2.5/3.5;
        padding: 6px;
    }

    .menu-page {
        inset: 6px;
        transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    }

    .menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: clamp(0.5rem, 2vw, var(--spacing-md));
    }

    .two-column-layout {
        grid-template-columns: 1fr 1fr;
        gap: clamp(0.8rem, 2.5vw, var(--spacing-lg));
    }

    .menu-controls {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
        position: relative;
    }

    .page-btn {
        position: absolute;
        top: calc(var(--spacing-md) - 10px);
        z-index: 110;
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: auto;
        border-radius: 20px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--button-bg);
        box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
        border: none;
        color: #fff;
        font-weight: 500;
        transition: all 0.3s ease;
        letter-spacing: 0.5px;
    }

        .page-btn:not(.disabled):active {
            transform: translateY(1px);
            box-shadow: 0 1px 4px rgba(139, 69, 19, 0.25);
        }

        .page-btn.disabled {
            background: var(--text-light);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
            opacity: 0.6;
        }

    #prevPage {
        left: 50%;
        transform: translateX(calc(-100% - 10px));
    }

    #nextPage {
        right: 50%;
        transform: translateX(calc(100% + 10px));
    }

    .page-indicators {
        justify-content: center;
        max-width: 100%;
        overflow-x: auto;
        padding: var(--spacing-xs) var(--spacing-sm);
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 44px auto 0;
    }

        .page-indicators::-webkit-scrollbar {
            display: none;
        }

    .page-indicator {
        padding: 5px 10px;
        font-size: 0.375rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .category-controls {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        justify-content: center;
    }

    .category-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.4rem;
        min-width: 60px;
    }
}

/* 超小螢幕優化 */
@media (max-width: 480px) {
    .menu-book {
        aspect-ratio: 2/3;
        max-width: 98%;
        width: 98%;
    }

    .page-content {
        padding: var(--spacing-md);
    }

    .category-title {
        font-size: 1.7rem;
    }

    .menu-item {
        padding: var(--spacing-sm);
    }

    .item-name {
        font-size: 0.9rem;
    }

    .item-price {
        font-size: 0.9rem;
    }

    .page-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.78rem;
    }

    .page-indicator {
        padding: 4px 8px;
        font-size: 0.62rem;
    }

    /* 封面行動優化 */
    .cover-design {
        padding: 40px 15px;
    }

    .wood-border {
        inset: 15px;
    }

    .cover-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .feature-badge {
        padding: 10px 15px;
        width: fit-content;
    }

    /* 頁面 Logo 行動優化 */
    .logo-text {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .logo-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

/* 觸控優化 */
@media (pointer: coarse) {
    .menu-book {
        cursor: grab;
    }

        .menu-book.dragging {
            cursor: grabbing;
        }

    .page-btn,
    .page-indicator,
    .category-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
