/* 輪播樣紐樣式---開始 */
.index-slider button,
.news-slider button {
    width: 31px;
    height: 31px;
    z-index: 1;
}

.index-slider button {
    transform: translate(0, -200%);
}

#section1 {
    position: relative;
}

.index-slider-pause {
    position: absolute;
    z-index: 1;
    border: none;
    background: rgba(0, 0, 0, .8);
    background-size: 26px 26px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, .2);
    left: 70px;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    border-radius: 100%;
}

.index-slider-pause::before,
.index-slider-pause::after{
    content: "";
    background: #fff;
    display: block;
    position: absolute;
    left: 50%;
    border-radius: 5px;
    width: 2px;
    height: 8px;
    top: 6px;
    margin-left: -3px;
}

.index-slider-pause::after{
    margin-left: 1px;
}

.index-slider-pause.playing::after {
    display: none;
}

.index-slider-pause.playing::before {
    background: none;
    display: block;
    width: 0;
    height: 0;
    transform: rotate(45deg);
    border-radius: 3px;
    border-bottom: solid 4px transparent;
    border-left: solid 4px transparent;
    border-top: solid 4px #fff;
    border-right: solid 4px #fff;
    top: 6px;
    margin-left: -6px;
}

.index-slider .slick-prev,
.news-slider .slick-prev {
    left: 0;
}

.index-slider .slick-next,
.news-slider .slick-next {
    right: 0;
}

.slick-prev::before,
.slick-next::before{
    content: '' !important;
}

.slick-prev::before {
    background: url("../images/slick-prev.png") no-repeat 0 0 / contain;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.slick-next::before {
    background: url("../images/slick-next.png") no-repeat 0 0 / contain;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 輪播樣紐樣式---結束 */
/* 首頁輪播樣式---開始 */
.index-slider {
    padding: 2.5rem;
    padding-top: 10px;
    padding-bottom: 10px;
}

.index-item {
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0) 135%),
        url("../images/index-bg1.png") no-repeat center / cover;
}

.item-2 {
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0) 135%),
        url("../images/index-bg2.png") no-repeat center / cover;
}

.item-3 {
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0) 135%),
        url("../images/index-bg3.png") no-repeat center / cover;
}

.item-3 .index-top::after {
    content: "";
    position: absolute;
    background: url(../images/index-item-title.png) no-repeat 0 0 / contain;
    top: -5px;
    right: -205px;
    width: 205px;
    height: 102%;
}

.item-3 .content-txt {
    max-height: none;
    overflow-y: unset;
}

.index-top {
    position: relative;
    background-color: #fff;
    width: 50%;
    color: #208038;
    padding: 1rem 1.5rem;
    padding-right: 1px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.item-2 .index-top {
    color: #E83648;
}

.item-3 .index-top {
    color: #2B5C94;
}

.index-top::after {
    content: "";
    position: absolute;
    background: url("../images/index-item-title.png") no-repeat 0 0 / contain;
    top: -5px;
    right: -153px;
    width: 155px;
    height: 103%;
}

.top-title {
    font-size: 3rem;
}

.top-content {
    display: flex;
    gap: 20px;
}

.content-title {
    white-space: nowrap;
    flex-shrink: 0;
}

.content-txt {
    color: #5B6D77;
    line-height: 2;
    max-height: 128px;
    overflow-y: auto;
}

.index-bottom {
    padding: 1rem 1.5rem;
}

.bottom-title {
    display: inline-block;
    color: #fff;
    background-color: #208038;
    border-radius: 2rem 2rem 2rem 0.5rem;
    padding: 8px 24px;
}

.item-2 .bottom-title {
    background-color: #E83648;
}

.item-3 .bottom-title {
    background-color: #2B5C94;
}

.bottom-card-list {
    display: flex;
    gap: 8px;
}

.index-card {
    width: 20%;
    padding: 8px 12px;
    border: 1px solid #208038;
    background-color: #fff;
    border-radius: 2rem 2rem 2rem 0.5rem;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.slick-current.show .index-card {
    animation: cardIn 0.6s ease forwards;
}

.slick-current.show .index-card:nth-child(1) { animation-delay: 0.2s; }
.slick-current.show .index-card:nth-child(2) { animation-delay: 0.4s; }
.slick-current.show .index-card:nth-child(3) { animation-delay: 0.6s; }
.slick-current.show .index-card:nth-child(4) { animation-delay: 0.8s; }
.slick-current.show .index-card:nth-child(5) { animation-delay: 1s; }

.item-2 .index-card {
    border: 1px solid #E83648;
}

.item-3 .index-card {
    border: 1px solid #2B5C94;
}

.card-top {
    display: flex;
    color: #5B6D77;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-bottom,
.card-bottom .num{
    font-size: 2rem;
    font-weight: 500;
    margin-top: 1rem;
    color: #208038;
}

.item-2 .card-bottom,
.item-2 .card-bottom .num{
    color: #E83648;
}

.item-3 .card-bottom,
.item-3 .card-bottom .num {
    color: #2B5C94;
    white-space: nowrap;
}

.card-bottom span {
    font-size: 1rem;
    padding-left: 4px;
}

.card-top img {
    width: 40px;
    height: 40px;
}

/* 首頁輪播樣式---結束 */

/* 最新消息設定---開始 */
.news-slider {
    padding: 0 2.5rem;
}

.news-slider .slick-slide {
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.news-slider .slick-center {
    opacity: 1;
    transform: scale(1);
}

.news-item {
    display: flex;
    position: relative;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #ccc;
    /* width: 300px !important; */
    min-height: 185px !important;
    /* margin: 0 10px; */
    border-radius: 1rem;
}

.news-top {
    display: flex;
    justify-content: space-between;
}

.news-tag {
    position: relative;
    display: inline-block;
    background-color: #208038;
    color: white;
    padding: 0.5rem;
    padding-left: 1.5rem;
    border-radius: 0.5rem 0 0 0;
}

.news-tag::after {
    content: "";
    position: absolute;
    background: url("../images/news-tag.png") no-repeat 0 0 / contain;
    top: 0;
    right: -31px;
    width: 32px;
    height: 100%;
}

.news-date {
    padding: 0.5rem;
    padding-right: 1rem;
    color: #667881;
}

.news-title {
    /* background-color: red; */
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.news-link {
    position: absolute;
    display: block;
    right: 1.5rem;
    height: 30px;
    bottom: 1rem;
}

.news-link img {
    width: 2rem;
    height: 2rem;
}

/* 最新消息設定---結束 */