@charset "UTF-8";
/*
body {
  background-color: #b8c0ba;
  font-family: 'Verdana','Hiragino Sans','Meiryo',sans-serif;
}
h1 {
  font-size: 40px;
  border: 3px solid #4f5d4a;
  border-radius: 10px;
  padding: 6px 0;
  margin: 20px auto;
  width: 300px;
  text-align: center;
}
p,ul {
  text-align: center;
  margin-bottom: 20px;
  font-size: 36px;
}
img {
  border-radius: 50%;
}
a {
  background-color: #c46f71;
  display: block;
  padding: 20px 0;
  border-radius: 4px;
  color: #faedef;
  font-weight: bold;
  font-size:32px
}
ul {
  width: 500px;
  margin: 0 auto;
}
li {
  margin-bottom: 20px;
}
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500&family=Noto+Serif+TC:wght@600&display=swap');

/* --- 全局樣式 --- */
:root {
    --primary-bg: #FDFCF7;
    --text-color: #333333;
    --accent-color: #A9907E;
    --light-gray: #f4f4f4;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.8;
    background-color: var(--primary-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Noto Serif TC', serif;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

/* ★★★ 導覽列樣式 (含漢堡選單) ★★★ */
.navbar {
    background: rgba(253, 252, 247, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-logo {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.5em;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent-color);
    z-index: 1001; /* 確保 Logo 在最上層 */
}

.nav-links {
    display: flex; /* 電腦版使用 Flexbox 排列 */
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.nav-links a.nav-store-link {
    background-color: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
}

.nav-links a:hover {
    color: var(--accent-color);
}
.nav-links a.nav-store-link:hover {
    color: white;
    opacity: 0.9;
}

/* 手機版漢堡按鈕樣式 */
.hamburger-menu {
    display: none; /* 電腦版隱藏 */
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.4s;
}

/* --- 主視覺區 --- */
.hero {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    margin-top: 150px;
}

.hero h1 { font-size: 3.5em; margin-bottom: 10px; }
.hero p { font-size: 1.2em; margin-bottom: 30px; color: #666; }

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* --- 內容區塊 --- */
.content-section { background-color: white; border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); }
.content-section:nth-of-type(odd) { background-color: var(--primary-bg); }

/* --- 關於卜卦 --- */
#about p { max-width: 650px; margin: 0 auto 20px auto; text-align: left; }
.quote-block { background-color: var(--light-gray); padding: 30px; border-radius: 5px; margin-top: 40px; text-align: left; border-left: 4px solid var(--accent-color); }
.quote-block p { font-style: italic; color: #555; margin-bottom: 0; }

/* --- 占卜選項 --- */
.divination-grid { display: flex; justify-content: center; gap: 30px; margin-top: 40px; /*flex-wrap: wrap;*/ }
/*.divination-options { display: flex; gap: 30px; margin-top: 40px; }*/
/*.divination-card { flex: 1; background: white; padding: 30px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease; }*/
.divination-card { background-color: white; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.07); text-align: center; flex-basis: 240px; margin-bottom: 20px; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.divination-card img { width: 100%; height: 100%; object-fit: cover; }
.divination-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.1);}
.divination-card h3 { font-size: 1.2em; margin-bottom: 15px; flex-grow: 1; }
.divination-card p { font-size: 0.9em; color: #666; margin-bottom: 25px; min-height: 60px; }
.divination-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
/*.divination-result { margin-top: 40px; min-height: 150px; padding: 30px; border: 2px dashed #eee; border-radius: 5px; display: flex; justify-content: center; align-items: center; background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }*/
.divination-info .cta-button { padding: 8px 20px; font-size: 0.9em; width: 100%; }

/* ★★★ 服務精選樣式 (修正手機版問題) ★★★ */
.product-grid { display: flex; justify-content: center; gap: 30px; margin-top: 40px; /*flex-wrap: wrap;*/ }
.product-card { background-color: white; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.07); text-align: center; flex-basis: 240px; margin-bottom: 20px; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.product-card img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.product-info h3 { font-size: 1.2em; margin-bottom: 15px; flex-grow: 1; }
.product-info .cta-button { padding: 8px 20px; font-size: 0.9em; width: 100%; }

/* --- 常見問題 --- */
.faq-item { text-align: left; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.faq-question { font-weight: 500; cursor: pointer; position: relative; }
.faq-question::after { content: '+'; position: absolute; right: 0; font-size: 1.2em; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; padding-top: 0; color: #666; }
.faq-item.active .faq-answer { max-height: 400px; padding-top: 10px; }
.faq-item.active .faq-question::after { content: 'x'; }

/* --- 聯絡我 --- */
#contact { background-color: var(--accent-color); color: white; }
#contact h2 { color: white; }
#contact a { color: white; }

/* --- QR Code --- */
.qr-code-img { max-width: 100%; width: 180px; height: auto; display: block; margin: 20px auto; }

/* --- 頁腳 --- */
.footer { padding: 40px 20px; font-size: 0.9em; color: #888; text-align: center; }

/* ★★★ 手機版響應式設計 (完整修正) ★★★ */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5em; }
    .divination-options, .product-grid { flex-direction: column; align-items: center; }

    .hamburger-menu { display: block; /* 手機版顯示漢堡按鈕 */ }
    
    /* 漢堡按鈕點擊後的動畫效果 (變成 X) */
    .hamburger-menu.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
    .hamburger-menu.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    /* 手機版彈出選單樣式 */
    .nav-links {
        position: fixed;
        top: 0;
        left: 100%; /* 預設藏在右邊外面 */
        width: 100%;
        height: 100vh;
        background-color: var(--primary-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.5s ease-in-out;
    }

    .nav-links.active {
        left: 0; /* 點擊後滑入畫面 */
    }

    .nav-links a {
        margin: 20px 0;
        font-size: 1.5em; /* 手機版選單字體放大 */
    }
}