/* 明青健康產業鏈 - 簡化版樣式 */

/* 基礎重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans TC", Arial, sans-serif;
    line-height: 1.6;
    color: #373420;
    background-color: #ffffff;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 標題 */
h1, h2, h3, h4, h5, h6 {
    color: #373420;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* 連結 */
a {
    color: #6aba86;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #223f27;
}

/* 按鈕 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #223f27;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #1b3a17;
}

.btn-secondary {
    background-color: #6aba86;
}

.btn-secondary:hover {
    background-color: #245128;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #373420;
}

/* 導航 */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #373420;
    font-weight: 500;
}

/* 主要內容 */
main {
    margin-top: 80px; /* 為固定header留出空間 */
    min-height: calc(100vh - 80px);
}

/* 輪播區塊 */
.hero-section {
    background: linear-gradient(135deg, #6aba86, #245128);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    color: white;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 產品區塊 */
.products-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-price {
    color: #f47373;
    font-size: 1.2rem;
    font-weight: bold;
}

.product-price del {
    color: #bbb19e;
    margin-left: 0.5rem;
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: #1b3a17;
    color: #c6c6c6;
    padding: 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #c6c6c6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #c6c6c6;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-media a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #c6c6c6;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #1b3a17;
    transition: background-color 0.3s ease;
}

.social-media a:hover {
    background-color: #6aba86;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    main {
        margin-top: 120px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 工具類別 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }