/* --- 基礎設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    color: #333;
    line-height: 1.6;
}

/* --- Header 導覽列 --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    /* 這是控制 Logo 大小的關鍵 */
    height: 35px; /* 電腦版建議高度 */
    width: auto;  /* 寬度自動依比例縮放 */
    display: block;
    object-fit: contain;
}

/* --- 電腦版巨型選單 (Mega Menu) --- */
@media (min-width: 769px) {
    /* 讓巨型選單相對於整個導覽列定位，以達到滿版感 */
    .mega-menu-parent {
        position: static !important; 
    }

    .mega-menu {
        position: absolute;
        top: 70px; /* Header 的高度 */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid #eee;
        
        /* 隱藏邏輯 */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: -1;
    }

    /* 滑過顯示 */
    .mega-menu-parent:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mega-menu-container {
        display: flex;
        width: 100%;       /* 佔滿整個螢幕寬度 */
        height: 420px;     /* 固定高度 */
        margin: 0;         /* 移除置中，確保靠左 */
        padding: 0;        /* 移除內距 */
        background-color: #fff; /* 確保背景為純白 */
    }

    /* 3. 左側圖片區塊：確保寬度固定且圖片填滿 */
    .mega-image {
        flex: 0 0 45%;     /* 調整圖片佔比，可依需求縮放 */
        height: 100%;
        overflow: hidden; /* 確保圖片不溢出 */
    }

    .mega-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;    /* 移除圖片下方微小間隙 */
    }

    /* 右側文字內容區 */
    .mega-content {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        max-height: 450px;
        overflow-y: auto;
        padding: 40px 40px 60px 80px;
        background-color: #fff;
        gap: 30px;
        align-content: start;
    }

    .mega-column h4 {
        font-size: 13px;
        color: #50422D;
        margin-bottom: 20px;
        font-weight: 500;
        letter-spacing: 1px;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 10px;
    }

    .mega-column ul {
        list-style: none;
        padding: 0;
    }

    .mega-column ul li {
        margin-bottom: 12px;
    }

    .mega-column ul li a {
        font-size: 16px;
        color: #50422D;
        text-decoration: none;
        transition: color 0.3s;
    }

    .mega-column ul li a:hover {
        color: #CDBEA2;
    }
}

/* --- 手機版相容性修正 --- */
@media (max-width: 768px) {
    /* 隱藏巨型選單的圖片與橫向排版，維持原本的列表形式 */
    .mega-image {
        display: none;
    }
    
    .mega-menu {
        /* 覆寫電腦版定位，讓它在手機版變回正常的展開列表 */
        position: relative;
        top: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    /* 當手機版點擊 active 時展開 */
    .mega-menu-parent.active .mega-menu {
        max-height: 1000px;
    }

    .mega-content {
        padding: 10px 0;
    }

    .mega-column h4 {
        display: none; /* 手機版通常不顯示次級標題以精簡空間 */
    }

    .mega-column ul li a {
        font-size: 16px;
        padding: 12px 0;
        display: block;
        color: rgba(80, 66, 45, 0.7);
        text-align: center;
    }
}
/* --- 導覽列 Dropdown (電腦版) --- */
.nav-links li {
    position: relative; /* 讓次選單以此為定位基準 */
}

.dropdown-icon {
    font-size: 12px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px); /* 預設往下微調，準備做浮現動畫 */
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(80, 66, 45, 0.08); /* 輕柔的大地色系陰影 */
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    
    /* 預設隱藏 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 滑過時顯示選單與旋轉箭頭 */
.nav-links li.dropdown-parent:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-links li.dropdown-parent:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown 內的連結樣式 */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 24px;
    font-size: 15px;
    color: #50422D;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #F9F8F6; /* 極淡的溫潤背景色 */
    color: #CDBEA2;
}

/* 導覽連結 (電腦版) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center; /* 確保主選單項目完美垂直置中 */
}

/* 基礎設定：應用於所有選單連結 */
.nav-links a {
    text-decoration: none !important; /* 強制移除預設底線 */
    color: #50422D;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

/* 確保下拉選單 (光學眼鏡等) 滑過時維持變色，且絕對沒有底線 */
.dropdown-menu a:hover {
    color: #CDBEA2 !important; 
}

/* --- 電腦版主選單設定 --- */
@media (min-width: 769px) {
    /* 第一層主選單的 a 標籤設定 */
    .nav-links > li > a {
        display: inline-block;
        position: relative;
        padding-bottom: 6px; /* 在區塊內預留底線空間，不干擾外層排版高度 */
    }

    /* 主選單滑過時，文字維持原色 */
    .nav-links > li:hover > a {
        color: #50422D !important;
    }

    /* 繪製 1px 極細黑色底線 */
    .nav-links > li > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 1px;
        background-color: #000;
        transition: width 0.3s ease-in-out;
    }

    /* 排除手機版按鈕 (.mobile-cta) 不要產生底線 */
    .nav-links > li.mobile-cta > a::after {
        display: none !important;
    }

    /* 滑過主選單時，底線展開至 100% */
    .nav-links > li:not(.mobile-cta):hover > a::after {
        width: 100%;
    }

    /* 終極保險：徹底清除下拉選單內任何可能的底線與虛影 */
    .dropdown-menu a::after {
        content: none !important;
        display: none !important;
        width: 0 !important;
    }
}

/* 當選單開啟時，禁止 body 捲動 */
body.no-scroll {
    overflow: hidden;
    height: 100%;
}

/* 按鈕 */
.btn-primary {
    background-color: #50422D;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease; /* 新增這行：讓變色效果更順暢 */
}

.btn-primary:hover {
    background-color: #765F4A; 
}

.mobile-cta {
    display: none; /* 電腦版隱藏選單內的按鈕 */
}

/* 漢堡按鈕 (電腦版隱藏) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #333;
    transition: 0.3s;
}

/* --- 手機版 RWD (螢幕小於 768px) --- */
@media screen and (max-width: 768px) {
    .nav-cta {
        display: none; /* 隱藏原本右側按鈕 */
    }
    .logo img {
        height: 28px; /* 手機版略縮小，更精緻 */
    }
    .menu-toggle {
        display: flex; /* 顯示漢堡按鈕 */
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%; /* 預設藏在左邊 */
        width: 100%;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        padding-bottom: 80px;
        gap: 35px;
        transition: 0.4s ease-in-out;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        
    }

    .nav-links.active {
        left: 0; /* 點擊後展開 */
    }

    .nav-links a {
        font-size: 20px;
    }

    .mobile-cta {
        display: block;
        margin-top: 20px;
    }

    /* 漢堡變叉叉動畫 */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px); /* 讓它往旁邊滑出，確保不會留在原地變成點 */
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 手機版 Dropdown 修正覆寫 */
    /* 這裡加入 :hover 是為了抵銷手機點擊時產生的殘留 hover 狀態 */
    .dropdown-menu,
    .nav-links li.dropdown-parent:hover .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        transform: none !important; /* 加上 !important，絕對禁止它往旁邊亂跑 */
        box-shadow: none;
        background-color: transparent;
        min-width: 100%;
        padding: 0;
        
        /* 預設收合 */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s ease, opacity 0.4s ease;
        
        /* 讓次選單的文字也跟著主選單置中 */
        text-align: center; 
    }

    .dropdown-menu a {
        font-size: 16px;
        padding: 12px 0;
        color: rgba(80, 66, 45, 0.7); /* 稍微淡一點，區分層級 */
    }

    /* 點擊展開後的狀態 */
    .nav-links li.dropdown-parent.active .dropdown-menu {
        max-height: 300px; /* 給予足夠的展開空間 */
        opacity: 1;
        visibility: visible;
        margin-top: 15px;  /* 展開時，與上方的字保持一點呼吸空間 */
    }

    /* 確保箭頭在手機版只有在 active (點擊展開) 時才反轉 */
    .dropdown-parent.active .dropdown-icon {
        transform: rotate(180deg) !important;
    }
    .nav-links li.dropdown-parent:hover .dropdown-icon {
        transform: none; /* 抵銷電腦版 hover 箭頭反轉 */
    }
    .nav-links li.dropdown-parent.active:hover .dropdown-icon {
        transform: rotate(180deg); /* 確保展開狀態下點擊不會轉回來 */
    }

    /* --- 修正：手機版主選單與箭頭的對齊 --- */
    .nav-links li.dropdown-parent > a {
        display: flex;
        align-items: center;
        justify-content: center; /* 確保在手機版置中 */
        gap: 8px; /* 文字與箭頭的間距 */
    }

    /* 確保箭頭大小在手機版適中，並有順暢的動畫 */
    .dropdown-parent .dropdown-icon {
        font-size: 14px; /* 箭頭稍微小一點比較精緻 */
        transition: transform 0.3s ease;
    }

    /* 確保展開時箭頭確實反轉 (提高權重) */
    .nav-links li.dropdown-parent.active > a .dropdown-icon {
        transform: rotate(180deg) !important;
    }
}
/* Hero Banner 容器 */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh; /* 滿版高度，如需縮小可改為 80vh */
    display: flex;
    align-items: flex-end;    /* 垂直對齊：底部 */
    justify-content: flex-start; /* 水平對齊：左側 */
    overflow: hidden;
    color: #fff; /* 文字顏色通常為白色 */
    padding-left: 5%;        /* 距離左邊一段距離，更有設計感 */
    padding-bottom: 40px;     /* 距離底部一段距離 */
}

/* 背景圖處理 (仿 Gogoro 的沉浸式感) */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 確保在文字下方 */
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 關鍵：圖片會填滿容器且不變形 */
    object-position: center;
}

/* 為了讓文字清楚，可加上暗色遮罩 */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* 10% 透明黑色遮罩 */
}

/* 文字內容 */
.hero-content {
    text-align: left;
    max-width: 800px;
    padding: 0x;
    
}

.hero-title {
    font-size: 2.5rem; /* 大標題 */
    font-weight: 700;
    margin-top: -10px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.0rem;
    margin-bottom: 5px;
    font-weight: 400;
    letter-spacing: 2px;
}

/* 按鈕設計 (仿 Gogoro 圓角簡約風) */
.hero-btns .btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px; /* 圓角按鈕 */
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    margin: 0;
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #333;
}

/* 手機版適應 (RWD) */
@media (max-width: 768px) {
    .hero-banner {
        padding-left: 20px;    /* 縮小左側間距，適合手機螢幕 */
        padding-bottom: 40px;  /* 縮小底部間距 */
        align-items: flex-end; /* 確保垂直靠底 */
        justify-content: flex-start; /* 確保水平靠左 */
        height: 100svh;
    }

    .hero-content {
        max-width: 90%;        /* 讓內容在手機上稍微寬一點點 */
    }

    .hero-title {
        font-size: 2.0rem;     /* 縮小標題字體 (原為 2.5rem) */
        margin-bottom: 3px;
    }

    .hero-subtitle {
        font-size: 0.9rem;     /* 縮小副標題字體 (原為 1.0rem) */
        margin-bottom: 3px;
    }

    .hero-btns .btn {
        display: inline-block; /* 確保按鈕是併排或隨文字流動 */
        padding: 8px 25px;     /* 縮小按鈕 */
        font-size: 0.85rem;    
        margin-right: 10px;    /* 關鍵：增加按鈕右邊的間距 */
        margin-top: 10px;      /* 關鍵：若按鈕被迫換行時，上方不會黏在一起 */
    }
}
/* 內容區填充 */
.content {
    padding-top: 150px;
    text-align: center;
}

.owndays-grid-section {
    padding: 40px 0;
    background-color: #fff;
}

.owndays-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.owndays-container {
    display: flex;
    gap: 15px;
    padding: 0 20px; /* 保留原本的內距 */
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

/* --- 新增：卡片區塊頂部的排版 --- */
.owndays-header {
    display: flex;
    justify-content: flex-end; /* 讓內容（按鈕）靠右對齊 */
    padding: 0 20px;
    margin-bottom: 15px;       /* 與下方的卡片保持一點距離 */
}

.owndays-controls {
    display: flex;
    gap: 12px; /* 兩個圈圈箭頭並排時的距離 */
}

/* --- 新增：電腦版圓圈箭頭按鈕樣式 --- */
.scroll-btn {
    /* 移除原本的 position, top, left, right 等絕對定位語法 */
    width: 42px;  /* 放在右上方可以稍微縮小一點點，更精緻 */
    height: 42px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0; /* 改為極淡的灰色邊框 */
    border-radius: 50%;
    color: #50422D; 
    font-size: 14px; /* 箭頭稍微縮小 */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 滑過時變成樂活褐底白字 */
.scroll-btn:hover {
    background-color: #50422D;
    color: #ffffff;
    border-color: #50422D;
    
}

/* 將按鈕往內縮一點，讓它有一半疊在圖片上的精緻感 */
.prev-btn {
    left: 10px; 
}

.next-btn {
    right: 10px; 
}

/* --- 手機版隱藏按鈕 --- */
@media (max-width: 768px) {
    .scroll-btn {
        display: none !important; /* 手機版只需靠手動滑動，不需要箭頭 */
    }
}

/* 隱藏捲軸 */
.owndays-container::-webkit-scrollbar {
    display: none;
}

.owndays-item {
    position: relative;
    flex: 0 0 calc(50% - 7.5px);
    min-width: 0;
    aspect-ratio: 16 / 9; /* 根據 OWNDAYS 比例調整 */
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none;
    border-radius: 8px; /* 增加一點點日系溫潤感 */
}

.owndays-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 文字遮罩層 */
.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    background: rgba(0, 0, 0, 0.05); /* 輕微暗化讓文字更清楚 */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 文字靠下 */
    z-index: 2;
}

.item-overlay .tag {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: bold;
}

.item-overlay h2 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 800;
}

.item-overlay p {
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-more {
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #fff;
    padding: 8px 20px;
    width: fit-content;
    transition: 0.3s;
}

/* 滑過效果 */
.owndays-item:hover img {
    transform: scale(1.05);
}

.owndays-item:hover .btn-more {
    background: #fff;
    color: #000;
}

/* --- 手機版 RWD --- */
@media (max-width: 768px) {
    .owndays-item {
        flex: 0 0 85%; /* 手機上一張圖佔 90%，旁邊露出下一張圖的邊緣 */
        aspect-ratio: 4 / 3; /* 手機版通常比例會縮一點 */
        scroll-snap-align: center; /* 關鍵：滑動停止時，卡片會精準對齊我們在容器設定的 padding 位置 */
    }
    .owndays-item .item-overlay {
        padding: 20px;
        justify-content: flex-end; 
    }
    
    .owndays-container {
        padding-right: 30px; /* 增加右側留白感 */
        padding-bottom: 20px;
    }

    .item-overlay h2 {
        font-size: 18px;
        margin-bottom: 2px;
    }
    .item-overlay p {
        /* 縮小描述文字下方的 margin，讓按鈕更靠近底部 */
        margin-bottom: 10px; 
    }
    .owndays-grid-section {
        padding-top: 20px !important;
        padding-bottom: 20px; /* 原本是 40px，減去內層的 20px，讓上下視覺總和都是 40px */
    }
}

/* 針對母親節與商店街卡片修改文字為樂活標準色 */
.mother-day .item-overlay,
.shopping-street-style .item-overlay {
    color: #50422D; 
}

/* 將按鈕的邊框與文字也改為深褐色 */
.mother-day .btn-more,
.shopping-street-style .btn-more {
    border: 1px solid #50422D;
    color: #50422D;
}

/* 滑鼠移過去時，按鈕變成深褐底白字 */
.mother-day:hover .btn-more,
.shopping-street-style:hover .btn-more {
    background: #50422D;
    color: #ffffff;
}

/* --- 底部滿版橫幅 (Secondary Banner) --- */
.secondary-banner {
    position: relative;
    width: 100%;
    height: 75vh; /* 高度為螢幕的%，可依需求修改數字 */
    min-height: 400px; /* 確保螢幕太小時不會縮得太扁 */
    display: flex;
    align-items: center;     /* 垂直置中 */
    justify-content: center; /* 水平置中 */
    overflow: hidden;
    color: #fff;
}

/* 讓裡面的內容置中排版 */
.secondary-banner .hero-content {
    text-align: center; 
    z-index: 2; /* 確保文字在背景遮罩之上 */
    padding: 0 20px;
}

/* 讓按鈕在置中排版時更美觀 */
.secondary-banner .hero-btns .btn {
    margin: 15px 5px 0 5px;
}

/* 手機版 RWD 高度微調 */
@media (max-width: 768px) {
    .secondary-banner {
        height: 50vh; 
        min-height: 350px;
    }
}

/* --- 門市據點區塊 (左右分割版型) --- */
.store-location-section {
    width: 100%;
    background-color: #fff;
    padding: 0 0 80px 0;
}

.store-location-container {
    width: 100%;       /* 改為 100% 寬度 */
    max-width: none;   /* 移除 1200px 的限制 */
    margin: 0 auto;
    display: flex;
    align-items: stretch; /* 讓左右區塊等高 */
    background-color: #F9F8F6; /* 溫潤的大地色系背景 */
    border-radius: 0px;
    overflow: hidden; /* 確保圖片圓角不會突出 */
    box-shadow: none; /* 滿版設計通常不使用外陰影 */
}

.store-text-block {
    flex: 4;
    padding: 40px 10%; /* 使用百分比 padding，確保在大螢幕上文字不會太靠邊 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.store-title {
    font-size: 32px;
    color: #50422D; /* 樂活標準色 */
    margin-bottom: 20px;
    font-weight: 700;
}

.store-desc {
    font-size: 16px;
    color: #50422D;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.8; /* 稍微降低透明度，讓文字看起來更細緻不突兀 */
}

.btn-store {
    background-color: #50422D;
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-store:hover {
    background-color: #765F4A; /* 滑入時顏色稍微變淺 */
}

.store-image-block {
    flex: 6;
    position: relative;
    min-height: 450px; /* 確保圖片區塊在電腦版有足夠高度 */
}

.store-image-block img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 讓圖片自動填滿且不變形 */
}

/* --- 手機版 RWD --- */
@media (max-width: 768px) {
    .store-location-section {
        padding: 0 0 40px 0;
    }

    .store-location-container {
        flex-direction: column-reverse; /* 關鍵：讓圖片在上，文字區塊在下 */
        border-radius: 0px;
        box-shadow: none;
    }

    .store-text-block {
        padding-top: 0px; 
        padding-bottom: 40px;
        padding-left: 25px;
        padding-right: 25px;
        align-items: center; /* 手機版文字與按鈕置中 */
        text-align: center;
    }

    .store-title {
        font-size: 26px;
    }

    .store-desc {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .store-image-block {
        width: 100%;
        min-height: 280px; /* 手機版圖片高度稍微縮減 */
    }

    .store-image-block img {
        /* 6. 確保圖片填滿 */
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3 !important; 
        object-fit: cover; /* 確保圖片填滿正方形且不變形 */
    }
}

/* --- Footer 樣式 --- */
.main-footer {
    background-color: #50422D; /* 你指定的品牌褐色 */
    color: #ffffff;
    padding: 40px 0 40px;      /* 上方留白較多，增加高級感 */
    font-family: "PingFang TC", "Helvetica Neue", "Light", sans-serif; 
    font-weight: 400; /* 設定極細 */
    letter-spacing: 0.5px; /* 增加一點字距，看起來更清爽 */
}

/* 新增：將右側選單區塊往下推 */
.footer-column {
    margin-top: 45px; /* 數字可以微調，越大離頂部越遠 */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: flex-start; /* 靠左排列 */
    gap: 100px;                  /* 欄位間距 */
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 16px;
    /* 標題也不要太粗，使用 400 (正常) 或 300 (細) */
    font-weight: 400; 
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 15px;         /* 項目之間的間距 */
}

.footer-column ul li a {
    text-decoration: none;
    /* 將子項目顏色稍微調暗，視覺上字會顯得更纖細 */
    color: rgba(255, 255, 255, 0.6); 
    font-weight: 400; /* 極細 */
    font-size: 15px;  /* 稍微縮小字級 */
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ffffff; /* 滑鼠移入才變亮白 */
}
/* --- 新增：社群連結樣式 (極簡反白風) --- */
.footer-social-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;             /* 電腦版直排的間距 */
    min-width: 150px;
    margin-right: 40px;    /* 讓社群區塊與右側的選單保持一點呼吸空間 */
    margin-top: 45px;  
}

.social-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;      /* 採用較細的字重，呼應 Gogoro 的現代科技感 */
    display: flex;
    align-items: center;
    gap: 12px;             /* icon 與文字的間距 */
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.6;          /* 輕微淡化的 Hover 效果 */
}

.social-link i {
    font-size: 18px;
    width: 20px;           /* 固定 icon 寬度，確保下方文字垂直對齊 */
    text-align: center;
}

/* --- 手機版 RWD 調整 --- */
@media screen and (max-width: 768px) {
    .footer-social-wrap {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px 10px;          
        padding: 10px 0 30px 0;
        margin-right: 0;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0; 
    }
    
    .social-link {
        justify-content: flex-start; 
    }

}
/* 底部版權與 Logo */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* 極淡的分隔線 */
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #CDBEA2;
    font-size: 12px;
    font-weight: 400;
}

/* --- 手機版 RWD 修正 --- */
@media screen and (max-width: 768px) {
    .footer-links {
        flex-direction: column; /* 垂直排列 */
        gap: 0; /* 移除原本電腦版的間距 */
    }

    .footer-column {
        margin-top: 0; /* 【新增這行】手機版歸零，維持原本緊湊整齊的選單 */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-column h3 {
        padding: 15px 0;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0; /* 修正：收起時不要有底邊距 */
    }

    /* 加入 + 號圖示 */
    .footer-column h3::after {
        content: '+';
        font-size: 20px;
        transition: transform 0.3s;
    }

    /* 關鍵：預設隱藏清單 */
    .footer-column ul {
        display: block !important; /* 覆蓋掉可能影響的隱藏設定 */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out; 
        opacity: 0;
    }

    /* 當 .active 被 JS 加入時展開 */
    .footer-column.active ul {
        max-height: 500px; /* 給一個夠大的值 */
        opacity: 1;
        padding-bottom: 20px;
    }

    /* 旋轉 + 號變成 x */
    .footer-column.active h3::after {
        transform: rotate(45deg);
    }
}
/* --- Cookie Banner 基礎樣式 --- */
.cookie-banner {
    position: fixed;
    bottom: -150px; /* 初始隱藏 */
    left: 0;
    width: 100%;
    background-color: rgba(25, 25, 25, 0.96); /* 質感深色半透明 */
    color: #fff;
    z-index: 10001;
    padding: 20px 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

/* 顯示狀態 */
.cookie-banner.show {
    transform: translateY(-150px); /* 向上滑出 */
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-content p {
    font-size: 13px;
    font-weight: 200; /* 極細字體 */
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.cookie-content a {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s;
}

/* 按鈕樣式 - 延續你的品牌褐色 #50422D */
.btn-cookie-accept {
    background-color: #50422D;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-cookie-accept:hover {
    background-color: #765F4A;
    transform: scale(1.05);
}

/* --- 手機版 RWD 調整 --- */
@media screen and (max-width: 768px) {
    .cookie-banner {
        padding: 25px 0;
    }
    
    .cookie-banner.show {
        transform: translateY(-100%); /* 在手機版確保完全蓋過底部 */
    }

    .cookie-container {
        flex-direction: column; /* 垂直排列 */
        text-align: center;
        gap: 20px;
    }

    .cookie-content p {
        font-size: 12px;
        padding: 0 10px;
    }

    .btn-cookie-accept {
        width: 100%; /* 按鈕滿版，方便點擊 */
        max-width: 280px;
    }
}


/* =========================================
   獨立頁面：雷刻服務專屬樣式
========================================= */

.engraving-service-page {
    background-color: #fff;
    padding-top: 0; /* 移除推擠，讓 Banner 衝到最頂端 */
}

/* 共用：區塊標題與通用線條 */
.engraving-service-page .section-header {
    text-align: center;
    margin: 60px 0 40px;
    padding: 0 20px;
}
.engraving-service-page .section-title {
    color: #50422D;
    font-size: 26px;
    letter-spacing: 2px;
    font-weight: 700;
}
.engraving-service-page .title-line {
    width: 40px;
    height: 2px;
    background: #50422D;
    margin: 15px auto;
}

/* 區塊一：Hero Banner */
.engraving-hero {
    position: relative;
    width: 100%;
    height: 100vh; /* 滿版高度 */
    display: flex;
    align-items: flex-end; /* 文字靠底 */
    justify-content: flex-start; /* 文字靠左 */
    padding-left: 5%;
    padding-bottom: 60px; /* 增加底部間距避免太貼齊邊緣 */
    z-index: 1;
}

/* 確保背景圖與首頁邏輯一致 */
.engraving-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

.engraving-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.engraving-hero::after {
    background: rgba(0, 0, 0, 0.1); /* 僅保留 10% 透明度 */
}

.engraving-hero .hero-content {
    z-index: 3;
    position: relative;
}

.engraving-hero .hero-title {
    font-size: 2.5rem; 
    font-weight: 700;
    margin-top: -10px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.engraving-hero .hero-subtitle {
    font-size: 1.0rem;
    margin-bottom: 5px;
    font-weight: 400;
    letter-spacing: 2px;
}
.engraving-hero .hero-desc {
    font-size: 16px; 
    margin: 0 0 20px 0; /* 👉 配合靠左，取消置中並留適當下方間距 */
    opacity: 0.9; 
    line-height: 1.8;
}
.engraving-hero .hero-btns {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px; /* 直接使用 gap 產生按鈕間的水平與垂直間距 */
    margin-top: 20px;
}

.engraving-hero .btn-outline {
    border: 1px solid #000000; /* 黑色外框 */
    color: #000000;           /* 黑色文字 */
    background: transparent;
    transition: all 0.3s ease;
}

/* 探索設計靈感按鈕：滑入時白底黑字 */
.engraving-hero .btn-outline:hover {
    background-color: #ffffff; /* 白色背景 */
    color: #000000;           /* 黑色文字 */
    border-color: #ffffff;     /* 邊框同步轉白，視覺更乾淨 */
}

/* 區塊二：技術規格 */
.specs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 電腦版 4 欄排列 */
    gap: 30px;
    padding: 0 20px;
}

.spec-card {
    background: #fff;
    padding: 40px 25px; /* 稍微縮小內距以適應 4 欄 */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.spec-card:hover {
    transform: translateY(-10px);
}

.spec-icon {
    font-size: 40px;
    color: #CDBEA2;
    margin-bottom: 25px;
}

.spec-card h3 {
    color: #50422D;
    margin-bottom: 15px;
    font-size: 18px; /* 調整標題大小 */
    font-weight: 700;
}

.spec-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 區塊三：客製流程 */
.engraving-process { padding: 80px 0; }
.process-wrapper {
    display: flex; align-items: center; justify-content: center;
    gap: 30px; max-width: 1000px; margin: 0 auto; padding: 0 20px;
}
.process-item { text-align: center; flex: 1; }
.step-circle {
    width: 60px; height: 60px; border: 1px solid #50422D;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 18px; color: #50422D; font-weight: bold;
}
.process-item h4 { color: #50422D; margin-bottom: 10px; }
.process-item p { font-size: 14px; color: #666; }
.process-arrow { color: #CDBEA2; font-size: 24px; }

/* 區塊四：靈感藝廊 */
.inspiration-grid-section { padding-bottom: 100px; }
.grid-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.grid-item {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s;
}
.grid-item:hover { transform: translateY(-5px); }
.grid-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.grid-text { padding: 20px; }
.grid-text .tag { font-size: 10px; color: #CDBEA2; letter-spacing: 1px; font-weight: bold; display: block; margin-bottom: 5px;}
.grid-text h5 { color: #50422D; font-size: 18px; margin-bottom: 8px;}
.grid-text p { font-size: 14px; color: #666; margin-bottom: 15px;}
.btn-more-simple {
    display: inline-block; 
    text-decoration: none; 
    background: none; 
    border: 1px solid #ddd; 
    color: #555;
    padding: 8px 20px; 
    font-size: 12px; 
    border-radius: 4px;
    cursor: pointer; 
    transition: 0.3s;
    width: fit-content;
}
.btn-more-simple:hover { 
    background: #50422D; 
    color: #fff; 
    border-color: #50422D; 
}

/* 區塊五：FAQ */
.engraving-faq { padding: 60px 0 80px; background: #F9F8F6; }
.faq-container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.faq-item { margin-bottom: 30px; border-bottom: 1px solid #eaeaea; padding-bottom: 20px; }
.faq-item h4 { color: #50422D; margin-bottom: 12px; font-size: 18px; }
.faq-item p { color: #666; font-size: 15px; line-height: 1.6; }

/* 區塊六：門市預約 CTA */
.store-cta-section { padding: 80px 20px; }
.cta-box {
    background: #50422D; padding: 50px; border-radius: 20px;
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1000px; margin: 0 auto; color: #fff;
}
.cta-content h3 { font-size: 24px; margin-bottom: 10px; }
.cta-content p { font-size: 15px; opacity: 0.8; }
.cta-box .btn-primary { 
    background: #fff !important; color: #50422D !important; 
    font-weight: bold; border: none;
}
.cta-box .btn-primary:hover { background: #F9F8F6 !important; }

/* 手機版 RWD 適應 */
@media (max-width: 768px) {
    .engraving-hero {
        height: 100svh; /* 手機版滿版高度 */
        padding-left: 20px;
        padding-bottom: 40px;
        align-items: flex-end;
        justify-content: flex-start;
    }
    .engraving-hero .hero-title {
        font-size: 2.0rem;
        margin-bottom: 3px;
    }
    .engraving-hero .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }

    .engraving-hero .hero-btns {
        display: flex;
        flex-direction: row; /* 確保按鈕橫向排列 */
        flex-wrap: wrap;     /* 空間不足時才換行 */
        gap: 8px;           /* 將原本的 15px 縮小至 8px，控制按鈕間的水平與垂直距離 */
        margin-top: 5px;    /* 縮小按鈕區塊與上方文字的整體間距 */
    }
    
    .engraving-hero .hero-btns .btn {
        padding: 8px 20px;   /* 稍微縮減按鈕高度 */
        font-size: 0.85rem;
        margin: 0;           /* 移除舊有的 margin，統一由 gap 控制 */
    }
    .engraving-hero .hero-desc {
        font-size: 14px;
        margin-bottom: 10px; /* 從原本可能的 15px 或 20px 縮小至 10px */
    }
    .specs-container, .process-wrapper { flex-direction: column; gap: 40px; }
    .process-arrow { transform: rotate(90deg); margin: -10px 0; }
    .cta-box { flex-direction: column; text-align: center; gap: 25px; padding: 40px 20px; }
}
/* RWD 回應式調整 */
@media (max-width: 1024px) {
    .specs-container {
        grid-template-columns: repeat(2, 1fr); /* 平板版改為 2 欄 */
    }
}

@media (max-width: 576px) {
    .specs-container {
        grid-template-columns: 1fr; /* 手機版改為 1 欄 */
        gap: 20px;
    }
}

/* --- JINS Coordinate 1:1 復刻樣式 --- */

.jins-style-page {
    /* 使用乾淨的無襯線字體 */
    font-family: "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
    color: #000;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

/* 標題區 */
.page-header {
    text-align: center;
    margin-bottom: 25px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* 頂部分類頁籤 */
.top-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.top-tabs a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding-bottom: 8px;
    position: relative;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.top-tabs a:hover {
    color: #000;
}

.top-tabs a.active {
    color: #000;
}

/* JINS 經典的粗黑底線 */
.top-tabs a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #000;
}

/* 佈局架構 */
.main-layout {
    display: flex;
    align-items: flex-start;
}

/* 左側篩選欄 */
.jins-sidebar {
    width: 220px;
    flex-shrink: 0;
    margin-right: 50px;
}

.filter-block {
    margin-bottom: 40px;
}

.filter-block h3 {
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 12px;
}

.filter-list label {
    font-size: 13px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 強制將 JINS 表單元素變為黑色系 */
.filter-list input[type="radio"], 
.filter-list input[type="checkbox"] {
    accent-color: #000;
    width: 14px;
    height: 14px;
}

/* 左側 Hashtag 雲 */
.hashtag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag-cloud a {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    background: #f5f5f5;
    padding: 4px 10px;
    transition: 0.3s;
}

.hashtag-cloud a:hover {
    background: #e0e0e0;
    color: #000;
}

/* 右側主內容區 */
.content-area {
    flex-grow: 1;
}

.result-count {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* 四欄式畫廊網格 */
.coord-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px 15px; /* 上下間距較大，左右間距較小 */
}

.coord-item {
    text-decoration: none;
    color: #000;
    display: block;
    transition: opacity 0.3s;
}

.coord-item:hover {
    opacity: 0.7; /* JINS 特有的懸浮淡化效果 */
}

.coord-img {
    width: 100%;
    aspect-ratio: 3 / 4; /* JINS 愛用的直立相片比例 */
    object-fit: cover;
    margin-bottom: 12px;
    background-color: #f9f9f9;
}

.coord-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.coord-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}

.coord-name {
    font-size: 11px;
    color: #666;
}

.coord-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

/* 底部 JINS 風格分頁器 */
.jins-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 60px;
}

.jins-pagination a, 
.jins-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    border: 1px solid transparent;
}

.jins-pagination a:hover {
    border-color: #ddd;
}

.jins-pagination span.current {
    background-color: #000;
    color: #fff;
}

/* --- 手機版 RWD 適應 --- */
@media (max-width: 768px) {
    .top-tabs {
        gap: 20px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 15px;
        justify-content: flex-start;
    }
    
    .main-layout {
        flex-direction: column;
    }

    /* 手機版將側邊欄搬到底部或折疊 (這裡採取 JINS 常用的排列方式：先圖片後篩選) */
    .jins-sidebar {
        width: 100%;
        margin-right: 0;
        margin-top: 40px;
        order: 2; /* 將篩選器移到圖片下方 */
    }

    .content-area {
        order: 1;
        width: 100%;
    }

    /* 手機版變成雙欄網格 */
    .coord-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }
}

/* =========================================
   刻圖市集 (LINE STORE 介面風格) 專屬樣式
========================================= */

/* 市集背景設定 */
.market-body {
    background-color: #FAFAFA; /* 模擬 LINE 乾淨的極淺灰底色 */
}

.market-main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* =========================================
   刻圖市集：左側邊欄版型佈局 (LINE STORE 風格)
========================================= */
.market-layout {
    display: flex;
    max-width: 1200px;
    margin: 30px auto 80px;
    padding: 0 20px;
    gap: 40px;
    align-items: flex-start;
}

/* --- 左側分類邊欄 --- */
.market-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 90px; 
}

/* 搜尋框設計 */
.market-search-box {
    display: flex;
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 50px;
    padding: 10px 15px;
    align-items: center;
    margin-bottom: 30px;
    transition: border-color 0.3s;
}

.market-search-box:focus-within {
    border-color: #50422D; /* 樂活褐 */
}

.market-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #333;
}

.market-search-box i {
    color: #CDBEA2;
    cursor: pointer;
}

/* 分類列表設計 */
.sidebar-title {
    font-size: 15px;
    color: #888;
    margin-bottom: 15px;
    padding-left: 5px;
    font-weight: normal;
    letter-spacing: 1px;
}

.market-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.market-category-list li {
    margin-bottom: 4px;
}

.market-category-list a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.market-category-list a:hover,
.market-category-list a.active {
    background-color: #F9F8F6; 
    color: #50422D;
    font-weight: 700;
}

/* --- 右側內容區 --- */
.market-content-area {
    flex-grow: 1;
    min-width: 0;
}

/* 大橫幅區塊 */
.market-banner-wrapper {
    margin: 20px 20px 40px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff; /* 避免圖片載入前閃爍 */
}

.market-hero-banner {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
}

/* 內容區塊標題 */
.market-section {
    padding: 0 20px;
    margin-bottom: 50px;
}

.market-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
}

.market-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.market-see-all {
    font-size: 13px;
    color: #8C7A6B; /* 次級品牌色 */
    text-decoration: none;
}
.market-see-all:hover { text-decoration: underline; }

/* 網格系統 (LINE STORE 核心佈局) */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

/* 商品卡片設計 */
.market-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.market-card:hover {
    background-color: #F9F8F6;
    transform: translateY(-2px);
}

.market-card-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 強制正方形 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.market-card-img img {
    width: 85%;
    height: 85%;
    object-fit: contain; /* 確保雷刻去背圖不變形 */
}

/* 微標籤 (Badges) */
.market-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    z-index: 2;
}
.badge-premium { background-color: #CDBEA2; }
.badge-new { background-color: #8C7A6B; }
.badge-hot { background-color: #D98C8C; }

/* 卡片文字 */
.market-item-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-item-author {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   彈出預覽視窗 (Modal)
========================================= */
.market-modal {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000; /* 高於 header */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.market-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: marketFadeIn 0.3s ease;
}

@keyframes marketFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.market-close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 24px; color: #aaa;
    cursor: pointer;
}
.market-close-btn:hover { color: #333; }

.market-modal-body {
    display: flex;
    gap: 25px;
    align-items: center;
}

.market-modal-image {
    flex: 1;
    background-color: #F9F8F6;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.market-modal-image img {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.market-modal-details { flex: 1.2; }
.market-modal-details h2 { font-size: 20px; color: #50422D; margin-bottom: 5px; }
.market-description { font-size: 14px; color: #666; margin: 15px 0 25px; line-height: 1.6; }

.market-modal-actions {
    display: flex;
    gap: 10px;
}

.market-btn-primary {
    background-color: #50422D; color: #fff;
    border: none; padding: 10px 20px; border-radius: 25px;
    font-size: 14px; cursor: pointer; flex: 1;
}
.market-btn-outline {
    background-color: #fff; color: #50422D;
    border: 1px solid #50422D; padding: 10px 15px; border-radius: 25px;
    font-size: 14px; cursor: pointer;
}

/* --- 手機版 RWD 調整 --- */
@media (max-width: 768px) {
    .market-grid {
        grid-template-columns: repeat(3, 1fr); /* 手機版一行顯示 3 個更像貼圖商城 */
        gap: 10px;
    }
    
    .market-banner-wrapper { margin: 10px 15px 30px; }
    .market-section { padding: 0 15px; }
    
    .market-item-title { font-size: 12px; }
    .market-item-author { font-size: 10px; }
    
    .market-modal-body {
        flex-direction: column;
        text-align: center;
    }
    .market-modal-actions {
        flex-direction: column;
    }
    .market-layout {
        flex-direction: column;
        gap: 20px;
        margin-top: 15px;
    }

    .market-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    .market-search-box {
        margin-bottom: 15px;
    }

    .sidebar-title {
        display: none;
    }

    .market-category-list {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 5px;
        scrollbar-width: none;
    }
    
    .market-category-list::-webkit-scrollbar {
        display: none;
    }

    .market-category-list li {
        margin-bottom: 0;
    }

    .market-category-list a {
        white-space: nowrap;
        background-color: #fff;
        border: 1px solid #EBEBEB;
        border-radius: 20px;
        padding: 8px 18px;
        font-size: 14px;
    }

    .market-category-list a.active {
        background-color: #50422D;
        color: #fff;
        border-color: #50422D;
    }
}
@media (max-width: 480px) {
    .market-grid {
        grid-template-columns: repeat(2, 1fr); /* 螢幕極小時改為 2 欄 */
    }
}

/* =========================================
   KOL
========================================= */

.kol-split-banners {
    width: 100%;
    background: #fff;
}

.split-item {
    display: flex;
    min-height: 200px; /* 維持你原本的設定 */
    align-items: stretch;
    margin-bottom: 15px; /* 【新增】設定區域之間的間距，可依需求調整數值 */
    box-shadow: none !important; /* 【新增】確保移除任何可能的陰影 */
    border: none; /* 【建議】確保沒有邊框造成的視覺陰影感 */
}

.split-item:last-child {
    margin-bottom: 0;
}

.split-item.inverse {
    flex-direction: row-reverse; /* 讓圖文左右對調 */
}

.split-img {
    flex: 0 0 35%;
    overflow: hidden;
}

.split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-text {
    flex: 1;
    background-color: #F9F8F6; /* 大地色系底色 */
    padding: 30px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.split-text h3 {
    font-size: 20px;
    color: #50422D;
    margin: 5px 0 10px;
}

.split-text p {
    font-size: 14px; 
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 手機版 RWD：全部改為垂直排列 */
@media (max-width: 768px) {
    .split-item, .split-item.inverse {
        flex-direction: column;
    }
    .split-img {
        height: 200px;
    }
    .split-text {
        padding: 30px 20px;
        align-items: center;
        text-align: center;
    }
}

/* 雙圖組合容器 */
.split-img-group {
    flex: 0 0 35%; /* 稍微加寬一點點以容納兩張圖，原為25% */
    display: flex;
    gap: 0px; /* 兩圖中間的極細白線感 */
    background-color: #fff;
    box-shadow: none !important; /* 確保圖片群組也沒有陰影 */
}

/* 人物照佔比 60% */
.main-portrait {
    flex: 6;
    overflow: hidden;
}

/* 細節照佔比 40% */
.detail-shot {
    flex: 4;
    overflow: hidden;
    border-left: 1px solid #f0f0f0;
}

.split-img-group img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 為了維持壓扁感，調整內容區塊 */
.kol-split-banners .split-item {
    min-height: 200px;
    align-items: stretch;
}

/* 手機版 RWD 調整：左右並列改為上下堆疊或維持並列 */
@media (max-width: 768px) {
    .split-img-group {
        flex: none;
        height: 180px; /* 手機版高度 */
    }
    .split-item, .split-item.inverse {
        flex-direction: column;
    }
}

/* 雷刻靈感分享牆預覽區樣式 */
.inspiration-wall-preview {
    padding: 60px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 建立一個三欄的網格，並複用 gallery.html 的小卡樣式 */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 核心設定：只顯示三欄 */
    gap: 25px;
    margin-bottom: 50px;
}

/* 讓按鈕容器置中 */
.view-more-container {
    text-align: center;
}

/* RWD：手機版調整為單欄或多欄滾動 */
@media (max-width: 768px) {
    .preview-grid {
        grid-template-columns: repeat(1, 1fr); /* 手機版可改為單欄 */
        gap: 20px;
    }
}

/* 載體區域新樣式 */
.engraving-carrier-section {
    padding: 100px 0;
    background-color: #F9F8F6;
    text-align: center;
}

/* 全新二合一排版樣式 */
.carrier-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 電腦版 2 個一行 */
    gap: 30px;
    max-width: 1100px;
    margin: 60px auto;
}

.carrier-info-card {
    display: flex; /* 左右分欄 */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(80, 66, 45, 0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

.carrier-info-card:hover {
    transform: translateY(-5px);
}

.carrier-card-img {
    flex: 0 0 40%;
}

.carrier-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carrier-card-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carrier-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.carrier-card-header i {
    font-size: 24px;
    color: #CDBEA2;
}

.carrier-card-header h3 {
    font-size: 22px;
    color: #50422D;
}

.carrier-card-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 總數量數字區域 */
.total-counter-wrapper {
    margin-top: 60px;
    padding-top: 40px;
    border-top: none;
}

.count-number {
    display: block;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 80px;
    font-weight: 300;
    color: #50422D;
    line-height: 1;
    margin-bottom: 10px;
}

.counter-label {
    font-size: 14px;
    color: #888;
    letter-spacing: 1px;
}



/* 手機版 RWD：改回單欄垂直排版 */
@media (max-width: 768px) {
    .carrier-info-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .carrier-info-card {
        flex-direction: column;
        border-radius: 0; /* [修正] 取消圓角 */
        box-shadow: none; /* [建議] 滿版設計通常取消陰影更俐落 */
        border-bottom: 1px solid #eee; /* [新增] 加上細線區隔卡片 */
    }
    .carrier-card-img {
        height: 200px;
        border-radius: 0;
    }

    .carrier-card-img img {
        border-radius: 0; 
    }

    .count-number {
        font-size: 60px;
    }
}
