﻿html#scoped #Tools-inner .center-wrap .feature-block {
    /*margin: 12px 0;
    background-color: #F7F7F7;
    padding: 40px;
    display: flex;*/
    gap: 24px;
    align-items: flex-start;
}

html#scoped #Tools-inner .center-wrap .youtube {
    margin-top: 24px;
    flex: 1;
    max-width: 560px;
    margin-top: 0;
}

    html#scoped #Tools-inner .center-wrap .youtube iframe {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    html#scoped #Tools-inner .center-wrap .youtube video {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

html#scoped #Tools-inner .ck-content p {
    margin: 0;
}

html#scoped #Tools-inner .ck-content ul {
    margin: 0;
}

.btn-contact {
    text-align: center;
    background-color: #1976D2;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    width: 145px;
    height: 35px;
}

.article-flex {
    display: flex;
}

    .article-flex .thumb {
        flex: 1 1 0;
        max-width: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .article-flex .thumb img {
            width: 100%;
            height: auto;
            object-fit: cover;
            display: block;
        }

    .article-flex .info-block {
        flex: 1 1 0;
        max-width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        margin-left: 4px;
    }

.article .title-new {
    font-size: 16px;
    color: #333333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: bold;
}

.article .tool_name {
    font-size: 14px;
    color: #1976D2;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-all;
    min-height: 2.8em; /* 2行高度，依字型大小微調 */
    line-height: 1.4em; /* 建議與設計一致 */
}

.mt-10 {
    margin-top: 10px !important;
}

.articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.article {
    /* 不要設定固定高度，讓 JS 控制 */
    display: flex;
    flex-direction: column;
    height: auto;
}

.article-flex {
    display: flex;
    height: 100%;
    align-items: center;
}

    .article-flex .info-block {
        flex: 1 1 0;
        max-width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-left: 4px;
    }

.academia_logo {
    display: flex;
    align-items: stretch;
    gap: 0;
}

    .academia_logo .div_academia_logo,
    .academia_logo .div_academia_name,
    .academia_logo .div_technology_name {
        flex: 1 1 0;
        max-width: 33.33%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: 100;
    }

/* 手機板調整 */
@media screen and (max-width: 800px) {
    html #scoped #Tools-inner .center-wrap .feature-block {
        display: block;
        padding: 4.27vw 3.2vw;
        margin: 4.27vw 0;
        gap: 0;
    }

        html#scoped #Tools-inner .center-wrap .feature-block .label {
            min-width: 100%;
            width: 100%;
            font-size: 5.33vw;
            margin-bottom: 3.2vw;
        }

        html#scoped #Tools-inner .center-wrap .feature-block .text {
            font-size: 4.27vw;
        }

    html#scoped #Tools-inner .center-wrap .youtube {
        max-width: 100%;
        margin-top: 4vw;
    }

        html#scoped #Tools-inner .center-wrap .youtube iframe {
            width: 100%;
            height: auto;
            aspect-ratio: 16/9;
        }

    html#scoped #Tools .article {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .article-flex .thumb,
    .article-flex .info-block {
        max-width: 50%;
    }

    .articles {
        grid-template-columns: 1fr;
    }

    .academia_logo {
        flex-direction: column;
        align-items: stretch;
    }

        .academia_logo .div_academia_logo,
        .academia_logo .div_academia_name,
        .academia_logo .div_technology_name {
            max-width: 100%;
            width: 100%;
            justify-content: center; /* 水平置中 */
            align-items: center; /* 垂直置中 */
            display: flex;
            margin-top: 12px;
        }

        .academia_logo .div_academia_name {
            white-space: normal;
            word-break: break-all;
            overflow-wrap: break-word;
        }

        .academia_logo .div_academia_logo {
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .academia_logo .div_academia_logo img {
                display: block;
                margin: 0 auto;
                max-width: 100%;
            }
}

@media screen and (max-width: 1200px) {
    .articles {
        grid-template-columns: repeat(2, 1fr);
    }
}