/* 全局設定 */
:root {
    --primary-color: #4A6741; /* 茶葉深綠 */
    --secondary-color: #8C7B6D; /* 木質褐 */
    --accent-color: #D4AF37; /* 金色點綴 */
    --bg-light: #F9F7F2; /* 米白底色 */
    --text-color: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

h1, h2, h3, .logo {
    font-family: 'Noto Serif TC', serif; /* 標題使用襯線體 */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 導覽列 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 25px;
    transition: background 0.3s;
}

.btn-nav:hover {
    background-color: #354d30;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    /* 這裡改為直接讀取您電腦裡的圖片，保證不會失效 */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
                url('bg.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: #b6952b;
}

/* 通用區塊設定 */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

/* 品牌故事 */
.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* 產品展示 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* 導購區塊 */
.shop-section {
    background: url('https://images.unsplash.com/photo-1531970227416-f0cddeb1f748?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding: 100px 0;
    color: var(--white);
}

.shop-overlay {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-center {
    text-align: center;
    position: relative;
    z-index: 1;
}

.shop-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-shop {
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-shop.store {
    background-color: #E16D32; /* 類似 7-11 LOGO 的橘紅色，增加購買慾望 */
    color: white;
}

.btn-shop.line {
    background-color: #00C300; /* Line 綠 */
    color: white;
}
.btn-shop:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-content {
    margin-bottom: 30px;
}

.footer-info h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.social-links a {
    font-size: 1.5rem;
    margin: 0 10px;
    color: var(--white);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* 響應式設計 (手機版) */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        width: 100%;
        align-items: center;
        padding-top: 50px;
        transition: 0.4s;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-container {
        flex-direction: column;
    }
}