:root {
    --bg: #fff;
    --bg-g: #f1f1f1;
    --bg-dark: #353535;
    --brand-color: #5d514a; /* 核心品牌色 */
    --soft-white: #c1c1c1;
    --text-dark: #353535;
    --text-light: #8c7e75; /* 暖灰棕 */
    --text-white: #fff;
    --line-color: #e0d9d5; /* 線條色 */
    --text-main: #2d2d2d;

    --nav-w: 85%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    margin: 0;
    font-family: 'Noto Serif TC', serif;
    background-color: var(--soft-white);
    color: var(--text-dark);
}

/* ---------------------------------------------------------
scroll
--------------------------------------------------------- */

.scroll {overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;}
.scroll::-webkit-scrollbar {width: 0px;}
.scroll::-webkit-scrollbar-thumb {background-color: rgba(0,0,0,0); outline: none;}

/* ---------------------------------------------------------
effect
--------------------------------------------------------- */

.trans {
	-moz-transition: all 0.68s;
	-ms-transition:  all 0.68s;
	-webkit-transition: all 0.68s;
    transition: all 0.68s;

    -moz-transition-timing-function: cubic-bezier(1,0,0.2,1);
	-ms-transition-timing-function: cubic-bezier(1,0,0.2,1);
	-webkit-transition-timing-function: cubic-bezier(1,0,0.2,1);
	transition-timing-function: cubic-bezier(1,0,0.2,1);
}

a {
    text-decoration: none; 
}
ul, li { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}


/* ---------------------------------------------------------
flex
--------------------------------------------------------- */

.flex_column {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.flex_row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}
.flex_top {
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* 導覽列：霧面玻璃質感 */
.glass-nav {
	position: fixed;
	top: 0;
	width: 100%;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 3%;
	z-index: 1000;
	/* mix-blend-mode: exclusion; */
	/* 讓文字隨背景變色，極具現代感 */
}
.logo {
	font-weight: 700;
	letter-spacing: 0.3rem;
	font-size: 1.2rem;
    margin-top: 60px;
}
.logo a {
    margin-top: 10px;
	color: var(--text-dark);
    /* display: none; */
}

/* nav */
.nav-links {
    width: auto;
    height: auto;
    margin-top: 20px;
}
.nav-list {
    float: left;
}
.nav-item {
    float: left;
    padding: 10px 3rem;
}

.icon-group {
    float: left;
    padding-left: 3rem;
}

/* .icon-group ul {
    width: 100%;
} */
.icon-group li {
    float: left;
    width: 36px;
    height: auto;
    margin: 0 5px;
    cursor: pointer;
}

.active {
    color: orangered;
}
.no {
    color: #fff;
}


.url {
    float: left;
    width: 100%;
    margin-bottom: 20px;
    padding-left: 10px;
}
.url a {
    font-size: 12px;
    color: #586051;
}
.url span {
    font-size: 12px;
    color: #586051;
    text-align: center;
    padding-left: 5px;
    padding-right: 5px;
}
.url p {
    font-size: 12px;
    color: #586051;
}

@media (max-width: 1280px) {
    .logo {
        letter-spacing: 0.25rem;
    }
    /* .logo a {
        display: none;
    } */
	.nav-list {
        display: none;
    }
    .icon-group {
        padding-left: 0px;
    }
}

/* ------------------------------------ */
/* alogo */
.alogo {
    float: left;
    left: 0;
    width: 100%;
    height: auto;
    /* font-weight: 200; */
    /* font-size: 1.2rem; */
    /* letter-spacing: 0.4rem; */
    /* color: #fff; */
    text-decoration: none;
    margin-bottom: 80px;
    display: block;


    font-size: 1.25rem;
    font-weight: 800; /* 加粗強調母品牌 */
    letter-spacing: 0.05em;
    color: #ffffff;
}
/* overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    z-index: 8888;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger menu */
.menu-trigger {
    position: fixed;
    top: 2.5rem;
    right: 2rem;
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding-top: 5px;
    display: none;

    z-index: 99999;
}
.hamburger-line {
    width: 24px;
    height: 3px;
    margin-bottom: 6px;
    background: var(--bg);
}


/* sidebar nav 側邊導航主體 (隱藏狀態) */
.sidebar {
    width: 480px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid #222;
    background: rgba(0, 0, 0, 0.8);
    padding: 80px 50px;
    /* font-family: 'Inter', -apple-system, sans-serif; */
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar.active {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-s);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 99999;
}


/* ---------------------------------------------------------
cart
--------------------------------------------------------- */

.cart {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 480px;
    height: 100vh;
    padding-top: 80px;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 60pxpx;
    background-color: rgba(138, 238, 255, .8);
}
.cart ul {
    width: 100%;
}
.cart ul li { 
    width: 100%;
    margin-bottom: 1px;
}

.cart ul li h2 { 
    width: 100%;
    font-size: 32px;

}

.cart ul li p { 
    width: 100%;
    font-size: 18px;
}
.cart-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-s);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 99999;
}


.cin {
    right: 0;
}
.cout {
    right: -600px;
}

.cin {
    right: 0;
}
.cout {
    right: -600px;
}

/* --- 選單群組 --- */
.nav-group {
    list-style: none;
    padding: 0;
}

.nav-item {
    margin-bottom: 1.8rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 800;
    /* color: var(--text-s); */
    text-decoration: none;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    /* opacity: 0.6; */
}

.nav-link:hover, 
.nav-link.active {
    /* color: var(--text-w); */
    opacity: 1;
    transform: translateX(5px);
}
.nav-link.no {
    color: #fff;
}
.nav-link.no:hover {
    color: #00feb6;
}

.nav-link::before {
    content: attr(data-no); /* 假設 HTML 用 data-no="01" */
    font-size: 0.8rem;
    margin-right: 15px;
    /* color: var(--text-muted); */
    font-family: monospace;
}

@media(max-width:1280px){
    .menu-trigger {
        display: block;
    }
}
@media(max-width: 480px){
    .menu-trigger {
        top: 1.5rem;
    }
}


/* -------------------------------------- */
/* 頁尾 (Footer) */

footer {
    background-color: var(--bg-dark);
    color: var(--soft-white);
    padding: 100px 5% 40px; 
    font-size: 0.85rem;
}
.footer-grid {
    display: grid; grid-template-columns: 0.2fr 2fr 0.8fr 0.8fr; gap: 60px;
    max-width: 1400px; margin: auto;
}
.footer-logo { color: #fff; font-family: 'Montserrat'; letter-spacing: 0.4rem; margin-bottom: 20px; }
.footer-col h4 { color: #fff; margin-bottom: 25px; letter-spacing: 0.2rem; font-size: 0.75rem; }
.footer-col p {
    font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    line-height: 1.8; 
    letter-spacing: 0.05rem; 
    color: var(--soft-white); 
    margin-bottom: 1.5rem;
    /* 針對中文字優化，避免行末出現參差不齊 */
    text-align: justify;
    text-justify: inter-character;
}
.footer-col ul { list-style: none; }
.footer-col ul .nav-item {
    float: none;
    padding: 0 0;
}

.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 16px; color: inherit; text-decoration: none; transition: 0.3s; letter-spacing: 0.3rem;}
.footer-col a:hover { color: #fff; }

.footer-bottom {
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}


.cart {
    z-index: 9999;
}
.sidebar {
    z-index: 9999;
}
.icon-group {
    z-index: 9999;
}

/* --------------------------------------- */
.member-menu {
    position: fixed;
    width: 150px;
    padding-top: 8px;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 7px;
    background-color: #999;
    top: 11vmin;
    border-radius: 4px;
    z-index: 999999;
    box-shadow: 5px 5px 24px rgba(0, 0, 0, .5);
}
.member-menu a {
    float: left;
    width: 100%;
    height: 36px;
    font-size: 18px;
    line-height: 36px;
    border-bottom: 1px solid #999;
    margin-bottom: 1px;
    color: #48323d;
    background-color: #fff;
    text-align: center;
    cursor: pointer;
}
.member-menu a:hover {
    color: #fff;
    background-color: orangered;
}

.min {
    right: 15vmin;
}
.mout {
    right: -150px;
}


@media (max-width: 1280px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .glass-nav ul {
        display: none;
    }

    .sidebar {
        width: 320px;
    }
}


@media (max-width: 576px) {


    footer {
        padding: 60px 10% 40px; /* 增加左右留白，視覺更集中 */
        text-align: center;    /* 手機版建議全面置中，顯得更端莊 */
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 50px; /* 增加區塊間的間距，營造呼吸感 */
    }

    .footer-logo {
        font-size: 1.25rem;
        margin-bottom: 15px;
        letter-spacing: 0.3rem; /* 稍微收斂一點 */
    }

    .footer-col p {
        font-size: 0.85rem;
        line-height: 1.8;
        margin: 0 auto;        /* 配合 text-align: center 置中 */
        text-align: center;
    }

    /* 針對「探索」選單的優化 */
    .footer-col h4 {
        margin-bottom: 20px;
        font-size: 0.8rem;
        opacity: 0.8;
    }

    .footer-col ul li {
        margin-bottom: 15px;
    }

    .footer-col ul li a {
        font-size: 1rem;       /* 增加點擊區域大小，對手指友善 */
        letter-spacing: 0.2rem; /* 減少字距，讓單字更具凝聚力 */
        display: block;
    }

    /* 聯繫資訊 */
    .email-link {
        font-size: 0.95rem !important; /* 避免過長溢出螢幕 */
        word-break: break-all;        /* 萬一 Email 太長時自動斷行 */
    }

    .footer-bottom {
        margin-top: 50px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 25px;
    }

    .copy {
        font-size: 12px;
    }
}