IBigClassBoxS .Slick-list .Slick-track {
    transform: none !important;
}

.txt,
.box2 {
    white-space: pre-wrap !important;
}

@media(max-width: 1100px) {
    .slick_inewsbox2 {
        top: -28px;
    }
}

.search_pro .oneset .onesetin .photo {
    height: 0;
    padding-bottom: 75%; /* 固定寬高比 4:3 */
    position: relative;
    overflow: hidden;
}

    .search_pro .oneset .onesetin .photo img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain; /* 保持圖片比例並完整顯示 */
    }

.ipboxs .oneset .onesetin .box1 {
    height: 60px; /* 保持總高度 */
    min-height: 60px; /* 確保最小高度 */
    box-sizing: border-box; /* 確保padding包含在高度內 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding: 10px;
    margin: 0;
    font-size: 16px;
    line-height: 20px; /* 確保每行高度一致 */
    position: relative; /* 允許使用偽元素 */
}

    /* 對於內容不足兩行的情況，增加底部裝飾線 */
    .ipboxs .oneset .onesetin .box1::after {
        content: "";
        position: absolute;
        bottom: 10px; /* 與padding對齊 */
        left: 10px;
        right: 10px;
        height: 20px; /* 一行的高度 */
        background: linear-gradient(to bottom, transparent, transparent); /* 預設透明 */
        pointer-events: none; /* 不影響鼠標事件 */
    }

    /* 補充空間，確保一行文字的情況也有兩行高度 */
    .ipboxs .oneset .onesetin .box1.single-line {
        padding-bottom: 30px; /* 增加底部padding */
    }

.ipboxs .oneset .onesetin .box2 {
    min-height: 80px; /* 最小高度保持不變 */
    box-sizing: border-box; /* 確保padding包含在高度內 */
    padding: 10px;
    margin: 0;
    font-size: 15px;
    line-height: 20px; /* 確保每行高度一致 */
    position: relative; /* 允許使用偽元素 */
    text-align: center; /* 文字水平置中 */
    
    /* 移除固定高度，改用最小高度 */
    /* height: 80px; */
    
    /* 使用 flex 布局實現垂直居中 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* 允許容器隨內容增長 */
    height: auto;
    
    /* 移除會干擾自適應高度的屬性 */
    /* -webkit-line-clamp: 3; */
    /* -webkit-box-orient: vertical; */
    
    /* 確保文字溢出時有適當的處理 */
    overflow: hidden;
    word-wrap: break-word;
}

    /* 對於內容不足的情況，保留底部裝飾線但修改定位方式 */
    .ipboxs .oneset .onesetin .box2::after {
        content: "";
        position: absolute;
        bottom: 10px; /* 與padding對齊 */
        left: 10px;
        right: 10px;
        height: 20px; /* 一行的高度 */
        background: linear-gradient(to bottom, transparent, transparent); /* 預設透明 */
        pointer-events: none; /* 不影響鼠標事件 */
    }

    /* 補充空間，確保一行文字的情況也有適當高度 */
    .ipboxs .oneset .onesetin .box2.single-line {
        padding-bottom: 30px; /* 增加底部padding */
    }

/* 如果需要保持多行文字截斷功能，可以為內容添加一個子元素 */
.ipboxs .oneset .onesetin .box2 .content {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 桌面版尺寸保持不變 */
body .ipboxs .oneset .onesetin .pic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

body .ipboxs .oneset .onesetin .photo {
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

body .ipboxs .oneset .onesetin .photo img {
    width: 240px;
    height: 240px;
    object-fit: cover;
}

/* 手機版使用媒體查詢 */
@media (max-width: 767px) {
    body .ipboxs .oneset .onesetin .photo {
        width: 120px;
        height: 120px;
    }
    
    body .ipboxs .oneset .onesetin .photo img {
        width: 102px;
        height: 102px;
        object-fit: cover;
    }

    .ipboxs .oneset .onesetin .box2 {
        font-size: 14px;
    }
}