.category_listArea{
    margin-bottom: 20px;
}

.list_area{
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.625rem, -0.042rem + 1.08vw, 1.25rem);

    box-sizing: border-box;
    padding: 0 0 80px 0;
}

.list_item{
    position: relative;
    overflow: hidden;
    width: calc( (100% - clamp(0.625rem, -0.042rem + 1.08vw, 1.25rem) * 1) / 2 );
    box-sizing: border-box;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
              0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 3px solid #dddddd;
    background-color: #fff;
    opacity: 0;
    animation: knowledge-card-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 裝飾圖片 ---------------------- */
.list_item::after{
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    right: clamp(0.75rem, 0.217rem + 0.86vw, 1.25rem);
    width: clamp(12.5rem, 9.166rem + 5.38vw, 15.625rem);
    aspect-ratio: 99.7 / 72.05;
    background: url("../../../knowledge_center/images/after_img.svg") center / contain no-repeat;
    opacity: 1;
    transform: translateY(-25%) rotate(-4deg);
    transition: opacity 0.3s ease, transform 0.35s ease;
    pointer-events: none;
    user-select: none;
}

.list_item:hover,
.list_item:focus-within{
    border-color: #dd1319;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.22);
    transform: translateY(-0.375rem);
}

.list_item:hover::after,
.list_item:focus-within::after{
    /* opacity: 1; */
    /* transform: translateY(-50%) rotate(0deg) scale(1.04); */
}

.list_item .list_item_center{
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: left;

    box-sizing:border-box;
    padding: 1.25rem ;
    text-decoration: none;
    animation: knowledge-content-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 列表標題 ------------------------------------ */
.list_item_tit{
    box-sizing:border-box;
    font-size: clamp(1.125rem, 0.992rem + 0.22vw, 1.25rem);
    font-weight: 600;
    color: #333;

    display: flex;
    align-items: flex-start;
    gap: 0.35em;
    min-width: 0;

    padding-bottom: 0.25rem;
    background-image: linear-gradient(#dd1319, #dd1319);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 2px;
    transition: color 0.3s ease, background-size 0.35s ease;
}

.list_item_tit .faq_mark{
    flex: 0 0 auto;
}

.list_item_tit .faq_question{
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis; /* 超出行數以...替代 */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 限制為單行 */
}

.list_item_center:hover .list_item_tit,
.list_item_center:focus .list_item_tit{
    color: #dd1319;
    background-size: 100% 2px;
}

@keyframes knowledge-card-in{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

@keyframes knowledge-content-in{
    from{
        transform: translateY(1.25rem);
    }
    to{
        transform: translateY(0);
    }
}

@media (max-width: 768px){
    .list_area{
        gap: 0.75rem;
        padding-bottom: 3rem;
    }

    .list_item{
        width: 100%;
    }

    .list_item::after{
        right: 0.5rem;
        width: clamp(8rem, 5.333rem + 11.11vw, 11rem);
        opacity: 0.85;
    }

    .list_item .list_item_center{
        min-height: 6rem;
        /* padding: 1rem clamp(5.5rem, 3.722rem + 7.41vw, 7.5rem) 1rem 1rem; */
    }

    .list_item_tit{
        width: 100%;
        font-size: clamp(1rem, 0.889rem + 0.46vw, 1.125rem);
        line-height: 1.6;
    }
}

@media (max-width: 480px){
    .list_item::after{
        right: -0.75rem;
        width: 7.5rem;
        opacity: 0.75;
    }

    .list_item .list_item_center{
        min-height: 5.5rem;
        /* padding-right: 4.75rem; */
    }
}

@media (prefers-reduced-motion: reduce){
    .list_item{
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .list_item .list_item_center{
        animation: none;
    }

    .list_item_tit{
        transition: none;
    }

    .list_item::after{
        transition: none;
    }
}


