:root {
    --bg-cool: #f9fbfb;      
    --white: #ffffff;
    --text-dark: #1a202c;
    --text-muted: #8e97a4; 
    --accent-gold: #b5945d;
    --border-light: #e8eceb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-cool); 
    color: var(--text-dark); 
    line-height: 1.8;
    overflow-x: hidden; /* 防止手機板橫向位移 */
}

/* 容器寬度 - 手機板會縮小內距 */
.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 60px; 
}

/* ---導覽列 (Navbar) --- */
.navbar { 
    background: rgba(255,255,255,0.92); 
    backdrop-filter: blur(20px); 
    padding: 25px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid var(--border-light); 
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; letter-spacing: 8px; text-decoration: none; color: var(--text-dark); text-transform: uppercase; }
.logo span { font-weight: 300; font-size: 0.7rem; color: var(--accent-gold); }

.nav-links { display: flex; align-items: center; }
.nav-item { font-size: 0.85rem; letter-spacing: 4px; text-transform: uppercase; text-decoration: none; color: var(--text-dark); margin-left: 40px; }

/* 導覽下拉單 */
.dropdown { position: relative; margin-left: 40px; }
.dropbtn { font-size: 0.85rem; letter-spacing: 4px; text-transform: uppercase; color: var(--text-dark); background: none; border: none; cursor: pointer; font-family: inherit; }
.dropdown-content { display: none; position: absolute; top: 100%; right: 0; background-color: var(--white); min-width: 200px; box-shadow: 0 30px 60px rgba(0,0,0,0.08); border: 1px solid var(--border-light); }
.dropdown-content a { color: var(--text-dark); padding: 15px 25px; text-decoration: none; display: block; font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; }
.dropdown:hover .dropdown-content { display: block; }

/* --- 主標題 (Hero) --- */
.hero { padding: 150px 0 80px; text-align: center; }
.subtitle { font-size: 0.85rem; letter-spacing: 8px; color: var(--accent-gold); display: block; margin-bottom: 20px; font-weight: 600; text-transform: uppercase; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 4.5rem; font-weight: 400; margin-bottom: 20px; }

/* --- 篩選標籤 (Chips) --- */
.filter-section { margin-bottom: 60px; text-align: center; }
.filter-title { font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; color: #bbb; display: block; margin-bottom: 25px; }
.filter-bar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.chip { background: none; border: 1px solid #eee; padding: 10px 20px; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: 0.3s; color: #888; }
.chip.active { background: var(--text-dark); color: white; border-color: var(--text-dark); }
.chip:hover:not(.active) { border-color: var(--text-dark); color: var(--text-dark); }

/* --- 商品網格 (Grid) --- */
.mineral-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); 
    gap: 60px; 
    margin-bottom: 100px; 
}
.card-img-wrap { width: 100%; height: 500px; overflow: hidden; position: relative; cursor: pointer; background: #f8f8f8; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 1.2s cubic-bezier(0.19, 1, 0.22, 1); }
.card-img-wrap:hover img { transform: scale(1.05); }
.card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.1); color: white; display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; letter-spacing: 4px; font-size: 0.8rem; }
.card-img-wrap:hover .card-overlay { opacity: 1; }

.card-content { padding: 25px 0; }
.card-origin { font-size: 0.7rem; letter-spacing: 3px; color: var(--accent-gold); text-transform: uppercase; display: block; margin-bottom: 10px; }
.card-content h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 400; margin-bottom: 15px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; }
.card-price { font-family: 'Playfair Display', serif; font-size: 1.2rem; }
.btn-detail { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-dark); background: none; border: 1px solid var(--text-dark); padding: 8px 15px; cursor: pointer; }

/* --- 頁尾 IG --- */
.footer-ig { padding: 100px 0; text-align: center; background: #fff; border-top: 1px solid var(--border-light); }
.ig-link { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--text-dark); text-decoration: none; display: inline-block; margin: 20px 0; border-bottom: 1px solid var(--accent-gold); }

/* --- 彈窗 (Modal) --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.98); overflow-y: auto; }
.modal-content { max-width: 1200px; margin: 60px auto; display: flex; align-items: center; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 40px; width: 100%; }
.modal-img-area img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; }

.modal-close { position: fixed; top: 40px; right: 50px; background: none; border: none; font-size: 50px; font-weight: 100; color: var(--text-dark); cursor: pointer; z-index: 2100; transition: 0.4s; line-height: 1; }
.modal-close:hover { color: var(--accent-gold); transform: rotate(90deg); }

/* ============================================================
   📱 手機與平板響應式調整 (RWD) 
   ============================================================ */

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    
    /* 縮小 Logo 間距 */
    .logo { font-size: 1.2rem; letter-spacing: 3px; }
    .logo span { display: none; } /* 手機版隱藏 "STUDIO" 字樣，節省空間 */
    
    .nav-item, .dropdown { margin-left: 15px; }
    .nav-item, .dropbtn { font-size: 0.7rem; letter-spacing: 2px; }
    
    /* 網格改為單欄 */
    .mineral-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .card-img-wrap { height: 350px; }

    /* Modal 垂直堆疊 */
    .modal-body { 
        padding: 50px 20px 40px; 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .modal-info-area { text-align: left; }
    .modal-info-area h2 { font-size: 2.2rem; }
    .modal-close { top: 15px; right: 15px; font-size: 35px; }
}

@media (max-width: 480px) {
    /* 核心修正：不再消失，而是極致壓縮 */
    .nav-links { display: flex !important; } 
    .logo { font-size: 1.1rem; letter-spacing: 2px; }
    .nav-item, .dropdown { margin-left: 10px; }
    .nav-item, .dropbtn { font-size: 0.6rem; letter-spacing: 1px; }

    .hero h1 { font-size: 2rem; }
    .subtitle { letter-spacing: 4px; font-size: 0.7rem; }
}