/* 基本樣式 */
:root {
    --primary-color: #ff6347; /* 溫暖的橘紅色 */
    --secondary-color: #fffaf0; /* 柔和的米白色 */
    --text-color: #5d4037; /* 深棕色 */
    --heading-font: 'Pacifico', cursive; /* 手寫風格字體 */
    --body-font: 'Noto Sans TC', sans-serif; /* 更易讀的中文黑體 */
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    margin: 0;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    text-align: center;
}

/* 導覽列 */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* 主要內容 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

section {
    padding: 4rem 0;
}

/* Part 1: 關於我們 */
.about-section {
    text-align: center;
}

.company-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
}

.about-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #795548;
}

/* Part 2: 產品系列 */
.products-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 確保圖片填滿容器 */
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-top: 0;
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #e55337;
}

/* Part 3: 頁腳/聯絡方式 */
footer {
    background: #3e2723; /* 更深的棕色 */
    color: var(--secondary-color);
    text-align: center;
    padding: 3rem 2rem;
}

.footer-content h2 {
    font-size: 2.5rem;
    color: #fff;
}

.contact-info {
    margin: 1.5rem 0;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info a {
    color: #ffcc80; /* 淺橘色 */
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #fff;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}