﻿
.pagination {
    margin: 20px 0;
}

    .pagination a {
        padding: 8px 16px;
        margin: 0 4px;
        border: 1px solid #ddd;
        text-decoration: none;
        color: #333;
    }

        .pagination a.active {
            background-color: #007bff;
            color: white;
        }

        .pagination a:hover:not(.active) {
            background-color: #ddd;
        }

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    /*border: 1px solid #ddd;*/
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}



#pagination {
    display: flex; /* 啟用 Flex 佈局 */
    justify-content: center; /* 水平置中 */
    align-items: center; /* 垂直置中 */
    /* 如果要看到垂直置中效果，父容器需要有明確高度，例如 */
    /* height: 100px; */
}



.article-author {
    cursor: pointer;
    padding: 10px 0; /* 在標題上下增加一些空間 */
    margin: 0;
    list-style: none; /* 移除列表項目符號 */
    font-size: 14px; /* 調整字體大小 */
}

.article-title {
    cursor: pointer;
    padding: 10px 0; /* 在標題上下增加一些空間 */
    margin: 0;
    list-style: none; /* 移除列表項目符號 */
    font-size: 20px; /* 調整字體大小 */
    font-weight: bold; /* 標題加粗 */
}

.article-item {
    border-bottom: 1px solid #ccc; /* 灰色細線分隔 */
}
/* 移除最後一項的分隔線，保持版面整潔 */
.article-list li:last-child .article-item {
    border-bottom: none;
}



.image-container {
    /* 1. 設定容器寬度 (例如：佔父層的 100%) */
    width: 100%;
    /* 2. 關鍵：設定寬度/高度的比例為 16/9 */
    aspect-ratio: 16 / 9;
    /* 3. 確保圖片不會超出容器邊界 */
    overflow: hidden;
}

    .image-container img {
        /* 讓圖片填滿整個 16:9 的容器 */
        width: 100%;
        height: 100%;
        /* 圖片裁切處理：確保圖片填滿容器並保持自身比例，超出部分會被裁切 */
        object-fit: cover;
    }



.aspect-ratio-box {
    /* 1. 設置寬度 */
    width: 100%;
    /* 2. 關鍵：將高度設置為 0 */
    height: 0;
    /* 3. 關鍵：Padding Hack - 利用垂直 padding 創造高度 */
    /* 9/16 = 56.25% (這是保持 16:9 比例的關鍵數字) */
    padding-top: 56.25%;
    /* 4. 建立相對定位，讓內層圖片可以絕對定位 */
    position: relative;
    /* 5. 確保圖片不會超出容器邊界 */
    overflow: hidden;
}

.aspect-ratio-content {
    /* 讓圖片絕對定位，並填滿 Padding Hack 創造出來的空間 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 圖片裁切處理 */
    object-fit: cover;
}



<!-- /*輪播圖*/ -->

/* 基本樣式調整，讓輪播容器居中 */
.owl-carousel {
    max-width: 100%;
    margin: 0 auto;
}

    .owl-carousel img {
        width: 100%;
        height: 400px; /* 固定高度，可調整 */
        object-fit: cover;
    }
/* 箭頭樣式自訂（可選） */
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /*background: rgba(0, 0, 0, 0.5) !important;*/
    background: rgba(0, 0, 0, 0.8);
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 40px;
}

.owl-prev {
    left: 10px;
}

.owl-next {
    right: 10px;
}


<!-- 字前紅色一條直線 -->
.hot-tag {
    position: relative;
    padding-left: 12px; /* 為線留出空間 */
    font-size: 25px;
    font-weight: bold;
    line-height: 1.5;
    display: inline-block;
    cursor: default;
}

.hot-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px; /* 線的粗細 */
    height: 1.2em; /* 線高約為文字高度（1em）+ 上下留白 */
    background-color: red;
    border-radius: 2px; /* 可選：讓線條邊角圓潤 */
}


<!-- 麵包屑導覽-- >

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: inline;
}

    .breadcrumb li + li:before {
        content: " > ";
        margin: 0 0.5rem;
        color: #666;
    }

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

    .breadcrumb a:hover {
        text-decoration: underline;
    }

.breadcrumb .active {
    color: #333;
    font-weight: bold;
}




.image-container-carousel {
    position: relative;
    /* display: inline-block;*/
}

    .image-container-carousel img {
        display: block;
        width: 100%;
    }

    .image-container-carousel .text {
        position: absolute;
        top: 90%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 24px;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
        text-align: center;
    }


<!-- 超連結保持原色-- >

.no-blue {
    color: inherit;
    text-decoration: none;
}

.no-blue:hover {
    color: inherit;
}
