/* =======================================================
   關於頁面 (About Page) 專屬樣式
   日系輕盈排版，圖文交錯
   ======================================================= */

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* 反向排列：圖在右，文在左 */
.about-grid.reverse {
    direction: rtl; /* 簡易反轉順序 */
}
.about-grid.reverse > * {
    direction: ltr; /* 內容保持正常的左至右方向 */
}

/* 圖片區塊 */
.about-image-box {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(113, 156, 176, 0.15);
    background-color: #fff;
}

.about-image-box img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-image-box:hover img {
    transform: scale(1.05);
}

/* 文字區塊 */
.about-text-box {
    font-family: 'Noto Serif TC', serif;
    color: #3b586c;
}

.about-text-box h3 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: #1f3747;
}

.about-text-box p {
    font-size: 15px;
    line-height: 2.4;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: justify;
    color: #4a6a82;
}

/* 響應式排版 (RWD) */
@media (max-width: 1024px) {
    .about-container {
        gap: 80px;
        padding: 0 10px;
    }
    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-grid.reverse {
        direction: ltr; /* 手機版不反轉，一律圖在上文在下 */
    }
    .about-text-box h3 {
        font-size: 22px;
    }
    .about-text-box p {
        font-size: 14px;
    }
}
