* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
    background: linear-gradient(to bottom right, #f0f9ff, #dff1ff);
    /* 美化背景 */
    color: #333;
}

/* === 設定 body 為垂直 Flex Container === */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 35px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 1000;
}

.logo {
    height: 60px;
    /* 根據 header 目前大小 */
    transform: scale(2.0);
    transform-origin: left center;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #007acc;
    font-weight: 500;
    font-size: 16px;
}

.nav-links a:hover {
    text-decoration: underline;
}

main {
    flex: 1;
    padding: 140px 40px 40px;
    /* 預留 header 的高度空間 */
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fafafa;
    padding: 20px 40px;
    text-align: center;
    font-size: 14px;
    color: #555;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

/* 整體背景加漸層＋柔光模糊效果 */
.about-wrapper {
    background: linear-gradient(to bottom right, #f0f9ff, #dff1ff);
    padding: 1px 20px 100px;
    display: flex;
    justify-content: center;
}

.card-bottom-image {
    width: 100%;
    max-width: 1200px;
    display: block;
    margin: 0 auto;
    margin-top: 0px;
    /* ✅ 貼近卡片底部 */
    border-radius: 0 0 16px 16px;
}

/* 白色卡片內容加陰影 + 圓角 + 輕邊框 */
.about-card {
    background-color: #ffffff;
    max-width: 1200px;
    width: 100%;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3e7ec;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* 內部圖文排版 */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
}

.about-left,
.about-right {
    flex: 1 1 460px;
}

/* 左側圖片樣式 */
.about-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* 右側文字區塊 */
.about-right p {
    font-size: 18px;
    line-height: 2;
    color: #333;
    letter-spacing: 0.3px;
    background: #fdfdfd;
    padding: 24px 28px;
    border-left: 5px solid #007acc;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

.line-qr {
    margin-top: 24px;
    text-align: center;
    background: #f9fbfd;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e5eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.line-qr img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.line-qr .caption {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

.map-container {
    width: 600px;
    height: 450px;
    border: 0;
    /* 沒有邊框 */
}

/* === 響應式設計：針對寬度小於 768px（手機） === */
@media (max-width: 576px) {
    header {
        flex-wrap: nowrap;
        /* 不要上下換行 */
        padding: 16px 20px;
    }

    .logo {
        transform: scale(1.3);
        height: auto;
        max-height: 40px;
        flex-shrink: 0;
        object-fit: contain;
        /* 若需要避免變形 */
    }

    nav {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        overflow-x: auto;
        /* 超出時可左右滑 */
    }

    .nav-links {
        flex-wrap: nowrap;
        gap: 16px;
        justify-content: flex-end;
    }

    .nav-links a {
        font-size: 15px;
        white-space: nowrap;
        /* 防止文字自動換行 */
    }

    /* Main 主內容區塊縮小內距 */
    main {
        padding: 120px 20px 80px;
    }

    /* 將圖文變成上下排列 */
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-left,
    .about-right {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* 文字區塊調整大小與內距 */
    .about-right p {
        font-size: 16px;
        padding: 16px 20px;
        line-height: 1.8;
    }

    /* LINE QR Code 圖片縮放 */
    .line-qr img {
        max-width: 80%;
    }

    /* 頁尾調整為換行模式 */
    footer {
        padding: 16px;
        font-size: 13px;
        text-align: center;
        line-height: 1.6;
        word-break: break-word;
    }

    .card-bottom-image {
        width: 100%;
        border-radius: 0 0 12px 12px;
    }


    .map-container {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%;
        /* 16:9 比例 */
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        margin-top: 20px;
    }
}