﻿/*關於我們*/
main {
    padding: 0;
    background-color: #fefefe;
}

/* banner 區域設計 */
.banner {
    position: relative; /*  為遮罩和文字提供定位基準 */
    width: 100%;
    height: 300px;
    overflow: hidden;
}

/* banner 圖片 */
.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 與 banner 等高 */
    object-fit: cover;
    display: block;
    z-index: 0;
}

/* 深色遮罩 */
.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 與 banner 等高 */
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* 標題文字 */
.banner h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 3rem;
    margin: 0;
    font-weight: bold;
    letter-spacing: 2px;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    white-space: nowrap;
}
/*頁面路徑*/
.page-path {
    padding: 10px 20px;
    max-width: 1200px;
    position: relative;
    top: 0;
    margin: 0;
    z-index: 3;
}

/* 頁面路徑列表 */
.page-path-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

    /* 每個 breadcrumb 項目 */
    .page-path-list li {
        margin-right: 10px;
        color: #6c757d;
    }

        /* 連結樣式 */
        .page-path-list li a {
            text-decoration: none;
            color: #007bff;
            transition: color 0.2s;
        }

            .page-path-list li a:hover {
                color: #0056b3;
            }

        /* 分隔符號 */
        .page-path-list li::after {
            content: ">";
            margin-left: 10px;
            color: #6c757d;
        }

        /* 移除最後一個項目的箭頭 */
        .page-path-list li:last-child::after {
            content: "";
            margin: 0;
        }


/*文章區塊*/
.news-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.news-item {
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.news-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

    .news-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.news-item:hover .news-image-wrapper img {
    transform: scale(1.2);
}

.news-meta-wrapper {
    padding: 10px 15px 0;
}

.news-date {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

.news-title-wrapper {
    padding: 10px 15px 15px;
}

.news-title {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
    line-height: 1.4;
}


/* 分頁按鈕樣式 */
.pagination-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
    padding: 8px;
}

.pagination-btn {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

    .pagination-btn:hover {
        background-color: #e9ecef;
        color: #0056b3;
    }

    .pagination-btn.active {
        background-color: #007bff;
        color: #fff;
        border-color: #007bff;
        cursor: default;
    }

    .pagination-btn.disabled {
        color: #6c757d;
        background-color: #f8f9fa;
        border-color: #dee2e6;
        pointer-events: none;
        cursor: not-allowed;
    }


/* 響應式優化 */
@media (max-width: 576px) {
    .pagination-btn {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}
/* 原本的樣式保留在這裡 */

/* 響應式設計 */
@media (max-width: 1024px) {
    /* 平板裝置 */
    .banner {
        height: 250px;
    }

        .banner h1 {
            font-size: 2.5rem;
            padding: 8px 16px;
        }
}

@media (max-width: 768px) {
    /* 小平板與大手機 */
    .banner {
        height: 200px;
    }

        .banner h1 {
            font-size: 2rem;
            padding: 6px 14px;
        }
}

@media (max-width: 480px) {
    /* 手機裝置 */
    .banner {
        height: 160px;
    }

        .banner h1 {
            font-size: 1.5rem;
            padding: 5px 12px;
            letter-spacing: 1px;
        }
}
