/* 基本樣式 */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo-icon {
    /* width: 50px; */
    height: 50px;
    margin-right: 1rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.navigation {
    margin-left: auto;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* 選單浮動樣式 */
.navigation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.navigation-overlay.active {
    display: flex;
}

.navigation-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.navigation-overlay li {
    margin: 1rem 0;
}

.navigation-overlay a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
}

/* 一般區塊樣式 */
.section {
    margin: 4rem 0;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.section h2 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: #333;
}

/* 內容區塊樣式 */
.section-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
}

/* 偶數區塊反向排列 */
.section:nth-child(even) .section-content {
    flex-direction: row-reverse;
}

/* 文字區域 */
.section-text {
    flex: 1;
}

/* 圖片區域 */
.section-image {
    flex: 0 0 45%;  /* 不伸縮，固定寬度 */
    max-width: 45%;
}

.section-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.card {
    background-color: #fefefe;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    flex: 1 1 calc(33.333% - 1rem);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    border-radius: 8px;
}

.card h3 {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    color: #333;
}

.card p {
    color: #555;
}

.footer {
    text-align: center;
    padding: 1rem;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

.footer p {
    margin: 0;
    color: #888;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .logo-wrapper {
        justify-content: space-between;
        padding: 0;
        width: 100%;
    }

    .logo-wrapper > div:first-child {
        display: flex;
        align-items: center;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .logo-icon {
        /* width: 40px; */
        height: 40px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        padding: 0.5rem;
    }

    .navigation {
        display: none;
    }

    .cards {
        flex-direction: column;
        gap: 1.5rem;
    }

    .card {
        flex: 1 1 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card img {
        width: 100%;
        margin-bottom: 1rem;
    }

    .section {
        margin: 2rem 0;
    }

    .section-content {
        flex-direction: column !important;  /* 強制垂直排列 */
        gap: 1.5rem;
    }

    .section-image {
        flex: 0 0 100%;
        max-width: 100%;
        order: -1;  /* 圖片永遠在上方 */
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .navigation {
        display: flex;
        align-items: center;
    }

    .navigation ul {
        display: flex;
        gap: 1rem;
    }

    .logo-wrapper {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

.hero-basic-icon {
    width: 100vw;
    height: auto;
    object-fit: cover;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .hero-basic-icon {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        left: 0;
        right: 0;
        transform: none;
    }
}

.section-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;  /* 18px */
    line-height: 1.8;     /* 更寬鬆的行高 */
    color: #333;          /* 確保文字顏色清晰可讀 */
}

@media (max-width: 768px) {
    .section-text p {
        font-size: 1rem;  /* 手機版稍微小一點，16px */
        line-height: 1.6;
    }
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;  /* 18px */
    line-height: 1.8;     /* 更寬鬆的行高 */
    color: #333;          /* 確保文字顏色清晰可讀 */
}

/* 頁尾的文字例外，保持小一點 */
.footer p {
    font-size: 0.875rem;  /* 14px */
    line-height: 1.6;
    color: #888;
    margin: 0;
}

@media (max-width: 768px) {
    p {
        font-size: 1rem;  /* 手機版稍微小一點，16px */
        line-height: 1.6;
    }

    .footer p {
        font-size: 0.875rem;  /* 保持 14px */
    }
}
