* {
    box-sizing: border-box;
}

.banner_ttBox img {
    width: 70%;
}

.swiper-container,
.swiper-wrapper {
    height: inherit;
}

/* 整體區塊 */
.news-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 下拉選單外層 */
.category-select-wrap {
    max-width: 360px;
    margin: 0 auto 58px;
    position: relative;
}

/* 下拉選單 */
.category-select {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 16px;
    border: 1px solid #8bb6c8;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    background-color: #f1faff;
    border-radius: 7px;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, #2f8fc0 50%),
        linear-gradient(135deg, #2f8fc0 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 20px,
        calc(100% - 15px) 20px;
    background-size:
        7px 7px,
        7px 7px;
    background-repeat: no-repeat;
}

.category-select:focus {
    border-color: #2f8fc0;
    box-shadow: 0 0 0 3px rgba(47, 143, 192, 0.12);
}

/* 卡片列表 */
.card-list {
    list-style: none;
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 48px;
}

/* 單張卡片 */
.news-card {
    border: 1px solid #b8b8b8;
    background: #fff;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.news-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* 圖片 */
.news-card-img {
    width: 100%;
    aspect-ratio: 16 / 8.5;
    background: #eee;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 卡片文字 */
.news-card-body {
    padding: 12px 12px 16px;
}

.news-card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;

    /* 標題最多 2 行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.7;

    /* 簡介最多 2 行，超過第二行顯示刪節號 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* JS 控制隱藏 */
.news-card.is-hidden {
    display: none;
}

/* 頁碼 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    margin-top: 40px;
    font-size: 15px;
}

.page-btn {
    border: none;
    background: transparent;
    color: #333;
    cursor: pointer;
    font-size: 15px;
    padding: 4px 2px;
    transition: color 0.2s ease;
}

.page-btn:hover {
    color: #2f8fc0;
}

.page-btn.active {
    color: #2f8fc0;
    border-bottom: 1px solid #2f8fc0;
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-dots {
    color: #333;
}




@media (max-width: 1400px) {
    .banner_ttBox img {
        width: 60%;
    }

}

@media (max-width: 1200px) {
    .banner_ttBox {
        top: 20%;
    }

}

/* 平板：2 欄 */
@media (max-width: 900px) {
    .news-section {
        padding: 36px 18px;
    }

    .category-select-wrap {
        margin-bottom: 36px;
    }

    .card-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}


@media (max-width: 850px) {
    .banner_ttBox {
        top: 30%;
    }
}

/* 手機：1 欄 */
@media (max-width: 600px) {
    .news-section {
        padding: 32px 16px;
    }

    .category-select-wrap {
        max-width: 100%;
        margin-bottom: 28px;
    }

    .category-select {
        height: 46px;
        font-size: 15px;
    }

    .card-list {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 32px;
    }

}

@media (max-width: 450px) {
    .banner_ttBox {
        display: block !important;
    }

    .page_ttArea p {
        letter-spacing: 3px;
    }
}
